@staix/agent-hub 0.50.0 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/README.md +1 -1
- package/docs/adding-an-ai-tool.md +26 -4
- package/docs/agent-notes/README.md +1 -0
- package/docs/agent-notes/adapters.md +4 -3
- package/docs/agent-notes/budget.md +8 -2
- package/docs/agent-notes/daemon.md +13 -8
- package/docs/agent-notes/local-worker.md +3 -3
- package/docs/agent-notes/security-review.md +6 -5
- package/docs/agent-notes/tasks.md +10 -3
- package/docs/agent-notes/tests.md +4 -3
- package/docs/cooperbench.md +1 -1
- package/docs/design/adapters.md +21 -0
- package/docs/design/cli-output-inventory.md +165 -150
- package/docs/design/cli-output.md +4 -3
- package/docs/design/guidance-probes.md +1 -0
- package/docs/design/roadmap.md +3 -1
- package/docs/design/task-board.md +35 -0
- package/docs/dogfood.md +21 -3
- package/docs/events.md +4 -2
- package/docs/memory.md +5 -3
- package/docs/operations.md +259 -19
- package/docs/quickstart.md +29 -2
- package/docs/roadmap.json +20 -20
- package/docs/roadmap.md +2 -2
- package/docs/roles.md +1 -1
- package/docs/sdlc.md +29 -5
- package/docs/security.md +11 -5
- package/docs/specs/2026-09-19-agent-hub-design.md +44 -0
- package/docs/specs/2026-09-19-multi-project-design.md +4 -0
- package/docs/specs/2026-09-20-upgrade-recovery-design.md +17 -0
- package/docs/specs/mcp-endpoint.md +63 -0
- package/docs/verification/2026-11-29-agy-1.5.20.md +33 -0
- package/docs/verification/2026-11-29-claude-profile-hook.md +12 -0
- package/docs/verification/2026-11-29-idle-daemon-footprint.md +75 -0
- package/docs/verification/2026-11-29-kimi-281-reviewer-compat.md +38 -0
- package/docs/verification/2026-11-29-kimi-tui-281.md +12 -0
- package/docs/verification/2026-11-30-0.51.0.md +91 -0
- package/docs/verification/2026-11-30-account-switch-1806.md +445 -0
- package/docs/verification/2026-11-30-capability-listing-shape-1808.md +45 -0
- package/docs/verification/2026-11-30-upgrade-keep-1807.md +174 -0
- package/docs/verification/2026-12-01-1811-confirmation-receipt.md +19 -0
- package/docs/verification/2026-12-01-1811-orca-agent-list.md +20 -0
- package/docs/verification/2026-12-01-1811-orca-pane-key.md +21 -0
- package/docs/verification/2026-12-02-1819-claude-process-after-renewal.md +54 -0
- package/docs/verification/2026-12-02-agy-1.5.21.md +74 -0
- package/docs/verification/2026-12-02-claude-implementer-2.1.334.md +44 -0
- package/docs/verification/2026-12-02-cli-import-graph.md +33 -0
- package/docs/verification/2026-12-03-0.52.0.md +150 -0
- package/docs/verification/2026-12-03-codex-0173-reviewer-isolation.md +53 -0
- package/docs/verification/2026-12-03-codex-0173-reviewer-tool-call.md +34 -0
- package/docs/verification/2026-12-03-jcode-1.3.0.md +25 -0
- package/docs/verification/agy/README.md +17 -0
- package/docs/verification/agy/cli-surface.ts +68 -0
- package/docs/verification/agy/interactive-bridge.ts +92 -0
- package/docs/verification/agy/interactive-session.ts +131 -0
- package/docs/verification/agy/launcher-nonce.ts +215 -0
- package/docs/verification/agy/native-hooks.ts +210 -0
- package/docs/verification/agy/originals/agent-hub-681/cli-surface.ts +87 -0
- package/docs/verification/agy/originals/agent-hub-681/native-hooks-adapted.ts +91 -0
- package/docs/verification/agy/originals/agent-hub-681/tui-actual.ts +200 -0
- package/docs/verification/agy/originals/agent-hub-684/probe.ts +107 -0
- package/docs/verification/agy/originals.json +25 -0
- package/docs/verification/agy/permission-new-functions.ts +128 -0
- package/docs/verification/agy/run-probe.py +108 -0
- package/docs/verification/agy/runtime.ts +171 -0
- package/docs/verification/agy/tmux-helper-control.ts +6 -0
- package/docs/verification/agy/tmux-session.ts +235 -0
- package/docs/verified.json +87 -42
- package/package.json +3 -3
- package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-hub/compat.json +157 -0
- package/plugins/agent-hub/kimi-hook.js +1416 -24985
- package/plugins/agent-hub/server.js +17415 -32755
- package/scripts/check-docs.mjs +1 -1
- package/src/adapters/acp.ts +13 -13
- package/src/adapters/agy/definition.ts +9 -26
- package/src/adapters/agy/entry.ts +2 -0
- package/src/adapters/channel-peer.ts +3 -1
- package/src/adapters/claude-channel-evidence.ts +7 -3
- package/src/adapters/claude-channel.ts +38 -257
- package/src/adapters/claude-implementer.ts +3 -1
- package/src/adapters/codex-appserver.ts +77 -15
- package/src/adapters/compat.ts +78 -14
- package/src/adapters/configured-acp.ts +23 -163
- package/src/adapters/configured-adapter-policy.ts +160 -0
- package/src/adapters/configured-pull-entry.ts +53 -0
- package/src/adapters/configured-pull.ts +38 -0
- package/src/adapters/conformance/fakes/app-server.ts +9 -2
- package/src/adapters/declaration-catalog.ts +25 -0
- package/src/adapters/declaration-data.ts +342 -0
- package/src/adapters/declaration-resolution.ts +53 -0
- package/src/adapters/definitions/builtin-metadata.ts +62 -84
- package/src/adapters/definitions/jcode-launch.ts +13 -0
- package/src/adapters/definitions/native-adapter-policy.ts +390 -0
- package/src/adapters/definitions/native-cli-claude-launch.ts +6 -3
- package/src/adapters/definitions/native-cli-codex-launch.ts +2 -1
- package/src/adapters/definitions/native-cli-entry-claude.ts +17 -2
- package/src/adapters/definitions/native-cli-entry-codex.ts +2 -0
- package/src/adapters/definitions/native-cli-entry-jcode.ts +6 -2
- package/src/adapters/definitions/native-cli-entry-kimi.ts +2 -0
- package/src/adapters/definitions/native-cli-entry-pi.ts +2 -0
- package/src/adapters/definitions/native-cli-entry-qwen.ts +2 -0
- package/src/adapters/definitions/native-cli-entry-types.ts +12 -3
- package/src/adapters/definitions/native-cli-jcode-home-init.ts +1 -1
- package/src/adapters/definitions/native-cli-launch-common.ts +2 -2
- package/src/adapters/definitions/native-cli-preview-common.ts +1 -1
- package/src/adapters/definitions/native-cli-retained.ts +1 -1
- package/src/adapters/definitions/native-config-defaults.ts +1 -1
- package/src/adapters/definitions/native-configuration.ts +18 -0
- package/src/adapters/definitions/native-help.ts +24 -0
- package/src/adapters/definitions/native-launch-declarations.ts +34 -0
- package/src/adapters/definitions/native-launch-policy.ts +4 -0
- package/src/adapters/definitions/native-launch-settings.ts +72 -0
- package/src/adapters/definitions/native-light-cli.ts +18 -0
- package/src/adapters/definitions/native-light-preview.ts +10 -0
- package/src/adapters/definitions/native-wrapper-launch.ts +10 -0
- package/src/adapters/definitions/qwen.ts +6 -29
- package/src/adapters/definitions/reviewer-variants.ts +7 -8
- package/src/adapters/external-declarations.ts +31 -0
- package/src/adapters/external-modules.ts +4 -29
- package/src/adapters/jcode.ts +19 -12
- package/src/adapters/native-capabilities.ts +18 -8
- package/src/adapters/native-facts-hooks.ts +12 -0
- package/src/adapters/native-proof-ports.ts +1 -1
- package/src/adapters/presets.ts +136 -0
- package/src/adapters/qwen-dual.ts +2 -2
- package/src/adapters/registry-types.ts +3 -0
- package/src/adapters/registry.ts +20 -81
- package/src/adapters/reviewer-print.ts +26 -9
- package/src/adapters/role-eligibility.ts +2 -1
- package/src/cli/accounts-import.ts +72 -0
- package/src/cli/agents-latest-table.ts +88 -0
- package/src/cli/agents-latest.ts +22 -0
- package/src/cli/agents-output.ts +10 -0
- package/src/cli/agents-presets.ts +100 -0
- package/src/cli/agents.ts +1 -1
- package/src/cli/attention.ts +3 -2
- package/src/cli/autonomy-homes.ts +7 -2
- package/src/cli/autonomy-offline.ts +1 -1
- package/src/cli/bench.ts +1 -1
- package/src/cli/budget-renew-guidance.ts +129 -0
- package/src/cli/claude-homes.ts +9 -5
- package/src/cli/claude-profile-hook.ts +31 -11
- package/src/cli/command-context.ts +3 -0
- package/src/cli/command-table.ts +123 -0
- package/src/cli/commands/accounts.ts +8 -0
- package/src/cli/commands/agents.ts +18 -0
- package/src/cli/commands/answer.ts +28 -0
- package/src/cli/commands/ask.ts +17 -0
- package/src/cli/commands/autonomy.ts +83 -0
- package/src/cli/commands/backlog.ts +46 -0
- package/src/cli/commands/bench.ts +60 -0
- package/src/cli/commands/board.ts +48 -0
- package/src/cli/commands/broker.ts +9 -0
- package/src/cli/commands/budget.ts +96 -0
- package/src/cli/commands/capabilities.ts +12 -0
- package/src/cli/commands/check-path.ts +55 -0
- package/src/cli/commands/completion.ts +8 -0
- package/src/cli/commands/console.ts +12 -0
- package/src/cli/commands/daemon.ts +8 -0
- package/src/cli/commands/deliverables.ts +25 -0
- package/src/cli/commands/doctor.ts +249 -0
- package/src/cli/commands/down.ts +3 -0
- package/src/cli/commands/export.ts +15 -0
- package/src/cli/commands/facts.ts +15 -0
- package/src/cli/commands/goal.ts +22 -0
- package/src/cli/commands/guidance.ts +102 -0
- package/src/cli/commands/help.ts +17 -0
- package/src/cli/commands/host.ts +45 -0
- package/src/cli/commands/init.ts +121 -0
- package/src/cli/commands/instructed.ts +19 -0
- package/src/cli/commands/instruction-hook.ts +15 -0
- package/src/cli/commands/intake.ts +24 -0
- package/src/cli/commands/kill.ts +15 -0
- package/src/cli/commands/learn.ts +23 -0
- package/src/cli/commands/lineage.ts +30 -0
- package/src/cli/commands/logs.ts +21 -0
- package/src/cli/commands/manager.ts +15 -0
- package/src/cli/commands/memory.ts +21 -0
- package/src/cli/commands/model.ts +25 -0
- package/src/cli/commands/models.ts +40 -0
- package/src/cli/commands/native.ts +39 -0
- package/src/cli/commands/pause.ts +5 -0
- package/src/cli/commands/peer.ts +32 -0
- package/src/cli/commands/permission.ts +26 -0
- package/src/cli/commands/permit.ts +12 -0
- package/src/cli/commands/pet.ts +24 -0
- package/src/cli/commands/projects.ts +49 -0
- package/src/cli/commands/queue.ts +70 -0
- package/src/cli/commands/recovery-run.ts +13 -0
- package/src/cli/commands/recovery.ts +130 -0
- package/src/cli/commands/release.ts +23 -0
- package/src/cli/commands/releases.ts +91 -0
- package/src/cli/commands/remember.ts +6 -0
- package/src/cli/commands/report.ts +27 -0
- package/src/cli/commands/research.ts +53 -0
- package/src/cli/commands/reset.ts +89 -0
- package/src/cli/commands/restart.ts +5 -0
- package/src/cli/commands/results.ts +31 -0
- package/src/cli/commands/resume.ts +5 -0
- package/src/cli/commands/review.ts +24 -0
- package/src/cli/commands/roadmap.ts +21 -0
- package/src/cli/commands/role.ts +34 -0
- package/src/cli/commands/roles.ts +30 -0
- package/src/cli/commands/room.ts +14 -0
- package/src/cli/commands/roster.ts +48 -0
- package/src/cli/commands/route.ts +9 -0
- package/src/cli/commands/say.ts +21 -0
- package/src/cli/commands/schedule.ts +17 -0
- package/src/cli/commands/sdlc.ts +321 -0
- package/src/cli/commands/settings.ts +148 -0
- package/src/cli/commands/setup.ts +89 -0
- package/src/cli/commands/shared-refusals.ts +25 -0
- package/src/cli/commands/smoke.ts +44 -0
- package/src/cli/commands/source.ts +64 -0
- package/src/cli/commands/specs.ts +13 -0
- package/src/cli/commands/status.ts +28 -0
- package/src/cli/commands/stop.ts +17 -0
- package/src/cli/commands/structure.ts +60 -0
- package/src/cli/commands/study.ts +39 -0
- package/src/cli/commands/tail.ts +19 -0
- package/src/cli/commands/task.ts +114 -0
- package/src/cli/commands/title.ts +17 -0
- package/src/cli/commands/turns.ts +10 -0
- package/src/cli/commands/ui.ts +47 -0
- package/src/cli/commands/undo.ts +77 -0
- package/src/cli/commands/up.ts +39 -0
- package/src/cli/commands/upgrade.ts +5 -0
- package/src/cli/commands/usage.ts +33 -0
- package/src/cli/commands/version.ts +5 -0
- package/src/cli/commands/watch.ts +30 -0
- package/src/cli/commands/worktrees.ts +31 -0
- package/src/cli/conductor-recovery.ts +1 -1
- package/src/cli/console-state.ts +5 -138
- package/src/cli/console-versions.ts +1 -1
- package/src/cli/facts-hook.ts +11 -4
- package/src/cli/help.ts +44 -20
- package/src/cli/identity.ts +27 -4
- package/src/cli/init-prompt.ts +1 -1
- package/src/cli/init-settings.ts +4 -35
- package/src/cli/init.ts +1 -1
- package/src/cli/json-text-spans.ts +57 -0
- package/src/cli/launch-check.ts +156 -0
- package/src/cli/launch.ts +19 -70
- package/src/cli/light-dispatch.ts +29 -0
- package/src/cli/main.js +8 -1
- package/src/cli/main.ts +257 -2799
- package/src/cli/memory.ts +1 -1
- package/src/cli/orca-probe.ts +119 -0
- package/src/cli/output.ts +45 -3
- package/src/cli/preview.ts +11 -6
- package/src/cli/recovery-launch.ts +1 -1
- package/src/cli/recovery-version-preflight.ts +28 -9
- package/src/cli/replace-process.ts +22 -0
- package/src/cli/report-layout.ts +142 -0
- package/src/cli/roadmap-usage.ts +16 -0
- package/src/cli/roadmap.ts +3 -16
- package/src/cli/sdlc-doctor.ts +27 -0
- package/src/cli/sdlc-output.ts +55 -1
- package/src/cli/setup-homes.ts +2 -2
- package/src/cli/start-agents-run.ts +85 -7
- package/src/cli/start-check.ts +28 -0
- package/src/cli/statusline-tee.ts +25 -4
- package/src/cli/terminal-recovery.ts +53 -10
- package/src/cli/upgrade-interactive.ts +1 -0
- package/src/cli/upgrade-runtime.ts +12 -1
- package/src/cli/upgrade.ts +4 -15
- package/src/cli/warn-line.ts +1 -1
- package/src/hub/accounts.ts +148 -0
- package/src/hub/addons.ts +20 -0
- package/src/hub/agent-drift.ts +2 -1
- package/src/hub/budget-projection.ts +39 -7
- package/src/hub/budget.ts +231 -16
- package/src/hub/channel-project.ts +3 -3
- package/src/hub/ci-watch.ts +311 -79
- package/src/hub/conductor-peer.ts +24 -0
- package/src/hub/conductor.ts +2 -21
- package/src/hub/config-apply.ts +25 -14
- package/src/hub/config-edit.ts +1 -1
- package/src/hub/config-tier.ts +2 -0
- package/src/hub/config.ts +535 -0
- package/src/hub/control-client.ts +49 -1
- package/src/hub/daemon.ts +492 -569
- package/src/hub/delivery-public.ts +11 -0
- package/src/hub/events.ts +3 -0
- package/src/hub/home-tag.ts +12 -0
- package/src/hub/host.ts +217 -0
- package/src/hub/hub-check.ts +125 -0
- package/src/hub/hub-tools.ts +2 -1
- package/src/hub/instance-budget.ts +2 -2
- package/src/hub/instance-config.ts +15 -126
- package/src/hub/instances.ts +22 -6
- package/src/hub/instruction-receipt.ts +2 -2
- package/src/hub/kimi-usage.ts +38 -11
- package/src/hub/lifecycle.ts +86 -4
- package/src/hub/mcp-bridge-core.ts +98 -0
- package/src/hub/mcp-channel-push.ts +20 -0
- package/src/hub/mcp-endpoint-serve.ts +178 -0
- package/src/hub/mcp-endpoint.ts +226 -0
- package/src/hub/mcp-tool-call.ts +181 -0
- package/src/hub/operational-settings.ts +2 -0
- package/src/hub/orca-env.ts +6 -0
- package/src/hub/orca-state.ts +84 -0
- package/src/hub/path-policy.ts +1 -1
- package/src/hub/peers.ts +5 -1
- package/src/hub/permission-mode.ts +5 -41
- package/src/hub/permission-paths.ts +41 -0
- package/src/hub/project.ts +20 -0
- package/src/hub/protocol-window.ts +58 -0
- package/src/hub/quota-origin.ts +20 -0
- package/src/hub/recovery-policy.ts +1 -1
- package/src/hub/registry.ts +36 -2
- package/src/hub/releases-inventory.ts +198 -0
- package/src/hub/report.ts +1 -1
- package/src/hub/research.ts +1 -1
- package/src/hub/review-brief.ts +47 -2
- package/src/hub/roster.ts +6 -3
- package/src/hub/routing.ts +9 -2
- package/src/hub/runtime-capture-prune.ts +25 -3
- package/src/hub/runtime-prune-health.ts +8 -1
- package/src/hub/sdlc-check.ts +205 -0
- package/src/hub/sdlc-release-authorization.ts +42 -21
- package/src/hub/sdlc-release-diagnostics.ts +5 -0
- package/src/hub/sdlc-release-policy.ts +21 -7
- package/src/hub/sdlc-release.ts +80 -20
- package/src/hub/sdlc-sync.ts +146 -0
- package/src/hub/sdlc.ts +38 -5
- package/src/hub/settings.ts +7 -4
- package/src/hub/start-agents.ts +1 -1
- package/src/hub/start-mode.ts +11 -4
- package/src/hub/structure-budget.ts +131 -0
- package/src/hub/structure-scan.ts +149 -0
- package/src/hub/tasks-experiment.ts +455 -0
- package/src/hub/tasks-guidance.ts +606 -0
- package/src/hub/tasks-roadmap-plan.ts +419 -0
- package/src/hub/tasks-roadmap.ts +491 -0
- package/src/hub/tasks-study.ts +661 -0
- package/src/hub/tasks-survey.ts +192 -0
- package/src/hub/tasks.ts +457 -2584
- package/src/hub/terminal-open.ts +5 -3
- package/src/hub/tooling.ts +3 -19
- package/src/hub/usage-rollup.ts +9 -3
- package/src/local/tools.ts +5 -0
- package/src/ui/index.html +1 -1
- package/src/ui/needs.ts +17 -5
- package/src/ui/peer-palette.ts +2 -4
- package/src/ui/plugin.ts +1 -1
- package/templates/presets/agents.json +60 -0
- package/templates/presets/confirmation-matrix.json +8 -8
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Receipt: what a session sees while the daemon is replaced (#1807 AC1)
|
|
2
|
+
|
|
3
|
+
Status: all three rows measured. Row 1 by the probe (client path, graceful stop and restart); rows 2 and 3 by the person's live run on 2026-12-02 (hub task 1254), with ahub 0.51.0, real Claude and Codex accounts, and the steps below. The two decisions the rows wait on were made the same day (last section).
|
|
4
|
+
|
|
5
|
+
## What ran, and on which commit
|
|
6
|
+
|
|
7
|
+
- Probe: `bun scripts/benchmarks/daemon-replace-receipt-1219.ts` (this PR).
|
|
8
|
+
- Run on the current release itself: tag `v0.51.0` is commit `a2d051743af0f1c73fa79666cff159d8c77b3f72`, checked out detached (`git worktree add --detach <path> v0.51.0`, then `bun install --frozen-lockfile`) with only the probe script copied in. The table's numbers are from run 13 on that tag. The script is byte-identical to the one of run 12 (same sha256 below). Run 13's outcomes equal those of runs 10 to 12 on the v0.50.0 tag (`5dba20ee619295e556c88b35ffcb9929f3f1da3b`), whose numbers stay in the history below; the times differ from run to run. The runs on main gave the same outcomes too, at `985a46ae0` plus this PR.
|
|
9
|
+
- Run 13's command, from the repository root of that detached worktree: `env -i PATH=<dirs that hold bun and the system tools> TMPDIR=<canonical temp dir> bun scripts/benchmarks/daemon-replace-receipt-1219.ts`. Script sha256 `189cb84cd6ad9fcfe90586690906cea6833108860425488f51e85124893817b0`, the file as committed in this PR (the same bytes as run 12's). Run 11 used the same script except for two cleanup lines changed afterwards to pass the hardcoded-value check (sha256 `fe825b2d57d9e5d6aa8cc87b2d93dd403fa3ebfadedb57cd9a0fe6e16ba34736`).
|
|
10
|
+
- Bun 1.4.4, macOS arm64, 2026-12-01 for run 13 (2026-11-30 for runs 1 to 12). Run 13 exited 0, printed its table on stdout, wrote nothing to stderr, and left no scratch folder, listener or child behind.
|
|
11
|
+
- Isolation of runs 11 to 13 (the script as committed in this PR; runs 12 and 13 are exactly the committed file, run 11 differs from it by two cleanup lines): the process environment is cleared to `PATH` and `TMPDIR` and then set to a `mkdtemp` scratch folder (`HOME`, `AGENTHUB_HOME`, `AMEM_HOME`, `CLAUDE_CONFIG_DIR`, `CODEX_HOME`) before any hub module loads; the static imports are Node built-ins only and everything else is loaded with `await import`. The in-process daemon runs on port 0. The channel child gets an explicit small environment (`PATH`, `TMPDIR`, the scratch homes and the hub variables it needs), never a copy of this process's. The E/F proxy listens on `127.0.0.1` only and answers 403 to any request with an `Origin` header (runs 11 and 12 each printed `hostname 127.0.0.1`, 403 with an Origin and 426 without). Remaining risk: `ControlClient` connects to `ws://127.0.0.1:<port>` with no path, so the proxy cannot be limited to this script's one connection without a change under `src/`; another process of the same user could connect to the proxy's port while it runs, and would still need the control token the daemon requires on every hello. Cleanup (clients, proxy, daemon, then the scratch folder last) runs in a `finally`. See "Isolation history" for earlier runs, run 1 above all.
|
|
12
|
+
- Not covered: the probe loads the source `src/adapters/claude-channel.ts`, not the shipped `plugins/agent-hub/server.js` bundle. The daemon stops gracefully and a new daemon starts in the same process. A crash, a managed `ahub upgrade` and a version change are not covered. Limits of the script's cleanup: if an import or the first daemon start fails, the script has not reached its `finally` yet, so the scratch folder stays and is not removed. A cleanup step that fails is printed as a row, but it does not change the exit code (only a failure of the measurements does).
|
|
13
|
+
|
|
14
|
+
## Isolation history
|
|
15
|
+
|
|
16
|
+
Thirteen runs of the probe happened, counted from my own session records (two earlier commands were refused by the tool gate and never ran). Only run 1 was not isolated in its own process. Limit of that isolation for runs 2 to 9 (not runs 10 to 13, which ran under `env -i`): the script set only `HOME`, `AGENTHUB_HOME`, `AMEM_HOME` and `CLAUDE_CONFIG_DIR` in the parent. The other `AGENTHUB_*` variables my shell carries (`AGENTHUB_STATE_DIR`, `AGENTHUB_PROJECT_DIR`, `AGENTHUB_PEER_ID`, `AGENTHUB_LAUNCH_ID`) stayed inherited in the parent of runs 2 to 9. The daemon is given its own `stateDir` and `cwd` explicitly, but I did not check whether any code path in the parent reads those inherited variables. The channel child's env dropped every inherited `AGENTHUB_*` variable in every run.
|
|
17
|
+
|
|
18
|
+
| Run | When (UTC) | Parent process env | Notes |
|
|
19
|
+
|---|---|---|---|
|
|
20
|
+
| 1 | 05:09:35 | NOT isolated: `HOME` real, `AGENTHUB_HOME` unset (so the real hub home), `AMEM_HOME` and `CLAUDE_CONFIG_DIR` real | In-process daemon with `cwd` and `stateDir` set to the temp dir, `memory.enabled` false and `inference.enabled` false. The channel child process got an isolated env. Called `hub_status`. Its numbers were discarded and are not in this receipt. |
|
|
21
|
+
| 2 to 9 | 05:09:54 to 06:04:10 | isolated in the four variables only (the script set `HOME`, `AGENTHUB_HOME`, `AMEM_HOME` and `CLAUDE_CONFIG_DIR` to the temp dir; the other `AGENTHUB_*` variables stayed inherited) | run 2 `hub_inbox` (05:09:54); the E/F development runs 3 to 6 (06:01:20, 06:01:29, 06:01:36, 06:01:46); run 7, the v0.50.0 tag (06:02:00), whose numbers an earlier version of this receipt quoted; runs 8 and 9, the earlier script version on main (06:04:01 and 06:04:10). |
|
|
22
|
+
| 10 | 06:20:57 | isolated, scrubbed (`env -i`, only `PATH` and `TMPDIR`) | the previous script version on the v0.50.0 tag, whose numbers an earlier version of this receipt quoted. |
|
|
23
|
+
| 11 | 11:12 | isolated, scrubbed (`env -i`, only `PATH` and `TMPDIR`), then set to the scratch folder before any hub module loads | the script with the environment first, an explicit child environment, a loopback-only proxy that refuses an `Origin` header, cleanup in a `finally`, on the v0.50.0 tag in a detached worktree (two cleanup lines differ from the committed file). Its outcomes equal run 10's. |
|
|
24
|
+
| 12 | 11:18 | same as run 11 | the script exactly as committed in this PR, same tag and command. It is the run the table's numbers come from. Same outcomes as runs 10 and 11. |
|
|
25
|
+
| 13 | 2026-12-01 14:25 | same as run 11 | the script exactly as committed in this PR, on the v0.51.0 tag in a detached worktree, same command. It is the run the table's numbers come from. Same outcomes as runs 10 to 12. |
|
|
26
|
+
|
|
27
|
+
What run 1's daemon could read or write in the real environment: the real hub home (project registry, memory and recovery files), the real `HOME`, the real amem home and the real Claude config dir. What I checked, and what I did not:
|
|
28
|
+
- Checked once, at about 05:09:48, right after run 1: a listing of the real hub home's top level and its files modified in the last 5 minutes. It showed files under `memory/` (`record-variants.jsonl`, `hook-project/`, `shard-readers/`). I did not trace what wrote them. Other agents run against the same hub home, so they may be normal capture. Not shown to be the probe, not shown to be unrelated.
|
|
29
|
+
- Not checked by me: the real amem home, the real Claude config dir, the real `HOME`, and the project registry (`ahub projects`). A reviewer's later read-only search (about 06:01Z) found no leftover probe temp folder and no probe project in `ahub projects`, and no probe temp path in the real hub home; that supports "no trace found", not "nothing was touched".
|
|
30
|
+
- I did not report this at the time and should have.
|
|
31
|
+
|
|
32
|
+
The table's times come from run 13, not from run 1. Run 12's numbers (A 23 ms, B 0 ms, C 0 ms, D 20 ms, E 36 ms, F 36 ms) stay here as history too. Run 10's numbers (A 20 ms, B 1 ms, C 0 ms, D 20 ms, E 37 ms, F 43 ms) and run 11's (A 23 ms, B 0 ms, C 0 ms, D 19 ms, E 44 ms, F 54 ms) stay here as history. The script now clears the whole parent environment but `PATH` and `TMPDIR` before any hub module loads, so the parent no longer carries my shell's variables; runs 2 to 9 ran before that.
|
|
33
|
+
|
|
34
|
+
Every `src/...:line` reference in this document was read, and each line checked, at the v0.51.0 tag (commit `a2d051743af0f1c73fa79666cff159d8c77b3f72`; nine of the cited lines moved since v0.50.0 and were found again by their text). A reference without a line names a file only. Measured claims say "run 13 printed" or give a table row; claims under "read from the code" or "Inferred" were not run.
|
|
35
|
+
|
|
36
|
+
## Row 1: a `tools/call` while the daemon is replaced
|
|
37
|
+
|
|
38
|
+
### Observed (run 13 on v0.51.0; `hub_inbox` for reads, `hub_send` for the write; no other tool was run)
|
|
39
|
+
|
|
40
|
+
| Step | What happened | Time |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| A. daemon up | `hub_inbox` answers normally | 23 ms |
|
|
43
|
+
| B. daemon stopped, then a call | `hub_inbox` text `hub is not running for this project (start it with: ahub up).`, `isError` false | 0 ms |
|
|
44
|
+
| C. daemon stopped, a call made, the daemon started 0.5 s later | the call was answered before the daemon returned (it is not held) with the same "not running" text. It measures the not-held path only, never a call the daemon had received | 1 ms |
|
|
45
|
+
| D. after the session reattached | `hub_inbox` answers normally | 19 ms |
|
|
46
|
+
| E. read, request received and answered by the daemon, the reply withheld, the socket then closed | caller text `not read: hub connection closed`. The daemon's own reply to that read was ok (`envs`, `held`, `waiting` present), so the caller was told the read failed although the daemon served it | 41 ms |
|
|
47
|
+
| F. write (`hub_send`), request received and applied by the daemon, the reply withheld, the socket then closed | caller text `not sent: hub connection closed`. The daemon's own reply was `ok: true, recorded: true`, so the message was accepted although the caller was told it was not sent | 42 ms |
|
|
48
|
+
|
|
49
|
+
How E and F hold the request: a WebSocket proxy on `127.0.0.1` (it refuses an `Origin` header) sits between the channel and the real scratch daemon. It forwards the armed request, keeps the daemon's reply to it, and closes the channel's socket. The hold is the reply, not a sleep, and nothing in `src/` changed. E and F therefore measure the client path (`ControlClient`, `src/hub/control-client.ts` pending-request settlement) against a real daemon's replies. They show that a reply was lost after the daemon answered. They do not measure a daemon that dies in the middle of a request.
|
|
50
|
+
|
|
51
|
+
### Inferred, not measured
|
|
52
|
+
|
|
53
|
+
- Other tools: only `hub_inbox` and `hub_send` ran. Whether every tool shows the same text is not shown.
|
|
54
|
+
- Read from the code at v0.51.0, not run: `src/hub/control-client.ts:289` asks `toolWriteOperation` (`src/hub/tool-request.ts:13`), which names three keyed writes (task propose, review and delivery-done) so a lost reply to one of them is reported as "outcome unknown" with a read to check. `hub_send` is not one of them.
|
|
55
|
+
- Measured (rows E and F): a lost reply to `hub_send` reached the caller as `not sent: hub connection closed`, while the daemon had answered `ok: true, recorded: true`.
|
|
56
|
+
- Inferred, never run: a caller that retries on "not sent" would send the message twice.
|
|
57
|
+
- A hold of up to 30 s with a retryable error that names the upgrade (#1807 AC7) is new behavior. Today B and C return at once, the text names `ahub up`, and `isError` is false.
|
|
58
|
+
|
|
59
|
+
## Row 2: what a Claude turn in flight loses when the daemon is replaced
|
|
60
|
+
|
|
61
|
+
### Observed (person's live run, 2026-12-02, steps 7 to 11 below)
|
|
62
|
+
|
|
63
|
+
| Step | What happened |
|
|
64
|
+
|---|---|
|
|
65
|
+
| 10. `ahub down`, then `ahub up --no-agents --no-console`, during the Claude turn | times printed 06:23:26, 06:23:27 (`hub stopped`), 06:23:28 (`ahub up (ws://127.0.0.1:4940)`): the hub was gone for about 2 s |
|
|
66
|
+
| 11. the turn | it finished and printed `done`; the whole turn took a little over 2 minutes, which matches the 137 s sleep |
|
|
67
|
+
| 11. the TUI | still open |
|
|
68
|
+
| 11. the link | `ahub status --verbose` showed `claude idle ... attached`, `attach channel; evidence: development-channel-launch`, attached 43 s before the command ran |
|
|
69
|
+
|
|
70
|
+
Not recorded: the `ps` line of step 9, the step 8 `attach:` line before the replacement, the exact delay between 06:23:28 and the reattach (the status command's own time was not written down), and whether any hub message or tool result went missing during the turn (not reported either way). `native session unverified` and `always-ask not enforceable` on the same status lines are unrelated to the replacement.
|
|
71
|
+
|
|
72
|
+
### Read from the code (kept from the plan of this row)
|
|
73
|
+
|
|
74
|
+
`ahub restart` is not the right command for this row. It runs `upgrade("restart")` (`upgrade` at `src/cli/main.ts:858`, wired at `:1028`), which can close and recreate the recorded Claude terminal, and its commit waits for the source to be quiet for up to 600 s (`waitForIdle(binding, 600_000, ...)` at `src/cli/upgrade-runtime.ts:881`). The case where the session stays open is not what it tests.
|
|
75
|
+
|
|
76
|
+
The candidate that leaves the terminal alone is `ahub down` followed by `ahub up --no-agents --no-console`:
|
|
77
|
+
- `down` is `kill` (`down` at `src/cli/main.ts:3378`, `kill` at `:3368`), which calls `stopProject` (`src/cli/main.ts:3374`, defined at `src/hub/lifecycle.ts:281`). That sends `kill` to the daemon (`src/hub/lifecycle.ts:290`, handled at `src/hub/daemon.ts:13902`), which stops its peers (`src/hub/daemon.ts:14023`). No terminal command is issued: the open Claude TUI is not closed by it.
|
|
78
|
+
- `up --no-agents` skips the default agents (the check at `src/cli/main.ts:1450`), and `--no-console` skips the console.
|
|
79
|
+
This was read from the code before the run; the observed table above confirms the Claude TUI stays open.
|
|
80
|
+
|
|
81
|
+
## Row 3: what an attached Codex TUI does when its app-server restarts
|
|
82
|
+
|
|
83
|
+
### Observed (person's live run, 2026-12-02, steps 6 and 12 below)
|
|
84
|
+
|
|
85
|
+
- Step 6: Codex answered `ready`.
|
|
86
|
+
- Step 12, after the same replacement as row 2: the Codex TUI stayed open, showed it had lost its server connection, and did not answer `What single word did I ask you to reply with earlier?`. The conversation did not continue.
|
|
87
|
+
- The `ahub status --verbose` output pasted after the replacement listed no `codex` peer.
|
|
88
|
+
- Not recorded: the Codex session or thread id of step 6.
|
|
89
|
+
|
|
90
|
+
### Read from the code (kept from the plan of this row)
|
|
91
|
+
|
|
92
|
+
The Codex app-server is a child of the daemon and ends with it (issue #1807 facts, and the peer stop at `src/hub/daemon.ts:14023`), so the same `ahub down` then `ahub up --no-agents --no-console` isolates it. `ahub restart` would again go through the managed upgrade plan and may close and resume the TUI.
|
|
93
|
+
|
|
94
|
+
## Rehearsal of the hub steps (no agent started)
|
|
95
|
+
|
|
96
|
+
Run on 2026-12-01 with the real 0.51.0 CLI (`ahub --version` printed `0.51.0`; the first rehearsal, on 2026-11-30 with 0.50.0, gave the same outcomes), in a new scratch folder, under `env -i` with only `PATH` (the directory of the installed CLI, `bun` and the system tools) plus `HOME`, `AGENTHUB_HOME`, `AMEM_HOME`, `CLAUDE_CONFIG_DIR`, `CODEX_HOME` and `TMPDIR`, all inside the scratch folder (`HOME` alone does not isolate the hub home). Before `init`: `env` printed exactly those seven variables, and `ahub init --dry-run --json` listed five files to create, all inside the scratch project. Nothing was installed or trusted, and I saw nothing written outside the folder (the dry run named only paths inside it; I did not scan the real homes).
|
|
97
|
+
|
|
98
|
+
| Step | Exit | Important output |
|
|
99
|
+
|---|---|---|
|
|
100
|
+
| `ahub init --agents none --no-memory --no-research --no-snapshots --no-specs --no-jcode-home --autonomy off --yes` | 0 | wrote `.agenthub/config.json`, `.agenthub/routing.toml`, `AGENTS.md`, `.gitignore`, `.agenthub/config.local.json`; one warning that `start.agents` in `config.local.json` is ignored because git cannot confirm the file is untracked (the folder is not a git repository; harmless, because every `up` below uses `--no-agents`) |
|
|
101
|
+
| `ahub up --no-agents --no-console` | 0 | `ahub up (ws://127.0.0.1:4630), state in <project>/.agenthub/state` |
|
|
102
|
+
| `ahub status` | 0 | version 0.51.0; `ok nothing needs attention` (the 0.50.0 run showed one Attention item about an agent CLI on that machine, not part of the hub steps) |
|
|
103
|
+
| `ahub projects` | 0 | one project, state `running`, root the scratch project |
|
|
104
|
+
| `ahub down` | 0 | `hub stopped` |
|
|
105
|
+
| `ahub status` (hub down) | 1 | `no hub running for <project>/.agenthub/state (run: ahub up)` |
|
|
106
|
+
| `ahub up --no-agents --no-console`, `ahub status`, `ahub down` | 0, 0, 0 | same as above; the project showed `stopped` afterwards |
|
|
107
|
+
| the project-id command in step 13.3 below | 0 | printed the one project's id; `ahub projects --json` listed state `stopped` |
|
|
108
|
+
|
|
109
|
+
Left behind by the rehearsal (inside the scratch folder only): the project's five files, `.agenthub/state` (`hub.db`, `events.jsonl`, `hub.log`, `runtime.json`, `project.json`), `registry.db` and `runtime-prune.db` in the scratch hub home, and what the next paragraph lists. No `ahub` process was running afterwards and nothing listened on port 4630.
|
|
110
|
+
|
|
111
|
+
The scratch `HOME` held 13 MB of Bun's cache at the end, and only its `@t@` folder (Bun's transpile cache of the CLI's own files): no package folder, so nothing was downloaded, from my listing of it. Two other things appeared that I did not start on purpose: the hub ran a `jcode` version probe, which wrote a `.jcode` folder and a log under the scratch `HOME` (jcode v1.0.3), and amem created `candidates.db` under the scratch memory home. Nothing was written under the real homes by the rehearsal that I know of; I did not scan them.
|
|
112
|
+
|
|
113
|
+
Not rehearsed: `ahub projects remove` (its help says it forgets a stopped registration and keeps project files), the `attach: channel` line of `ahub status --verbose` (read from `src/cli/output.ts:388` at v0.51.0, never seen with a real attached session), `ahub claude`, `ahub codex`, and anything that needs an account.
|
|
114
|
+
|
|
115
|
+
## Steps for the person (rows 2 and 3)
|
|
116
|
+
|
|
117
|
+
Do not run these from an agent session. Each command can be pasted as it is. These steps and every reference in this document are for ahub 0.51.0 and have been checked on that version only (the hub steps by the rehearsal above; steps 1 to 13 by the person's live run on 2026-12-02, whose results are in rows 2 and 3).
|
|
118
|
+
|
|
119
|
+
Warnings:
|
|
120
|
+
- This uses a real Claude and a real Codex account and spends quota.
|
|
121
|
+
- Steps 4 and 5 (`ahub init` and `ahub up`) register the throwaway project in your real hub home. Step 13 removes that entry.
|
|
122
|
+
- First-start prompts may appear: Codex and Claude Code may ask whether to trust the new folder, Claude Code may ask about the development channel (`ahub claude` starts it with that flag), and Claude Code may ask before running the command in step 9. Approve only this folder and, in step 9, only that one command. If any other request appears, stop and report it. Never choose an "always allow" option.
|
|
123
|
+
- After cleanup, these stay behind and the steps cannot check them: native session history of Claude Code and Codex for this folder, any saved trust entry for this folder in either agent's own settings, any memory or capture records an agent wrote under your real agent and memory homes, and the hub's log lines. Nothing here deletes them. Check Claude Code's and Codex's own trust lists afterwards and remove this folder's entry yourself if you want to.
|
|
124
|
+
- Not verified: that `ahub up` accepts a non-git folder on your machine. The rehearsal did, on 0.51.0. If it refuses, record the refusal text and stop.
|
|
125
|
+
- Not rehearsed by an agent: steps 6 to 12. They need real accounts; the person ran them once on 2026-12-02.
|
|
126
|
+
|
|
127
|
+
What to do when a step fails depends on how far you got. Do not run anything else.
|
|
128
|
+
- Step 1 fails: stop. Run nothing else and delete nothing. The folder was not made by these steps.
|
|
129
|
+
- Step 2 or 3 fails: run only `cd "$HOME" && rmdir "$HOME/ahub-receipt-1807"`. It refuses a folder that is not empty. Run no `ahub` command, and report what you saw.
|
|
130
|
+
- Step 4 or later fails: run step 13, and report what you saw. Step 13 may run only if steps 1 to 3 passed in this same attempt.
|
|
131
|
+
- Step 3 prints a version other than `0.51.0`: stop as for step 3 and report it. These steps must then be checked again on that version. Do not downgrade.
|
|
132
|
+
|
|
133
|
+
1. Creates the folder `ahub-receipt-1807` in your home directory. Expected: no output. Stop if it prints `File exists` or any other error.
|
|
134
|
+
`cd "$HOME" && mkdir ahub-receipt-1807`
|
|
135
|
+
2. Checks that the folder is outside any git repository. Expected: the error `fatal: not a git repository` (this is the passing result). Any other output or error, including `true`, is a failure.
|
|
136
|
+
`cd "$HOME/ahub-receipt-1807" && git rev-parse --is-inside-work-tree`
|
|
137
|
+
3. Checks the CLI. Expected: `0.51.0`. Anything else is a failure.
|
|
138
|
+
`cd "$HOME/ahub-receipt-1807" && ahub --version`
|
|
139
|
+
4. Writes five files in that folder (config, routing, `AGENTS.md`, `.gitignore`, local config) and adds the project to your real hub home. Expected: five `wrote` lines and one warning about `start.agents`. Stop on any other warning or error.
|
|
140
|
+
`cd "$HOME/ahub-receipt-1807" && ahub init --agents none --no-memory --no-research --no-snapshots --no-specs --no-jcode-home --autonomy off --yes`
|
|
141
|
+
5. Starts this project's hub only. Expected: `ahub up (ws://127.0.0.1:<port>), state in <folder>/.agenthub/state`, exit 0. Stop on a refusal.
|
|
142
|
+
`cd "$HOME/ahub-receipt-1807" && ahub up --no-agents --no-console`
|
|
143
|
+
6. Starts Codex (this asks Codex to use your account), in terminal B. In that terminal send exactly `Reply with the single word ready.` and wait for the answer.
|
|
144
|
+
`cd "$HOME/ahub-receipt-1807" && ahub codex`
|
|
145
|
+
Then, in a third terminal, record what the hub shows for Codex. Write down any session or thread id it lists, or `not shown`. Do not use `ahub codex resume`.
|
|
146
|
+
`cd "$HOME/ahub-receipt-1807" && ahub status --verbose`
|
|
147
|
+
7. Starts Claude (this asks Claude Code to use your account), in terminal A. Expected: the Claude Code TUI opens.
|
|
148
|
+
`cd "$HOME/ahub-receipt-1807" && ahub claude --session-id "$(uuidgen | tr 'A-Z' 'a-z')"`
|
|
149
|
+
8. Checks the link before any timed prompt. In the third terminal, find the `claude` peer and its `attach:` line. Expected: `attach: channel`. If it says `tools-only`, or there is no `attach:` line, or `claude` is not listed, stop.
|
|
150
|
+
`cd "$HOME/ahub-receipt-1807" && ahub status --verbose`
|
|
151
|
+
9. In terminal A send exactly this prompt: `Run this shell command in the foreground, with a timeout of 300000 ms, and then reply with the single word done: bun -e "await Bun.sleep(137000)"`. Then, while it is running, confirm it is really running. Expected: one or more lines naming `Bun.sleep(137000)` with an elapsed time under two and a half minutes. Stop if there is none. If Claude refuses the command, runs it in the background, changes it or asks for a different one, record exactly what it did and stop. Do not retry.
|
|
152
|
+
`ps -axo pid,etime,command | grep "[B]un.sleep(137000)"`
|
|
153
|
+
10. While that command is still running: records the UTC time, stops this project's hub, records the time, starts it again without agents or console, records the time. It stops at the first failure, so `up` does not run if `down` fails. Expected: three times and `hub stopped`. Write all three times down. If `down` fails, do not start the hub again: go to step 13.
|
|
154
|
+
`cd "$HOME/ahub-receipt-1807" && date -u +%T && ahub down && date -u +%T && ahub up --no-agents --no-console && date -u +%T`
|
|
155
|
+
11. Record for Claude (row 2): does the turn finish and print `done`; is the TUI still open; is any tool result or hub message missing or an error shown; does `ahub status --verbose` show `claude` with `attach: channel` again, and after how many seconds from the third time in step 10.
|
|
156
|
+
`cd "$HOME/ahub-receipt-1807" && ahub status --verbose`
|
|
157
|
+
12. Record for Codex (row 3): is the TUI still open; does it show a disconnect or an error. Then, in the same Codex TUI, send exactly `What single word did I ask you to reply with earlier?` An answer of `ready` shows the same conversation continued; a different answer or an error shows it did not. Record the answer. Then look at the hub's view and compare with step 6:
|
|
158
|
+
`cd "$HOME/ahub-receipt-1807" && ahub status --verbose`
|
|
159
|
+
13. Cleanup. Run it only if steps 1 to 3 passed in this same attempt.
|
|
160
|
+
1. Close both TUIs (Claude Code and Codex) yourself.
|
|
161
|
+
2. Stops this project's hub. Expected: `hub stopped`. If it says no hub is running for this folder, that is fine: continue. Any other error: stop and report it, and do nothing else.
|
|
162
|
+
`cd "$HOME/ahub-receipt-1807" && ahub down`
|
|
163
|
+
3. Prints this project's id. Expected: exactly one line starting `p_`. If it prints the `expected exactly one project` error instead (for example because step 4 failed before the project was registered), stop here, report it and delete nothing.
|
|
164
|
+
`cd "$HOME/ahub-receipt-1807" && ahub projects --json | bun -e 'const rows = JSON.parse(await Bun.stdin.text()); const hit = rows.filter(r => r.root === process.cwd()); if (hit.length !== 1) { console.error("expected exactly one project for this folder, found " + hit.length); process.exit(1); } console.log(hit[0].id);'`
|
|
165
|
+
4. Removes that registration from your real hub home (the folder's files are kept). It reads the id again and runs `remove` only if that worked. Expected: no error. This is the one step the rehearsal did not run. If it fails, keep the folder, do nothing else and report it.
|
|
166
|
+
`cd "$HOME/ahub-receipt-1807" && id="$(ahub projects --json | bun -e 'const rows = JSON.parse(await Bun.stdin.text()); const hit = rows.filter(r => r.root === process.cwd()); if (hit.length !== 1) { console.error("expected exactly one project for this folder, found " + hit.length); process.exit(1); } console.log(hit[0].id);')" && ahub projects remove "$id"`
|
|
167
|
+
5. Deletes only the throwaway folder. Run it only if 13.4 succeeded; otherwise keep the folder and report.
|
|
168
|
+
`cd "$HOME" && rm -r "$HOME/ahub-receipt-1807"`
|
|
169
|
+
|
|
170
|
+
## Decisions made from this receipt
|
|
171
|
+
|
|
172
|
+
Decided by the person on 2026-12-02, after rows 2 and 3 above:
|
|
173
|
+
- "Kept sessions do not block the commit": yes. A kept session with a turn in flight does not hold up the upgrade commit. Revisit when a kept turn is seen losing a delivery or a receipt.
|
|
174
|
+
- "Adopt the running Codex app-server instead of restarting it": no. The app-server stays a child of the daemon; an upgrade gives an attached Codex session a `resume` row instead of `keep`. Revisit when Codex changes its app-server lifecycle.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# #1811 T6: is the hub plugin installed in each Orca Claude profile home?
|
|
2
|
+
|
|
3
|
+
Date: 2026-12-01. Refs #1811 (T6, AC8). Read-only: `orca account list --json` on the installed Orca, then a check of each listed Claude home for the plugin entry in `plugins/installed_plugins.json` and for the plugin name in `settings.json`. No Orca state, account or home was changed. The receipt names no email, account id or home path: accounts are counted in the order Orca lists them.
|
|
4
|
+
|
|
5
|
+
## Observed
|
|
6
|
+
|
|
7
|
+
- Orca lists 2 managed Claude accounts. Both carry a `home` field.
|
|
8
|
+
- Account 1: its home exists. `plugins/installed_plugins.json` and `settings.json` both name the agent-hub plugin. Verified installed.
|
|
9
|
+
- Account 2: its home does not exist on this machine, so nothing can be read there. Unverified.
|
|
10
|
+
- The base `~/.claude` home also names the plugin; it is not an Orca profile home and is not counted.
|
|
11
|
+
|
|
12
|
+
## Decision
|
|
13
|
+
|
|
14
|
+
- The matrix row `tui-open.orca.tui-only` answers the plugin-in-profile question as unverified instead of unknown: one of two profile homes is verified here, and the other cannot be read on this machine.
|
|
15
|
+
- The row stays unverified until a machine where every listed home exists is read the same way. `ahub accounts import --from orca` (T4) lists the homes Orca carries, so a person can repeat this check per label.
|
|
16
|
+
|
|
17
|
+
## What this does not show
|
|
18
|
+
|
|
19
|
+
One machine, one Orca version, two accounts. A profile home that Orca creates later is not covered.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# #1811 T2: what does `orca agent list --json` carry?
|
|
2
|
+
|
|
3
|
+
Date: 2026-12-01. Refs #1811 (T2, AC3). Read-only: `orca agent list --json` and `orca agent list --help` on the installed Orca 1.4.283 in an Orca pane. Field names and counts only; no title, message or id value is recorded here.
|
|
4
|
+
|
|
5
|
+
## Observed
|
|
6
|
+
|
|
7
|
+
- The answer is `{ id, ok, result }` with `result` keys `agents`, `hostScope` and `truncated`.
|
|
8
|
+
- Every `agents` row has these keys: `agent`, `hostId`, `kind`, `lastAssistantMessage`, `orcaSessionId`, `paneKey`, `repo`, `state`, `title`, `updatedAt`, `workspace`, `worktreeId`.
|
|
9
|
+
- `state` took the values `done`, `working` and `waiting` in the live list. `--help` names a fourth, `blocked`, and says blocked and waiting both mean the agent needs a person, which one appears depending on the agent. `kind` took `terminal` and `chat`.
|
|
10
|
+
- `paneKey` is the pane's `tabId:leafId`, the same value `ORCA_PANE_KEY` holds (see the 2026-12-01 pane-key receipt). `worktreeId` is the id the launch record keeps.
|
|
11
|
+
- `--worktree <selector>` takes `id:<repo-id>::<path>`, so `id:<worktreeId>` filters to one worktree.
|
|
12
|
+
|
|
13
|
+
## Decision
|
|
14
|
+
|
|
15
|
+
- The hub reads `orca agent list --json --worktree id:<worktreeId>` (the record's worktree id, not the workspace id the spec text names, which the list does not carry) and takes the one row whose `paneKey` equals the record's. No row, several rows, an unreadable answer, a nonzero exit or a timeout raise nothing.
|
|
16
|
+
- `blocked` and `waiting` both raise the item. A pane in any other state does not.
|
|
17
|
+
|
|
18
|
+
## What this does not show
|
|
19
|
+
|
|
20
|
+
The `blocked` value itself, and a pane at a permission prompt, mid-turn and idle, were not captured: the live list held no `blocked` row, and the first step the spec names (recording those three states) needs a Claude pane at a prompt. The parse accepts `blocked` by the `--help` text, and the test fakes use the row shape above.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# #1811 T1: what does Orca's terminal JSON carry for a pane key?
|
|
2
|
+
|
|
3
|
+
Date: 2026-12-01. Refs #1811 (T1, AC2). Read-only: `orca terminal list --json` and `orca terminal show --json` on a live Orca 1.4.283, run by the task reviewer in a hub session that runs in an Orca pane. Field names and equalities only; no value is recorded here.
|
|
4
|
+
|
|
5
|
+
## Observed
|
|
6
|
+
|
|
7
|
+
- Every `terminal list` row has these keys: `agentIdentity`, `branch`, `connected`, `executionHostId`, `handle`, `incarnationId`, `lastOutputAt`, `leafId`, `orphaned`, `paneTitle`, `preview`, `ptyId`, `recordedPaneKey`, `tabId`, `title`, `worktreeId`, `worktreePath`, `writable`.
|
|
8
|
+
- No row has `paneKey` or `workspaceId`. `terminal show` has no pane key field either.
|
|
9
|
+
- In the checked pane, `ORCA_PANE_KEY` equals `${tabId}:${leafId}` of that pane's own list row, and `ORCA_TAB_ID` equals the row's `tabId`.
|
|
10
|
+
- `recordedPaneKey` is on 33 of 97 rows and matched `tabId:leafId` on none of them, so it is not used.
|
|
11
|
+
- `ORCA_WORKSPACE_ID` has no list field to compare against.
|
|
12
|
+
|
|
13
|
+
## Decision
|
|
14
|
+
|
|
15
|
+
- The hub derives a listed terminal's pane key as `tabId:leafId` (`paneKeyOf` in `src/cli/terminal-recovery.ts`) and compares it with the recorded `ORCA_PANE_KEY`. The workspace id is recorded but is not part of the match.
|
|
16
|
+
- A match by pane key needs the same worktree id, exactly one record with that key, and Orca naming the peer as the agent in that pane (`agentIdentity`, via `identityFrom`). A different incarnation in a recorded pane with no agent identity, or another agent's, is never bound, so a pane the person reused for a plain shell is not a peer candidate.
|
|
17
|
+
- The spec text of #1811 says recovery tries the pane key second and lists the workspace id in the record; the first holds, the second is recorded for the companion and unused by recovery.
|
|
18
|
+
|
|
19
|
+
## What this does not show
|
|
20
|
+
|
|
21
|
+
One pane on one Orca version. A pane key with another shape on an older Orca would simply not match, and recovery then behaves as before.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Receipt: can the hub prove the real Claude process started after a quota renewal (#1819 AC1)
|
|
2
|
+
|
|
3
|
+
Date: 2026-12-02. Method: reading the code on main plus fake processes in a scratch folder (nothing committed). No real session, account identity, credential or home path was read, printed or hashed.
|
|
4
|
+
|
|
5
|
+
## Verdict
|
|
6
|
+
|
|
7
|
+
**Not shown.** The hub holds process identity evidence (a pid and a hashed `ps` signature). That proves which process is which. It does not carry a start time the hub can compare with a renewal time, and nothing ties a process to an account. T2 is not started from this task.
|
|
8
|
+
|
|
9
|
+
## Evidence the hub has
|
|
10
|
+
|
|
11
|
+
| Evidence | Where | Proves | Does not prove |
|
|
12
|
+
|---|---|---|---|
|
|
13
|
+
| `processSignature(pid)`: sha256 of `ps -o lstart=,comm=` (C locale, UTC) | `@staix/agent-mem/platform`, re-exported by `src/pi/process-signature.ts` | The pid is still the same process that was signed. A reused pid gives a different signature, so `processLiveness` returns `gone`. | The start time: it is hashed and one-way, so it cannot be ordered against a renewal. `lstart` has whole-second resolution. It says nothing about the account. |
|
|
14
|
+
| `launcherPid` + `launcherSignature` in the claude-launch record (`src/hub/claude-launch-proof.ts`, `src/cli/launch.ts`) | written by `ahub claude` at launch | The wrapper process that the hub launched is the same one now. | That the wrapper is the real Claude process, or when it started relative to a renewal. |
|
|
15
|
+
| `nativePid` + `nativeSignature` (`recordClaudeNative`) | `src/cli/launch.ts` | The native child was recorded and is a descendant of the launcher (`descendantsOf` in `src/hub/terminal-launch.ts`). | Its start time against a renewal, or its account. |
|
|
16
|
+
| `launchId`, `nativeSessionId`, `forecastSession` | launch record, `src/hub/budget.ts` | One launch and its session id are the same ones across messages. | Anything about the process start. A session id is an id, not a clock. |
|
|
17
|
+
|
|
18
|
+
## Cases
|
|
19
|
+
|
|
20
|
+
| Case | Shown? | Reason |
|
|
21
|
+
|---|---|---|
|
|
22
|
+
| Session started before the renewal | Not shown | The signature is stable for that process but no stored timestamp exists to compare with the renewal instant. |
|
|
23
|
+
| Session started after the renewal | Not shown | Same. The hub cannot tell "after" from "before" without a recorded start time. A new session is never evidence of its account. |
|
|
24
|
+
| Resumed session (`--resume`, same `nativeSessionId`) | Not shown | A resume keeps the session id while the process is new. The id then says nothing about the process start, and a new process under a resumed id proves nothing about the account either. |
|
|
25
|
+
| Restarted hub | Partly | The launch record is on disk and the signature is recomputed from `ps`, so identity of a still-running process survives a hub restart. The start time is still not comparable. |
|
|
26
|
+
| Reused pid | Shown (identity only) | A different `lstart` or `comm` changes the hash, so `processLiveness` reports `gone`. Limit: two processes with the same pid, same command name and same whole second would collide, which is not a practical case. |
|
|
27
|
+
|
|
28
|
+
## Status-line tee readings since #1842 (base origin/main at or after c1f6f8a22)
|
|
29
|
+
|
|
30
|
+
The older claim that every session writes one `claude-usage.json` is out of date. `src/cli/statusline-tee.ts` now writes two files per redraw:
|
|
31
|
+
|
|
32
|
+
| File | Fields | Ties reading to |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| `claude-usage.json` | `at` (write time), `peer`, `sessionId`, `launchId` (both only when a valid UUID), `home` (hashed tag, default home when `CLAUDE_CONFIG_DIR` is unset), `rate_limits` | a session, a launch and a home, but only the last writer: any session of any home overwrites it |
|
|
35
|
+
| `claude-usage.<homeTag>.json` (only when `CLAUDE_CONFIG_DIR` is absolute) | `at`, `peer`, `rate_limits` | a home only. No session or launch id. Last writer within that home |
|
|
36
|
+
|
|
37
|
+
What this changes:
|
|
38
|
+
- A tagged reading proves a live Claude status line under that home emitted a reading at `at`. If `at` is after the renewal and `resets_at` moved, that process was running after the renewal. It does not say when it started.
|
|
39
|
+
- The untagged file adds `sessionId` and `launchId`, so one reading can be tied to a launch record (`launchId`) and through it to `nativePid` and its signature. That shows "this launch was alive after the renewal", and only while no other session overwrote the file.
|
|
40
|
+
- The home tag is a hash of the config dir. It tells homes apart. It does not identify an account: two homes may be one account, and one home may be re-logged into another account. So home is a proxy for account and never proof.
|
|
41
|
+
- `at` is the tee's own clock, not the process start. A session started before the renewal keeps writing readings after it, so a post-renewal reading cannot tell "started after" from "was running across it". This is the case that stays not shown.
|
|
42
|
+
|
|
43
|
+
Updated cases: started after the renewal is still not shown as a start. What is shown is liveness after the renewal, tied to a launch (untagged, last writer) or to a home (tagged). A resumed session writes the same `sessionId` from a new process, so `launchId` plus the native signature, not the session id, must separate the two processes.
|
|
44
|
+
|
|
45
|
+
## What would be needed (not built here)
|
|
46
|
+
|
|
47
|
+
The hub would have to record the raw process start (not only its hash) at launch, and a renewal instant from a source it trusts, then compare. That is product change, so it is out of this receipt and goes to T2 only if the person asks for it.
|
|
48
|
+
|
|
49
|
+
## Commands for the person (needs a real session, not run)
|
|
50
|
+
|
|
51
|
+
1. Start `ahub claude`, note the time, then wait for a renewal and start a second one.
|
|
52
|
+
2. In each, run `ps -p <native pid> -o lstart=` for the native process (read the pid from `ahub status`) and compare the two times with the renewal time. This shows process start only. It still does not show the account.
|
|
53
|
+
|
|
54
|
+
AC1 remains open for the real-process legs.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Antigravity 1.5.21 account-free compatibility receipt
|
|
2
|
+
|
|
3
|
+
Date: 2026-12-02. Hub task 1268, Refs #843. Repeats the [1.5.3 procedure](2026-11-08-agy-1.5.3.md) with the producers now kept in the repository under [`agy/`](agy/README.md).
|
|
4
|
+
|
|
5
|
+
**Decision: add exact 1.5.21 to verified.** All five legs passed on one scratch copy of the installed executable: CLI surface, synthetic plugin MCP and hooks, the new permission leg, normal close through the tmux helper, and the actual-launcher nonce through `ahub agy`. The accepted 1.4.x line is unchanged, and other 1.5.x versions stay refused without person trust. This is compatibility evidence, not an account, model or headless ACP qualification.
|
|
6
|
+
|
|
7
|
+
## Exact executable and isolation
|
|
8
|
+
|
|
9
|
+
- Host macOS 27.2.1 arm64, Bun 1.4.4, tmux 3.8. Native `--version`: 1.5.21. SHA-256 of the executable `fcfb9a1f8858539d5614be91dd7466becaeeb7df48ef046c6bfa13594478c905`, 231,602,128 bytes. The legs ran from a scratch copy made with `cp -p` that kept this hash before and after. The installed `~/.local/bin/agy` was hashed before and after the series (SHA-256, size, mtime, inode and directory entry count of 42) and never run. It did not change.
|
|
10
|
+
- Source base `1f5261dd143f48382c9326640d6719d7bccced33`, the commit the worktree branched from, with the producers uncommitted beside it. `src`, `package.json`, `bun.lock`, `.bun-version`, the routing template and the plugin bundle matched that commit. agent-mem 0.45.0.
|
|
11
|
+
- The controller `agy/run-probe.py` ran under `env -i` with scratch HOME, XDG directories, TMPDIR and AGENTHUB_HOME, `AGY_CLI_DISABLE_AUTO_UPDATE=1` and `--results-dir` outside the repository. It then built its own fresh 0700 roots. Each leg ran through `dot admit`, one native job at a time, and waited out deferrals. Every agy invocation ran under Seatbelt with the profile of 1.5.3: typed and canonical real-home reads and writes denied, native egress only to the fixture provider and, for the launcher, its own control port.
|
|
12
|
+
- After each leg the controller compared five named real Gemini config entries and the scratch binary with their state before. All matched, owned process groups were gone and the private roots were removed.
|
|
13
|
+
|
|
14
|
+
## Results per leg
|
|
15
|
+
|
|
16
|
+
| Leg | Result |
|
|
17
|
+
| --- | --- |
|
|
18
|
+
| CLI surface | Passed. `--version` 1.5.21; `--help` lists `--continue`, `--conversation`, `--disable-slash-commands`, `--input-format`, `--output-format`, `--print`, `--prompt-interactive`, `--project`, `--remote-control` and `--sandbox`; `--acp` and `--new` exit 2; the twelve historical subcommands and `acp` are present; `mcp list` in the empty project reports no servers. |
|
|
19
|
+
| Synthetic plugin MCP and hooks | Passed, 4 provider requests with 18 declarations each. Two exact `call_mcp_tool` calls (`hub_task_show` id 1, then `hub_review`), one `read_file` with Path, StartLine and EndLine, six hook phases and 16 hook rows, native init with 60 tools and permission mode request-review. |
|
|
20
|
+
| Permission leg for the new functions | Passed. See below. |
|
|
21
|
+
| Normal close (tmux helper) | Passed: ready, normal exit, closed marker, no agy started, cleanup confirmed. |
|
|
22
|
+
| Actual-launcher nonce through `ahub agy` | Passed: managed files bound, fixture exact trust only in a fresh scratch hub home, one `call_mcp_tool` for `hub_inbox`, nonce read back in a later provider request, canonical `agy` only, `/exit` normal close with the resume line, managed files removed, bystander files unchanged, slot released, zero external or unrelated loopback fetches. 5 provider requests. |
|
|
23
|
+
|
|
24
|
+
## The 18 declarations and their permission evidence
|
|
25
|
+
|
|
26
|
+
1.5.21 declares 18 functions in print mode: the 15 of 1.5.3 plus `run_workflow`, `swarm` and `update_steps`. The person ruled on 2026-12-02 to accept all three, so the hooks leg now compares against the exact list of 18 and an unknown 19th still fails. (The first run on 1.5.21 found an 18th name only after the card expected 17. The producer now reports unexpected names, and `update_steps` was accepted in a separate ruling.)
|
|
27
|
+
|
|
28
|
+
The permission leg (`agy/permission-new-functions.ts`) uses the model-free fixture provider. It asks agy to call each of the three functions once, with arguments built from the declared schema, under the hub's own hook shape: a PreToolUse hook that records the call and returns no decision, so native permission handling is left alone. There are no allow rules in the fixture settings.
|
|
29
|
+
|
|
30
|
+
| Function | PreToolUse hook saw it | PostToolUse row | Native refusal observed | Outcome |
|
|
31
|
+
| --- | --- | --- | --- | --- |
|
|
32
|
+
| `run_workflow` | yes, once | none | yes | Refused by agy after the hook saw it |
|
|
33
|
+
| `swarm` | yes, once | none | yes | Refused by agy after the hook saw it |
|
|
34
|
+
| `update_steps` | yes, once | none | yes | Refused by agy after the hook saw it |
|
|
35
|
+
|
|
36
|
+
Across the leg there was no file change in the project and working directories (before and after hashes equal), no process that ran the binary or ran from the owned root after the run, and four bounded provider requests. None of the three functions did anything: the hook saw each call before any effect and agy then refused it, so neither the hub gate nor native permission was bypassed. "Refusal observed" is a boolean over the following provider request, never serialized text.
|
|
37
|
+
|
|
38
|
+
## Differences from 1.5.3, and harness changes
|
|
39
|
+
|
|
40
|
+
- **Setup screens.** The 1.5.21 TUI still shows the intro, the privacy checkbox and the folder trust prompt, and the producer's setup states matched them without a second barrier (`introKeySent`, `privacyToggleKeySent`, `fixtureTrustKeySent` and `knownReadinessObserved` all true). The folder trust prompt still appears, and only the fixture's exact trust answers it, so that part is unchanged. The word "permission" on the first screen belongs to the hub's own banner ("native permissions unmanaged"), not a pending prompt, and no key answered any prompt beyond the three known ones.
|
|
41
|
+
- **Hub tools reach the TUI one turn later.** In 1.5.3 the second user prompt already produced the MCP call. In 1.5.21 the first two tool-bearing requests carry 15 declarations without `call_mcp_tool`, `list_resources` or `read_resource`, and from the third turn they carry 18. A first launcher run with the old two-turn limit ended with `setup_barrier_unobserved` at `nonce_readback`, because the producer sent only one hub prompt. The producer now sends the hub prompt up to four turns and records `hubToolsFromTurn` (3). The nonce, identity and normal-close assertions are unchanged. Whether the later attachment is lazy loading or a change of the native flow is unknown.
|
|
42
|
+
- **agent-mem check.** The launcher compared the installed agent-mem version to an exact pin, but `package.json` now declares a range. It now requires the installed version to satisfy that range.
|
|
43
|
+
- **Scrubbed originals.** The four original producers keep their absolute personal paths in their original form, so their copies in `agy/originals/` replace those paths with placeholders. `agy/originals.json` records both the original hash from the 1.5.3 receipt and the scrubbed hash that the launcher verifies.
|
|
44
|
+
- **Parameters.** The version fence takes `--version`, the originals root and the repository root are derived from the checkout, producer JSON goes to `--results-dir`, and the launcher records the source head instead of one fixed commit.
|
|
45
|
+
|
|
46
|
+
## Producer and artifact hashes
|
|
47
|
+
|
|
48
|
+
| File | SHA-256 |
|
|
49
|
+
| --- | --- |
|
|
50
|
+
| `agy/run-probe.py` | `7a90a749faf08879d5fef9cdcc240031ac2a0d7385f630dfc2b223e9c936fe7b` |
|
|
51
|
+
| `agy/runtime.ts` | `edeca06043bb743ea188477d86b438160dc1af79bf901867b4cdb37e782d97b9` |
|
|
52
|
+
| `agy/cli-surface.ts` | `1793da2e88724836f85cee334388549535649a11c2e87575b1f2ef9b7866c02f` |
|
|
53
|
+
| `agy/native-hooks.ts` | `bf657c737c0ebf1db2d872b29dddb9952356fd24c486c3f3b2ce4b4b1c8b684c` |
|
|
54
|
+
| `agy/permission-new-functions.ts` | `41f36dd68e4338050102b3f45d95a529ef08d73d028738043637940c961dfeed` |
|
|
55
|
+
| `agy/launcher-nonce.ts` | `715fd17c1d998cba6237c1667c0ef06b7cfcd7c06854c7d8c6dfa023fd517333` |
|
|
56
|
+
| `agy/tmux-helper-control.ts` | `a13c7a4b1702be7f667857eee0fd9f805c16441fd0f0b9e44ce1b7d962c76373` |
|
|
57
|
+
| `agy/tmux-session.ts` | `6b2f6f9216a3e2f2c3a6d4c5950b7bfe24a7162d0a331356b855ce04287253e0` |
|
|
58
|
+
| `agy/interactive-bridge.ts` | `d87cb1db044cf1c036f7a41b06bf3023ab8d0b81e957e0302b154d54656d8348` |
|
|
59
|
+
| `agy/interactive-session.ts` | `f8a06759abead1629998593d57c0cfac69f5d488e44a0d88b549fe0d9a92febc` |
|
|
60
|
+
| `agy/originals.json` | `cf55a9ba00259b77ad66456ec5a76f117197188ee71d5aa613845e324d5cd19c` |
|
|
61
|
+
|
|
62
|
+
The 1.5.3 receipt's hashes for `tmux-helper-control.ts`, `tmux-session.ts`, `interactive-bridge.ts` and `interactive-session.ts` are unchanged. The others changed for the parameters above. The hooks producer hash that the launcher pins is the one in this table.
|
|
63
|
+
|
|
64
|
+
| Local result | SHA-256 |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| CLI surface | `23e718697fb707b065aafc7834751208102b8a58868c743f3711eec020e3e2c1` |
|
|
67
|
+
| Hooks | `3c340ebf3c5580cdecfa01ec4c7f6a2fdae2703b0a3779319a7fe4c0b8a3b58d` |
|
|
68
|
+
| Permission leg | `c85b5e262198bb8acb396d89f08fa40a728edf1575f59b29a8dba64a8d5df535` |
|
|
69
|
+
|
|
70
|
+
The launcher's bundle hash was `82fed12668ccc4bca59a307f55c9fac458f3a99a5e65fecacaca68ef55efce37`.
|
|
71
|
+
|
|
72
|
+
## Evidence boundaries
|
|
73
|
+
|
|
74
|
+
This covers the account-free CLI, plugin MCP, hooks, permission refusal for the three new functions, normal close and launcher nonce on macOS arm64. Real accounts, real model behavior, headless ACP, the native permission mapping for any allowed tool, a user approving a prompt, and Linux builds remain unverified. The permission leg proves refusal under print mode with no allow rule, not what an allow rule would do for these functions. The launcher leg also asserts that the stock gate still refuses the candidate (`stockGateStillRefuses`), so it only runs before the version is in `verified`. Run it on the next candidate, not on 1.5.21 again.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Claude Code 2.1.334 headless implementer receipt
|
|
2
|
+
|
|
3
|
+
Date 2026-12-02 UTC. Refs #888, hub task 1266. This repeats the [2.1.332 procedure](2026-11-25-claude-implementer-2.1.332.md) on macOS arm64 with Bun 1.4.4. Source base `3d2b0f1b7c55a7a39b3f1b90b276d3a2a5de2bd4`.
|
|
4
|
+
|
|
5
|
+
Both binaries passed all 44 cases, 22 per binary. The case results were identical after excluding the version, binary hash, paths and elapsed time. This qualifies exact `2.1.334` for `claude-implementer`.
|
|
6
|
+
|
|
7
|
+
## Binary and producer identity
|
|
8
|
+
|
|
9
|
+
The 2.1.332 control came from the npm `@anthropic-ai/claude-code-darwin-arm64` package. Its package SHA-512 matched the npm integrity value, and its binary SHA-256 matched the previous receipt. The 2.1.334 candidate was a scratch copy of the installed binary, checked by exact version. The real installed `claude` was never run. Both binaries kept their SHA-256 across the runs.
|
|
10
|
+
|
|
11
|
+
| File | SHA-256 |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| `Claude Code 2.1.332 control` | `5b8214f8f082f3187420b27b4063b9b4f4d9412cd66ea436d6d1966ad582700f` |
|
|
14
|
+
| `Claude Code 2.1.334 candidate` | `99400f510692e6ff7ce1a5b816c2e88ad5ac8f67e4aac6dfca57d3ac6f6a127d` |
|
|
15
|
+
| `claude-permission-transport-native.py` | `c8e82c66a8cf2faf4f4930da21ca81e36166381fd932219cb60e3cec541af10b` |
|
|
16
|
+
| `claude-shell-wrapper-native.py` | `ad891f5b9663e14e3f44febd787500a8ced815125c489adadddcdeb279f64826` |
|
|
17
|
+
| `claude-shell-wrapper-host.ts` | `616e6711e392f0eee7e3fa1c7bdc47a537dfa86bcc8ffb30e549ca94e5a71cef` |
|
|
18
|
+
|
|
19
|
+
## Model-free runs
|
|
20
|
+
|
|
21
|
+
Resource admission allowed one native job at a time. The producer ran with an empty inherited environment, scratch `HOME`, `AGENTHUB_HOME` and Claude config, and a fixed PATH. The native children had fresh fixture homes and configs, strict MCP settings, and a deterministic loopback provider with a synthetic API key. The scratch hub home stayed empty. The wrapper producer fences one exact version per run, so it ran once per binary with `--expected-version`.
|
|
22
|
+
|
|
23
|
+
| Leg | 2.1.332 | 2.1.334 |
|
|
24
|
+
| --- | --- | --- |
|
|
25
|
+
| Write permission transport | 9/9 | 9/9 |
|
|
26
|
+
| Bash transport with `mcp__agent-hub__hub_permission_request` and required tool-use ID | 9/9 | 9/9 |
|
|
27
|
+
| Bash transport with `--rewrite-bash` | 2/2 | 2/2 |
|
|
28
|
+
| Host shell wrapper | 2/2 | 2/2 |
|
|
29
|
+
|
|
30
|
+
The wrapper context case and the normalized case matched across both binaries. Every leg reported `certified: true` with no account and no inference.
|
|
31
|
+
|
|
32
|
+
## Receipt artifact hashes
|
|
33
|
+
|
|
34
|
+
| Local JSON receipt | SHA-256 |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| write (both binaries) | `81c7e51dbacfac4db8c258bbe7fe25b1436ab1dc9d459b022c764f5d1fa97364` |
|
|
37
|
+
| bash (both binaries) | `4b6c6827132348757543b23ff10d09a0ae67a919ed7862bb604e13e244693acc` |
|
|
38
|
+
| rewrite (both binaries) | `0d2079dceecc9327d8e6c9267036e72d8bb963d78c7c822ed33e82961a66b974` |
|
|
39
|
+
| wrapper, 2.1.332 | `a562d1e52159f6171d1a60bb0fec99670d506df0db1c9d4005ee23e25957be64` |
|
|
40
|
+
| wrapper, 2.1.334 | `912890c14492da32c390dbf83837efbbaea124596769303baa1e6f39e7a4b058` |
|
|
41
|
+
|
|
42
|
+
## Evidence boundaries
|
|
43
|
+
|
|
44
|
+
The run covers the native transport and host-wrapper contract on macOS arm64. Account authentication, real provider inference, person approval interaction, session resume, production-daemon task binding and native sandbox confinement remain unverified. Monitor, mod-initiated calls and opt-in Code Mode were outside the fixture scope. The existing launch-time binary fence still applies.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# CLI import graph verification
|
|
2
|
+
|
|
3
|
+
AC3 targets are under 40 ms and under 40 MB peak RSS. After T5 both commands missed them (80 ms, 63 MB). After T7 both meet them (10 ms, under 23 MB). The measured build was 0.51.0 on the same macOS arm64 workstation as the 0.50.0 baseline: T5 at `1f5261dd1`, T7 at its pull request head on top of `b0655e993`.
|
|
4
|
+
|
|
5
|
+
| Command | Before wall time | Before peak RSS | After T5 wall time | After T5 peak RSS | After T7 wall time | After T7 peak RSS |
|
|
6
|
+
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
|
7
|
+
| `ahub version` | 150 ms | 89,882,624 bytes | 80 ms | 63,291,392 bytes | 10 ms | 16,662,528 bytes |
|
|
8
|
+
| `ahub instruction-hook` (non-tools, empty stdin) | 160 ms | 90,472,448 bytes | 80 ms | 63,651,840 bytes | 10 ms | 22,757,376 bytes |
|
|
9
|
+
|
|
10
|
+
The baseline is the AC3/AC4 comment on [#1778](https://github.com/STAIxBWLB/agent-hub/issues/1778). For the after runs, a tarball from this checkout was installed in a scratch directory with agent-mem 0.45.0 and cli-output 0.1.5. The installed binary was invoked five times per command with empty stdin and `/usr/bin/time -l env -i`. The scratch installation's binary directory was first on PATH, and HOME, AGENTHUB_HOME and AMEM_HOME pointed inside the scratch directory. The fastest reported wall time wins, with peak RSS breaking ties at the timer's 10 ms resolution. No live account was used.
|
|
11
|
+
|
|
12
|
+
T7 added `src/cli/light-dispatch.ts`. `main.js` calls it after the Bun version check and the instructed-child WebSocket fence, which stay unconditional and first. For exactly `ahub version`, `ahub --version` or `ahub instruction-hook`, with none of the caller markers `detectCliIdentity` reads (`AGENTHUB_PEER_ID`, `CLAUDECODE`, `CLAUDE_CODE_SESSION_ID`, `CODEX_THREAD_ID`) and no recovery, instructed-child or project marker, it loads the command module through `command-table.ts` and never loads `main.ts`, `src/hub/config.ts` or `src/cli/console-state.ts`. Every other invocation falls through to `main.ts` unchanged: the same version run with `CLAUDECODE=1` still takes that path and measured 80 ms and 63,094,784 bytes in this run. `scripts/check-import-graph.ts` now also fails, naming the import path, if `main.ts` or `src/hub/config.ts` becomes reachable from `light-dispatch.ts`, `commands/version.ts` or `commands/instruction-hook.ts`.
|
|
13
|
+
|
|
14
|
+
Remaining on the shared path: an agent-marked `instruction-hook` (the tools role, which connects to the hub) and every flagged or other command still load `main.ts` with its static imports of `src/hub/config.ts` and `src/cli/console-state.ts`. AC3 names the non-tools caller, so those are outside the budget, and their cost stays as measured in T5.
|
|
15
|
+
|
|
16
|
+
## AC4 resident processes
|
|
17
|
+
|
|
18
|
+
| Process | Before | After |
|
|
19
|
+
| --- | ---: | ---: |
|
|
20
|
+
| Resident `ahub codex` wrapper | 52M | 43M |
|
|
21
|
+
| Resident `ahub up` console | 65M | 44M |
|
|
22
|
+
|
|
23
|
+
Both columns use the physical footprint reported by `top -l 1 -pid <pid> -stats pid,command,mem` on macOS. The baseline sampled existing sessions. The after sample used the same scratch installation as AC3. Codex connected to a loopback fixture and stayed resident while a shell stub slept. The console ran `ahub up --no-agents` in a scratch PTY with memory and inference disabled. The sample covers the console process, excluding the daemon and stub. The scratch hub was stopped after sampling. No live agent account was started.
|
|
24
|
+
|
|
25
|
+
## AC5 bundle contents
|
|
26
|
+
|
|
27
|
+
| Bundle | Before lines | Before bytes | After lines | After bytes |
|
|
28
|
+
| --- | ---: | ---: | ---: | ---: |
|
|
29
|
+
| `server.js` | 43,380 | 1,849,835 | 23,422 | 954,919 |
|
|
30
|
+
| `kimi-hook.js` | 2,426 | 107,959 | 2,081 | 92,044 |
|
|
31
|
+
| `kimi-review-policy-worker.js` | 222 | 8,161 | 222 | 8,161 |
|
|
32
|
+
|
|
33
|
+
The before bundles come from main at `269643767`. The after build uses Bun 1.4.4 and frozen dependencies. The regenerated `server.js` has no source markers for `src/adapters/acp.ts`, `src/adapters/codex-appserver.ts` or `src/adapters/pi.ts`. `bun scripts/build.mjs --check` enforces that rule and prints the line and byte count of each bundle.
|