@staix/agent-hub 0.34.1 → 0.36.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 (213) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +53 -7
  3. package/docs/adding-an-ai-tool.md +2 -2
  4. package/docs/addons/claude-mem.md +4 -4
  5. package/docs/addons/open-code-review.md +1 -1
  6. package/docs/agent-notes/README.md +66 -0
  7. package/docs/agent-notes/adapters.md +14 -7
  8. package/docs/agent-notes/budget.md +1 -1
  9. package/docs/agent-notes/bus.md +2 -1
  10. package/docs/agent-notes/daemon.md +9 -7
  11. package/docs/agent-notes/local-worker.md +1 -1
  12. package/docs/agent-notes/models.md +5 -2
  13. package/docs/agent-notes/tasks.md +9 -2
  14. package/docs/agent-notes/tests.md +6 -0
  15. package/docs/design/adapters.md +182 -2
  16. package/docs/design/agent-hub-architecture.md +64 -2
  17. package/docs/design/agent-hub.md +6 -0
  18. package/docs/design/bus.md +26 -0
  19. package/docs/design/execution-reference.md +306 -0
  20. package/docs/design/guidance-experiments.md +438 -0
  21. package/docs/design/model-routes.md +628 -0
  22. package/docs/design/supervision.md +121 -0
  23. package/docs/design/task-board.md +121 -0
  24. package/docs/dogfood.md +45 -13
  25. package/docs/events.md +38 -20
  26. package/docs/memory.md +21 -7
  27. package/docs/operations.md +824 -40
  28. package/docs/profiles.md +2 -2
  29. package/docs/quickstart.md +117 -4
  30. package/docs/research.md +73 -13
  31. package/docs/roles.md +1 -1
  32. package/docs/sdlc.md +117 -11
  33. package/docs/security.md +153 -15
  34. package/docs/smoke.md +14 -0
  35. package/docs/specs/2026-09-19-agent-hub-design.md +13 -7
  36. package/docs/verification/2026-10-25-qwen-dual-output-t0.md +22 -0
  37. package/docs/verification/2026-11-07-compat-python-startup-1248.md +51 -0
  38. package/docs/verification/2026-11-07-compat-receipt-harness-1248.md +105 -0
  39. package/docs/verification/2026-11-07-compat-receipt-producers-1248.md +96 -0
  40. package/docs/verification/2026-11-07-compat-workflow-1248.md +94 -0
  41. package/docs/verification/2026-11-07-daemon-startup-1232.md +169 -0
  42. package/docs/verification/2026-11-07-jcode-receipt-reconstruction-1248.md +118 -0
  43. package/docs/verification/2026-11-07-kimi-delayed-usage.md +34 -0
  44. package/docs/verification/2026-11-07-kimi-review-watch-1284.md +115 -0
  45. package/docs/verification/2026-11-08-agy-1.5.3.md +96 -0
  46. package/docs/verification/2026-11-08-agy-acp-t0.md +56 -0
  47. package/docs/verification/2026-11-08-hub-visual-1058.md +161 -0
  48. package/docs/verification/2026-11-08-jcode-0991-model-setter-1317.md +143 -0
  49. package/docs/verification/2026-11-08-kimi-252-model-setter-1317.md +137 -0
  50. package/docs/verification/2026-11-08-kimi-tui-completion-1282.md +45 -0
  51. package/docs/verification/2026-11-08-kimi-wire-yield-1283.md +31 -0
  52. package/docs/verification/2026-11-08-live-model-override-1317.md +250 -0
  53. package/docs/verification/2026-11-08-qwen-0269-acp.md +138 -0
  54. package/docs/verification/2026-11-08-qwen-0269-model-setter-1317.md +91 -0
  55. package/docs/verification/2026-11-09-0.35.0.md +129 -0
  56. package/docs/verification/2026-11-09-headless-records-1320.md +157 -0
  57. package/docs/verification/2026-11-09-qwen-0270-acp.md +181 -0
  58. package/docs/verification/2026-11-09-qwen-0270-model-setter-1317.md +46 -0
  59. package/docs/verification/2026-11-10-0.36.0.md +59 -0
  60. package/docs/verification/2026-11-10-claude-implementer-2.1.322.md +59 -0
  61. package/docs/verification/2026-11-10-qwen-0270-dual-output.md +367 -0
  62. package/docs/verification/2026-11-10-qwen-0271-dual-output.md +101 -0
  63. package/docs/verification/claude-permission-transport-native.py +10 -3
  64. package/docs/verification/claude-shell-wrapper-native.py +8 -8
  65. package/docs/verified.json +245 -15
  66. package/package.json +3 -3
  67. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  68. package/plugins/agent-hub/kimi-hook.js +21230 -0
  69. package/plugins/agent-hub/kimi-review-policy-worker.js +217 -0
  70. package/plugins/agent-hub/server.js +4359 -1071
  71. package/scripts/check-docs.mjs +12 -1
  72. package/src/adapters/acp-model-policy.ts +56 -0
  73. package/src/adapters/acp.ts +175 -5
  74. package/src/adapters/agy/entry.ts +8 -5
  75. package/src/adapters/agy/hooks.ts +65 -15
  76. package/src/adapters/channel-peer.ts +33 -1
  77. package/src/adapters/claude-channel.ts +7 -4
  78. package/src/adapters/claude-implementer.ts +16 -3
  79. package/src/adapters/codex-appserver.ts +118 -8
  80. package/src/adapters/codex-review-isolation.ts +3 -1
  81. package/src/adapters/compat.ts +18 -13
  82. package/src/adapters/definitions/builtin-metadata.ts +8 -1
  83. package/src/adapters/definitions/native-cli-entry-kimi.ts +76 -7
  84. package/src/adapters/definitions/native-cli-preview-common.ts +2 -2
  85. package/src/adapters/definitions/native-cli-preview-kimi.ts +9 -2
  86. package/src/adapters/definitions/reviewer-variants.ts +3 -1
  87. package/src/adapters/kimi-review-policy-worker.js +2 -0
  88. package/src/adapters/kimi-review-policy-worker.ts +85 -0
  89. package/src/adapters/kimi-review-policy.ts +68 -0
  90. package/src/adapters/kimi-review.ts +41 -41
  91. package/src/adapters/kimi-tui-facts.ts +153 -0
  92. package/src/adapters/kimi-wire-usage.ts +33 -8
  93. package/src/adapters/local-worker.ts +60 -21
  94. package/src/adapters/model-token.ts +3 -0
  95. package/src/adapters/pi.ts +27 -5
  96. package/src/adapters/qwen-dual.ts +324 -44
  97. package/src/adapters/registry-types.ts +34 -3
  98. package/src/adapters/registry.ts +1 -0
  99. package/src/adapters/reviewer-policy-watch.ts +86 -0
  100. package/src/adapters/reviewer-print.ts +80 -18
  101. package/src/cli/agents.ts +1 -1
  102. package/src/cli/facts-hook.ts +4 -2
  103. package/src/cli/guidance.ts +67 -0
  104. package/src/cli/help.ts +13 -5
  105. package/src/cli/identity.ts +13 -3
  106. package/src/cli/init-prompt.ts +15 -2
  107. package/src/cli/init-required-checks.ts +122 -0
  108. package/src/cli/init-settings.ts +10 -4
  109. package/src/cli/init.ts +39 -3
  110. package/src/cli/kimi-facts-hook.ts +11 -0
  111. package/src/cli/kimi-plugin.ts +157 -0
  112. package/src/cli/lineage.ts +78 -0
  113. package/src/cli/main.ts +159 -19
  114. package/src/cli/model.ts +52 -0
  115. package/src/cli/output.ts +23 -1
  116. package/src/cli/reset.ts +1 -1
  117. package/src/cli/setup-research.ts +10 -0
  118. package/src/cli/status-lines.ts +8 -4
  119. package/src/hub/autonomy-defaults.ts +20 -9
  120. package/src/hub/board.ts +346 -4
  121. package/src/hub/budget.ts +1 -1
  122. package/src/hub/build-entry.ts +11 -0
  123. package/src/hub/bus.ts +52 -2
  124. package/src/hub/ci-watch.ts +4 -4
  125. package/src/hub/code-facts.ts +10 -3
  126. package/src/hub/completions.ts +3 -1
  127. package/src/hub/config-apply.ts +3 -1
  128. package/src/hub/config-trust.ts +1 -0
  129. package/src/hub/control-client.ts +1 -1
  130. package/src/hub/daemon.ts +1387 -121
  131. package/src/hub/deliverable-files.ts +38 -5
  132. package/src/hub/delivery-hints.ts +4 -2
  133. package/src/hub/delivery-journal.ts +50 -2
  134. package/src/hub/delivery-public.ts +51 -0
  135. package/src/hub/dogfood-profile.ts +9 -5
  136. package/src/hub/envelope.ts +1 -1
  137. package/src/hub/events.ts +28 -18
  138. package/src/hub/execution-lineage-owner.ts +272 -0
  139. package/src/hub/execution-lineage.ts +164 -0
  140. package/src/hub/execution-links.ts +85 -0
  141. package/src/hub/execution-reference.ts +36 -0
  142. package/src/hub/guidance-variants.ts +398 -0
  143. package/src/hub/handoff.ts +1 -0
  144. package/src/hub/hub-tools.ts +62 -2
  145. package/src/hub/instances.ts +4 -3
  146. package/src/hub/kimi-events.ts +46 -0
  147. package/src/hub/kimi-usage.ts +132 -29
  148. package/src/hub/lifecycle.ts +31 -15
  149. package/src/hub/limits.ts +13 -4
  150. package/src/hub/manager.ts +58 -3
  151. package/src/hub/memory-policy.ts +4 -3
  152. package/src/hub/memory-sync-attestation.ts +54 -0
  153. package/src/hub/memory-sync-state.ts +20 -5
  154. package/src/hub/model-overrides.ts +115 -0
  155. package/src/hub/native-hook-launch.ts +12 -3
  156. package/src/hub/operational-view.ts +2 -2
  157. package/src/hub/peers.ts +28 -1
  158. package/src/hub/permission-mode.ts +1 -1
  159. package/src/hub/person-figures.ts +88 -0
  160. package/src/hub/planning.ts +1 -1
  161. package/src/hub/progress.ts +24 -7
  162. package/src/hub/report.ts +38 -4
  163. package/src/hub/research-dataset.ts +158 -0
  164. package/src/hub/research-memory.ts +68 -0
  165. package/src/hub/research-quality.ts +118 -0
  166. package/src/hub/research-record.ts +279 -0
  167. package/src/hub/research.ts +126 -27
  168. package/src/hub/restart.ts +27 -0
  169. package/src/hub/roles.ts +26 -0
  170. package/src/hub/routing.ts +4 -1
  171. package/src/hub/sdlc-merge.ts +39 -1
  172. package/src/hub/sdlc-release.ts +1 -1
  173. package/src/hub/sdlc.ts +62 -11
  174. package/src/hub/settings.ts +5 -0
  175. package/src/hub/startup-event-seeds.ts +51 -0
  176. package/src/hub/startup-readiness.ts +65 -0
  177. package/src/hub/startup-timing.ts +38 -0
  178. package/src/hub/supervision-proposals.ts +405 -0
  179. package/src/hub/supervision-rules.ts +388 -0
  180. package/src/hub/supervision.ts +2 -0
  181. package/src/hub/task-approval.ts +2 -2
  182. package/src/hub/task-repository.ts +5 -0
  183. package/src/hub/tasks.ts +632 -59
  184. package/src/hub/ui.ts +9 -5
  185. package/src/hub/visual-assets.ts +50 -0
  186. package/src/hub/visual.ts +257 -0
  187. package/src/memory/brief.ts +169 -14
  188. package/src/memory/capture.ts +4 -3
  189. package/src/memory/recall.ts +46 -5
  190. package/src/memory/record-provenance.ts +82 -0
  191. package/src/memory/records.ts +116 -0
  192. package/src/models/relay.ts +9 -2
  193. package/src/models/route/adec.ts +190 -0
  194. package/src/models/route/config.ts +64 -3
  195. package/src/models/route/decision-evidence.ts +83 -0
  196. package/src/models/route/decision.ts +215 -0
  197. package/src/models/route/relay-selector.ts +8 -7
  198. package/src/models/route/runtime.ts +35 -22
  199. package/src/models/route/stage-diagnostics.ts +22 -0
  200. package/src/models/route/stage-evidence.ts +55 -0
  201. package/src/models/route/stage-fallback.ts +58 -0
  202. package/src/models/route/stage-input.ts +155 -0
  203. package/src/models/route/stage.ts +5 -147
  204. package/src/ui/guidance-panel.ts +156 -0
  205. package/src/ui/guidance-view.ts +43 -0
  206. package/src/ui/index.html +134 -6
  207. package/src/ui/lineage-view.ts +34 -0
  208. package/src/ui/plugin.ts +136 -11
  209. package/templates/AGENTS.block.md +1 -1
  210. package/templates/config.json +1 -1
  211. package/templates/profiles/general.json +1 -1
  212. package/templates/profiles/research.json +1 -1
  213. package/templates/profiles/writing.json +1 -1
