@staix/agent-hub 0.35.0 → 0.37.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 +43 -0
- package/README.md +25 -4
- package/THIRD_PARTY_NOTICES.md +0 -18
- package/docs/agent-notes/README.md +71 -1
- package/docs/agent-notes/adapters.md +5 -2
- package/docs/agent-notes/bus.md +1 -0
- package/docs/agent-notes/daemon.md +7 -6
- package/docs/agent-notes/local-worker.md +1 -0
- package/docs/agent-notes/models.md +5 -3
- package/docs/agent-notes/tasks.md +9 -2
- package/docs/agent-notes/tests.md +1 -1
- package/docs/contracts/companion-cli-v1.json +70 -0
- package/docs/design/adapters.md +115 -2
- package/docs/design/agent-hub-architecture.md +10 -2
- package/docs/design/bus.md +8 -0
- package/docs/design/execution-reference.md +171 -11
- package/docs/design/guidance-experiments.md +438 -0
- package/docs/design/guidance-probes.md +802 -0
- package/docs/design/model-routes.md +1053 -0
- package/docs/design/supervision.md +121 -0
- package/docs/design/task-board.md +111 -0
- package/docs/dogfood.md +24 -15
- package/docs/events.md +20 -1
- package/docs/memory.md +3 -3
- package/docs/operations.md +366 -133
- package/docs/profiles.md +2 -2
- package/docs/quickstart.md +114 -3
- package/docs/research.md +5 -3
- package/docs/sdlc.md +113 -7
- package/docs/security.md +88 -6
- package/docs/specs/2026-09-19-agent-hub-design.md +14 -11
- package/docs/specs/2026-10-04-switchyard-source-port-design.md +3 -1
- package/docs/verification/2026-10-25-qwen-dual-output-t0.md +22 -0
- package/docs/verification/2026-11-08-qwen-0269-model-setter-1317.md +25 -11
- package/docs/verification/2026-11-09-qwen-0270-acp.md +181 -0
- package/docs/verification/2026-11-09-qwen-0270-model-setter-1317.md +61 -0
- package/docs/verification/2026-11-10-0.36.0.md +59 -0
- package/docs/verification/2026-11-10-claude-implementer-2.1.322.md +59 -0
- package/docs/verification/2026-11-10-qwen-0270-dual-output.md +367 -0
- package/docs/verification/2026-11-10-qwen-0271-dual-output.md +101 -0
- package/docs/verification/2026-11-11-0.37.0.md +40 -0
- package/docs/verification/2026-11-11-guidance-probe-t2-1226.md +153 -0
- package/docs/verification/2026-11-11-qwen-setter-suggestions-off.md +167 -0
- package/docs/verification/claude-shell-wrapper-native.py +1 -1
- package/docs/verified.json +27 -27
- package/package.json +3 -4
- package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-hub/kimi-hook.js +3570 -1800
- package/plugins/agent-hub/server.js +4112 -1913
- package/src/adapters/channel-peer.ts +7 -1
- package/src/adapters/claude-channel.ts +7 -4
- package/src/adapters/compat.ts +10 -10
- package/src/adapters/local-probe.ts +174 -0
- package/src/adapters/local-worker.ts +233 -22
- package/src/adapters/qwen-dual.ts +324 -44
- package/src/cli/console-state.ts +25 -6
- package/src/cli/console-versions.ts +99 -0
- package/src/cli/console.ts +13 -1
- package/src/cli/guidance.ts +67 -0
- package/src/cli/help.ts +12 -4
- package/src/cli/identity.ts +10 -3
- package/src/cli/init-prompt.ts +15 -2
- package/src/cli/init-required-checks.ts +122 -0
- package/src/cli/init-settings.ts +10 -4
- package/src/cli/init.ts +39 -3
- package/src/cli/install-paths.ts +7 -2
- package/src/cli/lineage.ts +78 -0
- package/src/cli/main.ts +171 -14
- package/src/cli/runtime-version-warning.ts +2 -2
- package/src/cli/sdlc-output.ts +9 -5
- package/src/cli/setup-research.ts +10 -0
- package/src/hub/autonomy-defaults.ts +20 -9
- package/src/hub/board.ts +346 -4
- package/src/hub/build-entry.ts +11 -0
- package/src/hub/bus.ts +12 -0
- package/src/hub/ci-watch.ts +4 -4
- package/src/hub/config-apply.ts +6 -3
- package/src/hub/config-trust.ts +7 -1
- package/src/hub/control-client.ts +5 -2
- package/src/hub/daemon.ts +508 -26
- package/src/hub/delivery-hints.ts +4 -2
- package/src/hub/delivery-journal.ts +50 -2
- package/src/hub/delivery-public.ts +51 -0
- package/src/hub/dogfood-profile.ts +8 -4
- package/src/hub/events.ts +3 -2
- package/src/hub/execution-lineage-owner.ts +272 -0
- package/src/hub/execution-lineage.ts +52 -8
- package/src/hub/execution-links.ts +85 -0
- package/src/hub/guidance-probe-store.ts +713 -0
- package/src/hub/guidance-probes.ts +358 -0
- package/src/hub/guidance-variants.ts +398 -0
- package/src/hub/handoff.ts +1 -0
- package/src/hub/hub-tools.ts +43 -2
- package/src/hub/inference.ts +18 -5
- package/src/hub/manager.ts +44 -2
- package/src/hub/memory-policy.ts +2 -2
- package/src/hub/operational-authority.ts +13 -1
- package/src/hub/peers.ts +6 -1
- package/src/hub/planning.ts +1 -1
- package/src/hub/ports.ts +1 -1
- package/src/hub/progress.ts +47 -23
- package/src/hub/report.ts +2 -0
- package/src/hub/research.ts +1 -0
- package/src/hub/restart.ts +20 -0
- package/src/hub/roles.ts +26 -0
- package/src/hub/routing.ts +4 -1
- package/src/hub/sdlc-merge.ts +39 -1
- package/src/hub/sdlc-release-authorization.ts +139 -17
- package/src/hub/sdlc-release-policy.ts +100 -0
- package/src/hub/sdlc-release.ts +60 -8
- package/src/hub/sdlc.ts +62 -11
- package/src/hub/settings.ts +2 -0
- package/src/hub/supervision-proposals.ts +405 -0
- package/src/hub/supervision-rules.ts +388 -0
- package/src/hub/supervision.ts +2 -0
- package/src/hub/task-approval.ts +2 -2
- package/src/hub/task-repository.ts +5 -0
- package/src/hub/tasks.ts +917 -53
- package/src/local/probe-errors.ts +28 -0
- package/src/local/probe-sandbox.ts +224 -0
- package/src/local/probe-types.ts +108 -0
- package/src/local/probe-workspace.ts +237 -0
- package/src/local/sandbox.ts +71 -2
- package/src/local/tools.ts +135 -9
- package/src/memory/capture.ts +2 -2
- package/src/models/relay.ts +9 -2
- package/src/models/route/advisor-trigger.ts +88 -0
- package/src/models/route/config.ts +39 -8
- package/src/models/route/conversation-view.ts +179 -0
- package/src/models/route/decision-evidence.ts +1 -1
- package/src/models/route/decision.ts +193 -26
- package/src/models/route/escalation-control.ts +30 -0
- package/src/models/route/hub-prompts.ts +97 -0
- package/src/models/route/judge-choice.ts +155 -0
- package/src/models/route/judge-replies.ts +102 -0
- package/src/models/route/labels.ts +14 -70
- package/src/models/route/observation-signals.ts +250 -0
- package/src/models/route/plan-execute-choice.ts +27 -0
- package/src/models/route/relay-selector.ts +10 -9
- package/src/models/route/runtime.ts +129 -60
- package/src/models/route/stage-diagnostics.ts +22 -0
- package/src/models/route/stage-evidence.ts +55 -0
- package/src/models/route/stage-fallback.ts +58 -0
- package/src/models/route/stage-input.ts +155 -0
- package/src/models/route/stage.ts +5 -147
- package/src/models/route/turn-state.ts +77 -0
- package/src/omniroute/client.ts +3 -0
- package/src/ui/guidance-panel.ts +156 -0
- package/src/ui/guidance-view.ts +43 -0
- package/src/ui/lineage-view.ts +34 -0
- package/src/ui/plugin.ts +141 -27
- package/src/version.ts +4 -0
- package/templates/adec/README.md +32 -0
- package/templates/adec/ahub.plan-execute.json +23 -0
- package/templates/adec/ahub.stage.json +23 -0
- package/LICENSES/Apache-2.0.txt +0 -204
- package/src/models/route/advisor.ts +0 -102
- package/src/models/route/escalation.ts +0 -82
- package/src/models/route/judge.ts +0 -23
- package/src/models/route/normalize.ts +0 -103
- package/src/models/route/plan-execute.ts +0 -52
- package/src/models/route/prompts.ts +0 -8
- package/src/models/route/signals.ts +0 -247
- package/src/models/route/state.ts +0 -54
- package/src/models/route/text.ts +0 -61
package/docs/operations.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Operations guide
|
|
2
2
|
|
|
3
|
-
This guide describes ahub 0.
|
|
3
|
+
This guide describes ahub 0.36.0 and control protocols 16 through 17. Live verification
|
|
4
4
|
results and remaining prerequisites are recorded separately in [the smoke ledger](smoke.md).
|
|
5
5
|
|
|
6
6
|
## Agent-operated live verification
|
|
@@ -225,7 +225,7 @@ meter keeps a fixed column at the right edge. In Usage, LAST RESET is the column
|
|
|
225
225
|
|
|
226
226
|
| Panel | Columns |
|
|
227
227
|
|---|---|
|
|
228
|
-
| Peers | PEER STATE MODE LINK Q ! WIP REVIEW PAUSE QUOTA MODEL DOING |
|
|
228
|
+
| Peers | PEER STATE MODE LINK AHUB Q ! WIP REVIEW PAUSE QUOTA MODEL DOING |
|
|
229
229
|
| Approvals | ID PEER LEFT TITLE |
|
|
230
230
|
| Tasks | ID STATE OWNER REVIEWER CLASS AGE TITLE STAGE |
|
|
231
231
|
| Tasks, backlog view (`b`) | ID PRI RESERVED DEPS CLASS AGE TITLE |
|
|
@@ -263,6 +263,24 @@ including `0/2`; a peer without an entry reads `-`. At or above the limit, the
|
|
|
263
263
|
cell uses the attention tone. At narrow widths WIP gives way before PEER, STATE
|
|
264
264
|
and QUOTA, whether or not MODE is present.
|
|
265
265
|
|
|
266
|
+
Agent-hub versions (#1385). A line above the Peers table names the running
|
|
267
|
+
daemon's version, this console's, the global `ahub` on PATH (read from its
|
|
268
|
+
`package.json`, never run) and the installed Claude plugin (one bounded
|
|
269
|
+
`claude plugin list --json` read when the console starts). One older than the
|
|
270
|
+
daemon reads `(older)` in the attention tone, by the comparison `ahub doctor`
|
|
271
|
+
prints; a value that cannot be read is `unknown` and is never flagged. AHUB is
|
|
272
|
+
the agent-hub code each peer has loaded: `daemon` for an adapter that runs
|
|
273
|
+
inside the daemon, the version a client's hello reported (the Claude plugin's
|
|
274
|
+
MCP server), and `tools x` for the versions its open tools connections reported
|
|
275
|
+
(the hub tools Codex, Kimi, agy or Jcode run). A client that reports none reads
|
|
276
|
+
`unreported`, muted: an unknown version is never counted as a difference. A cell with any version other than the daemon's uses the attention
|
|
277
|
+
tone, the versions line counts those peers, and the peer's detail (Enter) says
|
|
278
|
+
to update the global CLI and run `ahub setup`, then restart that agent's session.
|
|
279
|
+
The column appears only when some peer reports a version, so an older hub shows
|
|
280
|
+
none; it gives way before LINK on a narrow terminal. The detail also shows
|
|
281
|
+
`agent CLI` for a native CLI version the hub has not verified (the same
|
|
282
|
+
`agentDrift` row `ahub status` prints). All of it is display only.
|
|
283
|
+
|
|
266
284
|
DOING (#878) is what a peer is working on, from signals the hub already receives:
|
|
267
285
|
a Claude session's title (its transcript's latest `ai-title` row) and the
|
|
268
286
|
in-progress item of its `TodoWrite` list or the task `TaskUpdate` put in
|
|
@@ -632,7 +650,7 @@ and so is every help entry the gate has no class for yet;
|
|
|
632
650
|
| --- | --- | --- |
|
|
633
651
|
| `ahub doctor [--json] [--full] [--color=...]` | Allowed | a read-only check of tools, daemon, plugin, gateway, models and memory; the `memory capture: codex` and `memory capture: kimi` rows come from agent-mem's setup state (`amem setup <tool> --json` on PATH, a preview that writes nothing), as set up, `amem setup <tool> --apply` needed, client missing, or unknown when `amem` is missing, refuses or prints no setup plan (#1008) |
|
|
634
652
|
| `ahub doctor --stale-anchors [--json]` | Allowed | a bounded read-only report of memory symbol anchors at current HEAD |
|
|
635
|
-
| `ahub queue list [--peer <id>] [--json] [--full] [--color=...]` | Allowed | public queue metadata only; held bodies and resolution remain conductor operations |
|
|
653
|
+
| `ahub queue list [--peer <id>] [--json] [--full] [--color=...]` | Allowed | public queue metadata only; inspect your own public held bodies through `hub_inbox`; `ahub queue show` and operator resolution remain person/conductor operations |
|
|
636
654
|
| `ahub roster [--json] [--color=...]` | Allowed | public roster status; add/remove retain conductor admission |
|
|
637
655
|
| `ahub settings [list] [--json]`, `ahub settings get <key> [--json]` | Allowed | public registry values; secret-locating values, paths, undo records and config-editor details are withheld |
|
|
638
656
|
| `ahub sdlc status\|explain [<task>] [--json] [--color=...]` | Allowed | public lifecycle status; private tasks stay stubs, without private evidence or receipts |
|
|
@@ -1035,9 +1053,20 @@ plugin stale when the module changed after setup, so run `ahub setup` again afte
|
|
|
1035
1053
|
tasks are cards, and overlap, conflict and cohort links and recent message arcs are links. Ids
|
|
1036
1054
|
are project-prefixed, every running project's scene is merged within acon's caps (32 actors, 200
|
|
1037
1055
|
cards, 64 links, newest links kept), and a project that has not answered within about 3 s is left
|
|
1038
|
-
out of that poll
|
|
1056
|
+
out of that poll (its last scene is kept as the baseline for its next answer). The running-project
|
|
1057
|
+
listing is reused for 10 s and then refreshed in the background, concurrent reads share one
|
|
1058
|
+
computation, and a viewer that passes back the combined cursor gets `changed: false` while the
|
|
1059
|
+
scene, the per-project cursors and the project set are unchanged (#1380). Only labels and states
|
|
1060
|
+
reach the scene, never message bodies, task details,
|
|
1039
1061
|
approval titles or reasons; a PII task's card shows the `[pii]` stub.
|
|
1040
1062
|
|
|
1063
|
+
The companions read ahub only through the companion CLI contract,
|
|
1064
|
+
`docs/contracts/companion-cli-v1.json` (#1387): the commands, the `status` and `projects` paths with
|
|
1065
|
+
their types and presence rules, the no-hub exit and the `shellQuote` vectors. Adding a field changes
|
|
1066
|
+
nothing. Removing or renaming a listed path, changing a closed set, an argv form, the exit code or
|
|
1067
|
+
the stderr prefix needs `companion-cli-v2.json` beside v1 and a `hub_task_handoff` to each companion
|
|
1068
|
+
repository. `test/companion-contract.test.ts` holds ahub to the file.
|
|
1069
|
+
|
|
1041
1070
|
## Install and start
|
|
1042
1071
|
|
|
1043
1072
|
Use Bun <!-- facts:bun-floor -->1.4.2<!-- /facts:bun-floor --> or newer. Source checks and CI use the version pinned in
|
|
@@ -1053,7 +1082,18 @@ ahub up
|
|
|
1053
1082
|
```
|
|
1054
1083
|
|
|
1055
1084
|
`ahub init` writes the project configuration and managed instruction blocks.
|
|
1056
|
-
Run it after an upgrade when those blocks need refreshing.
|
|
1085
|
+
Run it after an upgrade when those blocks need refreshing. For a new repository
|
|
1086
|
+
using advise or enforce, follow the [SDLC quickstart sequence](quickstart.md#a-new-project-with-sdlc-advise-or-enforce).
|
|
1087
|
+
|
|
1088
|
+
After a successful init, the short next-steps block says to review and commit
|
|
1089
|
+
`AGENTS.md`, `.agenthub/config.json` and the other shared init changes, keeping
|
|
1090
|
+
`config.local.json` untracked, then start with `ahub up` or `ahub claude` so hub
|
|
1091
|
+
pushes reach the session. In SDLC `advise` or `enforce`, it names the person's
|
|
1092
|
+
spec acceptance (`ahub sdlc accept <task> --issue <n>`), plan-departure consent
|
|
1093
|
+
when needed (`ahub sdlc accept-departure <task> <head> <reason...>`) and guarded
|
|
1094
|
+
merge (`ahub sdlc merge <task>`) after the owner calls `hub_task_done` on an open
|
|
1095
|
+
PR, reviewer approval and green exact-head CI. Preview, declined prompt and
|
|
1096
|
+
refusal paths print no success next steps.
|
|
1057
1097
|
|
|
1058
1098
|
`ahub up` waits for authenticated readiness. After 12 seconds, a verified live
|
|
1059
1099
|
child that is still pending produces a `still starting, pid N` message on stderr;
|
|
@@ -1071,9 +1111,12 @@ seed I/O from bounded usage-rollup I/O and records the isolated measurements.
|
|
|
1071
1111
|
|
|
1072
1112
|
Settings flags (#1100) set the main project settings without a file edit.
|
|
1073
1113
|
`--agents <a,b,...|none>` (`start.agents`) and `--autonomy inherit|off` (whether a
|
|
1074
|
-
new project inherits the machine autonomy preset)
|
|
1075
|
-
`config.local.json`. `--sdlc off|advise|enforce` sets `mode` in `sdlc.toml` (`off`
|
|
1076
|
-
writes no file on a new project)
|
|
1114
|
+
new project inherits the machine autonomy preset), plus `--research`/`--no-research`
|
|
1115
|
+
(`research.enabled`), go to the untracked `config.local.json`. `--sdlc off|advise|enforce` sets `mode` in `sdlc.toml` (`off`
|
|
1116
|
+
writes no file on a new project); advise or enforce also proposes `required_checks`,
|
|
1117
|
+
discovered from the repository's CI or literal workflow job names, and
|
|
1118
|
+
`--required-checks <a,b,...>` replaces discovery. Enforce with no known names refuses
|
|
1119
|
+
before any write ([required checks](sdlc.md#required-checks-at-initialization)). `--coordination advisory|turn-free`,
|
|
1077
1120
|
`--memory`/`--no-memory`, `--snapshots`/`--no-snapshots` and `--pi`/`--no-pi` set
|
|
1078
1121
|
their keys in `config.json`. On an existing project only a flag you give changes
|
|
1079
1122
|
anything: `--dry-run` shows each change as `old -> new` (`--dry-run --json` adds a
|
|
@@ -1084,8 +1127,9 @@ and permissions have no flags; they stay file edits.
|
|
|
1084
1127
|
|
|
1085
1128
|
A person at a terminal who runs `ahub init` on a new project with no flag that
|
|
1086
1129
|
sets anything and no `--yes` is asked each setting in turn (#1065 T2): profile,
|
|
1087
|
-
the agents `ahub up` starts, design specs and their review mode, SDLC mode
|
|
1088
|
-
|
|
1130
|
+
the agents `ahub up` starts, design specs and their review mode, SDLC mode (with
|
|
1131
|
+
advise or enforce, the discovered required checks to confirm or edit),
|
|
1132
|
+
coordination, shared memory, research records, snapshots, the Pi peer, the machine autonomy
|
|
1089
1133
|
preset, the release guard, and shadow history (asked in a folder with no Git
|
|
1090
1134
|
work tree, and kept for an existing shadow repository, never in a Git
|
|
1091
1135
|
repository). Each question is one line, the label, the choices and the default in
|
|
@@ -1104,7 +1148,7 @@ existing project is never asked. The questions are built from the init settings
|
|
|
1104
1148
|
table (`INIT_SETTINGS`), so a setting added there is asked without another
|
|
1105
1149
|
change, and `test/init-prompt.test.ts` fails when the two disagree. The default
|
|
1106
1150
|
in each bracket is read from where the writer gets it (`templates/config.json`,
|
|
1107
|
-
the loader's own defaults), and that test reads every one back through the
|
|
1151
|
+
the loader's own defaults, or the trusted setup research choice), and that test reads every one back through the
|
|
1108
1152
|
loaders after a flagless `ahub init`, so a changed default cannot leave the
|
|
1109
1153
|
prompt showing one value while Enter writes another. `--dry-run` and the
|
|
1110
1154
|
prompt's plan take the machine-autonomy row from the same helper
|
|
@@ -1280,6 +1324,10 @@ duplicate a delivery that actually left.
|
|
|
1280
1324
|
|
|
1281
1325
|
#### Accepted channel delivery settlement (#1172)
|
|
1282
1326
|
|
|
1327
|
+
`hub_inbox` can inspect the caller's own held message bodies (#1328 AC6). This is the read-only recovery view used by the [new-project guide](quickstart.md#a-new-project-with-sdlc-advise-or-enforce). The result labels them as read-only inspection of an uncertain earlier attempt, separate from normal queued messages. Reading never confirms completion, retries, resolves, changes an attempt or records task-offer consumption. Check the earlier effects before acting on held text. A caller cannot select another peer; use authorized queue diagnostics for another recipient. The view includes `needs_review`, and `accepted` only for the current explicit-settlement channel, up to 32 rows and the host pull byte budget. Oversized or unavailable components say so while preserving normal queued results.
|
|
1328
|
+
|
|
1329
|
+
Held bodies use the current public queue projection. Private/missing tasks and private envelopes are stubbed, unsafe metadata is withheld, and bodies are sanitized. The owned implementer must still belong to the current task, execution root and generation. Unknown legacy provenance withholds bodies. Held review inspection stays excluded from capture/progress across restart without writing an ACK or input receipt; retained readable observer-excluded held inputs (trusted review packages and host-stamped peer chat/status responses) conservatively keep that exclusion until explicit disposition, even if they were never viewed. An overflowing or unreadable held row/byte window stays unknown and excluded because a previously viewed row can move outside it. This does not change normal queued review delivery.
|
|
1330
|
+
|
|
1283
1331
|
An explicit Claude push-channel session can settle or discard its own accepted row with the shown revision and a public-safe reason, but an `accepted` receipt still means transport acceptance only. If the session sends neither native completion nor an explicit disposition within `bus.accepted_settle_ms`, the next maintenance sweep moves the row to `needs_review` with a fixed timeout cause; no replay occurs. The default is ten minutes (range 1,000-86,400,000 ms). A live `hub_inbox` result includes that session's own accepted and held row ids and revisions, including when the accepted delivery blocks pulling, so it can inspect the row and use `hub_delivery_resolve`. If held metadata cannot be read, the response carries a fixed unavailable sentinel; the plugin keeps any pulled messages and directs the session to `ahub queue list --peer <peer-id>`, without exposing the metadata error. Important, task and review timeouts publish one status notice to the configured conductor with only delivery id, peer id and revision when `conductor.feed` is on; `feed: off` remains the existing opt-out, and no conductor role is forced. The timeout row is excluded from task-state superseding and remains visible until a person or the explicit channel session records a disposition. Recovery refuses a target without `accepted_delivery_settlement` while such a timeout row is retained; projects without one remain compatible with older targets. The row transition is durable before notice publication; if the hub crashes or notice publication is refused by journal storage after the transition, the held row remains authoritative and visible and the host does not invent a replay path.
|
|
1284
1332
|
|
|
1285
1333
|
Reviewer candidates follow `[classes.review].peers`, then attached peers with a
|
|
@@ -1380,6 +1428,35 @@ callbacks. The instrumentation is intended to diagnose the next naturally
|
|
|
1380
1428
|
occurring stall; it has not been run against the live daemon by that task.
|
|
1381
1429
|
|
|
1382
1430
|
|
|
1431
|
+
## Execution lineage (#1220 T2)
|
|
1432
|
+
|
|
1433
|
+
`ahub lineage show --task <id>` reads a bounded, public metadata neighborhood.
|
|
1434
|
+
`--attempt <ra-id>` selects an existing research attempt. To name a dispatch,
|
|
1435
|
+
deliverable or output explicitly, use `--root '<ExecutionReferenceV1 JSON>'`
|
|
1436
|
+
with `--task-scope <id> --task-created <epoch-ms>`; the hub verifies exact
|
|
1437
|
+
membership in that task. A missing owner scope is unavailable, not a board scan.
|
|
1438
|
+
Use `--json` for the wire document; `--cursor` continues the same source snapshot.
|
|
1439
|
+
A changed source or restart invalidates the cursor, so refresh the root.
|
|
1440
|
+
|
|
1441
|
+
`ahub lineage link --task <id> --task-created <epoch-ms> --revision <flow-revision>
|
|
1442
|
+
--ref '<ExecutionReferenceV1 JSON>' [--from '<local source reference JSON>']` admits inert, deduplicated declared metadata
|
|
1443
|
+
through Tasks. Read `ahub task show <id> --json` first to obtain the task's current
|
|
1444
|
+
creation identity and history revision. A stale revision or changed actor,
|
|
1445
|
+
project or privacy scope refuses without writing. A reference never fetches the
|
|
1446
|
+
producer or attests to a runner outcome. Foreign project keys remain opaque in
|
|
1447
|
+
their producer namespace. The equivalent agent tools are `hub_lineage_show` and
|
|
1448
|
+
`hub_lineage_link` on ordinary MCP sessions. Configured read-only MCP publication
|
|
1449
|
+
and isolated reviewers retain their existing fixed tool lists.
|
|
1450
|
+
|
|
1451
|
+
Reads expose no titles, prompts, paths, session ids or review bodies. Unsupported,
|
|
1452
|
+
missing and denied reads have the same unavailable shape for ordinary callers;
|
|
1453
|
+
only an authorized diagnostic operator sees a reason. Pages are at most 100 nodes,
|
|
1454
|
+
200 edges and 256 KiB, with explicit truncation. Historical reviews retain their
|
|
1455
|
+
old head/hash binding; a changed output or head does not inherit that currency.
|
|
1456
|
+
The acon console reads the same page through a provider port, with no new panel,
|
|
1457
|
+
action or protocol message, and a fixture receipt measures large boards (T3); native
|
|
1458
|
+
causal coverage remains unverified. See [the address contract](design/execution-reference.md).
|
|
1459
|
+
|
|
1383
1460
|
## A two-agent task and review
|
|
1384
1461
|
|
|
1385
1462
|
Choose an owner explicitly, then inspect the reviewer selected by the project
|
|
@@ -1730,7 +1807,26 @@ redistributed (rules: [events](events.md#per-task-usage-reports)).
|
|
|
1730
1807
|
|
|
1731
1808
|
## Research records
|
|
1732
1809
|
|
|
1733
|
-
|
|
1810
|
+
The [new-project SDLC guide](quickstart.md#a-new-project-with-sdlc-advise-or-enforce) includes this init choice; the machine-default producer and compatibility caveat are defined here.
|
|
1811
|
+
|
|
1812
|
+
`ahub init --research` or `--no-research` chooses research recording in the
|
|
1813
|
+
project's untracked `.agenthub/config.local.json`. A new project defaults to
|
|
1814
|
+
the trusted machine choice from an explicit `ahub setup --research` or
|
|
1815
|
+
`ahub setup --no-research`, otherwise off. The choice is an optional boolean
|
|
1816
|
+
`research.enabled` in the existing owner-only `~/.agenthub/defaults.json`;
|
|
1817
|
+
setup preserves autonomy and the start-agent choice through the same guarded
|
|
1818
|
+
compare-and-swap. Ordinary `ahub setup` leaves research unchanged. Init only
|
|
1819
|
+
reads this default, never writes it, and refreshing an existing project changes
|
|
1820
|
+
research only with an explicit flag. Missing, unreadable or untrusted machine
|
|
1821
|
+
defaults remain off. The guided prompt shows the same choice its plan will write.
|
|
1822
|
+
|
|
1823
|
+
The file is shared by every hub and CLI on the machine, so upgrade them all to
|
|
1824
|
+
0.36 or later before saving this choice: a hub or CLI from before 0.36 refuses
|
|
1825
|
+
the unknown `research` key and treats the whole file as untrusted, so its machine
|
|
1826
|
+
autonomy preset falls back to off and its start-agent default to the shipped one
|
|
1827
|
+
until it upgrades.
|
|
1828
|
+
|
|
1829
|
+
With `"research": { "enabled": true }` in project configuration, the hub keeps one record per
|
|
1734
1830
|
task that reaches a terminal state (approved or cancelled) in `~/.agenthub/research/`, shared by every project that opts in:
|
|
1735
1831
|
outcome, review rounds and findings, delivery and merge figures, rework, failed checks, tokens and time per peer and model,
|
|
1736
1832
|
never task or message text ([schema](research.md)). Unknown values are null and counted, never zero.
|
|
@@ -2510,7 +2606,10 @@ Jcode, Qwen, other Kimi versions and native TUI forms remain `unsupported live`.
|
|
|
2510
2606
|
The [Jcode headless fixture](verification/2026-11-08-jcode-0991-model-setter-1317.md)
|
|
2511
2607
|
passes, but does not fence a shared TUI turn across native failover. The
|
|
2512
2608
|
[Qwen 0.26.9 setter fixture](verification/2026-11-08-qwen-0269-model-setter-1317.md)
|
|
2513
|
-
|
|
2609
|
+
retains historical A/B/B with an unknown third-request purpose. The
|
|
2610
|
+
[suggestions-off repeat](verification/2026-11-11-qwen-setter-suggestions-off.md)
|
|
2611
|
+
records ordinary A/B/A on exact 0.26.9 and 0.27.0; separate production setter
|
|
2612
|
+
admission is still required. Neither fixture enables a production setter.
|
|
2514
2613
|
A refused set writes no new override and never restarts a process. Follow the
|
|
2515
2614
|
reported cause and `ahub restart <peer>` guidance for unsupported forms.
|
|
2516
2615
|
|
|
@@ -3626,6 +3725,14 @@ Agent CLIs update themselves often, and a hub release cannot follow every one. O
|
|
|
3626
3725
|
- **Maintenance loop (#843):** the daily upstream watch is the trigger; `ahub doctor` is the local drift notice for versions installed on a machine, and the hub itself tells the planner (below). The planner files one receipt task per (id, version): the implementer repeats the procedure in the entry's last `docs/verification/` receipt, writes a new one, and adds the version to `verified` in that same PR; the next release ships the bump. A person's `ahub agents trust` stays the stopgap that keeps a machine running meanwhile, and the person may revoke it once the bump lands.
|
|
3627
3726
|
- **Local drift notice (#843 AC3):** at hub start and once a day the daemon reads each gated CLI's installed version with the probe `ahub agents` uses (no network, no install). For every installed CLI on a version that is not `verified` (in-line, trusted or refused) the effective planner gets one notice per (id, version): the id, the version, the state and the last receipt path, nothing the CLI printed. A CLI that is not installed, or whose version cannot be read, is not drift. The marker is kept per (id, version, planner) in `hub.db` (`agent_drift_notices`), so a restart repeats nothing, a planner whose notice could not be queued (or who joins later) is retried alone without telling the others again, and a new version is a new notice; with no rostered planner nothing is recorded. `ahub status` shows one `agent CLI drift` attention line per drifted id until the installed version is verified.
|
|
3628
3727
|
|
|
3728
|
+
### Qwen 0.27.0 receipt attempt (#849)
|
|
3729
|
+
|
|
3730
|
+
The [0.27.0 ACP receipt](verification/2026-11-09-qwen-0270-acp.md) records passing account-free
|
|
3731
|
+
ACP/permission/lifecycle checks after explicit runtime-state fence rulings, separately preserving earlier
|
|
3732
|
+
controller preflight failures. Its [model-setter check](verification/2026-11-09-qwen-0270-model-setter-1317.md)
|
|
3733
|
+
observed A/B/B after acknowledged B/A setters, but retained no latest-USER binding for the third request, whose purpose remains unknown. The [suggestions-off repeat](verification/2026-11-11-qwen-setter-suggestions-off.md) records ordinary A/B/A on both 0.26.9 and 0.27.0. Basic ACP 0.27.0 remains independently admitted; this setter evidence proposes a separate admission and enables nothing.
|
|
3734
|
+
The production Qwen setter remains unavailable; `qwen-dual` is verified separately (0.26.1, 0.27.0 and 0.27.1).
|
|
3735
|
+
|
|
3629
3736
|
### Receipt automation audit (#1248 T0)
|
|
3630
3737
|
|
|
3631
3738
|
The data-only [manifest](../scripts/compat-receipts/manifest.json) and [per-leg audit](verification/2026-11-07-compat-receipt-audit-1248.md) classify all current COMPAT receipts. Every leg carries a source section and exact excerpt. `autoAdmit` is policy eligibility after every required check and artifact binding passes, not a runnable harness or a version admission. Native Mac arm64 requirements remain; Linux fixture/source-check feasibility does not replace native platform evidence. Changed security-source regions require human review rather than an automatic diff-only pass.
|
|
@@ -3641,7 +3748,7 @@ The data-only [manifest](../scripts/compat-receipts/manifest.json) and [per-leg
|
|
|
3641
3748
|
| `qwen` | Mac ACP/permission and install replay; recorded Linux run is additional; Mac arm64 repetition required | npm exact | `true` |
|
|
3642
3749
|
| `qwen-dual` | Version/file-source checks are partial only; Real gateway model and PTY; OS not recorded | npm exact; historical artifact gap | `false` |
|
|
3643
3750
|
|
|
3644
|
-
Optional model/TUI behavior explicitly left unverified by a model-free receipt is not a new admission leg. `codex-review` requires its separately authorized model-backed tool-call proof. `agy` has no public install source. `qwen-dual`
|
|
3751
|
+
Optional model/TUI behavior explicitly left unverified by a model-free receipt is not a new admission leg. `codex-review` requires its separately authorized model-backed tool-call proof. `agy` has no public install source. The `qwen-dual` manifest records the original real-model TUI recipe without an OS; the newer [manual macOS arm64 receipt](verification/2026-11-10-qwen-0270-dual-output.md) does not change that manifest's `autoAdmit: false`. The manifest records acquisition metadata separately from historical native-binary evidence; no CLI installation or COMPAT change is made by this audit.
|
|
3645
3752
|
|
|
3646
3753
|
For CI-opened PRs, the person selected `GITHUB_TOKEN` with explicit `check.yml` dispatch on `compat/<id>-<version>` (2026-11-07). The publisher needs `actions: write` for dispatch in addition to its branch, PR and issue permissions. No GitHub App credentials are used. Dispatch supplies exact-head check evidence; it does not trigger the separate PR-only closing-refs/routing-receipt workflows. The T0 audit retains the alternative App-token trade-offs as history. Current [GitHub documentation](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow) also describes approval-required PR runs for GITHUB_TOKEN automation; that is not unattended CI. See the audit for permissions, queue and gate trade-offs.
|
|
3647
3754
|
|
|
@@ -3831,7 +3938,7 @@ or the plugin is older than the daemon it installed (#1179). It prints nothing w
|
|
|
3831
3938
|
| Runtime | Control protocol window | Legacy status field |
|
|
3832
3939
|
| --- | --- | --- |
|
|
3833
3940
|
| 0.12.20 through 0.25.0 | 16 only | `protocol: 16` |
|
|
3834
|
-
| 0.26.0 through 0.
|
|
3941
|
+
| 0.26.0 through 0.36.0 | 16 through 17 | `protocol: 16`, `protocolMin: 16`, `protocolMax: 17` |
|
|
3835
3942
|
|
|
3836
3943
|
New clients choose the highest common protocol. The protocol window remains 16
|
|
3837
3944
|
through 17, so the published protocol-16 client and channel plugin remain usable; unrelated feature
|
|
@@ -3839,7 +3946,13 @@ capabilities still require their own labels. A disjoint window refuses with 4426
|
|
|
3839
3946
|
The compatibility-floor `protocol` field remains readable by old clients.
|
|
3840
3947
|
|
|
3841
3948
|
Release N-1 is counted in minor versions, separately from this protocol window
|
|
3842
|
-
(#1164, family contract entelecheia/ai-workspace#70). For 0.
|
|
3949
|
+
(#1164, family contract entelecheia/ai-workspace#70). For 0.37.x, N-1 is 0.36.0,
|
|
3950
|
+
the latest published patch of 0.36.x (exact `@staix/agent-mem` 0.23.1, control
|
|
3951
|
+
protocol 17 with descriptor floor 16). Every patch on 0.37.x keeps that release
|
|
3952
|
+
baseline. For 0.36.x, N-1 is 0.35.0,
|
|
3953
|
+
the latest published patch of 0.35.x (exact `@staix/agent-mem` 0.23.1, control
|
|
3954
|
+
protocol 17 with descriptor floor 16). Every patch on 0.36.x keeps that release
|
|
3955
|
+
baseline. For 0.35.x, N-1 is 0.34.1,
|
|
3843
3956
|
the latest published patch of 0.34.x (exact `@staix/agent-mem` 0.22.1, control
|
|
3844
3957
|
protocol 17 with descriptor floor 16). Every patch on 0.35.x keeps that release
|
|
3845
3958
|
baseline. For 0.34.x, N-1 is 0.33.0,
|
|
@@ -4597,8 +4710,9 @@ A new `routing.toml` from `ahub init` sets `[local]` and `implement` to `hub/sta
|
|
|
4597
4710
|
`--model` pins the worker and bypasses route selection. A class with `fixed_model`
|
|
4598
4711
|
and no `route` also calls that alias directly, even when `[local]` names a route.
|
|
4599
4712
|
|
|
4600
|
-
The
|
|
4601
|
-
|
|
4713
|
+
The hub owns its in-process fallback and escalation/advisor decisions, with
|
|
4714
|
+
optional adec model/effort choices (#1352). No separate routing binary or generated
|
|
4715
|
+
model-router config is used; reserved port offset 3 remains unused. Existing `[targets]`
|
|
4602
4716
|
and `[routes]` tables are ignored and listed as retired settings in startup logs
|
|
4603
4717
|
and doctor. Every route without the `hub/` prefix, including named legacy routes
|
|
4604
4718
|
and `sy/` selections, uses the fixed alias with one warning. Loading or reloading
|
|
@@ -4689,12 +4803,123 @@ service-error fallback; inspect current task policy and retry. A returned propos
|
|
|
4689
4803
|
execution path and its privacy/budget checks are unchanged. Source text, tool arguments, credentials
|
|
4690
4804
|
and server error prose never enter route events.
|
|
4691
4805
|
|
|
4692
|
-
This delivery is the adec consumer slice of #554. The direct System One backend
|
|
4693
|
-
enforcement application
|
|
4694
|
-
|
|
4806
|
+
This delivery is the adec consumer slice of #554. The direct System One backend
|
|
4807
|
+
and enforcement application remain separate unimplemented legs; the optional
|
|
4808
|
+
stage classifier is the ambiguity-band subsection below; the manual offline
|
|
4809
|
+
triage evaluation is the by-hand script
|
|
4810
|
+
below. Offline fake-service tests establish protocol and shadow
|
|
4695
4811
|
behavior; no routing gain, native service/model run or production rollout is
|
|
4696
4812
|
claimed.
|
|
4697
4813
|
|
|
4814
|
+
#### Optional stage classifier band (#554)
|
|
4815
|
+
|
|
4816
|
+
An optional `stage` route can ask the same loopback service one classification
|
|
4817
|
+
question, and only when its own deterministic score is ambiguous. It is opt-in
|
|
4818
|
+
and off by default:
|
|
4819
|
+
|
|
4820
|
+
```toml
|
|
4821
|
+
[hub_routes."hub/stage"]
|
|
4822
|
+
type = "stage"
|
|
4823
|
+
classifier = "decision"
|
|
4824
|
+
decision_backend = "adec"
|
|
4825
|
+
decision_mode = "shadow"
|
|
4826
|
+
policy_id = "ahub.stage"
|
|
4827
|
+
adec_endpoint = "http://127.0.0.1:8740/v1/route"
|
|
4828
|
+
efficient = "fast"
|
|
4829
|
+
capable = "coding"
|
|
4830
|
+
ambiguous_band = 0.05
|
|
4831
|
+
```
|
|
4832
|
+
|
|
4833
|
+
`classifier` has one value, `"decision"`, and both `efficient` and `capable` are
|
|
4834
|
+
then required: they are the two options the question offers. A `stage` route
|
|
4835
|
+
without `classifier` keeps the deterministic picker and sends nothing.
|
|
4836
|
+
`ambiguous_band` is accepted only together with `classifier`, defaults to `0.05`
|
|
4837
|
+
and must be a finite number from 0 to 0.5. The band is measured against the
|
|
4838
|
+
route's own threshold: `abs(score - confidence_threshold) <= ambiguous_band` is
|
|
4839
|
+
ambiguous, with the threshold defaulting to 0.5. The default therefore asks only
|
|
4840
|
+
for the indecisive middle: the owned repeated-execution reading 0.46 lies four
|
|
4841
|
+
hundredths from the 0.5 default, inside the band, while a single reported
|
|
4842
|
+
failure (0.3) and an exception or critical failure (0.7 and 1) lie two tenths or
|
|
4843
|
+
more outside. `ambiguous_band = 0` asks nothing; the maximum 0.5 covers the whole
|
|
4844
|
+
score range at the default threshold. A value outside its range fails at load
|
|
4845
|
+
rather than silently widening or narrowing the band.
|
|
4846
|
+
|
|
4847
|
+
The two tiers are the whole question: candidates are `efficient` and `capable`
|
|
4848
|
+
with effort `none`, and the heuristic's own tier is sent as `current`. An answer
|
|
4849
|
+
is recorded in the route event as the decision fields (mode, chosen alias and
|
|
4850
|
+
effort, margin, latency, reason, screened decider) and changes no tier, model,
|
|
4851
|
+
effort or conversation: shadow keeps the exact heuristic routing. Abstain or
|
|
4852
|
+
`no_candidate`, a transport failure or timeout, `decision_mode = off` and an
|
|
4853
|
+
off-campus decider for a PII or private turn each keep the heuristic tier and
|
|
4854
|
+
record a closed reason in that event. `enforce` stays refused at load with the
|
|
4855
|
+
same message as a decision route. One question is asked per user turn, reused
|
|
4856
|
+
through the tool loop, and it dies with the turn: a turn that ends while the
|
|
4857
|
+
question is outstanding applies no answer and is not failed by it. The question
|
|
4858
|
+
carries R1's closed stage evidence (numeric signals, dimensions and scores),
|
|
4859
|
+
never the generic decision v1 conversation projection; a PII or private turn
|
|
4860
|
+
sends only the dimensions view. A held answer is reused only while the privacy
|
|
4861
|
+
and observer facts it was recorded with still hold: a changed reading drops it,
|
|
4862
|
+
and an unreadable one refuses the turn. A privacy or
|
|
4863
|
+
observer change detected across the request is different from a service failure:
|
|
4864
|
+
it refuses the stale turn, exactly as a decision route does, and the heuristic is
|
|
4865
|
+
not executed around that refusal. The PII
|
|
4866
|
+
screen, `assign()` and the escalation and advisor triggers never use this path.
|
|
4867
|
+
|
|
4868
|
+
#### Optional phase and judge model/effort choices (#1352)
|
|
4869
|
+
|
|
4870
|
+
The same separately operated ADEc service can suggest a model/effort pair for
|
|
4871
|
+
an existing `plan_execute` phase or an existing `advisor`/`escalation` judge
|
|
4872
|
+
call. Add the ordinary service binding to that route and keep
|
|
4873
|
+
`decision_mode = "shadow"`; omitted mode remains `off`, and `enforce` is refused
|
|
4874
|
+
at configuration load. No new `judge_choice` table or other routing key is
|
|
4875
|
+
introduced.
|
|
4876
|
+
|
|
4877
|
+
For a phase route, `policy_id = "ahub.plan-execute"` refers to
|
|
4878
|
+
[`templates/adec/ahub.plan-execute.json`](../templates/adec/ahub.plan-execute.json).
|
|
4879
|
+
The policy's candidates, the route's allowed `candidates`, and the route's
|
|
4880
|
+
`efficient`/`capable` fallback aliases must be reviewed together. The route's
|
|
4881
|
+
`candidates` allowlist must match the policy options; the host fallback aliases
|
|
4882
|
+
remain independent and are what the executor still receives in shadow. For
|
|
4883
|
+
example, the syntactically valid placeholders in that template map to a route
|
|
4884
|
+
like:
|
|
4885
|
+
|
|
4886
|
+
```toml
|
|
4887
|
+
[hub_routes."hub/plan-execute"]
|
|
4888
|
+
type = "plan_execute"
|
|
4889
|
+
decision_backend = "adec"
|
|
4890
|
+
decision_mode = "shadow"
|
|
4891
|
+
policy_id = "ahub.plan-execute"
|
|
4892
|
+
adec_endpoint = "http://127.0.0.1:8740/v1/route"
|
|
4893
|
+
efficient = "replace-me-efficient"
|
|
4894
|
+
capable = "replace-me-capable"
|
|
4895
|
+
candidates = [
|
|
4896
|
+
{ alias = "replace-me-efficient", efforts = ["edit-effort"] },
|
|
4897
|
+
{ alias = "replace-me-capable", efforts = ["edit-effort"] },
|
|
4898
|
+
]
|
|
4899
|
+
```
|
|
4900
|
+
|
|
4901
|
+
Replace every placeholder with a provider and alias/effort pair from the
|
|
4902
|
+
person's own ADEc configuration before using the example. `ahub.stage` is the
|
|
4903
|
+
separate R1 ambiguity-band classifier policy; its template is
|
|
4904
|
+
[`templates/adec/ahub.stage.json`](../templates/adec/ahub.stage.json) and its
|
|
4905
|
+
stage candidates use effort `none`. These templates are pinned to the public
|
|
4906
|
+
agent-decide policy schema at commit `008548c5`; their provider, aliases, effort
|
|
4907
|
+
and on-prem status are examples only. Each sample candidate sets `onPrem` to
|
|
4908
|
+
`false`. A person must verify the model's actual serving location before
|
|
4909
|
+
changing that value; loopback service placement alone does not establish it.
|
|
4910
|
+
|
|
4911
|
+
Advisor and escalation judge routes may use the same binding shape with a
|
|
4912
|
+
person-authored policy for the judge model/effort options. ADEc suggests only a
|
|
4913
|
+
pair. The hub still owns whether to review or escalate, the judge prompt and
|
|
4914
|
+
reply parsing, escalation confirmation, privacy and campus admission, and the
|
|
4915
|
+
existing fallback execution. In shadow the suggested pair is metadata only;
|
|
4916
|
+
it does not replace the model/effort actually sent to the executor. Judge
|
|
4917
|
+
observations use the `decisionTarget = "judge"` route-event marker and do not
|
|
4918
|
+
add a phase or purpose field. The route keeps the existing main model and host
|
|
4919
|
+
semantics. No live model-quality, routing-gain or production claim follows from
|
|
4920
|
+
the policy files or model-free proof; the manual model-routing receipt/live
|
|
4921
|
+
benchmark remains unrun.
|
|
4922
|
+
|
|
4698
4923
|
Migrate the retired settings as follows:
|
|
4699
4924
|
|
|
4700
4925
|
| Retired setting or route | In-process replacement |
|
|
@@ -4713,6 +4938,61 @@ row naming the file and the parse error, without the file's contents, and the
|
|
|
4713
4938
|
alias check is skipped (#563). Hub summaries
|
|
4714
4939
|
and triage use their fixed model directly.
|
|
4715
4940
|
|
|
4941
|
+
#### Offline triage evaluation (#554 AC5, by hand)
|
|
4942
|
+
|
|
4943
|
+
`scripts/decision-eval.ts` replays the board's planner-classified, non-PII tasks
|
|
4944
|
+
against a decider and against the hub's current `Inference.triage`, then reports
|
|
4945
|
+
each column's accuracy against the class a planner named and its latency. It is
|
|
4946
|
+
a person-run leg: it never runs in CI and needs a running `adec serve`
|
|
4947
|
+
([route contract](https://github.com/STAIxBWLB/agent-decide/issues/4)), so
|
|
4948
|
+
neither column is exercised by the hermetic suite.
|
|
4949
|
+
|
|
4950
|
+
```bash
|
|
4951
|
+
# adec early-decision route: the seven classes are the policy's candidate aliases
|
|
4952
|
+
bun scripts/decision-eval.ts --project . --decider route \
|
|
4953
|
+
--adec http://127.0.0.1:8740 --policy-id ahub.triage --effort default --limit 50
|
|
4954
|
+
|
|
4955
|
+
# adec System One endpoint: one choice question whose options are the classes
|
|
4956
|
+
bun scripts/decision-eval.ts --project . --decider systemone \
|
|
4957
|
+
--adec http://127.0.0.1:8740 --model <model> --limit 50
|
|
4958
|
+
```
|
|
4959
|
+
|
|
4960
|
+
`--project` names the hub project root and `--db` any `hub.db` copy; `--limit`
|
|
4961
|
+
bounds the sample (default 50, at most 500) and `--timeout` the per-call deadline
|
|
4962
|
+
(default 8000 ms). `--out <file>` also writes the Markdown report. The endpoint
|
|
4963
|
+
must be literal loopback (`127.0.0.1` or `[::1]`) with the `/v1/route` or
|
|
4964
|
+
`/v1/systemone` path; anything else is refused before a row is read. A
|
|
4965
|
+
`--policy-id` the service does not hold answers 404, which the client reports as
|
|
4966
|
+
the closed reason `http`, so every row is then a miss: check the service's
|
|
4967
|
+
policies and that `--effort` is one the policy allows before reading the table.
|
|
4968
|
+
|
|
4969
|
+
The sample is the board's newest rows that a planner classified: a row whose
|
|
4970
|
+
class sits outside the closed class list, whose history carries a hub `triaged`
|
|
4971
|
+
or `class defaulted` event, or whose title is empty is excluded, and so is any
|
|
4972
|
+
row carrying a `pii` or `pii_path` signal, which is dropped before its text is
|
|
4973
|
+
read. Kept rows are read as a public view returns them, and each report lists the
|
|
4974
|
+
excluded counts and the sampled classes so the sample can be judged.
|
|
4975
|
+
|
|
4976
|
+
The script takes one consistent snapshot of `hub.db` into a temporary directory
|
|
4977
|
+
and opens the copy, so a run never opens the live board for writing. The snapshot
|
|
4978
|
+
is SQLite's own serialization of a read-only connection, not a copy of the
|
|
4979
|
+
database file and its `-wal`/`-shm` sidecars: a live writer that checkpoints and
|
|
4980
|
+
then reuses the WAL would leave separately copied files disagreeing about which
|
|
4981
|
+
frames are committed. Accuracy counts only rows a column labelled, a miss lowers
|
|
4982
|
+
coverage rather than accuracy, and the report adds p50/p95/max latency, the two
|
|
4983
|
+
columns' confusion and misses, and how often they agreed where both labelled a
|
|
4984
|
+
row.
|
|
4985
|
+
|
|
4986
|
+
Each run gets a fresh run id in its report and in every adec turn id, because
|
|
4987
|
+
adec keeps in-memory pins for the turn ids it has answered: without it, a second
|
|
4988
|
+
run over the same board, or over another project whose task ids overlap, can be
|
|
4989
|
+
answered from an earlier pin instead of a fresh classification, and both the
|
|
4990
|
+
accuracy and the latency would then describe that pin.
|
|
4991
|
+
|
|
4992
|
+
A gain here is evidence for the decider question (D5) only: nothing in this
|
|
4993
|
+
script reaches `Tasks.triage`, `assign()` or the PII screen, and no board row,
|
|
4994
|
+
route or config is changed by a run.
|
|
4995
|
+
|
|
4716
4996
|
Route types: `stage` scores recent tools and holds capable recovery for two calls;
|
|
4717
4997
|
`plan_execute` plans on capable until the first mutation and then stays efficient;
|
|
4718
4998
|
`advisor` holds no-tool answers for APPROVE/REDO review; `escalation` starts efficient
|
|
@@ -5230,7 +5510,34 @@ that the file is untracked; a dropped value is reported by the settings result.
|
|
|
5230
5510
|
|
|
5231
5511
|
## SDLC artifact receipts and gates
|
|
5232
5512
|
|
|
5233
|
-
The playbook lifecycle (#257, #481) is off without `.agenthub/sdlc.toml`. When enabled its stages are intent, spec, plan, build, test, review, merge, release and maintain, grouped as Plan, Design, Build, Test, Deploy and Maintain. Advise shows blockers; enforce checks implemented head-bound review and approval gates. Stored implement/verify receipts read as build/test; new enabled receipts use canonical ids. See [the SDLC contract](sdlc.md) for gates, required check names, local receipts, console-only readbacks and the S0-S8 delivery table. A person accepts a spec issue with `ahub sdlc accept <task> --issue <n>` (S1). The planner records plan reviews with review and CI scope (`hub_plan_review`, `ahub sdlc plan-review`) and grooms with `ahub backlog groom`; `ahub backlog return <task> <revision> <reason>` returns accepted, untouched work (S9). `ahub sdlc costs [owner/repo]` reports review rounds and CI runs of merged PRs without writing the board (S10). `ahub sdlc metrics [--since <YYYY-MM-DD|ISO time>]` (the planner tool `hub_sdlc_metrics`, planner or person, read-only) reports lead times, first-pass approval and check rates, rework rounds, stale-head re-reviews and open stalls from board history, with `unknown` counted and never 0; optional `[bands.<metric>]` in `sdlc.toml` add control bands that the daemon checks every five minutes in advise or enforce, writing a hub notice (`log`), a read-only `triage` backlog task (`diagnose`) or a `plan` backlog card (`propose`), one per breach episode and never a GitHub issue (S7, see [metrics](sdlc.md#sdlc-metrics-and-control-bands-481-s7)). With the lifecycle on, a task's issue identity is linked when it is proposed or accepted, from the one issue it names (an imported GitHub issue, or a `#N`, `owner/repo#N` or issue URL in its title); a title that names a sibling repository (`agent-mem#13`) links only when `refs.repo` names it, and without `refs.repo` the propose result says to set it. `ahub backlog groom` also backfills up to 32 links per call, within 1 s (#723). S11 release trains ship in 0.12.37 (see [release scheduling](#planner-release-scheduling)). S3 structured review findings (an open Important finding blocks approval in enforce; `max_nits` in `sdlc.toml` caps nits) and S2 literal-path plan conformance with the person-only `ahub sdlc accept-departure <task> <head> <reason...>` are in source; see [findings](sdlc.md#structured-review-findings-481-s3) and [plan conformance](sdlc.md#plan-conformance-481-s2). S4 [test integrity](sdlc.md#test-integrity-481-s4) and S6 [release authorization](#release-approval-and-optional-tag-guard) are in source too. S5 is in source as an [eval gate mechanism](sdlc.md#eval-gate-for-agent-configuration-481-s5) with no suite chosen, and S7 adds merge-time readback, [release metrics](sdlc.md#release-metrics-481-ac12) and an opt-in security baseline; a full live advise/release cycle and the per-release gates-run record remain pending. Owners/reviewers record bounded identities through `hub_sdlc_record`; these grant no additional authority. Off output, receipt and schema shapes stay unchanged.
|
|
5513
|
+
The playbook lifecycle (#257, #481) is off without `.agenthub/sdlc.toml`. When enabled its stages are intent, spec, plan, build, test, review, merge, release and maintain, grouped as Plan, Design, Build, Test, Deploy and Maintain. Advise shows blockers; enforce checks implemented head-bound review and approval gates. Stored implement/verify receipts read as build/test; new enabled receipts use canonical ids. See [the SDLC contract](sdlc.md) for gates, required check names, local receipts, console-only readbacks and the S0-S8 delivery table. A person accepts a spec issue with `ahub sdlc accept <task> --issue <n>` (S1). A PR merged outside the hub is recorded with `ahub sdlc adopt-merge <task> --pr <n>` (person or current conductor), which approves the task and releases dependents only at its recorded head with green required checks ([adoption](sdlc.md#adopting-a-pr-merged-outside-the-hub-1328-t3)). The planner records plan reviews with review and CI scope (`hub_plan_review`, `ahub sdlc plan-review`) and grooms with `ahub backlog groom`; `ahub backlog return <task> <revision> <reason>` returns accepted, untouched work (S9). `ahub sdlc costs [owner/repo]` reports review rounds and CI runs of merged PRs without writing the board (S10). `ahub sdlc metrics [--since <YYYY-MM-DD|ISO time>]` (the planner tool `hub_sdlc_metrics`, planner or person, read-only) reports lead times, first-pass approval and check rates, rework rounds, stale-head re-reviews and open stalls from board history, with `unknown` counted and never 0; optional `[bands.<metric>]` in `sdlc.toml` add control bands that the daemon checks every five minutes in advise or enforce, writing a hub notice (`log`), a read-only `triage` backlog task (`diagnose`) or a `plan` backlog card (`propose`), one per breach episode and never a GitHub issue (S7, see [metrics](sdlc.md#sdlc-metrics-and-control-bands-481-s7)). With the lifecycle on, a task's issue identity is linked when it is proposed or accepted, from the one issue it names (an imported GitHub issue, or a `#N`, `owner/repo#N` or issue URL in its title); a title that names a sibling repository (`agent-mem#13`) links only when `refs.repo` names it, and without `refs.repo` the propose result says to set it. `ahub backlog groom` also backfills up to 32 links per call, within 1 s (#723). S11 release trains ship in 0.12.37 (see [release scheduling](#planner-release-scheduling)). S3 structured review findings (an open Important finding blocks approval in enforce; `max_nits` in `sdlc.toml` caps nits) and S2 literal-path plan conformance with the person-only `ahub sdlc accept-departure <task> <head> <reason...>` are in source; see [findings](sdlc.md#structured-review-findings-481-s3) and [plan conformance](sdlc.md#plan-conformance-481-s2). S4 [test integrity](sdlc.md#test-integrity-481-s4) and S6 [release authorization](#release-approval-and-optional-tag-guard) are in source too. S5 is in source as an [eval gate mechanism](sdlc.md#eval-gate-for-agent-configuration-481-s5) with no suite chosen, and S7 adds merge-time readback, [release metrics](sdlc.md#release-metrics-481-ac12) and an opt-in security baseline; a full live advise/release cycle and the per-release gates-run record remain pending. Owners/reviewers record bounded identities through `hub_sdlc_record`; these grant no additional authority. Off output, receipt and schema shapes stay unchanged.
|
|
5514
|
+
## Supervision proposals
|
|
5515
|
+
|
|
5516
|
+
`supervision.mode` is off by default and machine-local (`ahub settings set supervision.mode advisory`); a committed
|
|
5517
|
+
`.agenthub/config.json` cannot turn it on. `shadow` stores bounded proposals on the queue and does nothing else: no
|
|
5518
|
+
inbox row, no notice, no turn. `advisory` may also show a pending proposal in the console's existing inbox, where only
|
|
5519
|
+
an explicit accept or dismiss acts. The queue holds at most 100 pending proposals, three per task revision, and keeps
|
|
5520
|
+
400 terminal rows for dedupe, so a reading already accepted, dismissed or expired is not proposed again for the same
|
|
5521
|
+
rule, task, revision and trigger. A reading past a bound is refused and counted: `hub_supervision_list` reports the total
|
|
5522
|
+
as `refused`, so a full queue never reads as "nothing to report".
|
|
5523
|
+
|
|
5524
|
+
A present role reads and decides them with `hub_supervision_list`, `hub_supervision_accept` and
|
|
5525
|
+
`hub_supervision_dismiss`, or with the advisory inbox row: the task's owner, its reviewer, the configured planner, the
|
|
5526
|
+
conductor and the person. There is no supervisor role. An acceptance runs the existing action the proposal names,
|
|
5527
|
+
through that action's own authority: `escalate` through the conductor for an agent and the board's own escalation for
|
|
5528
|
+
the person, and `recheck` or `request_integration` as the hub's notice to the owners, whose check re-run or integration
|
|
5529
|
+
is their own action and their own board record. An `escalate` proposal is therefore accepted by the conductor or the
|
|
5530
|
+
person only; another role's acceptance is refused and the proposal stays pending. Accepting writes nothing to the board.
|
|
5531
|
+
|
|
5532
|
+
Every refusal names its reason and starts nothing. A stale revision, a closed or vanished task, new input that cleared
|
|
5533
|
+
the pattern, or a replaced native session expires the proposal; a private task, a clipped reading (a revision longer
|
|
5534
|
+
than one rule reads), an unknown id, a caller with no role on the task, a caller that does not hold the action's own
|
|
5535
|
+
authority, or an owner's `needs_review` delivery refuses without spending it. An action whose outcome the hub could not
|
|
5536
|
+
observe is recorded `unknown` and never retried; a later read settles it from the board's own record at or after the
|
|
5537
|
+
intent time and inside the task revision the proposal was read under, and a restart keeps the dispositions, the dedupe
|
|
5538
|
+
keys and the unknown outcomes. There is no automatic pause, retry, cancel, reroute, approval or rollback, no resident
|
|
5539
|
+
worker and no timer. See [supervision rules, proposals and the decision path](design/supervision.md).
|
|
5540
|
+
|
|
5234
5541
|
## Optional Qwen Code peer
|
|
5235
5542
|
|
|
5236
5543
|
Select Qwen per project with `ahub roster add qwen`; it defaults off and is absent
|
|
@@ -5242,16 +5549,32 @@ selected roster and existing capabilities; the TUI is always a person's start.
|
|
|
5242
5549
|
|
|
5243
5550
|
### Qwen's own TUI, driven through dual output (#286 Part 3)
|
|
5244
5551
|
|
|
5245
|
-
`ahub qwen --mode tui` runs `qwen --input-file <in> --json-file <out> --mcp-config <hub server> --approval-mode default` in the terminal you ran it from. The daemon prepares the two files (mode 0600, under `<state dir>/qwen/qwen-dual/`) and returns the launch; the hub then appends one `submit` line per delivery and tails the event file from a saved offset. It needs a Qwen the dual-output compat entry verifies (`ahub agents` shows `qwen-dual`, verified 0.26.1
|
|
5552
|
+
`ahub qwen --mode tui` runs `qwen --input-file <in> --json-file <out> --mcp-config <hub server> --approval-mode default` in the terminal you ran it from. The daemon prepares the two files (mode 0600, under `<state dir>/qwen/qwen-dual/`) and returns the launch; the hub then appends one `submit` line per delivery and tails the event file from a saved offset. It needs a Qwen the dual-output compat entry verifies (`ahub agents` shows `qwen-dual`, verified 0.26.1 and exact 0.27.0 and 0.27.1; the headless `qwen` entry has its own ACP receipts) and refuses another version before it creates a file. The TUI is explicit only: `ahub qwen` without `--mode` is still headless, Qwen is not a start-mode peer, and the hub never opens this terminal by itself. The TUI start is refused for an extra Qwen instance, off roster, outside a terminal, and while a headless Qwen runs (`ahub stop qwen` first); a headless start is refused while the TUI holds its terminal.
|
|
5246
5553
|
|
|
5247
5554
|
- What the hub does: a delivery becomes a `submit`; the last assistant message of the turn (an `assistant` event whose `stop_reason` is not `tool_use`, then `message_stop`) is shared as the answer; busy and idle follow the events. A `can_use_tool` request goes to the console approval path (`ahub permit`, the dashboard), and the hub's own tools are approved only by their exact `mcp__agent-hub__<tool>` name. If you answer a prompt in the Qwen terminal first, the hub's pending approval is withdrawn.
|
|
5248
|
-
- **Limit 1, a deny
|
|
5555
|
+
- **Limit 1, a deny is not a readiness ACK.** The known denied delivery completes without a shared answer, but queued messages remain unsubmitted behind a durable input fence. The denied turn's own assistant/Stop does not release it. After 30 s without recovery proof the peer reports offline, keeping the fence. Type a new plain, tool-free prompt (or press Esc first) in the Qwen terminal and finish that personal turn; its same-session final assistant/message_stop can restore readiness even after timeout. Alternatively, end Qwen in that terminal and run `ahub qwen --mode tui` for a verified new native generation. Merely making the event file readable, replaying session_start or restarting the hub does not release a deny fence. A new personal USER must be observed after adoption. An uncertain original turn still settles `needs_review`; a deny retains its known `completed` disposition. Background task-notification events are not personal USER recovery proof.
|
|
5249
5556
|
- **Limit 2, the hub cannot stop a Qwen turn.** The input protocol has only `submit` and `confirmation_response`, and a signal does not stop a running turn. The inactivity watchdog therefore never cancels: after `watchdog_ms` of silence it marks the turn stalled (`ahub status`, the console and the dashboard say "press Esc in the Qwen terminal") and keeps the peer busy. The hub never types into your terminal and never signals Qwen to stop a turn.
|
|
5250
5557
|
- A Qwen write or shell command that names the hub state directory is refused (see [security](security.md): the input file is a prompt channel).
|
|
5251
|
-
-
|
|
5558
|
+
- A short or unconfirmed input write, or an input file ending without newline, reports offline with the delivery held `needs_review`. No remainder or second message is appended. A personal turn cannot repair this input file; inspect and end Qwen in its terminal, then run `ahub qwen --mode tui` for a verified fresh generation. Crash detection reads the actual tail; a torn prefix ending with newline is an explicit undetected ceiling.
|
|
5559
|
+
- If the hub cannot read the event file the peer is `detached`, shown as offline with a notice, never idle: Qwen itself keeps working, and the hub reattaches when the file is readable again. A pending deny excludes every event buffered before restored EOF, even on the same inode; follow the plain, tool-free recovery procedure above after reattachment. Tool/control activity can invalidate the completion proof, so tool-assisted recovery is not promised; completing a USER line begun before restored EOF does not supply recovery proof.
|
|
5252
5560
|
- Restart: if the hub restarts while your Qwen keeps running, it reads on from its saved offset (no event twice, no launch). If Qwen is gone, `ahub qwen --mode tui` starts `qwen -r <session id>` on the same two files; the earlier submits are not replayed and the recorded answers are not shared again. Recovery never restores this terminal as a headless worker, and `ahub stop qwen` refuses: end Qwen in its own terminal.
|
|
5253
5561
|
|
|
5254
|
-
|
|
5562
|
+
The [2026-11-10 account-free receipt](verification/2026-11-10-qwen-0270-dual-output.md)
|
|
5563
|
+
qualifies exact 0.27.0 against matched private 0.26.1 on macOS arm64; the
|
|
5564
|
+
[0.27.1 receipt](verification/2026-11-10-qwen-0271-dual-output.md) repeats the same
|
|
5565
|
+
Q2 and Q3/Q5/Q6/Q7 suite on exact 0.27.1 against matched 0.27.0. Normal-Bus
|
|
5566
|
+
Q2 has two user/final-Stop/ordinary-provider turns after owned stop; Q3's five
|
|
5567
|
+
permission cases, unread-FIFO Q5, same-session/no-replay/assistant-context Q6 and
|
|
5568
|
+
identity/guard Q7 also passed, with final closure and protected/artifact/source
|
|
5569
|
+
fences. Q4 retains the external-stop limit. The separate direct-busy pair emitted
|
|
5570
|
+
one user/assistant/Stop with both markers in one assistant, so the original
|
|
5571
|
+
native-busy-submit queued-turn claim remains unreproduced. Adoption, reattachment
|
|
5572
|
+
outside the durable deny-fence path do not prove native quiescence in every path. The deny fence is source/fake verified, not a new native cancel ACK qualification. Real-model
|
|
5573
|
+
turns, this repository's live dual-output TUI use, Linux and lifetime containment
|
|
5574
|
+
remain unverified; the basic ACP/setter contracts and automation eligibility are
|
|
5575
|
+
separate.
|
|
5576
|
+
|
|
5577
|
+
Receipt-verified native ACP identities are qwen-code 0.25.0 and 0.26.0 ([dated receipt](verification/2026-10-22-kimi-qwen-compat.md)), 0.26.1 ([0.26.1 receipt](verification/2026-10-26-qwen-0261-acp.md)), 0.26.4 ([0.26.4 ACP receipt](verification/2026-10-31-qwen-0264-acp.md)), 0.26.5 ([0.26.5 ACP receipt](verification/2026-11-03-qwen-0265-acp.md)), 0.26.8 ([0.26.8 ACP receipt](verification/2026-11-06-qwen-0268-acp.md)), 0.26.9 ([0.26.9 ACP receipt](verification/2026-11-08-qwen-0269-acp.md)) and 0.27.0 ([0.27.0 ACP receipt](verification/2026-11-09-qwen-0270-acp.md)). The separate [0.26.4](verification/2026-10-31-qwen-0264-dual-output.md), [0.26.5](verification/2026-11-03-qwen-0265-dual-output.md), and [0.26.8](verification/2026-11-06-qwen-0268-dual-output.md) dual-output attempts did not establish their queued-turn criterion, those versions remain unverified by `qwen-dual`; exact 0.27.0 and 0.27.1 have the separate matched receipts above. A CLI version label alone
|
|
5255
5578
|
is insufficient: startup verifies its native identity/version and advertised mode
|
|
5256
5579
|
ids before any prompt. The earlier local installation reported CLI 0.25.0 while
|
|
5257
5580
|
its package/ACP source said 0.24.1; that was not a ready identity. The 0.26.0 receipt
|
|
@@ -5933,7 +6256,7 @@ Default-branch capture runs only at daemon startup when a Claude implementer is
|
|
|
5933
6256
|
|
|
5934
6257
|
Project Git retains the core policy that clears credential.helper and core.askpass; an HTTPS push needing those helpers may fail, rather than importing credentials or relaxing that policy. Task branch/config proof reads are bounded synchronous reads (1.5 seconds per reader); slow or unknown evidence asks. The existing sandbox profile discovery is also synchronous; moving it to an asynchronous inventory proof with a shared deadline remains a follow-up. The nonce is visible in a permission response, so it proves a bounded grant rather than native-dispatch provenance.
|
|
5935
6258
|
|
|
5936
|
-
The [native permission receipt](verification/2026-10-23-headless-claude-permissions.md) covers Claude Code 2.1.309, and the [2.1.310 receipt](verification/2026-10-26-claude-implementer-2.1.310.md) repeats it on 2.1.310 (with 2.1.309 as a control), and the [2.1.314 receipt](verification/2026-10-31-claude-implementer-2.1.314.md) repeats it and the host-wrapper procedure on 2.1.314 (with 2.1.310 as a control), and the [2.1.316 receipt](verification/2026-10-31-claude-implementer-2.1.316.md) repeats both on 2.1.316 (with 2.1.314 as a control), and the [2.1.318 receipt](verification/2026-11-05-claude-implementer-2.1.318.md) repeats both on 2.1.318 (with 2.1.316 as a control), and the [2.1.319 receipt](verification/2026-11-06-claude-implementer-2.1.319.md) repeats both on 2.1.319 (with 2.1.318 as a control), each with a deterministic loopback fixture and no real account/model call. It is not sandbox proof or a runtime receipt gate. The real account/model/person interaction remains a separate live leg.
|
|
6259
|
+
The [native permission receipt](verification/2026-10-23-headless-claude-permissions.md) covers Claude Code 2.1.309, and the [2.1.310 receipt](verification/2026-10-26-claude-implementer-2.1.310.md) repeats it on 2.1.310 (with 2.1.309 as a control), and the [2.1.314 receipt](verification/2026-10-31-claude-implementer-2.1.314.md) repeats it and the host-wrapper procedure on 2.1.314 (with 2.1.310 as a control), and the [2.1.316 receipt](verification/2026-10-31-claude-implementer-2.1.316.md) repeats both on 2.1.316 (with 2.1.314 as a control), and the [2.1.318 receipt](verification/2026-11-05-claude-implementer-2.1.318.md) repeats both on 2.1.318 (with 2.1.316 as a control), and the [2.1.319 receipt](verification/2026-11-06-claude-implementer-2.1.319.md) repeats both on 2.1.319 (with 2.1.318 as a control), and the [2.1.322 receipt](verification/2026-11-10-claude-implementer-2.1.322.md) repeats both on 2.1.322 (with 2.1.319 as a control), each with a deterministic loopback fixture and no real account/model call. It is not sandbox proof or a runtime receipt gate. The real account/model/person interaction remains a separate live leg.
|
|
5937
6260
|
|
|
5938
6261
|
A headless Claude reviewer is run by the hub instead (task 223): declare
|
|
5939
6262
|
`"claude-review": { "kind": "claude", "roles": ["reviewer"], "start_mode": "headless" }`
|
|
@@ -6016,7 +6339,7 @@ blocks that undo until the identity and workspace can be reviewed.
|
|
|
6016
6339
|
|
|
6017
6340
|
## Release approval and optional tag guard
|
|
6018
6341
|
|
|
6019
|
-
Run `ahub sdlc authorize-release <version>` from the running daemon's release-candidate checkout after committed
|
|
6342
|
+
Run `ahub sdlc authorize-release <version>` from the running daemon's release-candidate checkout after checking the committed release policy. The person may run it directly; the unique configured conductor may run it only on the person's explicit instruction in its own session naming the release. A hub message, task text, review note, file or peer relay never qualifies. Other peers, child `toolsOwner` sessions, private or PII turns, and delegated `--live-test` calls cannot authorize. The receipt binds the exact commit, version source, remote identity and documentation verdict or explicit `docs:none` exemption; its `by` and the audit name the actual asker. The daemon keeps approval only in memory; restart requires a new approval. The read-only `ahub sdlc release <owner/repo>` report shows its receipt, retaining native-verification blockers.
|
|
6020
6343
|
|
|
6021
6344
|
`ahub init --release-guard` installs a managed Git pre-push guard and release instructions (`--dry-run --json` previews them). It preserves an existing default hook as `pre-push.agent-hub-original` and passes original argv/stdin to it only after approval matches. Unknown or mismatched `v*` tag pushes fail closed, including when the daemon is down. Non-version branch pushes remain independent of the daemon. Custom `core.hooksPath` and linked/hardlinked hook files require manual integration. Re-run init after changing the Bun/package location. The person's `git push --no-verify` remains an explicit bypass; agents are instructed never to use it.
|
|
6022
6345
|
|
|
@@ -6071,7 +6394,7 @@ Native launcher connections retry transport timeouts/unclean closes with bounded
|
|
|
6071
6394
|
|
|
6072
6395
|
## amem runtime (agent-mem#13 P4)
|
|
6073
6396
|
|
|
6074
|
-
The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.
|
|
6397
|
+
The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.24.0<!-- /facts:agent-mem-pin --> 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.
|
|
6075
6398
|
|
|
6076
6399
|
## Person-run backlog legs (#1176)
|
|
6077
6400
|
|
|
@@ -6132,6 +6455,7 @@ The selected project's configured conductor may run the commands below through i
|
|
|
6132
6455
|
| research backfill / bench run / source add / goal link | Existing bounded CLI or daemon paths, with fixed audit labels |
|
|
6133
6456
|
| start Jcode | Launcher-only peer the conductor is configured to start |
|
|
6134
6457
|
| task unassign <id> [--role owner\|reviewer] [--revision N] | The actual conductor is recorded; no replacement is routed and no native work is stopped |
|
|
6458
|
+
| guidance probe register/start/show/cancel | Bounded private probe declaration and fake-only lifecycle through Tasks (#1226); `--live-test` is refused and production has no probe runner |
|
|
6135
6459
|
| restart --yes | Only with a source-issued continuation proof for this project's own operation |
|
|
6136
6460
|
| upgrade --yes --to <exact-version> | Only with proof for this project's supported exact-version upgrade; newer coordinator handoff is person-only |
|
|
6137
6461
|
| recovery resume\|abort [<op-id>] | Only the initiating conductor's own restart/authorized-upgrade operation; the person keeps the normal recovery path |
|
|
@@ -6746,112 +7070,17 @@ Upgrade the broker, then every room member to a codec-capable release, then reco
|
|
|
6746
7070
|
connection; direct `ahub room status` failures expose only closed cause/action
|
|
6747
7071
|
metadata. A healthy online link needs no broker repair advice.
|
|
6748
7072
|
|
|
6749
|
-
## Optional Orca companion
|
|
6750
|
-
|
|
6751
|
-
The [versioned O0 contract](../integrations/orca/host-contract-v1.md) and its
|
|
6752
|
-
[capability matrix](../integrations/orca/host-contract-v1.json) describe the
|
|
6753
|
-
installed Orca 1.4.252 declarations, pinned primary references and reusable
|
|
6754
|
-
fake-host/CLI fixtures. O0 installs no plugin and changes no ahub runtime.
|
|
6755
|
-
Worker and frame APIs differ: workspace inventory/navigation are worker-only;
|
|
6756
|
-
focused context lacks the exact workspace id, execution host and real root
|
|
6757
|
-
needed to select a project. Names and branches are never selection authority.
|
|
6758
|
-
|
|
6759
|
-
Terminal focus remains unsupported until a plugin terminal id can be bound to a
|
|
6760
|
-
current same-host CLI handle. Workspace navigation and manual `ahub console` /
|
|
6761
|
-
`ahub ui` commands remain available independently of a companion. No remote
|
|
6762
|
-
loopback URL is opened locally. Native local, remote, Windows and mobile results
|
|
6763
|
-
are recorded separately; declarations and fake results do not qualify them.
|
|
6764
|
-
The three baseline journeys count procedure actions only, with observed native
|
|
6765
|
-
counts still unknown. O1 must record actual open/disable/standalone UI proof.
|
|
6766
|
-
|
|
6767
|
-
### Optional Orca companion: chooser and entry points (#1198 O1)
|
|
6768
|
-
|
|
6769
|
-
[`integrations/orca/`](../integrations/orca/README.md) holds the optional companion: a manifest, a
|
|
6770
|
-
trusted worker and a sidebar panel. It is not in the npm package, no ahub source refers to it, and ahub and
|
|
6771
|
-
Orca keep all their own functionality without it. It lists Orca's workspaces, you select one by its exact
|
|
6772
|
-
id (a name or branch never selects), and it opens an existing screen: `ahub ui` run as a short-lived child
|
|
6773
|
-
with the folder as its working directory only, or a terminal created in the workspace running `ahub console`
|
|
6774
|
-
or `acon ui`. A selection binds the id, host id, kind and the folder's real path on this Mac and is
|
|
6775
|
-
re-checked against a complete inventory before every effect; a duplicate, missing, truncated or changed
|
|
6776
|
-
identity, or a host not declared to be this Mac, refuses visibly and runs nothing. It never passes `--json`
|
|
6777
|
-
to `ahub ui`, never approves, assigns, completes, retries, stops or upgrades anything, and keeps no CLI
|
|
6778
|
-
output, one-time link or task text in plugin state or logs.
|
|
6779
|
-
|
|
6780
|
-
Install is explicit and in an isolated Orca profile first (`orca plugin validate`, `orca plugin dev load`
|
|
6781
|
-
with the fingerprint Orca prints); remove it with `orca plugin disable` and `orca plugin dev unload`. The
|
|
6782
|
-
fake-host checks are `test/orca-companion-entry.test.ts` and `test/orca-companion-independence.test.ts`.
|
|
6783
|
-
A **Show status** button (O2) reads the selected project's public status on a click only: version, tasks by
|
|
6784
|
-
state, and peer state with queue length, copied from `ahub status --json` through a closed allowlist so no
|
|
6785
|
-
free-text field (task title, a peer's current line, a notice, a path) is read. Offline, unavailable version,
|
|
6786
|
-
partial, stale and unknown stay distinct states; there is no poller, no transcript read and no terminal read.
|
|
6787
|
-
There is **no terminal focus**: O0 found no proof that a plugin terminal id names an `orca terminal switch`
|
|
6788
|
-
handle, so the companion never calls it and never replaces a terminal.
|
|
6789
|
-
|
|
6790
|
-
**Platforms (O3).** [`support-matrix.json`](../integrations/orca/support-matrix.json) records one verdict per
|
|
6791
|
-
combination and a test enforces that `supported` needs a receipt that no longer says NOT RUN. Today none is
|
|
6792
|
-
supported: macOS local is fixture-only, and remote, Windows, browser or mobile and Linux are unsupported, each
|
|
6793
|
-
with a person-run receipt template under `integrations/orca/receipts/`. A remote workspace is refused before
|
|
6794
|
-
anything runs and shows the existing remote console command to run on that host; a remote loopback link is never
|
|
6795
|
-
opened locally. On Windows every workspace is refused (`unsupported_platform`). Where a client has no external
|
|
6796
|
-
navigation no link is held. Mobile availability is not inferred from SSH reachability or from Orca's mobile
|
|
6797
|
-
pairing option.
|
|
6798
|
-
|
|
6799
|
-
**The native open and disable receipt is a person-run leg that has not been run**
|
|
6800
|
-
([`native-receipt.md`](../integrations/orca/native-receipt.md)): the action counts in the companion's README
|
|
6801
|
-
are procedure counts, remote, Windows and mobile stay unqualified (O3), and there is no focus-existing-console
|
|
6802
|
-
action.
|
|
6803
|
-
|
|
6804
|
-
## Herdr companion host contract (#1199 H0)
|
|
6805
|
-
|
|
6806
|
-
[`integrations/herdr/host-contract-v1.md`](../integrations/herdr/host-contract-v1.md) freezes what an optional Herdr mod may
|
|
6807
|
-
rely on, taken from the installed app's own declarations (Herdr 0.1.13, herdr-core 0.1.18, hashes recorded), and records
|
|
6808
|
-
what was not observed. It changes no ahub runtime and installs nothing. `exec` is bounded (30 s, 8 MiB) and used for
|
|
6809
|
-
reads only. The pane's machine and cwd are a navigation hint: the project root comes from `ahub projects --json` read on
|
|
6810
|
-
that same machine, and a remote cwd is never resolved on this Mac. Herdr has no install or disable command, so a mod is
|
|
6811
|
-
a folder the person adds and removes, and what removal does to a shown copy is for the H1 native receipt. Existing
|
|
6812
|
-
terminal focus is unbuilt until a Herdr terminal can be mapped to an ahub console. The three baseline journeys are
|
|
6813
|
-
procedure counts that have not been run in a native window.
|
|
6814
|
-
|
|
6815
|
-
### Who owns a pull-only peer (#1310)
|
|
7073
|
+
## Optional Orca companion (moved, #1198)
|
|
6816
7074
|
|
|
6817
|
-
|
|
7075
|
+
The optional Orca companion moved to [STAIxBWLB/ahub-orca](https://github.com/STAIxBWLB/ahub-orca) (#1387). Its code, tests and receipts live there; nothing of it remains in this repository. (The two Orca CLI verification records under `docs/verification/` stay here: they are ahub's own terminal-recovery evidence, cited by `src/cli/terminal-recovery.ts`.) It is an Orca plugin (`orca-plugin.json` at that repository's root, tagged `vX.Y.Z`), not an ahub dependency. It stays off here, and its native receipts are person-run and not run.
|
|
7076
|
+
|
|
7077
|
+
## Herdr companion (moved, #1199)
|
|
6818
7078
|
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
row is selected. Open console starts one new tab in the selected space running `ahub --project <id> console`, with the project root
|
|
6825
|
-
as the tab's folder. Before every effect it re-reads the space, the machine and the registrations and runs
|
|
6826
|
-
`ahub status --json` from the project folder, and refuses a changed, duplicate, offline or unready target. The local
|
|
6827
|
-
dashboard runs the existing `ahub ui` and keeps no link or ticket. A remote space gets the console tab or a copyable
|
|
6828
|
-
command, never a dashboard link. Remove it by deleting the folder. It starts, stops and upgrades nothing and is not an
|
|
6829
|
-
ahub dependency. `herdr-app check` accepts it in a scratch home; the native open and disable receipt is a person-run
|
|
6830
|
-
leg that has not been run.
|
|
6831
|
-
|
|
6832
|
-
### Herdr status card and existing-console focus (#1199 H2)
|
|
6833
|
-
|
|
6834
|
-
The Herdr entry also offers three read-only actions. **Status** reads `ahub --project <id> status --json` from the project folder on the
|
|
6835
|
-
selected machine, on a click only, and shows task counts, peer states and queue lengths and the hub version from a closed
|
|
6836
|
-
allowlist, so no task or note text reaches it. Missing CLI, timeout, an exit error, no hub running, oversized or
|
|
6837
|
-
unrecognized output, an old hub, a partial reading and a stale one are distinct states. **Focus console** and **Peek
|
|
6838
|
-
console** (this computer only) accept a terminal only after `hc get` shows it live and running `ahub console` for the
|
|
6839
|
-
selected project, exactly one match, rechecked right before a single `pane.focus` or `terminal.peek`, and a focus is
|
|
6840
|
-
believed only after Herdr's `focused()` shows it. They never start, replace, type into or close a terminal, and
|
|
6841
|
-
Herdr's own working, blocked, done and idle words are shown, never sent to ahub. A console started through a wrapper is
|
|
6842
|
-
not recognized and the person uses Open console. The native focus receipt is a person-run leg that has not been run.
|
|
6843
|
-
|
|
6844
|
-
### Herdr platform support matrix (#1199 H3)
|
|
6845
|
-
|
|
6846
|
-
[`integrations/herdr/support-matrix.json`](../integrations/herdr/support-matrix.json) records one verdict per combination and a
|
|
6847
|
-
test enforces that `supported` needs a receipt that no longer says NOT RUN. Today none is supported: macOS local is
|
|
6848
|
-
fixture-only, and remote, Windows, Linux and browser or mobile are unsupported, each with a person-run receipt template under
|
|
6849
|
-
`integrations/herdr/receipts/`. The remote console workflow is designed (read on that machine, new tab in that machine's space,
|
|
6850
|
-
no dashboard link, no remote focus) and exercised against the fixture only, because no remote machine is configured on the
|
|
6851
|
-
machine it was built on. On Windows every action refuses. Mobile is not inferred from SSH reachability or a machine being ready.
|
|
6852
|
-
[`baseline-comparison.md`](../integrations/herdr/baseline-comparison.md) lays the entry's journeys beside the H0 baseline as
|
|
6853
|
-
procedure counts: the entry costs one more action than the baseline when the pane is already in the right project, and its value
|
|
6854
|
-
is the verified machine and root, not a shorter path.
|
|
7079
|
+
The Herdr companion moved to [STAIxBWLB/ahub-herdr](https://github.com/STAIxBWLB/ahub-herdr) (#1387). Its code, tests and receipts live there; nothing of it remains in this repository. It is a mod folder the person copies into Herdr, not an ahub dependency. It stays off here, and its native receipts are person-run and not run.
|
|
7080
|
+
|
|
7081
|
+
## Who owns a pull-only peer (#1310)
|
|
7082
|
+
|
|
7083
|
+
`ahub status` (and `--json`) names the current owner of an attached channel peer, beside its standby rows: `<peer> owner: pid <n>; attached <age>; native session <id>`. The pid is what the owner's plugin reported at hello (`pid unknown` when it reported none or an unusable one). `attached` is when the attach finished, not when the hello arrived. The native session reads `unverified` until the hub has verified one through the native-facts path (today agy), and an id that is not a short plain token is never shown. The owner line is absent while a newer session is still arriving, while the peer is offline, and after a detach, so a claimant is never shown as attached, and a takeover replaces the whole line at once. Use it to see who holds a queued peer before running `ahub peer takeover`. It is display only: it never decides delivery, takeover or permission, and `status.json` on disk does not carry it.
|
|
6855
7084
|
|
|
6856
7085
|
## Bounded visual attachments (#1058)
|
|
6857
7086
|
|
|
@@ -6959,3 +7188,7 @@ Headless Record handling follows amem's effective machine and repository policy.
|
|
|
6959
7188
|
Upgrade every amem consumer sharing a memory home together, including native CLI hooks and embedded hub/plugin copies. A 0.22.1 hook drain silently discards Record format-3 spool entries without a counted loss, and its config parser refuses the `records` key even when false, so set `records: false` only after every consumer is upgraded. The hub exact-pins 0.23.1 and uses its public `recordsEnabled` accessor for the active home and execution repository; it does not upgrade the other consumers automatically. No real home is migrated by the feature's fixtures.
|
|
6960
7189
|
|
|
6961
7190
|
Count-only `records capture`, `records forwarded`, `records brief` and `records recall` diagnostics report accepted/dropped rows or before/after UTF-8 bytes. Record text, anchors, native session IDs and credentials are absent from these diagnostics. An absent registry proof or an unavailable Record source preserves old note content; a privacy or policy change during a read withholds the stale block.
|
|
7191
|
+
|
|
7192
|
+
## Claude Code companion (moved, #1338)
|
|
7193
|
+
|
|
7194
|
+
The Claude Code companion moved to [STAIxBWLB/ahub-claude](https://github.com/STAIxBWLB/ahub-claude) (#1387). Its code, tests and receipts live there; nothing of it remains in this repository. It is separate from the channel plugin `plugins/agent-hub` that ahub ships. It stays `fixture_only` with manual session-only placement, and its native receipts are person-run and not run.
|