Repository navigation
Finish adapter guides, clarify first-run errors and rehearse upgrades from 0.2.0 - #211
harshsaver wants to merge 11 commits into
Conversation
Each doctor --harness run registered a new doctor-<pid>-<time> agent. Agents cannot be deleted, so every run left another offline session in the workspace's session list and peer views. The probe now uses a fixed agentintercom-doctor ID, so a later run replaces the earlier probe.
When another window takes the same agent ID or the scope token rotates, a self-registered bridge only noticed at its next heartbeat. Calls made in between returned a bare "Invalid agent token" or "Unauthorized" transport error with no recovery steps. A failed call now checks the execution's status and, when its authority is gone, returns the usual execution-ended message.
Both hosts completed the two-host scenario in each direction against a local daemon, using the generated configurations unchanged. The notes also cover tool approvals, replacement, token rotation and the host commands that start their own bridge. They are partial, unreviewed observations and do not change the adapters' status (#37, #34).
The OpenCode guide only pointed at the shared setup. It now walks through connecting OpenCode to the public daemon and a peer, explains that OpenCode allows MCP tools unless a permission block says otherwise, and describes replacement, recovery and the opencode mcp list caveat (#34).
claude mcp list, claude mcp get and opencode mcp list start a bridge with the configured agent ID, which replaces a running session with that ID and leaves the agent offline. Document this next to the existing Cursor list-tools note and point to doctor --harness, which probes under its own ID (#37).
Commands given a workspace that was never created on this machine printed "cannot read local scope credential" followed by an lstat error for a hashed file path. They now name the workspace and the data directory, and say how to create or recover it.
harness --help and harness config --help reported an unknown host named --help. They now print usage and exit successfully. harness config also warns when the named workspace has no local credential, since the host would otherwise only show a server that fails to start.
Re-running workspace create printed "Scope <name> already exists". It now points to connect for the existing workspace, or to scope rotate-token when this data directory lacks the workspace's credential.
status, stop and commands that need the local daemon failed with a raw "lstat <runtime-dir>: no such file or directory" before anything had been started. A missing run file now reports that Agent Intercom is not running and names the runtime directory it looked in.
The upgrade rehearsal only accepted an rc.4 baseline, and even then it expected an agentintercom version string that the real rc.4 binary (october-bus) does not print. 0.2.0 also rejects tasks without a title. The rehearsal now takes the previous release from OCTOBER_BUS_PREVIOUS_BINARY (the rc.4 variable still works), reads the SQLite schema version before and after the candidate runs, and checks rollback accordingly: with an unchanged schema the previous release must run the upgraded database; with a changed schema it must refuse it, and any automatic backup must restore the original work. Verified against the published 0.2.0 and rc.4 Linux binaries.
…e RC4 rehearsal alias, remove the OpenCode tool-call timeout Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🤖 Agentbox PR audit: small fixes applied, then ready to mergeWhat this PR changes
Full audit (Claude (claude-opus-5-5, xhigh) × Codex (gpt-6.1-sol, xhigh), 3 turns, commit 9ebd0df)PR audit: #211 — Finish adapter guides, clarify first-run errors and rehearse upgrades from 0.2.0Head: 8c30bbe Sign-off
Decisionfix — Three small, understood changes, roughly under 50 lines, with no product decision needed:
Should this exist?
What changes (plain language)
FindingsBlocking
Non-blocking
Fix plan
Message to the developern/a Questions for Harshn/a Verification
Audit log
Fixes applied by the audit
Final checks (run once, after both agents agreed)npm --prefix sdk/typescript ci — PASS. Automated review by Harsh's agentbox: two AI reviewers audited this PR against the project ruleset and agreed on it. |
Follow-up to #210, kept separate so it can be reviewed on its own. Base is
maint/verified-main; it will be retargeted tomainonce #210 merges.Adapters (#37, #33, #34)
permissionblock says otherwise;askis rejected automatically by headlessopencode run. It also covers replacement and recovery.claude mcp list,claude mcp getandopencode mcp liststart their own bridge with the configured agent ID. That bridge replaces a running session with the same ID and leaves the agent offline. This is now documented next to the existing Cursorlist-toolsnote and listed in the adapter manifests.doctor --harnessis the safe check.Invalid agent tokenorUnauthorized. The bridge only noticed at its next heartbeat. A rejected call now checks the execution and returns the usual execution-ended message with recovery steps.doctor --harnessused a newdoctor-<pid>-<time>agent on every run, and each one stayed in the session list permanently. It now reuses oneagentintercom-doctorID.Upgrade rehearsal
scripts/rehearse-upgrade.mjsonly accepted an rc.4 baseline. Even then, it expected a version string the real rc.4 binary does not print. It now takes the published previous release fromOCTOBER_BUS_PREVIOUS_BINARY; the old variable still works. It compares SQLite schema versions before and after the upgrade and checks rollback to match. It passes against the published 0.2.0 and rc.4 Linux binaries.First-run errors
status,stopand the commands that need the daemon say it is not running, instead of printinglstat <runtime-dir>: no such file or directory.workspace createpoints toconnect, or toscope rotate-tokenwhen this machine has no credential for the workspace.harness --helpandharness config --helpprint usage.harness configwarns when the workspace does not exist yet.Testing
go test,go test -race,go vet, the demo, and the PostgreSQL hosted tests.