9.0 KiB
Beehive executable checkpoint
Worktree /Users/loganj/.buzz/REPOS/beehive-cbfd9440, branch beehive/cbfd9440.
Base 051c3a270be9c73da9ab06700bcab7d5552fceaa; continuation starts at
023c9274767ef50fa0f5b37ef1883336f8be59fd. Candidate is the commit containing
this checkpoint (git rev-parse HEAD). No push/PR/merge/release.
Implemented: ordinary multi-conversation Buzz CLI tool authority
Host -> installed buzz-acp -> childless ACP shim -> separately host-owned ACP harness -> childless MCP shim -> host-resident TypeScript MCP adapter -> separately host-owned installed Buzz CLI. No second chat/agent runtime; no Rust/client edits.
conversation-setup optionally provisions only a canonical installed Buzz CLI
executable. buzz({argv, stdin}) exposes its native command contract to the model,
including native help. No local channel/parent/recipient grants and no prompt
scraping in the host. One persistent agent can answer different conversations
without another host-admin step. Old single-thread setup objects are explicitly
rejected with reprovisioning guidance, never silently widened. Executable path/hash,
agent signer, relay and optional attestation remain host-owned snapshots. Caller
executable/env/shell/MCP provisioning and identity/relay/attestation flag overrides
are rejected. Normal CLI file operations have local service-process authority;
this adapter is not an OS filesystem sandbox or a shell tool.
Short source-driven comparison / authority choice
- Desktop
managed_agents/runtime.rs:290selects canonical MCP;:574injects the agent private key and relay;:708injects optional owner attestation. buzz-acp/src/lib.rs:5894builds MCP with that agent signer/relay/attestation.pool.rs:1732adds git hints, not authoritative per-turn permission metadata.buzz-dev-mcp/src/lib.rs:168delegates its buzz personality to the existing CLI.buzz-acp/src/queue.rs:1380–1407renders ordinary reply guidance and explicitly permits requested channel-root posts. It does NOT mint a per-turn scope grant.buzz-cli/src/commands/messages.rs:611–680owns explicit/implicit mention resolution, member checks, immediate-parent/root lookup and publication.buzz-cli/src/lib.rs:78–106identifies relay/private-key/auth-tag override flags; the adapter rejects these while preserving normal command arguments.
Choice: reuse the CLI/runtime as destination/thread owner and relay membership / agent authentication / optional attestation as permission authority, not a second controller. Owner-only inbound dispatch remains unchanged. Outgoing mentions need not be restricted to the owner when other channel participants are authorized. No permissions are manufactured from untrusted model prompt prose. The fixture model interprets upstream instructions only to choose tool arguments, as a model would; that is not a host authorization decision.
Process ownership and model evidence preserved
Upstream buzz-agent/src/mcp.rs:758 and buzz-dev-mcp/src/shell.rs:677 deliberately
detach process groups. Only childless shims may escape here; actual harness and
CLI launches use separately retained spawnOwned anchors. Stop/cancel/disconnect/
failed startup retain and await teardown, including TERM-resistant descendants.
No recovered numeric PID confers kill authority. Resource limits bound sockets,
requests, frames, calls, output and deadlines. Current per-connection request and
per-run shim/session caps still require future long-running recovery work.
Tool stdout is bounded UTF-8 and returned after anchored cleanup/drain, so reads
are useful. Stderr is withheld. A normal CLI nonzero exit becomes MCP isError,
not fatal conversation teardown; model can correct a failed member/argument request.
Containment/protocol errors still fail closed. Exact-model same-session acknowledgement,
model-before-prompt, malformed-tail fences and actual completed response proof remain.
B1 from independent BROKER_REVIEW_C4F30176.md was fixed in the predecessor:
optional config rejection is followed by exact-model re-ack BEFORE forwarding the
original error. Existing accepted/rejected optional config, failed re-ack and
model-changing rejection regressions remain green. Consumed independent TOOL_REVIEW_023C9274.md (workspace
WORK_LOGS/BEEHIVE_DESIGN_183FFAF0/): no new high-confidence blocking defect,
B1 resolved through original/extended independent probes; strict/full12/12 and
independently verified installed signed publication. Its retained invariants are
host executable/env/key/relay ownership, childless shims, exact-model fencing,
distinct tool/ACP/publication evidence and bounded resources. This ordinary-CLI
delta has NOT yet received independent review. Long-lived request/session cap
recovery remains explicit subsequent work, not general MCP compatibility.
Observable installed isolated outcome
Actual installed binaries (read-only, freshly rehashed):
/Applications/Buzz.app/Contents/MacOS/buzz-acpSHA25610612d0025d1420bdd9e9afcc2e7129377da2414e75049a8b640e81d857441ea/Applications/Buzz.app/Contents/MacOS/buzzSHA256147cc2ccf276ddedc5b84d13f5399a95282066303c9dca566bb2af5a37b856c5
installed-conversation.test.ts provisions fresh fixture credentials once, starts
one installed runtime and uses two authorized channels/threads, then a later owner
prompt in the first thread. All three actual CLI-published replies have canonical
hashes, valid Schnorr signatures, the SAME provisioned agent pubkey, expected
channel/parent, and explicit non-owner member recipient. Later reply references the later owner event, which itself references the original
root. The installed legacy CLI emits an immediate-parent e reply tag only; it
does not duplicate the root tag (unlike the current source contract). Three native channels list reads return useful channel data.
Non-member mentions fail without publication; a member who is not the configured
owner cannot trigger a reply. Harness model/session checks occur before every
prompt. The broker remains healthy after the later turns; owned Stop removes
harnesses, shims and resistant descendants. Test code never manufactures the agent
reply. No reconfiguration or new agent key between prompts.
One full-suite replay observed agent
9aa6385895b9b03438af14e5ede3f947c0e3d71e2eb378b923dd571aec770a26
and replies 591297eb4f81d62656c896e7ee4e2b391d5cf971e3790cb6675533113e7ca746,
8de7f8c4b4d15f6edbff7a7ad24cf9f78eb4ac70997bea118435cf197b25fef5,
81f42e7f3a5ed59c151d5152159b30e729eb72cad64b4dd502864ae91680bb41.
These are disposable loopback fixture events, not production relay links.
Fixture model remains a fixture. This is installed runtime/CLI execution with legacy kind-9 NIP-42/NIP-29 fixture evidence, NOT current production kind-40002, real admission, provider/OAuth or Databricks evidence. Explicit hex mentions are validated; unresolved implicit display-name mentions are NOT claimed to work.
Validation
Hermit Node24.15.0 / pnpm11.4.0; standalone registry-agnostic lock unchanged. Predecessor fresh-store frozen install fetched all seven locked packages from the approved mirror. No dependencies, global config changes or borrowed modules added.
. ./bin/activate-hermit
cd beehive
npm run check
BEEHIVE_REAL_BUZZ_ACP=/Applications/Buzz.app/Contents/MacOS/buzz-acp npm test
Strict TS, complete installed-enabled package suite 12/12, and diff check pass;
final candidate rerun before commit. Self-review added legacy-scope opt-in migration,
UTF-8/drain correctness and explicit relay/attestation/env override negatives. No
repo-wide just ci, production operations, owner credential/profile reads or live
provider calls. Configured Logan Johnson author/committer and DCO retained; no
cryptographic signing key configured, so no invented signer/signature claim.
Remaining product scope / ONE next executable step
Next: implement durable relay management ACK/reconnect replay with a dropped- connection test proving saved intent converges exactly once after host/controller reconnect, rather than requiring users to resubmit uncertain lifecycle operations. Independent delta review can proceed in parallel against this pinned artifact.
README retains the full parity matrix: reconnect/ACKs/crash recovery; multiple hosts/agents/setups and S1 two-host identity; reusable profiles/metadata/history; key import/revocation; Restart/Move; other Desktop harness/provider/preset/relay- mesh/compute support and final independent real UI review. None is excluded. Production admission/protocol and named-service-user normal Databricks v2 OAuth / live model remain unproven. The later live gate requires exact named-service-user local auth and necessary community admission, not replacement of missing engineering. Dedicated management TS relay remains explicit; no hidden privileged lifecycle API. Selected-next != actual-run; stopped identity remains assigned. No remote secrets, credential/workspace/session transfer or unreachable-host takeover. Hash/spawn TOCTOU, hostile journals, rollback/clones, outbox pruning and stronger OS containment remain outside evidence.