Commit 462de4d
merge(shared-code): the shared-code aftermath plan — two tasks
The tail of the 2026-08-10 shared-code plan, in two parts.
- Task 1 collapses the duplications that plan's inventory could not see: it
was taken at 6dfba7c, before the 2026-08-08 branch landed, so every pair
that branch introduced was invisible to it. Seven rows, re-inventoried by
grep rather than re-verified from the table — which dropped row 3 (its
three per-file "left running" hits turn out to be rows 5+7 plus an
unpaired sentence) and inverted row 2 (it is the ops-level ValueError the
CLI cannot reach, not the other way round: the CLI guard answers
--samples 0 without demanding a session, so both survive, each commented
with why the other exists). The shared spines land in the library —
ops.RUNAWAY_ROUTINE, ops.profile_hazard, ops.key_state_note,
ops.stopped_wait_diagnosis, charset.parse_charset_file,
charset.check_label — with the halves that must differ per front end
passed in as arguments, and cli._wait_verdict collapses the two-sample
logic the error-contract branch left triplicated inline. Every one of the
twenty user-visible messages renders byte-identically; that was verified
twice, independently, against the pre-change literals.
- Task 2 closes the same branch's deferred minors: six coverage tests
(basic type --json, protocol.op_name's empty-mask contract,
ops.session_ref's labels=None default, disk.get_file's ALPHA -> ALPHA.prg
docstring claim, the profile runaway clause, audio.sid_report's
silent-omission branch), one invariant collapsed — sid_report now raises
rather than silently omitting "peak", so the rule stops being spread
across three files — plus the comment, docstring and annotation pass.
A final-review fix wave pins the per-front-end halves the shared spines
made swappable: four slot-anchored assertions, mutation-proved in both
directions, and mcp_server now spells its own check_label flag with the
library default removed so no caller can be correct by accident.
Suite 2059 passed / 1 skipped (baseline 2039/1). ruff and pyright clean.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SASautcihGg9ZuUDhhbbFV20 files changed
Lines changed: 726 additions & 193 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1336 | 1336 | | |
1337 | 1337 | | |
1338 | 1338 | | |
1339 | | - | |
1340 | | - | |
1341 | | - | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1342 | 1344 | | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
1343 | 1351 | | |
1344 | 1352 | | |
1345 | 1353 | | |
| |||
1362 | 1370 | | |
1363 | 1371 | | |
1364 | 1372 | | |
1365 | | - | |
| 1373 | + | |
1366 | 1374 | | |
1367 | 1375 | | |
1368 | 1376 | | |
| |||
1372 | 1380 | | |
1373 | 1381 | | |
1374 | 1382 | | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1375 | 1393 | | |
1376 | 1394 | | |
1377 | 1395 | | |
| |||
1406 | 1424 | | |
1407 | 1425 | | |
1408 | 1426 | | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
1417 | 1432 | | |
1418 | 1433 | | |
1419 | 1434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
139 | 181 | | |
140 | 182 | | |
141 | 183 | | |
| |||
0 commit comments