@@ -90,14 +90,76 @@ returns an ids-only receipt and excludes its arguments/results from capture.
90
90
  Its T1 authorization, revision and recovery boundaries are defined in
91
91
  [the task-board contract](task-board.md#claim-evidence-records-931-t1).
92
92
 
93
+ ## Bounded visual attachments (#1058)
94
+
95
+ Bounded visual attachments (#1058) are local project records in `hub.db`, separate
96
+ from task transitions and delivery receipts. The hub validates and privacy-screens
97
+ the exact acon `VisualPayload` shape; peers receive only a sanitized stub with
98
+ `refs.visual`, and explicitly request the source through a guarded read. acon owns
99
+ rendering and its sandbox; the standalone dashboard uses text/source fallback.
100
+ The hub imports contract types only, with no renderer or new runtime dependency.
101
+ Image bytes use the existing guarded deliverable reader and current hash/policy
102
+ checks; console asset identifiers bind their originating project and instance.
103
+ Raw visual tool arguments/results never enter observer capture, even on refusal.
104
+ The unchanged acon shape has additional hub admission ceilings: 1 MiB serialized
105
+ payload; UTF-8 bytes Mermaid source 20 KiB, title 300, caption 2000, alt 1000,
106
+ text side 20 KiB, option
107
+ summary 4000, each pro/con 2000, table cell 4000, key 128, path 4096 and asset
108
+ reference 256. These are hub limits, not a claim that acon imposes each limit;
109
+ validation refuses rather than truncates. acon counts Mermaid UTF-16 code units
110
+ and leaves captions unbounded, while the hub counts UTF-8 bytes. All 42 published
111
+ acon 0.1.7 visual cases are consumed directly; six named valid-acon cases are
112
+ rejected only by these stricter source/caption/asset-ID ceilings. Historical
113
+ hub-owned cases remain extra coverage, not a substitute for the shared fixture.
114
+
115
+ Periodic dashboard snapshots and task lists project bounded, screened metadata
116
+ only; they do not deserialize or screen complete visual payloads. Explicit show
117
+ and asset requests perform the full current-policy checks. A missing image does
118
+ not erase its visual's public explanation; asset existence and hash validation
119
+ belong to the guarded asset read. Non-sensitive refusals identify recovery,
120
+ authority, concurrent change or unavailable screening and their repair action;
121
+ sensitive privacy refusals keep a uniform message.
122
+
123
+ Publication does a non-consuming rate check before model screening or image
124
+ reads and still consumes admission once immediately before publication. Visuals
125
+ are explanatory output, not task progress for no-write detection.
126
+ Held controlled recovery compares retained visual integrity before startup
127
+ retention pruning; startup, periodic and tool pruning all wait until both the
128
+ recovery transaction and bus recovery hold are clear.
129
+
93
130
  ## Models and memory
94
131
 
95
- Peer selection, hub-owned model routing, and provider access are distinct layers. Task routing chooses a peer; the in-process route selects a model for hub-owned inference; OmniRoute owns provider keys, provider fallback, and usage. Native CLIs retain their own account and provider configuration; subscription OAuth credentials are not pooled through the gateway. The former Switchyard sidecar is retired; routing now runs in process. This keeps provider credentials and fallback policy in one gateway while avoiding a second routing service ([#553](https://github.com/STAIxBWLB/agent-hub/issues/553)).
132
+
133
+ Peer selection, hub-owned model routing, and provider access are distinct layers. Task routing chooses a peer; the in-process route selects a model for hub-owned inference; OmniRoute owns provider keys, provider fallback, and usage. Native CLIs retain their own account and provider configuration; subscription OAuth credentials are not pooled through the gateway. The former Switchyard sidecar is retired; routing now runs in process. An opt-in `decision` route may consult the loopback agent-decide policy service; execution and provider access remain in the hub and OmniRoute, with the existing heuristic as the consumer fallback. This keeps worker-provider credentials and provider failover in one gateway; the optional policy consult does not proxy the worker's inference traffic ([#553](https://github.com/STAIxBWLB/agent-hub/issues/553)).
134
+
135
+ Person-owned live model overrides (#1317) are runtime state in `hub.db`, not
136
+ configuration edits. The host owns person admission, desired-versus-applied
137
+ selection, next-turn fencing, status and audit; adapters acknowledge only their
138
+ own captured spawn/transport acceptance. The override does not grant a model,
139
+ provider or account authority to a peer. Unsupported surfaces remain unsupported
140
+ without automatic restarts. Tier 3 configuration, recovery and native isolation
141
+ boundaries stay in place; the [adapter contract](adapters.md#person-owned-live-model-selection-1317)
142
+ defines supported turn paths and evidence limits.
96
143
 
97
144
  The hub's portable memory storage, sync, indexing, and project helpers come from the pinned first-party `@staix/agent-mem` package. `src/memory/` and `Tasks` provide hub-specific capture, recall, privacy screening, task briefs, and shared notes. Runtime memory is in-process: there is no claude-mem worker HTTP client or model summarizer. claude-mem is an off-by-default, import-only source. This removes a second capture path while keeping caller authority and task privacy in the hub ([#752](https://github.com/STAIxBWLB/agent-hub/issues/752), [agent-mem#13](https://github.com/STAIxBWLB/agent-mem/issues/13)).
98
145
 
99
146
  Long-term hub writes and core promotion callbacks use the configured standalone sync policy plus hub narrowing. Profile readiness is independent of the current daemon's last automatic sync result. Public status exposes safe cause/count/action metadata; person-only declined inspection exposes IDs and rule categories, with explicit incomplete state when the portable core cannot supply a bounded physical view. Portable row placement and physical sync inspection remain agent-mem responsibilities.
100
147
 
148
+
149
+ The adec backend (#554) is default-off and shadow-first. A shadow pick changes
150
+ neither the heuristic model/effort nor the forwarded conversation. The service
151
+ owns question assembly, hard rules, thresholds, pins and policy fallback; the hub
152
+ owns allowed-pair validation, its default-off shadow switch, current turn and
153
+ budget/campus admission, and original gateway execution. `enforce` is refused at configuration load and
154
+ no pick is applied in this delivery. The bounded evidence
155
+ builder runs only after admission and uses the host public-view screen; it never
156
+ sends tool arguments, system instructions or full history. Sensitive turns are
157
+ campus-gated before evidence and carry dimensions only plus privacy flags.
158
+ Review-observer and remote inputs do not reach this optional observer. Route
159
+ records retain closed metadata, not evidence or service error prose. Direct
160
+ System One integration, the optional stage classifier and the manual triage
161
+ comparison remain outside this consumer slice.
162
+
101
163
  ## Privacy and recovery
102
164
 
103
165
  Session titles for the two hub-owned title slots (#1055) are conditional writes
@@ -122,4 +184,4 @@ The architecture does not claim that a fixture proves a real provider account, n
122
184
 
123
185
  The task-board module owns anchored findings and person-authored comment lifecycles. Transport carries one explicit review package only after `Tasks` admits the selected draft set; drafting and editing do not start peer turns. acon supplies the shared review kit and a server-verified person identity, while the standalone dashboard reads counts and bounded placements only. Neither surface writes the Board directly.
124
186
 
125
- The host-only review package reference is an observer exclusion, not PII authority. Durable open comment/finding scope protects memory notes naming that task after restart or intervening input. Capture, progress and session-title exclusion follows the current review input, not unrelated board history. ID-only current-input holds survive daemon restart. An intact, readable, complete store with no matching held record admits a new session as clean. Unreadable or corrupt storage and unconfirmed coverage for the current identity remain excluded. A validated release receipt confirms that identity without declaring other legacy identities clean. For an identified pull-only session, a positive held row remains sticky across restart until confirmed native identity changes. Its own incomplete marker excludes until verified ordinary replacement or a confirmed new session clears that marker; legacy coverage alone does not create a sticky hold. Missing native identity permits handout under an in-RAM unknown-held scope. A never-identified peer can release it with verified ordinary replacement in that daemon run; earlier positive or incomplete SID rows instead keep unidentified observer state held until a real SID is confirmed. First confirmation persists any current RAM quote under that SID before clearing the peer marker, without discarding other SID rows. It does not invent a native identity or weaken write-failure refusal. Legacy coverage completes from settled journal evidence, after which NULL clean receipts can be pruned; corrupt state remains excluded and is named in status with a repair next step. The hold grants no authority; the task-bound recipient summary and check output remain distinct from observer projections. Explicit publication recovery uses the saved immutable envelope and retained journal evidence, never automatic effect replay. Its intended recipient may read a public package, but memory capture, operational views, delivery logging and incoming-message labels exclude its body. Local-worker capture latches exclusion before any tool in a batch that submits an anchored verdict, including a refused verdict, and applies it to subsequent capture, final summaries and retained history. A delayed response cannot become capturable when another turn starts. Recovery advertises the conditional `review_comments` feature when retained comment/package records require it. It also requires `review_observer_input_state` when held or unknown session-input provenance could otherwise be lost. See [the task-board contract](task-board.md#anchored-review-packages-1056) for bounds, immutable snapshot placement and lifecycle authority.
187
+ The host-only review package reference is an observer exclusion, not PII authority. Durable open comment/finding scope protects memory notes naming that task after restart or intervening input. Capture, progress and session-title exclusion follows the current review input, not unrelated board history. The read-only own held inbox view (#1328 AC6) creates no durable handout receipt. Its narrow conservative ceiling also excludes retained readable observer-excluded held inputs (trusted review packages and host-stamped peer chat/status responses) across restart until explicit disposition, even if unread; an overflowing or unreadable recipient row/byte window stays unknown and excluded because a previously viewed review can move outside the window. Ordinary queued/deferred review rows do not acquire this ceiling, and verified ordinary replacement retains its existing turn rules. ID-only current-input holds survive daemon restart. An intact, readable, complete store with no matching held record admits a new session as clean. Unreadable or corrupt storage and unconfirmed coverage for the current identity remain excluded. A validated release receipt confirms that identity without declaring other legacy identities clean. For an identified pull-only session, a positive held row remains sticky across restart until confirmed native identity changes. Its own incomplete marker excludes until verified ordinary replacement or a confirmed new session clears that marker; legacy coverage alone does not create a sticky hold. Missing native identity permits handout under an in-RAM unknown-held scope. A never-identified peer can release it with verified ordinary replacement in that daemon run; earlier positive or incomplete SID rows instead keep unidentified observer state held until a real SID is confirmed. First confirmation persists any current RAM quote under that SID before clearing the peer marker, without discarding other SID rows. It does not invent a native identity or weaken write-failure refusal. Legacy coverage completes from settled journal evidence, after which NULL clean receipts can be pruned; corrupt state remains excluded and is named in status with a repair next step. The hold grants no authority; the task-bound recipient summary and check output remain distinct from observer projections. Explicit publication recovery uses the saved immutable envelope and retained journal evidence, never automatic effect replay. Its intended recipient may read a public package, but memory capture, operational views, delivery logging and incoming-message labels exclude its body. Local-worker capture latches exclusion before any tool in a batch that submits an anchored verdict, including a refused verdict, and applies it to subsequent capture, final summaries and retained history. A delayed response cannot become capturable when another turn starts. Recovery advertises the conditional `review_comments` feature when retained comment/package records require it. It also requires `review_observer_input_state` when held or unknown session-input provenance could otherwise be lost. See [the task-board contract](task-board.md#anchored-review-packages-1056) for bounds, immutable snapshot placement and lifecycle authority.
@@ -25,6 +25,12 @@ The core loop is to propose and assign work, exchange addressed messages while p
25
25
 
26
26
  The hub also owns a local worker and optional model calls for its own inference. It does not replace every native agent with that loop, pool subscription credentials, or make native behavior identical across vendors. Native adapters preserve those differences behind explicit contracts ([#625](https://github.com/STAIxBWLB/agent-hub/issues/625), [#553](https://github.com/STAIxBWLB/agent-hub/issues/553)).
27
27
 
28
+ Bounded local visual attachments let ordinary peers explain public work with a
29
+ diagram, comparison, table or before/after view. The hub stores and screens the
30
+ record while acon renders it; recipients receive a text stub, and the standalone
31
+ dashboard retains a readable source fallback. This adds no renderer, native-agent
32
+ authority or cross-project board to the hub ([#1058](https://github.com/STAIxBWLB/agent-hub/issues/1058)).
33
+
28
34
  ## Product decisions
29
35
 
30
36
  | Current rule | Reason and deciding issue |
@@ -9,6 +9,8 @@ paths:
9
9
  - src/hub/envelope.ts
10
10
  - src/hub/limits.ts
11
11
  - src/hub/delivery-journal.ts
12
+ - src/hub/delivery-public.ts
13
+ - src/hub/memory-policy.ts
12
14
  - src/hub/delivery-superseded.ts
13
15
  - src/hub/deferred-hub.ts
14
16
  - src/cli/reset.ts
@@ -31,6 +33,18 @@ The bus applies limits to a sender, sender-recipient pair, important messages, a
31
33
 
32
34
  ## Queues and delivery outcomes
33
35
 
36
+ `hub_visual` (#1058) publishes only a bounded chat stub naming a local visual
37
+ record through `refs.visual`. Its default audience is the console at FYI priority;
38
+ explicit recipients use existing addressed-message rules. Neither Mermaid source,
39
+ table/comparison bodies nor image bytes are embedded in the envelope or delivery
40
+ journal. A source read is explicit, local to the project and privacy-guarded.
41
+ Visual publication grants no task, native-session, invocation or broker authority.
42
+ Before expensive visual screening or image reads, `Limiter.peek` uses the same
43
+ admission decision as `admit` without changing buckets or repeat history. The
44
+ final `admit` still consumes once against current state before record/publication
45
+ effects; a successful preflight never reserves or grants future delivery.
46
+
47
+
34
48
  The in-memory bus schedules messages; `DeliveryJournal` durably records an individual transport attempt and the original envelopes behind any rendered output. A peer receipt such as `accepted` or `completed` describes transport, not the corresponding task's acceptance, completion, or approval. That separation lets a timeout or restart remain explicitly uncertain without inventing a task outcome ([#37](https://github.com/STAIxBWLB/agent-hub/issues/37)).
35
49
 
36
50
  A closed bus returns an empty publication outcome before provenance, privacy,
@@ -66,6 +80,12 @@ metadata-only aggregate does not hydrate delivery payloads ([#1178](https://gith
66
80
 
67
81
  A peer may settle its own local `needs_review` row as completed or discard while busy, with the observed revision and a public-safe reason; this records a delivery decision and never changes task state or redelivers the original. Another peer or a remote-room actor remains refused. Active `dispatching` rows remain refused; an `accepted` row is settleable only by its explicit push channel owner as described below. Invocation-bearing rows also remain person-settled because a transport action cannot assert the outcome of an invoked operation. `hub_inbox` may pass a `needs_review` hold to return newer queued messages and bounded id/revision metadata naming the held row, while leaving the uncertain originals held. Pause, recovery, lifecycle, storage, and active-delivery fences still apply. This lets the current recipient make progress without treating uncertain work as delivered ([#1079](https://github.com/STAIxBWLB/agent-hub/issues/1079), [#445](https://github.com/STAIxBWLB/agent-hub/issues/445), [#991](https://github.com/STAIxBWLB/agent-hub/issues/991)).
68
82
 
83
+ `hub_inbox` also offers a read-only view of the authenticated recipient's own held originals (#1328 AC6). It reads `needs_review` rows, plus `accepted` rows only for the current explicit-settlement channel. This is inspection of an uncertain earlier attempt, never a new handout, retry, ACK, resolution or task-offer read. Repeated views leave delivery state, revision, attempt, resolution audit and bus queues unchanged. Normal queued pulls and local failed-push fallback retain their existing semantics; a failed held component cannot discard an already committed normal pull.
84
+
85
+ The held view selects at most 32 recipient rows with a 33rd-row sentinel and bounds raw UTF-8 JSON in SQL before hydrating originals, using the host's `bus.pull_budget_bytes`; callers cannot choose a recipient, state set or budget. Oversized, truncated and unavailable content is named explicitly. Bodies reuse the public queue body projection: current private or missing tasks and private envelopes are stubs, metadata screening withholds unsafe text, and rendered bodies are sanitized. The owned implementer additionally needs its current launch, execution root, generation and task; review-only item restrictions remain in force. No failure/room/resolution metadata or condensed `out` is added to this body view.
86
+
87
+ An observer-excluded held view latches observer exclusion in RAM without a durable handout receipt. As a conservative ceiling, readable observer-excluded held inputs (trusted review packages and host-stamped peer chat/status responses) exclude capture/progress across restart until explicit disposition, even if unread; queued/deferred review rows do not acquire this new ceiling. An overflowing or unreadable row/byte window also remains unknown and excluded: a previously viewed row can move outside that window. Unknown storage excludes observers, and incomplete or corrupt legacy provenance withholds held bodies without refreshing or repairing metadata. This can later narrow with host-verified read provenance, never by inventing transport acceptance.
88
+
69
89
  An explicit push channel may settle or discard its own `accepted` row with the observed revision and a public-safe reason. `accepted` means the channel transport accepted the notification, not that the session handled it. If neither a native completion nor an explicit disposition arrives within the configured `bus.accepted_settle_ms` window, the host moves the row to `needs_review` with a fixed timeout cause and never replays it. The channel's `hub_inbox` metadata includes its own accepted and held rows, with ids and revisions, even while an active accepted delivery blocks pulling. An important, task, or review timeout adds one ids-only status notice when a conductor is configured and its existing `conductor.feed` policy is on; `feed: off` remains an explicit opt-out. Timed-out rows stay held until a person or the explicit channel session records a disposition; task state does not settle them ([#1172](https://github.com/STAIxBWLB/agent-hub/issues/1172)).
70
90
 
71
91
  An `answer` envelope (#1053) is a person's late answer to a question a peer asked with `hub_ask`. The hub builds it: `kind: "answer"`, `from: user`, addressed to the asking peer only, with the deterministic id `answer-<set>` (a republish after a crash is dropped by the bus's own dedupe) and `refs.question`. Code keys on `kind`, never on the sender, and an `answer` never supersedes the question it answers. Its body is the person's text, so the log line, the console tail and the dashboard feed show a fixed stub; only the recipient reads it. A question expiry is a hub `status` notice, never an answer.
@@ -297,3 +317,9 @@ step. Support is rechecked across awaited admission and at actual publication.
297
317
  Live signed observations are scoped to the current connection and roster; saved,
298
318
  stale or replayed presence never grants codec support. Existing native, exposure,
299
319
  privacy and invocation authorization checks still decide whether a send is allowed.
320
+
321
+ ## Record final-answer projection (#1320)
322
+
323
+ 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.
324
+
325
+ 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.
@@ -0,0 +1,306 @@
1
+ ---
2
+ id: execution-reference
3
+ type: module
4
+ title: Execution Reference and Bounded Lineage
5
+ status: draft
6
+ parent: agent-hub-architecture
7
+ depends-on: [task-board, bus]
8
+ references: [task-board, bus]
9
+ implements: []
10
+ covers: [execution-reference]
11
+ tags: [agent-hub]
12
+ paths:
13
+ - src/hub/execution-reference.ts
14
+ - src/hub/execution-lineage.ts
15
+ - src/hub/execution-lineage-owner.ts
16
+ - src/hub/execution-links.ts
17
+ - src/cli/lineage.ts
18
+ - test/execution-lineage-admission.test.ts
19
+ - test/execution-link-tasks.test.ts
20
+ - test/execution-lineage-owner.test.ts
21
+ - test/execution-lineage-control.test.ts
22
+ - test/execution-lineage-cli.test.ts
23
+ - test/execution-lineage-console.test.ts
24
+ - test/execution-lineage-performance.test.ts
25
+ - test/execution-reference.test.ts
26
+ - test/execution-lineage.test.ts
27
+ - src/ui/lineage-view.ts
28
+ - test/fixtures/execution-reference-v1.json
29
+ ---
30
+
31
+ # ExecutionReferenceV1
32
+
33
+ Source-owner contract for [#1220](https://github.com/STAIxBWLB/agent-hub/issues/1220).
34
+ T1 supplies an address validator, neutral vectors and a pure reader. T2 adds
35
+ Tasks admission and CLI/MCP wiring; T3 owns the console and measured performance.
36
+ The only new persistence is admitted, deduplicated external-reference metadata.
37
+ There is no automatic resolver, backfill or runtime polling.
38
+
39
+ ## Address contract
40
+
41
+ An address is `{v: 1, tool, projectKey, kind, id, revision?, sha256?}`.
42
+ It names evidence; it does not attest to it or grant access to it.
43
+
44
+ | Field | Rule |
45
+ | --- | --- |
46
+ | `v` | Exactly the integer 1 |
47
+ | `tool` | Known producer id: `ahub`, `ares`, `amem`, `vmem` |
48
+ | `projectKey` | Opaque producer project identity, nonempty, at most 256 UTF-8 bytes |
49
+ | `kind` | Producer-namespaced by `(tool, kind)`, lowercase token matching `[a-z][a-z0-9._-]*`, at most 64 bytes |
50
+ | `id` | Opaque source identity, nonempty, at most 256 UTF-8 bytes |
51
+ | `revision` | Optional nonempty opaque source revision, at most 128 UTF-8 bytes |
52
+ | `sha256` | Optional lowercase 64-hex content hash |
53
+
54
+ Reject unknown fields, unsupported producers/versions, null optional fields,
55
+ control characters, unpaired surrogates, accessors, symbol keys and inherited
56
+ objects. Do not trim, case-fold or Unicode-normalize identity. Absent optional
57
+ fields stay absent. The producer vocabulary identifies owners, not enabled
58
+ resolvers: an unknown kind can be syntactically valid yet unsupported by its owner.
59
+ Consumers validate this boundary locally without importing hub internals or a new
60
+ shared runtime dependency. Neutral valid/invalid JSON vectors live in
61
+ `test/fixtures/execution-reference-v1.json`; UTF-8 limits include multibyte cases.
62
+
63
+ A path-like or URL-like id is still opaque data. Never open, execute, fetch,
64
+ route to another node or interpret credentials from any address field. A resolver
65
+ must separately select a known source owner and its authorized project; no
66
+ implicit node or project fallback is allowed. Every `ahub` node has the source
67
+ hub project key. A foreign producer key is allowed only on an admitted
68
+ `declared-external` target node, with declared strength. It stays verbatim and is
69
+ never compared with the hub namespace, resolved, fetched or used for routing.
70
+ The live hub derives its stable opaque source key once at startup from its existing
71
+ project identity; it does not emit a raw directory or use the per-start instance id.
72
+ Foreign roots and outgoing foreign edges are unsupported. The host supplies the
73
+ explicit admitted-target projection; a producer-supplied edge alone proves no admission.
74
+
75
+ ## Pure source boundary
76
+
77
+ `readExecutionLineage(source, query)` receives a host-owned snapshot of an explicit
78
+ root neighborhood and returns values only. It does not construct a Board,
79
+ DeliveryJournal or CompletionStore (their constructors can write), read files,
80
+ call a model, spawn a process, probe, replay, fetch or write memory. The host reuses
81
+ already-open owner readers and explicit relationships to assemble the snapshot;
82
+ it must not scan the entire board on a read.
83
+
84
+ The host pins `id`, `revision`, `projectKey` and caller `scope`, source `health`,
85
+ source-read `authorized` authority, diagnostic authority and the explicit
86
+ `admittedExternalTargets` projection from saved public declarations. These are never
87
+ accepted from a producer or query. A snapshot contains metadata nodes and explicit
88
+ edges, already privacy-projected by the source owner. Each node carries its own
89
+ source reference, state token and evidence strength; no title, note, path,
90
+ session-native identifier or review body enters this projection. States keep
91
+ their owner's meaning: a completed dispatch is not a successful attempt; an
92
+ approved review does not change a failed attempt.
93
+
94
+ Evidence strengths are `declared`, `host-observed`, `runner-attested` and
95
+ `unknown`. Relations are `dispatched`, `attempted`, `produced`, `reviewed` and
96
+ `declared-external`. An edge is emitted only when both endpoints are visible.
97
+ An external declaration remains declared; a reference/hash never upgrades it.
98
+ The reader never infers edges from names, titles, timestamps, shared paths,
99
+ trace ids, current roles or matching hashes alone.
100
+
101
+ ### Existing owner mappings and missing observations
102
+
103
+ | Existing relationship | Valid projection | Ceiling |
104
+ | --- | --- | --- |
105
+ | Task `offer.envelopeId` and matching journal `originals[].id` / `refs.task` | Task to explicitly scoped journal dispatch | Offer envelope ids are not journal row ids; no reverse discovery or invented dispatch state |
106
+ | `ExperimentAttemptRecord.attempt.taskId` | Task to research attempt | Does not identify the dispatch that caused it |
107
+ | Attempt id on output event and host observations | Attempt to output | Event is declared unless its stored owner observation proves more |
108
+ | Verified runner receipt `attemptId`, `protocolHash`, output name/hash | Attempt/output evidence | Preserve verified runner provenance; a runner output name is not a hub deliverable id |
109
+ | Review history `deliverables[].id/sha256`, `reviewedHead` | Output or recorded head to review | Historical exact-hash/head binding, not current approval of edited bytes |
110
+ | Journal `previousId` | Exact predecessor metadata | `attempt` is a retry ordinal, not a research attempt id |
111
+
112
+ There is currently no persisted dispatch-to-research-attempt relationship.
113
+ `JournalDelivery.out` is rendered input handed to a peer, not produced output.
114
+ The fixture modeling current record relationships therefore leaves this gap. A separate deterministic
115
+ full-chain fixture supplies an explicit `declared-external` edge and keeps that
116
+ edge declared. This proves traversal, not native causal coverage. T1 does not
117
+ introduce a new relationship writer to make the gap disappear.
118
+
119
+ ## Bounds, privacy and pages
120
+
121
+ Pages contain at most 100 nodes, 200 edges and 262144 UTF-8 bytes of serialized
122
+ JSON, including metadata and cursor. A query can lower the node/edge ceilings;
123
+ its byte budget is between 4096 and 262144 bytes. Nodes and edges have independent
124
+ continuations: a page's edge may refer to a node in another page. Consumers combine
125
+ pages by the complete source reference and never label a truncated page complete.
126
+ Traversal follows only explicit edges in either direction from the named root.
127
+
128
+ After owner privacy projection, snapshot admission bounds query-local work to 2048 nodes, 4096 edges and 4 MiB of
129
+ projected metadata. Oversized sources are unavailable, not an empty or silently
130
+ partial successful graph. The owner must supply a complete indexed neighborhood
131
+ within this ceiling; larger graphs require a future owner paging contract.
132
+ This is a bounded projection ceiling, not a performance or full-board coverage claim.
133
+
134
+ The reader checks source authority before reading health, records or the root.
135
+ For callers without source-read authority, absent, denied and unavailable all
136
+ return exactly `{state: "unavailable"}`. Ordinary authorized readers get the
137
+ same shape for hidden or missing roots. Only an already authorized diagnostic
138
+ operator can see the closed reason `missing`, `corrupt`, `unsupported`, `withheld`,
139
+ `cursor_invalid` or `invalid`; never a hidden id, count or source prose.
140
+ Host privacy applies in the source owner's indexed read before assembling this
141
+ snapshot, so hidden rows never enter even its bound calculations or cursor.
142
+ Only the host supplies these snapshots; accepting a producer-supplied graph or
143
+ policy flags would violate this boundary. A hidden requested root is a source
144
+ `withheld` result. Hidden records neither consume public page slots nor create
145
+ dangling edges; a dangling edge in an admitted public snapshot is corrupt.
146
+
147
+ An available page has `{state: "available", nodes, edges, truncated, cursor?}`.
148
+ The cursor is an opaque continuation bound to source id/revision, caller scope,
149
+ root, limits and the visible graph. Changed source snapshots, privacy views,
150
+ roots or limits invalidate it. Cursor contents grant no authority. A cursor
151
+ is authenticated with a host-owned ephemeral HMAC key (32 to 128 UTF-8 bytes),
152
+ never a key supplied by a query. This reader creates or persists no key; key
153
+ rotation/restart invalidates prior cursors. Edited offsets are refused.
154
+ A cursor
155
+ must be used only with the same admitted source; on invalidation refresh from
156
+ the root. Source health failure is never a complete empty graph. No cursor is
157
+ returned on a complete page.
158
+
159
+ ## Verification boundary
160
+
161
+ `test/execution-reference.test.ts` consumes the neutral vectors and pins closed
162
+ parsing. `test/execution-lineage.test.ts` pins explicit traversal, missing edges,
163
+ independent states, evidence ceilings, privacy, unavailable equivalence, bounded
164
+ pages and source/scope/root invalidation. Fixtures run without a daemon, native
165
+ agent or account. CLI/MCP and console equivalence, admission and review currency
166
+ are pinned by the T2/T3 tests below; native coverage remains unverified.
167
+
168
+
169
+ ## Tasks admission and owner-scoped reads (T2)
170
+
171
+ `Tasks.linkExecutionReference` is the only external-reference write boundary.
172
+ The input binds the task id, its creation identity and current flow revision,
173
+ and one closed ExecutionReferenceV1 target. An optional `from` names an exact
174
+ local source node already in that task's bounded neighborhood; without it, the
175
+ source is the task reference. The current actor must retain the task role
176
+ and local project scope. PII tasks and private turns refuse before capture or
177
+ persistence. Current authority, task revision and privacy are checked again after
178
+ screening and immediately before the atomic write. Identical admitted metadata
179
+ returns the existing declaration; changed or stale admission never silently
180
+ rewrites an old record. A reference is inert declared metadata, never a runner
181
+ receipt or an external read instruction.
182
+
183
+ Reads expand the bounded admitted local neighborhoods to a fixed point before
184
+ emitting declared edges. A protocol or runner-receipt origin remains visible
185
+ regardless of declaration id order; expansion follows only those explicit links.
186
+
187
+ The table stores only admitted source/target reference metadata and its local task
188
+ binding. Its uniqueness key includes the canonical source and target, so repeated
189
+ admission preserves the original actor and timestamp without rewriting it. There is no derived relationship table, migration backfill or implicit
190
+ reverse-discovery index. Task roots resolve forward from their own task row,
191
+ current offer and recorded deliverables/reviews. Attempt roots resolve from their
192
+ own attempt row and its explicit task id, protocol, events and receipts. Dispatch,
193
+ deliverable and output roots require an explicit owning-task scope (id and
194
+ creation identity) and exact recorded membership in that task's row. Without it,
195
+ the result is unavailable, with `unsupported` visible only to diagnostic operators.
196
+ This is the historical-coverage ceiling for AC5, not a claim of missing records.
197
+ Owner-maintained derived indexes are the future upgrade path.
198
+
199
+ The read path uses only repository identities warmed at startup or by normal
200
+ Tasks mutations. An unknown refs identity is unavailable rather than causing a
201
+ Git or path probe. Its metadata screen is pure: when a private-path or deny policy
202
+ is configured, path-shaped fields and stored paths without cached alias proof are
203
+ withheld. A task with path/section selectors under a private-path policy is also
204
+ withheld. This conservative ceiling prevents a read from resolving symlinks or
205
+ probing a producer address; a future owner-maintained public metadata projection
206
+ can recover those slices without weakening privacy.
207
+
208
+ Attempt-event projection also requires a host-owned capability derived from the
209
+ current policy. Any configured PII path, local deny entry or routing PII pattern
210
+ makes raw event paging unsupported: neither zero filtered rows nor a longer raw
211
+ page proves a complete public neighborhood. This includes historical public
212
+ events whose fields a later policy narrowing would now withhold; the refusal is
213
+ data-independent and does not disclose whether such a row exists. Attempt/output roots and local
214
+ attempt/output traversals then refuse before event paging, including task-root
215
+ neighborhoods whose declarations require those records; they never return a
216
+ partial graph as complete. Task, head, deliverable and foreign declared metadata
217
+ remain available when their own privacy checks pass and no event source is needed.
218
+ This capability is not query-selectable. The upgrade path is a privacy-aware page
219
+ source supplying complete public metadata, not a derived privacy index, backfill
220
+ or unbounded scan added by T2.
221
+
222
+ No read infers an edge from a title, time, shared path or matching hash. The
223
+ missing dispatch-to-attempt observation remains missing unless a separately
224
+ admitted declaration explicitly names it; declared metadata never upgrades the
225
+ strength of surrounding evidence. Read operations never spawn, probe, fetch,
226
+ replay, write memory or admit a reference.
227
+
228
+ Historical review metadata stays visible only through its public source view.
229
+ Review currency binds the full reviewed public id/hash set and submitted head to the
230
+ latest public deliverable submission, using the existing delivery-history semantics.
231
+ Approved and changes-requested review copies are not new submissions. A public
232
+ replacement, addition or removal outside that reviewed set invalidates the old
233
+ verdict even when a retained artifact's hash and head are unchanged; reordered
234
+ identical sets remain equivalent. Wholly private or withheld submission updates do
235
+ not change public currency or cursor bindings. Historical evidence remains visible
236
+ under its original verdict and exact hash/head references. This is currency against
237
+ recorded public source metadata, not a blanket task approval or a live file or Git
238
+ freshness probe; unrecorded changes remain unknown. Source revisions and cursors
239
+ bind only the authorized public graph, never raw history counts or unprojected task
240
+ fields. A declared external reference cannot make a review current. Code-only reviews
241
+ retain an explicit recorded-head node even when no deliverable was submitted;
242
+ a head string alone is declared source metadata, not a Git observation. Review
243
+ state tokens retain the original verdict with a stale or unknown suffix when
244
+ its binding is no longer current or cannot be established.
245
+
246
+ T2 exposes diagnostic reasons only to the authenticated console person. Agents,
247
+ including the conductor, receive the neutral unavailable shape for denied, hidden,
248
+ invalid and absent reads; a global role never grants access to staged backlog ids.
249
+
250
+ The ordinary CLI/MCP surfaces share the same Tasks projection. Configured
251
+ read-only MCP sessions keep their existing publication list, and isolated
252
+ reviewers keep exactly their existing two tools. The new metadata-link operation
253
+ never becomes a read-only tool.
254
+
255
+ ## Console surface and measured reads (T3)
256
+
257
+ The acon console reads lineage through a provider port, not a panel id and not a
258
+ dashboard action. `projectConsole(...).lineage` in `src/hub/manager.ts` sends the
259
+ console role's existing `lineage_show` control message, which the hub answers
260
+ in-stack from the same `Tasks` projection the CLI and MCP read. This lineage read
261
+ adds no protocol message, panel id or action id, and leaves `DASHBOARD_VIEWS` and
262
+ the advertised actions unchanged. Independent features, such as the read-only
263
+ Guidance panel, may append their own panels to `manifest.panels` under their own
264
+ contracts. An older console that never asks for lineage keeps working. Equivalent
265
+ admitted views are therefore a property of one read path, not a comparison of two.
266
+
267
+ `src/ui/plugin.ts` answers `snapshot({panel: "lineage", ...})` with
268
+ `{ok: true, panel: "lineage", lineage, lines}`. The lines come from
269
+ `executionLineageLines` in `src/ui/lineage-view.ts`, the same pure view
270
+ `ahub lineage show` renders, so one admitted page has one presentation. The CLI is
271
+ a terminal and applies `terminalText` at its own boundary; the console passes the
272
+ view's strings as data, and neither surface re-derives a page.
273
+
274
+ The query is the closed owner selector list (`taskId`, `attemptId`, `root`,
275
+ `task`, `cursor`, `nodes`, `edges`, `bytes`). A field outside it is dropped before
276
+ forwarding, and the manager refuses one that reaches it, because the hub's owner
277
+ parser refuses the whole read on an unknown field. The control message carries no
278
+ project, instance, panel or page-supplied field. Reading never becomes a
279
+ `ui_action`, and nothing on this path can link, probe, fetch, replay, spawn a
280
+ process or write memory: `lineage_link` is not reachable from the console.
281
+
282
+ An unavailable source is not an empty successful graph. The console returns the
283
+ unavailable page with its refusal line and never a node, edge or `Page complete.`
284
+ line. A reply that fails the closed shape check (`parseLineageResult`, shared with
285
+ the CLI) is refused as `{ok: false, panel: "lineage", error}` naming the
286
+ unsupported shape, so a page from a newer hub or a corrupted one is never rendered
287
+ as a complete graph.
288
+
289
+ `test/execution-lineage-console.test.ts` pins the equivalence (the console's lines
290
+ equal `renderExecutionLineage` of the same page), the exact control message, the
291
+ absence of lineage-added panels or actions while retaining the independent
292
+ Guidance panel, the drop of an unnamed selector, and the refusals above.
293
+ `test/execution-lineage-performance.test.ts`
294
+ is the AC6 receipt on a synthetic board: 200 samples per point at 0, 200 and 2000
295
+ filler tasks, a p95 under 250 ms, the same page and byte size at every board size
296
+ (the read projects one root's neighborhood, so the board around it adds nothing),
297
+ the 64-link per-task ceiling (65 nodes, 64 edges, within 262144 bytes), a 5-node
298
+ page truncating with an opaque source-bound cursor that a different node bound
299
+ refuses, and a 4096-byte page staying inside its budget. The recorded numbers and
300
+ the recipe that reproduces them live in `docs/dogfood.md`. Those figures describe
301
+ one host: a number measured elsewhere may differ, and a missing measurement is
302
+ unknown rather than zero.
303
+
304
+ Native coverage stays unverified. No running native agent produced these pages, so
305
+ the console and performance receipts are host and fixture evidence, not a native
306
+ lineage receipt.