24 KiB
Package validation
Activate Hermit from repo root, then enter beehive:
pnpm install --ignore-workspace --frozen-lockfile --ignore-scripts
npm run check
npm test
On Block-managed machines append
--registry https://global.block-artifacts.com/artifactory/api/npm/square-npm/
to install: the approved mirror is accessible anonymously while public npm is
policy-blocked. pnpm-lock.yaml is standalone and registry-agnostic. No borrowed
machine-path modules, alternate credential stores, or persistent config edits.
A fresh-store/fresh-node_modules frozen install fetched all seven packages;
strict TypeScript checking passed on Node 24.15.0 / pnpm 11.4.0. Keep
--ignore-workspace so installation does not expand to unrelated client packages.
Client journal continuation
intents.test.ts: real WS loss before publication, original-envelope reopen,
post-host-commit receipt loss and automatic reconnect, retained terminal rejection,
unrelated/duplicate receipt fencing, abrupt child-process exit before network effects,
exact ciphertext/signature relay storage comparison, tampered file rejection, and
policy close 1008 blocking blind retries across reopen. Strict + installed-enabled
full suite passed 16/16; after status wording refinement strict + targeted TUI/client
5/5 passed, then final source strict/full default 15 pass + 1 opt-in skip. These fixtures do not establish production community admission, hostile
local storage/power loss or a polished manual recovery UX. See current CHECKPOINT.
Policy recovery continuation 4341
policy-tui.test.ts drives actual Node TUI subprocesses over a fault proxy and the
real package relay/host with a fresh fixture runner. Before-publication Stop denial
remains UNKNOWN across reopen after repair; reconcile sends no blocked command;
numbered, informed retry sends the byte-identical envelope and resolves the original
Stop once. Repeated 1008 is bounded (one attempt per confirmation). A second journey
drops a committed receipt before relay storage, proving host outbox query rather
than merely cached relay history recovers it, with no extra lifecycle effect or
operation ID. Completed entries cannot be retried. Intentional Quit remains clean.
These are real client/relay/TUI subprocess seams, not a live model or production relay.
Independent d12ed7b4 crypto/receipt/perms and installed tool evidence remains reusable;
completed INTENT_TUI_REVIEW_D12ED7B4.md identifies U1, addressed by this delta.
The earlier pending/manual-recovery statements are historical, not a review wait.
Automated production seams
slice.test.ts: malformed/wrong-owner/tampered encryption envelopes; real loopback WS relay; durable encrypted records, operation fingerprints/revisions, wrong-agent denial, selected-next Save, external runner Start/Stop; two actual TUI subprocess sessions close/reopen while host survives; host restart retains assignment. F2 startup lock unwind and competing live lock exclusion; F3 deliberate Quit does not print UNKNOWN. F1 parent exit retains descendant ownership.reconnect.test.ts: drop the actual host management socket, publish Start while disconnected, verify relay-history recovery, drop after commit, then verify the same receipt/actual run and one revision/operation. Stop and intentional host/client close do not leak a reconnect. This is host recovery only; unsent controller intent durability and receipt ACK pruning remain open.acp.test.ts: external TypeScript ACP fixture under production supervisor, catalog provenance, model/session acknowledgement, completed text hash, wrong model/session, cancelled/rejected/timeout/malformed/flood cases. D3 completed response plus malformed line in one stdout write must fail evidence commit. Real encrypted management WS Start publishes fixture evidence; removing isolated auth directory does not prevent Save/Stop. Actual auth-info CLI does not login.cancellation.test.ts: real management WS and external delayed ACP prompt. D2 Stop at the in-flight Start's current revision and host close interrupt promptly rather than wait for the response; interrupted Start cannot commit running. Wrong-agent/revision/body Stop cannot interrupt. D3 malformed completion tail fails at the host seam as well as AgentSession.admission-cancel.test.ts: a Stop published beside a still-pending Start (live same-batch and through disconnected relay-history replay, in ACP and fixture host modes) cancels that admission before any run commits: the Start receipt is non-accepted/cancelled, the Stop is accepted at the same revision, the journal ends stopped with no actual run and no live-run inventory, and the verified stop releases the ownership lock. Controls keep the fence exact: a wrong-authority Stop in the same batch cannot cancel, a Stop published before its Start cannot cancel that later Start, replaying the already-terminal batch after another disconnect neither reruns nor recancels, and a fresh stale-revision Stop stays a conflict. This is the R1 replay-batch cancellation fix from the independentTOOLS_RECONNECT_REVIEW_6F893F51.mdreview.- D1
slice.test.tsvariants: resistant orphan descendants observe TERM but stay alive, then are removed by bounded live-anchor KILL escalation through both remote Stop and host close.disconnect.test.tsverifies parent IPC loss during runner life uses the same ownership-preserving teardown, including closed-IPC notification handling. Fixtures self-expire to bound failed regression runs. conversation.test.ts: persistent identity and exact external env, plus real management WS Start -> external runtime fixture -> escaping detached shim -> separately anchored harness, same-session completion and Stop absence checks.broker.test.ts: exact-model rejection/conflict, malformed coalesced completion, cancellation, reverse RPC, session/load, forbidden workspace/MCP provisioning, and teardown including TERM-resistant descendants. B1 now tests accepted and rejected optional config changes, preserving the original application error only after exact-model re-ack; failed re-ack and rejected model configs still fail. Tool-enabled foreign MCP provisioning remains rejected; thread arguments now belong to the CLI.cancellation.test.tsalso exercises the conversation replacement path for admitted Stop, host close, non-authority attempts and malformed completions.installed-conversation.test.ts: opt-in withBEEHIVE_REAL_BUZZ_ACP=/Applications/Buzz.app/Contents/MacOS/buzz-acp npm test. Uses fresh fixture identities/dirs and an isolated NIP-42/REST/NIP-29 relay fixture. Verifies actual installed executable AUTH signatures, membership, owner mention dispatch, and exact-model same-conversation ACP completion through the broker. Its actual kind-9 subscription is respected. No provider is called. Three actual signed replies across two channels and a later prompt in the first thread are required through the installed siblingbuzzCLI and fixed adapter. Verifies canonical hash/signature, same agent, channel/parent and explicit non-owner member p-tag; native channels list returns useful output, non-member mentions fail, and a non-owner inbound prompt is ignored; absence after Stop includes the MCP shim. Test code supplies the owner event and invokes the tool, never signs/publishes the expected agent response. This does not test a live LLM deciding to invoke tools.reply-tool.test.ts: production stdio adapter under detached childless shim; caller executable/env/signer/relay/attestation overrides and inactive calls cannot spawn a CLI; fixed argv/environment; success, cancellation, disconnect, failed startup and CLI error (returned without killing the session) all clean up the shim and any TERM-resistant in-group descendants.
Tests never open existing owner keys/profiles/cache, production services or native
client resources. Removal-public-slots checkpoint with installed opt-in
(BEEHIVE_REAL_BUZZ_ACP=...): strict TypeScript + DEFAULT concurrent full package
45/45 pass, zero skips, natural exit (see CHECKPOINT for the exact run). The installed fixture relay does not establish actual community admission,
current relay compatibility, provider/model attestation. Multi-thread delivery is isolated legacy-binary evidence only.
Independent evidence and limits
Prior reviews are in workspace
WORK_LOGS/BEEHIVE_DESIGN_183FFAF0/EXECUTABLE_REVIEW_{94D1DA0E,6BD85947}.md.
Prior c4f30176 broker independently passed strict/11 tests and installed replay in
WORK_LOGS/BEEHIVE_DESIGN_183FFAF0/BROKER_REVIEW_C4F30176.md. Its B1 optional-config
finding is fixed with production regressions here. Independent TOOL_REVIEW_023C9274.md found no new blocking defect in the
predecessor MCP delta and independently confirmed B1 resolved (strict/full12/12,
original/extended B1 probes and signed installed replay). Independent
TOOLS_RECONNECT_REVIEW_6F893F51.md then covered the ordinary-CLI and reconnect
deltas (strict/full 14/14 installed plus its own probes; no new tool-authority
expansion) and is now consumed: its single R1 medium finding, a replayed
same-batch Start+Stop leaving the agent running, is fixed here with
admission-cancel.test.ts production regressions; its receipt-loss, backoff,
duplicate/fingerprint and CLI-option probes remain reusable evidence. The generic ACP fixture and signed/encrypted WS
management protocol are different seams; passing them does not prove current
Buzz relay auth/member/owner semantics.
No full repo just ci, multi-host Move, arbitrary escaped descendant containment,
strong OS sandbox, hostile journal, log-full/controller-reconnect/ACK, rollback, host SIGKILL
recovery or real provider proof. Genuine ownership loss retains quarantine/lock;
no stale numeric PID grants cleanup authority. See CHECKPOINT.md for exact next
executable action and the wired broker, ordinary fixed-executable CLI tool, and remaining product scope.
Installed executable pins
- buzz-acp:
10612d0025d1420bdd9e9afcc2e7129377da2414e75049a8b640e81d857441ea - buzz CLI:
147cc2ccf276ddedc5b84d13f5399a95282066303c9dca566bb2af5a37b856c5
Both are read-only /Applications/Buzz.app/Contents/MacOS/ binaries. Their digests
are not a claim that they were built from the source base. The MCP adapter supports
newline stdio and native CLI argv/stdin, with host-owned executable/identity/relay. Optional local attestation is forwarded using the normal CLI environment;
no live admission/delegation policy proof is claimed from the fixture relay.
Assignment bootstrap continuation
assignment.test.ts starts three actual TS host subprocesses over one isolated
management relay: the same fresh agent key on source/standby plus a second identity
on a third distinct installation. Destination Start and cross-agent routing fail;
source Start/Stop/service restart retains assignment; absent source cannot authorize
standby. Actual TUI selects and shows both identities with exact host routing.
Deleting a running host's local setup does not block Stop, but subsequent Start
fails without reconstructing the key. Missing journals fail closed; explicit legacy
migration preserves revision/history and refuses replacement. This is assignment
bootstrap evidence, NOT Move or multiple agent slots on one host evidence.
All existing fixture setups now explicitly provision initial authority; none relies
on host startup self-assigning from key presence.
Single-installation slot continuation
slots.test.ts uses the production host/client/relay and real external fixtures:
- ONE actual host subprocess exposes X and Y over exactly ONE management socket. Actual TUI subprocess selects numbered rows, saves/starts both, stops X, rejects ambiguous host-name selection and shows persistent identities. Y's journal stays byte-identical across X Stop, including revision, actual run and receipt.
- A reused operation ID on another slot remains independent. Wrong-agent/host operations cannot affect a run. Host socket loss replays both inventories/outbox; graceful process restart retains assignments and truthful stopped state. Same-key standby in another process never obtains Start authority.
- Concurrent delayed ACP Starts with the same operation ID reach transitioning independently. Stop X cancels X while Y is still pending; Y completes. Replays return distinct terminal receipts without mutating either journal.
- Explicit migration after real Start/Stop preserves the complete journal byte for byte. An uncertain first slot makes host close reject/retain the lock while the healthy sibling is nevertheless torn down and saved stopped.
- Actual management-client reopen/reconcile emits an inspect for EACH unresolved host/agent pair. Starting the real host later consumes initial relay history and resolves both retained intents. Slots are fully hydrated before dialing, so history coalesced with socket open cannot be silently dropped awaiting ready.
These are lifecycle/ACP fixture proofs, not simultaneous live provider/conversation proof or Move acceptance. First new TUI harness iteration timed out because its prompt parser assumed prompts ended stdout chunks; corrected to consume prompt positions amid coalesced async status reports. A subsequent new reconciliation test exposed the initial-history hydration gap above, fixed at the host connection owner. No containment assertion, delay or existing test was weakened. The historical reply-tool descendant-exit observation remains a separate open investigation.
Recovered fixture Move and recovery labels
move.test.ts executes two real host subprocesses plus actual TUI and relay: Move X,
Y byte-identical, standby Start denied, wrong target revision preserves running source,
reverse successor and historical grant replay. Fault-injected real host/relay tests
lose grant and source receipt before receipt storage, replay outbox, remove target key
or change prepared setup, and verify assigned/stopped target and revoked source even
after source service restart. Delayed prepared replies exercise valid Stop/Save
cancellation, invalid Stop/Save inertness and late Start fencing. These are fixture
launch/admission tests, not provider readiness or destination conversation replies.
policy-tui.test.ts reopens two same-host/action/revision blocked operations and checks
both agent identities and operation IDs in numbered rows AND each retry confirmation;
declining sends neither. Existing immutable-envelope policy-retry tests remain.
Consumed DESCENDANT_EXIT_EBC8B3CB.md: exact historical cause remains unproved
(invalid fixture PID vs reuse); the group probes are evidence, not safe-Move approval.
reply-tool.test.ts now captures raw PID, actual probe errno, fixture spawn/error
provenance, and bounded per-PID process state on failure. It does not wait longer or
weaken ESRCH, and does not kill any PID obtained from observations. Full-suite green
results without recurrence do not classify the historical failure.
Identity-bearing conversation Move continuation
installed-move.test.ts is installed-opt-in, using the same isolated NIP-42/NIP-29
fixture relay and deterministic ACP harness as installed-conversation. It provisions
ONE signer on two actual host subprocesses, source answer, remote Move, target answer
and a later owner turn. Verifies Schnorr/canonical events, channel/parent/non-owner
member recipient, native CLI read/rejected-mention behavior and post-grant broker
model/session/completion evidence. At grant delivery source journal is consumed/stopped
and source runner/descendant/shim probe ESRCH, before target can launch actual runtime.
Missing setup/unsupported selection preserve source; postgrant actual model rejection
cannot produce a target reply and leaves target assigned/stopped/source Start denied.
This is not live-provider or production admission testing.
move.test.ts additionally covers M1 from independent MOVE_REVIEW_97A9050A: target
changes setup across graceful restart after source consumption and before grant
receipt; replayed prepare retains immutable token, target accepts once but stays
stopped, duplicate grant is inert, source restart cannot resurrect authority.
The independent review supports the scoped exclusively supervised POSIX group barrier, not arbitrary escaping processes. Its pinned full run had 28 passes/two failures and timed out; do not relabel it green. Empty fixture PID bytes -> 0 was captured, separate from the still-unclassified older observation. Fixture publishes a successfully spawned positive PID atomically before cancellation tests; ESRCH remains mandatory.
Explicit Restart continuation dad771
restart.test.ts exercises the real encrypted management relay and host admission:
unchanged identity/assignment, fresh actual run ID, duplicate replay with byte-identical
journal, missing setup preserving the old run without key restoration, same-batch Stop
retraction, ACP prerequisite model rejection preserving actual state, invalid Stop
inertness and authorized Stop interrupting a delayed probe with no late revival.
slots.test.ts now drives restart in the real TUI subprocess while both agents run,
asserting X's new run and Y's byte-identical receipt/revision/run journal.
This historical Restart-only increment had no profile-instruction acceptance; the
continuation below adds it. Installed-conversation Restart remains unclaimed.
Behavior profiles and actual application (0aa71)
profiles.test.ts: canonical hash/field rejection, missing parents, explicit concurrent branches and invalid references. Real relay/host ACP launch receives revision A; publish B and Save leaves actual A unchanged; async Restart preflight captures B while publication C and Save race it. Save conflicts, probe and actual harness both receive B. Stop cancels a subsequent delayed Restart without revival. Successful actual snapshots survive Restart and Stop in run history.- Same file loses the Restart receipt BEFORE actual relay storage, reopens the real durable management client, recovers the host outbox and proves exactly two external launches (original Start + Restart), unchanged journal and no third launch.
slots.test.ts: actual two-agent TUI creates/edits/publishes, selects A for X, Start X, Start Y default, applies B while X runs, checks unchanged X actual and Y complete journal, then Restart X with a new run/process and exact received B bytes.move.test.ts: actual two-host TUI Move preserves source-selected profile to the target despite its default configuration, records received target instructions, and preserves sibling Y. The first new assertion initially ran before the fixture recorded startup (spawn is not script readiness); it now awaits that explicit external record before asserting bytes. No production readiness wait was weakened.installed-conversation.test.ts: read-only installed buzz-acp/CLI and existing deterministic ACP harness receive an explicit profile marker both in harness env and in the runtime-generated actual ACP prompt. Three native signed replies still obey owner/member/thread/model fences. This is not an installed Restart journey or live model/provider proof; real Restart/profile application uses external ACP and lifecycle fixtures above.
Strict and installed-enabled default concurrent full-package results and exact source attribution are in CHECKPOINT. No test script, serial mode or containment assertion changes. Restart and profile deltas still need independent immutable review together.
Final candidate iteration history: first default concurrent full 38/38 (29.78s).
After run-history additions, default full 37/38 (29.53s): unchanged broker assertion
read an existing but empty reverse-rpc marker. The fixture had open/truncate/write
publication while the reader gated on existence. That marker now uses atomic
write/rename; broker logic, timeout and assertions unchanged. Targeted broker 1/1;
final exact executable strict + default installed-enabled full 38/38 (29.50s), natural
exit. This captured failure does not classify the older unrecorded broker failure.
Named launch configuration continuation
configurations.test.ts drives the actual local setup CLI subprocess (not a helper)
through fixture setup and two deliberate key creations sharing one harness. It checks
0600 files/0700 installation directory and that stdout contains none of the fixture
owner/agent secrets. Then actual TUI subprocesses create Alternative, Save a different
locally allowed workspace, select default/Alternative while X runs, and Restart X.
The old actual run and Y's complete journal stay unchanged; the new actual snapshot
is Alternative@3/exact workspace under the same X identity. Target Destination@2 is
created/saved remotely while standby Start stays denied; stale candidate Move preserves
source, exact candidate Move starts the destination. The setup manifest is byte-identical
through all remote configuration/lifecycle operations: no key/setup copy or regeneration.
The helper-level test covers rename/removal/name bounds and revision non-reuse.
move.test.ts additionally drops a consumed grant, accepts a remote target candidate
Save, then delivers the retained grant. Assignment must advance but target stays stopped
with its newer selected-next, source remains revoked, and duplicate/restarted-source
replays cannot resurrect it. A changed target revision cannot silently strand a consumed
grant. Reverse-Move acceptance now uses the exact observed source selected-next rather
than a hand-authored selection omitting its newly materialized configuration revision.
Existing profile/async-Restart Save races and independent per-slot cancellation tests
continue exercising the same serialized Save/CAS path. No timeout/containment assertion
or production broker was weakened. Exact final suite result is in CHECKPOINT.
remove-key.test.ts covers deliberate local key removal end to end with actual CLI
subprocesses. A declined confirmation changes nothing; remove-agent-key then deletes
only the local secret copy (manifest secret: null, 0600/0700 preserved, secret bytes
gone and never printed, journal/sibling byte-identical). Reopen advertises the
missing-key public slot; Start/Restart reject before any spawn (fixture runner line
count proves no process) and no lifecycle/recovery path recreates the key; Stop/Save
stay credential-neutral; management-socket loss replays truthful receipts/inventory.
Active-host removal refuses at the installation lock without deleting it, and a
non-stopped/unknown/already-removed/malformed identity fails closed; legacy key-less
installations reject remove/migrate/conversation-setup/host startup; public-only
slots reject conversation setup. Two real host subprocesses prove Move semantics:
a Move to a missing-key destination fails preflight and preserves the running source
(manifest unchanged), and a public-only source still consumes its retained
management authority so the destination launches with its own local key (source
manifest byte-identical, consumed source denied Start).
Named Move F1/F2 regression combination
named-move.test.ts adapts the independent review's original real relay/host/TUI probe:
profiled source to named/default destination, no manual property-order workaround,
consistent named grant/inventory/selected/actual, preserved prior definition and history,
reselect + Restart, both host reopens, once-only duplicate grants and reordered wire
inputs. It also retains the original nine rejection controls and actual-referenced removal.
named-move-recovery.test.ts adds profiled/named versions of dropped-grant target restart
and later standby Save: reserved @2 cannot collide with later same-name @3, stale CAS
rejects, original preparations persist and source never resurrects. handoff-selection
checks strict semantic grant equality, legacy identity hashes, extra/missing/different
fields, unknown materialization and ordered-array negatives. Original move.test.ts
M1/replay/restart/later-Save/cancellation cases remain; reverse named Move now explicitly
expects reservation revision 4 then Start revision 5. The first legacy implicit-default
Move now asserts default@2, selected/inventory/actual equality, and Start revision 3;
later Save and cancelled-preparation retry use the explicitly reserved CAS revision.
No timeout/assertion relaxation.
The concurrent slots TUI driver observes committed revisions through actual show
output before subsequent lifecycle commands, rather than assuming its private host
journal gate means the separate TUI has consumed inventory. Gate failures close the
owned UI and propagate; existing assertions and observation/test deadlines are unchanged.
Retained direct diagnostic captured a stale-observation Restart revision-conflict;
other older timeout observations lacking that trace remain unclassified.