@staix/agent-hub 0.44.0 → 0.46.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 +66 -0
- package/README.md +12 -11
- package/docs/adding-an-ai-tool.md +1 -0
- package/docs/agent-notes/adapters.md +35 -6
- package/docs/agent-notes/budget.md +2 -1
- package/docs/agent-notes/daemon.md +5 -1
- package/docs/agent-notes/local-worker.md +1 -1
- package/docs/agent-notes/security-review.md +3 -2
- package/docs/agent-notes/tasks.md +6 -2
- package/docs/agent-notes/tests.md +4 -3
- package/docs/design/adapters.md +20 -2
- package/docs/design/agent-hub-architecture.md +12 -0
- package/docs/design/agent-hub.md +1 -1
- package/docs/design/cli-output.md +2 -0
- package/docs/design/roadmap.md +158 -4
- package/docs/design/supervision.md +21 -1
- package/docs/design/task-board.md +32 -4
- package/docs/dogfood.md +28 -4
- package/docs/events.md +7 -3
- package/docs/influences.md +7 -0
- package/docs/memory.md +4 -4
- package/docs/operations.md +151 -36
- package/docs/quickstart.md +16 -4
- package/docs/research.md +16 -0
- package/docs/roadmap.json +4 -0
- package/docs/roadmap.md +9 -0
- package/docs/sdlc.md +15 -3
- package/docs/security.md +9 -7
- package/docs/smoke.md +1 -1
- package/docs/verification/2026-11-05-hardcoded-values-classification-rules.md +28 -0
- package/docs/verification/2026-11-19-claude-implementer-2.1.328.md +49 -0
- package/docs/verification/2026-11-20-claude-implementer-2.1.329.md +49 -0
- package/docs/verification/2026-11-20-sdlc-metrics-diagnosis.md +7 -0
- package/docs/verification/2026-11-21-0.45.0.md +69 -0
- package/docs/verification/2026-11-22-agy-1.5.14.md +27 -0
- package/docs/verification/2026-11-22-claude-instruction-hook.md +35 -0
- package/docs/verification/2026-11-22-codex-0171-reviewer-isolation.md +47 -0
- package/docs/verification/2026-11-22-instructed-ipc.md +9 -0
- package/docs/verification/2026-11-22-jcode-1.0.3.md +71 -0
- package/docs/verification/2026-11-22-jcode-separate-home.md +14 -0
- package/docs/verification/2026-11-22-qwen-0283-acp.md +28 -0
- package/docs/verification/2026-11-22-qwen-0283-dual-output.md +33 -0
- package/docs/verification/2026-11-22-roadmap-r5-view-receipt.md +63 -0
- package/docs/verification/2026-11-23-0.46.0.md +44 -0
- package/docs/verification/assets/1483-r5-detail-1440-light.png +0 -0
- package/docs/verification/assets/1483-r5-detail-390-light.png +0 -0
- package/docs/verification/assets/1483-r5-view-1440-dark.png +0 -0
- package/docs/verification/assets/1483-r5-view-1440-light.png +0 -0
- package/docs/verification/assets/1483-r5-view-390-dark.png +0 -0
- package/docs/verification/assets/1483-r5-view-390-light.png +0 -0
- package/docs/verification/assets/1483-r5-view-820-dark.png +0 -0
- package/docs/verification/assets/1483-r5-view-820-light.png +0 -0
- package/docs/verified.json +33 -27
- package/package.json +3 -2
- package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-hub/kimi-hook.js +4743 -4048
- package/plugins/agent-hub/kimi-review-policy-worker.js +5 -5
- package/plugins/agent-hub/server.js +1641 -1265
- package/plugins/agent-hub/skills/ahub/SKILL.md +17 -0
- package/plugins/agent-hub/skills/ahub-manage/SKILL.md +37 -0
- package/plugins/agent-hub/skills/ahub-status/SKILL.md +14 -0
- package/plugins/agent-hub/skills/ahub-use/SKILL.md +12 -0
- package/scripts/check-docs.mjs +9 -1
- package/src/adapters/acp.ts +11 -1
- package/src/adapters/claude-channel.ts +2 -1
- package/src/adapters/compat.ts +15 -14
- package/src/adapters/definitions/builtin-metadata.ts +2 -2
- package/src/adapters/definitions/native-cli-claude-setup.ts +9 -1
- package/src/adapters/definitions/native-cli-doctor.ts +8 -5
- package/src/adapters/definitions/native-cli-jcode-home-init.ts +158 -0
- package/src/adapters/definitions/native-cli-jcode-home.ts +72 -0
- package/src/adapters/definitions/native-cli-jcode-mcp.ts +20 -0
- package/src/adapters/definitions/native-cli-skills.ts +29 -0
- package/src/adapters/definitions/native-context.ts +10 -0
- package/src/adapters/jcode.ts +10 -0
- package/src/adapters/local-worker.ts +3 -2
- package/src/adapters/pi.ts +15 -4
- package/src/cli/claude-profile-hook.ts +40 -3
- package/src/cli/console-state.ts +58 -27
- package/src/cli/console-usage.ts +5 -3
- package/src/cli/console.ts +35 -4
- package/src/cli/help.ts +17 -10
- package/src/cli/identity.ts +4 -2
- package/src/cli/instruction-hook.ts +28 -0
- package/src/cli/jcode-mcp.ts +2 -1
- package/src/cli/main.js +8 -0
- package/src/cli/main.ts +149 -23
- package/src/cli/output-standard.ts +3 -55
- package/src/cli/output.ts +8 -2
- package/src/cli/recovery-package.ts +62 -13
- package/src/cli/roadmap-write.ts +59 -0
- package/src/cli/roadmap.ts +115 -4
- package/src/cli/sdlc-output.ts +4 -0
- package/src/cli/setup-homes.ts +1 -0
- package/src/cli/setup.ts +1 -1
- package/src/cli/skills-install.ts +463 -0
- package/src/cli/task-output.ts +1 -1
- package/src/cli/upgrade-presentation-flags.ts +1 -1
- package/src/cli/upgrade-runtime.ts +10 -6
- package/src/hub/agent-mem-range.ts +43 -0
- package/src/hub/board.ts +144 -5
- package/src/hub/budget-projection.ts +99 -0
- package/src/hub/check-runner.ts +25 -1
- package/src/hub/claude-launch-proof.ts +5 -1
- package/src/hub/conductor.ts +8 -3
- package/src/hub/config-apply.ts +6 -3
- package/src/hub/config-tier.ts +1 -1
- package/src/hub/config-trust.ts +1 -1
- package/src/hub/context-window.ts +1 -1
- package/src/hub/control-client.ts +9 -2
- package/src/hub/cost-governance.ts +11 -7
- package/src/hub/daemon.ts +707 -53
- package/src/hub/dogfood-read.ts +4 -2
- package/src/hub/edit-guard.ts +100 -0
- package/src/hub/events.ts +80 -9
- package/src/hub/execution-budget.ts +29 -8
- package/src/hub/facts.ts +57 -4
- package/src/hub/hub-tools.ts +3 -1
- package/src/hub/inference.ts +1 -1
- package/src/hub/instances.ts +10 -1
- package/src/hub/instructed-exact.ts +95 -0
- package/src/hub/instructed-intent.ts +64 -0
- package/src/hub/instructed-ipc.ts +33 -0
- package/src/hub/instructed-runtime.ts +19 -0
- package/src/hub/instruction-receipt.ts +218 -0
- package/src/hub/lifecycle.ts +6 -1
- package/src/hub/log-rotation.ts +130 -0
- package/src/hub/manager.ts +46 -3
- package/src/hub/memory-profile.ts +137 -21
- package/src/hub/no-writes.ts +1 -0
- package/src/hub/operational-authority.ts +3 -2
- package/src/hub/operational-settings.ts +2 -2
- package/src/hub/recovery-store.ts +49 -21
- package/src/hub/registry.ts +1 -1
- package/src/hub/research-experiments.ts +132 -0
- package/src/hub/research-quality.ts +8 -2
- package/src/hub/research-record.ts +35 -0
- package/src/hub/research.ts +128 -28
- package/src/hub/roadmap-check.ts +65 -0
- package/src/hub/roadmap-decompose.ts +139 -0
- package/src/hub/roadmap-export.ts +27 -0
- package/src/hub/roadmap-sync.ts +97 -0
- package/src/hub/roadmap.ts +59 -1
- package/src/hub/routing.ts +18 -1
- package/src/hub/runtime-capture-prune.ts +2 -1
- package/src/hub/sdlc-branch-ci.ts +128 -0
- package/src/hub/sdlc-merge.ts +6 -3
- package/src/hub/sdlc-metrics.ts +19 -5
- package/src/hub/sdlc.ts +73 -5
- package/src/hub/settings.ts +3 -1
- package/src/hub/snapshots.ts +13 -1
- package/src/hub/startup-event-seeds.ts +21 -15
- package/src/hub/startup-timing.ts +3 -1
- package/src/hub/supervision-proposals.ts +10 -2
- package/src/hub/supervision-rules.ts +26 -3
- package/src/hub/supervision.ts +7 -0
- package/src/hub/task-pr.ts +47 -0
- package/src/hub/task-worktree.ts +18 -11
- package/src/hub/tasks.ts +694 -44
- package/src/hub/ui.ts +6 -2
- package/src/hub/usage-rollup.ts +77 -22
- package/src/local/tools.ts +13 -1
- package/src/memory/client.ts +3 -2
- package/src/pi/extension.ts +15 -3
- package/src/pi/tool-receipts.ts +26 -0
- package/src/ui/index.html +342 -8
- package/src/ui/plugin.ts +6 -2
- package/src/ui/roadmap-model.ts +70 -0
package/docs/dogfood.md
CHANGED
|
@@ -10,13 +10,30 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
10
10
|
|
|
11
11
|
| Feature | State here | Measured by |
|
|
12
12
|
| --- | --- | --- |
|
|
13
|
+
| Review draft before macOS (#1576) | source and fixture coverage; active after release and restart | compare macOS shard runs per merged PR before and after rollout; target close to one full set of shards per merged PR |
|
|
14
|
+
| Edit governance guards (#1556 T3) | off by default; fixture coverage, available after release and restart | inspect edit guard availability and text-free evidence counts; compare shadow and advisory proposals and check outcomes |
|
|
13
15
|
| Sandboxed package-manager caches (#1549 T3 partial) | source and isolated macOS fixture coverage; active after release and restart | offline Bun and npm installs use per-command writable caches and leave a temporary home untouched; caller overrides and host-wrapper parity are tested; sandboxed reader-lease identity remains open |
|
|
14
|
-
|
|
|
16
|
+
| Claude hub skills (#1622 step 1) | source and fixture coverage; available to this repository after release and plugin setup | `ahub doctor` reports `hub skills` present; compare a status report's CLI, daemon and live Claude server versions and count unknown or mismatched sessions |
|
|
17
|
+
| Hub skills on other agent hosts (#1622, hub task 1063) | source and fixture coverage; available after release and `ahub setup` | `ahub doctor` `hub skills` per-host counts of installed, stale, modified, foreign and linked; `ahub setup --undo` removes only unmodified hub trees |
|
|
18
|
+
| Hub-owned jcode home, `jcode_mcp_allow` and roster add preflight (#1627, #1621) | source and isolated probe (`docs/verification/2026-11-22-jcode-separate-home.md`); this repository sets neither `jcode_home` nor `jcode_mcp_allow` yet | doctor `jcode MCP servers` row reads ok with allowed names listed; init reruns report drift only; preflight refuses without a terminal or `--yes` |
|
|
19
|
+
| Doctor routing classes warning (#1626, hub task 1069) | on after release; `ahub doctor` runs here | count of rostered implementers named as in no `[classes.*].peers` list; zero false reports for unrostered or non-implementer peers |
|
|
20
|
+
| Claude instruction receipt (#1622 step 3b) | fixture coverage only; no command authority is granted in this step | count pending-to-confirmed outcomes without prompt text after a verified native session; forged or unbound receipts must confirm zero times |
|
|
21
|
+
| Exact instructed command (#1622 step 4) | isolated installed-copy and scratch-daemon fixtures; source-checkout runtimes refuse | one confirmed command consumes one receipt; replay, unclassified and PII forms execute zero times |
|
|
22
|
+
| Exact instructed claim verdict (#1622 follow-up) | isolated installed-copy and scratch-daemon fixtures; available after release and restart | one confirmed no-manifest task claim records its exact slot and verdict once; substitution, replay and file-backed forms execute zero times |
|
|
23
|
+
| Screened exact creation (#1622 follow-up) | isolated installed-copy and scratch-daemon fixtures; available after release and restart | a confirmed typed creation or study approval applies once; private or inconclusive inputs and a stopped receipt produce zero effects |
|
|
24
|
+
| Screened exact planning and local titles (#1622 follow-up) | isolated installed-copy and scratch-daemon fixtures; available after release and restart | typed reasons apply once; private or revoked requests have zero effects; a named local title returns its prior value for undo |
|
|
25
|
+
| Intent instructed command (#1622 step 5) | isolated installed-copy and scratch-daemon fixtures; source-checkout runtimes refuse | up to ten confirmed operations per receipt; missing literal verdict ids, closed classes and PII work execute zero times |
|
|
26
|
+
| External merge cost and scan diagnostics (#1555 AC2, #1579) | source and fixture coverage; branch-scoped CI cost readback is available here after release and restart, with live post-upgrade verification pending | compare known `first_pass_check`, CI-at-merge, full-gate and macOS-shard sample counts in `ahub sdlc metrics` after a merged PR; compare per-source unknown scan counts in `ahub sdlc status` |
|
|
15
27
|
| Quota event sampling (#1555 AC4) | source and fixture coverage; active here after release and restart | compare recorded quota row rate and research-quality gap duration across the upgrade |
|
|
16
28
|
| Routine snapshot cooldown (#1550 AC3) | source and fixture coverage; active here after release and restart | count cooldown-start diagnostics and turn-end events with unknown file evidence; compare boundary latency and verify a retry after ten minutes |
|
|
17
29
|
| Marker-only no-reply guidance (#1550 AC4) | source and fake-agent coverage; available here after release and upgrade | compare status reply hops and queues after upgrade; fake ACP and Codex tests pin marker-only completion |
|
|
18
30
|
| Roadmap milestones (#1479 R1) | source and isolated fixture coverage; not enabled in the installed hub until release/restart | computed public approved/total and cached issue/spec/train counts; unknown evidence stays unknown; private membership is count-only; real control/CLI, CAS, inheritance, privacy and conditional recovery tests |
|
|
31
|
+
| Roadmap decomposition (#1480 R2 part 1) | source and fake-model/fake-`gh` coverage; not enabled in the installed hub until release/restart; proposes only, so nothing is intaken, linked or published | the share of proposed parts kept (a part that cites a linked id) versus dropped as unsupported, and the share marked `needs_spec` against `task`; a repeat run that supersedes the pending answer instead of doubling it; private milestone text, spec text and issue titles never in the prompt |
|
|
19
32
|
| Roadmap bottom-up placement (#1481 R3) | source and fake-`gh`/fake-model coverage; not enabled in the installed hub until release/restart; `import-github` is dry-run by default and is never run with `--apply` against this repository's GitHub in a test | `ahub roadmap unplaced` row counts with `partial`/`unavailable` shown; the share of triage suggestions accepted rather than rejected or dropped as unsupported; a second `import-github --apply` that changes nothing; private tasks only ever counted |
|
|
33
|
+
| Roadmap decomposition acceptance (#1480 R2 part 2) | source coverage with a fake model; the installed hub needs release/restart before a part can be accepted, and no part is released without `ahub intake approve` | drafts held against their milestone (`milestone_links` kind `task`); a repeated accept of one part that adds no row; the share of accepted parts released and completed; a part the screen refuses rendering `[pii]` in the reply |
|
|
34
|
+
| Roadmap decomposition publish (#1480 R2 part 3) | source and fake-`gh` coverage; `roadmap.github_write` stays off here, so no issue is created against this repository's GitHub | the preview's planned create count and fingerprint against the held `spec` parts; a second apply that creates nothing; a private part only counted; a failed create that leaves the draft held and links nothing |
|
|
35
|
+
| Roadmap dashboard view and console panel (#1483 R5) | source and isolated fixture coverage plus a browser receipt on a scratch hub; not enabled in the installed hub until release/restart | the receipt counts lanes and cards and measures `scrollWidth` against the viewport at 1440, 820 and 390 in light and dark, the tray repainting to "Everything is placed.", and the detail dialog open (`docs/verification/2026-11-22-roadmap-r5-view-receipt.md`); a stale revision is refused by name with nothing written; the console panel reads only while open (list 5 s, drift at most every five minutes) and the per-project summary at most once a minute |
|
|
36
|
+
| Instructed roadmap verdicts (#1622 family 4) | source and isolated fixture coverage; not enabled in the installed hub until release/restart, and not run against this repository's own milestones | the milestone history of an instructed `roadmap state <id> done` or `dropped` carries `instructed`, `instructedPeer` and `instructionReceipt` and no prompt text; a recovery target without `roadmap_instructed` is refused while one is retained and accepted when none is; the 256th history slot still takes the verdict |
|
|
20
37
|
| Distinguishable sessions and sender provenance (#1036, `session_identity`) | on after release and upgrade: a connection that names a peer id but is not that peer's current session is a distinct `<peer>~<origin>` session that can send and read, holds none of the peer's roles and replaces nobody; the channel plugin binds to its own project; every envelope and attach event records the connection. Nothing is refused to a connection that worked before. The recovery label `session_identity` applies once an unsettled delivery holds a session's message | `grep '"session":true' .agenthub/state/events.jsonl` lists every message a foreign session sent, with its minted id and no path or text; a recipient's header shows `from "claude~<id>"` for it; test/identity-provenance.test.ts (AC1, AC3, AC4, recovery label) and test/identity-channel-project.test.ts (AC2, real plugin against a new and an old hub) hold it. Not authentication: a same-user process can always act as the user |
|
|
21
38
|
| Claude channel attach evidence (#1171) | source and fixture coverage after merge and plugin/daemon upgrade; native Claude push proof remains unverified until a live `ahub claude` session | `ahub status` shows `channel` or `tools-only` with its evidence label; a marker-inheriting non-channel parent remains pull-only and its delivery is read by `hub_inbox` (`test/claude-channel-evidence.test.ts`, `test/daemon.test.ts`); inspect native TUI attaches separately, since fixtures use a synthetic parent row |
|
|
22
39
|
| Accepted channel delivery settlement (#1172) | source and fixture coverage after merge and plugin/daemon upgrade; native channel handling and long-running-session behavior remain unverified | `bus.accepted_settle_ms` defaults to 10 minutes; explicit channel `hub_inbox` metadata shows accepted/held ids and revisions even when a pull is blocked; a timeout becomes `needs_review` without replay; an important/task/review timeout yields one ids-only status notice when the configured conductor feed is on, with `feed: off` remaining an opt-out; daemon and MCP fixtures cover timeout and opt-out; live accepted-to-completed/timeout behavior remains unverified |
|
|
@@ -75,6 +92,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
75
92
|
| Repository required checks at init (#1328 T1) | This repository retains its native CI floor; discovery and empty enforce refusal run in isolated fixtures, never against the working configuration | `test/init-required-checks.test.ts`, init prompt/settings suites and settings read tests measure discovered names, bounded reads, zero-write refusal and running/file values |
|
|
76
93
|
| Planner pull routing diagnostics (#1430) | source and isolated fixtures; no live planner pull performed for validation | unreserved refusals retain each owner routing reason alongside WIP/hold detail, omit task text, and name hub_backlog_plan fields.reserved then pull again; backlog assignment gives the same next step |
|
|
77
94
|
| Ready reserved backlog auto-pull (#1547) | source and fixture coverage; active here after release when `tasks.auto_pull` is enabled | backlog planning, dependency approval and peer attachment pull a ready reservation only with available WIP; board history records the planner and auto-pull reason |
|
|
95
|
+
| Automatic distribution honours WIP (#1626) | source and fixture coverage; active here after release and hub upgrade, filling freed slots only when `tasks.auto_pull` is enabled | capacity declines per week (14 days to 2026-11-22: 110) and create to accept median (135 min), read from the board history |
|
|
78
96
|
| GSD migration guidance (#1431) | isolated init fixtures; this repository has no live GSD migration | advise/enforce init adds one pointer only for GSD frontmatter; no-marker output is byte-identical and .planning artifacts retain their bytes and modification times; docs command forms match help |
|
|
79
97
|
| Instructed conductor SDLC configuration (#1432) | off until a direct person instruction in the current conductor's own session; no live migration performed | `ahub sdlc configure` intent/result events record the actor and changed paths; measure saved off/advise/check-list edits, refusal reasons and pending restarts. Scoped host/control/CLI fixtures cover loader, audit, privacy, role/session and enforce boundaries; init and generic settings remain person-only |
|
|
80
98
|
| Project autonomy preset (#999 T1) | off on this repository until released and explicitly enabled by the person; project scope only | focused person-only, retained-consent, metadata-independent off and authenticated/fallback preset undo tests; the preset writes `action_policy.floor` (#999 T3) and off removes it; status leads with a peer table separating current modes from desired defaults, groups identical floor verdicts and unknowns once with peer lists (#1137), and reads each floor class from the host verdict (`floorEnforcement`), naming the unverified guard where the hub does not see the call first; the Orca zero-prompt native task remains T4 |
|
|
@@ -142,7 +160,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
142
160
|
| macOS shards deferred on stacked PRs (#1307) | on in CI for every PR after merge | macOS job-minutes per day and the longest macOS queue wait (57 runs, about 2,250 job-minutes and waits over an hour on 2026-11-07, before); `check (macos-latest)` deferral failures that were followed by a full macOS run on the same PR after it targeted `main` |
|
|
143
161
|
| Seed anchor diagnostics (#684) | on in the seeded checker; exact-match failure remains mandatory | missing anchors report the base commit, enclosing symbol and current file/line or explicit unknown; `test/seeded-check.test.ts` |
|
|
144
162
|
| Release authorization (#481 S6, #1063, #1120, #1381) | fixture coverage; delegated live consent awaits release and project upgrade | `test/sdlc-release-authorization.test.ts`, `test/sdlc-release-authorization-flow.test.ts` and `test/runtime-capture-checker.test.ts` retain candidate/docs/origin/restart bindings, actual user/conductor actors and checker capture behavior; `test/sdlc-release-configured-authorization.test.ts`, `test/sdlc-release-configured-policy.test.ts` and `test/sdlc-release-configured-report.test.ts` cover package defaults, release-notes and tag-only/requested-version sources, exact-report bindings, docs:none receipts, malformed or local policy, npm target refusal and unchanged actor/remote checks; no fixture authorizes a live release |
|
|
145
|
-
| 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
|
|
163
|
+
| 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; GitHub first-pass fallback is available after the #1579 change is released and the hub restarts | 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 |
|
|
146
164
|
| 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 |
|
|
147
165
|
| 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 |
|
|
148
166
|
| 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 |
|
|
@@ -179,10 +197,11 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
179
197
|
| Recovery and upgrade wait settings (#489 H4, task 445) | available after release; this PR does not change this hub's running configuration: the five `recovery.*` settings default to the waits they replace (managed attach 600 s, unmanaged reconnect 90 s, control request 30 s, shutdown 30 s, terminal idle 120 s) and nothing is set in this repository's config | every default equals its old constant (pinned with independent literals), every person-visible wait refuses a value below what shipped, a bad or unreadable file is the default and never an error inside a recovery, the coordinator reads both layers and the file at each wait, and inherit and undo go through the local file; the waits' use inside the real recovery driver (a configured value changing an actual attachment, shutdown or control wait) is covered only as far as the tests in this PR reach, and no real upgrade was run with a configured value |
|
|
180
198
|
| Tasks and routing operational settings (#489 H2, task 441) | available after release; this PR does not change this hub's running configuration: the six `tasks.*` settings default to the constants they replace (demotion threshold 1.5, half-life, contradiction window, re-screen cap 10, split minimum 5 observations, split failure share 0.3), and nothing is set in this repository's `config.local.json` | each setting's default equals its old constant (pinned independently of the descriptor), each reader is called by the code that used the constant, `ahub settings set`, inherit and undo for `tasks.demote_at`, and a reload that reaches the next demotion, re-screen and split read; 29 hand-made mutants, none surviving; inherit and undo are not yet looped over all six keys, and no live `ahub settings set tasks.*` against a running hub |
|
|
181
199
|
| Bus and delivery operational settings (#489 H3, task 444) | available after release; no running hub configuration is changed here; five defaults retain the previous retry/digest/pull/note/history constants | default pins, bounded H1 schema/UI/apply parity, next-operation runtime traces and real-daemon write/inherit/undo fixtures for all five keys; live native console/dashboard editing and production delivery performance remain unverified |
|
|
182
|
-
| Adapter timing settings (#489 H5, task 446) | available after release; no running hub configuration is changed here; defaults remain ACP tool ceiling 30 min, activity batch 50 ms and Jcode steer 5 s | independent legacy pins, bounds/schema/UI/apply checks, fake-based watchdog/batching/absolute-deadline behavior and real-daemon next-launch snapshots/inherit/undo; native/account timing and live console/dashboard editing remain unverified |
|
|
200
|
+
| Adapter timing settings (#489 H5, task 446) | available after release; no running hub configuration is changed here; defaults remain ACP tool ceiling 30 min (60 min since #1601), activity batch 50 ms and Jcode steer 5 s | independent legacy pins, bounds/schema/UI/apply checks, fake-based watchdog/batching/absolute-deadline behavior and real-daemon next-launch snapshots/inherit/undo; native/account timing and live console/dashboard editing remain unverified |
|
|
183
201
|
| Model relay and inference settings (#489 H6, task 447) | available after release; no running hub configuration changed here; legacy defaults retained and all seven rows require daemon restart | default pins, schema/UI/apply parity, fake-clock cooldown/backoff and local fake-server journal coverage; configured native/model calls and live console/dashboard editing remain unverified |
|
|
184
202
|
| UI and console settings (#489 H7, task 448) | available after release; no running console or hub configuration changed here; defaults retained | independent default pins, bounds and config/inherit/undo, startup snapshot/fallback, poll seam, notice/history, cold-start counted trimming and permission/close handling; native interactive console editing remains unverified |
|
|
185
|
-
| Context gate | off: `context.gate = 0
|
|
203
|
+
| Context gate | off: `context.gate = 0`; Pi occupancy has source and fake-bridge coverage in headless and TUI modes after release, native live status remains unverified | context-pressure events; `ahub status` reports `pi_usage` and freshness for a verified current Pi session |
|
|
204
|
+
| Roadmap drift, mirror and export (#1482 R4) | source and fake-GitHub coverage; mirror off by default and live write not exercised; mirror inventory fails closed at 1000 issues and PRs | `ahub roadmap check` findings and unknown rules, preview fingerprints, generated roadmap validation and ids-only supervision notices |
|
|
186
205
|
| Structured checkpoint fields (#1331, `hub_checkpoint`) | on after release and hub upgrade: the fields are optional, so a checkpoint that sends only `summary` behaves as before; quota checkpoints run here, context checkpoints only where `context.gate` is set (off here) | one `checkpoint` event per accepted checkpoint (peer, reason `quota` or `context`, the names of the fields it carried, never its text); `events.checkpoints` in `quality.json` (`total`, `byFieldCount`, `byField`) shows how many checkpoints used the fields and which; over-length refusals name the field and limit in the tool result, and the unit and daemon tests are `test/checkpoint-fields.test.ts` and `test/daemon-context.test.ts` |
|
|
187
206
|
| Context headroom admission (#802) | off by default: `context.max_assignment_used = 0`; not enabled here by this PR | `ahub route explain` known/unknown context decisions and offered owners; pure/session-freshness, real Tasks/manual override and machine-local config regressions; native live admission remains unverified |
|
|
188
207
|
| 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 |
|
|
@@ -202,6 +221,8 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
202
221
|
| Urgent accept takes back unaccepted offers; WIP refusal splits accepted from offered (#1080) | on after release and upgrade; fixture coverage only (`test/urgent-wip.test.ts`: a real `Tasks` over a real board, an owner at its limit with one accepted task and offers). A live urgent task for a busy owner is not recorded here | task history: `unassigned` by `hub` with a `displaced by urgent task` note; the planner notice `was taken back from`; any `planner WIP capacity` refusal that still reads as one undivided list of open tasks |
|
|
203
222
|
| Declared needs keep work from a peer that cannot do it (#1081: `needs_network`, `needs_worktree`) | on after release and upgrade, for tasks proposed with `needs_network` or `needs_worktree` (or `--needs-network`, `--needs-worktree`); fixture coverage only (`test/routing-network-needs.test.ts` and `test/routing-worktree-needs.test.ts`: routing, `route explain`, explicit assignment, a reservation, accept with a rostered fake Pi and Codex, and a real git repo showing a refused accept creates no branch ref; `test/capabilities-network-worktree.test.ts`: a real daemon's per-peer capabilities). A real Pi or local worker offered flagged work is not recorded here. A hub-made worktree for a sandboxed peer (#1115) is covered by fixtures only (`test/task-worktree.test.ts`: real git, a bare origin, the hub's commit and push, a moved branch or HEAD refused, the path policy, decline and cancel cleanup; `test/task-worktree-sandbox.test.ts`: the real `sandbox-exec` profile, unchanged, with the peer editing and the hub's commit after (the peer's own commit failing is asserted in `test/sandbox-git-refs.test.ts`, #1123); `test/task-worktree-tasks.test.ts`: accept, refusal, decline, cancel and the done hand-off through `Tasks`), so it is on after release and upgrade, for flagged work offered to Pi or local in a git repository with a GitHub origin, and its metric is a Pi or local task whose branch was committed and pushed by the hub and reviewed, with no `.git` write attempt from the sandbox (expected: none) and no empty `task/*` refs left by a declined or cancelled one | `ahub route explain` lines `skipped, no network` and `skipped, no worktree` for Pi or local; Pi or local declines of work that needed the network or a worktree (expected: none once the task is flagged); empty branch refs left by a declined Pi or local task (expected: none for flagged tasks); unflagged tasks that were declined for a missing worktree or registry, which show the planner is not flagging them |
|
|
204
223
|
| Sandbox refuses `.git` ref, HEAD and worktree writes (#1123) | on after release and upgrade for the local worker and Pi (hub sandbox); fixture coverage under the real `sandbox-exec` only (`test/sandbox-git-refs.test.ts`: the main checkout, a hub-made worktree, a worktree beside its project, a bare repository's worktree, a submodule, a nested one and a linked worktree's, folded names, projects below directories named like the rules; `test/sandbox.test.ts` and `test/tools.test.ts` rewritten where they asserted a sandboxed commit). It needs macOS, so the Linux gate skips it. A real Pi or local worker task is not recorded here; since #1129 a sandboxed task of a write class gets the hub's worktree and commit whether or not it is flagged | a Pi or local write-class task that ends with uncommitted edits in the main checkout (expected: none, the hub made it a worktree), the local `git` tool's `the sandbox does not let you move a branch` note in turn results, and any `Operation not permitted` on a `.git/refs`, `HEAD` or `worktrees` path from a command that should not need it |
|
|
224
|
+
| Managed worktree pre-handoff checks (#1549 T1) | source and fake Pi daemon fixtures only; active after release and upgrade, with live Pi execution unverified | count managed-owner `hub_check_start` runs whose runner ref matches the task's recorded commit, and later `hub_task_done` tip-fence refusals; `test/pi-daemon.test.ts` and `test/task-worktree-tasks.test.ts` cover exact-head admission, unchanged-head reuse, protected paths and later handoff |
|
|
225
|
+
| Managed worktree PR handoff (#1549 T2) | fake GitHub fixtures only; active after release and upgrade, with live Pi execution unverified | managed-owner completions whose `sdlc.pr` identifies the exact pushed head; creation, reuse, lost reply and authority-change refusals are covered by `test/task-pr.test.ts` and `test/task-worktree-tasks.test.ts` |
|
|
205
226
|
| Hub worktree and commit for every write-class task of a hub-sandboxed owner (#1129) | on after release and upgrade, for `implement` and `bulk_edit` work offered to Pi or the local worker in a git repository, whether or not the task says `needs_worktree`; fixture coverage only (`test/task-worktree-tasks.test.ts`: an unflagged implement and bulk_edit task get the worktree at accept, the hub commits it at `hub_task_done`, decline and cancel clear it, read-only classes and PII tasks get none, a self-claim makes it; `test/routing-worktree-needs.test.ts`: write-class work is not offered where the hub cannot make a worktree and the trace names the cause, read-only classes are not refused; `test/pi-daemon.test.ts` runs a real Pi accept in a repository). A real Pi or local worker task through a whole accept, edit and done is not recorded here | write-class tasks owned by Pi or local whose `hub_task_done` carries a hub commit and branch (expected: all of them); `ahub route explain` lines `skipped, no worktree` for Pi or local on write-class work outside a git repository (expected there, with the cause), write-class tasks that stay with Claude or Codex because the hub could not make a worktree (the cost of this rule: watch whether it starves Pi), and empty `task/*` refs left by a declined or cancelled one (expected: none) |
|
|
206
227
|
| Paged `hub_task_list` (#1083) | on after release and upgrade, for agents (an agent session's `ahub board` follows the pages); the person's console and `ahub board` from a terminal keep the bare array. Fixture coverage only (`test/task-list-page.test.ts`: a real daemon with 600 seeded tasks; `test/board-agent-paged.test.ts`: the real `ahub board` and `--columns` under an agent identity over a two-page board). A real conductor session reading the live board is not recorded here | the size of a conductor's `hub_task_list` result on the live board (expected: under 64 KB, a `next` cursor while more exist); a page walk that ends with no task repeated; `ahub board` run from an agent shell listing as many tasks as `ahub board` from a terminal; any peer or script that still fails parsing `hub_task_list` as a bare array |
|
|
207
228
|
| `ahub init` guided prompt (#1065 T2) | on wherever a person runs `ahub init` at a terminal on a new project with no flag and no `--yes`; fixture coverage only (the real CLI under a scripted pty in a temporary HOME: `test/init-prompt.test.ts`). A person answering it on a real new project is not yet recorded and not run here | `ahub init` runs by a person that end with `wrote ...` after the plan, against runs that end `nothing was written` (N, Ctrl-C, Ctrl-D, three bad answers); no `Write this?` line in any log of a peer, live-test or piped run; the settings a person changes from the default, per question |
|
|
@@ -230,6 +251,8 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
230
251
|
| 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` |
|
|
231
252
|
| Research record v2 and dataset export (#1277; person, memory and budget hand-off blocks #1278, #1279, task 802) | off here: `research.enabled` is not set in this repository's config; source and fixture coverage after merge (`test/research-record-v2.test.ts`, `test/research-quality.test.ts`, `test/research-dataset*.test.ts`: a real `hub.db` with hand-computed blocks, the privacy canary and the CLI over two registered projects); no live research pilot has run | `ahub research export --dataset <dir>` then `quality.json`: per-field `unknown` share (a share near 1 for a block means its source is not reaching the record), token attribution share, quota gaps |
|
|
232
253
|
| Observed model per turn (#1402 T1 to T5) | source and fixture coverage after merge and release; the running hub reports it after upgrade and restart. Live per-agent ids are unrecorded (no model call was made for it), so each agent's source below is from its native schema or the repo's receipts | the share of approved tasks whose owner model is known at `served` or `session` grade: `ahub research` prints `owner model known (served or session): N of M tasks`, and `by model` stops reading `unknown` for them (a `configured` grade counts as a model but not toward that share). `ahub status` and `ahub model list` show the last observed model with its grade (`observed (served)` / `observed (session)`) in place of `not reported` when no override, instance, launch or native baseline model is known. Sources: Codex thread/start and `model/rerouted`, Claude print `modelUsage`, ACP `currentModelId`, Pi `get_state`, Antigravity hook `modelName`; records written before #1402 stay `unknown` until `ahub research backfill` |
|
|
254
|
+
| Edit-governance factorial analysis (#1556 T4) | fixture coverage; available after release, with no live arm selection | compare known and unknown edit-rate groups and 2x2 contrasts; `quality.json` reports cost per verified success unknown until component costs are measured |
|
|
255
|
+
| Edit governance counts (#1556 T2) | runs on this repository once `research.enabled` is on and the hub restarts; source and fixture coverage only until then | `quality.json` `fields["edits.editTool.total"]`: `n` records and how many are `unknown` (tree_only or no evidence); a read-only turn adds no `edits` field |
|
|
233
256
|
| Dogfood scorecard (#687) | on after release; read-only weekly receipt | `ahub report --dogfood --since 7d --json`; bounded evidence and explicit unknowns |
|
|
234
257
|
| Claim verdicts and fact_check provenance (#901) | source/fixture coverage; the live research pilot (a person entering verdicts with `ahub task claim`) remains unverified | `ahub report --dogfood` research rows: `claims.reachedPersonVerdict`, per-slot `personVerdict`/`modelLabel`/`agreement`, `factCheck.selection`/`passed`/`failed`/`missingKeysPerRun`; null until a verdict or a keyed check is recorded |
|
|
235
258
|
| Claim evidence links and synthesis readiness (#931 T1-T3) | source/isolated fixtures after merge; this dev-profile repository publishes no evidence writer and has no live research evidence pilot | Unicode scalar offsets, complete/version-bound projections, duplicate-origin groups and private-upgrade readback; explicit offline manifests bind registered artifact hashes and the complete latest-link inventory; ready-then-new-counterevidence, changed claims/projections/artifacts, missing judgments, open/withdrawn historical contradictions, person disposition and privacy-race fixtures; separate citation/provenance/judgment statuses never certify truth; live research acceptance remains unverified |
|
|
@@ -262,6 +285,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
262
285
|
| Kimi usage from its wire log (#285 phase 2, delayed drain #1281, sliced drain #1283) | on after the release when `budget.kimi_tokens_5h` is set; this repository sets it | `tokens` and `usage` (`kimi_wire`) events per Kimi turn, delayed rows collected without another turn, the `tokens` window in `ahub budget`, correct task attribution without a later turn's `turn_end` changing, and the count of `kimi usage unknown` notices; the sliced-drain benchmark records before/after longest synchronous slice, discovery and bytes, with a real status request admitted between slices; [AC11](verification/2026-10-25-kimi-usage-ac11.md), the [current native receipt](verification/2026-11-07-kimi-delayed-usage.md) and the [sliced-drain receipt](verification/2026-11-08-kimi-wire-yield-1283.md) |
|
|
263
286
|
| Doctor memory-capture rows from agent-mem setup state (#1008) | on after release; `ahub doctor` runs here and reads `amem setup <tool> --json` (a preview that writes nothing) for `codex` and `kimi`; no dotfiles text and no `dot ai memory status` call | `memory capture: codex` and `memory capture: kimi` rows read ok (set up), warn with `amem setup <tool> --apply` (pending), warn with `client missing` (the native CLI is not installed) or unknown (no `amem`, a refusal or unparseable output); the Codex row notes the native `/hooks` review; a fixture run proves `dot` is never called |
|
|
264
287
|
| Budget window kinds and notes (#285 phase 4) | on after the release; `ahub budget`, the console peer detail, the dashboard Usage budgets row and `ahub doctor` (`kimi usage source`) run here | each window shows its kind and source, a peer without a number says why (Pi, local and Kimi included); a manual `ahub budget set` value outranks the Kimi count at the gate; the doctor row reads ok while the wire log counts |
|
|
288
|
+
| Projected exhaustion and override reasons in Usage budgets (#1513) | on after the release; `ahub budget`, the console Usage detail and the dashboard Usage budgets row run here, and no provider window has yet been read with a real burn to forecast | every window shows `left` and one forecast sentence; `test/budget-projection.test.ts` holds a steady burn, the lookback and window bases, a reset inside the lookback, too few points, no burn, reset-first and an unusable reading; `test/budget-surfaces.test.ts` proves the table, the console cell and the page print the same sentence, the page's own copy matches the hub's for all six shapes, and an older hub adds neither field; `test/execution-budget.test.ts` proves a `--reason` is kept with `person` and its time while a configure without one keeps the previous reason. The metric that shows it works is the share of windows whose REACHES names a time instead of `no forecast: too few points yet`: a share near zero means the hourly burn series is not reaching the projection |
|
|
265
289
|
| Settings reload | on | reloads applied, pending restarts |
|
|
266
290
|
| Config editing from the console and dashboard (#689) | on after release; `ahub settings edit` and console key `c` run here, the dashboard Structure group needs `ahub ui --settings`; executable keys stay console only | `config_edit` events (edits applied by tier and source), refusals shown with the loader reason, restarts left pending |
|
|
267
291
|
| Upgrade and recovery (#1426) | on, per release; new launch-refusal diagnostics and target-version preflight have synthetic coverage only until release, no live restoration receipt yet | upgrade receipts in `docs/verification/`; red AC2 exhausts virtual 600000ms on old code, refusal/resume fixtures retain Pi and Codex conversations and typed causes; no real native/account call |
|
package/docs/events.md
CHANGED
|
@@ -6,6 +6,10 @@ file is for tools (`ahub export`, `ahub report`, research measurements). The
|
|
|
6
6
|
version is bumped only when a field changes meaning or goes away; new fields and
|
|
7
7
|
new event types do not bump it.
|
|
8
8
|
|
|
9
|
+
## Rotation (#1546)
|
|
10
|
+
|
|
11
|
+
`events.jsonl` rotates by size: when the live file reaches 64 MiB the daemon renames it to `events.jsonl.<start>`, where `<start>` is the byte offset, in the one stream the segments and the live file make together, of the segment's first byte. Three rotated segments are kept. The oldest is dropped only when no open task could need it: it is kept while its last event is at or after the creation of the oldest open task, so the log may grow past three segments until that task closes, and `hub.log` says when it kept one. Readers (`ahub export`, `ahub report`, `ahub research backfill`, `ahub usage`, the startup seeds, `dogfood`) read the segments oldest first and then the live file, so they see the lines an unrotated file would have held; a byte offset is a position in that stream and survives a rotation. Dropped segments are gone: an offset below the oldest kept byte starts at the oldest kept segment, and a task whose first event was dropped is read from what the log still holds. `hub.log` rotates the same way at 16 MiB with two segments kept, by copy and truncate while the daemon runs (its stderr also appends to the file) and by rename at the next start.
|
|
12
|
+
|
|
9
13
|
Every event has `v` (schema version), `at` (ISO time) and `type`. No event ever
|
|
10
14
|
carries a message body or a task title or detail. Private (PII) envelopes are
|
|
11
15
|
marked `private: true`, and PII tasks `pii: true`.
|
|
@@ -33,7 +37,7 @@ marked `private: true`, and PII tasks `pii: true`.
|
|
|
33
37
|
| `native_turn_end` | `peer`, `id` (an opaque hash that names the completed turn): the end of a Claude turn, recorded once the hub finds the turn its Stop hook reported completed in the native transcript (Codex's is its `turn_end`), or the correlated final `turn.ended` of a Kimi TUI turn (#1282), or an agy terminal `Stop` of an active, fully idle turn, which carries no `id` and a closed `reason` (`user_canceled`, `error`, `max_invocations`, `max_forced_invocations`, `max_token_budget_exceeded`, `terminal_step_type`, `terminal_custom_hook`; #1280); quiescence evidence for an integration, never a hook payload, prompt or error |
|
|
34
38
|
| `supervision_turn` | `peer`, `turn` (the hub turn a supervision notice was delivered into, or `supervision-<uuid>` when none was open), `tokens` (when the adapter reported any for it), `ms` (from that turn's start, or from the delivery when none was open, to its native end): a completed native turn that received supervision, which `ahub report` counts; a failed delivery or turn, a peer that went offline or a changed native session records none |
|
|
35
39
|
| `conduct` | `peer` (the conductor, or `user` when the console releases a conductor hold), `action`, `task` (when the action names or creates one), `target` (the peer an assignment, start, hold or release names): one action of the conductor that ran, the structured twin of the console's `conductor` notice. `action` is a tool name without its `hub_` prefix: a conductor tool (`status`, `task_show`, `task_assign`, `task_escalate`, `peer_start`, `peer_hold`, `peer_release`), or one of the conductor peer's own task tools, which are not conductor tools (`task_propose`, `task_accept`, `task_decline`, `task_done`, `review`, `checkpoint`, `remember`). The role-free reads and redirects (a task's owner or reviewer with `hub_task_show`, its proposer with `hub_task_assign`) record none, and neither does `hub_task_list` |
|
|
36
|
-
| `agent_cli` | `peer` (`unknown` when the agent markers were invalid), `command` (the command and, where it has one, its subcommand, from a closed list; `unknown` otherwise; never an argument), `refused` (the CLI refused it before connecting: a human-only command, or an invalid identity; the daemon also writes this event for a conductor operation it admits or refuses on authority; for any other task command the CLI adds a second record with `refused: true` beside the up-front one only when the daemon's reply carries `authorityRefused: true`, which the daemon sets only for conductor operations, so any other failed task command, an unknown task or a role refusal by the hub included, adds none, #1547), optional `delegated: true` or `instructed: true` for the corresponding audited authority path: an `ahub` command run from an agent session. The hub reads these from the `cli-audit/` outbox, so `at` is when it read the record. From #1278 it also carries `task` and `attribution` (the `turn_end` rule) when the record is drained within 15 s of the command; an older record is `unattributed`, never matched to the task open at drain time |
|
|
40
|
+
| `agent_cli` | `peer` (`unknown` when the agent markers were invalid), `command` (the command and, where it has one, its subcommand, from a closed list; `unknown` otherwise; never an argument), `refused` (the CLI refused it before connecting: a human-only command, or an invalid identity; the daemon also writes this event for a conductor operation it admits or refuses on authority; for any other task command the CLI adds a second record with `refused: true` beside the up-front one only when the daemon's reply carries `authorityRefused: true`, which the daemon sets only for conductor operations, so any other failed task command, an unknown task or a role refusal by the hub included, adds none, #1547), optional `delegated: true` or `instructed: true` for the corresponding audited authority path: an `ahub` command run from an agent session. The hub reads these from the `cli-audit/` outbox, so `at` is when it read the record. From #1278 it also carries `task` and `attribution` (the `turn_end` rule) when the record is drained within 15 s of the command; an older record is `unattributed`, never matched to the task open at drain time. An `ahub instructed run` command (#1622) is not read from the outbox: the daemon writes one record itself, with `refused: false`, `instructed: true` and `instructionReceipt` (the opaque id of the instruction receipt the command consumed), after the receipt is consumed and before the command takes effect; `at` is the write time and it carries no `task` or `attribution`. If that record cannot be written, the command is refused and nothing runs |
|
|
37
41
|
| `hook_stats` | `peer`, `n` (facts hook calls in the turn, its Stop included), `startupMs` and `maxStartupMs` (the hook processes' start-up and connect time, summed and the largest), `hubMs` (the hub's own time for them): at Claude's Stop (issue #108) |
|
|
38
42
|
| `cohort` | `id`, `event` (`formed`, `joined`, `lifted`), `silent`, `tasks`, `owners`: owners of overlapping tasks formed a cohort, it changed membership, or it stopped being silent (issue #107). Recorded in every regime; only a turn-free project's cohorts can be silent |
|
|
39
43
|
| `split` | `task`, `where` (`routing`: routing chose the first owner of a task overlapping another owner's task not started yet, not an escalation, relay or reassignment, the record calibration reads; `cohort`: an overlap formed or changed a cohort), `verdict` (`split`, `single`, `unknown`), `single` (the peer that would finish both units alone soonest), `splitS`, `singleS`, `reason` (for `unknown`), `trace` (the inputs and steps: peer names, their profiles of versions and coordination, and numbers only): a shadow split prediction; it never changes the assignment (issue #109) |
|
|
@@ -41,7 +45,7 @@ marked `private: true`, and PII tasks `pii: true`.
|
|
|
41
45
|
| `visual` | `id`, `kind` (`mermaid`, `comparison`, `table`, `beforeAfter`), payload UTF-8 `bytes`, image `files` count, optional numeric `task`: a bounded public visual was stored (#1058). Never the title, source, comparison/table text, path or image bytes. Ordinary delivery records carry only the visual stub and id. |
|
|
42
46
|
| `native_thread` | `peer` (`codex`), `thread` (its native thread id), `fresh` (`true` when the TUI started the thread, `false` when it resumed one): each thread the Codex adapter adopts, before any turn on it. The upgrade planner reads it: a thread with no rollout that the hub saw start, with no `turn_start` since, is planned as a fresh start (issue #215) |
|
|
43
47
|
| `turn_start` | `peer`, `turn` (`<peer>#<hub run>.<n>`, unique across restarts). A turn follows the adapter: pausing a busy peer does not end it |
|
|
44
|
-
| `turn_end` | `peer`, `turn`, `ms`, `tokens` (when the adapter reported any during the turn), `files` and `snapshotMs` (when snapshots are on: how many files the turn changed, and the time both snapshots took); optional numeric `task`, `attribution` (`delivery`, `single_open`, `unattributed`) frozen at turn start, `pii: true` for an attributed PII task; optional `model` and `modelEvidence`, both or neither (#1402): the model id the adapter observed for the turn, with how it was learned, strongest first: `served` (the provider or the native transcript named it for this turn's responses), `session` (the native session's current model id), `configured` (only the hub's own override or launch flag is known). An alias is recorded as the native surface reported it, never expanded; a label that fails the safe-label check is dropped with its evidence |
|
|
48
|
+
| `turn_end` | `peer`, `turn`, `ms`, `tokens` (when the adapter reported any during the turn), `files` and `snapshotMs` (when snapshots are on: how many files the turn changed, and the time both snapshots took); optional numeric `task`, `attribution` (`delivery`, `single_open`, `unattributed`) frozen at turn start, `pii: true` for an attributed PII task; optional `model` and `modelEvidence`, both or neither (#1402): the model id the adapter observed for the turn, with how it was learned, strongest first: `served` (the provider or the native transcript named it for this turn's responses), `session` (the native session's current model id), `configured` (only the hub's own override or launch flag is known). An alias is recorded as the native surface reported it, never expanded; a label that fails the safe-label check is dropped with its evidence; optional `edits` (#1556 T2, only with `research.enabled`, never for a private turn, absent on a read-only turn): closed counts `obs` (`hook`, `stream`, `tree`), `arm`, `e` (edit tool) and `s` (shell route) as five counts each (total, verified full read, partial read only, blind or stale, rejected or blocked), `u` (tree writes no hook attributed), `fe`, `rev`. Never a path, a command or text; the operational view does not export it |
|
|
45
49
|
| `tokens` | `peer`, `n` (tokens added since the previous report), optional `source: kimi_wire` and opaque `id` (the native row, used to keep a partial-write retry exactly once), optional numeric `task`, `attribution` (`delivery`, `single_open`, `unattributed`), `pii: true` for an attributed PII task |
|
|
46
50
|
| `usage` | `peer`, `source` (`omniroute`, `claude_transcript`, `claude_result`, `codex_appserver`, `kimi_wire`, `jcode_acp`, `agy_transcript`), opaque `id`, optional `measuredAt` (provider/source time), the `requestedModel`, `servedModel` and `provider` labels, and any provider-reported counters (`inputTokens`, `outputTokens`, `cacheReadTokens`, `cacheWriteTokens`, `reasoningTokens`, `totalTokens`); optional numeric `task`, `attribution` (`delivery`, `single_open`, `unattributed`), `pii: true` for an attributed PII task. Missing counters stay unknown. |
|
|
47
51
|
| `task` | `id`, `event` (the board history event, e.g. `proposed`, `assigned`, `done`, `check failed`, `blocked`, `ready`), `by`, `state`, `owner`, `reviewer`, `class`, `pii`, and `reason` when the board recorded a move reason (`manual`, `budget`, `offline`, `idle`, `rejections`, `declined`, `inference_failed`, `delivery_failed`, `step_limit`). The research record (docs/research.md, #1277) reads these for every terminal task, approved or cancelled; no new event type was added |
|
|
@@ -114,7 +118,7 @@ Token usage by adapter:
|
|
|
114
118
|
|
|
115
119
|
## The usage roll-up (#683)
|
|
116
120
|
|
|
117
|
-
`ahub usage` does not read `events.jsonl` on each call. The daemon folds it into `hub.db`: `usage_rollup` (day, peer, model, source, task and the private mark, with the sum of each provider counter and how many records carried it), `token_rollup` (the hub's own `tokens` increments), `limit_events` (every `budget_pause`, `budget_resume` and `quota_reset`, without the reason text) and `rollup_state` (the byte offset and the first event's time). Each `usage` record is counted once by peer, source and id, as `ahub report` counts it. The roll-up holds ids and numbers only, so a title cannot reach it. A sum is shown only where at least one record carried the counter, otherwise it is unknown.
|
|
121
|
+
`ahub usage` does not read `events.jsonl` on each call. The daemon folds it into `hub.db`: `usage_rollup` (day, peer, model, source, task and the private mark, with the sum of each provider counter and how many records carried it), `token_rollup` (the hub's own `tokens` increments), `limit_events` (every `budget_pause`, `budget_resume` and `quota_reset`, without the reason text), `usage_points` (#1513: per hour, peer and `native` or `count`, the tokens each record spent and how many records added to it; the quota forecast in `ahub budget` reads it, taking the provider's figure for an hour a provider reported and the hub's own `tokens` count otherwise, so an hour is never counted twice) and `rollup_state` (the byte offset and the first event's time). Each `usage` record is counted once by peer, source and id, as `ahub report` counts it. The roll-up holds ids and numbers only, so a title cannot reach it. A sum is shown only where at least one record carried the counter, otherwise it is unknown.
|
|
118
122
|
|
|
119
123
|
## Per-task usage reports
|
|
120
124
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Influences
|
|
2
|
+
|
|
3
|
+
agent-hub shares no code with these projects. Each informed a feature; the design and implementation are agent-hub's own.
|
|
4
|
+
|
|
5
|
+
- [agent-bridge](https://github.com/raysonmeng/agent-bridge): a bridge between Claude Code and Codex. Its forwarding of agent messages, marker tiers, busy guard and turn watchdog informed the bus.
|
|
6
|
+
- claude-mem: a memory service for coding agents. It was the hub's memory backend until 2026-10-17, when the first-party `@staix/agent-mem` replaced it; `ahub memory` can still import from it ([memory](memory.md)).
|
|
7
|
+
- [GSD](https://github.com/gsd-build/get-shit-done): a phased workflow for coding agents. Its acceptance-criteria checklist remains in the review's Compliance pass ([analysis](gsd-collaboration-analysis.md)).
|
package/docs/memory.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Hub memory integration
|
|
2
2
|
|
|
3
|
-
Agent-hub consumes the
|
|
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
5
|
## Portable core and data directory
|
|
6
6
|
|
|
@@ -214,7 +214,7 @@ Write screening examines both the JSON representation and literal structured key
|
|
|
214
214
|
|
|
215
215
|
## Agent-authored records (#1320)
|
|
216
216
|
|
|
217
|
-
Managed headless Codex, Kimi, Qwen, Jcode, Pi and local turns receive the package-owned Record instruction once per owned turn. Claude sessions keep their own amem hook path; isolated reviewers and person-owned TUI prompts receive no new instruction. The public `recordsEnabled` accessor from
|
|
217
|
+
Managed headless Codex, Kimi, Qwen, Jcode, Pi and local turns receive the package-owned Record instruction once per owned turn. Claude sessions keep their own amem hook path; isolated reviewers and person-owned TUI prompts receive no new instruction. The public `recordsEnabled` accessor from agent-mem 0.32.1 applies the effective machine/repository `records: false` setting to instruction, capture and Record preference. An unavailable policy disables this optional path.
|
|
218
218
|
|
|
219
219
|
The hub imports the instruction and parser from agent-mem. Valid final-answer records become `Record` capture rows with project and peer attribution, not curated notes or approved evidence. Complete text and anchors clear current secret, PII, private-path and deny policy before storage. Private, PII, review-scoped, remote, unbound and incomplete turns are excluded. Owner, turn, session, profile and policy must remain current; unsafe steering excludes the rest of that turn. No model or network call is added.
|
|
220
220
|
|
|
@@ -290,11 +290,11 @@ An unchanged failure emits one safe log line per episode. A complete bounded pol
|
|
|
290
290
|
|
|
291
291
|
`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.
|
|
292
292
|
|
|
293
|
-
The
|
|
293
|
+
The declared agent-mem floor (0.33.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.
|
|
294
294
|
|
|
295
295
|
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.
|
|
296
296
|
|
|
297
|
-
Legacy stores without active per-row placement still refuse a sync containing declined rows. The native amem CLI has person-only activation from 0.22.0 ([activation documentation](https://github.com/STAIxBWLB/agent-mem/blob/v0.24.0/README.md#initial-sync-placement-activation)). A person using a CLI upgraded with the hub's
|
|
297
|
+
Legacy stores without active per-row placement still refuse a sync containing declined rows. The native amem CLI has person-only activation from 0.22.0 ([activation documentation](https://github.com/STAIxBWLB/agent-mem/blob/v0.24.0/README.md#initial-sync-placement-activation)). A person using a CLI upgraded with the hub's declared floor (0.32.1; a 0.22.1 install sharing the home drops Record entries, see [Agent-authored records](#agent-authored-records-1320)) can preview it with every local writer installation declared, including the CLI and hub library installs:
|
|
298
298
|
|
|
299
299
|
```sh
|
|
300
300
|
amem migrate --sync-placement --dry-run --writer-root '<cli-install-root>' --writer-root '<host-amem-install-root>' --json
|