@staix/agent-hub 0.35.0 → 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.
- package/CHANGELOG.md +26 -0
- package/README.md +21 -4
- package/docs/agent-notes/README.md +60 -0
- package/docs/agent-notes/adapters.md +5 -2
- package/docs/agent-notes/bus.md +1 -0
- package/docs/agent-notes/daemon.md +5 -4
- package/docs/agent-notes/models.md +4 -3
- package/docs/agent-notes/tasks.md +8 -1
- package/docs/agent-notes/tests.md +1 -0
- package/docs/design/adapters.md +72 -0
- package/docs/design/agent-hub-architecture.md +1 -1
- package/docs/design/bus.md +8 -0
- package/docs/design/execution-reference.md +171 -11
- package/docs/design/guidance-experiments.md +438 -0
- package/docs/design/model-routes.md +628 -0
- package/docs/design/supervision.md +121 -0
- package/docs/design/task-board.md +111 -0
- package/docs/dogfood.md +15 -4
- package/docs/operations.md +291 -22
- package/docs/profiles.md +2 -2
- package/docs/quickstart.md +106 -1
- package/docs/research.md +4 -2
- package/docs/sdlc.md +108 -4
- package/docs/security.md +67 -5
- package/docs/specs/2026-09-19-agent-hub-design.md +5 -4
- package/docs/verification/2026-10-25-qwen-dual-output-t0.md +22 -0
- package/docs/verification/2026-11-09-qwen-0270-acp.md +181 -0
- package/docs/verification/2026-11-09-qwen-0270-model-setter-1317.md +46 -0
- package/docs/verification/2026-11-10-0.36.0.md +59 -0
- package/docs/verification/2026-11-10-claude-implementer-2.1.322.md +59 -0
- package/docs/verification/2026-11-10-qwen-0270-dual-output.md +367 -0
- package/docs/verification/2026-11-10-qwen-0271-dual-output.md +101 -0
- package/docs/verification/claude-shell-wrapper-native.py +1 -1
- package/docs/verified.json +27 -27
- package/package.json +1 -1
- package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-hub/kimi-hook.js +1201 -368
- package/plugins/agent-hub/server.js +1682 -431
- package/src/adapters/claude-channel.ts +7 -4
- package/src/adapters/compat.ts +10 -10
- package/src/adapters/local-worker.ts +1 -1
- package/src/adapters/qwen-dual.ts +324 -44
- package/src/cli/guidance.ts +67 -0
- package/src/cli/help.ts +10 -3
- package/src/cli/identity.ts +10 -3
- package/src/cli/init-prompt.ts +15 -2
- package/src/cli/init-required-checks.ts +122 -0
- package/src/cli/init-settings.ts +10 -4
- package/src/cli/init.ts +39 -3
- package/src/cli/lineage.ts +78 -0
- package/src/cli/main.ts +111 -10
- package/src/cli/setup-research.ts +10 -0
- package/src/hub/autonomy-defaults.ts +20 -9
- package/src/hub/board.ts +346 -4
- package/src/hub/build-entry.ts +11 -0
- package/src/hub/bus.ts +12 -0
- package/src/hub/ci-watch.ts +4 -4
- package/src/hub/config-apply.ts +2 -1
- package/src/hub/config-trust.ts +1 -0
- package/src/hub/control-client.ts +1 -1
- package/src/hub/daemon.ts +342 -20
- package/src/hub/delivery-hints.ts +4 -2
- package/src/hub/delivery-journal.ts +50 -2
- package/src/hub/delivery-public.ts +51 -0
- package/src/hub/dogfood-profile.ts +8 -4
- package/src/hub/execution-lineage-owner.ts +272 -0
- package/src/hub/execution-lineage.ts +52 -8
- package/src/hub/execution-links.ts +85 -0
- package/src/hub/guidance-variants.ts +398 -0
- package/src/hub/handoff.ts +1 -0
- package/src/hub/hub-tools.ts +43 -2
- package/src/hub/manager.ts +44 -2
- package/src/hub/memory-policy.ts +2 -2
- package/src/hub/peers.ts +1 -1
- package/src/hub/planning.ts +1 -1
- package/src/hub/progress.ts +24 -7
- package/src/hub/restart.ts +13 -0
- package/src/hub/roles.ts +26 -0
- package/src/hub/routing.ts +4 -1
- package/src/hub/sdlc-merge.ts +39 -1
- package/src/hub/sdlc-release.ts +1 -1
- package/src/hub/sdlc.ts +62 -11
- package/src/hub/settings.ts +2 -0
- package/src/hub/supervision-proposals.ts +405 -0
- package/src/hub/supervision-rules.ts +388 -0
- package/src/hub/supervision.ts +2 -0
- package/src/hub/task-approval.ts +2 -2
- package/src/hub/task-repository.ts +5 -0
- package/src/hub/tasks.ts +603 -50
- package/src/memory/capture.ts +2 -2
- package/src/models/relay.ts +9 -2
- package/src/models/route/config.ts +27 -0
- package/src/models/route/decision.ts +87 -15
- package/src/models/route/relay-selector.ts +8 -7
- package/src/models/route/runtime.ts +22 -16
- package/src/models/route/stage-diagnostics.ts +22 -0
- package/src/models/route/stage-evidence.ts +55 -0
- package/src/models/route/stage-fallback.ts +58 -0
- package/src/models/route/stage-input.ts +155 -0
- package/src/models/route/stage.ts +5 -147
- package/src/ui/guidance-panel.ts +156 -0
- package/src/ui/guidance-view.ts +43 -0
- package/src/ui/lineage-view.ts +34 -0
- package/src/ui/plugin.ts +71 -7
|
@@ -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.
|
|
@@ -68,7 +68,7 @@ results=[]
|
|
|
68
68
|
for raw_binary in args.claude:
|
|
69
69
|
binary=pathlib.Path(raw_binary).resolve(); identity=ROOT/('identity-'+binary.name); identity.mkdir()
|
|
70
70
|
version=subprocess.run([str(binary),'--version'],env={'HOME':str(identity),'CLAUDE_CONFIG_DIR':str(identity/'config'),'PATH':runtime_path},capture_output=True,text=True,timeout=10)
|
|
71
|
-
assert version.returncode==0 and (version.stdout.strip().split()[0] == args.expected_version if args.expected_version is not None else version.stdout.strip().split()[0] in ('2.1.309','2.1.310','2.1.314','2.1.316','2.1.318','2.1.319')),(version.returncode,version.stdout)
|
|
71
|
+
assert version.returncode==0 and (version.stdout.strip().split()[0] == args.expected_version if args.expected_version is not None else version.stdout.strip().split()[0] in ('2.1.309','2.1.310','2.1.314','2.1.316','2.1.318','2.1.319','2.1.322')),(version.returncode,version.stdout)
|
|
72
72
|
label=version.stdout.strip().split()[0]; digest=sha(binary)
|
|
73
73
|
for mode in ('context','normalized'):
|
|
74
74
|
d=ROOT/(label+'-'+mode); d.mkdir(); home=d/'home';home.mkdir(); work=d/"work 'quoted'";work.mkdir();(work/'sub').mkdir()
|