@staix/agent-hub 0.42.0 → 0.43.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +2 -1
  3. package/docs/adding-an-ai-tool.md +2 -0
  4. package/docs/agent-notes/tasks.md +1 -1
  5. package/docs/agent-notes/tests.md +1 -1
  6. package/docs/design/adapters.md +3 -0
  7. package/docs/design/bus.md +2 -0
  8. package/docs/design/task-board.md +6 -0
  9. package/docs/dogfood.md +5 -1
  10. package/docs/memory.md +5 -3
  11. package/docs/operations.md +64 -4
  12. package/docs/quickstart.md +12 -2
  13. package/docs/sdlc.md +1 -1
  14. package/docs/security.md +1 -1
  15. package/docs/verification/2026-11-18-0.43.0.md +56 -0
  16. package/docs/verified.json +23 -23
  17. package/package.json +2 -2
  18. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  19. package/plugins/agent-hub/kimi-hook.js +307 -117
  20. package/plugins/agent-hub/server.js +307 -117
  21. package/src/adapters/claude-implementer.ts +11 -1
  22. package/src/adapters/claude-print-child.ts +4 -1
  23. package/src/adapters/conformance/fakes/acp-server.ts +2 -1
  24. package/src/adapters/conformance/fakes/app-server.ts +1 -1
  25. package/src/adapters/local-worker.ts +7 -3
  26. package/src/adapters/reviewer-print.ts +3 -1
  27. package/src/cli/help.ts +3 -3
  28. package/src/cli/identity.ts +2 -0
  29. package/src/cli/main.ts +56 -4
  30. package/src/cli/upgrade-output.ts +43 -2
  31. package/src/cli/upgrade-stopped.ts +162 -0
  32. package/src/cli/upgrade-wait.ts +37 -0
  33. package/src/hub/board.ts +4 -2
  34. package/src/hub/config-apply.ts +1 -0
  35. package/src/hub/daemon.ts +75 -13
  36. package/src/hub/envelope.ts +1 -0
  37. package/src/hub/handoff.ts +14 -0
  38. package/src/hub/questions.ts +7 -0
  39. package/src/hub/recovery-store.ts +39 -0
  40. package/src/hub/research-record.ts +2 -1
  41. package/src/hub/runtime-capture-prune.ts +114 -3
  42. package/src/hub/runtime-prune-health.ts +6 -2
  43. package/src/hub/sdlc-metrics.ts +2 -2
  44. package/src/hub/settings.ts +2 -0
  45. package/src/hub/task-sweep.ts +6 -2
  46. package/src/hub/tasks.ts +8 -3
  47. package/src/hub/turn-attribution.ts +46 -0
  48. package/templates/AGENTS.block.md +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,27 @@ Issue and pull request numbers in the entries for 0.7.7 and earlier refer to the
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 0.43.0
8
+
9
+ - Release N-1 for 0.43.x is published 0.42.0, with exact agent-mem 0.28.0 and control protocol 17 (descriptor floor 16). The N-1 fixture and matrix pin that package; the separate protocol-16 fixture stays at 0.25.0. The isolated fixture exercises old client and plugin against the new daemon and the new client and plugin against the old daemon. It does not establish live-agent, rollback or shared-home compatibility. The wire and the MCP tool set are unchanged from 0.42.0. The CLI adds `ahub upgrade --all-stopped`, lets `ahub upgrade --to <v>` retarget a stopped project, and makes `memory.sync_interval_min` settable with `ahub settings set`; a 0.42.0 CLI does not offer these. Task history gains an optional `requestHead` on `done` entries, which 0.42.0 ignores. This release pins agent-mem 0.29.0 while 0.42.0 pins 0.28.0; agent-mem 0.29.0 raises no sync/home format floor and builds its derived index as a separate version-5 file while 0.28.0 keeps its version-4 file, so both can share a memory home; file compatibility beyond these fixtures remains subject to the release verification report.
10
+ - The hub exact-pins `@staix/agent-mem` 0.29.0 (from 0.28.0). A placement sync now yields the event loop between source collection, policy evaluation, journal appends and history work (agent-mem#462), so a hub memory sync no longer holds the daemon for minutes; the package's own 583 MB fixture still saw a 2.58 s maximum gap, and that remaining bound stays open there. Under an active sync placement one sync covers every realm in the activated inventory, as sequential publications of at most two realms. Each memory profile rebuilds its derived index once on first open (index version 5; 0.28.x keeps its own version-4 file), so the first memory call after the upgrade can take longer on a large home. Sync wire, remote refs, journal and work-log formats are unchanged and no format floor is raised. Package, lockfile integrity, the pin sentences in the docs and the plugin bundles move together.
11
+
12
+ - Cross-project handoff catch-up treats a target whose control descriptor is missing, or whose process is proven gone, as stopped: it no longer connects to it and logs the stopped state once per state change instead of a timed-out probe on every pass (hub task 995, Refs #1550). A target that starts is still caught up at once; unknown liveness is not treated as stopped.
13
+
14
+ - The idle-owner sweep pauses while the task's current owner has an open `hub_ask` question set on that task, and restarts from the latest settlement once all such sets are answered (hub task 994, Refs #1550).
15
+
16
+ - Record the requested review commit independently of cost plans and recover it from older bound spec reports for SDLC metrics (Refs #1555).
17
+
18
+ - The delivery instruction tells peers to end with exactly `[FYI]` when nothing needs their answer, and to start progress notes with `[FYI]` (hub task 997, Refs #1550). Marker-only finals send no message.
19
+
20
+ - Runtime pruning is no longer deferred for good once a machine has more than 128 recovery receipts (hub task 990, #1541). Each maintenance pass now keeps every open receipt, the newest 32 finished ones and up to 64 more finished ones naming a runtime a project or the live manager still selects, and removes older finished receipts with their `.runner.db` under the exclusive runner claim (no check-then-unlink; none while a recovery hold exists). The 128 bound stays as a safety ceiling, and its refusal names the open operation and `ahub recovery status|resume|abort`; `ahub doctor` and `docs/operations.md` state the same rule. Capture retention is unchanged.
21
+
22
+ - `memory.sync_interval_min` can be set by the person with `ahub settings set` and takes effect without a hub restart (hub task 992, Refs #1543). Turning it off lets an in-flight pass finish.
23
+
24
+ - `ahub upgrade` retargets the runtime of a stopped project without starting its hub, one project or all of them (hub task 991, #1540). `ahub upgrade --to <v>` in a stopped project, or `ahub upgrade --all-stopped --to <v>`, rewrites `runtime.json` through the verified startup write after staging the package once; it starts no daemon, touches no terminal or peer and records no recovery operation. Unknown, unavailable, uninitialized, missing, snapshot-held, recovery-held or Git-tracked projects are refused with a next step, and a hub that starts before the write is refused. Under `--yes` the plan no longer ends with "Nothing was changed", and `ahub upgrade --yes` on a running hub waits through a pipe until its recovery operation ends and exits nonzero unless it completed.
25
+
26
+ - Per-turn Claude print children and local/Pi sandbox tools receive optional host-derived task and trigger hints through the `AGENTHUB_` environment. Research attempt IDs are set only when the host has a matching `ra-<12 hex>` identity; no dispatch-to-attempt link is inferred. Reserved hints override inherited configuration, private task IDs are withheld from cloud children, and the hints grant no authority. Refs #1516.
27
+
7
28
  ## 0.42.0
8
29
 
9
30
  - Release N-1 for 0.42.x is published 0.41.0, with exact agent-mem 0.27.1 and control protocol 17 (descriptor floor 16). The N-1 fixture and matrix pin that package; the separate protocol-16 fixture stays at 0.25.0. The isolated fixture exercises old client and plugin against the new daemon and the new client and plugin against the old daemon. It does not establish live-agent, rollback or shared-home compatibility. The wire is unchanged from 0.41.0. This release pins agent-mem 0.28.0 while 0.41.0 pins 0.27.1; agent-mem 0.28.0 raises no sync/home format floor, so both can share a memory home until a person raises it, and file compatibility beyond these fixtures remains subject to the release verification report.
package/README.md CHANGED
@@ -5,7 +5,7 @@ Code, Codex, Kimi Code, Pi and a hub-owned local worker (plus Qwen Code, Jcode a
5
5
  Antigravity if you want them) share a message bus, a task board and a memory, each
6
6
  connected through its own native interface.
7
7
 
8
- Status: 0.42.0, control protocol 17 (accepts 16). Bun + TypeScript, one loopback daemon per
8
+ Status: 0.43.0, control protocol 17 (accepts 16). Bun + TypeScript, one loopback daemon per
9
9
  project. Site: [agent-hub.staix.net](https://agent-hub.staix.net).
10
10
 
11
11
  Inspect bounded task and attempt metadata with `ahub lineage show`; admit external
@@ -226,6 +226,7 @@ Live checks that still need a real account or a person are listed in the
226
226
 
227
227
  Coding agents that work on this repository follow [`AGENTS.md`](AGENTS.md) and
228
228
  [`docs/agent-notes/`](docs/agent-notes/).
229
+ The managed agent guidance explains the marker-only no-reply path for a delivery that needs no answer (#1550).
229
230
 
230
231
  ## Origin
231
232
 
@@ -56,6 +56,8 @@ Defines how the agent process is started and commanded:
56
56
  * `conductorStartable`: Boolean indicating if `ahub up` or conductor can spawn this peer automatically. The conductor's start refusal and the `hub_peer_start` description name these kinds from this flag and `optional` (`conductorStartText`, `src/adapters/registry.ts`), so a new kind needs no text edit.
57
57
  * `ownedFlags`: CLI flags owned by this tool's launcher.
58
58
 
59
+ For a host-owned per-turn child, the hub reserves `AGENTHUB_TASK_ID`, `AGENTHUB_ATTEMPT_ID` and `AGENTHUB_TRIGGER` after any configured environment is merged. These are optional attribution hints, not authority; a definition must not supply or rely on them for authorization. `AGENTHUB_PEER_ID` remains the single peer marker. Long-lived sessions do not receive per-turn values.
60
+
59
61
  #### `identity`
60
62
  Defines how the hub MCP server identity reaches the tool:
61
63
  * `"acp-session"`: Sent in `session/new` `mcpServers` parameter.
@@ -69,7 +69,7 @@ Scope: the task flow, assignment, the state machine and the hub's MCP tools. Rea
69
69
  - The kinds a conductor may start are named only through `conductorStartText()` (`src/adapters/registry.ts`, from `start.conductorStartable` and `optional`): the `hub_peer_start` description and the `conductorStart` refusal read it, and a TUI start previews any such kind (#1408 R5). Never write a fixed peer list there.
70
70
  - `hub_set_title` (`SESSION_TITLE_TOOL`, #1055) is in `TASK_TOOL_NAMES` but never in `TASK_TOOLS`; its publication rule is in `adapters.md`, and its `taskOpBody` case accepts only `title`.
71
71
  - Plan sources (#1144): `propose`, `acceptReviewed`, `accept` and `splitBacklog` (every part's cleaned plan, planner split and the hub's intake split alike, #1161) call `validatePlanSources` on the plan they will keep (the new one, else the stored one) before any board write or notice; an id the source registry (`TasksDeps.intake.sourceKnown`) does not know is a `PreEffectToolRefusal` naming `ahub source list`. A new path that admits a plan calls it too.
72
- - SDLC metrics and bands (#481 S7): `sdlc-metrics.ts` is pure (history in, numbers out, no clock, no I/O); every metric a task cannot derive is `null`/`unknown`, never 0, and a private task is only counted as withheld. Stale-head re-reviews need both heads on a round (`reviewCost.head` on the done, `reviewFindings.head` on the verdict): never derive them from event order. `Tasks.sdlcMetrics` is the one read (planner or person, refused during a private turn) and `Tasks.proposeFromBands` the one writer. It is held like every host writer (`sweepHeld`, `bus.isRecoveryHeld`, `bus.storageError`), keys a breach by its episode (`BandResult.episode`, derived from history so a restart finds the same key), writes nothing while the metric has an open band card, and records a log notice in `band_notices` so it is announced once. Card text is fixed words, numbers and task ids, screened through `signalsFor` and `candidateTextAllowed` like the recurring-finding card; never put task titles, notes or PR text in it, and never open a GitHub issue. Drift honours `min_delta` like every tier. `[bands]` is validated by `bandsConfig` with field-level paths; do not add a tier or a metric without a test that fires it. Merge-time figures (#442) come from `MergeRecord.cost`, written once by `guardedMerge` after it observes the merge (`mergeCostFrom`, `cleanMergeCost` in `cost-governance.ts`): re-validate a stored record with `cleanMergeCost` before use, never let that read touch the merge result, and keep a missing or partial read `null`, never 0. `hotfix_rate` and `security_open_alerts` are external series (`EXTERNAL_METRICS`, `Tasks.externalSeries`) whose points are releases and scans, so a card names its `subject`; a legacy release with no train history is left out of the series, never a 0. The security scan (`security-baseline.ts`, `Tasks.runSecurityScan`) reads GitHub's own open-alert counts, runs no scanner, schedules nothing without `[security_scan]`, is held like every host writer, re-judges its schedule after the awaited read and records counts only; a source it cannot read is an unknown total, never zero.
72
+ - SDLC metrics and bands (#481 S7): `sdlc-metrics.ts` is pure (history in, numbers out, no clock, no I/O); every metric a task cannot derive is `null`/`unknown`, never 0, and a private task is only counted as withheld. Stale-head re-reviews need both heads on a round (`requestHead` on the done, falling back to `reviewCost.head` or the bound spec-report head on older entries, #1555; `reviewFindings.head` on the verdict): never derive them from event order. `Tasks.sdlcMetrics` is the one read (planner or person, refused during a private turn) and `Tasks.proposeFromBands` the one writer. It is held like every host writer (`sweepHeld`, `bus.isRecoveryHeld`, `bus.storageError`), keys a breach by its episode (`BandResult.episode`, derived from history so a restart finds the same key), writes nothing while the metric has an open band card, and records a log notice in `band_notices` so it is announced once. Card text is fixed words, numbers and task ids, screened through `signalsFor` and `candidateTextAllowed` like the recurring-finding card; never put task titles, notes or PR text in it, and never open a GitHub issue. Drift honours `min_delta` like every tier. `[bands]` is validated by `bandsConfig` with field-level paths; do not add a tier or a metric without a test that fires it. Merge-time figures (#442) come from `MergeRecord.cost`, written once by `guardedMerge` after it observes the merge (`mergeCostFrom`, `cleanMergeCost` in `cost-governance.ts`): re-validate a stored record with `cleanMergeCost` before use, never let that read touch the merge result, and keep a missing or partial read `null`, never 0. `hotfix_rate` and `security_open_alerts` are external series (`EXTERNAL_METRICS`, `Tasks.externalSeries`) whose points are releases and scans, so a card names its `subject`; a legacy release with no train history is left out of the series, never a 0. The security scan (`security-baseline.ts`, `Tasks.runSecurityScan`) reads GitHub's own open-alert counts, runs no scanner, schedules nothing without `[security_scan]`, is held like every host writer, re-judges its schedule after the awaited read and records counts only; a source it cannot read is an unknown total, never zero.
73
73
  - Admit a declared extra (a person-started `ahub claude --as` instance and a headless Claude implementer included, #742, #747) as owner of any class whose owner role is implementer (`ownerRoleOfClass`) only with the current implementer role and `ownerIsolation[id] === true`, the daemon's proof that the live adapter generation started in `executionRoots[id]` outside the canonical cwd. Never derive it from the declaration's `worktree`, its roles or a reload. Only the status path passes a display `ownerIsolation` projection (`stalled(projection)`); every admission and effect caller uses fresh `TasksDeps.ownerIsolation`.
74
74
 
75
75
  - Lifecycle identity (#694): the hub links `sdlc.repo`/`issue` only through `Tasks.linkIssue` (the one issue `planIssueIdentity` resolves) at propose and accept (`linkOnWrite`, #723: a local parse, never a read, never a refusal, advise and enforce only), plan review, done and the groom backfill (`backfillIssueLinks`: first in `groomingDigest`, 32 links and 1 s per call, before the slow metadata reads), and stages a done's PR through `Tasks.identityLink`/`withLink` (the link carries the repository and the commit or branch it was read for, and is dropped when the done's effective repository or head changed during the read; the issue is re-resolved at apply time; `reviewRequestAdmission` compares the board copy through the same `stage` projection) (`openPrFor`: the one open PR whose head is the done's full commit, or with no commit its branch; a full 100-row page or a malformed row is unknown). Persist a done's link only in the admitted done update or `done (checking)`, never before a gate that can still throw `PreEffectToolRefusal` (#254); reapply it after every re-read in `complete()`. Write a first link with `linkedReceipt`, never `sdlcReceipt` (its relink rule would drop red-first and local-gate records); never relink an existing or foreign identity, never parse agent text for a PR, skip PII tasks before any read, and run the groom backfill after its authority checks with its own bound.
@@ -64,4 +64,4 @@ Scope: tests, fakes and the test gate. Read before adding or changing a test or
64
64
  - A test of `scripts/release-prepare.ts` or `scripts/release-tag.ts` runs the script with its root in a scratch repository whose only remote is a local bare directory: set `AHUB_RELEASE_ROOT` to it, or copy the script into it as `test/release-tag-daemon.test.ts` does. Without that the script takes its root from its own location and fetches and runs `ls-remote` against this checkout's real origin. Consent comes from a fake port, a stand-in `AHUB_CLI` or a scratch daemon, never the person's hub.
65
65
  - Production `MemoryClient` (`src/memory/client.ts`) is the in-process amem store and never opens `memory.worker_url` (#752). A test that needs the legacy worker shape injects `FakeMemoryClient` (`test/fakes/mem-worker.ts`) as `DaemonOptions.memoryClient` or in place of the client; never add an HTTP path to the production client for a test. An amem-backed test sets its own temp `AMEM_HOME` and reads only its own fixture memory directory.
66
66
  - CLI print guards (#814, `test/cli-json-guard.test.ts`): two scans over every file in `src/cli`. One finds `console.log(JSON.stringify(...))` and passes only behind a `--json` branch (`selectsJson`) or a named `DATA_FORMAT` entry (`NOT_YET_CONVERTED` is empty since #899; keep it empty). The other finds a print of a hub tool's text (`console.log(await taskOp(<op>))`, or a variable bound from one) and passes only behind `--json`, for a named `SENTENCE_OPS` op (checked against the daemon's case), or named debt (`TEXT_DEBT`, `CONDUCTOR_DEBT`, `REFUSAL_FALLBACK`). A list entry with no matching site fails, so the lists only shrink. Add a command's `--json` branch or renderer; never add a list entry to make a new print pass. Per-command output tests (`test/task-output.test.ts`, `test/sdlc-output.test.ts`) run the real CLI against a fake control server and assert default not JSON, `--json` byte equality, 80 and 200 columns and `--color=never`.
67
- - Hard-coded values inventory (#719, #1180, `scripts/inventory-hardcoded-values.ts --check`, a once-only step of `scripts/check.sh`): a constant or inline literal you add to `src/` or `scripts/` is an inventory entry, and the gate fails until it is classified in `scripts/inventory-hardcoded-values.classifications.json` (`operational`, `safety floor`, `contract` or `test seam`, by the reasons of `docs/verification/2026-10-30-operational-settings-closure.md`). Never add a key to `scripts/inventory-hardcoded-values.baseline.json`: it is the list of keys that were unclassified when the check began and it only shrinks. Classify a baseline key by adding it to the classifications file and deleting it from the baseline in the same commit; the check refuses either half alone. For `src/hub` bounds and truncations, apply the committed conventions and rulings in `docs/verification/2026-11-05-hardcoded-values-classification-rules.md` (#739/#741). Before each batch, run a fresh blind sample of 80 already-decided entries and proceed only at 85% agreement or more. Outside that settled slice, a baseline key needs a calibrated mechanical rule that the committed file agrees with on at least 94% of its decided keys; leave an undecided shape in the baseline pending a ruling, never guess its label. Do not classify keys in bulk from reading the code: a blind pass agreed with the committed file on 58% of a sample, because the file counts hub-internal caps, injected `opts.x ?? N` defaults and script deadlines as operational (`docs/verification/2026-11-05-hardcoded-values-ratchet.md`). A line moved inside a file changes no key; a changed value or name does.
67
+ - Hard-coded values inventory (#719, #1180, `scripts/inventory-hardcoded-values.ts --check`, a once-only step of `scripts/check.sh`): a constant or inline literal you add to `src/` or `scripts/` is an inventory entry, and the gate fails until it is classified in `scripts/inventory-hardcoded-values.classifications.json` (`operational`, `safety floor`, `contract` or `test seam`, by the reasons of `docs/verification/2026-10-30-operational-settings-closure.md`). Never add a key to `scripts/inventory-hardcoded-values.baseline.json`: it is the list of keys that were unclassified when the check began and it only shrinks. Classify a baseline key by adding it to the classifications file and deleting it from the baseline in the same commit; the check refuses either half alone. For `src/hub` bounds and truncations, apply the committed conventions and rulings in `docs/verification/2026-11-05-hardcoded-values-classification-rules.md` (#739/#741). Before each batch, run a fresh blind sample of 80 already-decided entries and proceed only at 85% agreement or more. Outside that settled slice, a baseline key needs a calibrated mechanical rule that the committed file agrees with on at least 94% of its decided keys; leave an undecided shape in the baseline pending a ruling, never guess its label. Do not classify keys in bulk from reading the code: a blind pass agreed with the committed file on 58% of a sample, because the file counts hub-internal caps, injected `opts.x ?? N` defaults and script deadlines as operational (`docs/verification/2026-11-05-hardcoded-values-ratchet.md`). A line moved inside a file changes no key; a changed value or name does. After adding keys to the classifications file, keep it sorted by key in codepoint order (a key appended at the end breaks `test/inventory-hardcoded-values.test.ts`, which `--check` does not catch) and run that test. Seen on hub task 992 (PR #1544) and hub task 991 (PR #1548), 2026-11-17.
@@ -11,6 +11,7 @@ paths:
11
11
  - src/hub/permission-mode.ts
12
12
  - src/hub/tool-refusal.ts
13
13
  - src/hub/child-process.ts
14
+ - src/hub/turn-attribution.ts
14
15
  - src/hub/lifecycle.ts
15
16
  - src/hub/start-mode.ts
16
17
  - src/hub/terminal-open.ts
@@ -185,6 +186,8 @@ Permission modes control whether native actions prompt; they do not widen a sand
185
186
 
186
187
  When the hub starts a child, the host constructs its environment, binds its launch and generation, and owns its process-group lifecycle. Stop and recovery require current evidence for the process actually started; a PID, adapter label, successful start call, or stale session record is not enough. This keeps teardown from signaling a person's unrelated process and prevents a late native callback from acquiring a replaced session's authority ([#115](https://github.com/STAIxBWLB/agent-hub/issues/115), [#625](https://github.com/STAIxBWLB/agent-hub/issues/625)).
187
188
 
189
+ Per-turn print children and local/Pi sandbox tools may receive the host's task ID and trigger as environment hints (#1516). A research attempt ID is set only when the host knows the `ra-<12 hex>` identity for that turn; dispatch currently has no persisted attempt link. Missing, invalid, ambiguous or private cloud task context leaves the corresponding value unset. The host removes inherited or configured values before setting its own. These hints confer no identity or authority, and long-lived session environments do not gain per-turn values.
190
+
188
191
  Fresh Kimi reviews keep the complete synchronous isolation fence before spawn and
189
192
  at verdict/task-MCP authority boundaries. Periodic full checks use one review-owned
190
193
  worker with expected paths and fingerprints, no serialized task text or inherited
@@ -329,4 +329,6 @@ privacy and invocation authorization checks still decide whether a send is allow
329
329
 
330
330
  The final-answer boundary strips agent-authored `amem:` lines before invocation answer handling, ordinary publication, journaled/shared bodies, digest rendering or console envelope taps. Explicit send tools keep their existing path. Original priority and audience/hop/receipt rules are retained. Stripping runs even when optional capture is disabled or fails. Final dispatch traverses the current `onMessage` observer chain exactly once. A peer/body/options-scoped host marker identifies the final-only raw capture path, is consumed before nested messages and is restored or cleared on exit; no final marker is accepted from a wire envelope. Stale replaced owners cannot route or capture a final answer.
331
331
 
332
+ The standing delivery instruction tells a peer to end with exactly `[FYI]` when nothing needs its answer and to start progress notes with `[FYI]` (#1550 AC4). A marker-only final has an empty body after parsing, so it sends nothing. The bus does not classify or demote other final answers.
333
+
332
334
  The raw-final capture observer is host-only and limited to a complete, currently owned public turn. Private inputs or outputs, review/observer holds, remote inputs/audiences, invocation answers and unknown parents cannot reach it. Count-only observers cannot change routing. The memory owner applies current policy before storage or selection; captured Record rows remain uncurated reference data. A bounded, ephemeral saved-ID/raw-anchor registry can prove display substitution for generated notes, with no persistence or inference from titles or prose. Restart and eviction preserve unproved old content.
@@ -103,6 +103,8 @@ no-write detection. Ordinary shared tools and the local worker can publish where
103
103
  their role permits; isolated fresh-reviewer MCP keeps its exact two-tool contract.
104
104
 
105
105
 
106
+ A commit-bound done records the requested review head independent of its cost plan. Historical metrics and research records fall back to the recorded cost head or bound spec-report head on done entries; missing evidence stays unknown (#1555 AC1).
107
+
106
108
  `Tasks` mediates task proposals, planning, owner/reviewer changes, acceptance, completion and review. `Board` persists the rows, history and typed evidence in SQLite; transport, CLI and UI layers do not independently apply task transitions. The issue remains the change spec and GitHub remains authority for PR/check/tag facts. Separating these authorities prevents a chat claim or adapter callback from bypassing task policy ([#481](https://github.com/STAIxBWLB/agent-hub/issues/481)).
107
109
 
108
110
  A command is authorized against the current actor, role, task state and revision. An asynchronous operation can lose authority while preparing evidence, so write boundaries recheck current scope. Console actions bind the selected task ID and its observed flow revision, rather than an unstable list position. The reason is to keep an approved action attached to the row and state the person actually saw ([#424](https://github.com/STAIxBWLB/agent-hub/issues/424), [#525](https://github.com/STAIxBWLB/agent-hub/issues/525)).
@@ -111,12 +113,16 @@ Owner, reviewer and planner are distinct responsibilities. A reservation or offe
111
113
 
112
114
  ## Selection and admission
113
115
 
116
+ Cross-project handoff catch-up treats a missing control descriptor or a descriptor whose process identity is proven gone as stopped (#1550 AC2). It does not connect to that target, and reports the stopped state once until the target changes state or the observing daemon restarts. Unknown liveness is not proof of a stop. Descriptor changes still trigger catch-up when a target starts; live handoff delivery keeps its own path.
117
+
114
118
  `routing.ts` selects candidates as a pure function over declared policy and current facts. `Tasks` applies admission and writes through the same selection rules used by route explanation. Roster, roles, privacy, availability, capability evidence and WIP remain explicit inputs, which prevents explanations and actual offers from becoming separate policies ([#525](https://github.com/STAIxBWLB/agent-hub/issues/525), [#418](https://github.com/STAIxBWLB/agent-hub/issues/418)).
115
119
 
116
120
  Automatic offer and backlog paths respect `plannedStart`; a future card becomes eligible at its boundary through existing sweep/release passes. Explicit person/planner authority is separate. This avoids offering scheduled work early without taking away deliberate manual control ([#1076](https://github.com/STAIxBWLB/agent-hub/issues/1076)).
117
121
 
118
122
  A bounded wait (#1454) is the owner's way to say an `in_progress` task is legitimately idle until a dated event. It is a `wait recorded` history entry carrying `wait: {until, owner}` and the public reason as its note, written through `Tasks.wait` only (owner, the task's planner or the person; `until` in the future and at most 14 days ahead; the reason screened like any note). It is quiet (`QUIET_EVENTS`), so it moves nothing. `taskWait` (`src/hub/task-sweep.ts`) is the only reader: the wait is in force while the latest `wait recorded` entry names the current owner and no later entry is state-changing, so done, decline, return, reassignment and cancel end it with no extra write. `nextSweep` skips `idle-owner` while `now < until` and measures the ladder from `max(last activity, until)` afterwards; the other three kinds never read it. A wait past its `until` is listed by the planner groom view (`wait-passed`).
119
123
 
124
+ An open question set asked by the current owner on that task also suspends only `idle-owner` (#1550 AC1). Once all such sets have settled, its ladder starts again from their latest settlement, ignoring earlier idle steps. The sweep reads only the task, asker and timing, not question text. After the question desk prunes the settled row at seven days, the ladder falls back to its own retained history; an idle threshold above seven days is unsupported.
125
+
120
126
  Urgent acceptance can reclaim only enough unaccepted, unstarted, non-pinned and non-urgent offers to fit the limit. It does so after other admission checks and immediately before the accept write; if insufficient, it reclaims none. Accepted work is never displaced merely to satisfy a new urgent request, because an offer and an active commitment have different costs ([#1080](https://github.com/STAIxBWLB/agent-hub/issues/1080)).
121
127
 
122
128
  Untouched returns may atomically update `reserved` while moving eligible proposed or accepted work back to Backlog. `Tasks` retains the existing authority, execution-evidence, pin, release and reservation gates, including post-screen rechecks. An explicit reservation patch advances planning revision and records its prior value in the same state/history write, before capacity publication can trigger auto-pull. Clearing it therefore parks the card; omitting fields preserves its planning. Assignment and auto-pull selection remain the existing rules, with no time-based suppression ([#1154](https://github.com/STAIxBWLB/agent-hub/issues/1154)).
package/docs/dogfood.md CHANGED
@@ -10,13 +10,15 @@ 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
+ | 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 |
13
14
  | 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 |
14
15
  | 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 |
15
16
  | 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 |
16
17
  | 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 |
17
18
  | 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 |
18
- | Cross-project task handoff with state follow-back (#604, `task_handoff`) | on after release and upgrade: `ahub task handoff` and `hub_task_handoff` register work for another registered project that runs agent-hub on this machine as an ownerless proposal on its board; the requesting peer is told each state change as a `kind: task` message. Nothing is queued, and the origin has no authority there | `ahub board --handoffs` lists what this project handed over with the last state each target reported; `ahub board` and `ahub task show` in the target name the origin project and peer; a handoff for a spec issue that already has an open task there is refused with the task ids unless `duplicate_ok` gives a reason, and the receiving conductor can cancel an unaccepted handoff (#1175; the share of refused handoffs and the cancels the person no longer has to run show whether duplicates still reach the board); a handoff the target did not confirm (a timeout, #1203 T1) is reported as `outcome_unknown` with a key and a retry with `--key` files it once, and a follow-back names the target's task (`refs.handoff`) so a local task of the same number cannot drop it (count `outcome_unknown` refusals, and any target task filed twice for one origin: there should be none; from T2 (#733) the origin also asks every 5 minutes and when a target restarts, so a missed notify arrives within a period: compare how long a handoff row stays behind its target (its `updated` against the target's state), and count `changes requested` and `reopened` messages, which used to be silent; from T3 (#734) `ahub task handoff --list` shows each handoff's age and whether its target is reachable, unreachable (with the cause) or moved, `--sync` asks the targets now, a wire-version refusal is `older_target` and an instance mismatch is `mismatch` instead of "not running", and a failed notify or catch-up logs one line per target and cause per 15 minutes: count the `handoff catch-up of ... failed` and `... skipped` lines in `hub.log` by cause, how often `--list` shows a target unreachable or moved for more than a day, and whether `--sync` is ever needed after a restart (it should not be: the catch-up reads the state within a period); T1 and T2 and T3 of #1203 are now all built; test/handoff-daemon.test.ts runs two real daemons (AC1 to AC5, #1175, the recovery label and #1203 T1 AC1 and AC4, T2 AC2, AC3 and AC5, T3 AC6 and AC7), test/handoff-core.test.ts and test/handoff-board.test.ts hold the pure core and the tables |
19
+ | Cross-project task handoff with state follow-back (#604, `task_handoff`) | on after release and upgrade: `ahub task handoff` and `hub_task_handoff` register work for another registered project that runs agent-hub on this machine as an ownerless proposal on its board; the requesting peer is told each state change as a `kind: task` message. Nothing is queued, and the origin has no authority there | `ahub board --handoffs` lists what this project handed over with the last state each target reported; `ahub board` and `ahub task show` in the target name the origin project and peer; a handoff for a spec issue that already has an open task there is refused with the task ids unless `duplicate_ok` gives a reason, and the receiving conductor can cancel an unaccepted handoff (#1175; the share of refused handoffs and the cancels the person no longer has to run show whether duplicates still reach the board); a handoff the target did not confirm (a timeout, #1203 T1) is reported as `outcome_unknown` with a key and a retry with `--key` files it once, and a follow-back names the target's task (`refs.handoff`) so a local task of the same number cannot drop it (count `outcome_unknown` refusals, and any target task filed twice for one origin: there should be none; from T2 (#733) the origin also asks every 5 minutes and when a target restarts, so a missed notify arrives within a period: compare how long a handoff row stays behind its target (its `updated` against the target's state), and count `changes requested` and `reopened` messages, which used to be silent; from T3 (#734) `ahub task handoff --list` shows each handoff's age and whether its target is reachable, unreachable (with the cause) or moved, `--sync` asks the targets now, a wire-version refusal is `older_target` and an instance mismatch is `mismatch` instead of "not running", and failed notifications or other catch-up failures log one line per target and cause per 15 minutes; a proven-stopped target logs once per state change (#1550 AC2): count the `handoff catch-up of ... failed` and `... skipped` lines in `hub.log` by cause, how often `--list` shows a target unreachable or moved for more than a day, and whether `--sync` is ever needed after a restart (it should not be: the catch-up reads the state within a period); T1 and T2 and T3 of #1203 are now all built; test/handoff-daemon.test.ts runs two real daemons (AC1 to AC5, #1175, the recovery label and #1203 T1 AC1 and AC4, T2 AC2, AC3 and AC5, T3 AC6 and AC7), test/handoff-core.test.ts and test/handoff-board.test.ts hold the pure core and the tables |
19
20
  | Staged project upgrades (#1039) | off: available for the person to upgrade projects independently; this development hub is not upgraded by a fixture | test/published-protocol-compat.test.ts uses both the published 0.25.0 protocol-floor and release N-1 (pinned in `PUBLISHED_FIXTURES`) clients/plugins and reverse daemons; test/staged-upgrade.test.ts checks independent holds and scoped effects; test/staged-runtime-daemon.test.ts checks a real release-root daemon after mutable install removal; test/board-schema-guard.test.ts checks named pre-effect refusal and WAL metadata; `test/project-runtime.test.ts` and `test/project-runtime-lifecycle.test.ts` cover updated resolver retention/refusal and real lifecycle/dashboard routing with synthetic captured daemons; `test/runtime-capture-prune.test.ts` covers references, bounded retention and publication races; `test/upgrade-stopped-project.test.ts` verifies no preservation for stopped projects. These fixtures do not prove published pre-0.26 CLI behavior |
21
+ | Stopped-project runtime retarget (#1540): `ahub upgrade [--all-stopped] --to <v>` | source and fixture coverage, active after release; this development hub is not upgraded by it, and a real `ahub up` of a retargeted project is not run here | `test/upgrade-stopped-retarget.test.ts`: dry-run rows (retarget, current, running, refused), the verified `runtime.json` rewrite with no daemon, terminal, peer or recovery operation, the start-between-plan-and-write refusals, one staging for the batch and a nonzero exit on a failed retarget; `--yes` waits through a pipe for the recovery operation (AC10) |
20
22
  | Approval head binding and re-review (#1047, #1121) | source/fixture coverage; the #1121 stale-head protections and actionable refusals await release and upgrade; live re-file verification not run | `test/review-head-binding.test.ts` covers both-head refusals, moved-PR commitless re-files and omitted-head stale approvals; `test/task-review-refile.test.ts` covers owner re-submit, reviewer withdrawal, legacy verdict heads, merged/cancelled refusals and held-screen races; `test/sdlc-queue.test.ts` and `test/sdlc-merge.test.ts` reject stale approval at queue and dispatch. `ahub task show <id> --json` exposes `approval.head`, `latestHead`, `mismatch` and `current`; verdict history retains `reviewedHead` |
21
23
  | Default agent set started by `ahub up` (#608, `start.agents`) | off here: this repository's agents are started by their own terminals; it is a machine-local setting and a committed config cannot turn it on. On for a person who runs `ahub setup` and `ahub up` on a project that lists agents. | each `ahub up` prints one line per agent (started, already attached, or the refusal with the manual command); the `peer_start` replies in `hub.log` and the terminal provider's recorded starts show whether a listed agent attached, and `ahub status` shows its state after |
22
24
  | `ahub down` (counterpart of `ahub up`) | on: an alias of `ahub kill` for stopping this project's hub | the person stops the hub with `ahub down` and `ahub status` then reports it stopped; test/identity.test.ts keeps it person-only (`console`) and labelled `down`, and test/help.test.ts holds its help entry |
@@ -75,6 +77,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
75
77
  | Model-free compat receipt harness (#1248 T1) | disposable-runner command after merge; local personal Mac refused, automation off pending T2, native candidate qualification unverified | fake-only pass/fail/model-not-run and leg/total deadlines, SRI-before-effects and archive refusal tests; JSON/Markdown artifacts, scoped owned stop and lifetime cleanup reported unproven; detached-helper and output-parent-swap regressions; promoted Kimi/Qwen native producers have fake protocol coverage; reconstructed Jcode has an actual 0.99.1 Linux control with four native legs passing and telemetry/context binding failing, without a qualification or trust change |
76
78
  | Automated compatibility receipts (#1248 T2) | after merge: daily watch and hosted isolated harness; manual dry mode is the default; no personal Mac candidate install or model/account leg | structured candidate/verified IDs, per-leg artifacts, validated read-only bundle preparation, zero-write dry plans, exact-row bot PRs and explicit check dispatch; failed/not-run rows stay visible and stale verified rows clear; no auto-merge |
77
79
  | Compat producer gaps (#1248 hub task 978) | the daily hosted run on macOS arm64, no account, key or model | pi has a committed producer: its nine legs pass on the published 1.5.2 (npm install, real CLI and SDK), with tests for each leg's failure; kimi-review's three native legs now pass on the verified 2.5.1 and on 2.6.2 (they failed on both: the CLI's startup update check hit the network and the empty-network assertion rightly refused it); a manifest test fails an `autoAdmit` id with no producer branch. The metric is the first `compat/<id>-<version>` PR opened by the workflow; kimi-review and qwen stay not-run on a human source-review leg by design |
80
+ | Live memory sync interval (#1543) | available after release and upgrade; person controls the interval | compare `ahub status` sync availability and the time of subsequent passes after changing the setting, with no restart |
78
81
  | Read-time memory code neighbours (#684 phase 4) | off until released; dashboard toggle is opt-in | derived call edges with current SHA; attached fail/decision brief coverage; explicit unknown/truncated results; unchanged authoritative memory log bytes |
79
82
  | Canonical memory symbol anchors (#684 phase 3) | off until released; optional `doctor --stale-anchors` report only | actual-symbol completion anchors versus plan guesses; symbol-related earlier notes at memory hop two; stale/unknown/truncated report counts; zero note mutations during inspection |
80
83
  | Symbol preparation and historical recall (#684 phase 3 follow-ups) | off until release | exists calls per no-reviewer completion; raw-signature fail recall; indexed-definition/unknown labels; unchanged note/candidate bytes and neutral cleanup failures |
@@ -181,6 +184,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
181
184
  | Pi/local read-only shell class (#816 T1) | source/fixture coverage; person setting and live Pi receipt (AC4) remain unverified | automatic read-only class versus approval requests, parser/allowlist/proof revalidation tests, unchanged Seatbelt/path-guard byte checks |
182
185
  | Pi bounded continuations, defaults, failure classes, task-move delivery and focused-check preparation (#1447 T1/T2/T3/T4/T5) | source/fake coverage only until release and upgrade; the person-run implement-task leg stays unverified | fake Pi ceiling continuations delivered, exhausted `step_limit` moves versus `inference_failed`, class-only private diagnostics, and `needs_review` for unsettled/concurrently cancelled tools; Pi default/repository max_steps 100, local 30, and fake-extension rejection at attempt 101/100; late important notices ahead of chat in the actual escalation prompt, durable/volatile receipt preservation and former-owner done/checkpoint refusals; host-busy/provider-prompt window remains open and unmeasured; reviewed-base/cache preparation, fixed failure guidance and offline fixture TypeScript; macOS network-disabled TypeScript fixture passed; localhost listeners moved to a follow-up, and the account-backed Pi leg remains unverified |
183
186
  | Pi and the local worker on DGX | off: DGX unreachable recently; Pi is off the roster | turns served on-prem, relay errors |
187
+ | Per-turn child attribution (#1516) | source and fake-child coverage; active after release and restart; native Pi and local sandbox legs require macOS | `test/turn-attribution.test.ts`, implementer and reviewer child fixtures, local sandbox context and Pi tool sandbox tests check IDs, triggers, private cloud withholding and inherited-value stripping; no model or account required |
184
188
  | Pi native version gate (#843 AC2) | source/fixture and isolated model-free 1.4.0 receipt; active after release and hub upgrade, Pi stays off this repository's roster | `ahub agents` pi verdict, one version probe on each real launch, rejected versions naming the exact trust command; account-backed inference remains unverified |
185
189
  | Local agent CLI drift notice (#843 AC3) | source/fixture and injected-probe daemon test; active on this repository after release and hub upgrade | one planner notice per (id, version), the `agent CLI drift` line in `ahub status`, no repeat after a hub restart |
186
190
  | PII routing | on | PII tasks and where they ran |
package/docs/memory.md CHANGED
@@ -91,6 +91,8 @@ A person configures the private remote with `ahub memory sync --remote <private-
91
91
 
92
92
  A running hub syncs 5 seconds after start and every `memory.sync_interval_min` minutes (default 10; 0 disables it) once a remote is set. Failure produces one log line and never blocks a turn; without a remote it does nothing and creates nothing. The package retains one sync per machine, public-GitHub-remote refusal and unknown-visibility warnings. Credential-helper use is restricted to the memory repository the hub creates, never a project's git repository, and never prompts. Transport, segment merge, lock and retained-history semantics belong to agent-mem.
93
93
 
94
+ The person can change the interval live with `ahub settings set memory.sync_interval_min 0` (or a whole number of minutes up to 1440). Turning it off stops future passes; a pass already running finishes. Enabling it schedules a first pass after 5 seconds.
95
+
94
96
  ## Reading it
95
97
 
96
98
  - **Task briefs**: when a task is handed to an owner, its brief lists hub memory first (entries one or two hops from
@@ -212,7 +214,7 @@ Write screening examines both the JSON representation and literal structured key
212
214
 
213
215
  ## Agent-authored records (#1320)
214
216
 
215
- 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 exact-pinned amem 0.28.0 applies the effective machine/repository `records: false` setting to instruction, capture and Record preference. An unavailable policy disables this optional path.
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 exact-pinned amem 0.29.0 applies the effective machine/repository `records: false` setting to instruction, capture and Record preference. An unavailable policy disables this optional path.
216
218
 
217
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.
218
220
 
@@ -288,11 +290,11 @@ An unchanged failure emits one safe log line per episode. A complete bounded pol
288
290
 
289
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.
290
292
 
291
- The exact-pinned agent-mem 0.28.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.
293
+ The exact-pinned agent-mem 0.29.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.
292
294
 
293
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.
294
296
 
295
- 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 pin (0.28.0; 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:
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 pin (0.29.0; 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:
296
298
 
297
299
  ```sh
298
300
  amem migrate --sync-placement --dry-run --writer-root '<cli-install-root>' --writer-root '<host-amem-install-root>' --json
@@ -2073,7 +2073,7 @@ ahub memory forget 1a2b3c4d # also promote, demote, supersede, rebu
2073
2073
 
2074
2074
  `"memory": { "native": false }` in `.agenthub/config.json` turns it off for a project.
2075
2075
 
2076
- The exact-pinned `@staix/agent-mem` 0.28.0 resolves `AMEM_HOME`, then `$AGENTHUB_HOME/memory`, then `~/.agenthub/memory`. An absent `M/profile.json` selects shared v1; an explicit generation selects `M/generations/G` with the package's readonly legacy bridge. All daemon memory consumers and the hub memory/goal CLI use that selected profile. Invalid metadata or a missing selected generation makes native memory unavailable while the bus and board continue; there is no fallback to legacy writes. Inspect the daemon's memory binding/availability before interpreting missing memory as an empty store.
2076
+ The exact-pinned `@staix/agent-mem` 0.29.0 resolves `AMEM_HOME`, then `$AGENTHUB_HOME/memory`, then `~/.agenthub/memory`. An absent `M/profile.json` selects shared v1; an explicit generation selects `M/generations/G` with the package's readonly legacy bridge. All daemon memory consumers and the hub memory/goal CLI use that selected profile. Invalid metadata or a missing selected generation makes native memory unavailable while the bus and board continue; there is no fallback to legacy writes. Inspect the daemon's memory binding/availability before interpreting missing memory as an empty store.
2077
2077
 
2078
2078
  The daemon checks its selector at hub operation entry and before candidate/counter writes. It does not hot-switch handles or provide an atomic fence against selection changes during an in-flight core call. Quiesce consumers and close their handles before migration or selection changes; reopen through the supported session-preserving lifecycle afterward. Candidate/counter storage remains `M/candidates.db`, independent of `G`; since agent-mem 0.7.0 `amem review` also lists and accepts candidates on a selected generation. Every running hub using this home needs an authenticated receipt: a matching ready binding, or a generation-capable unbound receipt (`disabled` when native memory is off, `unavailable` when opening failed) proving it holds no memory handle. An unbound daemon and zero running hubs are quiesced for memory; a stale bound handle, unreadable registry or unknown runtime is not ready. Existing JSON memory/goal results remain unchanged; the additive binding receipt belongs to daemon status, profile-check and the decay object. This source integration does not authorize installing a new runtime, migrating real memory, restarting sessions or claiming real-machine sync/capture receipts. Migration/deactivation and their limits belong to [agent-mem](https://github.com/STAIxBWLB/agent-mem); see [the hub profile contract](memory.md#selected-memory-profile).
2079
2079
 
@@ -4059,6 +4059,36 @@ upgrade targets use the same version directory, with the verified registry
4059
4059
  install kept separately in `registry/`. Recovery uses its authority receipt's
4060
4060
  exact target path and records that selection through the updated startup path.
4061
4061
 
4062
+ A project whose hub is stopped upgrades without starting it (#1540).
4063
+ `ahub upgrade --to <version>` in such a project, or `ahub --project <id> upgrade
4064
+ --to <version>`, shows `stopped: runtime selection only`, with no peers and
4065
+ nothing carried over. With `--yes` it stages and verifies the target once, then
4066
+ rewrites that project's `runtime.json` through the same verified write a startup
4067
+ uses, under the registry's runtime-capture lock. It starts no daemon, opens or
4068
+ closes no terminal, touches no peer and records no recovery operation. The next
4069
+ `ahub up` with a CLI at that version or later starts the new runtime; an older
4070
+ CLI refuses with `this project runs X`. A project that reads as anything but a
4071
+ positive `stopped` (unknown, unavailable, starting, stopping, incompatible) is
4072
+ never retargeted, and a hub that starts between planning and the write is refused
4073
+ and never written over: the write rechecks the registry claim, the control
4074
+ manifest, the recovery hold, the restart snapshot and the recorded selection
4075
+ under the lock. These refuse and name their next step: a stopped project that
4076
+ holds an unreleased or unreadable restart snapshot, a missing project, a root
4077
+ that is not initialized, an unreadable or Git-tracked `runtime.json`, and a
4078
+ project under a recovery hold. The retarget is the person's choice of which code
4079
+ runs next, so a conductor or a `--live-test` delegation is refused.
4080
+
4081
+ `ahub upgrade --all-stopped --to <version>` covers every registered project that
4082
+ reads as `stopped`. Each project is planned and applied on its own and the
4083
+ package is staged once. A dry run lists one row per registered project: `retarget`,
4084
+ `already at <version>` (also for a newer recorded version, never a downgrade),
4085
+ `skipped: running` with that project's own `ahub --project <id> upgrade` command,
4086
+ or `refused: <cause>` with its next step. `--yes` writes the `retarget` rows only
4087
+ and requires `--to <exact-version>`. The result lists each project's outcome and
4088
+ the exit code is nonzero when a planned retarget failed; the successful rewrites
4089
+ stay and the failed projects are named. `--all-stopped` with `--project` is
4090
+ refused as conflicting selectors.
4091
+
4062
4092
  This selector/refusal guarantee starts with 0.26.0. Published CLIs older than
4063
4093
  0.26.0 ignore the runtime record. After a scoped upgrade, invoke `ahub up` with a
4064
4094
  0.26.0-or-later CLI that is at least the selected project's version; keeping an
@@ -4085,6 +4115,23 @@ fenced. Worker completion uses the normal database wait bound, while startup
4085
4115
  admission keeps its 1 ms contention bound. `ahub doctor` names an uncertain or
4086
4116
  stuck ledger and leftover quarantine paths without changing either. Leftover
4087
4117
  containers remain available for inspection even after a dead worker is replaced.
4118
+ Recovery receipts (`<hub home>/recovery/<operation-id>.json` and its
4119
+ `.json.runner.db`) follow a retention rule the hub applies itself at the start
4120
+ of each maintenance pass (#1541): it keeps every receipt that is not terminal,
4121
+ the newest 32 `completed` or `cancelled` receipts, and up to 64 more finished
4122
+ receipts that name a runtime a registered project or the live manager still
4123
+ selects; it removes older finished receipts together with their runner database,
4124
+ under the same exclusive runner claim every recovery command takes, so a live or
4125
+ unidentifiable runner keeps its receipt. It does nothing while any recovery
4126
+ hold (`recovery.lock` or `recovery/project-locks.db`) exists, and it never
4127
+ removes a capture: captures are still retained by `runtime.json` and the
4128
+ newest-three rule. An interrupted pass leaves at most a runner database with no
4129
+ receipt, which the next pass removes. The inventory walk keeps 128 receipts as
4130
+ a safety ceiling. Open receipts are the only way to reach it, and the deferral
4131
+ then names the open operation and the commands to finish it
4132
+ (`ahub recovery status <id>`, then `ahub recovery resume <id>` or
4133
+ `ahub recovery abort <id>`), not the ledger. `ahub doctor` prints that text with
4134
+ the same retention rule. Nothing asks you to delete a receipt by hand.
4088
4135
  Startup still succeeds when maintenance defers. A damaged runtime
4089
4136
  record/capture requires inspection or restoration.
4090
4137
  Archiving the record deliberately resets first-use selection; archived copies
@@ -4368,6 +4415,17 @@ example `ahub recovery --color=never` or
4368
4415
  the raw document, without a human suffix. `upgrade --json` reviews a JSON plan;
4369
4416
  `--yes` is still needed to apply it without the interactive review.
4370
4417
 
4418
+ Under `--yes` the plan is printed without its closing "Nothing was changed"
4419
+ line, because the command goes on to apply it (#1540). For a running hub, when
4420
+ standard output is not a terminal, `ahub upgrade --yes` then waits until the
4421
+ recovery operation is completed, blocked or cancelled and exits nonzero unless it
4422
+ completed, so `ahub upgrade --to <v> --yes && ahub down` no longer races
4423
+ `recovery operation <id> is active`. A runner that never appears (10 s), ends
4424
+ with the receipt still open, or is still working after two hours is a failure
4425
+ that names `recovery status`. On a terminal it still returns as soon
4426
+ as the operation is scheduled, and `--json` prints the scheduled operation
4427
+ document as before.
4428
+
4371
4429
  The plan screen lists each project with its hub version and, per attached peer,
4372
4430
  its state, how it runs (`TUI` in a terminal the plan bound to its session,
4373
4431
  `headless` as the hub's own process, `own` for a session the hub did not
@@ -6412,6 +6470,8 @@ view (#935), available through `acon ui`. It sends through the existing plugin
6412
6470
 
6413
6471
  ## Additional headless peer instances
6414
6472
 
6473
+ Per-turn Claude print children and local/Pi sandbox commands may receive `AGENTHUB_TASK_ID` and `AGENTHUB_TRIGGER` (`assign`, `review`, `message`, `manual` or `schedule`) when the host has an unambiguous attribution. `AGENTHUB_ATTEMPT_ID` is reserved for a host-known research attempt (`ra-` plus 12 lowercase hex digits); the current dispatch has no persisted attempt link, so it is normally absent. A private task ID is omitted for cloud children. These are hints only, not authority; absent values are unset, inherited values cannot override them, and long-lived sessions retain their existing environment.
6474
+
6415
6475
  Declare extra instances only in an untracked `.agenthub/config.local.json`, then
6416
6476
  restart the hub. For example, a reviewer can use:
6417
6477
 
@@ -6657,7 +6717,7 @@ Native launcher connections retry transport timeouts/unclean closes with bounded
6657
6717
 
6658
6718
  ## amem runtime (agent-mem#13 P4)
6659
6719
 
6660
- The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.28.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.
6720
+ The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.29.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.
6661
6721
 
6662
6722
  ## Person-run backlog legs (#1176)
6663
6723
 
@@ -7301,11 +7361,11 @@ Corrupt or unreadable provenance stays unknown and held. The status next step di
7301
7361
 
7302
7362
  A ready memory profile does not prove a successful sync. Read the separate automatic-sync result and timestamp in `ahub status` or Memory. It resets to not run after daemon restart; it is not a machine-global record of manual CLI attempts. Missing remote configuration (shared v1, generation and sharded homes alike) is the neutral `not-configured` state; an interrupted/stopped attempt is neutral `stopped`. Both keep their safe next step and produce no failure log under `quietSyncError`.
7303
7363
 
7304
- For policy-declined rows, a person or an agent shell runs `ahub memory declined --json` to inspect IDs and safe rule categories, never note text. The pinned agent-mem 0.28.0 public `inspectSyncPolicy` API bounds physical outbound inspection for shared-v1 and generation profiles. A complete result supplies the declined IDs and rules; `complete:false` means the scan is unavailable, stale or over its diagnostic bound, not zero declined rows. The command stays read-only and rechecks its profile binding. No migration or policy edit is performed automatically.
7364
+ For policy-declined rows, a person or an agent shell runs `ahub memory declined --json` to inspect IDs and safe rule categories, never note text. The pinned agent-mem 0.29.0 public `inspectSyncPolicy` API bounds physical outbound inspection for shared-v1 and generation profiles. A complete result supplies the declined IDs and rules; `complete:false` means the scan is unavailable, stale or over its diagnostic bound, not zero declined rows. The command stays read-only and rechecks its profile binding. No migration or policy edit is performed automatically.
7305
7365
 
7306
7366
  The hub projects verified withheld/exported counts when a trusted SDK sync returns a successful placement result. That projection is covered by an injected-result fixture, not an activated-store sync. Agent-mem requires a fresh `placementAttestation` even for an already active v3 store; since 0.35.0 the daemon builds one with the package's own `createPlacementAttestation` on every sync pass and supplies no writer facts of its own, so no attestation is fabricated. A refused attestation is the closed cause `writer` in status, the dashboard and the log: its category, its 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`). Activation remains a person-run action. A nonzero withheld count in a successful result is not a transport failure and does not mean those rows were deleted, rewritten or published. Inspect the IDs and rules before deliberately changing any source or approved policy; a forget operation does not remove its original text from physical history.
7307
7367
 
7308
- A legacy store without active per-row placement still blocks a sync containing declined rows. Status names inactive placement and the person-only `amem migrate --sync-placement --dry-run` preview, which requires every local writer installation through repeatable `--writer-root` flags. It keeps `ahub memory declined` as the safe inspection step. The native CLI supports activation from 0.22.0; the pinned core is 0.28.0. See the [activation preview and prerequisites](memory.md#automatic-sync-health-1173) before any separately authorized apply. Preview writes nothing, and activation does not migrate layouts, change policy or automatically raise a format floor. The hub does not invoke it or fabricate its proof.
7368
+ A legacy store without active per-row placement still blocks a sync containing declined rows. Status names inactive placement and the person-only `amem migrate --sync-placement --dry-run` preview, which requires every local writer installation through repeatable `--writer-root` flags. It keeps `ahub memory declined` as the safe inspection step. The native CLI supports activation from 0.22.0; the pinned core is 0.29.0. See the [activation preview and prerequisites](memory.md#automatic-sync-health-1173) before any separately authorized apply. Preview writes nothing, and activation does not migrate layouts, change policy or automatically raise a format floor. The hub does not invoke it or fabricate its proof.
7309
7369
 
7310
7370
  The bounded diagnostic addresses #1173 AC4; AC5 has result projection and the host attestation. Whether an activated store syncs on a person's machine is not established by the isolated fixtures.
7311
7371
 
@@ -18,7 +18,7 @@ Or use the matching GitHub release:
18
18
 
19
19
  <!-- facts:install-tag -->
20
20
  ```bash
21
- bun add -g github:STAIxBWLB/agent-hub#v0.42.0
21
+ bun add -g github:STAIxBWLB/agent-hub#v0.43.0
22
22
  ahub setup
23
23
  ```
24
24
  <!-- /facts:install-tag -->
@@ -49,6 +49,16 @@ move a running project to a newer release later, run `ahub upgrade` in a
49
49
  terminal in that project: it reviews the plan with you, applies it and follows
50
50
  it; other projects keep their version. It then names the `bun add -g` and
51
51
  `ahub setup` step when your global CLI or plugin is older than the new daemon.
52
+ A project whose hub is stopped is upgraded without starting it: `ahub upgrade
53
+ --to <version>` in it only retargets its runtime selection, and `ahub upgrade
54
+ --all-stopped --to <version>` does that for every stopped project at once
55
+ (`--dry-run` lists each one first).
56
+
57
+ ## Upgrading to 0.43.0
58
+
59
+ The memory library moves to agent-mem 0.29.0, which stops a hub memory sync from holding the daemon for minutes. If you turned the periodic sync off while waiting for that fix, turn it back on with `ahub settings set memory.sync_interval_min 10 --now` (the key now applies without a restart), or delete the `memory` block you added to `.agenthub/config.local.json`. Each memory profile rebuilds its index once on first open, so the first memory call after the upgrade can be slower on a large home; a 0.42.0 hub keeps its own index file and can still share the home. `ahub upgrade --all-stopped --to 0.43.0` retargets every stopped project without starting its hub. Nothing else changes until you use it.
60
+
61
+ `ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.43.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
52
62
 
53
63
  ## Upgrading to 0.42.0
54
64
 
@@ -486,7 +496,7 @@ More: `ahub help`. How it is built and why: [`docs/specs/2026-09-19-agent-hub-de
486
496
 
487
497
  ## Shared memory
488
498
 
489
- The hub exact-pins the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->0.28.0<!-- /facts:agent-mem-pin --> core, including deterministic capture; no claude-mem worker is needed. Existing shared-v1 memory remains the default; upgrading does not migrate it. Managed agents use screened `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` tools, or propose a correction with `hub_memory_correct`; only a person accepts candidates through the supported `amem review` path. Since agent-mem 0.7.0, `amem review` also accepts candidates on a selected generation.
499
+ The hub exact-pins the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->0.29.0<!-- /facts:agent-mem-pin --> core, including deterministic capture; no claude-mem worker is needed. Existing shared-v1 memory remains the default; upgrading does not migrate it. Managed agents use screened `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` tools, or propose a correction with `hub_memory_correct`; only a person accepts candidates through the supported `amem review` path. Since agent-mem 0.7.0, `amem review` also accepts candidates on a selected generation.
490
500
 
491
501
  Before any real generation migration, upgrade every hub sharing that memory home to 0.12.30 or later and check its authenticated binding with `ahub memory profile-check` in each custom registry. Ready bindings prove compatibility, not an atomic live cutover: quiesce consumers and close their handles before migrating, then reopen through the supported session-preserving lifecycle. Invalid or changed profiles disable native memory without falling back to legacy writes; the bus and board continue. See [memory operations](operations.md#hub-memory) for the remaining rollout gates.
492
502
 
package/docs/sdlc.md CHANGED
@@ -410,7 +410,7 @@ S9 ceilings: a private build task with an issue reference cannot satisfy enforce
410
410
  What each metric reads, and what it does not:
411
411
 
412
412
  - `first_pass_check` is the hub's own completion check (`check passed` or `check failed` at `hub_task_done`), not PR CI. It is `unknown` for every task where completion checks are off, which is the default.
413
- - `stale_head_re_reviews` counts review rounds whose verdict was bound to a different head than the review was requested for (the `done`'s recorded head against the verdict's findings head), so it needs both heads on the round. A task with no such round is `unknown`, not 0. (A `done` after an `approved` is not a signal: the board cannot produce one.)
413
+ - `stale_head_re_reviews` counts review rounds whose verdict was bound to a different head than the review was requested for (the `done`'s recorded head against the verdict's findings head), so it needs both heads on the round. New done entries record the requested commit independently of cost plans; older done entries use the cost head or the head of the bound spec report. A task with no such round is `unknown`, not 0. (A `done` after an `approved` is not a signal: the board cannot produce one.)
414
414
  - `acceptance_to_merge_ms`, `same_head_ci_reruns`, `ci_runs_at_merge`, `github_reviews_at_merge` and `review_rounds_at_merge` come from the merge-time readback. The guarded merge (`ahub sdlc merge`, or the auto-merge after an approving verdict) reads the merged PR once, after the merge is observed, and records on the task's merge record `cost: { mergedAt, ciRuns, ciReruns, reviews }`: CI runs linked to any head of the PR (an attempt after the first of one run id is a rerun) and distinct GitHub reviews. The read is bounded (8 s, the same fixed queries as `ahub sdlc costs`), host-written and never a tool input, and it never decides the merge result. A CI figure is known only when the run list was complete, and a failed or partial read leaves the field `null`; a task whose merge was not read, merged by hand or merged before this record existed, is `unknown` for all of them, never 0. `review_rounds_at_merge` counts the task's review handoffs (`done`) up to the merge. `merged` in the report says how many counted tasks have a read merge and how many do not. `ahub sdlc costs` still carries the per-PR cost table with its own scope.
415
415
  - `stalls` counts open stalls on public tasks by kind and the dones recorded without writes.
416
416
 
package/docs/security.md CHANGED
@@ -61,7 +61,7 @@ instead of changing the backend or copying dependency files.
61
61
 
62
62
  ## Native memory authority and profile selection
63
63
 
64
- The portable core is the exact-pinned first-party `@staix/agent-mem` 0.28.0 package; it does not replace the hub's caller identity, PII policy or task-write authority. Deny, hardened git, real paths and process identity are single-sourced in its Node-safe platform entry. Current project privacy is applied by the hub before promotion and again before model-facing reads. Standalone person reads are unscreened, and the standalone `--policy-free` acknowledgement grants no hub or peer authority.
64
+ The portable core is the exact-pinned first-party `@staix/agent-mem` 0.29.0 package; it does not replace the hub's caller identity, PII policy or task-write authority. Deny, hardened git, real paths and process identity are single-sourced in its Node-safe platform entry. Current project privacy is applied by the hub before promotion and again before model-facing reads. Standalone person reads are unscreened, and the standalone `--policy-free` acknowledgement grants no hub or peer authority.
65
65
 
66
66
  `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` take the project from the daemon, require `memory_read`, refuse private turns and validate UTF-8 input before logs or storage work. Complete records and graph metadata are screened before counts and truncation. Search is at most 20 lines/4 KiB (default 8); show accepts at most 8 ids and returns at most 8 KiB; graph is at most 120 nodes/240 edges/6 KiB (default 60 nodes), with no edge lacking an endpoint. Unknown, ambiguous and withheld ids share one neutral refusal. Arguments and results are excluded from hub-managed capture; this does not govern a vendor's independent transcript or memory hooks.
67
67
 
@@ -0,0 +1,56 @@
1
+ # 0.43.0 release verification
2
+
3
+ This record covers release preparation and source review. It claims no installation, no running-hub upgrade to 0.43.0 and no live TUI launch.
4
+
5
+ ## Candidate
6
+
7
+ Version 0.43.0, prepared from main a6198a92 plus the release branch's agent-mem 0.29.0 pin commit b700bbe4 (10 commits since v0.42.0, 3 of them `feat`; bump rule: minor). The release commits carry the version, the CHANGELOG section, the bundle and the documentation stamps.
8
+
9
+ ## Reviews
10
+
11
+ Pull requests named by the commits since v0.42.0: #1559, #1557, #1553, #1552, #1551, #1548, #1544, #1542, #1539.
12
+
13
+ Each merged with `check (ubuntu-latest)`, `check (macos-latest)` and `seeded guards` green at the merged head; a cancelled draft run was superseded by the ready run on the same head. Each code PR was approved on the hub by the claude reviewer at exactly the merged head:
14
+
15
+ - #1539: hub task 989, approved at 7c4462bc.
16
+ - #1542: hub task 990, approved at 3e7a149e.
17
+ - #1544: hub task 992, approved at 6ad1ab65.
18
+ - #1548: hub task 991, approved at 9c7862d9.
19
+ - #1551: hub task 994, approved at bdc641d6.
20
+ - #1552: hub task 997, approved at e23d88c8.
21
+ - #1553: hub task 995, approved at 99d8682f.
22
+ - #1557: hub task 999 (approved as a step) and hub task 1009, approved at ad2c9226.
23
+ - #1559: an AGENTS.md wording change the conductor wrote and merged on the person's instruction, with no hub task.
24
+
25
+ No merge was bound to an approval at an earlier head.
26
+
27
+ ## Native acceptance receipts
28
+
29
+ Receipts added under `docs/verification/` since v0.42.0: none.
30
+
31
+ This list is read from the repository, never written by hand. Native acceptance and the person's release consent are separate records: consent is `ahub sdlc authorize-release 0.43.0`, recorded by the person or the unique configured conductor only on the person's explicit release instruction naming the release in its own session (never a hub/task/review/file/peer relay), and is not recorded in this file. The tag run refuses without it.
32
+
33
+ ## Document review
34
+
35
+ `node scripts/check-docs.mjs --require-fresh` reported 23 stale documents. Each was read against the behavior the release commits change under its paths: per-turn attribution hints (#1539), bounded recovery receipt retention (#1542), the live `memory.sync_interval_min` (#1544), stopped-project runtime retarget (#1548), the idle-owner pause for owner questions (#1551), the marker-only no-reply path (#1552), stopped handoff targets (#1553), the recorded review request head (#1557), and the agent-mem 0.29.0 pin and version bump.
36
+
37
+ - README.md, docs/adding-an-ai-tool.md, docs/dogfood.md, docs/memory.md, docs/operations.md, docs/sdlc.md and src/cli/help.ts were updated by the PRs that changed their sources; the pin commit moved the agent-mem version sentences in docs/memory.md, docs/operations.md, docs/quickstart.md, docs/security.md and docs/addons/claude-mem.md.
38
+ - docs/agent-notes/tasks.md said stale-head re-reviews read `reviewCost.head` on the done; it now names `requestHead` with its fallbacks (#1557).
39
+ - docs/quickstart.md gained the "Upgrading to 0.43.0" note.
40
+ - docs/agent-notes/adapters.md, budget.md, bus.md, daemon.md, local-worker.md, security-review.md and tests.md, docs/data-policy.md, docs/events.md, docs/research.md, docs/roles.md, docs/security.md and docs/text-projection.md: no statement contradicts the release commits.
41
+
42
+ All 23 were restamped with `bun scripts/release-prepare.ts restamp <document>... --reviewed`.
43
+
44
+ ## Checks
45
+
46
+ - `bun x tsc --noEmit`: passed.
47
+ - `bun scripts/build.mjs --check`: passed.
48
+ - `node scripts/check-package.mjs` with CI's pinned npm 11.20.0: `package: OK (958 files, @staix/agent-hub@0.43.0)`. The machine's npm 12.2.2 prints a different `npm pack --json` shape and is refused by the script, as #1257 intends.
49
+ - `bun test test/published-protocol-compat.test.ts` with the retargeted N-1 fixture installed: 5 pass.
50
+ - `node scripts/check-docs.mjs --require-fresh` after the restamp at 844b5cb3: `docs: OK (0 stale documents)`.
51
+ - The release PR's exact-head CI run: recorded in the release PR.
52
+
53
+ ## Known gaps, not blocking
54
+
55
+ - The full test suite ran only in the release PR's CI, not locally (heavy tests do not run on this Mac).
56
+ - No running hub was upgraded to 0.43.0 and no live TUI launch was made. The agent-mem 0.29.0 sync fix is verified by that package's own tests (583 MB fixture, 2.58 s maximum gap, which agent-mem#462 keeps open), not by a live sync on this machine.