geneseed 3.1.0 → 3.1.2
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 +110 -0
- package/DESIGN.md +31 -20
- package/README.md +2 -2
- package/SETUP.md +30 -3
- package/SHIPPED.md +1 -1
- package/bin/{geneseed.mjs → build-driver.mjs} +88 -42
- package/bin/geneseed-cli.mjs +33 -32
- package/bin/geneseed-hook.mjs +7 -7
- package/docs/design-history.md +40 -40
- package/docs/extending.md +113 -85
- package/docs/web/rules.md +2 -0
- package/docs/web/setup-choices.md +13 -1
- package/harness.config.json +1 -1
- package/js/README.md +203 -0
- package/js/build/bundle.mjs +231 -0
- package/js/{catalog.mjs → build/catalog.mjs} +7 -7
- package/js/build/emit-claude.mjs +287 -0
- package/js/build/emit-common.mjs +255 -0
- package/js/build/emit-opencode.mjs +214 -0
- package/js/{generate.mjs → build/generate.mjs} +45 -31
- package/js/{render.mjs → build/render.mjs} +72 -11
- package/js/{checkout.mjs → build/source.mjs} +52 -11
- package/js/build/stubs.mjs +256 -0
- package/js/{themes.mjs → build/themes.mjs} +24 -24
- package/js/build/version.mjs +155 -0
- package/js/{hooks.mjs → hosts/hooks.mjs} +47 -44
- package/js/{hosts.mjs → hosts/hosts.mjs} +30 -28
- package/js/{installs.mjs → hosts/installs.mjs} +68 -16
- package/js/{link.mjs → hosts/link.mjs} +29 -28
- package/js/{mcp.mjs → hosts/mcp.mjs} +10 -9
- package/js/{native.mjs → hosts/native.mjs} +24 -22
- package/js/{opencode.mjs → hosts/opencode.mjs} +12 -7
- package/js/{settings.mjs → hosts/settings.mjs} +94 -69
- package/js/inspect/checks-authoring.mjs +761 -0
- package/js/inspect/checks-build.mjs +231 -0
- package/js/inspect/checks-repo.mjs +308 -0
- package/js/{diff.mjs → inspect/diff.mjs} +34 -31
- package/js/inspect/doctor.mjs +286 -0
- package/js/{excludes.mjs → inspect/excludes.mjs} +30 -33
- package/js/{inventory.mjs → inspect/inventory.mjs} +34 -20
- package/js/{registry.mjs → inspect/registry.mjs} +12 -10
- package/js/inspect/scan.mjs +125 -0
- package/js/{status.mjs → inspect/status.mjs} +27 -25
- package/js/inspect/validate.mjs +199 -0
- package/js/lib/fs.mjs +37 -759
- package/js/lib/json.mjs +344 -0
- package/js/lib/paths.mjs +242 -0
- package/js/lib/proc.mjs +3 -3
- package/js/lib/text.mjs +181 -0
- package/js/lib/udiff.mjs +1 -1
- package/js/{memory.mjs → maintain/memory.mjs} +10 -10
- package/js/{migrate.mjs → maintain/migrate.mjs} +28 -26
- package/js/{setup.mjs → maintain/setup.mjs} +49 -37
- package/js/{uninstall.mjs → maintain/uninstall.mjs} +62 -58
- package/js/{update.mjs → maintain/update.mjs} +51 -51
- package/js/{anim.mjs → ui/anim.mjs} +30 -28
- package/js/{cli.mjs → ui/cli.mjs} +10 -10
- package/js/{menu.mjs → ui/menu.mjs} +10 -9
- package/js/{tui.mjs → ui/tui.mjs} +36 -34
- package/js/web/actions.mjs +124 -89
- package/js/web/activity.mjs +22 -21
- package/js/web/api.mjs +88 -58
- package/js/web/daemon.mjs +319 -0
- package/js/web/docs.mjs +24 -21
- package/js/web/graph.mjs +0 -0
- package/js/web/handler.mjs +442 -0
- package/js/web/jobs.mjs +29 -21
- package/js/web/routes.mjs +223 -0
- package/js/web/server.mjs +56 -987
- package/package.json +11 -3
- package/src/AGENT.md.tmpl +1 -1
- package/src/doctrines/README.md +1 -1
- package/themes/opencode/README.md +1 -1
- package/web/dist/assets/{About-_MnJcwb_.js → About-CPvIFZGh.js} +1 -1
- package/web/dist/assets/{Activity-DpjqO-FR.js → Activity-z0uXdS7J.js} +1 -1
- package/web/dist/assets/{ActivityDetail-Bvrjv8oW.js → ActivityDetail-CEj5IJpF.js} +1 -1
- package/web/dist/assets/{Diff-DZ0IehBV.js → Diff-BMR8fPuG.js} +1 -1
- package/web/dist/assets/{Doctor-cu4krooO.js → Doctor-Bz5qE4r9.js} +1 -1
- package/web/dist/assets/{Graph-DUOPY65j.js → Graph-BV6a6t2l.js} +1 -1
- package/web/dist/assets/{Harnesses-B5Osg-BF.js → Harnesses-C5Ag5PaQ.js} +1 -1
- package/web/dist/assets/Laws-BK07NKw9.js +3 -0
- package/web/dist/assets/{Library-8y69I3_z.js → Library-CiXN9sC3.js} +1 -1
- package/web/dist/assets/{Markdown-Ds5GS1OD.js → Markdown-DG6FjUz-.js} +1 -1
- package/web/dist/assets/{Profile-7Jxa7ZUX.js → Profile-B2oSvdxH.js} +1 -1
- package/web/dist/assets/{Rules-UZ0jWkjg.js → Rules-DobVPd80.js} +1 -1
- package/web/dist/assets/{Skills-Bgkl0xLd.js → Skills-DQPsvsn9.js} +1 -1
- package/web/dist/assets/{StatusBadge-Cx4caF_2.js → StatusBadge-BhJ3HhdI.js} +1 -1
- package/web/dist/assets/{Themes-De8az7Sv.js → Themes-BP38FBU9.js} +1 -1
- package/web/dist/assets/{activity-VDAdVQ3q.js → activity-D9mfv7pY.js} +1 -1
- package/web/dist/assets/index-BE226Gv6.css +1 -0
- package/web/dist/assets/{index-BKrjBRV4.js → index-BZ7cPLMI.js} +1 -1
- package/web/dist/assets/index-BgIs5eIa.js +12 -0
- package/web/dist/assets/{index-wNiNzFFQ.js → index-DGM5j2hB.js} +1 -1
- package/web/dist/index.html +2 -2
- package/web/src/pages/Laws.jsx +135 -69
- package/docs/declined.md +0 -200
- package/docs/limits.md +0 -329
- package/js/doctor.mjs +0 -1712
- package/js/emit.mjs +0 -1410
- package/web/dist/assets/Laws-D8DJgTBp.js +0 -3
- package/web/dist/assets/index-1pPSz7Kl.css +0 -1
- package/web/dist/assets/index-C-gb-q-r.js +0 -12
package/docs/limits.md
DELETED
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
# Limits — what this tool does not prove about itself
|
|
2
|
-
|
|
3
|
-
Geneseed is one implementation: `bin/`, `js/`, `adapters/`. It used to be two. Until the 2.0
|
|
4
|
-
re-layout there was a second, older implementation beside it, and three cell harnesses ran both
|
|
5
|
-
and compared every byte either one wrote plus both streams and the exit code. That second party
|
|
6
|
-
is deleted, and **on 2026-08-17 the recording it left behind was retired with it** — the emit, cli
|
|
7
|
-
and web corpora, 1381 cells, plus the two replayers that existed only to drive them. What survives
|
|
8
|
-
under `tests/__snapshots__/` is the narrower set of pure-function and help recordings that
|
|
9
|
-
`tests/snapshot/` replays. *The emit, cli and web corpora were RETIRED* below carries the
|
|
10
|
-
measurement that licensed that, what it cost, and what is left holding the line.
|
|
11
|
-
|
|
12
|
-
This file is the standing answer to *"what does this tool not prove about itself?"* It is kept
|
|
13
|
-
beside the code rather than in a phase note, because phase notes are per-machine and this
|
|
14
|
-
outlives them.
|
|
15
|
-
|
|
16
|
-
Each row says whether the limit is **ASSERTED** — there is a test that fails if it closes or
|
|
17
|
-
widens without this file changing — or **STATED**, meaning the claim rests on prose and nothing
|
|
18
|
-
enforces it. Prefer asserting. A structural gate must read *code*, never the paragraph that
|
|
19
|
-
admits the limit, or deleting the paragraph is a way to pass it.
|
|
20
|
-
|
|
21
|
-
**New in the 2.0 re-layout**, and each is checked against the tree rather than inherited from the
|
|
22
|
-
previous version of this document:
|
|
23
|
-
|
|
24
|
-
* **Limit zero** below — a corpus proves *unchanged*, never *correct* — promoted from a bullet
|
|
25
|
-
to the frame every other row sits inside, because with the second party gone it now governs all
|
|
26
|
-
of them. It governs a smaller estate since the retirement: the pure-function and help
|
|
27
|
-
recordings, and nothing else.
|
|
28
|
-
* **Row 1** — there is no full-screen panel at all any more, on any path. Not "unported": absent.
|
|
29
|
-
* **Row 3** — `/api/pick-folder` still exists as a declared decline and a live 501, but there is
|
|
30
|
-
no longer a handler anywhere for it to be declined *against*.
|
|
31
|
-
* **Row 12** — the width tables are pinned by a recorded hash and a declared Unicode version, not
|
|
32
|
-
by a live Unicode oracle.
|
|
33
|
-
|
|
34
|
-
---
|
|
35
|
-
|
|
36
|
-
## ⚠ Limit zero — a corpus proves UNCHANGED, never CORRECT
|
|
37
|
-
|
|
38
|
-
Every replay left in this repository — the pure-function recordings under `tests/__snapshots__/`
|
|
39
|
-
and the 26 help fixtures beside them — compares today's answer against a recorded one. That is a
|
|
40
|
-
regression gate and it is a good one. It is **not** a correctness gate, and the difference is the
|
|
41
|
-
whole subject of this file.
|
|
42
|
-
|
|
43
|
-
The recording was taken from an implementation that **agreed with this one at the time it was
|
|
44
|
-
taken**. Where the two agreed and were both right, the corpus freezes a right answer. Where the
|
|
45
|
-
two agreed and were both wrong, the corpus freezes the agreement — and there is no longer a
|
|
46
|
-
second party who could disagree. A cross-implementation comparison was already structurally blind
|
|
47
|
-
to a defect both sides shared; the recording inherited that blindness and made it permanent.
|
|
48
|
-
|
|
49
|
-
So: a green replay says *"this code still answers what it answered on the day the recording was
|
|
50
|
-
taken."* It says nothing about whether that answer was ever the right one. Everything below is the
|
|
51
|
-
standing list of where that matters and of the branches nothing reaches at all.
|
|
52
|
-
|
|
53
|
-
**The recordings that remain can never be taken again either.** They were produced by the
|
|
54
|
-
reference implementation and by nothing else; every program that could write one is deleted, and
|
|
55
|
-
the two suites in `tests/snapshot/` replay and do not record. So a change that moves a byte in one
|
|
56
|
-
of them is a **finding, not a step**. There is no re-bless. If a replay goes red the choice is to
|
|
57
|
-
revert the change or to argue, in writing, that the recording was wrong — and nothing can settle
|
|
58
|
-
that argument any more.
|
|
59
|
-
|
|
60
|
-
## ⚠ The emit, cli and web corpora were RETIRED — 2026-08-17
|
|
61
|
-
|
|
62
|
-
**1381 recorded cells under `tests/__snapshots__/{emit,cli,web}` are deleted**, with the two
|
|
63
|
-
replayers that existed only to drive them (`tests/cli_golden.mjs`, `tests/web_golden.mjs`), the
|
|
64
|
-
scan that swept their bytes for Python, and the three `node-cells` steps in
|
|
65
|
-
`.github/workflows/ci.yml` that ran them. What is left of that job is the two self-comparisons,
|
|
66
|
-
which have no corpus and need none.
|
|
67
|
-
|
|
68
|
-
**The reason is limit zero with the brake off.** A recording nobody can re-bless makes every
|
|
69
|
-
deliberate content change a red gate — an emitted sentence, a reworded refusal, a version bump —
|
|
70
|
-
while saying nothing at all about a defect that happened to be stable on the day it was taken. Run
|
|
71
|
-
long enough, that is a gate reporting the author's intent rather than the code's behaviour, and the
|
|
72
|
-
only way to stay green is to stop changing the product. The 2.0 bump had already shown the shape:
|
|
73
|
-
one label moving reddened 224 of 259 emit cells and none of them was a defect.
|
|
74
|
-
|
|
75
|
-
**The retirement was licensed by MEASUREMENT, not by the redness.** `tests/mutate.mjs` declares 31
|
|
76
|
-
mutations and names, per row, the gate that must kill each one. Five declared a corpus replay and
|
|
77
|
-
nothing else — **M1, M2, M3, M4 and M8** (`EMIT`, `EMIT_IMPERIAL`, `EMIT_CLAUDE`, `WEB_CATALOG`,
|
|
78
|
-
`CLI_CONTEXT`). All five are killed by `tests/unit/` alone, the control included, and each row now
|
|
79
|
-
**declares** the unit file that kills it rather than a replay that can no longer run — M1 and M3
|
|
80
|
-
`maintainer_tools`, M2 `node_driver`, M4 `hook_form`, M8 `hook_cli`. A gate a matrix names and
|
|
81
|
-
cannot run guards nothing, and is worse than none, because it is trusted (Doctrine rigor 2,
|
|
82
|
-
Honest Tests). For every defect the mutation matrix knows how to plant, the corpus was
|
|
83
|
-
redundant. That is the whole argument, and it is the only one that licenses a deletion:
|
|
84
|
-
a test goes because a living gate already proves the property, never because it is red.
|
|
85
|
-
|
|
86
|
-
**What was knowingly LOST: byte-level regression detection on emit, cli and web output.** Nothing
|
|
87
|
-
now notices that a rendered bundle, a verb's stdout / stderr / exit code, or an HTTP response body
|
|
88
|
-
moved by one byte for a reason nobody intended. A defect the mutation matrix does not carry, in a
|
|
89
|
-
region `tests/unit/` does not reach, is one this repository will no longer see. That is a real
|
|
90
|
-
reduction in coverage, stated here rather than discovered later.
|
|
91
|
-
|
|
92
|
-
**What REMAINS:**
|
|
93
|
-
|
|
94
|
-
* `node tests/golden.mjs --idempotent` — the re-emit path every user is on from their second build
|
|
95
|
-
onwards, a run compared against another run of the same generator.
|
|
96
|
-
* `node tests/golden.mjs --deletion` — configuration A, then B onto A's tree, against a **fresh**
|
|
97
|
-
emit of B; the only thing that makes the write-before-delete prune actually delete.
|
|
98
|
-
* `node bin/geneseed-cli.mjs doctor --all` — every theme, plus the parity, authoring and drift
|
|
99
|
-
checks.
|
|
100
|
-
* `tests/unit/` — the suite that kills every mutation the matrix declares but one. The exception is
|
|
101
|
-
**M7**, whose seam is the `updated` branch of `managedBlockWrite`: it runs only on a *re-emit*, so
|
|
102
|
-
no fresh-sandbox fixture reaches it and `--idempotent` is its gate by construction.
|
|
103
|
-
|
|
104
|
-
Both `golden.mjs` modes compare a run against another run of the *same* implementation, so they are
|
|
105
|
-
determinism checks rather than regression gates — the same degradation standing decision 2 below
|
|
106
|
-
has been calling the live one. What they buy for it is that they keep working however the content
|
|
107
|
-
changes, which is exactly what the retired corpora could not do.
|
|
108
|
-
|
|
109
|
-
**The tag `python-reference-v1.0.0` is kept as the historical pointer.** The second implementation
|
|
110
|
-
and every cell it recorded still exist there, in full, and that is the only place they will. Nothing
|
|
111
|
-
in the working tree reads it; it is a place to go and look, not a gate.
|
|
112
|
-
|
|
113
|
-
### The one hand-edit ever made to a recorded file
|
|
114
|
-
|
|
115
|
-
**2026-08-17 — `tests/__snapshots__/primitives/{win32,posix}.json`, the `note` field of three cases
|
|
116
|
-
each, edited by hand to repoint `docs/port-ledger.md` at `docs/limits.md`.** It was safe for a
|
|
117
|
-
reason that has to be re-checked before anyone ever does it again, not quoted as a precedent:
|
|
118
|
-
`note` is **never compared as an answer**. `tests/snapshot/pure_snapshot.test.mjs`'s replay loop compares
|
|
119
|
-
`result` and `result_ascii` and reads nothing else from a case; the only claim on `note` is the
|
|
120
|
-
assertion that every noted case's note names this document, and that assertion was updated to the
|
|
121
|
-
new filename rather than dropped — *a note that quietly stops being emitted is a bug that quietly
|
|
122
|
-
becomes an unremarked-on fact.* Nothing that any replay treats as an answer was touched, and the
|
|
123
|
-
edit was verified to move only `note` lines.
|
|
124
|
-
|
|
125
|
-
**This is an exception, not a precedent.** The next person who wants to hand-edit a recording
|
|
126
|
-
should assume the answer is no and re-derive the whole argument above for their own field.
|
|
127
|
-
|
|
128
|
-
### The second thing the comparison was taught to ignore — HISTORY, and the reason the retirement above happened
|
|
129
|
-
|
|
130
|
-
*This describes the emit corpus, which is gone. The destamp survives it and is now inert: a run
|
|
131
|
-
compared against another run of the same generator carries the same version on both sides. Kept
|
|
132
|
-
because it is the clearest measurement of what a frozen corpus costs, and it is what made the case
|
|
133
|
-
for retiring one.*
|
|
134
|
-
|
|
135
|
-
**2026-08-17 — `destamp()` in `tests/helpers/golden.mjs` learned to blank `"_version"` inside
|
|
136
|
-
`agent-overrides.json`, as it already blanked `[release <REL>]` inside `.geneseed-version`.**
|
|
137
|
-
|
|
138
|
-
The configured release version is stamped into emitted bundles in **two** places, and only the first
|
|
139
|
-
had ever been blanked before comparison. The second was found by attempting the 2.0.0 bump: **224 of
|
|
140
|
-
259 emit cells went red**, every one of them the same file, `CHANGED (558 -> 558 bytes)`. It had
|
|
141
|
-
stayed invisible for two reasons worth remembering — the sweep that added the first arm hunted the
|
|
142
|
-
**bracketed** spelling, which this site does not use; and `1.0.0` and `2.0.0` are the same length, so
|
|
143
|
-
the size never moved and only the hash could see it.
|
|
144
|
-
|
|
145
|
-
**Left unfixed, the frozen corpus would have pinned this project's version at `1.0.0` permanently** —
|
|
146
|
-
not merely 2.0.0 but every possible bump, in 448 recorded files, with no recorder left to re-bless
|
|
147
|
-
one. That is not a limit anyone chose, and it is the reason this is a fix rather than a concession.
|
|
148
|
-
|
|
149
|
-
**The distinction that mattered at the time:** it narrowed what the replay COMPARED; it did not touch
|
|
150
|
-
a recorded byte. The other ~553 bytes of that stub, and every other file in all 259 cells, stayed
|
|
151
|
-
asserted exactly as before. **It was still a real loss of coverage** — nothing checked that the
|
|
152
|
-
emitted `_version` matched the configured one, and nothing could, because verifying it needed the
|
|
153
|
-
oracle that recorded those bytes. **And that is the pattern that ran out.** Every bump, every reworded
|
|
154
|
-
sentence, every renamed file would have arrived as the same choice: narrow the comparison again, or
|
|
155
|
-
freeze the product. Two exemptions in one release is a trend, not an incident, and the third would
|
|
156
|
-
have been the version bump after this one.
|
|
157
|
-
|
|
158
|
-
## Frozen residue — true statements that are now permanently unfixable
|
|
159
|
-
|
|
160
|
-
Four things in this repository are wrong, known to be wrong, and **cannot be corrected**, because
|
|
161
|
-
correcting them would move a byte in a corpus with no recorder left. They are listed so a future
|
|
162
|
-
reader finds a decision here rather than concluding nobody looked. This list was six until
|
|
163
|
-
2026-08-17; the two the retirement freed are recorded under it, because *which* residue a corpus
|
|
164
|
-
creates is the clearest measure of what freezing one costs.
|
|
165
|
-
|
|
166
|
-
- **`tests/__snapshots__/primitives/{win32,posix}.json` freeze `[authoring] _web_core prose says …`**
|
|
167
|
-
across five cases, naming a module the cut deleted. Frozen evidence about a program that no
|
|
168
|
-
longer exists — accurate as a record of what the reference answered, misleading as a description
|
|
169
|
-
of today.
|
|
170
|
-
- **`tests/helpers/matrix/*.json` — 4 files — are permanently un-regenerable.** Their only producer
|
|
171
|
-
was the reference's matrix exporter. The committed copies are the last export. `tests/golden.mjs`
|
|
172
|
-
drives the `emit` pair; `tests/unit/hook_cli.test.mjs` reads both halves of the `cli` pair to
|
|
173
|
-
derive the platform union. **The `web` pair was deleted on 2026-08-19** — 418 kB whose only
|
|
174
|
-
reader went with the web corpus, so nothing had exercised them since; `tests/ported.json` carries
|
|
175
|
-
the decision and the criterion it was taken on.
|
|
176
|
-
- **`tests/__snapshots__/token_report_primitives.json` names `js/lib/pyfs.mjs`** in one recorded
|
|
177
|
-
`why` field, and this release renamed that file to `js/lib/fs.mjs`. **This one was left alone on
|
|
178
|
-
purpose, and the reasoning is the point:** `why` is never compared — it is interpolated into a
|
|
179
|
-
failure message — so editing it would have been *safe*. Nothing *forced* it. The one hand-edit of a
|
|
180
|
-
recording this release did make (the `note` fields, below) was forced: an assertion matched on
|
|
181
|
-
those strings and would have gone stale. **Reserve editing a recording for when an assertion
|
|
182
|
-
demands it, not for when it is merely harmless**, or the exception becomes the rule and the corpus
|
|
183
|
-
stops being evidence.
|
|
184
|
-
|
|
185
|
-
Three of the four share one shape: **a string is cheap to fix right up until it is recorded, and
|
|
186
|
-
then it is not fixable at all.** That is the cost of freezing a corpus, paid knowingly.
|
|
187
|
-
|
|
188
|
-
**Freed on 2026-08-17, and neither is fixed yet.** Both are now ordinary edits somebody has to make;
|
|
189
|
-
they are kept here so the next reader finds the reason the code looks the way it does.
|
|
190
|
-
|
|
191
|
-
- **`js/tui.mjs` and `js/menu.mjs` end a refusal with ``Use `harness setup`, `doctor`, or `build`.``**
|
|
192
|
-
`harness` was the reference's argparse program name and now names nothing. Both strings were
|
|
193
|
-
recorded in the CLI corpus, so changing either used to redden cells nobody could re-record. That
|
|
194
|
-
corpus is gone; the wrong word is now just a wrong word.
|
|
195
|
-
- **`tests/workflow_runtime.test.mjs` sits at `tests/` top level, alone among the plugin suites.**
|
|
196
|
-
`adapters/opencode/workflows/_runtime.js` names that path in a comment, and that file is EMITTED,
|
|
197
|
-
so its bytes were hashed into the emit corpus: moving the suite to `tests/plugins/` and updating
|
|
198
|
-
the pointer grew the emitted file by 8 bytes and turned the corpus red. **The layout bent around
|
|
199
|
-
the frozen recording rather than leaving the shipped comment to rot** — the one place the freeze
|
|
200
|
-
was visible in the directory structure. Nothing holds it there now.
|
|
201
|
-
|
|
202
|
-
## What IS covered
|
|
203
|
-
|
|
204
|
-
All 25 subcommands, 29 of 29 web paths, 5 of 5 docs kinds. Every `NOT_PORTED*` table in `js/web/`
|
|
205
|
-
is empty and stays declared as the empty half of a partition — the shape that makes the next
|
|
206
|
-
missing thing visible instead of silently absent.
|
|
207
|
-
|
|
208
|
-
## Declared, with an assertion
|
|
209
|
-
|
|
210
|
-
| # | The limit | Where it is asserted |
|
|
211
|
-
|---|---|---|
|
|
212
|
-
| 1 | **There is no full-screen panel.** Not unported — absent. `js/tui.mjs`'s `cmdTui` has two arms and **both print and return 1**: off a TTY it says so, on one it says the entry carries the TUI's layout half and not its screens. The reference's panel — its loop, its eighteen screens, its `(stdscr, curses, pal)` drawing helpers, its Windows console window, its menus, the curses arms of `setup` and `bootstrap`, and `doctor`'s progress callback — is deleted with the implementation that had it. **The comparison half of this row is history**: there is no panel to declare a gap against. What is live is the claim about the shipping code, and it is a claim about ABSENCE, which is the kind a structural gate can hold. (This row used to say the refusal *names* the interpreter-and-script invocation of the panel. It has not since P2, which removed the pointer rather than re-aiming it: a refusal naming a file this migration deletes is worse than one that simply says the screen does not exist. The row was factually stale for two phases, which is the argument for reading the gate out of the code rather than out of the prose.) | **`tests/unit/no_panel.test.mjs`**, which needs nothing but the port: behavioural (faked `isTTY`, exit 1, no panel marks on stdout, and the refusal is the only line it writes) and structural — it fails if `js/tui.mjs` grows any of `?1049h`, `?1049l`, `?25l`, a literal ESC, `\x1b[`, `[`. **What is NOT asserted and cannot be**: that a panel, if one were written, would work. The positive control that used to prove the reference panel really painted — the thing that stopped the mark list being a set of strings nothing produces — retired with the reference. The Node file replaces it with a control of its own (see row 6), which proves the marks still match how *this* codebase spells an escape, not that any panel exists. Landing a real panel means deleting the structural test **first** and updating this row second. |
|
|
213
|
-
| 2 | **`_wrap_lines`, the panel's line wrapper.** Its only caller was the panel loop, so it travels with row 1 and is now history along with it. **`textwrap.wrap` itself CROSSED** — this row said "a stdlib payload with no Node twin … port it *with* the panel or not at all" until P1 made `--help` the caller that required it: `pyTextWrap` (`js/cli.mjs`) is a real port of it, driven by `formatHelp`. | `tests/__snapshots__/textwrap.json` freezes the CPython answers (38 cases × widths 11..198, sha256 over the matrix) and `tests/snapshot/pure_snapshot.test.mjs` replays them with no interpreter anywhere on the machine. The live comparison against a running `textwrap` retired with the reference, so **limit zero applies here in its sharpest form**: the matrix is 38 cases wide and one CPython version deep, and a wrap CPython itself later changes is a divergence this repository cannot see. The corpus declares which side of gh-139065 it was recorded on, precisely so it cannot be mistaken for one frozen against the behaviour CPython already fixed. |
|
|
214
|
-
| 3 | **`/api/pick-folder` will never exist here.** It opens an OS-native folder dialog on the daemon host, which is a GUI dependency and a sixth allowed-spawn row for a modal window. `js/web/server.mjs` carries it in `DECLINED_POST`, a set kept distinct from `NOT_PORTED_POST` because "will never cross" is a different claim from "not yet". **What changed in this phase**: there is no longer anything on the other side to decline. The reference's own handler is deleted, so this stopped being a comparison between an endpoint that exists over there and one that does not exist here, and became simply a documented, permanent 501 — and it is the ONLY member of either set, which makes it the last live target the dispatcher's 501 arm has (see row 9). | Probed live, not merely declared: `tests/unit/web_server.test.mjs` drives the real dispatcher and requires POST → 501 and GET → *not* 501 (it must fall through to the SPA). That pair is what refuses the one-line collapse of the POST declarations back into the GET set, which would leave every exported set exactly as written and every set-reading test green. The collapse is planted as **M23** in `tests/mutate.mjs` and killed, so the row's own argument is gated rather than asserted. |
|
|
215
|
-
| 4 | **`_win_user_path`'s registry-write success arm.** `link`/`unlink` edit the persistent user Path through PowerShell. No test in this repo may run that — the edit would outlive the suite, the checkout and the machine. | The *failure* arm used to be reached honestly, by `unlink` cells that handed the verb a PATH with no `powershell` on it so the code took the "said nothing about PATH" branch with the registry untouched. **Those cells went with the CLI corpus on 2026-08-17 and nothing replaced them**, so the spawn half is now ungated on both arms rather than one — a downgrade this row carries rather than hides. Everything that can be *wrong* still lives in the pure `winUserPathScript` half, and `tests/__snapshots__/win_user_path.json` is a recorded corpus over it, replayed by `tests/snapshot/pure_snapshot.test.mjs` on every platform (the builder reads nothing host-shaped, and a non-Windows run is what measures that). That the spawn half carries no logic used to be **STATED**, in a test docstring; `tests/unit/win_user_path.test.mjs`'s last test now checks it — one `spawnSync`, the builder's output passed through unchanged, no string work on the directory, and a statement ceiling. If logic drifts INTO the spawn the ungated region grows, and this is what refuses that. |
|
|
216
|
-
| 5 | ~~**`link`/`unlink`'s Unix arm.**~~ **CLOSED at P11.** It writes a `#!/bin/sh` shim into `~/.local/bin` carrying a `# GENESEED_LINK_SHIM` marker and chmod 0755, and it has six cells of its own. (It *symlinked* `ROOT/geneseed` until P0/P1 Task 2b; the `is_symlink()` branch survives so `unlink` still removes a legacy symlink install, and **no cell covers that branch** — the one piece of this row still open.) The six include the `PATH` split (a substring test passes every other cell and fails `a-path-entry-that-merely-contains-the-dir`), the **marker check** that leaves a foreign `geneseed` alone — the decoy is a regular file, not a symlink, so the marker is what has to reject it — and an explicit dir argument with a trailing slash. That last one found a live divergence: the reference built a `Path` and the port kept the raw string, so `str(Path('/x/bin/'))` and `/x/bin/` disagreed in two messages and in the PATH comparison. Fixed in `js/link.mjs` with `pyPathStr`. | The group is a UNION across the two platforms, and **the six cells are gone with the CLI corpus.** `platformDeclarationProblems` travelled with the replay — one id per built cell, the other platform's half absent, neither half empty, and the skipped half PRINTED — so it retired with it. What is left is `tests/unit/hook_cli.test.mjs`, which reads **both** halves of `tests/helpers/matrix/*.json` at once and is now the whole of this row's gate rather than the part of it that needed two files. The behaviour itself — the marker check, the `PATH` split, the trailing slash — is no longer probed end to end anywhere. |
|
|
217
|
-
| 6 | **The boot animation's call site.** `playLine` itself is exercised; what is declared is that `js/setup.mjs` and `js/update.mjs` reach no panel. **Nothing about this row ever needed a second implementation** — its subject is two JavaScript files — and until P3 its only gate was a test that retired with the reference. | **`tests/unit/no_panel.test.mjs`**. Escape sequences, not the word "curses": the first draft looked for the word and failed on a *docblock*, and a structural gate that reads prose is a gate on the documentation — it would have been satisfied by deleting the paragraph that admits the limit. It carries two things its predecessor had not. A **positive control**: the same scan run over `js/anim.mjs`, which paints by design and is excluded by name, must find a hit — otherwise a mark list that has stopped matching how this codebase spells an escape retires all three gates green. And a **literal ESC byte** among the marks, found by accident while falsifying the gate: the falsifying edit was appended with `printf`, which ate the backslash and wrote a real ESC, and every scan stayed green over a module that had just grown a screen-clear. A gate that knows the spellings of a character but not the character is a gate on a coding style. |
|
|
218
|
-
|
|
219
|
-
## Ungated, and honest about it
|
|
220
|
-
|
|
221
|
-
| # | The limit | Why nothing reaches it |
|
|
222
|
-
|---|---|---|
|
|
223
|
-
| 7 | **`npmBuild`** (`npm install && npm run build`). | A first-run-from-a-partial-checkout path; no cell can be in that state, because `web/dist/` is tracked. `tests/unit/web_daemon.test.mjs` asserts *that* — it re-derives the unreachability from `git ls-files`, so untracking `web/dist/index.html` fails the test instead of quietly making the arm live. It also asserts the file must EXIST in the working tree, because tracked-but-absent is a real state in which the `ask` arm is reachable here and now while the tracking claim still holds. The two branches only reachable through it — the prompt's wording and EOF handling, and the `npm install` → `npm run build` order — are asserted as source and gated as **M25**. |
|
|
224
|
-
| 8 | **The stale-factory probe.** *(HISTORY, not a live limit.)* | Its subject was a reference CLI too old to know `upgrade`, dead-ending on argparse's `invalid choice` — a program that no longer exists. `js/update.mjs` argues the absence out at the call site: the update step is an **import, not a spawn**, so there is no second program to be stale, no argparse to refuse, and no `invalid choice` to recognise. The half that DID have a live subject is the durable trace a failed step leaves, and it is asserted absolutely by `tests/unit/update_steps.test.mjs` — persisted before it is printed, appended rather than overwritten, still returned when the log itself cannot be written. |
|
|
225
|
-
| 9 | **The web dispatcher's 501 arm, for anything but one path.** | `NOT_PORTED_ACTIONS`, `NOT_PORTED_KINDS` and `NOT_PORTED_POST` are all empty, so `/api/pick-folder` (row 3) is the only target the arm has left, and no second one can be borrowed: every remaining action either starts a job in the developer's checkout or writes a shim and edits the real user PATH. The action-side claim therefore rests on `tests/unit/web_jobs.test.mjs` reading the set out of the module — **a gate on a declaration, which is weaker than a probe**, and is declared as such at both sites. A new row in that set makes the arm reachable again and obliges this row to become a probe. The sibling declaration beside it used to be stronger — each of the three `INLINE_ACTIONS` named a recorded cell that really drove the dispatcher, and the cell's existence was asserted on both corpus halves. **Those cells retired on 2026-08-17**, so both declarations now rest on the module being read rather than driven, and the row is weaker by exactly that much. |
|
|
226
|
-
| 10 | **`pyStrPath` / `pyPathStr`.** Two spellings of one translation in `js/generate.mjs`. | Ungated; the comment at the call site says so. The recorded CLI cells could not see the difference the split is about either — they read stderr through a universal-newline decode — and they are gone as of 2026-08-17, so the row went from ungated-with-a-witness-nearby to simply ungated. |
|
|
227
|
-
| 11 | **The Linux browser lookup answering FALSE.** The reference walked `webbrowser`'s registry (`$BROWSER`, `xdg-open`, `gio`, `gvfs-open`, a dozen browser binaries); `js/menu.mjs`'s `browserAvailable` asks only whether `xdg-open` — the binary `openUrl` will actually run — is on PATH. On a box with `gio` and no `xdg-open` they disagreed, which is what a WSL run measured. | The corpus in `tests/unit/web_first.test.mjs` SUPPLIES the input instead of inheriting it: an `xdg-open` stub on PATH plus `DISPLAY`, so the True arm is reached identically on every host, and a `no-display` row gates the Linux-only display refusal absolutely. Reaching the FALSE arm needs a PATH with no `xdg-open` at all, which is not something a probe on Windows survives — so it stays ungated, here, rather than in a comment. **The divergence it names is now permanent** and belongs in `docs/declined.md`'s territory rather than this file's: with the reference gone, `browserAvailable`'s answer is simply the answer, and nothing can say it is the wrong one. |
|
|
228
|
-
| 12 | **The width tables are pinned by a HASH, not by a live oracle.** `js/tui.mjs`'s `WIDE`/`COMBINING` tables are a snapshot of unidata **15.1.0** (declared as `DWIDTH_UNIDATA`). Nothing in this repository consults a live Unicode database any more — there is none to consult — so what the sweep proves is that the tables have not moved since they were recorded, and **not** that they encode any Unicode version correctly. This was already true of the CPython comparison in one direction (3.14 carries 16.0.0 and assigned U+0897 a combining class, so the old live sweep reported a divergence that was neither implementation's); it is now true in both. | `tests/__snapshots__/dwidth.json` carries all 527 runs, a sha256 over them, and the unidata version they were measured at; `tests/snapshot/pure_snapshot.test.mjs` checks `DWIDTH_UNIDATA` against that declaration, asserts the constant NAMES a Unicode version at all — read out of `js/tui.mjs` by regex **as well as** imported, so the gate cannot be satisfied by deleting the declaration and supplying the value some other way — and replays the sweep. The document self-checks against its own hash first, so a hand-edited `rle` is not accepted as an oracle. The interpreter pin that used to hold this together retired with the live sweep. Regenerating the tables means moving the constant and re-recording the corpus **together**, and re-recording is exactly what is no longer possible: **new tables would have to arrive with a new corpus recorded from the port itself, which is a determinism check and not a regression gate.** |
|
|
229
|
-
| 13 | **`minuteStamp`'s recorded answers carry the recording machine's clock.** `%Y-%m-%d %H:%M` off a naive local-time conversion, so the frozen answers hold one UTC offset. There is no token to substitute — the offset is the answer's arithmetic, not a substring of it. | Each of the five cases carries a `guard` naming the UTC offset **at that instant** (so DST is part of the match, not an approximation), and `tests/snapshot/pure_snapshot.test.mjs` recomputes it from `Date` before asserting. A replay in another zone SKIPS those cases and PRINTS how many it skipped — the width sweep's rule that a skip is not a pass. The live comparison that used to gate them everywhere is retired, so they are gated only where the offsets agree, which is not many machines. That is the cost of the cut, taken deliberately: a case asserted in one zone and declared in the others beats one silently re-blessed to whatever zone last ran it. |
|
|
230
|
-
|
|
231
|
-
| 14 | **A RENAMED test file is no longer detected.** `tests/ported.json` named the Node successor of every deleted Python test, and `tests/unit/ported.test.mjs` asserted each of those 52 paths still existed on disk — so renaming one reddened the suite. That test was **retired on 2026-08-19**: four of its six assertions only ever checked that the ledger agreed with itself, and the two that reached outside it charged a hand edit inside a 231 kB, 92%-prose JSON for every rename. | A *deletion* is still caught, and over a wider set: `.github/workflows/ci.yml`'s discovery floor fails below 500 reported tests across all 71 files, where the ledger pinned 52. What is genuinely gone is the *rename* signal — a file renamed and still discovered by the glob passes. The one assertion that outranked the ledger, the recursive walk for a stray untracked `tests/**/*.py`, was salvaged verbatim into `tests/unit/package_manifest.test.mjs` beside the tracked-file count it strengthens: it needs no row to be true and no repository to run, which is exactly why it was worth keeping and the other five were not. The ledger itself is kept, unread, as the record of the migration; its own `doc` now opens by saying it does not execute. |
|
|
232
|
-
|
|
233
|
-
**On row 8, and the shape it is an example of.** A row whose only gate was a retiring test silently
|
|
234
|
-
demotes from ASSERTED to prose at a deletion — which is the exact failure this file exists to
|
|
235
|
-
prevent. Row 8 was the first to be settled the other way instead: its *stale-factory* half
|
|
236
|
-
describes machinery this tool cannot have, so it is recorded as history and the design argument
|
|
237
|
-
lives at the call site in `js/update.mjs`; its *durable trace* half had a live subject, so it landed
|
|
238
|
-
absolutely on the Node side **before** the code that used to carry it went. Rows 1, 2 and 12 are
|
|
239
|
-
now settled the same way, and row 3's history half with them.
|
|
240
|
-
|
|
241
|
-
## Not proven anywhere, and worth knowing before a release
|
|
242
|
-
|
|
243
|
-
* ~~**The three cell harnesses have only ever run on Windows.**~~ **FIXED at P11**, and the
|
|
244
|
-
two-platform rule outlived the corpora that motivated it: `node-cells` still runs on
|
|
245
|
-
**`ubuntu-latest` AND `windows-latest`** on every push — `--idempotent` and `--deletion` now,
|
|
246
|
-
where it replayed all three corpora until 2026-08-17 — and `validate` (doctor plus the whole
|
|
247
|
-
Node suite) runs on both as well. What the first Linux run found, recorded because it is the
|
|
248
|
-
honest measure of what one-platform testing hides, and because every one of these was found by
|
|
249
|
-
a cell harness that no longer exists:
|
|
250
|
-
* The POSIX shim's `"$@"` was read as a path, so every healthy install's hooks were reported
|
|
251
|
-
dead — **a user-visible `doctor` bug on every Linux and macOS install**, in both
|
|
252
|
-
implementations, plus 112 of 259 golden cells and four `--validate-only` tests. Fixed at the
|
|
253
|
-
single owner.
|
|
254
|
-
* A POSIX re-exec called `execv` without flushing, so `bootstrap` discarded everything it had
|
|
255
|
-
printed since the last spawn — a redirected `bootstrap` lost its completion line on every Unix
|
|
256
|
-
run. Windows has no `exec` and never reaches the line; a terminal hides it because line
|
|
257
|
-
buffering had already written it.
|
|
258
|
-
* A cell driver left the interpreter a bare name, which `CreateProcess` resolves against the
|
|
259
|
-
PARENT's PATH and `execvpe` does not — so any cell that replaces PATH could not spawn the
|
|
260
|
-
candidate at all off Windows.
|
|
261
|
-
* A wizard decline was POSITIONAL (six newlines, then `n`), and the wizard does not ask a fixed
|
|
262
|
-
number of questions. Off Windows the `n` landed one prompt late, the wizard proceeded, and it
|
|
263
|
-
emitted a whole install into the sandbox HOME.
|
|
264
|
-
* Two web `expect_re`s named Windows' case-folded catalog order as if it were the only one.
|
|
265
|
-
* The `link`/`unlink` Unix arm (row 5) and the browser step (row 11).
|
|
266
|
-
* **What the first WINDOWS CI run found, and what the harnesses now guarantee.** The same argument,
|
|
267
|
-
one platform over: PR #78's first run was green on a Windows laptop and in WSL, and red on
|
|
268
|
-
`windows-latest`. Every finding was an environment the developer's machine could not produce, so
|
|
269
|
-
each fix carries a gate that MANUFACTURES the environment rather than one that waits for a runner
|
|
270
|
-
to supply it.
|
|
271
|
-
* **Sandbox paths are CANONICAL.** GitHub's Windows runner spells `TEMP` as the 8.3 alias
|
|
272
|
-
`C:\Users\RUNNER~1\…`; the generator resolves it, so every destamp root matched nothing and the
|
|
273
|
-
raw sandbox name leaked into 45 byte comparisons — and `git-gate/sovereign-bypass` went VACUOUS
|
|
274
|
-
because the excludes entry it seeds stopped matching a resolved cwd. `tests/helpers/sandbox.mjs`
|
|
275
|
-
is the one owner for all three replayers. POSIX reaches the same duality through symlinks and
|
|
276
|
-
the gates build one there.
|
|
277
|
-
* **`resolveOut` was `path.resolve` where the reference resolved** — a defect the aliasing exposed
|
|
278
|
-
and a canonicalising fixture would have hidden. Now `pyResolve`, the twin that already existed
|
|
279
|
-
for this and is used at nine other sites.
|
|
280
|
-
* **`pyWhich` did not reproduce the current-directory rule.** `NoDefaultCurrentDirectoryInExePath`
|
|
281
|
-
is an INPUT, Git Bash defines it and the runner does not. The corpus reached the branch and
|
|
282
|
-
never varied the variable; `tests/snapshot/pure_snapshot.test.mjs` now drives both states and asserts
|
|
283
|
-
that exactly one of fifteen answers moves, and which.
|
|
284
|
-
* **A locale-decoded child stdout** in a Windows-path test, which this repo's `PYTHONUTF8=1`
|
|
285
|
-
runbook had been making accidentally right.
|
|
286
|
-
* **A temp-directory cleanup race killed the Linux job** after it had compared 270 of 318 cells;
|
|
287
|
-
the same commit passed on re-run. A sandbox teardown cannot raise.
|
|
288
|
-
* ~~**The reference is load-bearing.**~~ **HISTORY.** The replayers used to default to the reference
|
|
289
|
-
as their `--ref`; there is no `--ref` left to default, and since 2026-08-17 there is no recording
|
|
290
|
-
of it left on the emit, cli or web surfaces either. On those three, this project's only second
|
|
291
|
-
party is another run of itself.
|
|
292
|
-
* **Nothing measures the surviving corpora's own coverage from the outside.** The claims that stop a corpus
|
|
293
|
-
quietly ceasing to exercise a function it still names — the fence really varies, the diff reaches
|
|
294
|
-
past 200 elements, a splitlines case breaks where `split('\n')` does not, a capitalize case where
|
|
295
|
-
the rest matters, a `len` case where code points and UTF-16 units differ, both arms of every
|
|
296
|
-
two-valued decision — all live in `tests/snapshot/pure_snapshot.test.mjs` and are written by hand. They
|
|
297
|
-
are the best thing available and they are a list somebody maintains, not a measurement.
|
|
298
|
-
|
|
299
|
-
## Standing decisions the cut handed forward
|
|
300
|
-
|
|
301
|
-
Not limits on what the tool proves: limits that OPENED when the reference went, created by the
|
|
302
|
-
recordings the cut took. They are here rather than in a phase note because the phase note is
|
|
303
|
-
per-machine.
|
|
304
|
-
|
|
305
|
-
1. ~~**`cli.json` is a frozen oracle as well as a runtime table.**~~ **SETTLED IN P2.** The roles
|
|
306
|
-
were split rather than ranked. The file MOVED — byte for byte, minus its source digest — to
|
|
307
|
-
**`js/cli-table.json`**, a product path `package.json` already ships, and it is now the OWNED
|
|
308
|
-
document: nothing generates it, and the generator, the digest and doctor's row for it are gone.
|
|
309
|
-
The FROZEN ORACLE role was retired outright: the recorded copy was byte-identical to the table,
|
|
310
|
-
and a second copy nothing could re-record would have made every legitimate future edit an
|
|
311
|
-
unblessable red.
|
|
312
|
-
2. **The 26 help fixtures cannot be re-recorded.** Adding or rewording a single CLI flag changes
|
|
313
|
-
`formatHelp`'s output and reddens `tests/snapshot/cli_help.test.mjs`, with no argparse left to ask.
|
|
314
|
-
Either the CLI's help text becomes effectively immutable, or the fixtures get re-blessed from
|
|
315
|
-
the port — which makes them a DETERMINISM check rather than a regression gate, the same
|
|
316
|
-
degradation `--idempotent`/`--deletion` already carry. Neither is wrong; picking neither is.
|
|
317
|
-
**This is limit zero with a deadline**, and it is the live one.
|
|
318
|
-
3. ~~**`record-corpus` stops working entirely.**~~ **DONE, and it is what made item 2 sharp.** The
|
|
319
|
-
job is deleted from `.github/workflows/ci.yml`. With it went the platform-independence gate and
|
|
320
|
-
the record-twice rot detector: the two recorded platform halves WERE the platform table, and
|
|
321
|
-
nothing re-derived them. A replacement had to be written while both implementations still
|
|
322
|
-
existed — a port-recorded corpus proves nothing the port did not already believe — and what was
|
|
323
|
-
written instead was the two-OS `node-cells` job above, which replayed rather than recorded.
|
|
324
|
-
4. ~~**Every content change is a corpus argument.**~~ **SETTLED ON 2026-08-17 by retiring the emit,
|
|
325
|
-
cli and web corpora** — see the section of that name above. This is what item 2 looks like once
|
|
326
|
-
its deadline arrives: the choice was never between a green corpus and a red one, it was between
|
|
327
|
-
freezing the product and admitting the recording had stopped being evidence. Item 2 is still
|
|
328
|
-
open, on the 26 help fixtures, and it is still the live one — but it is now the *only* one, and
|
|
329
|
-
the CLI's help text is a much smaller thing to hold still than every emitted byte.
|