@staix/agent-hub 0.53.0 → 0.54.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 +18 -0
- package/README.md +4 -3
- package/docs/agent-notes/README.md +1 -1
- package/docs/agent-notes/adapters.md +4 -3
- package/docs/agent-notes/budget.md +2 -2
- package/docs/agent-notes/bus.md +1 -0
- package/docs/agent-notes/daemon.md +1 -1
- package/docs/agent-notes/models.md +1 -1
- package/docs/agent-notes/tests.md +4 -4
- package/docs/contracts/companion-cli-v3.json +348 -0
- package/docs/design/adapters.md +1 -1
- package/docs/design/agent-hub-architecture.md +8 -5
- package/docs/design/bus.md +1 -1
- package/docs/design/cli-output-inventory.md +2 -2
- package/docs/design/model-routes.md +20 -5
- package/docs/dogfood.md +7 -3
- package/docs/events.md +1 -1
- package/docs/memory.md +2 -2
- package/docs/operations.md +122 -45
- package/docs/quickstart.md +8 -2
- package/docs/security.md +11 -7
- package/docs/specs/2026-09-19-agent-hub-design.md +5 -3
- package/docs/specs/2026-09-19-multi-project-design.md +1 -1
- package/docs/specs/2026-12-04-arev-adoption-design.md +3 -3
- package/docs/specs/mcp-endpoint.md +1 -1
- package/docs/specs/relay-contract.md +38 -0
- package/docs/verification/2026-12-06-0.54.0.md +76 -0
- package/docs/verification/2026-12-06-codex-0174-reviewer-isolation.md +43 -0
- package/docs/verification/2026-12-06-codex-0174-reviewer-tool-call.md +34 -0
- package/docs/verification/2026-12-06-compat-codex-capabilities-0.174.0.md +25 -0
- package/docs/verification/2026-12-06-compat-pi-1.8.0.md +23 -0
- package/docs/verified.json +27 -28
- package/package.json +5 -4
- package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-hub/.mcp.json +1 -1
- package/plugins/agent-hub/compat.json +5 -3
- package/plugins/agent-hub/kimi-hook.js +5 -4
- package/plugins/agent-hub/relay-launcher.js +24 -0
- package/plugins/agent-hub/server.js +5112 -4737
- package/src/adapters/acp.ts +5 -4
- package/src/adapters/compat.ts +22 -12
- package/src/adapters/definitions/native-cli-preview-pi.ts +2 -1
- package/src/adapters/definitions/native-config-defaults.ts +1 -1
- package/src/adapters/definitions/native-factories.ts +4 -1
- package/src/adapters/local-worker.ts +3 -3
- package/src/adapters/pi.ts +26 -7
- package/src/adapters/relay-launcher.ts +27 -0
- package/src/cli/agents.ts +20 -8
- package/src/cli/commands/agents.ts +18 -1
- package/src/cli/commands/doctor.ts +18 -4
- package/src/cli/commands/launch-line.ts +13 -5
- package/src/cli/help.ts +4 -2
- package/src/cli/launch-line-plan.ts +82 -0
- package/src/cli/pi-steps-warning.ts +14 -0
- package/src/hub/accounts.ts +8 -4
- package/src/hub/adec-triage.ts +105 -0
- package/src/hub/bus.ts +39 -6
- package/src/hub/config-apply.ts +1 -1
- package/src/hub/config.ts +2 -2
- package/src/hub/control/dashboard-messages.ts +221 -0
- package/src/hub/control/delivery-messages.ts +356 -0
- package/src/hub/control/dispatch.ts +114 -0
- package/src/hub/control/operations-messages.ts +269 -0
- package/src/hub/control/peer-messages.ts +126 -0
- package/src/hub/control/scope.ts +79 -2
- package/src/hub/daemon.ts +111 -918
- package/src/hub/delivery-hints.ts +2 -0
- package/src/hub/delivery-journal.ts +17 -6
- package/src/hub/events.ts +2 -1
- package/src/hub/host.ts +41 -9
- package/src/hub/lifecycle.ts +3 -2
- package/src/hub/peers.ts +2 -0
- package/src/hub/pi-exit-policy.ts +27 -0
- package/src/hub/protocol-window.ts +1 -1
- package/src/hub/routing.ts +9 -0
- package/src/hub/supervision.ts +33 -6
- package/src/hub/tasks-types.ts +4 -1
- package/src/hub/tasks.ts +35 -1
- package/src/models/route/config.ts +4 -4
- package/src/models/route/decision.ts +18 -10
- package/src/models/route/runtime.ts +8 -5
- package/src/npm-artifact.ts +76 -0
- package/src/omniroute/client.ts +6 -0
- package/src/pi/extension.ts +5 -2
- package/src/pi/install.ts +77 -0
- package/src/pi/pin.ts +49 -0
- package/templates/adec/README.md +10 -6
- package/templates/config.json +1 -1
|
@@ -203,11 +203,14 @@ Long-term hub writes and core promotion callbacks use the configured standalone
|
|
|
203
203
|
The adec backend (#554) is default-off and shadow-first. A shadow pick changes
|
|
204
204
|
neither the heuristic model/effort nor the forwarded conversation. The service
|
|
205
205
|
owns question assembly, hard rules, thresholds, pins and policy fallback; the hub
|
|
206
|
-
owns allowed-pair validation,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
206
|
+
owns allowed-pair validation, current turn and budget/campus admission, and
|
|
207
|
+
gateway execution. A person can enable `decision_mode = "enforce"` for a
|
|
208
|
+
`decision` route in `.agenthub/routing.toml`. The hub applies the validated
|
|
209
|
+
non-abstaining alias and sends its `reasoning_effort` to the gateway. On
|
|
210
|
+
abstention, timeout, failure or a pair outside the candidates, it uses
|
|
211
|
+
`constraints.current`. The bounded evidence builder runs only after admission
|
|
212
|
+
and uses the host public-view screen. It never sends tool arguments, system
|
|
213
|
+
instructions or full history. Sensitive turns are
|
|
211
214
|
campus-gated before evidence and carry dimensions only plus privacy flags.
|
|
212
215
|
Review-observer and remote inputs do not reach this optional observer. Route
|
|
213
216
|
records retain closed metadata, not evidence or service error prose. Direct
|
package/docs/design/bus.md
CHANGED
|
@@ -76,7 +76,7 @@ abandoned preparation (#1447 T4).
|
|
|
76
76
|
|
|
77
77
|
Pull-only peers catch up oldest-first under a byte budget, but the first envelope always goes even when it exceeds that budget so one oversized item cannot starve the queue; push peers use the digest batch limit. Pull records returned envelopes as completed at handout because the tool result is the readback, not a later native receipt. A busy Claude channel can also pull its own messages through `hub_inbox`; that avoids making a long-running turn an unbounded queue lock ([#493](https://github.com/STAIxBWLB/agent-hub/issues/493), [#713](https://github.com/STAIxBWLB/agent-hub/issues/713)).
|
|
78
78
|
|
|
79
|
-
Delivery uncertainty normally holds the original and is never an automatic replay. The narrow exception is a hub-authored presence or workflow notice proven moot by current task evidence; mixed, unknown, or requested-stop rows remain held. This removes stale notices without treating arbitrary peer messages as seen ([#434](https://github.com/STAIxBWLB/agent-hub/issues/434)). Safe pre-acceptance failures may retry within a bounded attempt policy; uncertain results remain `needs_review` until an explicit resolution. A peer may retry only its own eligible row and only once per immutable retry lineage; an invocation uses its own ledger and is not replayed as an ordinary message retry ([#37](https://github.com/STAIxBWLB/agent-hub/issues/37), [#991](https://github.com/STAIxBWLB/agent-hub/issues/991)).
|
|
79
|
+
Delivery uncertainty normally holds the original and is never an automatic replay. A `needs_review` row left by the ACP adapter's own unrequested stop (the host-set, journaled `holdsSelf` mark, never the reason text, #1946) holds only itself: later queued work is delivered, the row stays listed in status for an explicit `completed`, `retry` or `discard`, and the next delivery to that peer carries one bounded, body-free held hint (ids, revisions, age, sender and kind sets). Every other local `needs_review` row (an invocation, an accepted-settle timeout, an aborted turn, an adapter failure, an unconfirmed reviewer fallback #804) keeps the peer-wide hold, and a room row holds the peer only with an invocation. Orphaned `dispatching` and `accepted` rows, storage errors, pause, recovery and lifecycle fences still hold the peer. The conductor notice for a self-held row names the `ahub queue resolve` command the conductor may run and repeats once after `bus.hold_notice_ms`. The narrow exception is a hub-authored presence or workflow notice proven moot by current task evidence; mixed, unknown, or requested-stop rows remain held. This removes stale notices without treating arbitrary peer messages as seen ([#434](https://github.com/STAIxBWLB/agent-hub/issues/434)). Safe pre-acceptance failures may retry within a bounded attempt policy; uncertain results remain `needs_review` until an explicit resolution. A peer may retry only its own eligible row and only once per immutable retry lineage; an invocation uses its own ledger and is not replayed as an ordinary message retry ([#37](https://github.com/STAIxBWLB/agent-hub/issues/37), [#991](https://github.com/STAIxBWLB/agent-hub/issues/991)).
|
|
80
80
|
|
|
81
81
|
Failure diagnostics use the bounded, public-safe `failureCause` classes `peer
|
|
82
82
|
offline`, `adapter refused`, `push error`, `turn aborted`, and `timeout`, never
|
|
@@ -46,7 +46,7 @@ Overview width: 79 cells. Dispatch entries: 95. Help command words: 97.
|
|
|
46
46
|
| jcode | adapter | 80 | Agents / start optional Jcode, in its TUI or headless (44) | Yes | --mode --model --provider-profile --session-id --print-command --as | Repeated forms |
|
|
47
47
|
| kill | commands/kill.ts | 25 | Daemon and runtime / stop this project's hub (23) | Yes | - | Repeated forms |
|
|
48
48
|
| kimi | adapter | 77 | Agents / start Kimi in its own TUI, or headless over ACP (47) | Yes | --print-command --mode --model --as | Repeated forms |
|
|
49
|
-
| launch-line | commands/launch-line.ts |
|
|
49
|
+
| launch-line | commands/launch-line.ts | 75 | Daemon and runtime / person: print a Claude or Codex terminal join command... (56) | Yes | --json --exec | Repeated forms |
|
|
50
50
|
| learn | commands/learn.ts | 79 | Tasks and review / review recurring-criterion candidates (37) | Yes | --all --accepted --json --color | Repeated forms |
|
|
51
51
|
| lineage | commands/lineage.ts | 78 | History and reports / execution metadata and evidence strengths (41) | Yes | --task --attempt --root --task-scope --task-created --cursor --nodes --edges --bytes --json --revision --ref --from | Repeated forms, Bracket wraps |
|
|
52
52
|
| local | adapter | 73 | Agents / start the hub-native worker on self-hosted models (49) | Yes | --route --model --as | Repeated forms |
|
|
@@ -135,7 +135,7 @@ A delegated call needs its own renderer or a fixture before the human-view width
|
|
|
135
135
|
| pet | fail (4), console.log (2), renderPet (1), process.stdout.write (1) |
|
|
136
136
|
| roles | fail (1), console.log (1), printOutput (1), renderRoles (1) |
|
|
137
137
|
| status | console.log (3), printOutput (1), renderStatus (1), renderStatusDefault (1), renderPet (1) |
|
|
138
|
-
| launch-line | fail (
|
|
138
|
+
| launch-line | fail (8), console.log (1) |
|
|
139
139
|
| logs | console.log (3), fail (1) |
|
|
140
140
|
| export | fail (1), console.log (2) |
|
|
141
141
|
| bench | console.log (7), formatBenchReport (2), formatRuns (2), fail (5), formatCompare (1), process.stdout.write (1) |
|
|
@@ -77,9 +77,24 @@ behavior, configuration grammar or generic decision-evidence v1 payload.
|
|
|
77
77
|
| Whether a turn may execute, use a tool, cross a privacy boundary or spend budget | Current host admission | A route score or service proposal grants no authority |
|
|
78
78
|
|
|
79
79
|
The active `decision` configuration supports `decision_backend = "adec"` and
|
|
80
|
-
`decision_mode = "off" | "shadow"`, default off.
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
`decision_mode = "off" | "shadow" | "enforce"`, default off. The person sets
|
|
81
|
+
`enforce` in `.agenthub/routing.toml`.
|
|
82
|
+
|
|
83
|
+
Evidence for the shadow gate (#1936): every adec route request carries
|
|
84
|
+
`constraints.current`, the pair the heuristic picked for that call (the picked
|
|
85
|
+
tier's alias with its configured effort; the efficient alias, else the first
|
|
86
|
+
offered pair, when none matches). It is never adec's own proposal. Tags are not
|
|
87
|
+
sent on `/v1/route`: adec accepts `tags` (the closed word `ko` for Hangul) only
|
|
88
|
+
on `/v1/systemone`, which the triage question `ahub.triage.v1` uses
|
|
89
|
+
(`inference.triage_adec`, off by default, set only by a person in routing.toml;
|
|
90
|
+
shadow records adec's class or `abstain` beside the hub's own in the task
|
|
91
|
+
history, enforce uses a non-abstaining answer and falls open otherwise).
|
|
92
|
+
With `decision_mode = "enforce"`, a `decision` route executes the eligible
|
|
93
|
+
alias and sends its `reasoning_effort` to the gateway. An abstention, timeout,
|
|
94
|
+
failure or ineligible pair uses the same pair sent as `constraints.current`.
|
|
95
|
+
The hub never flips this switch or reads `adec shadow gate` to make that
|
|
96
|
+
decision. Shadow preserves the exact fallback model, effort and forwarded
|
|
97
|
+
conversation. This is separate from `stay_switch`, whose
|
|
83
98
|
existing off/shadow/enforce behavior remains supported. R1 adds no service-call
|
|
84
99
|
path, classifier option, gateway effort application, service launch or credential
|
|
85
100
|
reader. #554 S2 adds the opt-in stage classifier option and its ambiguity band
|
|
@@ -521,8 +536,8 @@ route with a valid optional service binding asks the phase-model question; an
|
|
|
521
536
|
`advisor` or `escalation` route with a valid binding asks the judge-model question.
|
|
522
537
|
An ordinary route without that binding keeps its host policy. No `judge_choice`
|
|
523
538
|
block or other TOML key is introduced. Service fields that are present must form
|
|
524
|
-
a valid binding rather than being silently ignored.
|
|
525
|
-
|
|
539
|
+
a valid binding rather than being silently ignored. Phase and judge model choices default off and accept shadow.
|
|
540
|
+
The enforce switch applies to the separate `decision` route.
|
|
526
541
|
|
|
527
542
|
One common service validator checks the existing backend/mode, bounded policy
|
|
528
543
|
identifier, numeric-loopback `/v1/route` endpoint, timeout and alias/effort options.
|
package/docs/dogfood.md
CHANGED
|
@@ -80,7 +80,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
80
80
|
| Optional model for a headless Claude implementer (#844) | on after the release and once the person sets `model` on `instances.claude-impl` in `config.local.json` (a hub daemon restart applies it); unset it changes nothing | `ahub status` shows `model source` on the instance row; the native argv carries `--model <value>` on every turn and none when unset (test/claude-implementer.test.ts, test/claude-implementer-daemon.test.ts); a tracked-file or non-implementer declaration is refused or ignored with a reason (test/instances.test.ts, test/jcode-instances.test.ts) |
|
|
81
81
|
| Stage route contract (#1352 R1) | source change active after release and hub upgrade; no running model policy or live model behavior changed by this task | newly authored bounded capture/evidence/fallback/switch tests and 24 synthetic sizing fixtures with public scalar provenance; whole-wire Unicode sizing is intentionally conservative; owned relay/local-worker/decision/progress tests provide model-free integration coverage; live model outcomes and routing gains remain unverified |
|
|
82
82
|
| Optional ADEc phase/judge model choices (#1352 R2) | off here; placeholder policies only, with phase, review/escalation authority and fallback execution retained by the hub; focused fake-service integration passed; manual route receipt/live review remains unrun, with no model-quality, gain or rollout claim | `test/model-route-event-parity.test.ts` compares controlled off/shadow fallback calls and route observations against a numeric-loopback fake service; a person-run model-routing receipt/live leg is still required for real-model behavior or gain claims |
|
|
83
|
-
| adec decision routes (#554 consumer) | not enabled on this repository; offline fake-service proof only, including the optional `stage` classifier band (#1373) that asks only inside `ambiguous_band`, and the triage evaluation (`scripts/decision-eval.ts`) is person-run and not yet run against a real decider here, so no native decider or gain claim | shadow chosen alias/effort versus actual tier, margin and latency joined to route outcomes; zero off-campus sensitive/observer requests and no raw evidence in events; a decision-eval report's per-column accuracy, coverage and p50/p95 against planner-named classes, with the same-class agreement of both columns |
|
|
83
|
+
| adec decision routes (#554 consumer) | not enabled on this repository; triage shadow and enforce (#1936) are off here and proven by fake-service tests only; offline fake-service proof only, including the optional `stage` classifier band (#1373) that asks only inside `ambiguous_band`, and the triage evaluation (`scripts/decision-eval.ts`) is person-run and not yet run against a real decider here, so no native decider or gain claim | shadow chosen alias/effort versus actual tier, and fake-gateway enforcement of the selected or current pair; margin and latency joined to route outcomes; zero off-campus sensitive/observer requests and no raw evidence in events; a decision-eval report's per-column accuracy, coverage and p50/p95 against planner-named classes, with the same-class agreement of both columns |
|
|
84
84
|
| Person-only live peer model override (#1317 T1) | source and model-free fake checks passed at the [recorded heads](verification/2026-11-08-live-model-override-1317.md); installed-hub rollout and native model changes unverified | next-turn argv/transport model, unchanged active turns and steering, last desired value, clear/persistence/reset, source and pending status, person-only refusals, unsupported no-write/no-restart, and model_change boundary audit |
|
|
85
85
|
| Receipt-gated ACP model selection (#1317 T2) | exact headless Kimi 2.5.2 native loopback A/B/clear/A setter passed; installed-hub rollout unrun; Jcode shared-TUI safety unqualified; Qwen 0.26.9/0.27.0 pass [suggestions-off ordinary A/B/A](verification/2026-11-11-qwen-setter-suggestions-off.md), with separate admission pending, so both remain unsupported | current owned identity/version and advertisement, held-turn selection, next-turn setter and admission acknowledgement, baseline clear in fixtures, revoked admission and timeout refusal, reviewer isolation unchanged; native receipts separate account/model use |
|
|
86
86
|
| Remote isolated check transport (#793) | off here; fake checks, a bounded local Docker transport receipt and a local run of the lockfile-keyed dependency volume; person opt-in, SSH and the live receipt follow separately | remote tests capability unavailable on failed SSH/Docker/image/transfer probe; one networked install per new lockfile key, none on later runs, the check mounting the volume read-only with no network; exact Git receipt, non-root hardened argv, zero Mac dependency copies and confirmed Docker cleanup before lease release; Darwin tar ignores PATH shims, probe warnings do not pollute JSON, bounded probes do not become unknown task-run orphans |
|
|
@@ -187,6 +187,8 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
187
187
|
| SDLC metrics and control bands (#481 S7) | `ahub sdlc metrics` on; bands off until `[bands]` is set in `.agenthub/sdlc.toml`, and they write cards only in advise or enforce (in off the report still shows tiers). Completion checks are off here; the GitHub first-pass fallback is live here since the 2026-11-24 readback (`first_pass_check` n=17, rate 0.882 over 52 tasks since 2026-11-21, posted on #1579) | its own report, including known and unknown first-pass and PR-based samples after a new merged PR; breach episodes per week by tier, and band cards the planner accepted rather than dropped |
|
|
188
188
|
| Fresh headless reviewers (#223, #519) | configured here (`codex-review`); per-tool approval correction and no-verdict diagnostics/re-offer (#783) take effect after release and upgrade | reviews by fresh sessions, findings they add; a per-review start failure names a closed cause class (#722): `ahub status` reviewer line and hub.log `[cause: ...]`, with the share of failures that are `unknown`; stale admission skips and current-policy `no_verdict` reroutes leave the reviewer available (#781); a real `hub_review` verdict per verified backend/version, beyond inventory-only proof; bounded refusal diagnostics, confirmed re-offers without queue holds, and uncertain fallback holds |
|
|
189
189
|
| Optional Orca companion (#1198 O0-O4) | moved to [STAIxBWLB/ahub-orca](https://github.com/STAIxBWLB/ahub-orca) (#1387); nothing of it remains in this repository. Still off: not installed here, enabled by nothing, not in the package; fixture checks only, `fixture_only` on macOS and unsupported elsewhere, and the native receipts are **person-run** and **not run** | that repository's `support-matrix.json` and `receipts/`; it reads ahub only through `docs/contracts/companion-cli-v1.json`, which `test/companion-contract.test.ts` holds ahub to |
|
|
190
|
+
| `ahub launch-line` keeps the launch's options and refuses an older daemon (#1963, companion CLI v3) | fixture coverage after merge; runs on this repository only when the Orca companion (ahub-orca#28) calls it after release and daemon upgrade, which is not installed here | `test/launch-line-plan.test.ts` and `test/companion-contract.test.ts` cover kept options, adapter-owned flag refusal, the 0.53.0 daemon floor with prereleases, `--exec self` and the never-blank rule; the metric is the refusal count the companion reports against launches it joins |
|
|
191
|
+
| Pi reliability: exit cause and one restart, logical-turn step count, `pi.max_steps` doctor warning (#1967) | fixture coverage after merge; takes effect on this repository's own hub after release and restart (Pi runs here with `pi.auto_start`) | `Pi exit:` log lines carry `reason=`; `ahub doctor` row `pi max_steps`; measured by the count of `Pi exit: ... expected=false` lines followed by a restart notice, and of `Pi inference failed after accepting the turn` fallbacks, per week |
|
|
190
192
|
| Kimi periodic review isolation (#1284) | source and isolated fixture coverage; running-hub/native-account behavior is unchanged until release and restart | max-input benchmark records historical inline blocking and worker control-response ordering separately from synchronous authority cost; fake-clock absolute cadence/no-overlap, complete filesystem tamper checks, source and plugin-only workers, and native/worker cleanup retry tests; no new native compatibility or model-quality claim |
|
|
191
193
|
| Completion checks per class | off: the implementer already runs `scripts/check.sh`; a hub-run copy would double the heavy-slot use | time to verdict when on |
|
|
192
194
|
| Supervision rules and proposals (#1221 T1, T2) | off here: `supervision.mode` is machine-local and defaults to off, so this project's board is not evaluated; with `shadow` a reading only fills a bounded queue, and with `advisory` a pending proposal appears in the console inbox where an explicit accept runs one existing action | the rule fixtures (19, including the exported snapshot shape, the evaluated coverage and its bound, about 0.2 s on one Mac, Bun 1.4.4) plus the queue and decision fixtures: `bun test test/supervision-rules.test.ts test/supervision-proposals.test.ts test/acon-supervision-inbox-1221.test.ts`, which cover the per-rule triggers and gaps, the zero-effect counts, dedupe by rule/task/revision/trigger, the 100/3/400/50 bounds with the refused total, every decision fence including the action's own authority before and after the facts read, the separate intent and receipt, the unknown outcome reconciled from the board's own record at the intent time and inside the proposal's revision, restart, and the advisory inbox row with its two verbs |
|
|
@@ -234,6 +236,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
234
236
|
| Always-ask action classes (#636) | on after release for managed Claude forms, hub-owned ACP in ask mode, local/Pi tools and received Codex command approvals; Codex native bypass stays not enforceable | classed permission requests (a `gh api graphql` query is a read, a mutation, `gh run` or `gh workflow` write and every command with a shell expansion in a classed position (`git push $B`, `rm -rf "$DIR"`) is asked about: #756, #762; `test/action-class.test.ts` holds the table), full local/Pi command visibility and denied effects for incomplete native views; actionPolicyInfo current-child enforceability, remaining class budgets and weakening attention; Codex native no-request and Kimi non-ask ceilings are explicit |
|
|
235
237
|
| Permission modes | on, person-chosen | approval prompts and their wait times |
|
|
236
238
|
| Pi/local read-only shell class (#816 T1) | source/fixture coverage; person setting and live Pi receipt (AC4) remain unverified | automatic read-only class versus approval requests, parser/allowlist/proof revalidation tests, unchanged Seatbelt/path-guard byte checks |
|
|
239
|
+
| Hub-owned Pi pin (#1965) | available after release; explicit machine-local argv remains authoritative | a verified local fixture launches despite an unverified PATH Pi, mismatched npm integrity leaves the pin untouched, and doctor names the exact install command |
|
|
237
240
|
| Pi bounded continuations, defaults, failure classes, task-move delivery and focused-check preparation (#1447 T1/T2/T3/T4/T5) | source/fake coverage only until release and upgrade; the person-run implement-task leg stays unverified | fake Pi ceiling continuations delivered, exhausted `step_limit` moves versus `inference_failed`, class-only private diagnostics, and `needs_review` for unsettled/concurrently cancelled tools; Pi default/repository max_steps 100, local 30, and fake-extension rejection at attempt 101/100; late important notices ahead of chat in the actual escalation prompt, durable/volatile receipt preservation and former-owner done/checkpoint refusals; host-busy/provider-prompt window remains open and unmeasured; reviewed-base/cache preparation, fixed failure guidance and offline fixture TypeScript; macOS network-disabled TypeScript fixture passed; localhost listeners moved to a follow-up, and the account-backed Pi leg remains unverified |
|
|
238
241
|
| Pi and the local worker on DGX | off: DGX unreachable recently; Pi is off the roster | turns served on-prem, relay errors |
|
|
239
242
|
| Per-turn child attribution (#1516) | source and fake-child coverage; active after release and restart; native Pi and local sandbox legs require macOS | `test/turn-attribution.test.ts`, implementer and reviewer child fixtures, local sandbox context and Pi tool sandbox tests check IDs, triggers, private cloud withholding and inherited-value stripping; no model or account required |
|
|
@@ -273,7 +276,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
273
276
|
| Own held inbox inspection (#1328 AC6) | source and scratch-daemon/fake-channel coverage; installed-hub activation and native account use remain unverified | `hub_inbox` shows only its authenticated recipient's public held bodies as read-only uncertainty; `test/held-inbox.test.ts` checks repeat-read state/revision invariance, current privacy, row/UTF-8 bounds, restart observer exclusion and ordinary inbox preservation; malformed additive data and owned-launch drift have focused adapter fixtures; no real held row was inspected or settled for this proof |
|
|
274
277
|
| Design spec inspection and task notices (#1064 T1/T2) | on in this repository since 2026-11-02: five draft specs (goal, architecture, bus, task-board, adapters) under `docs/design/`, `ahub specs check` 0 errors; the four-week AC11 report runs `bun scripts/spec-dogfood-report.ts` (#1064 T6), baseline `--since 2026-10-05T19:41:16Z --until 2026-11-02T19:41:16Z --baseline` (the four weeks before #1119 merged; 39 release merges excluded): 408 of 577 PRs touched dogfood paths and 219 (54%) changed the design monolith alongside; first dogfood days `--since 2026-11-02T19:41:17Z --until 2026-11-07T09:00:00Z` (10 release merges excluded): 21 of 51 (41%) changed the covering spec, below the 70% target | `test/specs.test.ts` checks graph/freshness and empty-project silence; `test/specs-tasks.test.ts` checks report/require, head-bound acknowledgements and privacy; committed-head inspection fixtures exclude dirty/main-checkout bypasses; adoption metrics are the counts of `spec not updated` reports, acknowledged reasons and unchanged-spec refusals |
|
|
275
278
|
| Screened room chat and person inbox (#446 X4/X5/X5b) | default off here; requires person enrollment/exposure; console panel 8 and dashboard Agents remain metadata-only; person CLI alone can show one inbox body; real two-machine/account leg remains unverified | signed completed (admitted) versus immutable completed (inbox); once-only inbound count, body-free metadata/list JSON, framed/control-stripped person show, done/discard/expiry purge and fixed stored-byte cap/age refusals, post-ack retries; 1,100-row complete-list ceiling; no broadcast/roles/board/body telemetry, key/storage creation from status or mixed-version success claim; existing restart/binding/disposition regressions |
|
|
276
|
-
| Capability discovery (#445 C1) | off here until a person shares an entry: nothing is listed without `invocation.share` in `.agenthub/config.local.json`; Kimi 2.3.2, Qwen 0.26.1 and Codex 0.166.0
|
|
279
|
+
| Capability discovery (#445 C1) | off here until a person shares an entry: nothing is listed without `invocation.share` in `.agenthub/config.local.json`; verified listings are Kimi 2.3.2, Qwen 0.26.1, and Codex 0.166.0 and 0.174.0; other versions need exact trust; Codex 0.174.0 passed the hosted account-free listing check; invoking is C2 | `ahub capabilities --json` per-peer entry counts and share states; `hub_capabilities` calls (the `capabilities_list` and tool lines in the hub log) against the count of shared entries; a peer on an unprobed version showing zero entries is the pin working, not a fault |
|
|
277
280
|
| Capability invocations (#445 C2/C3) | off here until a person shares a capability; read needs no approval, write/external require task scope and allow-once approval for each call; unattended refuses effects. Stand-in round trips and approval/audit/hold tests are the verification target; live Kimi/Qwen/Codex receipts remain C4 | `invocation` events and rows by outcome (completed, refused, failed, expired, timeout, needs_review), approval ids and task audit entries, result bytes, time from queue to settle; a read that times out against a live peer is the signal to look at that peer, not at the hub |
|
|
278
281
|
| Cross-hub read invocations (#446 X6) | off until both persons expose peers and independently pin the exact capability/digest/read class; discovery is manual; two-daemon broker/crypto fixtures are the verification target, live X7 receipts remain unverified | source/target invocation ids, request admission versus capability result and result transport outcomes; needs_review counts and no duplicate native dispatch |
|
|
279
282
|
| Headless amem Records (#1320) | source and disposable fixtures only; off in the running hub until release/upgrade and coordinated shared-home upgrades; production source uses the exact 0.23.1 policy API; no native/provider-backed receipt | Record capture accepted/dropped counts, forwarded answer/digest bytes, injected brief/recall bytes; proven saved-ID/anchor overlap compaction, unchanged unrelated notes, privacy/owner/steering fences and restart fallback in `test/headless-record*.test.ts` |
|
|
@@ -324,8 +327,9 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
324
327
|
| Configured print adapter (#1515) | source and isolated conformance fixtures; real non-ACP CLI receipt is person-run | stdout delivery and truncation, timeout and stderr failure, sandbox write denial and reviewer-pool exclusion |
|
|
325
328
|
| Agent presets, `ahub agents presets` and `agents add` (#1809) | off here: no `adapters` in this repository's `config.local.json`; person-run | an added preset loads after restart and joins with `ahub roster add`; presets with a receipt against untested ones |
|
|
326
329
|
| Configured pull kinds, `ahub <kind>` (#1809) | off here: no pull kind declared | a pull session attaches under its kind and reads `hub_inbox`; zero owned tasks and zero pushed deliveries |
|
|
327
|
-
| Shared host, `host.shared` (#1779 T3a) | off here: no `host` key in this repository's config | projects per host process and its memory against one daemon each; `ahub down`
|
|
330
|
+
| Shared host, `host.shared` (#1779 T3a) | off here: no `host` key in this repository's config | projects per host process and its memory against one daemon each; `ahub down` or a WebSocket or MCP control callback failure in one project leaves the others serving |
|
|
328
331
|
| MCP endpoint and Bun relay (#1780 T1 through T4) | after release and restart; older daemons use the existing bridge | `mcpServing` and `mcpSocket` in `status.json`; endpoint refusals per start; fixture relay and bridge parity, no replay after a dropped reply |
|
|
332
|
+
| Native Claude relay launcher (#1942) | fixture coverage; live native relay awaits a compatible agent-suite release | matching PATH executable replaces the launcher with the same PID and stdio; absence, version mismatch and timeout use the bundled relay |
|
|
329
333
|
| Peer activity category (#1512 T2) | source and isolated fixtures; live dashboard and Space presentation are deferred | live JSON status emits only the kind and start time, clears at lifecycle boundaries, omits private activity and leaves no persisted row |
|
|
330
334
|
| Agent CLI version policy and trust (#691) | on after the release: Kimi Code 2.8.1 passed all nine [model-free reviewer proofs](verification/2026-11-29-kimi-281-reviewer-compat.md) with scratch trust and with the verified pin alone, and its [interactive TUI legs remain unverified](verification/2026-11-29-kimi-tui-281.md); Claude Code 2.1.332 headless implementer passed all 22 [model-free native cases](verification/2026-11-25-claude-implementer-2.1.332.md) in this repository; Codex 0.163.0 verified by the [2026-10-22 receipt](verification/2026-10-22-codex-reviewer-isolation.md) and 0.164.0 by the [2026-10-24 receipt](verification/2026-10-24-codex-0164-reviewer-isolation.md); Kimi 2.3.0 and Qwen 0.26.0 verified by the [model-free receipt](verification/2026-10-22-kimi-qwen-compat.md), Kimi 2.3.1 by the [2026-10-25 model-free receipt](verification/2026-10-25-kimi-231-reviewer-compat.md) and 2.3.2 by the [2026-10-26 one](verification/2026-10-26-kimi-232-reviewer-compat.md), with account/provider live legs unverified; Qwen basic ACP 0.27.0 has a [macOS arm64 account-free receipt](verification/2026-11-09-qwen-0270-acp.md), while historical setter A/B/B has an unknown third-request purpose; the [suggestions-off repeat](verification/2026-11-11-qwen-setter-suggestions-off.md) passes ordinary A/B/A on 0.26.9/0.27.0, with production setter admission still unavailable; agy exact 1.5.3 has an [account-free receipt](verification/2026-11-08-agy-1.5.3.md); effective after release and upgrade, with the 1.4.x line unchanged | model-free isolation receipts, `ahub agents` verdicts, versions trusted per machine, lead time from an `agent-compat` issue to a receipt |
|
|
331
335
|
| Peer child environment isolation (#1077) | source and fixture coverage; no native account or Orca session used | daemon peer children, version probes and process-table helpers contain no `ORCA_*`; person-owned native launches keep their fixture pane's `ORCA_*` context while replacing agent identity; explicit Claude/Codex selectors pass through where the adapter inherits them; preload clears ambient selectors without changing fixture home bytes |
|
package/docs/events.md
CHANGED
|
@@ -23,7 +23,7 @@ marked `private: true`, and PII tasks `pii: true`.
|
|
|
23
23
|
| `quiet` | `id`, `from`, `peers`: an agent message held back from these members of a silent turn-free cohort; its other recipients got it (issue #107) |
|
|
24
24
|
| `fact` | `peer`, `id` (the offer), `files` (files whose diff it carried), `plans`, `unknown` (files whose change it showed with attribution unknown), `named` (files under a named directory it named without a diff, those counted as "N more" or held back by the PII filter included), `bytes` (the injected text), `via` (`hook` for Claude, `steer` for Codex, `done` with an integration request), `ms` (the hub's time to build it), `hookMs` (the hook process's own start-up and connect time), `accepted` (whether app-server took the steer), `unanswered` (app-server did not answer it within 10 s: it may have gone in), `rttMs` (an accepted steer: from sending it to app-server's answer), `probe` (a context check), `coverage` (it named files earlier changes are not covered for): one fact offer (issue #108) |
|
|
25
25
|
| `fact_ack` | `peer`, `id`, `via` (`hook` and `steer`: a readback found the offer in the native session; `done`: the next `hub_task_done`), `ms` (from the offer): an acknowledged offer, the only thing that moves a peer's view |
|
|
26
|
-
| `route` | `peer`, `route`, `tier`, `source` (`override`, `dimensions`, `hold`, `classifier`, `default`; for `hub/auto` also `load`: a busy MLX slot moved it to `dgx/fast` (opt-in, `[pi] efficient_wait_ms`), `cooldown`: a cooling MLX went to its fallback first, and `pin`: an enforced tool loop went to the backend it is pinned to, issue #199), `score`, `ms`. Local decisions also carry `decision`, `turn`, optional numeric `task`, `pii`, and decision-time `severity`, `spinning`, `exploring`, `production`. A `hub/auto` decision for a request without a session key carries `stateless: true` (`ahub report` then counts its sessions as unknown). `hub/auto` and hub stage decisions carry `turnType` (`tool_result`, `user`, `compaction`: what the call answers) and `prefillTokens` (estimated input a backend would prefill; absent on a PII route), and, unless `stay_switch` is `off`, `staySwitch` (`shadow`, `enforce`), `plan` (`stay`, `switch`) and `reason` (`new_pin`, `compaction`, `context_fit`, `same_tier`, `override`, `tool_loop`, `prefill_bound`, `user_turn`): the planner's verdict next to the tier taken (issue #197). Decision routes additionally use source `decision`, `decisionMode`, `chosenAlias`/`chosenEffort` (null when the hub has no validated pick), `margin`, `decisionLatencyMs`, closed `decisionReason`, `fallbackApplied` and the decider provider/model/latency metadata (null when no decider was asked). In shadow, `tier` is
|
|
26
|
+
| `route` | `peer`, `route`, `tier`, `source` (`override`, `dimensions`, `hold`, `classifier`, `default`; for `hub/auto` also `load`: a busy MLX slot moved it to `dgx/fast` (opt-in, `[pi] efficient_wait_ms`), `cooldown`: a cooling MLX went to its fallback first, and `pin`: an enforced tool loop went to the backend it is pinned to, issue #199), `score`, `ms`. Local decisions also carry `decision`, `turn`, optional numeric `task`, `pii`, and decision-time `severity`, `spinning`, `exploring`, `production`. A `hub/auto` decision for a request without a session key carries `stateless: true` (`ahub report` then counts its sessions as unknown). `hub/auto` and hub stage decisions carry `turnType` (`tool_result`, `user`, `compaction`: what the call answers) and `prefillTokens` (estimated input a backend would prefill; absent on a PII route), and, unless `stay_switch` is `off`, `staySwitch` (`shadow`, `enforce`), `plan` (`stay`, `switch`) and `reason` (`new_pin`, `compaction`, `context_fit`, `same_tier`, `override`, `tool_loop`, `prefill_bound`, `user_turn`): the planner's verdict next to the tier taken (issue #197). Decision routes additionally use source `decision`, `decisionMode`, `chosenAlias`/`chosenEffort` (null when the hub has no validated pick), `margin`, `decisionLatencyMs`, closed `decisionReason`, `fallbackApplied` and the decider provider/model/latency metadata (null when no decider was asked). In shadow, `tier` is the heuristic alias. In enforce, `tier` is the executed alias from the validated or current pair. `chosenAlias` and `chosenEffort` continue to describe adec's proposal. The decider metadata additionally carries optional `version` when the provider reports a pinned version; absent remains unknown, never inferred from the model id. R2 judge-choice observations additionally carry `decisionTarget: "judge"`; `tier` is the requested fallback judge alias, not a served-model identity, and the event has no purpose or phase field or executor label/usage credit. Off mode emits no judge observation. No prompt/evidence text, tool arguments, credentials or service error prose |
|
|
27
27
|
| `cooldown` | `peer`, `alias`, `event` (`start`, `end`), `failures` (consecutive transport or startup failures), `ms` (on `start`, how long the alias cools down): a relay backend alias after repeated failures (issue #199). An `end` is recorded at an HTTP answer (any status) or when the hub next checks the alias after it expired |
|
|
28
28
|
| `route_outcome` | `peer`, `decision`, `turnId`, `turn` (`completed` or `failed`), optional `task`, `pii`, `latched`, optional `next` (`severity`, `tests`: `pass`/`fail`/`none`, `repeat`) and `advisor` (`approve`/`redo`/`failed`). Exactly once per local decision at turn settlement, including failure/cancellation |
|
|
29
29
|
| `advisor` | `peer`, `route`, `trigger`, `verdict` (`approve`, `redo`, `failed`), `discardedChars`: an advisor check result; no transcript or feedback text |
|
package/docs/memory.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Agent-hub consumes the first-party [`@staix/agent-mem`](https://github.com/STAIxBWLB/agent-mem) library through the declared range `>=X.Y.Z <M.0.0` in [package.json](../package.json) (X.Y.Z at or above 0.33.0, M the next major; the lockfile resolves a release inside it). A plain release inside the range is accepted without a hub release when the package's `HOST_API_MIN` and `HOST_API_VERSION` are positive integers, `MIN <= VERSION`, and their range intersects the host API range this hub supports (`[1, 1]`); a package without them, or with an incompatible host API, is refused with the cause and the next step. A new major is a reviewed raise. Format-floor note: a new minor may raise the on-disk format floor, and a store written by it is not readable by an older hub or amem, so roll the hub back only together with the store, and read agent-mem's release notes for the new floor before upgrading. The package owns portable storage, tiers, graph, goals, sync, import and raw commands. Agent-hub owns caller authority, current project privacy policy, task lifecycle integration and presentation. Claude-mem is an optional, explicit import source only; runtime recall and capture make no worker HTTP requests.
|
|
4
4
|
|
|
5
|
-
The declared range is `>=0.
|
|
5
|
+
The declared range is `>=0.50.0 <1.0.0`. The lockfile resolves agent-mem 0.50.0, which pins `@staix/cli-output` 0.1.6 and `@staix/mcp-stdio` 1.2.1. Recovery requires the cli-output pin to match the hub's (#1768). The range also keeps agent-mem's outstanding-task index (`MemoryStore.unsettledTaskKeys`, agent-mem#610, since 0.39.0; see [Task lifecycle and host policy](#task-lifecycle-and-host-policy)). A hub that loads a release older than 0.47.0 refuses memory at load with the range check above. Since 0.39.0, each populated profile has a v6 derived index beside the v5 one, so a 0.38.0 reader (such as a 0.46.1 hub) can share the home; 0.42.0 adds a separate search cache, so older versions keep their own index. `HOST_API_VERSION` stays 1. Releases from 0.43.0 through 0.47.0 leave the store and sync format floors unchanged. Agent-mem 0.45.0 can read session-bearing notes in storage. Use 0.46.0 or later to import or promote those notes with attribution intact.
|
|
6
6
|
|
|
7
7
|
## Portable core and data directory
|
|
8
8
|
|
|
@@ -324,7 +324,7 @@ An unchanged failure emits one safe log line per episode. A complete bounded pol
|
|
|
324
324
|
|
|
325
325
|
`ahub memory declined [--json]` is a read-only inspection that an agent shell may also run (#1522). It reports physical outbound row IDs and safe policy categories, never title, body, path nodes or literal private patterns. Reads defer promotions and recheck the profile binding. Forgotten originals still matter: `forget` changes materialized visibility but leaves the source row in append-only history. Do not use it as a promise to clear a sync refusal.
|
|
326
326
|
|
|
327
|
-
The declared agent-mem floor (0.47.0) supplies bounded `inspectSyncPolicy` inspection for shared-v1 and generation profiles. A complete result lists the declined IDs and safe rule categories for the inspected physical outbound history, including originals hidden by a later forget. An incomplete `input-bound` result may now carry an optional `bound` receipt (`kind`, `limit`, `observed`, `nextStep`); `complete` and `reason` keep their shapes. An unavailable, stale or bounded-out inspection remains explicitly incomplete; it never proves that no declined rows exist. The hub uses the public SDK rather than private helpers, snapshots of full history or its own portable log reader.
|
|
327
|
+
The declared agent-mem floor (0.50.0; the inspection arrived in 0.47.0) supplies bounded `inspectSyncPolicy` inspection for shared-v1 and generation profiles. A complete result lists the declined IDs and safe rule categories for the inspected physical outbound history, including originals hidden by a later forget. An incomplete `input-bound` result may now carry an optional `bound` receipt (`kind`, `limit`, `observed`, `nextStep`); `complete` and `reason` keep their shapes. An unavailable, stale or bounded-out inspection remains explicitly incomplete; it never proves that no declined rows exist. The hub uses the public SDK rather than private helpers, snapshots of full history or its own portable log reader.
|
|
328
328
|
|
|
329
329
|
The package also owns per-row local placement. The hub adopts only the projection of a successful trusted SDK placement result: `ok` with its verified withheld/exported counts. Since agent-mem 0.23.0 the daemon passes `placementAttestation` on every `syncMemory` pass, built by the package's own `createPlacementAttestation` for the memory home (`hostPlacementAttestation`, `src/hub/memory-sync-attestation.ts`). A legacy or shared-v1 store ignores it. The hub supplies no writer facts of its own, never fabricates the proof and builds a new one per pass, so no measurement outlives it. A refusal (`PlacementWriterContextError`) is its own closed cause `writer` in status, the dashboard and the log: the category (`running CLI`, `host package`, `setup receipt`, `declared writer`, `active locator`, `home floor`, `writer renewal`, or `unknown` for an unrecognized SDK category), the cause class (`missing`, `changed`, `unavailable`) and the next step (repair the amem install and its host pin, then a person runs `amem migrate --sync-placement --dry-run`). The package's message, paths and versions never enter status or logs. It logs once per episode like every other cause. Count projection does not delete or rewrite notes, change policy or promote a declined row; transport failures remain failures.
|
|
330
330
|
|
package/docs/operations.md
CHANGED
|
@@ -712,7 +712,7 @@ Conductor operations are listed in [the operational command table](#conductor-op
|
|
|
712
712
|
|
|
713
713
|
`ahub capabilities [--json]` is Console only: an agent shell is refused, and so is the configured conductor. It lists, for each attached peer, the skills and commands the hub can read from that peer's own session, whether you share each one, its digest, and the class a call would count as. It lists and never calls anything; agents call what you share with `hub_invoke` (see below).
|
|
714
714
|
|
|
715
|
-
What the hub can read is deliberately narrow. A listing is read only from a version whose listing was probed (the [C0 receipt](verification/2026-10-30-445-capability-probes.md)): Kimi 2.3.2, Qwen 0.26.1 and Codex 0.166.0. Any other version lists nothing until a new receipt covers it or the person trusts that exact version with `ahub agents trust kimi-capabilities|qwen-capabilities|codex-capabilities <version>` (#1808; the three are `COMPAT` entries without a `line`). Trust is read from this machine's record on every call, so a revoke takes effect without a restart, and a record that cannot be read trusts nothing. A trusted listing is untested and may miss or misclassify entries. It also lets a capability you shared earlier be invoked again without a new share when its digest still matches, because the digest covers neither the CLI version nor the skill's content; every other share and invocation check stays. A peer that is offline or whose list did not arrive lists nothing. The three entries also add rows to `ahub doctor` and `ahub agents` whenever the installed CLI is not a verified version, and each refused row becomes a status Attention item whose next step is `ahub agents trust` and queues one planner notice, as every contract entry does. People who do not use shared capabilities see these rows too. Only the capability listing is refused for such a version, never the start of the CLI: no launch or restore check reads these three ids. The `listing-shape` legs of `kimi-capabilities` and `qwen-capabilities` have a producer (`scripts/compat-receipts/proofs/capabilities.ts` with the driver `capabilities-acp.py`). It starts the exact installed candidate as an ACP agent with a fixture model on an unreachable loopback address, opens one session, sends no prompt, and compares the `available_commands_update` of that session with the shape the C0 receipt recorded. A pass needs the exact agent name and candidate version, no entry or field the record does not know, the recorded builtins first and in order (Kimi), exactly one fixture skill, a network log that is absent or a zero-byte regular file (a link, another file type, an oversized or an unreadable log never passes), a preload marker written from inside the candidate process (without it the leg is not-run, never a pass), and no surviving process. The driver signals the candidate's group only while its leader is unreaped and still leads it (SIGTERM, up to 3 s, then SIGKILL, up to 3 s) and sends only signal 0 probes afterwards, so a helper that outlives its leader is reported as a cleanup failure and never signalled by the driver. A PermissionError from a probe counts as not shown gone yet and probing goes on to the 3 s bound. If the driver itself is stopped mid-cleanup, the runner records what it started and stops it when the process table can be read; otherwise the disposable runner is the boundary. It was tested only with fake executables: no real candidate has been measured. It cannot prove that a skill runs, that an entry has the class its name suggests, or anything about a version it was not given. Its pass leaves `autoAdmit` false, so a pass adds a drift row and never a PR, a verified version or a `line`; a person reviews before `verified` changes. The Codex leg (`codex-capabilities` `skills-list-shape`) has a producer (`scripts/compat-receipts/proofs/codex-capabilities.ts` with `codex-listing.py` and `codex-sandbox-launcher.py`, macOS only). It starts `codex app-server` over stdio under the seatbelt profile of `src/local/sandbox.ts` with network false and `(deny network*)`, `CODEX_HOME`, `HOME` and `TMPDIR` in a private folder, and a launcher in the same process that becomes the candidate tries a loopback connection first. A pass needs the same listener to accept a connection from outside the sandbox, the launcher's attempt to fail with EPERM (a refusal, a timeout or another error proves nothing and the leg is not-run, and so is any error before that control is proved or an exit before the candidate's first answer; an exit after a valid answer is a failure), nothing to reach the listener from the launcher, the exact version, the recorded `skills/list` fields, the entry's `cwd` equal to the requested one and the one fixture user skill at its exact file (`skills/probe-fixture/SKILL.md` under the private `CODEX_HOME`, compared by real path) (both the exact file name and the exact `cwd` are inferred from how the C0 run was set up, not recorded in its answer) and a clean stop; only `initialize`, `initialized` and `skills/list` are sent.
|
|
715
|
+
What the hub can read is deliberately narrow. A listing is read only from a version whose listing was probed (the [C0 receipt](verification/2026-10-30-445-capability-probes.md)): Kimi 2.3.2, Qwen 0.26.1 and Codex 0.166.0 and 0.174.0. Any other version lists nothing until a new receipt covers it or the person trusts that exact version with `ahub agents trust kimi-capabilities|qwen-capabilities|codex-capabilities <version>` (#1808; the three are `COMPAT` entries without a `line`). Trust is read from this machine's record on every call, so a revoke takes effect without a restart, and a record that cannot be read trusts nothing. A trusted listing is untested and may miss or misclassify entries. It also lets a capability you shared earlier be invoked again without a new share when its digest still matches, because the digest covers neither the CLI version nor the skill's content; every other share and invocation check stays. A peer that is offline or whose list did not arrive lists nothing. The three entries also add rows to `ahub doctor` and `ahub agents` whenever the installed CLI is not a verified version, and each refused row becomes a status Attention item whose next step is `ahub agents trust` and queues one planner notice, as every contract entry does. People who do not use shared capabilities see these rows too. Only the capability listing is refused for such a version, never the start of the CLI: no launch or restore check reads these three ids. The `listing-shape` legs of `kimi-capabilities` and `qwen-capabilities` have a producer (`scripts/compat-receipts/proofs/capabilities.ts` with the driver `capabilities-acp.py`). It starts the exact installed candidate as an ACP agent with a fixture model on an unreachable loopback address, opens one session, sends no prompt, and compares the `available_commands_update` of that session with the shape the C0 receipt recorded. A pass needs the exact agent name and candidate version, no entry or field the record does not know, the recorded builtins first and in order (Kimi), exactly one fixture skill, a network log that is absent or a zero-byte regular file (a link, another file type, an oversized or an unreadable log never passes), a preload marker written from inside the candidate process (without it the leg is not-run, never a pass), and no surviving process. The driver signals the candidate's group only while its leader is unreaped and still leads it (SIGTERM, up to 3 s, then SIGKILL, up to 3 s) and sends only signal 0 probes afterwards, so a helper that outlives its leader is reported as a cleanup failure and never signalled by the driver. A PermissionError from a probe counts as not shown gone yet and probing goes on to the 3 s bound. If the driver itself is stopped mid-cleanup, the runner records what it started and stops it when the process table can be read; otherwise the disposable runner is the boundary. It was tested only with fake executables: no real candidate has been measured. It cannot prove that a skill runs, that an entry has the class its name suggests, or anything about a version it was not given. Its pass leaves `autoAdmit` false, so a pass adds a drift row and never a PR, a verified version or a `line`; a person reviews before `verified` changes. The Codex leg (`codex-capabilities` `skills-list-shape`) passed on [Codex 0.174.0](verification/2026-12-06-compat-codex-capabilities-0.174.0.md) and has a producer (`scripts/compat-receipts/proofs/codex-capabilities.ts` with `codex-listing.py` and `codex-sandbox-launcher.py`, macOS only). It starts `codex app-server` over stdio under the seatbelt profile of `src/local/sandbox.ts` with network false and `(deny network*)`, `CODEX_HOME`, `HOME` and `TMPDIR` in a private folder, and a launcher in the same process that becomes the candidate tries a loopback connection first. A pass needs the same listener to accept a connection from outside the sandbox, the launcher's attempt to fail with EPERM (a refusal, a timeout or another error proves nothing and the leg is not-run, and so is any error before that control is proved or an exit before the candidate's first answer; an exit after a valid answer is a failure), nothing to reach the listener from the launcher, the exact version, the recorded `skills/list` fields, the entry's `cwd` equal to the requested one and the one fixture user skill at its exact file (`skills/probe-fixture/SKILL.md` under the private `CODEX_HOME`, compared by real path) (both the exact file name and the exact `cwd` are inferred from how the C0 run was set up, not recorded in its answer) and a clean stop; only `initialize`, `initialized` and `skills/list` are sent. The earlier producer development tests used fake executables. The hosted 0.174.0 receipt ran the real npm artifact on a disposable macOS arm64 runner and passed the live listing and network-control checks. The sandbox does not log blocked network attempts. It cannot prove that a skill runs, that nothing else leaves the machine on a path the profile does not cover, or anything on another OS. `autoAdmit` stays false. Two more watch-only entries use the same producers: `codex-appserver` (leg `appserver-handshake`, mode `handshake` of the same Codex driver: `initialize` only, exact version in `userAgent`) and `kimi-acp` (leg `acp-handshake`, mode `handshake` of the Kimi driver: exact agent name and version, `loadSession` true and a session id, no listing; it adds nothing to the Kimi listing leg's isolation). Both use gate `observe` and never auto-admit, and a failed leg of either is reported as `contract-drift`; an unreadable version is `unknown`. `claude-channel` (gate `observe`, `referenceOnly`: 2.1.332 is the install reference, not a verified version, and every version reads as `observed`) has one leg, `channel-flag-parse`: the installed Claude Code is started three times with no account, no prompt and stdin closed under the Codex leg's sandbox and network control, with random option names, and must name the first of two invalid options, name one invalid option, and with the launcher's own channel flag and value before an invalid option name only that option. Only the third run can fail the leg, and only when the first two passed; a zero exit, a session start, a timeout, oversized output or a failed control is not-run. It proves only that the parser still takes the flag, not that a live session accepts channel messages, and no real Claude parse error is recorded, so a real candidate may always be not-run. `classifyClaudeParentCommand` stays a separate check on the launcher's real argv. Codex's pinned 0.154.0 is not probed, so a pinned install lists nothing for now. Only skills are listed: Qwen by its `_meta.source` (`bundled-skill`, `skill-dir-command`), Kimi by the `skill:` prefix of its name, Codex by an enabled entry of `skills/list`. A builtin such as Kimi's `compact` or Qwen's `clear` changes session or host state and is never listed. A session the hub cannot read natively publishes its own list with `hub_capabilities_publish`; that list is bound to the connection that published it, forced to `invoke: prompt`, and gone when the connection ends.
|
|
716
716
|
|
|
717
717
|
The Orca CLI is watched the same way (#1808 T4, `orca-cli`, gate `observe`, never a gate: no start or restore path reads it to refuse anything; verified versions 1.4.245 and 1.4.250 are the two read-only receipts in `docs/verification/`). When Orca is installed, `ahub doctor` runs `orca --version`, `orca terminal list --json` and `orca worktree list --json` (all read-only) and compares field names and types only, never a value: the terminal rows must carry the handle, incarnation, worktree id and worktree path (`worktreePath`, else `projectRoot`) the recovery binds a terminal with, and the worktree rows the id and path it matches a project root with. A missing field fails the `orca cli` row and names the field, an Orca newer than 1.4.250 is only a note, and an answer that is not Orca's `ok: true` JSON (Orca not running) is a note, not a shape problem. `ahub restart` and `ahub upgrade` run the same check while they make the plan, only for a plan with a peer whose terminal the recovery looks up and before anything is closed: a failed shape check adds a blocker to that project's rows, with the next action, and a newer Orca adds a `note:` line that blocks nothing. A plan with no such peer runs no Orca command and carries no note. The daily watch lists the public releases of `stablyai/orca` as a drift row only. Orca has no install source a runner can use, so the manifest entry has install method `unavailable`, `autoAdmit` false and one `tui-desktop` leg that only the person's machine can run.
|
|
718
718
|
|
|
@@ -827,16 +827,36 @@ Pi starts in its TUI by default; `ahub pi --headless`, or the start mode
|
|
|
827
827
|
setting (`ahub settings set peers.pi.start_mode headless`), asks for the
|
|
828
828
|
background peer instead. The project uses its existing OmniRoute connection for DGX;
|
|
829
829
|
`pi.dgx_coding` and `pi.dgx_fast` select the gateway's configured model IDs.
|
|
830
|
-
Every Pi start (headless, TUI, console or auto start) first runs the
|
|
831
|
-
`pi.cmd
|
|
832
|
-
|
|
833
|
-
|
|
830
|
+
Every Pi start (headless, TUI, console or auto start) first runs the selected
|
|
831
|
+
Pi executable (an explicit `pi.cmd`, else the hub-owned pin, else `pi` on PATH)
|
|
832
|
+
with `--version` (#847). Verified Pi versions are
|
|
833
|
+
[1.4.0](verification/2026-10-26-pi-140-compat.md),
|
|
834
|
+
[1.5.0](verification/2026-11-03-pi-150-compat.md),
|
|
835
|
+
[1.5.2](verification/2026-11-14-pi-152-compat.md),
|
|
836
|
+
[1.6.0](verification/2026-11-25-pi-160-compat.md),
|
|
837
|
+
[1.6.1](verification/2026-11-26-compat-pi-1.6.1.md) and
|
|
838
|
+
[1.8.0](verification/2026-12-06-compat-pi-1.8.0.md).
|
|
839
|
+
A different or unreadable version is refused before Pi starts unless the
|
|
834
840
|
person trusts that exact version with `ahub agents trust pi <version>`.
|
|
835
841
|
|
|
836
|
-
`pi
|
|
837
|
-
|
|
842
|
+
A person can run `ahub agents install pi` to pin the newest verified version in
|
|
843
|
+
the hub home, or `ahub agents install pi <version>` for a specific verified
|
|
844
|
+
version. The command checks the exact registry artifact's integrity before any
|
|
845
|
+
install or pin update. It records an existing matching version without
|
|
846
|
+
reinstalling it. Each version stays under `<hub home>/agents/pi/<version>/`, so
|
|
847
|
+
an already running Pi keeps its executable.
|
|
848
|
+
|
|
849
|
+
When `pi.cmd` is omitted, the hub starts the selected install. An explicit
|
|
850
|
+
`pi.cmd` takes precedence. The command writes no project configuration. The
|
|
851
|
+
doctor and CLI watch report the Pi version on PATH, the hub pin and the newest
|
|
852
|
+
verified version. `ahub agents --json` reports the executable the hub selects.
|
|
853
|
+
|
|
854
|
+
`pi.max_steps` defaults to `100` managed tool-step attempts per logical turn,
|
|
855
|
+
from its first start to its settle, so a native retry does not reset the count
|
|
856
|
+
(#1447 T3, #1967); this repository's tracked setting and the init template also use
|
|
838
857
|
`100`. Existing projects with explicit `pi.max_steps: 30` keep `30` until the
|
|
839
|
-
person edits that setting
|
|
858
|
+
person edits that setting; `ahub doctor` warns, naming the file and key, when a
|
|
859
|
+
project file sets it below the default. Failed managed
|
|
840
860
|
calls count and the first rejected attempt is reported as `101/100`. The local
|
|
841
861
|
worker's `local.max_steps` default and repository setting remain `30`. This is a
|
|
842
862
|
source/config change; it does not restart a running Pi or change its active turn.
|
|
@@ -2180,7 +2200,7 @@ ahub memory forget 1a2b3c4d # also promote, demote, supersede, rebu
|
|
|
2180
2200
|
|
|
2181
2201
|
A scheduled memory review is off by default. `memory.review` in `.agenthub/config.local.json` (it needs both `max_tokens_run` and `max_tokens_week`) files one `review`-class card per period over the notes whose code anchors no longer resolve, and `ahub memory review on|off|status` is the person's switch. While a turn works that card, the hub refuses tool calls outside the review's scope and stops the review at either token cap ([scheduled review](memory.md#scheduled-review-and-its-switch-1329-part-1)).
|
|
2182
2202
|
|
|
2183
|
-
The declared `@staix/agent-mem` range (`>=0.
|
|
2203
|
+
The declared `@staix/agent-mem` range (`>=0.50.0 <1.0.0` in `package.json`, resolved to 0.50.0 by `bun.lock`) resolves `AMEM_HOME`, then `$AGENTHUB_HOME/memory`, then `~/.agenthub/memory`. A plain release inside that range opens memory without a hub release when its host API range intersects the supported `[1, 1]`; an out-of-range, unattested, prerelease or host-API-incompatible package refuses to open it. A new minor can raise the store format floor: an older hub or amem cannot read a store a newer one wrote, so roll back the hub together with the store. An absent `M/profile.json` selects shared v1; an explicit generation selects `M/generations/G` with the package's readonly legacy bridge. All daemon memory consumers and the hub memory/goal CLI use that selected profile. Invalid metadata or a missing selected generation makes native memory unavailable while the bus and board continue; there is no fallback to legacy writes. Inspect the daemon's memory binding/availability before interpreting missing memory as an empty store.
|
|
2184
2204
|
|
|
2185
2205
|
The daemon checks its selector at hub operation entry and before candidate/counter writes. It does not hot-switch handles or provide an atomic fence against selection changes during an in-flight core call. Quiesce consumers and close their handles before migration or selection changes; reopen through the supported session-preserving lifecycle afterward. Candidate/counter storage remains `M/candidates.db`, independent of `G`; since agent-mem 0.7.0 `amem review` also lists and accepts candidates on a selected generation. Every running hub using this home needs an authenticated receipt: a matching ready binding, or a generation-capable unbound receipt (`disabled` when native memory is off, `unavailable` when opening failed) proving it holds no memory handle. An unbound daemon and zero running hubs are quiesced for memory; a stale bound handle, unreadable registry or unknown runtime is not ready. Existing JSON memory/goal results remain unchanged; the additive binding receipt belongs to daemon status, profile-check and the decay object. This source integration does not authorize installing a new runtime, migrating real memory, restarting sessions or claiming real-machine sync/capture receipts. Migration/deactivation and their limits belong to [agent-mem](https://github.com/STAIxBWLB/agent-mem); see [the hub profile contract](memory.md#selected-memory-profile).
|
|
2186
2206
|
|
|
@@ -2938,6 +2958,7 @@ A guarded file edit that the daemon keeps at its accepted value remains visible
|
|
|
2938
2958
|
| Routing | `bus.pull_budget_bytes` (1-65536 bytes, default 65536) | `config.local.json` | live; next pull-only read, oldest first; the first oversized item still goes |
|
|
2939
2959
|
| Routing | `bus.notes_kept` (1-10 notes, default 10) | `config.local.json` | live; next shared-note or failed-preface merge; existing prefaces remain unchanged on reload |
|
|
2940
2960
|
| Routing | `bus.terminal_history_limit` (1-2048 rows, default 2048) | `config.local.json` | live; next normal terminal settlement; unresolved rows and retry ancestry stay protected |
|
|
2961
|
+
| Routing | `bus.hold_notice_ms` (0-86400000 ms, default 1800000; 0 turns the repeat off) | `config.local.json` | live; the conductor's hold notice repeats once after this long while a row is unresolved (#1946; `conductor.feed = off` silences it) |
|
|
2941
2962
|
| Routing | `bus.accepted_settle_ms` (1000-86400000 ms, default 600000) | `config.local.json` | live; the next accepted-channel timeout sweep, approximately every five seconds |
|
|
2942
2963
|
| Routing | `recovery.reconnect_wait_s` (600-3600 seconds, default 600) | `config.local.json` | next use; the next managed-terminal attachment wait of an upgrade recovery reads it once, at its start |
|
|
2943
2964
|
| Routing | `recovery.unmanaged_reconnect_wait_s` (90-900 seconds, default 90) | `config.local.json` | next use; the next unmanaged Claude reconnect wait reads it once, at its start |
|
|
@@ -4388,14 +4409,23 @@ compatibility window uses that date, so an earlier date would end support early.
|
|
|
4388
4409
|
| 14 | v0.12.16 | 2026-10-09 | v0.12.16 | 2026-10-09 |
|
|
4389
4410
|
| 15 | v0.12.17 | 2026-10-09 | v0.12.19 | 2026-10-09 |
|
|
4390
4411
|
| 16 | v0.12.20 | 2026-10-09 | v0.25.0 | 2026-11-01 |
|
|
4391
|
-
| 17 | v0.26.0 | 2026-11-01 | v0.
|
|
4412
|
+
| 17 | v0.26.0 | 2026-11-01 | v0.54.0 | 2026-12-06 |
|
|
4392
4413
|
|
|
4393
|
-
Through 2026-12-
|
|
4414
|
+
Through 2026-12-06, the default accepted window is 16–17. Protocol 15 or older needs a fresh session.
|
|
4394
4415
|
|
|
4395
4416
|
<!-- BRIDGE_PROTOCOL_RELEASES:END -->
|
|
4396
4417
|
|
|
4397
4418
|
Release N-1 is counted in minor versions, separately from this protocol window
|
|
4398
|
-
(#1164, family contract entelecheia/ai-workspace#70). For 0.
|
|
4419
|
+
(#1164, family contract entelecheia/ai-workspace#70). For 0.54.x, N-1 is 0.53.0,
|
|
4420
|
+
the latest published patch of 0.53.x (declared `@staix/agent-mem` `>=0.47.0 <1.0.0`,
|
|
4421
|
+
0.47.0 in its fixture lock, control protocol 17 with descriptor floor 16). Every
|
|
4422
|
+
patch on 0.54.x keeps that release baseline. For 0.53.x, N-1 is 0.52.0,
|
|
4423
|
+
the latest published patch of 0.52.x (declared `@staix/agent-mem` `>=0.47.0 <1.0.0`,
|
|
4424
|
+
0.47.0 in its fixture lock, control protocol 17 with descriptor floor 16). Every
|
|
4425
|
+
patch on 0.53.x keeps that release baseline. For 0.52.x, N-1 is 0.51.0,
|
|
4426
|
+
the latest published patch of 0.51.x (declared `@staix/agent-mem` `>=0.42.0 <1.0.0`,
|
|
4427
|
+
0.43.0 in its fixture lock, control protocol 17 with descriptor floor 16). Every
|
|
4428
|
+
patch on 0.52.x keeps that release baseline. For 0.51.x, N-1 is 0.50.0,
|
|
4399
4429
|
the latest published patch of 0.50.x (declared `@staix/agent-mem` `>=0.42.0 <1.0.0`,
|
|
4400
4430
|
0.43.0 in its fixture lock, control protocol 17 with descriptor floor 16). Every
|
|
4401
4431
|
patch on 0.51.x keeps that release baseline. For 0.50.x, N-1 is 0.49.1,
|
|
@@ -5225,26 +5255,33 @@ class `fixed_model` selections and a person's explicit model override retain
|
|
|
5225
5255
|
their existing behavior; an explicit model bypasses this route.
|
|
5226
5256
|
|
|
5227
5257
|
Omitting `decision_mode` means `off`: no decision request or evidence is built.
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
`
|
|
5232
|
-
|
|
5233
|
-
|
|
5258
|
+
`shadow` records the proposed alias/effort, margin, latency and decider while
|
|
5259
|
+
keeping the existing model, effort and conversation. After reviewing
|
|
5260
|
+
`adec shadow gate`, a person can set `decision_mode = "enforce"` on a
|
|
5261
|
+
`type = "decision"` route in `.agenthub/routing.toml`. The machine-local
|
|
5262
|
+
overlay cannot set it. The hub never reads the gate or flips the setting.
|
|
5263
|
+
`ahub doctor` lists routes with enforce enabled and checks their candidate
|
|
5264
|
+
aliases against the gateway inventory.
|
|
5265
|
+
|
|
5266
|
+
Enforce uses an eligible, non-abstaining alias and passes its
|
|
5267
|
+
`reasoning_effort` to the gateway. An abstention, timeout, failure or ineligible
|
|
5268
|
+
pair uses the route's `constraints.current` pair. The current effort is the
|
|
5269
|
+
first configured effort for the heuristic alias, with the efficient alias or
|
|
5270
|
+
first offered pair used when the heuristic alias has no candidate.
|
|
5234
5271
|
|
|
5235
5272
|
The configured alias/effort list has at most 26 pairs. Aliases narrow the adec
|
|
5236
5273
|
policy; efforts are an additional hub-side response allowlist and are not sent
|
|
5237
5274
|
as a policy override. Align the lists with the service policy: an unconfigured
|
|
5238
|
-
effort is refused as `outside_options`, keeping the
|
|
5275
|
+
effort is refused as `outside_options`, keeping the current pair in enforce mode. The request
|
|
5239
5276
|
cannot add a policy candidate. The service assembles its question and
|
|
5240
5277
|
owns its hard rules, margin threshold, in-memory pins and fallback. A valid
|
|
5241
5278
|
`fallbackApplied` pair is recorded as the service's proposed fallback even when
|
|
5242
|
-
`abstain` is true.
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
same user turn. Operational diagnostics contain a closed cause and repair step,
|
|
5279
|
+
`abstain` is true. Shadow keeps the heuristic model and effort for every
|
|
5280
|
+
result. Enforce uses the current pair on an abstention or failure, including
|
|
5281
|
+
`no_candidate`, timeout, a malformed response or an out-of-list pair.
|
|
5282
|
+
An HTTP 400 indicates a caller or configuration error. Inspect the policy
|
|
5283
|
+
ID and allowed pairs. Route events record a closed reason, and a failed
|
|
5284
|
+
service is not asked again in the same user turn. Operational diagnostics contain a closed cause and repair step,
|
|
5248
5285
|
and are emitted once per state/configuration change; a successful reply resets
|
|
5249
5286
|
the diagnostic so a later recurrence is visible. Per-call route records remain
|
|
5250
5287
|
available for outcome correlation. The default total timeout is 8 seconds (configurable from 1 to
|
|
@@ -5254,9 +5291,9 @@ HTTP numeric loopback with `/v1/route`, without userinfo, query or fragment.
|
|
|
5254
5291
|
|
|
5255
5292
|
Each eligible tool round carries the same opaque, route/session/user-turn-bound
|
|
5256
5293
|
`turnId`. adec therefore reuses its pin while rechecking current hard rules.
|
|
5257
|
-
The
|
|
5258
|
-
|
|
5259
|
-
service.
|
|
5294
|
+
The current pair comes from the heuristic and configured candidates. Shadow
|
|
5295
|
+
sends no reasoning effort to the gateway. Explicit model selections bypass
|
|
5296
|
+
the service.
|
|
5260
5297
|
Changing a service, provider, model, version or policy threshold requires a new
|
|
5261
5298
|
shadow period. The hub does not recalibrate a remote policy. The optional decider `version` is recorded when configured on the service;
|
|
5262
5299
|
otherwise it stays unknown and is not inferred from the model id. Moving
|
|
@@ -5277,17 +5314,42 @@ can enforce on-prem candidates/decider rules. The ordinary gateway campus and
|
|
|
5277
5314
|
execution-budget checks still apply. Current board/turn privacy and observer
|
|
5278
5315
|
facts are checked again across admission, campus and service awaits. A changed
|
|
5279
5316
|
or unavailable authority refuses the stale turn instead of turning into a
|
|
5280
|
-
service-error fallback
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5317
|
+
service-error fallback. Inspect current task policy and retry. The hub checks
|
|
5318
|
+
authority again before telemetry and after gateway discovery for enforce.
|
|
5319
|
+
Model execution still uses the host's privacy and budget checks. Route events
|
|
5320
|
+
omit source text, tool arguments, credentials and server error prose.
|
|
5321
|
+
|
|
5322
|
+
The optional stage classifier is described below. The manual offline triage
|
|
5323
|
+
evaluation runs separately. Fake-service tests cover routing behavior and
|
|
5324
|
+
gateway requests.
|
|
5325
|
+
|
|
5326
|
+
#### Triage shadow and enforce switch (#1936)
|
|
5327
|
+
|
|
5328
|
+
`routing.toml` takes an optional `[inference]` table, read from that file only
|
|
5329
|
+
(`routing.local.toml` cannot set it):
|
|
5330
|
+
|
|
5331
|
+
```toml
|
|
5332
|
+
[inference]
|
|
5333
|
+
triage_adec = "off" # "off" (default), "shadow" or "enforce"
|
|
5334
|
+
triage_adec_endpoint = "http://127.0.0.1:8740/v1/systemone"
|
|
5335
|
+
```
|
|
5336
|
+
|
|
5337
|
+
With `shadow`, a proposal that names no class also asks a loopback adec the
|
|
5338
|
+
`ahub.triage.v1` question after the hub's own model answered. The request carries
|
|
5339
|
+
the seven classes as criteria, the hub's answer as `current`, the closed tag `ko`
|
|
5340
|
+
when the title or detail holds Hangul, and `pii: true` for a PII task. The board
|
|
5341
|
+
class stays the hub model's answer. A PII task asks adec only where the hub model
|
|
5342
|
+
was reachable (on campus); off campus neither is asked. When the task is approved,
|
|
5343
|
+
its class is posted to `/v1/shadow/label` with the decision id and the class only.
|
|
5344
|
+
A down, slow, abstaining or malformed adec changes nothing and never fails or
|
|
5345
|
+
blocks a task. The decision id is kept in memory, so a restart before approval
|
|
5346
|
+
drops that label.
|
|
5347
|
+
|
|
5348
|
+
With `enforce`, a non-abstaining adec class replaces the hub model's; an
|
|
5349
|
+
abstention, timeout or failure keeps the hub model's class. The hub never flips
|
|
5350
|
+
the switch and never reads `adec shadow gate` to do so: that is the person's
|
|
5351
|
+
decision once the gate passes. The per-route switch for model and effort is
|
|
5352
|
+
described in the decision route section above.
|
|
5291
5353
|
|
|
5292
5354
|
#### Optional stage classifier band (#554)
|
|
5293
5355
|
|
|
@@ -5329,8 +5391,8 @@ effort, margin, latency, reason, screened decider) and changes no tier, model,
|
|
|
5329
5391
|
effort or conversation: shadow keeps the exact heuristic routing. Abstain or
|
|
5330
5392
|
`no_candidate`, a transport failure or timeout, `decision_mode = off` and an
|
|
5331
5393
|
off-campus decider for a PII or private turn each keep the heuristic tier and
|
|
5332
|
-
record a closed reason in that event.
|
|
5333
|
-
|
|
5394
|
+
record a closed reason in that event. Stage classifiers accept off and shadow.
|
|
5395
|
+
The enforce switch applies only to a `type = "decision"` route. One question is asked per user turn, reused
|
|
5334
5396
|
through the tool loop, and it dies with the turn: a turn that ends while the
|
|
5335
5397
|
question is outstanding applies no answer and is not failed by it. The question
|
|
5336
5398
|
carries R1's closed stage evidence (numeric signals, dimensions and scores),
|
|
@@ -5720,7 +5782,7 @@ for each shard, or from one unsharded leg's log, then `bun scripts/make-test-tim
|
|
|
5720
5782
|
A red CI job gets one rerun of its failed jobs on the same head, then an investigation; the weekly flake ledger issue and the rerun policy are in `docs/agent-notes/tests.md` (#1257).
|
|
5721
5783
|
The `closing-refs` workflow fails a PR whose title, body or commit messages would make
|
|
5722
5784
|
GitHub close an issue the text only mentions (`Refs #N`, a negated or qualified keyword);
|
|
5723
|
-
an issue linked only in the sidebar passes (#760).
|
|
5785
|
+
an issue linked only in the sidebar passes (#760). It is the shared `@staix/repo-tools` workflow, pinned by commit SHA (#1938).
|
|
5724
5786
|
The gate holds `<git common dir>/ahub-heavy.lock` across every worktree of a
|
|
5725
5787
|
repository. A second gate waits up to `AHUB_CHECK_LOCK_WAIT_S` (1800 seconds by
|
|
5726
5788
|
default; 0 fails immediately) and names the holder. A holder whose PID is gone
|
|
@@ -5888,6 +5950,19 @@ terminal exits, a requested stop (`ahub stop pi`), requested shutdown and
|
|
|
5888
5950
|
recovery operations suppress this restart. Crash recovery's #66
|
|
5889
5951
|
recorded-session/fresh-start choices are unchanged.
|
|
5890
5952
|
|
|
5953
|
+
A managed headless Pi owner killed by a signal or ending itself with
|
|
5954
|
+
`ctx.shutdown()`, including a `model_select` of a non-local provider, is
|
|
5955
|
+
restarted once under `pi.auto_start` even when a turn or tool was active
|
|
5956
|
+
(#1967). This lifts only the turn/tool-active fence: a native terminal owner is
|
|
5957
|
+
still not restarted, the restart still needs a verified recorded session and
|
|
5958
|
+
the one-restart-in-60-seconds limit still applies. The same cause
|
|
5959
|
+
(`signal:<name>`, `session_shutdown` or `model_select:<provider>`) within 10
|
|
5960
|
+
minutes is not restarted again; the console notice says so and gives `ahub pi`.
|
|
5961
|
+
The exit record also carries that reason label, the last native event, a
|
|
5962
|
+
bounded stderr tail and the provider a `model_select` named. The hub adds no
|
|
5963
|
+
task text, but the stderr tail is Pi's native output, cut to 300 characters and
|
|
5964
|
+
not filtered, so check it before sharing a log.
|
|
5965
|
+
|
|
5891
5966
|
### Explicit Pi history replacement
|
|
5892
5967
|
|
|
5893
5968
|
If an offline Pi owner has no verified persisted resume state, inspect the old
|
|
@@ -6034,7 +6109,7 @@ A renewal marker in `hub.db` that cannot be read stops the hub at start with
|
|
|
6034
6109
|
`ahub accounts import --from orca` (#1811, person only) prints an `accounts` block from Orca's managed accounts: labels and kinds, a home only where Orca carries one (else a placeholder `readAccounts` refuses), no email or id, and it writes nothing. Paste it into `config.local.json`.
|
|
6035
6110
|
`instances.<id>.account` (#1810) names a declared account of the instance's own kind (Codex or Claude); config load refuses an undeclared one or one of another kind, and the daemon starts the instance with that account's home. `ahub setup` lists every declared Claude home with its label and installs the plugin there. When an account is paused its work may go to a peer of the same kind on another declared account (a `budget_handoff` event names both labels); `budget.cross_account_handoff: false` restores handoff across kinds only.
|
|
6036
6111
|
|
|
6037
|
-
Declared accounts (#1810): list each extra Claude or Codex home under `accounts` in `.agenthub/config.local.json` (label, `kind`, absolute `home`). A Claude session under a declared home budgets as `claude:<label
|
|
6112
|
+
Declared accounts (#1810): list each extra Claude or Codex home under `accounts` in `.agenthub/config.local.json` (label, `kind`, absolute `home`). A Claude session under a declared home budgets as `claude:<label>`. Output shows labels only, never home paths. Once a kind has a declared account (#1941), a peer of that kind with no account (an undeclared home, or an instance without `account`) budgets as `<kind>:default`, for example `claude:default`, a separate account from the base session's `claude:<label>`; a kind with no declared account, and a project without `accounts`, keep the bare kind as the key. A pause stored under the bare kind before the change moves to `<kind>:default` at the next start.
|
|
6038
6113
|
|
|
6039
6114
|
Before changing accounts or resetting a window, checkpoint any turn that must
|
|
6040
6115
|
continue and check the task board for work already handed over. Use reset for
|
|
@@ -7121,7 +7196,7 @@ Native launcher connections retry transport timeouts/unclean closes with bounded
|
|
|
7121
7196
|
|
|
7122
7197
|
## amem runtime (agent-mem#13 P4)
|
|
7123
7198
|
|
|
7124
|
-
The hub accepts @staix/agent-mem <!-- facts:agent-mem-pin -->>=0.
|
|
7199
|
+
The hub accepts @staix/agent-mem <!-- facts:agent-mem-pin -->>=0.50.0 <1.0.0<!-- /facts:agent-mem-pin --> (a range `bun.lock` resolves; a newer plain release in it with a supported host API needs no hub release) for recall, curated evidence and local deterministic capture. No runtime call reaches a claude-mem worker; `memory.worker_url` is ignored. The person's `ahub memory import claude-mem` remains explicit and off by default. Existing profile, alias, PII and private-turn fences still apply. `ask --remember` and context checkpoints propose machine-local candidates, never automatic curated evidence. See [memory integration](memory.md#in-process-recall-and-capture-agent-mem13-p4) for changed behavior and bounded-view ceilings.
|
|
7125
7200
|
|
|
7126
7201
|
## Person-run backlog legs (#1176)
|
|
7127
7202
|
|
|
@@ -7276,6 +7351,8 @@ restoration uses the target-owned snapshot through a tools connection.
|
|
|
7276
7351
|
|
|
7277
7352
|
An unmanaged reconnect-only Claude channel may reattach itself without a native launch. The source keeps a SHA-256 fingerprint of its observed session identity separate from restoration metadata (the raw unmanaged session id is omitted from the plan) and verifies the exact peer, kind and attachment against the live channel. This exception requires no terminal or restoration arguments, no managed launch proof, and an absent or confirmed-ended launcher; unknown launcher evidence refuses. Other peer identities still compare exactly.
|
|
7278
7353
|
|
|
7354
|
+
On Claude plugin startup, the launcher checks the `asuite` executable on the session's PATH with `asuite mcp-shim ahub --contract`. If it advertises [MCP relay contract v1](specs/relay-contract.md) within 500 ms, the plugin runs `asuite mcp-shim ahub` in the same process with the original stdio. If the check does not match, the plugin runs its bundled Bun relay as before. No agent-suite installation is required to use the plugin.
|
|
7355
|
+
|
|
7279
7356
|
Claude channel push mode also requires the relay's direct parent process row to begin with the exact `claude --dangerously-load-development-channels <plugin-or-server-target>` argv prefix. The inherited `AGENTHUB_CHANNEL=1` marker alone is insufficient: Claude's `daemon run` and `bg-spare` children inherit it but do not load the development channel, and print forms ignore it. The hub observes the relay and parent for a served socket, while the fallback bridge observes its own parent. The bounded `ps -ww` read is display/attachment evidence, not authentication; unreadable, truncated, changed-parent or unrecognized rows attach tools-only and keep messages for `hub_inbox`. `ahub status` shows the attach mode and the closed evidence label.
|
|
7280
7357
|
|
|
7281
7358
|
|
|
@@ -7853,7 +7930,7 @@ A launch from an Orca pane records `ORCA_PANE_KEY`, `ORCA_TAB_ID` and `ORCA_WORK
|
|
|
7853
7930
|
|
|
7854
7931
|
When a delivery to a peer whose launch record holds an Orca pane key has stayed queued for two minutes, the daemon asks Orca for that pane's state: one `orca agent list --json --worktree id:<worktree id>` read, killed after five seconds, at most once a minute per peer, taking the one row whose `paneKey` equals the record's. A state of `blocked` or `waiting` raises one Attention item at level act, "<peer> waits for you in Orca: orca terminal switch --terminal <handle>"; it clears when the state changes or the delivery is accepted. A peer without a recorded pane is never read, and an error, a timeout, a missing row or any other state raises nothing. The hub reads only and never answers the prompt. `orcaPaneEveryMs` (daemon option, default 30 s) is the check cadence, not the read rate. Receipt: `docs/verification/2026-12-01-1811-orca-agent-list.md`.
|
|
7855
7932
|
|
|
7856
|
-
Orca companions can read optional `accountLabel` and `orcaPaneKey` on peer rows in a person's `ahub status --json`. The pane key comes from the current live launcher record. `ahub launch-line <kind> --json` returns a terminal command and a project environment overlay for `claude` or `codex` on a running hub. The query starts nothing. See [companion CLI v2](contracts/companion-cli-v2.json).
|
|
7933
|
+
Orca companions can read optional `accountLabel` and `orcaPaneKey` on peer rows in a person's `ahub status --json`. The pane key comes from the current live launcher record. `ahub launch-line <kind> --json` returns a terminal command and a project environment overlay for `claude` or `codex` on a running hub. The query starts nothing. See [companion CLI v2](contracts/companion-cli-v2.json). Companion CLI v3 (0.54.0, #1963) adds `[--exec <absolute-path|self>] [-- <launch arguments>]`: every argument after `--` is the launch's own options and is kept in order after the kind (a hub-owned flag such as `--project` or `--as`, or an argument with a control character, is refused with a fixed reason, never dropped), `--exec` names the executable the printed command starts with (`self` prints this ahub's runtime and entry file, which run without `ahub` on PATH), and a daemon older than 0.53.0 or one that reports no version is refused with nothing on stdout. See [companion CLI v3](contracts/companion-cli-v3.json).
|
|
7857
7934
|
|
|
7858
7935
|
## Herdr companion (moved, #1199)
|
|
7859
7936
|
|