@staix/agent-hub 0.37.0 → 0.38.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 (43) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +1 -1
  3. package/docs/design/guidance-probes.md +365 -0
  4. package/docs/dogfood.md +2 -1
  5. package/docs/operations.md +13 -5
  6. package/docs/profiles.md +1 -1
  7. package/docs/quickstart.md +7 -1
  8. package/docs/security.md +6 -2
  9. package/docs/verification/2026-11-11-0.38.0.md +41 -0
  10. package/docs/verification/2026-11-11-guidance-probe-t3-1226.md +85 -0
  11. package/docs/verification/2026-11-11-guidance-probe-t4-1226.md +65 -0
  12. package/docs/verified.json +18 -18
  13. package/package.json +1 -1
  14. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  15. package/plugins/agent-hub/kimi-hook.js +45 -23
  16. package/plugins/agent-hub/server.js +46 -23
  17. package/src/adapters/claude-channel.ts +2 -1
  18. package/src/adapters/local-probe.ts +65 -6
  19. package/src/cli/help.ts +1 -1
  20. package/src/cli/init.ts +3 -1
  21. package/src/cli/main.ts +23 -8
  22. package/src/cli/output.ts +8 -4
  23. package/src/cli/upgrade-runtime.ts +1 -1
  24. package/src/hub/bus.ts +2 -2
  25. package/src/hub/control-client.ts +1 -1
  26. package/src/hub/daemon.ts +30 -8
  27. package/src/hub/envelope.ts +6 -1
  28. package/src/hub/guidance-probe-store.ts +345 -14
  29. package/src/hub/guidance-probes.ts +338 -4
  30. package/src/hub/manager.ts +24 -1
  31. package/src/hub/operational-authority.ts +3 -2
  32. package/src/hub/person-command.ts +25 -0
  33. package/src/hub/supervision.ts +3 -2
  34. package/src/hub/tasks.ts +48 -3
  35. package/src/local/probe-types.ts +2 -0
  36. package/src/local/probe-workspace.ts +191 -2
  37. package/src/ui/guidance-panel.ts +34 -2
  38. package/src/ui/guidance-view.ts +33 -0
  39. package/src/ui/plugin.ts +10 -3
  40. package/templates/AGENTS.block.md +14 -14
  41. package/templates/profiles/general.json +1 -1
  42. package/templates/profiles/research.json +1 -1
  43. package/templates/profiles/writing.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,16 @@ 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.38.0
