Skip to content

Write loop hives as hive.json, agents.json, desks.json and tools.json - #18

Merged
senamakel merged 6 commits into
mainfrom
split-hive-manifest
Oct 25, 2026
Merged

senamakel merged 6 commits into
mainfrom
split-hive-manifest

Conversation

@senamakel

Copy link
Copy Markdown
Member

Summary

loop new now writes the hive's manifest in four files instead of one large hive.json, using the split tinyhivemind now supports (tinyhumansai/tinyhivemind#134):

  • hive/hive.json: identity, context, policies, coordinator
  • hive/agents.json: roles and seats
  • hive/desks.json: the desk
  • hive/tools.json: the toolkit's executable tools and domain toolpacks, generated from the registry as before. It is now written as a file of its own instead of being injected into hive.json.

Merge after tinyhumansai/rsi-ralph#82. That PR pins the tinyhivemind that reads split manifests. Until it lands, released rsi-ralph binaries refuse these folders (missing field seats in hive.json), so this PR is a draft.

Public API / behaviour changes

  • supermath-mcp loop new writes hive/agents.json, hive/desks.json and hive/tools.json. hive/hive.json no longer holds roles, seats, desks, tools or toolpacks.
  • Loops need an rsi-ralph with #82, as docs/specs/loops.md now says.

Validation

  • cargo fmt --all -- --check: clean
  • cargo clippy --all-targets -- -D warnings: clean
  • cargo test: all pass. New test: the_hive_manifest_is_split_into_agents_desks_and_tools. The toolkit test now reads tools.json and checks seat toolpacks against agents.json.
  • .github/scripts/check-file-coverage.sh 90 coverage.json: pass (cli/scaffold/mod.rs 96.8%)
  • RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --workspace: clean
  • End to end: I scaffolded a loop from loops/statements/gauss-sum.lean and ran rsi-ralph check on it.
    • With rsi-ralph built from #82: ok: demo (dir subject, 1 scorers, decide proof by seeds, hive lead lead)
    • With a binary from before #82: invalid json in hive.json: missing field seats, which is why this has to wait for #82.

ADR 0010 still says hive.json declares the tools; ADRs are immutable, so it is left as written.

senamakel and others added 6 commits October 25, 2026 09:34
…ates

The hive template now ships agents.json and desks.json alongside hive.json,
and the scaffold writes all three into the loop folder. The roles, seats and
desks blocks were moved out of hive.json so each concern lives in its own
file.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The scaffold no longer patches the hive.json template to inject tools; it now
writes a dedicated tools.json built from scratch. This keeps the template
untouched and makes the generated manifest independent of the template's
contents.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The scaffolded hive now writes its identity, roles and seats to agents.json, its desks to desks.json, and its tools and toolpacks to tools.json instead of one large hive.json, matching the layout tinyhivemind allows. Tests were updated to read the toolkit from the new tools file and to assert that the manifest is split.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The loops spec now describes the hive directory as a four-way manifest split into hive.json, agents.json, desks.json and tools.json, and the running-a-loop section requires an rsi-ralph that reads the split manifest, noting that older binaries fail with a missing field error.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
The module documentation now names the manifest file that `loop new` writes
(`tools.json`) alongside the `tools` array it describes, so readers can find
the declaration without guessing which file holds it.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Reworded the module doc comment to describe the tools manifest as kept in tools.json within the loops that loop new writes, making the sentence easier to read without changing any behaviour.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@senamakel
senamakel marked this pull request as ready for review October 25, 2026 10:03
@senamakel
senamakel merged commit 133ed2d into main Oct 25, 2026
8 checks passed
@tinysweeper

tinysweeper Bot commented Oct 25, 2026

Copy link
Copy Markdown

Tiny Sweeper review

⏳ Reviewing 5d22d100c60c now. The last completed report, when available, remains below until this pass finishes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T10:04:32.200816Z 5d22d10 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@senamakel
senamakel deleted the split-hive-manifest branch October 26, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant