@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
@@ -0,0 +1,46 @@
1
+ # Qwen Code 0.27.0 ACP model setter, failed clear
2
+
3
+ Date: 2026-11-09. Task #849, Refs #1317 and #888.
4
+
5
+ **Failed: baseline clear did not restore the next ordinary request's model.**
6
+ The [separate ACP receipt](2026-11-09-qwen-0270-acp.md) records passing native
7
+ ACP/permission/lifecycle legs and the exact artifact, revised protected fence,
8
+ isolation rulings, controls, source and closed result hashes. This setter uses
9
+ that same immutable private 0.27.0 package, fresh 0700 HOME/cwd/provider state,
10
+ the production AcpPeer, ModelOverrides and ModelOverrideLatches, and an explicit
11
+ private unqualified model policy. It creates no production setter admission.
12
+
13
+ A bounded synthetic loopback OpenAI provider declares only A (`task849-a`) and
14
+ B (`task849-b`) at one endpoint and synthetic key. Fixed SSE responses generate
15
+ no tool calls. Wrong auth, Origin, path, shape, unexpected model and excess
16
+ requests fail. Positive provider TCP and negative decoy TCP/config-read/runtime-
17
+ write-open controls pass, as does the native watcher control. No account or real
18
+ model is contacted. Private trust and auto-title disabling match the previous
19
+ [0.26.9 procedure](2026-11-08-qwen-0269-model-setter-1317.md).
20
+
21
+ 1. The first ordinary request uses A. Desired B is written while A is held;
22
+ the in-flight A and setter count stay unchanged, and a busy delivery refuses.
23
+ 2. The next boundary sends session/set_config_option, configId model, value
24
+ task849-b(openai). A native acknowledgement precedes the second request B.
25
+ 3. Clear removes the desired row. The adapter sends baseline task849-a(openai)
26
+ and receives acknowledgement, but the third ordinary request still uses B.
27
+ Actual wire sequence is **A/B/B**, not the required A/B/A.
28
+ 4. The fixture rejects that third unexpected B. Only the first two delivery ids
29
+ complete; the final checkpoint is clear-wire-A and the controller exits 1.
30
+
31
+ The three requests have message counts 2/4/6 and user counts 1/2/3. All have no
32
+ response-format or title schema, and there are exactly three prompt RPCs. This
33
+ is a measured clear failure, not an extra background title request or ACK-only
34
+ qualification. No underlying native cause is inferred and no retry was run.
35
+
36
+ The 7,016-entry protected baseline and all global/managed/launcher/selector
37
+ coverage remain unchanged. Private settings stay byte-identical after B and
38
+ after stop; package binding matches the ACP receipt. Owned stop is confirmed,
39
+ cleanupFault is false, and process-lifetime containment remains unproven.
40
+
41
+ Closed evidence is located through `scratchpad/temp/task849/revised/setter-root.json`
42
+ as qwen-model-result.json; its hash is in the ACP receipt. The probe/controller
43
+ are private uncommitted producers. This result qualifies no production live
44
+ setter, real provider/account/model, TUI/shared-TUI, daemon/dashboard or arbitrary
45
+ provider-identity mapping. The earlier broad/controller preflights remain
46
+ historical NOT RUN legs, separate from this actual 0.27.0 failure.
@@ -0,0 +1,59 @@
1
+ # 0.36.0 release verification
2
+
3
+ This record covers release preparation and source review. It claims no installation, no running-hub upgrade to 0.36.0 and no live TUI launch.
4
+
5
+ ## Candidate
6
+
7
+ Version 0.36.0, prepared from main b1e949e4 (34 commits since v0.35.0, 18 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.35.0: #1378, #1371, #1376, #1373, #1377, #1374, #1372, #1368, #1370, #1369, #1367, #888, #1364, #1366, #1362, #1365, #1363, #1361, #1360, #1358, #1359, #1349, #1355, #1357, #1356, #1354, #1353, #1348, #554, #1346, #1347, #1345, #1344, #1341, #1343, #1342.
12
+
13
+ #888 and #554 are issue numbers named in commit subjects, not pull requests. The other 34 pull requests were each squash-merged after their hub review; `gh pr view` shows every check on each merged head completed `SUCCESS`, `SKIPPED` or `NEUTRAL` (21 or 22 checks each, none failed). The conductor's merges used `--match-head-commit` with the reviewed head. #1373 was first approved at an earlier head with two defects; that approval was reopened as changes requested and the merge is bound to the fixed head 043036e8. #1378's first CI run failed an unrelated conductor-restart timing test on one Ubuntu shard; the failed jobs were rerun on the same head and passed before the merge.
14
+
15
+ ## Native acceptance receipts
16
+
17
+ Receipts added under `docs/verification/` since v0.35.0: `docs/verification/2026-11-09-qwen-0270-acp.md`, `docs/verification/2026-11-09-qwen-0270-model-setter-1317.md`, `docs/verification/2026-11-10-claude-implementer-2.1.322.md`, `docs/verification/2026-11-10-qwen-0270-dual-output.md`, `docs/verification/2026-11-10-qwen-0271-dual-output.md`.
18
+
19
+ 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.36.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.
20
+
21
+ ## Document review
22
+
23
+ `node scripts/check-docs.mjs` reported 27 stale documents after preparation: README, quickstart, operations, security, events, sdlc, roles, memory, data-policy, adding-an-ai-tool, addons/claude-mem, profiles, research, cooperbench, text-projection, dogfood, `src/cli/help.ts` and the ten agent notes. All but cooperbench (8e066f20) were stamped at 44c523e1. Each document was read against the commits under its covered paths since its stamp, and names, numbers and bounds were checked against the code.
24
+
25
+ Content changes:
26
+
27
+ - `README.md`: generated Status 0.36.0, the current report link, and Qwen dual-output support "from 0.36.0 once a hub is upgraded".
28
+ - `docs/quickstart.md`: install tag v0.36.0 and the 0.36.0 upgrade note (unchanged agent-mem 0.23.1; `required checks unknown` outside this repository without configured checks, #1344; the Qwen deny fence, #1371; held-message inspection, #1359; newly verified agent versions; the `ahub setup --research` older-reader warning, #1347; opt-in features; N-1 0.35.0).
29
+ - `docs/operations.md`: guide version 0.36.0, protocol row through 0.36.0 and the 0.36.x N-1 baseline; console lineage (#1358); qwen-dual 0.27.0 and 0.27.1 (#1364, #1378); Qwen basic ACP 0.26.9 and 0.27.0 (#1355); init `--required-checks` and discovery (#1344); `ahub sdlc adopt-merge` (#1348).
30
+ - `docs/security.md`: Claude Code 2.1.319 and 2.1.322 and Codex reviewer 0.166.0 in the receipt lists; the own-held inbox view (#1359); init check discovery bounds (#1344); the Qwen deny fence (#1371); the setup research default (#1347); merge adoption and carried spec consent (#1348, #1361); the adec stage band (#1373); new sections for supervision proposals (#1221), guidance variants (#1225) and execution lineage (#1220).
31
+ - `docs/dogfood.md`: the stage route row is active after release and upgrade (#1370); the adec row names the stage band (#1373).
32
+ - `docs/sdlc.md`: the native `seeded guards` floor applies only to `STAIxBWLB/agent-hub`; elsewhere no configured checks reads `required checks unknown` (#1344).
33
+ - `docs/research.md`: init `--research|--no-research` and the machine default (#1347); adoption as a terminal state that writes a record (#1348).
34
+ - `docs/profiles.md`: the scorecard counts merge adoptions as settlements, never as reviewer verdicts (#1348).
35
+ - `docs/agent-notes/bus.md`: rule for the read-only own-held inbox view (#1359).
36
+ - `docs/agent-notes/daemon.md`: recovery feature floors `model_overrides`, `visuals`, `guidance_variants` and `execution_lineage`; acon supervision verbs and the guidance panel (#1368, #1376); held bodies in their own channel block (#1359); deferred hub notices released before Tasks exists (#1353).
37
+ - `docs/agent-notes/tasks.md`: rules for supervision proposals, guidance variant writes, required-check resolution, build-entry diagnostics and merge adoption (#1344, #1348, #1354, #1362, #1367, #1368, #1376).
38
+ - `docs/agent-notes/tests.md`: Claude Code companion hooks load by dynamic `import()` (#1349, #1365).
39
+
40
+ Reviewed without content change: `src/cli/help.ts` (every new command and flag matches `main.ts`, `init-settings.ts`, `guidance.ts` and the lineage usage; `test/help.test.ts` 18 pass), `docs/roles.md`, `docs/adding-an-ai-tool.md`, `docs/addons/claude-mem.md`, `docs/events.md`, `docs/memory.md`, `docs/data-policy.md`, `docs/text-projection.md`, `docs/cooperbench.md`, and the agent notes README, adapters, benchmarks, budget, local-worker and models.
41
+
42
+ The 27 documents are restamped at reviewed content commit 4ac7c54c. The CHANGELOG section was completed in the release bump commit: the prepared section named 6 of the 34 merged PRs, so every merged PR now has an entry, and the N-1 statement was added.
43
+
44
+ ## Checks
45
+
46
+ - `node scripts/check-docs.mjs --require-fresh`: OK, 0 stale documents.
47
+ - `bun x tsc --noEmit`: exit 0.
48
+ - `bun scripts/build.mjs --check`: exit 0.
49
+ - `env -u AGENTHUB_HOME bun test test/compat.test.ts test/qwen-dual.test.ts test/help.test.ts test/readme-facts.test.ts`: 141 pass, 0 fail.
50
+ - `node scripts/check-package.mjs`: not passing locally, because local npm 12.2.2 prints a different `npm pack --dry-run --json` shape than the npm pinned in `check.yml`; the release PR's CI runs it with the pinned npm.
51
+ - The release PR's exact-head CI run is the full gate; it is named in the merge note.
52
+
53
+ ## Known gaps, not blocking
54
+
55
+ - No installation, running-hub upgrade or live TUI launch of 0.36.0 is claimed.
56
+ - The full local suite and the published N-1 compatibility test were not run locally (heavy tests run on dgx02 or CI); CI's gate covers them.
57
+ - Several new source paths are not in any area-note scope list in `AGENTS.md` (`src/hub/supervision-rules.ts`, `src/hub/supervision-proposals.ts`, `src/hub/guidance-variants.ts`, `src/ui/guidance-*.ts`, `src/hub/delivery-public.ts`, `src/hub/build-entry.ts`, `src/cli/init-required-checks.ts`, `integrations/claude-code/`); a later change should add them.
58
+ - `docs/operations.md` does not document `ahub guidance`; it is covered by `docs/design/guidance-experiments.md` and `ahub help`.
59
+ - A task closed by `ahub sdlc adopt-merge` can record `firstPass: true` in a research record without a review; this is existing code behavior, recorded for a later fix.
@@ -0,0 +1,59 @@
1
+ # Claude Code 2.1.322 headless implementer receipt
2
+
3
+ Date: 2026-11-10. Scope: #888 (claude-implementer row), hub task 868. This repeats the procedures of the [2.1.319 receipt](2026-11-06-claude-implementer-2.1.319.md) on the installed Claude Code 2.1.322, with 2.1.319 run through the same producers as the control: the permission transport (Write, production-name Bash, Bash `updatedInput` rewrite) and the host shell wrapper. Source base: `73920818` (main after 0.35.0). Platform: macOS arm64, host Bun 1.4.4.
4
+
5
+ Result: every case passed on both binaries. `2.1.322` is added to `COMPAT["claude-implementer"].verified`. 2.1.320 and 2.1.321 are not qualified by this receipt.
6
+
7
+ | Native version | Binary SHA-256 |
8
+ | --- | --- |
9
+ | Claude Code 2.1.319 (control) | `1f53587e92dee8e089fa349188a4cda64fa34ace6e7b0ca2ee278ddaa3cc2ebd` |
10
+ | Claude Code 2.1.322 | `a9d237949db816a0b7afd88a9a8e1df36b3a597a30f5a41d1c0539eb180a3450` |
11
+
12
+ The 2.1.319 hash matches the 2.1.319 receipt, so the control is the binary it certified.
13
+
14
+ ## Upstream changes since 2.1.319
15
+
16
+ The upstream [CHANGELOG](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md) has entries for 2.1.321 and 2.1.322 (none for 2.1.320). The entries that touch what these producers exercise:
17
+
18
+ - Bash permission checks: a read-only Bash command that ran outside the sandbox without a prompt, and a file write judged from the wrong folder, are fixed. Bash commands sent together no longer run in the wrong folder after an earlier one changed folders. The wrapper's persistent-cwd and prior-`cd` cases cover the folder path and passed.
19
+ - PreToolUse hooks: an `ask` reason or an `ask` lost to another hook's `defer` is fixed; an `mcp_tool` hook answer over 16 MiB now refuses the call. The hook allow and deny cases passed; multi-hook ordering is not exercised.
20
+ - Mods: a mod's own `$.tool.call` and `$.mcp.call` raise no permission prompt, even in `-p` runs (deny rules and organization policy still apply), and headless sessions reload mods in `.claude/skills` when their files change. A mod-initiated tool call therefore does not reach the hub's permission-prompt tool. The producers load no mod, so this path is not exercised; it joins the Monitor tool as an unrewritten prompt-tool path.
21
+
22
+ ## Runs
23
+
24
+ Each producer ran both binaries sequentially with an isolated HOME and `CLAUDE_CONFIG_DIR`, a fixture MCP server, a deterministic loopback provider and the literal API key `synthetic-probe-not-a-credential`, from a shell with the hub's agent markers (`AGENTHUB_HOME`, `AGENTHUB_PEER_ID`, `CLAUDECODE`, `CLAUDE_CODE_SESSION_ID`) unset. No account, provider request or model inference was involved. Every native child's process group was confirmed empty afterwards, and both binary hashes were the same before and after.
25
+
26
+ ```sh
27
+ python3 docs/verification/claude-permission-transport-native.py OUT/write --claude 2.1.319 --claude 2.1.322
28
+ python3 docs/verification/claude-permission-transport-native.py OUT/bash --tool Bash --server-name agent-hub --permission-tool hub_permission_request --require-tool-use-id --claude ... --claude ...
29
+ python3 docs/verification/claude-permission-transport-native.py OUT/rewrite --tool Bash --rewrite-bash --server-name agent-hub --permission-tool hub_permission_request --require-tool-use-id --claude ... --claude ...
30
+ python3 docs/verification/claude-shell-wrapper-native.py OUT/wrapper --bun ABSOLUTE_BUN --claude ... --claude ...
31
+ ```
32
+
33
+ (binary arguments are the absolute installed paths under `~/.local/share/claude/versions/`; `--bun` was the Homebrew Bun 1.4.4 path resolved with `readlink -f`).
34
+
35
+ | Producer | Cases per binary | 2.1.319 | 2.1.322 |
36
+ | --- | --- | --- | --- |
37
+ | Write transport (allow, deny, missing tool, hook deny/allow, MCP error, disconnect, pending, deadline) | 9 | 9 pass | 9 pass |
38
+ | Bash transport, production server and tool names, `tool_use_id` required | 9 | 9 pass | 9 pass |
39
+ | Bash `updatedInput` command replacement (allow, deny) | 2 | 2 pass | 2 pass |
40
+ | Host shell wrapper (persistent-cwd control, fixed-wrapper rewrite with replay refusal) | 2 | 2 pass | 2 pass |
41
+
42
+ Per-case shapes on 2.1.322 match the control: pending stopped externally at the deadline; wrapper control 3 requests and 2 permission calls, wrapper rewrite 4 requests and 3 permission calls with the effect counter at exactly 1 after replay.
43
+
44
+ The only producer change is the version allow-list in `claude-shell-wrapper-native.py`, which now admits `2.1.322`.
45
+
46
+ | Artifact | SHA-256 |
47
+ | --- | --- |
48
+ | Permission producer (unchanged) | `c8e82c66a8cf2faf4f4930da21ca81e36166381fd932219cb60e3cec541af10b` |
49
+ | Wrapper producer (this change) | `ad891f5b9663e14e3f44febd787500a8ced815125c489adadddcdeb279f64826` |
50
+ | Write receipt JSON | `d47f9c082e5681647ddf4fa4939e7224951a7af63dae26de4413a87d3c5ff5bd` |
51
+ | Bash receipt JSON | `58acda0fc03489acdfb31bec27e4bf174a79d95afc156157c45724eb2bffcfa7` |
52
+ | Rewrite receipt JSON | `817fc15da7d774b14ad9a19d7fe3a4696025898f7fa5bcf6ec4e273776a39836` |
53
+ | Wrapper receipt JSON | `fd27bc46ef8d0b1bbc7aba71b9c66aa4a8781c540b21b4234f8fd65afaa371be` |
54
+
55
+ The receipt JSON files stay in the local diagnostic directory; they carry local paths and are not committed.
56
+
57
+ ## Evidence boundaries
58
+
59
+ Unchanged from the earlier receipts: no real provider authentication, model tool selection, person approval interaction, task-session resume or production-daemon task binding is proved, and this is not a runtime receipt gate. A behavior change outside these producers' cases would not be seen here. Native version admission and binary fencing remain required. The Monitor tool and, from 2.1.322, mod-initiated tool calls are unrewritten prompt-tool paths.
@@ -0,0 +1,367 @@
1
+ # Qwen 0.27.0 dual-output qualification
2
+
3
+ Date: 2026-11-10 (KST). Task #850, Refs #888. **Required normal-Bus Q2 and Q3/Q5/Q6/Q7 PASS on matched 0.26.1 and
4
+ candidate 0.27.0.** This receipt supports exact 0.27.0 admission for the separate
5
+ qwen-dual contract; Q4 retains its existing unsupported external-stop limit. Basic ACP and the live-setter contract are independent. These
6
+ macOS arm64 PTY observations use a local fixture provider, isolated homes and
7
+ private package candidates, without an account or real model inference.
8
+
9
+ ## Required Q2 and separate characterization
10
+
11
+ Ruling fa75c5f2-fc78-42a1-85dc-cf206e6a7825 defines required Q2 using the actual
12
+ Bus and QwenDualPeer normal delivery path. A second envelope is published while
13
+ the first provider response is held. Input must contain one submit until the
14
+ first response is released. The first non-tool-use assistant and message_stop
15
+ must precede the second distinct user/provider/final-assistant/message_stop.
16
+ There must be exactly two user events and distinct completion indices; one
17
+ assistant containing both markers does not pass.
18
+
19
+ The public manual producer is
20
+ `scripts/compat-receipts/proofs/qwen-dual-bus-q2.ts`; it starts nothing on import
21
+ and relies on owned native/controller ports. Deterministic source controls in
22
+ `test/compat-receipt-qwen-dual-q2.test.ts` use synthetic event files, no native
23
+ process/account/model: normal held queue, tool-use stop remaining busy, and the
24
+ old merged-assistant false-positive shape, ordinary provider user-count mismatch,
25
+ and native-reader override refusal. Causal barriers and the exact second Bus
26
+ envelope id are checked. They do not certify native Q2.
27
+ Final input/events/provider evidence is frozen after owned stop and checked again;
28
+ late POST and USER/final-stop controls preserve the first failure checkpoint.
29
+ Tool-use and orphan Stops cannot be reused as new final assistants. No automation
30
+ manifest or autoAdmit eligibility is changed.
31
+
32
+ The [original 0.26.1 receipt](2026-10-25-qwen-dual-output-t0.md) used a real
33
+ model/gateway and a changing global install. Its direct-busy-submit queued-turn
34
+ claim was not reproduced by v2's private matched 0.26.1 control. The
35
+ [0.26.8 attempt](2026-11-06-qwen-0268-dual-output.md) records one user/final-stop
36
+ and both markers in one assistant. Extra provider POSTs have no recorded
37
+ format/title-schema/role classification, so their underlying cause remains
38
+ unknown. That direct-busy experiment is characterization, not a required-Q2
39
+ pass/fail and not evidence for the later 0.27.0 measurements recorded separately below.
40
+
41
+ ## Initial 0.26.1 normal-path control, not qualified
42
+
43
+ One approved macOS arm64 PTY control ran at source HEAD
44
+ `345e1af9ab7403745bc38849e5b7f1252412714d`, with repository-pinned Bun 1.4.2,
45
+ Node 24.18.1 and an isolated private 0.26.1 package. Official npm integrity is
46
+ `sha512-4kpIzrlrgmawivim0yCZjr1AP5cfHTanyL7eL1g2R8WYU6QDBq7j9fiAye7REXL4EEXkRIq45D7+ngTw5n3GqQ==`;
47
+ its metadata derives bin `cli-entry.js`, SHA-256
48
+ `113efe4104a9fc66f507d34bfd6abbd896ceb77de47f4b468a0825a327fdc6a5`.
49
+ Normal private installation (scripts enabled and audio installer source reviewed),
50
+ kernel controls and protected before/after fences passed before Qwen execution. CLI flag and
51
+ no-title support were read from shipped source and the earlier matched-control
52
+ recipe; those source facts are separate from this new native observation.
53
+
54
+ - Actual input has two submits. Native event evidence has two user events and
55
+ two ordered final assistant/message_stop pairs; the final session_end remains
56
+ in the file. Held input stayed at one submit and the second exact envelope
57
+ was queued then recorded as delivered by the actual Bus.
58
+ - The strict ordinary-provider check failed: requests had message counts 2/4/6,
59
+ user counts 1/2/3 and markers first/second/second. All reported absent response
60
+ format and no title schema. The first classifier could scan older user entries
61
+ when the latest lacked a marker. The latest third user text was not retained,
62
+ so its exact purpose is unknown; no third request is silently accepted.
63
+ - At that failure the producer had not yet copied successful chronology into
64
+ its final summary, leaving default userCount 0/indices -1. Those defaults are
65
+ not evidence of zero user events. The event file and causal barriers preserve
66
+ the two real turns; source controls now require those observations to survive
67
+ provider-check failure.
68
+ - Initial cleanup reported groupGone/ownedStopConfirmed false, leader exit -15,
69
+ bridge exit 0, PTY bound passed and providerFault false. A later read-only
70
+ inspection found the original group gone, both recorded Node PIDs absent and
71
+ no provider listener; no extra signal was sent. This later absence is not
72
+ retroactively substituted for the original cleanup observation.
73
+ - Protected, full private artifact and producer fences were unchanged; all
74
+ after-fence attempts succeeded. This attempt did not qualify Q2; the separately
75
+ approved later runs are recorded below.
76
+
77
+ Shipped 0.26.1 source declares `ui.enableFollowupSuggestions` default true
78
+ (`chunk-BRRTFGQN.js:3`); both TUI implementations gate automatic follow-ups on it
79
+ (`startInteractiveUI-QDXQDPQR.js:50`, `start-opentui-ui-COUX4CX5.js:315`). The
80
+ suggestion generator waits for two model entries and can append a new generated
81
+ user prompt (`chunk-6K54QXHZ.js:137-173`). The private setting was absent in this
82
+ first run. Equivalent settings/gates are present in 0.27.0. This is a source-based
83
+ confound, not confirmation of the first third POST's purpose.
84
+
85
+ The approved workload correction sets only private
86
+ `ui.enableFollowupSuggestions:false` and inspects only the latest user's marker,
87
+ leaving absent-marker requests unknown. Strict two ordinary requests, role counts
88
+ and turn-order assertions remain unchanged. The second attempt below showed that private setting was bypassed by `--bare`.
89
+ The final corrected workload uses full private settings without `--bare`.
90
+ Cleanup now records the original leader/group identity, waits for observed group
91
+ absence within its bound and memoizes its first result; it does not use a fixed
92
+ delay to manufacture success or replace an earlier false result.
93
+
94
+ Private evidence is located through `scratchpad/temp/task850/native-control-root.json`:
95
+ `q2-result.json`, `state/qwen-dual/input.jsonl`, `state/qwen-dual/events.jsonl`,
96
+ `cleanup-readonly-inspection.json` and source/causal records. No real account,
97
+ gateway, live user terminal or model inference was used.
98
+
99
+ ## Second 0.26.1 attempt and settings correction
100
+
101
+ The second control at public HEAD
102
+ `b20080aaaad3cd81ba55ceb2329d35437a39d72e` also failed its strict provider check.
103
+ It retained the actual two user/final-stop turns: first Stop index 9, second user
104
+ 10, second Stop 17. Provider requests had 2/4/6 messages and 1/2/3 users; the
105
+ latest-user-only classifier labelled the third request unknown. Its text was not
106
+ retained, so its purpose remains unknown. Cleanup and protected/artifact/producer
107
+ fences passed; that does not turn the provider failure into a pass.
108
+
109
+ Shipped 0.26.1 `llm-HWSJZ5AX.js:16` selects `createMinimalSettings()` under
110
+ `--bare`; `chunk-XXTP76KR.js:39` omits UI settings from that minimal object.
111
+ `QWEN_HOME` was the correct settings root (`chunk-EPODBRBP.js:3`), so a settings
112
+ path mismatch is not the observed source explanation. The correction removes
113
+ `--bare` only from this fixture and supplies owned empty system/default settings
114
+ using the shipped `QWEN_CODE_SYSTEM_SETTINGS_PATH` and
115
+ `QWEN_CODE_SYSTEM_DEFAULTS_PATH` overrides. The private UI follow-up setting,
116
+ no-title environment, fake auth/model, empty hooks/MCP and kernel protection remain.
117
+ The five private memory booleans are declared by the shipped memory schema;
118
+ the config-only checks below do not measure their effects.
119
+
120
+ Before another native run, a separately authorized 0.26.1 config-only helper
121
+ imported the actual `settings-IMTJFJRU.js` export under the same Seatbelt and
122
+ owned settings/cwd/environment, with all network blocked. It passed nine closed
123
+ checks: effective UI follow-ups false, hooks disabled, MCP empty, fake OpenAI
124
+ auth/model selected, user/system/default settings paths owned, and minimal settings
125
+ not applying the UI false value. Kernel read/write denial and a separate network
126
+ guard positive control passed; the settings helper attempted zero network calls,
127
+ started no provider and requested no model inference. Protected/artifact/producer
128
+ fences were unchanged. This is a 0.26.1 settings-module observation, not native Q2
129
+ or a 0.27.0 config-only measurement.
130
+
131
+ 0.27.0 shipped source supports the same paths and gates: `chunk-5VB4YX3Z.js:3`
132
+ (QWEN_HOME), `chunk-ERGT5BD3.js:3` (system/default overrides),
133
+ `llm-ALJILG6S.js:16` (bare/full settings choice), `chunk-PJZT7LRF.js:3` (UI and
134
+ memory schema), `startInteractiveUI-ITNOUVXX.js:49` and
135
+ `start-opentui-ui-5QU4WJHW.js:316` (UI follow-up gates). These source reads are
136
+ separate from the following native observations. The previous extra POSTs remain
137
+ unattributed; their latest user bodies were not retained.
138
+
139
+ ## Matched native Q2 results
140
+
141
+ Both final runs bind the public producer at HEAD
142
+ `b20080aaaad3cd81ba55ceb2329d35437a39d72e`, SHA-256
143
+ `33e729d26279a7ba82977c52be23fb38f456a99c594bc0e764c382adda6b714a`.
144
+ Private controller SHA-256 is
145
+ `94bd25b750dd537dd7e0890fc679e3bf98136b600cb8d5f8aa4ba44f2743fb1b`;
146
+ bridge SHA-256 is
147
+ `e68f1ec610d16e440095af338a2bd3a60e4a9cadffc1638f6d8bfce90994f448`.
148
+ Neither bridge nor controller appends user submits; the actual adapter writes
149
+ the input file. Bun 1.4.2 and Node 24.18.1 are unchanged. Each run has a fresh
150
+ owned home, project and settings, private loopback-only fake provider and explicit
151
+ fake key/model. No original T0 gateway/key harness or existing terminal is used.
152
+
153
+ The 0.26.1 normal private installation has the official SRI recorded above.
154
+ 0.27.0 reuses the exact private package qualified by task #849, not a global
155
+ launcher. Its package/bin/lock identify 0.27.0 with official integrity
156
+ `sha512-efZt0LUm/raGUjR/SNN6pp8cpuNHnmE0hQvcvXzWHtVX9oVtDDgukq2IZNwYDErFYqHRj1xq2NQ5Jjt2SHUr/Q==`.
157
+ Both derive `cli-entry.js` from package metadata (same entry SHA above), verify
158
+ canonical private binding, and fence the entire actual prefix before/after.
159
+ Native `session_start` must report the exact selected version and protocol 2.
160
+
161
+ | Observation after owned stop and final evidence freeze | Control 0.26.1 | Candidate 0.27.0 |
162
+ | --- | --- | --- |
163
+ | UTC interval, 2026-11-09 (2026-11-10 KST) | 17:17:54-17:18:06 | 17:22:51-17:23:03 |
164
+ | Native session version / protocol | 0.26.1 / 2 | 0.27.0 / 2 |
165
+ | Submit count while first response held / second envelope queued | 1 / true | 1 / true |
166
+ | Exact second envelope left Bus queue and was delivered by Bus | true | true |
167
+ | Final user / final Stop / message_stop / orphan Stop counts | 2 / 2 / 2 / 0 | 2 / 2 / 2 / 0 |
168
+ | First final Stop < second user < second final Stop indices | 9 < 10 < 17 | 9 < 10 < 17 |
169
+ | Ordinary provider requests / message counts / user counts | 2 / 2,4 / 1,2 | 2 / 2,4 / 1,2 |
170
+ | Response format absent / title schema absent, both requests | true / true | true / true |
171
+ | Final input/events/provider evidence closed and passing | true | true |
172
+ | Owned stop / group gone / drain joined / bridge exit | true / true / true / 0 | true / true / true / 0 |
173
+ | PTY bound passed / provider fault | true / false | true / false |
174
+ | Kernel / protected / artifact / producer fences | all pass | all pass |
175
+ | Result | PASS | PASS |
176
+
177
+ The source-bound causal barriers observe native readiness, first provider hold,
178
+ first stream consumed by the driver, second envelope queued with one submit,
179
+ provider release, then distinct native turns and second Bus delivery. Assertions
180
+ are repeated on final frozen evidence after stop; no extra ordinary/unclassified POST or late user/Stop
181
+ can bypass those checks by arriving during cleanup. Each run ended with no controller/bridge
182
+ failure and no failed after-fence attempt. No phase sleep manufactures a turn.
183
+
184
+ Private latest-user diagnostics retain at most 4096 bytes per request and closed
185
+ SHA/byte-count/truncation/source-prefix metadata. The two measured requests have
186
+ FIRST/SECOND markers and no suggestion prefix; neither run has an extra request.
187
+ This does not establish the earlier third requests' purpose. No raw user body or
188
+ private path is published here.
189
+
190
+ ## Required-suite corrections and matched results
191
+
192
+ The remaining manual producer is `scratchpad/temp/task850/run-q3-q7-native.ts`
193
+ with a separate Python PTY/provider controller. It extracts only the pinned v2
194
+ assertions/readers/guard, never the original gateway/key harness. The final runs
195
+ measure repository HEAD `b8f2b20d0e62f316a9044f74ce57f2db6aab793a`; the public Q2
196
+ code at that head has the same SHA as the earlier b20080aa native Q2 runs.
197
+ Final required-suite/direct-characterization controller SHA-256 is
198
+ `c75379e644551fb5f79d20902a2214e11f4cd05e0dc43245ec89ba551102e480`, Python
199
+ producer SHA-256 is
200
+ `24c459b7c0ae84a4c11d082f32800a97985c4cef4e3f238cb264c24ee364dfd3`.
201
+ The reviewed manifest binds nine original/copied producer sources, exact clean
202
+ repository HEAD, private package/bin/lock/settings export and the whole-prefix
203
+ count/digest already measured by Q2. The actual before snapshot must match those
204
+ qualified bytes, not just a version or SRI string; before/after source copies,
205
+ project imports and command boundaries remain bound to the reviewed inputs.
206
+
207
+ Two additional control failures are preserved:
208
+
209
+ - First required-suite control (18:27:54-18:32:04 UTC): Q7 passed, Q3 allow timed out before its marker
210
+ effect, and Q5/Q6 were not reached. The retained tool result reports
211
+ `posix_openpt failed: Operation not permitted`; the guard blocked `models.dev`.
212
+ Native owned stop/provider close/final closure and all fences passed, while
213
+ the overall result failed. An uncleared suite-race timer held the controller
214
+ until 250 seconds; that controller exit time is separate from native cleanup.
215
+ - After supported refresh/PTY corrections (19:04:23-19:04:51 UTC), Q7 and all five Q3 cases passed.
216
+ Q5 raised `NotImplementedError` during FIFO setup before a Q5 native generation;
217
+ Q6 was not reached. This is a host helper failure, not a Qwen FIFO protocol
218
+ failure. Cleanup, guard closure and all fences passed; the controller exited
219
+ in 27.4 seconds. The unsupported Apple Python 3.9.6 `mkfifo(dir_fd=...)` call
220
+ was replaced before the next native run, without opening the FIFO.
221
+
222
+ Shipped 0.26.1 `chunk-Q3NSK7FV.js:48` and 0.27.0 `chunk-576P2HBP.js:48` return
223
+ from `refreshModelCatalog` before fetch/cache refresh when
224
+ `QWEN_CODE_MODELS_DEV_REFRESH=off`. That supported override is supplied to both
225
+ case and native-generation environments; network is still restricted to the
226
+ owned provider port. No ambient catalog cache is injected. The OS profiles
227
+ `application.sb` and `com.apple.neagent.sb` supply the three narrow PTY rules:
228
+ `pseudo-tty`, exact `/dev/ptmx` access, and numeric PTY slaves requiring the
229
+ `com.apple.sandbox.pty` extension. No broad slave write rule is added. A separate
230
+ kernel-only control (19:01:13-19:01:17 UTC) proved a newly owned external decoy slave was write-open
231
+ blocked inside the sandbox while a sandbox-created PTY allocated, round-tripped
232
+ and closed its FDs. The external holder exited with drains/owned cleanup proved;
233
+ that control imported no vendor module and ran no Qwen CLI or provider.
234
+
235
+ The FIFO helper uses the fresh owned absolute pathname because this host's
236
+ Python lacks `mkfifo`'s dir-fd support, retaining parent/leaf identity checks.
237
+ Its explicit ceiling is a pathname race in that owned setup operation before
238
+ native start, not a general atomic path guarantee. Q5 never opens or reads the
239
+ FIFO, including for readiness. Settled race timers are cleared, and bounded
240
+ producer timeouts carry closed checkpoints; the old failure records are unchanged.
241
+
242
+ Both final required-suite runs used the same assertions and bounds (240-second
243
+ suite, 300-second controller, bounded files/streams), normal no-bare mode and
244
+ fresh per-case homes/settings with a fake local provider. The 0.26.1 settings
245
+ export is `settings-IMTJFJRU.js`, SHA
246
+ `c21299bbd8c7cc7d18089d3088b74d5ce4d4cbdd4a4d9984a72a1306a57a25a5`;
247
+ 0.27.0 uses `settings-LVFIAIC2.js`, SHA
248
+ `bc1d0a513cc5c15bfb8750228e49321424960b103773ab5442179085de44646f`.
249
+ All nine closed configuration checks passed in each prepared case on each version.
250
+
251
+ | Required-suite observation | Control 0.26.1 | Candidate 0.27.0 |
252
+ | --- | --- | --- |
253
+ | UTC interval, 2026-11-09 (2026-11-10 KST) | 19:11:53-19:12:29 | 19:14:03-19:14:40 |
254
+ | Q7 exact version / positive network guard / kernel controls | PASS | PASS |
255
+ | Q3 allow / deny / own fixture TUI Enter / read-only / real fixture MCP handler | 5 PASS | 5 PASS |
256
+ | Final duplicate RID response count and exact unchanged/append-once effect | 1 / PASS | 1 / PASS |
257
+ | Q5 unread FIFO, provider request, visible answer, native alive | PASS | PASS |
258
+ | Q6 same session, old input prefix, no replay, prior assistant context | PASS | PASS |
259
+ | Q6 old input bytes / assistant context token / user context token | 133 / true / false | 133 / true / false |
260
+ | Owned native generations, all groups gone/drains joined | 8 / true | 8 / true |
261
+ | Provider closed / remaining handlers / provider fault | true / 0 / false | true / 0 / false |
262
+ | Global final closure / closure failures / guard errors | true / none / none | true / none / none |
263
+ | Protected / Q2-qualified whole prefix / nine producer fences | unchanged | unchanged |
264
+ | Controller and producer exit / requiredPassed / safetyAccepted | 0 / true / true | 0 / true / true |
265
+
266
+ The final snapshot occurs only after all owned native generations stop and the
267
+ provider closes. Q3 effects and all duplicate ACKs are revalidated on frozen
268
+ observations. Q6's registered final callback rechecks its same-session recording,
269
+ no replay and assistant-only context against final frozen data; global
270
+ `finalClosurePassed` is true with no closure failures. The serialized Q6 object
271
+ was spread before that callback, so it has no propagated
272
+ `finalClosureRevalidated` or `finalRecordingProof` fields. Those absent fields are
273
+ not invented here. Q5 leaves event output unread by design and binds identity by
274
+ the unchanged qualified artifact, normal command, owned PID/guard and Q7 exact
275
+ version. Fixed responses establish context transport, not real-model recall quality.
276
+
277
+ ## Direct native busy-submit characterization
278
+
279
+ This independent report-only pair ran after the required pair, once per version
280
+ with the same frozen sources and containment. Both preparations and final
281
+ closure completed safely; neither is a required-Q2 pass/fail.
282
+
283
+ | Final observation | Control 0.26.1 | Candidate 0.27.0 |
284
+ | --- | --- | --- |
285
+ | UTC interval, 2026-11-09 | 19:16:12-19:16:28 | 19:17:23-19:17:39 |
286
+ | User / assistant / message_stop events | 1 / 1 / 1 | 1 / 1 / 1 |
287
+ | Provider requests / marker order | 2 / FIRST,SECOND | 2 / FIRST,SECOND |
288
+ | User < combined-marker assistant < Stop indices | 2 < 11 < 12 | 2 < 11 < 12 |
289
+ | Premature second user / observation window expired | false / false | false / false |
290
+ | Final characterization status / requiredPassed | observed-not-admission / null | observed-not-admission / null |
291
+ | Final closure / owned stop / fences / controller exit | true / true / unchanged / 0 | true / true / unchanged / 0 |
292
+
293
+ A single assistant contains both markers on both measured artifacts. This again
294
+ does not reproduce the original native-busy-submit two-turn claim; it does not
295
+ contradict the separate normal-Bus Q2 proof, which waits for the first final Stop
296
+ before the second delivery. The earlier unclassified extra POSTs remain
297
+ unattributed; these new requests do not retrospectively establish their purpose.
298
+
299
+ ## Protected fences and retained provenance
300
+
301
+ The approved task #849 hash-only method protects configuration/auth/extensions,
302
+ the installed active/managed global package, launcher/selection metadata and
303
+ resolved entry. Exact root-relative runtime exclusions are the four Qwen live
304
+ state directories `file-history`, `projects`, `tmp`, `memories`; monthly
305
+ `usage/token-usage-*.jsonl`; `user-memory-meta.json`; root patterns
306
+ `.openai-logs-cleanup-*`, `.subagent-cleanup-*`, `.debug-logs-cleanup-*` and exact
307
+ `.file-history-cleanup`. The latter exclusions follow the
308
+ conductor's metadata/top-key classification of runtime bookkeeping, not a broad
309
+ usage or memory exclusion. The top-level `updates` archive is excluded only from
310
+ the configuration walk, while active global artifact/selection coverage remains.
311
+ Config/auth symlinks into excluded trees stay protected. Pi retains its historical
312
+ runtime exclusions (`sessions`, `logs`, `cache`, `install`, `bin`, `node_modules`,
313
+ `.git` at the original levels). Configuration/Pi per-file bound is 64 MiB, global artifact
314
+ 128 MiB, each snapshot 512 MiB/30000 entries/depth 24; errors and instability fail
315
+ closed. Task #849's deterministic fence controls remain the method provenance.
316
+
317
+ Both final runs have protected count 7016 and unchanged digest
318
+ `ddef2fe32e285bf7b3cd7f2cdd87101a5ede56d885eade626a7edc6d7a7555c3`.
319
+ Control full-prefix count 1694/digest
320
+ `05e7875b72dd69932523becb2f6d1270ccd3695abc998f5d1470eae61a43b9c5`
321
+ and candidate count 1723/digest
322
+ `ba1c58e46b3a9bd7073befe0ea92b1c24db0b3a72519cf1c9b237d567cf80c58`
323
+ are each identical before/after. Producer sources are also unchanged.
324
+
325
+ Retained closed evidence is resolved by these workspace-relative pointers under
326
+ `scratchpad/temp/task850`; each native root includes source copies, commands,
327
+ causal records, input/events, full per-scope fences and owned cleanup evidence.
328
+ The Q2 final runs retain bounded latest-user bodies; the remaining producer records
329
+ closed request metadata only. Original failed results and unused stale inputs are
330
+ preserved separately from later corrected runs.
331
+
332
+ | Pointer | Closed result | SHA-256 |
333
+ | --- | --- | --- |
334
+ | `native-control-root.json` | initial failed `q2-result.json` | `9854a19930571f6a8b05d446ea1140b60549dec9a9a2e329c4fb357794e15809` |
335
+ | `native-control-v2-root.json` | second failed `q2-result.json` | `e5f95e56e6fec13bfb930c0c1a352ad1b8f391cfa3b1aebe4b68725cc38349b9` |
336
+ | `config-only-root.json` | 0.26.1 `config-only-result.json` | `84c1ee0feea6dc06230699e6a71e950fb4026b54c3e457e59b5c986afdc7656e` |
337
+ | `native-control-v3-root.json` | passing control `q2-result.json` | `3a5099589ff9df657686e7af0fc964041b3d1dcf563105eeb30ee253fec3149d` |
338
+ | `native-candidate-root.json` | passing candidate `q2-result.json` | `2583b82d33fee3b56d810d247b0c32bf322a91461d24dc1f6ee78b5aece44e41` |
339
+ | `required-control-v2-root.json` | first failed `control/q3-q7-result.json` | `b3c150a790cb1ade935390b444f92551a036ec46c147e0219a3d3f6ef98eb53e` |
340
+ | `kernel-pty-control-root.json` | passing `control/kernel-pty-result.json` | `31afa5cc282b92d3a05819981df3407d3323338a78234c82f2c55eafe7bf345f` |
341
+ | `required-control-v3-root.json` | FIFO-helper failed `control/q3-q7-result.json` | `cfe56022aae265e9884ab9a629b2277b4f3fb85e6e5f1b05b302ddd8db4908e2` |
342
+ | `required-control-v4-root.json` | passing control `control/q3-q7-result.json` | `5f54732ce6ffb21cce8330659e957027d8917f9794b62eb6f2a06b614bf0480c` |
343
+ | `required-candidate-root.json` | passing candidate `control/q3-q7-result.json` | `f9ee01b511b33edeff215a710e6f95a609d7b18ed3eddbed74e9361c692d90d5` |
344
+ | `direct-control-root.json` | control characterization `control/q3-q7-result.json` | `3b476a90a829a08e00864c78eb579491937b4f372c1b41b6c46fe04ab268995d` |
345
+ | `direct-candidate-root.json` | candidate characterization `control/q3-q7-result.json` | `e4f4c61326e060f7c8b913db371a92a7abff02d02a17baf3c436a097ed4077b0` |
346
+
347
+ ## Existing ceilings and remaining native evidence
348
+
349
+ Normal completion uses non-tool-use assistant plus message_stop. Adoption
350
+ (qwen-dual.ts:221-241), reattachment (:358) and deny settlement (:558-572) do not
351
+ prove native idle in every path. No universal no-active-submit claim or runtime
352
+ fix is made. The premature deny/idle follow-up is outside this task.
353
+
354
+ The matched pair passes required normal-Bus Q2 and Q3/Q5/Q6/Q7. Q4 is report-only:
355
+ no new external-cancel behavior is qualified. Exact 0.27.0 admission uses this
356
+ receipt without widening to 0.27.1/0.28.0 or changing the independent basic ACP
357
+ or setter contracts. No automation manifest eligibility or runtime adapter/Bus
358
+ behavior changes.
359
+
360
+ ## Not verified
361
+
362
+ Real accounts/models, this repository's live dual-output TUI use, Linux and
363
+ lifetime containment remain unverified. The source focused checks at b20080aa
364
+ passed (10 controls, 84 assertions plus typecheck/inventory); final repository
365
+ checks and hosted CI are separate from these native observations. Native measured
366
+ HEADs remain b20080aa (Q2 code) and b8f2b20d (required/direct suites), regardless
367
+ of later documentation/admission commits.
@@ -0,0 +1,101 @@
1
+ # Qwen 0.27.1 dual-output qualification
2
+
3
+ Date: 2026-11-10 (KST). Task 869, Refs #888. **Required normal-Bus Q2 and Q3/Q5/Q6/Q7 PASS on matched 0.27.0 and
4
+ candidate 0.27.1.** This receipt supports exact 0.27.1 admission for the separate
5
+ qwen-dual contract. It repeats the procedure of the
6
+ [0.27.0 receipt](2026-11-10-qwen-0270-dual-output.md) unchanged in its assertions;
7
+ read that receipt for the method, the failed controls it preserves and the
8
+ ceilings that still apply. macOS arm64 PTY, local fixture provider, isolated
9
+ homes, private package installs, no account and no real model inference.
10
+
11
+ ## Upstream changes
12
+
13
+ The [v0.27.1 release notes](https://github.com/QwenLM/qwen-code/releases/tag/v0.27.1)
14
+ (published 2026-11-09) list no change to `--input-file`/`--json-file`, the
15
+ event or input line types, `session_start`, `can_use_tool` control requests or
16
+ TUI submit/cancel. The nearest entries are #16426 (prompts a Mod submits now run
17
+ in the OpenTUI terminal) and #16491 (the startup context names the active shell);
18
+ neither is exercised by the hub's input file. Shipped 0.27.1 keeps the gates the
19
+ fixture relies on: `loadSettings`/`createMinimalSettings` and the settings-path
20
+ getters in `chunks/settings-H2IQ347W.js`, `QWEN_CODE_SYSTEM_DEFAULTS_PATH`,
21
+ `QWEN_CODE_MODELS_DEV_REFRESH`, `QWEN_DISABLE_AUTO_TITLE` and
22
+ `ui.enableFollowupSuggestions` in both TUI implementations.
23
+
24
+ ## Artifacts and harness
25
+
26
+ - Candidate: private `npm install @qwen-code/qwen-code@0.27.1` in a fresh
27
+ sandboxed prefix, official integrity
28
+ `sha512-6LmUwR8VsgsWBgyZv0ltVJjVhob/0bGiwGFmfHd+QbheaIQQ/SLF6sXD+s9EfbCXBd91SUTr0iYLPS3iEJvNnw==`,
29
+ bin `cli-entry.js`; whole prefix 1725 entries, digest
30
+ `393109b8721024ab122b5b431c9f67da1040de66a02896816953ed050cdc0756`. Settings
31
+ export SHA-256 `e9948e1354becc3b7191434eeef772411002c41a49c5949a29da25f336399568`.
32
+ The installer's kernel controls and protected before/after fence passed.
33
+ - Control: the same private 0.27.0 package the 0.27.0 receipt qualified
34
+ (prefix 1723, digest
35
+ `ba1c58e46b3a9bd7073befe0ea92b1c24db0b3a72519cf1c9b237d567cf80c58`, unchanged).
36
+ - Repository HEAD for every run: `ad3f1b377ff4d243646bac89a221ab20f1a5759b`
37
+ (clean worktree, Bun 1.4.2, Node 24.18.1). It includes the #1371 deny fence,
38
+ which the 0.27.0 runs predate; both versions here ran against it.
39
+ - Harness: task 850's producers copied to `scratchpad/temp/task869` with only
40
+ these changes (`harness.diff`, SHA-256
41
+ `5b8d0ea8e3de3dcb227deb4529b770080cb4fe95e4f5919b90b1fb8606410d7e`): the
42
+ version allow-lists become 0.27.0/0.27.1, the 0.27.1 qualified prefix above is
43
+ added, private roots are named `ahub-869-*`, and the installer targets 0.27.1
44
+ with its official integrity. Assertions, bounds and the fixture settings are
45
+ unchanged.
46
+ - Protected fence: the approved task 849 snapshot pins the person's
47
+ self-updated managed Qwen version. Qwen had updated itself from 0.27.0 to
48
+ 0.27.1, so the first install attempt refused with
49
+ `global-selector-coverage-refused` before running anything. The fence copy now
50
+ pins managed 0.27.1 (the same seven coverage checks, all true); its SHA-256 is
51
+ `8422a04803a2765e9903384dc67ea3897f647ca8a38ca3af575b0a6afd483ad0`.
52
+
53
+ ## Results
54
+
55
+ | Observation | Control 0.27.0 | Candidate 0.27.1 |
56
+ | --- | --- | --- |
57
+ | Q2 UTC interval, 2026-11-10 | 09:18:04-09:18:09 | 09:18:18-09:18:24 |
58
+ | Q2 submit count while first response held / second envelope queued | 1 / true | 1 / true |
59
+ | Q2 second envelope delivered by Bus | true | true |
60
+ | Q2 final user / final Stop / message_stop / orphan Stop | 2 / 2 / 2 / 0 | 2 / 2 / 2 / 0 |
61
+ | Q2 first Stop < second user < second Stop | 9 < 10 < 17 | 9 < 10 < 17 |
62
+ | Q2 ordinary provider requests / message counts / user counts | 2 / 2,4 / 1,2 | 2 / 2,4 / 1,2 |
63
+ | Q2 final evidence closed, owned stop, cleanup failures | true / true / none | true / true / none |
64
+ | Suite UTC interval, 2026-11-10 | 09:19:13-09:19:49 | 09:19:53-09:20:29 |
65
+ | Q7 exact version, network guard positive control, kernel controls | PASS | PASS |
66
+ | Q3 allow / deny / TUI Enter / read-only / fixture MCP | 5 PASS | 5 PASS |
67
+ | Q3 final duplicate response count | 1 | 1 |
68
+ | Q5 unread FIFO, provider request, visible answer, native alive | PASS | PASS |
69
+ | Q6 same session, no replay, prior assistant context / old input bytes | PASS / 133 | PASS / 133 |
70
+ | Nine closed configuration checks, every case | pass | pass |
71
+ | Owned native generations, all groups gone and drains joined | 8 / true | 8 / true |
72
+ | Protected fence (count, digest), before = after | 7023, `5c1513f8...` | 7023, `5c1513f8...` |
73
+ | Whole-prefix and producer fences | unchanged | unchanged |
74
+ | requiredPassed / safetyAccepted / model calls / real account | true / true / 0 / false | true / true / 0 / false |
75
+
76
+ The protected digest is
77
+ `5c1513f8741747272f46e7f462853f984eef96ac6549afaacecbe05a0b7c6e62` in every run.
78
+ Q4 stays report-only (not run), and the direct busy-submit characterization was
79
+ not repeated; neither is a required leg.
80
+
81
+ ## Retained evidence
82
+
83
+ Workspace-relative pointers under `scratchpad/temp/task869`:
84
+
85
+ | Pointer | Closed result | SHA-256 |
86
+ | --- | --- | --- |
87
+ | `install-root.txt` | private 0.27.1 install, `install-result.json` and `artifact.json` | - |
88
+ | `q2-0270-root.json` | control `q2-result.json` | `6540d79b38e768be09788ed1cb8945fc5328bd68d639641b43a2ec3dedb1ac15` |
89
+ | `q2-0271-root.json` | candidate `q2-result.json` | `f596a7fd7d0296e728db64eb8d97776a29a2882d9587368846656fbdfe580ec7` |
90
+ | `required-0270-root.json` | control `control/q3-q7-result.json` | `06b7e7faea0a409729b4186120318a518c2889f8ccbfaedb1cb7ea9b30e66395` |
91
+ | `required-0271-root.json` | candidate `control/q3-q7-result.json` | `bee0a754d5b47ca1615814b8cf75861f329123fdb10abd90ee9ac22619eaff52` |
92
+
93
+ One suite attempt on 0.27.0 refused at `private-controller-directory` before
94
+ any native start, because the wrapper had not created the controller home and
95
+ temp directories with mode 0700; it ran nothing and is not a measurement.
96
+
97
+ ## Not verified
98
+
99
+ The same as the 0.27.0 receipt: real accounts and models, live dual-output TUI
100
+ use in this repository, Linux, lifetime containment, and Q4 external stop. The
101
+ headless `qwen` ACP entry is a separate contract and still refuses 0.27.1.