8
+
9
+ - Commands the hub hands a person run as printed (#1399). The needs_review hold notice, `ahub status` held rows and `ahub queue show` give `cd <project> && ahub queue resolve <id> --revision N --action <suggested> --reason "<kind> from <sender> to <peer>"` plus the other actions with one clause each, in place of `--action completed|retry|discard --reason <text>`. Agents are told, in the managed AGENTS block and in their session instructions, to pass such a command on unshortened.
10
+ - The managed AGENTS block is reordered (rules before transport, all-agent rules out of the pull-only bullet) and has one source: the `general`, `research` and `writing` profiles now append their own paragraph to `templates/AGENTS.block.md` and no longer carry a drifted copy, so they gain the `[FYI]` action rule, the no-polling rule and the one-heavy-job rule they lacked. Compatibility: an existing project keeps its old block until `ahub init` runs there; `ahub doctor` flags `hub instructions` and prints the commands. A project's own `profile_overrides.agents` still replaces the whole block.
11
+ - The block no longer fixes the heavy-job limit at one (#1399): it tells agents to start a build or full test run through the machine's admission tool (`dot admit`, whose `admission.slots.heavy_per_repo` the person sets) and to respect a deferral, and to keep to one per repository only where no such tool exists. No setting was added: the number lives in the machine's tool, not in tracked project text.
12
+ - Guidance probes (#1226 T3): host-sealed receipts in a private table, the outcome denominator (a missing or reconciled receipt counts as `unknown`, never `failed`), explicit crash reconcile and an owned-output prune that keeps receipts and manifests (#1397). Constructor-only and unwired; no live trial.
13
+ - Guidance probes (#1226 T4, fake-provider part): `ahub guidance probe receipts --id HASH [--json]`, the matching control op and a read-only `probe` view in the Guidance panel show sealed receipts, the denominator, comparability reasons and retention state; `test/guidance-probe-gate.test.ts` runs the fake lifecycle end to end (#1400). The live local-worker trial (AC7) is still open.
14
+
15
+ Release N-1 for 0.38.x is 0.37.0 (exact `@staix/agent-mem` 0.24.0, control protocol 17 with descriptor floor 16); `test/fixtures/release-n-1` and `test/published-protocol-compat.test.ts` now pin it. Compatibility: the wire protocol window is unchanged at 16 through 17; the new `guidance_probe_receipts` daemon feature and control op are optional, and a 0.37.0 daemon answers the op as unknown. Files: `hub.db` gains an additive `guidance_probe_receipts` table created with `CREATE TABLE IF NOT EXISTS` and no `hub_schema` bump, so 0.37.0 opens a 0.38.0 database and ignores it. The exact `@staix/agent-mem` pin stays 0.24.0. A project initialised by an earlier release keeps its AGENTS.md block until `ahub init --yes` is run again; `ahub doctor` warns until then.
16
+
7
17
  ## 0.37.0
8
18
 
9
19
  - R2 accepts anchored Markdown/quote-decorated advisor verdicts, an optional `Verdict:` prefix and a surrounding JSON fence for escalation. Escalation uses owned bounds of 12 recent assistant turns, 1500 Unicode code points per serialized message and 16000 points for the assembled transcript, including explicit truncation markers; original discarded points remain counted. These limits provide no quality or eight-second latency guarantee. Arbitrary leading prose, unbalanced markup, more than eight nested decoration groups and malformed/multiple/non-JSON fences remain unparsed.
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.37.0, control protocol 17 (accepts 16). Bun + TypeScript, one loopback daemon per
8
+ Status: 0.38.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
@@ -35,6 +35,15 @@ paths:
35
35
  - test/guidance-probe-input-matrix.test.ts
36
36
  - test/guidance-probe-sandbox.test.ts
37
37
  - test/omniroute.test.ts
38
+ - src/hub/manager.ts
39
+ - src/ui/plugin.ts
40
+ - src/ui/guidance-panel.ts
41
+ - src/ui/guidance-view.ts
42
+ - test/guidance-probe-status.test.ts
43
+ - test/guidance-probe-console.test.ts
44
+ - test/guidance-probe-cli.test.ts
45
+ - test/guidance-probe-gate.test.ts
46
+ - test/helpers/guidance-probe-tasks.ts
38
47
  ---
39
48
 
40
49
  # Fake-only guidance probe admission
@@ -800,3 +809,359 @@ Store replay path applies. No replay call may create an unframed reservation.
800
809
  Tests add an ordinary delivered
801
810
  message during a running fake effect and prove continuity, then independently
802
811
  change authority/privacy and prove the next effect is refused.
812
+
813
+
814
+ ## T3 receipts, reconcile and cleanup contract
815
+
816
+ This section is a contract proposal for review before implementation, on merged T2
817
+ (`fa53e8b1`). It does not enable a runner, claim native confinement or authorize a real
818
+ model or worker trial. The constructor-only host adapter stays unwired. T3 adds evidence
819
+ and cleanup around sessions the existing lifecycle already runs; it changes no admission,
820
+ budget, fence or authority rule.
821
+
822
+ ### What a receipt is
823
+
824
+ A receipt is the host's immutable observation of one finished session, written once after
825
+ the process tree is known quiescent and the output is collected. It is not a provider
826
+ claim: every field is computed by the host from what it admitted, measured or read back.
827
+
828
+ `ProbeReceiptV1` is closed, inert JSON, canonical and bounded like the manifest. It binds
829
+ exact experiment and slot ids, the reservation generation and revision, and:
830
+
831
+ - `requestedModel` and `servedModel`: exact literals. `servedModel` is `null` when the
832
+ host could not observe it. No normalization, alias or slash splitting.
833
+ - `inputFrameSha256` and, for a worker, `workerEffectiveInputSha256` and
834
+ `nonGuidanceInputSha256`; `guidanceSha256` for the admitted slot.
835
+ - `runtimeSha256`, `toolsetSha256`, `modelConfigSha256`, read from the host's own
836
+ fingerprints at seal time (`localProbeFingerprints`), never copied from the declaration.
837
+ They are `null` when the host could not read them (a crash reconcile never saw them),
838
+ which is unverified coverage. A fingerprint that differs from the declared one is
839
+ recorded as it is and makes the pair incomparable (`input_drift`).
840
+ - `startedAt`, `endedAt` and `elapsedMs` from the Store's trusted clock.
841
+ - `state`: one of `succeeded`, `failed`, `cancelled`, `timed_out`, `unavailable`,
842
+ `unknown`. `succeeded` requires every condition under "Sealing" below.
843
+ - `usage`: per-session model calls and tool calls with their known counts, and the
844
+ tokens this session alone observed, or `null`. A gap stays `null`; a sum is never
845
+ filled in, and the experiment's running token total is never copied into a receipt.
846
+ - `limits`: the closed list of observation limits that applied (for example
847
+ `usage_unknown`, `served_model_unobserved`, `teardown_unverified`, `output_truncated`,
848
+ `storage_over_cap`).
849
+ - `output`: a `ProbeOutputManifestV1`, below.
850
+ - `digest`: SHA-256 of the canonical record without this field.
851
+
852
+ `ProbeOutputManifestV1` lists at most 64 entries of `{ relative, sha256, bytes }`, with
853
+ each file at most 1 MiB and the total at most the slot's declared `outputBytes`. Paths are
854
+ workspace-relative under the declared output root, regular files with link count 1 only,
855
+ at most 256 UTF-8 bytes (`PROBE_OUTPUT_LIMITS.nameBytes`) and free of control and format
856
+ characters (`probeOutputName`, the one check for a manifest entry, an exclusion and a
857
+ retained record). A name that fails it is never hashed: it is an exclusion
858
+ (`invalid_name`) recorded under a digest label, never raw.
859
+ Anything else (symlink, hardlink, device, a path outside the declared writes, a file over
860
+ the cap, a tree nested deeper than 8 directory levels, a walk past the entry cap) is not
861
+ hashed: it is recorded as a closed `excluded` reason (`over_file_cap` for a file past 1 MiB,
862
+ `over_total_cap` when the slot's total bound would be crossed, `over_depth` for the nesting
863
+ limit, `over_walk_cap` for the entry cap) and the receipt cannot be `succeeded`. The walk
864
+ limits never skip silently: scratch nested past the depth limit, or holding more entries
865
+ than the cap, is reported as unmeasured, which counts as over the scratch cap.
866
+
867
+ Both walks (output, then scratch, each with its own budget of `PROBE_WALK_ENTRIES` = 4096
868
+ directory entries) run synchronously on the daemon's event loop, so the number of entries
869
+ they visit is bounded as well as the bytes: a confined child that leaves a million empty
870
+ files is far under every byte cap and would otherwise stall the control socket and every
871
+ peer. Reaching the entry cap is treated like the depth cap. Output: whatever the unfinished
872
+ walk had read is discarded, nothing is hashed or retained, and the whole output root is
873
+ excluded as `over_walk_cap`. Scratch: unmeasured, hence `storage_over_cap`.
874
+
875
+ The byte bound of a receipt, `PROBE_OUTPUT_LIMITS.receiptBytes`, is **derived** from the
876
+ largest valid receipt, never chosen: 64 entries and 64 exclusions of the longest allowed
877
+ names (each name byte can cost two in JSON) plus every other field at its own maximum. A
878
+ session that meets every success condition and writes 64 files with the longest names
879
+ therefore still seals as a success. `sealReceipt` writes only a receipt that its own
880
+ hydration would accept (it parses what it is about to store), so a record the reader would
881
+ refuse is a refused seal, never permanent storage corruption.
882
+
883
+ ### Sealing
884
+
885
+ The adapter's `close` path already stops the peer and confinement and joins owned work.
886
+ Output is collected only AFTER `stopProbe` and the confinement stop have both returned,
887
+ that is after they reported known quiescence, because until then a child may still be
888
+ writing and the bytes are not evidence. When the stop failed or is uncertain nothing is
889
+ read at all. Collection and the receipt follow, before the host releases the workspace it
890
+ owns:
891
+
892
+ 1. Collect the output manifest by opening each declared output file `O_NONBLOCK|O_NOFOLLOW`
893
+ and requiring it to still be a regular file through the opened descriptor (a file
894
+ swapped for a FIFO, device or symlink after its `lstat` is excluded and cannot block
895
+ the daemon), hashing the bytes read from that descriptor, and re-checking the identity
896
+ after the read. A file that changed while read is excluded, not hashed twice.
897
+ Retention copies those same bytes. It never re-reads a workspace path, so a swap after
898
+ collection can neither hang it nor change what is kept.
899
+ 2. Build the receipt from the session's own settled facts, the immutable manifest and the
900
+ host's measurement only, then compute its digest. Mutable experiment state (the
901
+ running token total, the current hold, a later cancel, another session) is never read:
902
+ a session records why it settled (`closeCause`) when it settles.
903
+ 3. Write it in one `BEGIN IMMEDIATE` transaction together with the session settlement
904
+ (`settleAndSeal`), so a receipt and its session state are never separately visible. If
905
+ the seal fails the settlement rolls back with it; the host then settles the session as
906
+ `unknown` with a conservative receipt, and a session still open after a crash is
907
+ recorded as unknown by the explicit reconcile below. A settled session therefore never
908
+ exists without its receipt.
909
+
910
+ The state is decided in this order, so what the host cannot vouch for always wins:
911
+ unverified teardown or a crash is `unknown`; then the settled cause (`cancelled`,
912
+ `timed_out`); then `unavailable`, which means the session could not start and is never
913
+ used once a model or tool call ran (a confinement error after a call is `failed` or
914
+ `unknown`); then `failed`; then `succeeded`.
915
+
916
+ A receipt is `succeeded` only if all of these hold: the session settled `closed_fixture`
917
+ with verified coverage; `servedModel` equals `requestedModel`; teardown is known
918
+ quiescent; no output entry was excluded; no hold is latched; and the elapsed ceiling was
919
+ not hit. A timeout, an abort, a token or step ceiling, an uncertain stop and a hold each
920
+ map to a non-success state. **A timeout is never `succeeded`**, whatever partial output
921
+ exists. There is no path that upgrades a receipt after it is written.
922
+
923
+ Immutability: a second `sealReceipt` for the same reservation with identical content
924
+ returns the stored receipt (`already: true`); different content refuses and latches the
925
+ observation hold. There is no update and no delete. A prune never removes a receipt or an
926
+ output manifest (see "Cleanup"): receipts are the outcome denominator's record and live as
927
+ long as the experiment row does.
928
+
929
+ ### Tamper, torn writes and crash
930
+
931
+ Receipts live in the same `hub.db`, so a torn receipt is a rolled-back transaction, not a
932
+ half file. The Store hydrates a receipt only if its digest recomputes, its experiment, slot,
933
+ generation and revision match the session row, and its `state` is consistent with the
934
+ session state. Any mismatch is `storage` corruption: the experiment becomes unknown-held,
935
+ shows no success and is never silently repaired.
936
+
937
+ Output files are re-verified against their manifest only through the same captured
938
+ identities, while the workspace is still owned. After the workspace is released the
939
+ manifest is the record; the bytes are not claimed to still exist unless retained
940
+ (next section).
941
+
942
+ Crash after admission: a session found `reserved` or `running` with no receipt is
943
+ reconciled to `unknown_held` with receipt state `unknown` and limit `teardown_unverified`,
944
+ whether or not a cancel request or an elapsed hold was already latched: a crash is never
945
+ recorded as `cancelled` or `timed_out`, because the host did not witness a stop.
946
+ Reconcile never launches, retries or restarts a session, and never turns an in-flight
947
+ session into a failure or a success. It only records that the host cannot vouch for it.
948
+ The lane stays held until a person or conductor cancels it through the existing
949
+ `cancelIntent`.
950
+
951
+ Reconcile runs **only** through an explicit host call, `GuidanceProbeStore.reconcile()`,
952
+ made by the daemon in two places: at start, after the recovery integrity comparison, and
953
+ at the release of a held recovery (a held target must keep carried rows byte-identical so
954
+ its comparison holds). Opening the Store, `read`, `integrity`, `previewPrune` and every
955
+ other read never write: a Store opened read-only (`new GuidanceProbeStore(file, now, true)`,
956
+ a connection that cannot write) changes no row, and `reconcile` through it fails. `reconcile` is
957
+ idempotent: a second call finds no unreconciled session and writes nothing. A reconciled
958
+ `unknown` receipt counts in the outcome denominator as `unknown`, never as `failed`.
959
+ One bad experiment never hides the others: `reconcile` visits every experiment key, hands
960
+ each failure and its key to an optional `onFailure` callback (the daemon logs the experiment
961
+ id prefix and the error class, never content) and carries on; it returns
962
+ `{ reconciled, failed }`. With no callback the first failure is thrown only after every key
963
+ was tried, so a caller can never mistake a partial pass for a full one. The recovery
964
+ integrity pass reads receipts through the same session cross-check as `receipts()`
965
+ (generation, revision and a state that session could have produced), so an edited pair is
966
+ caught at restart, not only on a later read.
967
+
968
+ ### Comparability and the outcome denominator (AC4)
969
+
970
+ `classifyProbeComparability` is a pure function over the experiment's receipts and
971
+ returns `{ comparable, reasons }`, with a closed reason list: `served_model_mismatch`,
972
+ `served_model_unobserved`, `input_drift` (a worker's non-guidance hash differs from the
973
+ baseline's, or a fingerprint differs), `usage_unknown`, `incomplete_coverage`,
974
+ `teardown_unverified`, `authoring_uncontrolled`, `missing_receipt`.
975
+
976
+ - A pair is incomparable if either side has a reason. One reason is enough; reasons are
977
+ listed, not ranked.
978
+ - The public `comparable` flag becomes this function's result. It replaces the current
979
+ inline expression in `Tasks.guidanceProbeProjection` and may only get stricter: every
980
+ case the current expression calls incomparable stays incomparable.
981
+ - The outcome denominator is every preregistered attempt slot that was reserved:
982
+ `succeeded`, `failed`, `cancelled`, `timed_out`, `unavailable` and `unknown` all count.
983
+ Slots never started stay `planned` or `not_needed` and are reported separately as such;
984
+ they are neither successes nor failures. A failed, cancelled or unavailable arm is
985
+ never dropped from the denominator, and the status shows the per-state counts.
986
+ - Usage gaps stay `null`. No cost or money figure is derived: this task adds no price
987
+ table, so total money remains unknown.
988
+
989
+ ### Cleanup and the 1 GiB cap (AC6)
990
+
991
+ The experiment's declared `inputBytes + scratchBytes + outputBytes` is already capped at
992
+ 1 GiB at admission. T3 adds no second source of truth: retained storage is accounted from
993
+ the receipts' output manifests plus the retained workspace bytes the host recorded.
994
+
995
+ The cap also holds at runtime, not only in the declaration. At seal time the host measures
996
+ what the session actually left behind in scratch and output. If either exceeds the bound
997
+ declared for it, the receipt is a non-success with limit `storage_over_cap` (or
998
+ `output_truncated` when output files were excluded for size), and retention is never
999
+ silently larger than declared: bytes past the bound are not retained, hashed or counted
1000
+ as the session's output.
1001
+
1002
+ Cleanup touches only resources the host created and still owns, verified at the moment
1003
+ of removal by captured physical identity (device, inode, directory/file kind, link count)
1004
+ exactly as `materializeProbeWorkspace` already does for its failure cleanup. Inode numbers
1005
+ are recycled (Linux reuses one straight after an unlink), so a retained file's identity also
1006
+ carries its change time in nanoseconds (`ctimeNs`): a replacement made later has a later
1007
+ change time even with the same inode. A directory has no stable change time, so it is
1008
+ identified by device and inode only. A path whose
1009
+ identity differs, a replaced root, a bystander file or a symlink swap is left alone and
1010
+ reported as `retained: <reason>`; cleanup never recurses into or deletes a name it did not
1011
+ create. It never follows a link and never touches another session's resources.
1012
+
1013
+ `previewPrune(key, fs)` is read-only and returns the exact list of what a prune would
1014
+ remove (relative names and byte counts, no content) and what it would keep and why.
1015
+ `prune(key, planDigest, fs)` takes that preview's digest and refuses if the owned set has
1016
+ changed since, so a prune only ever does what the person saw. Neither takes a time: expiry
1017
+ is decided on the Store's own trusted clock, so a caller cannot pull a retention date
1018
+ forward.
1019
+
1020
+ Retention is `PROBE_RETENTION_DAYS = 14`, a named constant. It is not a setting, a
1021
+ manifest field or a config key. At seal time each retained output gets an explicit
1022
+ `expiresAt` (seal time plus that constant), stored with the receipt and shown by
1023
+ `previewPrune`. **Nothing is deleted automatically:** there is no timer and no background
1024
+ sweep. Removal happens only through `previewPrune` followed by `prune(planDigest)`,
1025
+ called by the host or the person. An output is prunable only after its `expiresAt`, and
1026
+ only when no session of its experiment is in flight and the experiment is finished:
1027
+ terminal (`closed_fixture`, `failed_fixture`), or stopped by the person's or conductor's
1028
+ existing `cancelIntent`. An experiment that is held (`unknown_held`, for example after a
1029
+ crash reconcile or a latched hold) stays unprunable until that cancel has released it, so
1030
+ its retained output cannot be removed while the person has not yet seen the hold, and it
1031
+ can still expire afterwards. `usageUnknown` alone never blocks a prune: it describes the
1032
+ measurements, not whether work is running. A receipt is never deleted in any case.
1033
+
1034
+ A prune removes retained output and workspace bytes only. It never deletes a receipt or an
1035
+ output manifest. A session still `reserved` or `running` blocks the prune of its
1036
+ experiment even when the experiment is otherwise finished (a cancel that has not yet
1037
+ reached every session): the in-flight guard is its own check, tested apart from the
1038
+ state rule.
1039
+
1040
+ Locks: receipts and prune plans use the Store's SQLite transaction, so no file lock and
1041
+ no stale-holder recovery are introduced. If implementation finds a file-level lock is
1042
+ unavoidable it must follow `SourceRegistry.locked` (publish whole by `link(2)`, never
1043
+ unlink on another's behalf, fail closed on a stale holder, name the file) and ship a
1044
+ two-recoverer test (#329).
1045
+
1046
+ ### Scope boundary
1047
+
1048
+ T3 adds: the receipt and output manifest types and pure parsing in `guidance-probes.ts`;
1049
+ one additive private table in the Store (`guidance_probe_receipts`) with receipt
1050
+ hydration, tamper checks and reconcile folded into the existing integrity and recovery
1051
+ passes; `sealReceipt`, `settleAndSeal`, `receipts`, `outcome`, `reconcile`, `previewPrune` and `prune`; output collection and
1052
+ owned cleanup in the adapter and workspace modules; the comparability function; and fake
1053
+ fixtures for the mismatch, tamper, crash and teardown cases. It does not add a CLI verb,
1054
+ a wire operation, a daemon runner, a config key, a real model call or a live trial (T4).
1055
+ Public `show` is unchanged: it keeps only the stricter `comparable` flag. The per-state
1056
+ denominator counts and the comparability reasons are private status, read by the host
1057
+ through the Store; T4 (below) adds the producer receipt reader and decides what leaves it.
1058
+
1059
+ ### How the adapter and host seal
1060
+
1061
+ The adapter cannot reach the Store. After the stop reported quiescence it collects and
1062
+ retains the declared output and reports what it measured on the observation
1063
+ (`ProbeFakeObservation.measured`, every `ProbeMeasuredSession` field except `startedAt`,
1064
+ including the host's own runtime fingerprints). The fixture host samples `startedAt` on the
1065
+ trusted clock where it exposes the launch and calls `settleAndSeal`; the adapter never
1066
+ supplies the start instant. An observation that carries no measurement, or that did not
1067
+ match, is sealed with a conservative one (teardown not verified, nothing observed), so a
1068
+ session is never a success the host could not witness. Collection never throws: a failure
1069
+ becomes an `output_truncated` limit, which can only keep a receipt from being a success.
1070
+ Retention needs a host-owned `retentionRoot` outside every workspace; without one the
1071
+ output is hashed and nothing is kept. Past the declared scratch or output cap, or with
1072
+ scratch nested past the walk limit, nothing is retained and the receipt carries
1073
+ `storage_over_cap`. Hydration checks every receipt against its session row: generation,
1074
+ revision and a state that session could have produced.
1075
+
1076
+ **Retained output always has an owner.** Retention happens in the adapter, before the host
1077
+ seals, so the adapter may have copied output the host then declines to seal with that
1078
+ record: an observation that did not match its reservation (a fallback model is the AC4
1079
+ case), a seal that failed and was replaced by the conservative one, a settlement that lost
1080
+ its clock and sealed nothing. A directory with no row can never be previewed or pruned. So
1081
+ the ports carry one optional call, `discardRetained(record)`, and the host makes it for
1082
+ every measurement it did not seal together with its own `retained` record (on the match
1083
+ path after the settle, and on the failure path before the conservative settle). The port
1084
+ removes only a record that is exactly one it created (it keeps its own bounded ledger of
1085
+ canonical records, so a forged or altered record reaches no delete), and it removes by the
1086
+ identity captured at creation. It never throws into the host. The receipt of such a
1087
+ session carries no retained record, and no directory of it remains.
1088
+
1089
+ Public `show` computes `comparable` as the older expression AND the sealed-receipt verdict,
1090
+ so the flag only ever gets stricter. A store that cannot be read yields `false`.
1091
+
1092
+ ### Rulings applied
1093
+
1094
+ The reviewer ruled on the three open choices of the first draft: no automatic expiry and
1095
+ no new setting (a named constant and an explicit `expiresAt`); reconcile only through an
1096
+ explicit host call at daemon start; the denominator counts and reasons stay private. They
1097
+ are folded into the sections above. Three amendments are also applied: prune never deletes
1098
+ receipts or manifests, the 1 GiB cap holds at runtime, and a reconciled `unknown` receipt
1099
+ counts as `unknown`.
1100
+
1101
+ ## T4 producer status and receipt export
1102
+
1103
+ T4 (#1226) adds the producer-facing read of what T3 sealed, and the focused check that runs the whole fake lifecycle end to end. It adds no way to start work.
1104
+ It does not enable a runner, claim native confinement, call a model or launch a worker, and the constructor-only adapter stays unwired (a test reads the daemon,
1105
+ the CLI, the plugin, the manager and every other adapter and fails if one names it). **AC7's authorized real local-worker trial is not part of this change and
1106
+ stays open**: nothing here shows actual isolation or effective guidance delivery to a model, and nothing may be read as showing either.
1107
+
1108
+ ### What a producer or a receipt consumer reads
1109
+
1110
+ One read, `Tasks.guidanceProbeReceipts(by, id)`, answered over the control op `guidance_probe_receipts`, the CLI `ahub guidance probe receipts --id HASH [--json]`
1111
+ and the guidance panel's `probe` read. It carries the same person-or-current-conductor, session, task-state and privacy fences as `show`, and it is read-only:
1112
+ it launches, reserves, writes and prunes nothing, and a read-only Store serves its inputs. The reply is a `ProbeReceiptExport`:
1113
+
1114
+ - `status`: the public status `show` returns, with `comparable` already combined with the sealed verdict.
1115
+ - `comparable` and `reasons`: the stricter of the older public expression and the sealed-receipt verdict, and the sealed reasons (`served_model_mismatch`,
1116
+ `served_model_unobserved`, `input_drift`, `usage_unknown`, `incomplete_coverage`, `teardown_unverified`, `authoring_uncontrolled`, `missing_receipt`). A comparable
1117
+ export never lists a reason and never outranks a status that refused.
1118
+ - `counts`: the full outcome denominator. Every reserved slot is in it, failed, cancelled, timed out and unavailable ones included; a reserved slot with no
1119
+ receipt is `unknown`; slots that never started are `planned` or `not_needed`, apart from success and failure.
1120
+ - `slots`: one row per declared slot, with its stage, role, arm and the session's own state, the verbatim sealed receipt (or none), the receipt's digest, a
1121
+ `withheld` flag and the retention state of its output (`none`, `retained` or `pruned`).
1122
+
1123
+ Unknown stays unknown: a usage gap is `usage_unknown` and prints as `unknown`, never zero; an unobserved served model is `unobserved`; a slot with no receipt says
1124
+ so. Evidence is at most `fixture`, and every rendering says that no live model or worker trial, sampling control, provider behaviour or model quality is claimed.
1125
+
1126
+ ### Bounds, privacy and tamper
1127
+
1128
+ - **Closed, inert, bounded.** `parseGuidanceProbeReceiptExport` accepts exactly these fields, at most nine slots, and at most `PROBE_EXPORT_BYTES`, derived from the
1129
+ largest valid receipt, never chosen. It re-verifies every embedded receipt with `parseProbeReceipt`, so a receipt that was edited, moved to another slot or given
1130
+ another digest never parses. The counts must add up to the slot list, and a slot's digest must be its receipt's.
1131
+ - **Tamper refuses the whole read.** The Store hydrates receipts with its own session cross-check; a bad row fails the read with the storage error rather than
1132
+ being skipped or shown. `Tasks` then parses what it is about to send with the same parser, so a result the consumer would refuse is a storage fault, never a
1133
+ partial answer. The manager, the panel provider and the CLI parse again on receipt, and a reply that names another probe than the one asked for is refused.
1134
+ - **A model-written name is screened, not trusted.** An output path or served-model name in a receipt passes the same public-field screen as any other public field
1135
+ (`guidanceFieldAllowed`: nameable, not secret-like, not under a denied path). A receipt with a name that fails it is replaced by its digest and flagged
1136
+ `withheld`; the slot and the denominator still count it, so withholding never hides an arm. Every rendered string is stripped of control and format characters,
1137
+ and the experiment label is advisory untrusted text.
1138
+ - **A location is a state, never a path.** The export says a slot's output is retained or pruned and never names where. `GuidanceProbeStore.retentionStates` is the
1139
+ only accessor and returns states.
1140
+
1141
+ ### Surfaces
1142
+
1143
+ - **Control and authority.** `guidance_probe_receipts` is a conductor operation labelled `guidance probe receipts`, answered with the request `rid` like every
1144
+ probe op, and advertised as the feature `guidance_probe_receipts` beside `guidance_probes`. A client facing a hub without it says to upgrade and restart and sends
1145
+ nothing. The CLI refuses a malformed id or any option other than `--id` and `--json` before a request, and a delegated live-test run is refused as for the other
1146
+ probe commands.
1147
+ - **Producer panel.** The existing Guidance panel gains a probe read, not a new panel: `DASHBOARD_VIEWS` and the manifest's actions are unchanged. The provider
1148
+ forwards exactly one field, the 64-hex probe id, through a producer-only read port on `projectConsole` (`guidanceProbe`) that pins the instance, checks the feature
1149
+ and writes nothing. The panel shows the provider's own lines for exactly the probe it asked about as literal text; a reply that is malformed, for another probe, or
1150
+ late (the project or id changed, the panel was hidden or destroyed) shows nothing of itself.
1151
+ - **One text.** The panel and the CLI print the same lines, `guidanceProbeStatusLines`.
1152
+
1153
+ ### The focused check gate (AC7, fake-provider leg)
1154
+
1155
+ `test/guidance-probe-gate.test.ts` is the end-to-end pass over the real `Tasks` + `GuidanceProbeStore` + `Bus` with the fake provider: register, run the baseline and a
1156
+ candidate, seal, and read the export, asserting at once that the two arms share every non-guidance input byte (AC1), that attempts and calls are counted once per
1157
+ slot (AC3), that the denominator is complete and the pair is incomparable for the stated reason (AC4), that every receipt is host-sealed and bound to its slot
1158
+ (AC4, AC6), that no message, PII screen or lineage read happened and the task's public bytes are unchanged (AC5), that a crash in the middle is recorded unknown and
1159
+ never launched again (AC3, AC6), and that reading changes no row. It runs under `scripts/check.sh --changed` because it imports the files above. What it does not
1160
+ run is stated in the test and here: a real model call, a real worker, OS isolation, effective guidance delivery, sampling control.
1161
+
1162
+ ### Scope boundary
1163
+
1164
+ T4 (this part) adds: `ProbeReceiptExport`, `parseGuidanceProbeReceiptExport`, `PROBE_EXPORT_BYTES`; `GuidanceProbeStore.retentionStates`; `Tasks.guidanceProbeReceipts`;
1165
+ the control op, feature, authority label, CLI subcommand and help line; the manager read port, the plugin's `probe` read and the panel section; the shared text; and
1166
+ the tests above. It does not add a runner, a config key, a write, a prune verb or a model call. The authorized live trial, and with it AC7's real-isolation and
1167
+ real-delivery evidence, is a separate decision and stays open.
package/docs/dogfood.md CHANGED
@@ -28,7 +28,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
28
28
  | Room automatic resend and late settlement (#1204 T2) | off here; source and isolated in-process broker coverage after validation; release and person enrollment/exposure required; live two-machine behavior remains unverified | AC2-AC4: receiver offline for 15 minutes then each application admitted once; pre-enqueue refusal retries without uncertainty; ACK deadline resends within the original TTL; signed late receipt settles once; local receipt commit survives restart before broker storage; no person-disposition override or native/task-read evidence |
29
29
  | Room liveness and epoch-change preview (#1204 T3, #736) | source and isolated fixtures, validation pending; rooms remain off here and installed/two-machine behavior is unverified | `rooms-liveness-link-736.test.ts`: signed offline within five seconds, idle crossed-request convergence and no reply loop, synchronous stop fence/FIFO preservation; `rooms-presence-aging-736.test.ts`: three local periods to advisory unknown without changing outbound admissibility, legacy untracked behavior, restart and clock rollback; `rooms-rotation-736.test.ts`: sorted ids-only preview, changed id-set/digest refusal, sealed hold versus Bus-only queue, unchanged person/terminal disposition; `rooms-liveness-status-736.test.ts`: native state preserved, broker upgrade guidance and named epoch-rotated cause; defaults 30 s refresh, 90 s aging, 2 s stop bound; exact-head gate and live proof remain separate |
30
30
  | Room health and codec compatibility (#1204 T4, #737) | source and isolated fixtures; installed rooms remain off here | metadata-only refused counts, outbox depth/ages, closed causes, store-open retry/stop and clock rollback; Bus recovery edge wakes receive-only admission; selective three-member traffic emits no false gap; broker opt-in preserves released-broker ephemeral/liveness and legacy presence; immediate-online and forced-refresh feature sends defer pending observations under the original TTL, known unsupported codecs refuse before wire effects; dgx02 and hosted evidence recorded in the PR, native/account and two-machine receipts remain unverified |
31
- | Guidance probes (#1226 T1/T2) | off here; production has no runner and refuses before reservation; confined adapter remains host-only and unwired, with no real worker/model trial | T1 manifest/CAS/shared-budget/recovery tests plus `test/guidance-probe-local-worker.test.ts`, `test/guidance-probe-input-matrix.test.ts` and `test/guidance-probe-sandbox.test.ts` cover exact request binding, role data, observer exclusion and budget/authority refusals; model-free macOS canary is the confinement gate, Linux proves unavailability only; real model behavior, T3 receipts/cleanup and separately authorized live evidence remain unverified |
31
+ | Guidance probes (#1226 T1/T2/T3/T4 partial) | off here; production has no runner and refuses before reservation; confined adapter remains host-only and unwired, with no real worker/model trial; T3 adds host-sealed receipts, an outcome denominator and owned-output prune that run only against fakes and fixtures; T4 adds the producer receipt read (`ahub guidance probe receipts`, the Guidance panel) and the fake-provider check gate, active after release and hub upgrade; **AC7's authorized live local-worker trial is not run and stays open** | T1 manifest/CAS/shared-budget/recovery tests plus `test/guidance-probe-local-worker.test.ts`, `test/guidance-probe-input-matrix.test.ts` and `test/guidance-probe-sandbox.test.ts` cover exact request binding, role data, observer exclusion and budget/authority refusals; model-free macOS canary is the confinement gate, Linux proves unavailability only; `test/guidance-probe-receipts.test.ts`, `test/guidance-probe-receipts-store.test.ts` and `test/guidance-probe-cleanup.test.ts` cover sealing with the host's own fingerprints, atomic settle-and-seal, replay stability, crash reconcile at daemon start and recovery release, the unknown-not-failed denominator, stricter-only comparability and identity-checked prune that never touches a receipt; T4: `test/guidance-probe-status.test.ts` (a real fake-provider run exports the sealed receipts and the full denominator, a tampered or moved receipt refuses the whole read, an output name that fails the public-field screen is withheld to its digest, a retained directory shows as a state and never a path), `test/guidance-probe-console.test.ts` (the real generated panel and provider over a scripted control port: one exact id forwarded, a reply for another probe or a late one shows nothing, no action advertised), `test/guidance-probe-cli.test.ts` (the real CLI process: shared text by default, verified JSON with `--json`, an older hub refused before a request) and `test/guidance-probe-gate.test.ts` (register, run, seal and read end to end, a mid-run restart recorded unknown and never relaunched, no source selects the local adapter); the metric that shows it works is the denominator: in any read, `counts` adds up to the declared slots and a slot with no receipt is `unknown`, never absent; real model behavior, real isolation, effective guidance delivery and separately authorized live evidence remain unverified |
32
32
  | Worktree shelf (#1057): `ahub worktrees`, `tidy`, `tidy --confirm <fingerprint>`, the Agents panel section, Park/Pin, the explicit PR refresh and the inbox alert | fixture-only until a person uses it, and only after release and upgrade: this repository keeps every task in `.worktrees/<name>`, so it is the first real use, but nothing here has run `tidy --confirm` yet, and `worktrees.quiet_days` stays 7 until the owner has used it for a week | `ahub worktrees` live and settled counts over a week, and how many settled rows a person then Pins (a Pin means a rule was wrong); `tidy` preview refusals by reason (`task not approved or cancelled`, `unpushed commits`, `branch changed since preview`); after a confirm, `git worktree list` against the preview; test/worktree-shelf.test.ts, test/worktree-tidy.test.ts and test/worktree-panel.test.ts (a PII row stays live and redacted, a branch switch refuses, no GitHub call on a read, the daemon removes nothing) |
33
33
  | Message bus, digests, priorities | on | `ahub report`: messages, digests, overflow, undeliverable; delivery latency from events |
34
34
  | Control-send recipient normalization (#963) | active after release and hub upgrade; this PR does not change the running hub | string recipients reach only the named peer, invalid shapes publish nothing, omitted/empty arrays preserve broadcast; real native recipient behavior remains unverified |
@@ -180,6 +180,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
180
180
  | 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 |
181
181
  | `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 |
182
182
  | `ahub init` settings flags (#1065 T1) | on wherever a person runs `ahub init`, new or existing project; fixture coverage only (the real CLI against scratch projects and a scratch hub home). The guided prompt (T2) and the specs rows (T3) are not built, and a person using the flags on a real project is not yet recorded | each `--dry-run --json` `settings` row is a change a person asked for (key, file, old and new value), `ahub init` refusals name the allowed values, and `git diff` of `.agenthub/config.json` after an init with flags shows only the named keys |
183
+ | Runnable person commands and the single-source AGENTS block (#1399) | on after release and upgrade: hold notices, `ahub status` and `ahub queue show` print the full `ahub queue resolve` command; this repository's block is the template. A project initialised earlier keeps its old block until `ahub init` runs there; fixture coverage only, no live relay to a person measured | `test/person-command.test.ts`: the hold notice's command passes the CLI argument rule with id, revision, action and reason; every profile renders every template bullet; a stale block is detected and refreshed with surrounding text kept. `ahub doctor` row `hub instructions` on a real project |
183
184
  | Init research default and completion guidance (#1328 T6) | available at init; live new-project adoption unverified, fake-HOME fixtures only (`test/init-settings.test.ts`, `test/init-prompt.test.ts`, `test/autonomy-defaults.test.ts`, `test/setup-research.test.ts`); no real setup or settings were changed by this task | new-project effective `research.enabled` equals the trusted explicit setup choice unless an init flag overrides it; init preserves the machine defaults bytes; ordinary setup leaves research unchanged; successful-init output names commit/start and advise/enforce person steps, with no next-steps block on a preview or refusal |
184
185
  | Jcode usage and context readings (#801) | source/fixture coverage and one isolated live probe of 0.99.1 against a fake gateway (docs/verification/2026-10-28-jcode-0.99.1-usage.md); a real account and provider remain unverified; no native quota reader (Jcode gives no window length) | `ahub status` and the dashboard show `jcode_usage_update` occupancy, `ahub usage` and `ahub report` rows for source `jcode_acp`, and `ahub budget` still says `no reading` for Jcode |
185
186
 
@@ -461,8 +461,9 @@ the time); `dispatching` and `accepted` deliveries stay refused, and `retry` kee
461
461
  generic sentence (#713). A failed row that a resolution already settled (for
462
462
  example the parent of a retry, whose redelivery is a separate row) is refused as
463
463
  `already resolved`, never `stale revision`. `ahub queue show` on a failed row says
464
- that nothing is left to do, or, if the row is unsettled, prints the `ahub queue
465
- resolve <id> --action discard|completed` command (#1098).
464
+ that nothing is left to do, or, if the row is unsettled, prints the full `ahub queue
465
+ resolve` command with the project directory, revision, `--action discard` and a
466
+ prefilled reason, and names `completed` as the other choice (#1098, #1399).
466
467
 
467
468
  `ahub queue discard --peer <id> --reason <text> [--state queued|needs_review|failed] [--yes] [--json]` clears one peer's backlog and is for the person or the configured conductor (any other agent identity is
468
469
  refused, and a remote `peer@label` queue is the person's only). Without `--yes` it only says how many deliveries it would discard; with `--yes` it discards each delivery of that peer through the
@@ -1082,7 +1083,11 @@ ahub up
1082
1083
  ```
1083
1084
 
1084
1085
  `ahub init` writes the project configuration and managed instruction blocks.
1085
- Run it after an upgrade when those blocks need refreshing. For a new repository
1086
+ Run it after an upgrade when those blocks need refreshing: `ahub doctor` has a
1087
+ `hub instructions` row that warns when the block in `AGENTS.md` differs from the
1088
+ one this version writes, and prints the preview (`ahub init --dry-run`) and
1089
+ apply (`ahub init --yes`) commands with the project path. Init replaces only the
1090
+ text between the markers; commit `AGENTS.md` afterwards (#1399). For a new repository
1086
1091
  using advise or enforce, follow the [SDLC quickstart sequence](quickstart.md#a-new-project-with-sdlc-advise-or-enforce).
1087
1092
 
1088
1093
  After a successful init, the short next-steps block says to review and commit
@@ -3946,7 +3951,10 @@ capabilities still require their own labels. A disjoint window refuses with 4426
3946
3951
  The compatibility-floor `protocol` field remains readable by old clients.
3947
3952
 
3948
3953
  Release N-1 is counted in minor versions, separately from this protocol window
3949
- (#1164, family contract entelecheia/ai-workspace#70). For 0.37.x, N-1 is 0.36.0,
3954
+ (#1164, family contract entelecheia/ai-workspace#70). For 0.38.x, N-1 is 0.37.0,
3955
+ the latest published patch of 0.37.x (exact `@staix/agent-mem` 0.24.0, control
3956
+ protocol 17 with descriptor floor 16). Every patch on 0.38.x keeps that release
3957
+ baseline. For 0.37.x, N-1 is 0.36.0,
3950
3958
  the latest published patch of 0.36.x (exact `@staix/agent-mem` 0.23.1, control
3951
3959
  protocol 17 with descriptor floor 16). Every patch on 0.37.x keeps that release
3952
3960
  baseline. For 0.36.x, N-1 is 0.35.0,
@@ -6455,7 +6463,7 @@ The selected project's configured conductor may run the commands below through i
6455
6463
  | research backfill / bench run / source add / goal link | Existing bounded CLI or daemon paths, with fixed audit labels |
6456
6464
  | start Jcode | Launcher-only peer the conductor is configured to start |
6457
6465
  | task unassign <id> [--role owner\|reviewer] [--revision N] | The actual conductor is recorded; no replacement is routed and no native work is stopped |
6458
- | guidance probe register/start/show/cancel | Bounded private probe declaration and fake-only lifecycle through Tasks (#1226); `--live-test` is refused and production has no probe runner |
6466
+ | guidance probe register/start/show/receipts/cancel | Bounded private probe declaration, fake-only lifecycle and the read-only sealed-receipt export through Tasks (#1226); `--live-test` is refused and production has no probe runner |
6459
6467
  | restart --yes | Only with a source-issued continuation proof for this project's own operation |
6460
6468
  | upgrade --yes --to <exact-version> | Only with proof for this project's supported exact-version upgrade; newer coordinator handoff is person-only |
6461
6469
  | recovery resume\|abort [<op-id>] | Only the initiating conductor's own restart/authorized-upgrade operation; the person keeps the normal recovery path |
package/docs/profiles.md CHANGED
@@ -95,7 +95,7 @@ nor an evidence relation creates a person verdict or proves entailment.
95
95
  - Classes may add or remap profile aliases to existing base classes. Existing base names keep their meanings; class maps are bounded to 32 override entries. Task storage and route explanations preserve the alias, including a dev custom alias, while routing/budgets/checks use its base. Other tasks under custom dev data retain the selected profile semantics too, so document sections do not become whole-path overlaps. Unmodified dev rows retain their old shape.
96
96
  - `plan_keys` selects distinct existing plan fields, not new board fields. Task proposals and their schemas use the selection. Accept schemas retain legacy fields for already existing tasks/profile changes.
97
97
  - `role_text` is bounded guidance for existing flow roles (2000 characters each); it grants no authority. `catalog_roles` supplies bounded compatible guidance ids; the existing explicit catalog selections take precedence. Actual flow maps remain in `roles` and retain their existing validation.
98
- - `agents` replaces only the managed AGENTS block (16000 characters maximum); surrounding instructions remain. Init previews contain paths/actions only. `example_checks` is at most 16 display strings of 2000 characters, shown as advisory examples by init and never selected as executable checks. `review_checklist` is at most 16 non-empty strings of 500 characters, customizing the checklist items in review requests with `{target}` and `{check}` interpolations. Existing `checks` trust remains authoritative.
98
+ - A shipped profile's `agents` is its own paragraph, appended to the shared `templates/AGENTS.block.md` inside the managed block (#1399). A project's `profile_overrides.agents` still replaces the whole managed block (16000 characters maximum); surrounding instructions remain either way. Init previews contain paths/actions only. `example_checks` is at most 16 display strings of 2000 characters, shown as advisory examples by init and never selected as executable checks. `review_checklist` is at most 16 non-empty strings of 500 characters, customizing the checklist items in review requests with `{target}` and `{check}` interpolations. Existing `checks` trust remains authoritative.
99
99
  - No override mutates shipped profile data or another project. Unknown fields, base remapping and invalid/oversized data are refused. Headers are quoted. Daemon/MCP restart is required for config changes; no native model consumption or research measurement is claimed.
100
100
 
101
101
  # Domain packs (#513a)
@@ -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.37.0
21
+ bun add -g github:STAIxBWLB/agent-hub#v0.38.0
22
22
  ahub setup
23
23
  ```
24
24
  <!-- /facts:install-tag -->
@@ -48,6 +48,12 @@ terminal in that project: it reviews the plan with you, applies it and follows
48
48
  it; other projects keep their version. It then names the `bun add -g` and
49
49
  `ahub setup` step when your global CLI or plugin is older than the new daemon.
50
50
 
51
+ ## Upgrading to 0.38.0
52
+
53
+ After the upgrade, a command the hub prints for you (a held delivery in `ahub status`, `ahub queue show`, the hold notice) runs as printed, with the project directory, revision, action and reason filled in. `ahub doctor` shows a `hub instructions` warning when the project's AGENTS.md block is older than this release: run `ahub init --dry-run` to preview and `ahub init --yes` to refresh it, then commit AGENTS.md. Guidance probe receipts (`ahub guidance probe receipts`) change nothing until you use them.
54
+
55
+ `ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.38.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
56
+
51
57
  ## Upgrading to 0.37.0
52
58
 
53
59
  The `@staix/agent-mem` pin moves to 0.24.0, whose storage formats equal 0.23.1's (#1396). Raise a shared home's curated format floor to 0.24.0 only after every hub sharing that home runs 0.37.0. The Orca, Herdr and Claude Code companions are no longer in this package: install them from STAIxBWLB/ahub-orca, STAIxBWLB/ahub-herdr and STAIxBWLB/ahub-claude, which read ahub only through the companion CLI contract v1 (#1387, #1392). The replaced routing modules and their Apache notice are gone; routes, `stage` compatibility and route events behave as before (#1393). `ahub console` now shows the daemon, console, global CLI and Claude plugin versions, and an AHUB column per peer (#1386). Nothing else changes until you use it: `ahub sdlc authorize-release` can read a committed version source for a project without `package.json` (#1383), and `ahub guidance probe register|start|show|cancel` records a private probe declaration whose lifecycle runs only with test fixtures; production has no probe runner (#1391, #1395). N-1 is published 0.36.0 and control remains 16 through 17.
package/docs/security.md CHANGED
@@ -1420,7 +1420,7 @@ variant grants no activation, permission, role or probe.
1420
1420
 
1421
1421
  ## Guidance probes (#1226)
1422
1422
 
1423
- `ahub guidance probe register|start|show|cancel` is the person's or the one
1423
+ `ahub guidance probe register|start|show|receipts|cancel` is the person's or the one
1424
1424
  configured conductor's, through the existing operational-authority admission; an
1425
1425
  ordinary peer, a console delegation and a `--live-test` run are refused. Every
1426
1426
  write goes through Tasks, which rechecks actor, session, task epoch and flow,
@@ -1436,7 +1436,11 @@ memory capture, observer or ordinary history) offers only `read`, `write` and
1436
1436
  `output/` paths, refuses non-regular and hardlinked targets and files over
1437
1437
  1 MiB, and runs any proof command under a narrowed seatbelt profile with network
1438
1438
  denied (the model-free proof's own control listener aside). It is fixture-proven
1439
- only and grants no real model or worker run ([design](design/guidance-probes.md)).
1439
+ only and grants no real model or worker run ([design](design/guidance-probes.md)). `receipts`
1440
+ is read-only under the same fences: it returns the host-sealed receipts, each
1441
+ re-verified against its own digest (a tampered row refuses the whole read), the
1442
+ outcome denominator and each slot's retention state, never a path; a
1443
+ model-written output name that fails the public screen is replaced by its digest.
1440
1444
 
1441
1445
  ## Execution lineage (#1220)
1442
1446
 
@@ -0,0 +1,41 @@
1
+ # 0.38.0 release verification
2
+
3
+ This record covers release preparation and source review. It claims no installation, no running-hub upgrade to 0.38.0 and no live TUI launch.
4
+
5
+ ## Candidate
6
+
7
+ Version 0.38.0, prepared from main 649715ef (3 commits since v0.37.0, 2 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.37.0: #1401, #1400, #1397.
12
+
13
+ - #1397 merged after its hub review at head 6c375dc5 with exact-head CI green.
14
+ - #1400 merged after hub approval at head 39e9863d with exact-head CI green; its review recorded one nit and AC7's live leg as unmet (the issue stays open).
15
+ - #1401 was written by the conductor, whose assigned reviewer was the person. It merged on the person's instruction to include it in this release, at head 0a0a9780 with exact-head CI green (`check (ubuntu-latest)`, `check (macos-latest)`, `seeded guards`, `routing-eval`) and no open review thread. It has no hub approval verdict: its review was an open-code-review delegation pass by its author, which found and fixed two defects (the project root in the resolve hint, the per-tick hold command). The connector reviews did not run (usage limits).
16
+
17
+ ## Native acceptance receipts
18
+
19
+ Receipts added under `docs/verification/` since v0.37.0: `docs/verification/2026-11-11-guidance-probe-t3-1226.md`, `docs/verification/2026-11-11-guidance-probe-t4-1226.md`.
20
+
21
+ 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.38.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.
22
+
23
+ ## Document review
24
+
25
+ `node scripts/check-docs.mjs` reported 18 stale documents: README.md, docs/adding-an-ai-tool.md, docs/addons/claude-mem.md, the eight notes under docs/agent-notes/ (adapters, benchmarks, budget, bus, daemon, local-worker, tasks, tests), docs/dogfood.md, docs/memory.md, docs/operations.md, docs/profiles.md, docs/quickstart.md, docs/security.md and src/cli/help.ts. The sources under them changed in #1397, #1400 and #1401 (guidance probe receipts, the person-command hints, the single-source AGENTS block, the doctor row). Three were corrected: docs/profiles.md (a shipped profile's `agents` is appended to the template), docs/security.md and docs/operations.md (`guidance probe receipts`; the failed-row resolve line prints the full command). docs/quickstart.md gained the upgrade note. `src/cli/help.ts` lists `guidance probe ... receipts` and matches `src/cli/main.ts`. The others needed no change. All 18 are stamped at 68471c80.
26
+
27
+ ## Checks
28
+
29
+ - `node scripts/check-docs.mjs --require-fresh`: OK, 0 stale documents.
30
+ - `bun x tsc --noEmit`: clean.
31
+ - `bun scripts/build.mjs --check` with the pinned Bun 1.4.2: fresh.
32
+ - `node scripts/check-package.mjs`: not run to completion locally (see gaps); CI runs it with the pinned npm.
33
+ - The release PR's exact-head CI run is the full gate; the conductor reads it before the merge.
34
+
35
+ ## Known gaps, not blocking
36
+
37
+ - The full suite was not run locally or on the remote host for this candidate; a remote run on an early #1401 head hit its 2250 s total bound. CI on both operating systems is the gate.
38
+ - `node scripts/check-package.mjs` refuses locally because this machine's npm 12.2.2 prints a different `npm pack --dry-run --json` shape than the pinned npm.
39
+ - No installation, running-hub upgrade or live TUI launch of 0.38.0.
40
+ - Guidance probes remain fixture-proven: the live local-worker trial (#1226 AC7) was not run.
41
+ - #1401's doctor row and init refresh were exercised by tests only, not on a second project.