checkwright 0.24.0 → 0.25.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/README.md +3 -3
- package/package.json +2 -2
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates +0 -0
- package/payload/artifact/x86_64-unknown-linux-gnu/checkwright-gates.sha256 +1 -1
- package/payload/canon-kit/README.md +2 -0
- package/payload/canon-kit/SPEC.md +329 -15
- package/payload/canon-kit/checks/check-amendment-update-target.gate +3 -0
- package/payload/canon-kit/checks/check-unmarked-claim.gate +3 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/SPEC-thing.md +26 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/bad/expect.txt +8 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/SPEC-widget.md +47 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-amendment-update-target.test.sh +82 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/SPEC.md +11 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/expect.txt +3 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/bad/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/SPEC.md +18 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/expect.txt +1 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim/good/scripts/canon-config.sh +6 -0
- package/payload/canon-kit/gate-tests/check-unmarked-claim.test.sh +85 -0
- package/payload/canon-kit/lib/spec.sh +16 -0
- package/payload/canon-kit/smoke/install.sh +2 -0
- package/payload/canon-kit/templates/SPEC-amendment.md +17 -2
- package/payload/context-kit/SPEC.md +16 -5
- package/payload/delegation-kit/README.md +11 -1
- package/payload/delegation-kit/SPEC.md +392 -26
- package/payload/delegation-kit/bin/wait-probe.sh +184 -0
- package/payload/delegation-kit/gate-tests/subagent-stop-liveness.test.sh +99 -0
- package/payload/delegation-kit/smoke/install.sh +20 -0
- package/payload/delegation-kit/templates/agent-execution.md +26 -9
- package/payload/delegation-kit/templates/subagent-stop-liveness.sh +56 -0
- package/payload/gate-sdk/README.md +7 -2
- package/payload/gate-sdk/SPEC.md +800 -66
- package/payload/gate-sdk/bin/build-native.sh +66 -1
- package/payload/gate-sdk/bin/run-gates.sh +136 -34
- package/payload/gate-sdk/checks/check-action-run-shell.sh +1 -1
- package/payload/gate-sdk/checks/check-gate-assertions.gate +3 -0
- package/payload/gate-sdk/checks/check-gate-substrate-parity.sh +55 -2
- package/payload/gate-sdk/checks/check-tree-terms.gate +3 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/expect.txt +5 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/SPEC.md +22 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-count.sh +11 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-extra.sh +14 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/bad/scripts/check-zero.sh +7 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/SPEC.md +27 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions/good/scripts/check-qux.sh +13 -0
- package/payload/gate-sdk/gate-tests/check-gate-assertions.test.sh +117 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/expect.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/kit-spec.md +6 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-nospec.sh +4 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/check-ungrounded.sh +5 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/bad/scripts/gates.list +2 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/kit-spec.md +12 -0
- package/payload/gate-sdk/gate-tests/check-gate-substrate-parity/good/scripts/check-held.sh +1 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/expect.txt +5 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/multi.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/bad/tree/second-leak.txt +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/expect.txt +1 -1
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/patterns.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/anchored.txt +4 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.list +2 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/msg-patterns.local.list +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms/good/tree/worktrees/vendored-note.txt +3 -0
- package/payload/gate-sdk/gate-tests/check-tree-terms.test.sh +94 -0
- package/payload/gate-sdk/smoke/install.sh +23 -0
- package/payload/guard-kit/README.md +4 -3
- package/payload/guard-kit/SPEC.md +409 -57
- package/payload/guard-kit/bin/compare-settings-allow.sh +36 -12
- package/payload/guard-kit/bin/run-guard-tests.sh +22 -4
- package/payload/guard-kit/gate-tests/compare-settings-allow.test.sh +46 -1
- package/payload/guard-kit/guard-tests/background-cases.tsv +14 -0
- package/payload/guard-kit/guard-tests/cases.tsv +41 -11
- package/payload/guard-kit/lib/guard.sh +213 -34
- package/payload/guard-kit/templates/bash-guard.sh +2 -0
- package/payload/guard-kit/templates/close-triage.md +10 -3
- package/payload/guard-kit/templates/guard-config.sh +3 -0
- package/payload/lifecycle-kit/SPEC.md +2 -2
- package/payload/lifecycle-kit/templates/lead.md +8 -0
- package/payload/queue-kit/SPEC.md +78 -0
- package/payload/site-kit/SPEC.md +12 -0
- package/payload/gate-sdk/checks/check-gate-assertions.sh +0 -149
- package/payload/gate-sdk/checks/check-tree-terms.sh +0 -67
package/payload/gate-sdk/SPEC.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Machine-gated consistency for the surfaces conventional linters ignore:
|
|
4
4
|
markdown specs, glossaries, task queues, config projections, diagrams — any
|
|
5
|
-
text whose drift is mechanically decidable. A **gate** is a small
|
|
5
|
+
text whose drift is mechanically decidable. A **gate** is a small program
|
|
6
6
|
that checks one invariant across one or more governed surfaces and blocks the
|
|
7
7
|
commit (or the merge) when they disagree.
|
|
8
8
|
|
|
@@ -29,6 +29,16 @@ override with `GATE_SDK_GATES_DIR`) holding:
|
|
|
29
29
|
every sibling directory holding a `checks/` **or** a `smoke/` (a vendored
|
|
30
30
|
Checkwright kit — a gateless kit is discovered by its `smoke/` alone);
|
|
31
31
|
override with `GATE_SDK_KIT_DIRS` (space-separated kit roots).
|
|
32
|
+
A **targeted run** is `run-gates.sh --only <name>...` (§run-gates), and it is a
|
|
33
|
+
spelling rather than a mechanism because these two knobs already compose into
|
|
34
|
+
one: point the positional at a scratch directory holding a one-line
|
|
35
|
+
`gates.list`, and set `GATE_SDK_VERBOSE` to restore the per-gate banner the
|
|
36
|
+
runner suppresses on a pass. One gate's verdict and its clean-path output are
|
|
37
|
+
then reachable with the `GATE_SDK_KNOB_*` bridge `gate_command` emits still
|
|
38
|
+
intact, rather than hand-exported at the call site. That composition stays the
|
|
39
|
+
answer for a caller assembling a registry that is **not** a subset of the
|
|
40
|
+
default one — a gate the consumer has not registered, or one shadowed for the
|
|
41
|
+
run; `--only` is the ergonomic form for everything inside it.
|
|
32
42
|
- the consumer's own `check-*.sh` gates (copy-edits of
|
|
33
43
|
`templates/check-skeleton.sh`).
|
|
34
44
|
- `gate-tests/` — the consumer's fixture tree (see §run-gate-tests).
|
|
@@ -207,8 +217,9 @@ Paths are
|
|
|
207
217
|
repo-root-relative; every entry point `cd`s to `git rev-parse --show-toplevel`
|
|
208
218
|
before resolving them.
|
|
209
219
|
|
|
210
|
-
`lib/gate.sh` auto-sources the consumer config seam on load, so every gate
|
|
211
|
-
|
|
220
|
+
`lib/gate.sh` auto-sources the consumer config seam on load, so every gate sees
|
|
221
|
+
the same knob resolution, whether it sources the library itself or is dispatched
|
|
222
|
+
through it as a `.gate` member: `GATE_SDK_CONFIG_FILE` when
|
|
212
223
|
set — and a set-but-missing path exits 2 rather than silently running on
|
|
213
224
|
defaults (an operator typo must not pass as clean) — else
|
|
214
225
|
`<gates-dir>/gate-sdk-config.sh`, sourced only when the file exists — a
|
|
@@ -503,6 +514,16 @@ remove a file in one. A corpus carrying every arm that the port cannot move is
|
|
|
503
514
|
exactly what criterion 4 says a self-referential port must design and does not
|
|
504
515
|
say how to build (§The port-candidate criteria, criterion 4).
|
|
505
516
|
|
|
517
|
+
**A case dir is not its own git repository, and that decides what a git-walking
|
|
518
|
+
arm can see inside one.** A `git ls-files` run with cwd inside a case returns
|
|
519
|
+
the *outer* repo's index scoped to that subdirectory, printed relative to cwd.
|
|
520
|
+
Three consequences, none of them optional to design around: the `gate-tests`
|
|
521
|
+
prune never fires inside a case, because the scoping already stripped the prefix
|
|
522
|
+
it matches on; a **non-repository** arm is unreachable from any case dir and
|
|
523
|
+
cannot be exercised there at all; and a file a case plants to widen an arm is
|
|
524
|
+
invisible to the gate until it is `git add`ed, so an unstaged plant leaves the
|
|
525
|
+
widened arm running over nothing while the case still passes.
|
|
526
|
+
|
|
506
527
|
Two properties make the widening worth its cost rather than ceremony. Its
|
|
507
528
|
**planted violations are standing guards**: a `bad/` case whose only violation
|
|
508
529
|
lives in an arm reds forever if an edit later drops that arm from the walk — for
|
|
@@ -653,13 +674,19 @@ is precisely what assertion G's first clauses red on. The roster above therefore
|
|
|
653
674
|
gains nothing and reserves nothing.
|
|
654
675
|
|
|
655
676
|
**The held field's payload is a bare slug and nothing else**, which is the one
|
|
656
|
-
place the two fields' grammars part.
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
677
|
+
place the two fields' grammars part. A temporary hold has **two facts in two
|
|
678
|
+
homes**: the **ground** lives in the gate's own SPEC section, beside the rule it
|
|
679
|
+
governs, and the **disposition and the cost** live in the owning queue entry
|
|
680
|
+
(§The port-candidate criteria, which owns that split). `# no-port:` carries free
|
|
681
|
+
text because permanence is a *ruling* whose only home is prose and the field *is*
|
|
682
|
+
the pointer to it; `# port-until:` carries a slug because the slug reaches the
|
|
683
|
+
fact a *reader of the queue* needs, and the ground is already one hop away
|
|
684
|
+
through the declaration's own `# spec:` pointer. A `<cause>` half here would
|
|
685
|
+
therefore be a second place the same ground lives — the gate's section being the
|
|
686
|
+
first — and the one that rots when the entry is re-scoped. Both fields cost their
|
|
687
|
+
reader exactly one hop. The refusal is recorded so a later author does not
|
|
688
|
+
re-propose the half as an ergonomic, and the other hop has an oracle rather than
|
|
689
|
+
discipline behind it: §check-gate-substrate-parity's assertion H.
|
|
663
690
|
|
|
664
691
|
**The slug's anti-rot is coarse, and the limit is stated rather than left to be
|
|
665
692
|
discovered.** Where several held members point at one umbrella entry — an entry
|
|
@@ -674,11 +701,10 @@ before then is costed filings against work nobody has scoped.
|
|
|
674
701
|
**Its domain is any temporary hold with named work owed and a live owning entry**,
|
|
675
702
|
which is wider than the two born-native exception classes §The port-candidate
|
|
676
703
|
criteria drafted it for. Those classes are statements about a gate being
|
|
677
|
-
*authored* in shell; the
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
to declare, which is the reading that fails on its own example.
|
|
704
|
+
*authored* in shell; the holders are not shaped that way, being criterion-7
|
|
705
|
+
blockers read over gates already authored and fitting no lettered class at all.
|
|
706
|
+
Narrowing the field to the letters would leave the criteria section's own worked
|
|
707
|
+
example unable to declare, which is the reading that fails on its own example.
|
|
682
708
|
|
|
683
709
|
**The `# reads:`/`# needs:` refusal below does not reach it, and the difference
|
|
684
710
|
is what a reader could verify.** Both were refused because nothing would hold
|
|
@@ -950,7 +976,7 @@ answering a question assertion C never asked.
|
|
|
950
976
|
| `check-gate-output` | **Ported and strengthened for the fixtured corpus; source-grep retained for the one member outside it, over the corpus that member's rule now lives in.** The source-grep for `: clean`/`help:` was always a proxy for behavior; for the fixtured members the assertion now runs in `run-gate-tests.sh` (§run-gate-tests) against the case's real output, on **shell gates too**. The remaining member, `check-task-conservation` (`# no-fixture:` per queue-kit/SPEC.md §check-task-conservation — a HEAD-vs-worktree diff has no static-fixture representation), has no case for a runtime assertion to reach, so the source-grep stays its only oracle. Retiring the static half outright would zero out that member's output-contract coverage — the exact vacuity this table exists to close. **That member has since ported**, which is why this row is not "unchanged": its declaration path is now a descriptor, which by the closed field roster cannot hold the strings, so corpus *and* emitter alternation follow the rule to the implementation module, and a tree carrying no crate declares the member out of reach rather than reddening (§check-gate-output owns the resolution and its two branches). |
|
|
951
977
|
| `check-gate-fail-closed` | **Retired with cause, and the cause is narrower than it first read.** For a member that reads files, the defect (branching on a captured value's emptiness when the subprocess died) is unrepresentable: there is no subprocess, and a fallible read returns a `Result` that cannot be ignored. A real substrate win, stated as one. **It is representable for a member that spawns one**, and the queue-kit cohort landed the first: `Command::output()` returning `Ok` means the *spawn* succeeded, never that the program did, so reading `stdout` while ignoring `status` reproduces the defect exactly. The disposition is unchanged — this gate's corpus is `check-*.sh` and it could not scan a Rust module either way — and the property is held crate-side rather than by review: the spawn wrapper and its unit tests (§Fail-closed contract) leave a gate module unable to construct a `Command` at all, and unable to reach stdout without the status having been read. Machine-held rather than remembered, which is the same answer the `check-reads-couples` row below gives to the same problem, and what keeps this retirement honest. |
|
|
952
978
|
| `check-reads-couples` | **Retained, with a binary-side equivalent.** Its shell parser finds no walks in a binary gate and would print `clean` — the single worst vacuity available here — so the substrate answers instead of the parser: the binary carries a `--reads <name>` arm printing one line per walk root, a repo-relative path or `?`, and the gate consumes that report into its existing coverage assertion (§check-reads-couples). The declaration is **registry data held to executed behavior**, which is what separates it from the unbound self-declaration this gate exists to refuse: each gate's roots are declared beside its dispatch entry in the crate's registry (an entry added without them fails to compile), the crate's single sanctioned walk implementation records the roots it is invoked with, and two unit tests close the loop — **A**, every member run over its own `gate-tests/<name>/{good,bad}/` cases with recording on, observed roots a subset of declared; **B**, no module outside that walk implementation names a filesystem-walk API, because a direct walk would be invisible to the recorder and unverify A. B's vendored half is held by an **allowlist over the resolved graph**: a spelling roster cannot catch a walker inside a dependency, so every crate in the tracked `Cargo.lock` — transitive included, since a transitive crate walks as visibly as a direct one — is admitted by name with the clause of the dependency bar it cleared (§The settings cohort, and the crate's first dependency), and the assertion reds both on an unadmitted crate and on an allowlist entry absent from the graph. Reading only the `[dependencies]` table would admit an entire subtree unexamined, which is why the lock is tracked rather than gitignored. The precedent is the `check-knob-default-coupling` row below: an executed assertion is the answer where a static gate would be vacuous. The refusal survives only where the gate still cannot see — a name the substrate does not carry, and an unresolvable filter knob — and there is deliberately no descriptor-level opt-out, which the consumption path does not reinstate: a port ends this assertion by answering it (§check-reads-couples). **This member is itself `.gate`-dispatched** since §The sixth budget batch, which is that closing clause discharging on the auditor: the compiled form reaches the read set in process rather than spawning the arm, so the absent-binary refusal is answered out of existence rather than retired, and the row now describes a ported member auditing ported members. What `--reads` verifies is unchanged and is worth restating because the natural reading is wrong: a member's declared roots are **registry data**, not a derivation from its Rust source, and the declaration-to-code link is held by unit test A. Both members ported in that batch with a non-empty root set carry `?` alone, and the auditor's own root set is empty and stays empty, so no self-assertion is lost. |
|
|
953
|
-
| `check-gate-assertions` | **Retained, corpus extended** to the gate's Rust module; the `# assertion` marker matches on its token, independent of the comment leader. |
|
|
979
|
+
| `check-gate-assertions` | **Retained, corpus extended** to the gate's Rust module; the `# assertion` marker matches on its token, independent of the comment leader. **This member is itself `.gate`-dispatched** since the eighth budget batch (§The first cohort, and the rule that selects the next), and its port moved more than its own spelling: the section it audits gained an enumerated contract of its own, so the gate now reads **its own implementation module** and the contingent immunity that kept its own heading out of discovery is ended deliberately (§check-gate-assertions). Its fixture pair, not the live tree, is what proves those arms — the `check-comment-tier` sentence, inherited for the same reason. |
|
|
954
980
|
| `check-gate-exemption-tasks` | **Retained, corpus extended** the same way. **This member is itself `.gate`-dispatched** since §The sixth budget batch, so the row describes a ported member reading ported members' declaration paths — and its own port changed nothing in the rule: what it globs is both declaration spellings, which a descriptor still is. |
|
|
955
981
|
| `check-comment-tier` | **Retained, corpus extended** to the implementation module and the `.gate` descriptor, whose own lines are directives by construction. Mechanism: the shared primitive `comment_surface` carries `*.gate` **and `*.rs`** arms — widened once, for every caller (see the `check-spec-pointer` row). The implementation arm is the load-bearing one: locality-class directives stay in the implementation by the reader partition (§The `# graph:` manifest), so without it they would go dark exactly where they still apply. **This member is itself `.gate`-dispatched** since the seventh cohort, so it now audits its own declaration — which is why its trigger names `*.gate` and `*.rs` and why its fixture pair, not the live tree, is what proves those arms. |
|
|
956
982
|
| `check-spec-pointer` | **Retained, and its corpus depends on the same widening** — not "unchanged" in mechanism, only in assertion logic. It calls the *same* shared primitive, `comment_surface` in `native/src/spec.rs` since the seventh cohort ported both it and all four of its callers (canon-kit/SPEC.md §lib/spec.sh); absent that one shared fix a ported gate's `# spec:` line would silently stop being checked in both places it can live — the descriptor and the implementation. With the primitive carrying the `.gate` and `*.rs` arms its own probe logic needs no change. |
|
|
@@ -968,6 +994,7 @@ answering a question assertion C never asked.
|
|
|
968
994
|
| `check-settings-paths` | **Survives unchanged — reverse trigger, and a port is its subject rather than its blind spot.** Its `couples=` names `kit:checks/*.sh` only so that a check-script edit re-runs it; what it scans is the committed permission allow-list, never a gate script's content. A port is the event it exists for: replacing `checks/<gate>.sh` with a descriptor strands every allow entry naming the old path, so the gate reddens *because* of a port rather than falling silent after one — the shape `check-docs-cmd` has in the row above. Two limits are recorded rather than left to be re-derived. The glob is deliberately not widened to `*.gate`, because a descriptor path is not something a `Bash(…)` grant invokes and the widening would add no assertion. And the trigger is a **partial route by construction**: the generated hook matches staged `ACMR` paths, so a *deleted* `.sh` never fires it; what catches a cohort's stranded grants is the whole-tree battery, which runs with no trigger filter. The trigger still earns its place — it catches the ordinary edit that strands a grant — but it is not what makes the gate's landing order necessary (context-kit/SPEC.md §check-settings-paths). **This member is itself `.gate`-dispatched from the settings cohort**, so the row describes a ported gate: the reverse trigger and both limits above are properties of its rule, not of its substrate, and survived the port unchanged. |
|
|
969
995
|
| `check-prose-enum` | **Corpus extended to the Rust module — it was never a pure reverse trigger.** This gate was grouped with the reverse triggers above on the ground that none of them reads a gate's *content*; that ground was **false for this one**, and the queue-kit port is what exposed it. Its enum derivation (`scripts/enum-sets.sh`) reads the queue tag vocabulary out of `check-tag-lead-line`'s own class table, deliberately — *"read from the gate rather than re-listed here, so a rename cannot leave the two spellings disagreeing"* — so deleting that gate's script broke the derivation and the gate exited 2 rather than passing vacuously, which is the fail-closed behavior working. The corpus follows the rule to where it now lives, `native/src/gates/tag_lead_line.rs`'s `CLASSES` table, keeping the read-from-the-owner property and its one-table fail-closed anchor. **The gate is itself a ported member since the canon-kit cohort**, so a gate whose input is a gate's content is now gate content — and its own derivation crosses the bridge as *data*, which is what keeps the compiled form from spawning the emitter it reads. |
|
|
970
996
|
| `check-measured-claim` | **Retained, and sensitive through its oracle rather than its corpus — the first born-native member to take a row.** What it scans is the governed-prose surface, so by corpus it is a reverse trigger like the row above. What makes it substrate-sensitive is the consumer oracle behind `CANON_KIT_MEASURED_CLAIMS_CMD`, which its `couples=` reaches through `scripts/*.sh`: this repo's emitter counts how much of the registry resolves to a `.gate` descriptor, so it reads declaration paths **as a set**, the shape `check-gate-binary-fresh` has. A port therefore *moves its value*, which is the mechanism working rather than a blind spot — the number a marked sentence states is about the port, and the sentence reddens when the port advances without it. The design that landed the gate predicted no row here, on the premise that its `couples=` named no declaration path; the emitter coupling the same design requires falsifies that premise, and the row is recorded rather than the coupling dropped, because dropping it would leave the oracle's own source outside the trigger set. **The row and criterion 4 are independent facts, and this is the case that proved it**: the criterion binds on a gate's assertion target, this gate's is the governed-prose surface, so it clears — while the transitive reach through its emitter is precisely what assertion C is shaped to see (§The port-candidate criteria, criterion 4). |
|
|
997
|
+
| `check-unmarked-claim` | **Retained, and sensitive by coupling rather than by corpus or by oracle — the narrower case beside the row above, recorded so the two are not read as one.** Its assertion target is the governed-prose surface, so by corpus it is a reverse trigger. Its own consumer roster (`CANON_KIT_CLAIM_CLASSES_CMD`) reads no declaration path at all — it emits a fixed vocabulary — so unlike its sibling above, a port does **not** move its value. What makes it substrate-sensitive is `kit:*.sh` in its `couples=`, which reaches the kit library resolving its knob and the remaining shell members beside it; the coupling is correct and stays, because the library that runs its emitter must re-trigger it. Two consequences a later reader would otherwise re-derive. The trigger **narrows to nothing on this axis when the residue empties**: with no kit declaration left in that spelling the member becomes a pure reverse trigger, the same narrowing recorded for `check-value-rollup-fresh` and for the same reason. And its composition partner is where the port actually lands — a consumer whose class is about the port marks the sentence with that gate's oracle key, so the moving value lives in `check-measured-claim`'s row and never in this one, which is exactly why coverage-only (canon-kit/SPEC.md §check-unmarked-claim) costs nothing here. |
|
|
971
998
|
| `check-spec-embedded-source` | **Survives unchanged — reverse trigger of the same shape.** Its `couples=` extension list (`*.rs`, `*.sh`, `*.toml`, …) is the roster of **languages it recognizes inside fenced blocks**, not a reference to gate declarations; its scanned corpus is the canonical specs and amendments. It already carries `*.rs`, so a ported gate's Rust module is inside its trigger set with no widening. **This member is itself `.gate`-dispatched** since §The sixth budget batch, so the row describes a ported member — and the reverse-trigger reading survives its own port, because the extension list is still a language roster and not a declaration reference. What its port *does* move is its own candidate index, which loses a shell declaration and gains a Rust module at every sibling's port; that is a property of the corpus rather than of this table's question (canon-kit/SPEC.md §check-spec-embedded-source). |
|
|
972
999
|
| `check-template-copy-parity`, `check-template-registry-parity` | **Survive unchanged** — their corpus is kit templates and the template registry, not gate declarations; a gate's substrate does not reach either. Both are `.gate`-dispatched — the second since §The consumer remainder cohort, the first since §The sixth budget batch — so the row describes ported members, and the reasoning is unaffected for the reason it gives: neither reads a gate declaration at all. |
|
|
973
1000
|
|
|
@@ -1384,6 +1411,23 @@ design time; the last three were paid for, and each is named with what it cost.
|
|
|
1384
1411
|
clean. Widen first, then port — a port answering only the criterion's sentence
|
|
1385
1412
|
ships the hole the sentence was pointing at.
|
|
1386
1413
|
|
|
1414
|
+
**A criterion-4 bind therefore prices a port; it never holds one.** The
|
|
1415
|
+
sentence above already says a failing member still ports and already names the
|
|
1416
|
+
discharge, and *widen first, then port* is an **instruction**, not a blocker:
|
|
1417
|
+
a member whose only unmet criterion is 4 is **takeable**, carrying the widening
|
|
1418
|
+
in its price. Saying so is not a new ruling but the consequence the criterion
|
|
1419
|
+
never stated, and it is stated because the omission produced a real declaration
|
|
1420
|
+
— a correctly identified criterion-4 bind spelled as a hold, on a field whose
|
|
1421
|
+
meaning is *not takeable now*. The evidence is five members rather than the
|
|
1422
|
+
argument: `check-docs-cname-parity`, `check-gate-exemption-tasks`,
|
|
1423
|
+
`check-knob-default-coupling`, `check-spec-embedded-source` and
|
|
1424
|
+
`check-gate-tamper` each bind this criterion and each **ported**, discharging
|
|
1425
|
+
it by widening the fixture pair. So a member binding it declares no
|
|
1426
|
+
`# port-until:` on that ground (§The `# graph:` manifest owns the field), and
|
|
1427
|
+
the shared-snapshot **ordering** constraint the paragraphs below rule is
|
|
1428
|
+
narrowed by none of this: a cohort still sequences a criterion-4 member
|
|
1429
|
+
deliberately, it just does not declare it held.
|
|
1430
|
+
|
|
1387
1431
|
**The second worked instance is a README-roster auditor over `checks/`
|
|
1388
1432
|
basenames**, whose pair carried only `.sh` kits, leaving the `.gate` arm the
|
|
1389
1433
|
shell already implemented correctly exercised by no case at all. The widening
|
|
@@ -1422,7 +1466,7 @@ design time; the last three were paid for, and each is named with what it cost.
|
|
|
1422
1466
|
edit re-runs the gate, is never read as content at all; and a **content couple
|
|
1423
1467
|
wider than the walk**, whose glob covers declaration paths the gate's own
|
|
1424
1468
|
population predicate never reaches, is content-shaped and still not over gate
|
|
1425
|
-
source. A conservation row and a criterion-4
|
|
1469
|
+
source. A conservation row and a criterion-4 bind are therefore independent
|
|
1426
1470
|
facts about a member, which is what they always were.
|
|
1427
1471
|
|
|
1428
1472
|
**The worked instance is live and machine-derived, which is why this predicate
|
|
@@ -1452,7 +1496,7 @@ design time; the last three were paid for, and each is named with what it cost.
|
|
|
1452
1496
|
tree and the rule greps each file's bytes. Every kit's `checks/*.sh` and
|
|
1453
1497
|
`*.gate` is therefore inside the corpus it scans as content, which is this
|
|
1454
1498
|
criterion's predicate exactly. The lesson is the one the paragraph above
|
|
1455
|
-
already states from the other side: a conservation row and a criterion-4
|
|
1499
|
+
already states from the other side: a conservation row and a criterion-4 bind
|
|
1456
1500
|
are independent facts, so the verdict is taken by **reading the walk**, never
|
|
1457
1501
|
by reading the trigger field (§The fourth budget batch; site-kit/SPEC.md
|
|
1458
1502
|
§check-docs-cname-parity owns what it cost that member).
|
|
@@ -1489,7 +1533,32 @@ design time; the last three were paid for, and each is named with what it cost.
|
|
|
1489
1533
|
and in a vendored consumer it is in the out-of-scope set, which is still read to
|
|
1490
1534
|
build the skip count. There is no configuration in which the criterion clears,
|
|
1491
1535
|
so the two paragraphs above about a verdict flipping on a config have a
|
|
1492
|
-
counterpart — a member whose verdict flips on nothing.
|
|
1536
|
+
counterpart — a member whose verdict flips on nothing. `check-graph` joined it
|
|
1537
|
+
at the seventh cut and `check-gate-assertions` at the eighth, so the row has
|
|
1538
|
+
three members.
|
|
1539
|
+
|
|
1540
|
+
**`check-gate-assertions` also gives the register a shape it did not have: an
|
|
1541
|
+
immunity that is *contingent* rather than structural, and the difference is
|
|
1542
|
+
what makes it worth naming.** The criterion has two spellings in this section
|
|
1543
|
+
and they gave **opposite** verdicts on that member. Under *a registry member's
|
|
1544
|
+
declaration path lies inside the corpus the gate scans as content* it bound
|
|
1545
|
+
before its port in every configuration, the gate resolving every enumerated
|
|
1546
|
+
contract's heading to a declaration or an implementation module and reading its
|
|
1547
|
+
bytes. Under *the gate's **own** declaration path* it cleared — but only
|
|
1548
|
+
because its own SPEC section happened to carry no enumerated contract, so
|
|
1549
|
+
discovery filtered its own heading out. That is one sentence of prose away from
|
|
1550
|
+
ending, and the port is the likeliest author of that sentence, since every
|
|
1551
|
+
ported sibling's section opens with an enumerated contract. Contrast
|
|
1552
|
+
`check-gate-fixture-coverage` below, whose immunity is a **theorem** its own
|
|
1553
|
+
rule enforces. An immunity guarded only by a prohibition **the gate itself
|
|
1554
|
+
would have to enforce** is circular, so the eighth cut took the binding verdict
|
|
1555
|
+
and ended the contingency deliberately by making the member self-auditing
|
|
1556
|
+
(§check-gate-assertions). **The two spellings are not reconciled here**, and
|
|
1557
|
+
that is deliberate: settling which one the criterion means is a change to this
|
|
1558
|
+
section's own rule with reach across every member, so it is filed
|
|
1559
|
+
(`criterion-4-two-spellings-disagree`) rather than taken inside a port. What
|
|
1560
|
+
the eighth cut settled is the member, on the conservative verdict this
|
|
1561
|
+
criterion already prescribes when a reading is uncertain.
|
|
1493
1562
|
|
|
1494
1563
|
**That batch also produced a *third* couple-clears-walk-binds instance, and the
|
|
1495
1564
|
sharpest**: `check-knob-default-coupling`'s `couples=` field is one level deep
|
|
@@ -1505,6 +1574,17 @@ design time; the last three were paid for, and each is named with what it cost.
|
|
|
1505
1574
|
stays `spec-embedded-source-criterion-4-membership`'s, and a later reader must
|
|
1506
1575
|
not read the disposition as its answer.
|
|
1507
1576
|
|
|
1577
|
+
**`check-tree-terms` joins the register as its *widest* instance.**
|
|
1578
|
+
Its `couples=` is one literal pattern file, so the derived substrate-sensitive
|
|
1579
|
+
set does not select it; its walk is `git ls-files` over the **whole tracked
|
|
1580
|
+
tree**, pruned only by the shared prune dirs and the `msg-patterns` basenames,
|
|
1581
|
+
so every registry member's declaration path *and* every implementation module
|
|
1582
|
+
sits inside the corpus it greps as content. What makes it the widest is that no
|
|
1583
|
+
narrowing is available: `check-docs-cname-parity`'s scan root is a knob a
|
|
1584
|
+
consumer can point elsewhere, while this member's corpus is the tracked set
|
|
1585
|
+
itself. The bind is therefore read off the walk — the field would clear it —
|
|
1586
|
+
and §check-tree-terms owns what it cost that member.
|
|
1587
|
+
|
|
1508
1588
|
**And a member can be *self-immune*, clearing the criterion while the
|
|
1509
1589
|
ordering constraint still binds.** `check-gate-fixture-coverage` reaches a
|
|
1510
1590
|
declaration's bytes only for a member with **no** resolvable fixture pair —
|
|
@@ -1513,7 +1593,7 @@ design time; the last three were paid for, and each is named with what it cost.
|
|
|
1513
1593
|
lies inside the corpus it scans as content*, and for this member the answer is
|
|
1514
1594
|
no for itself and yes for its siblings. So criterion 4 and the shared-snapshot
|
|
1515
1595
|
ordering constraint are **independent facts**, the way a conservation row and a
|
|
1516
|
-
criterion-4
|
|
1596
|
+
criterion-4 bind already are: the criterion protects the parity oracle from
|
|
1517
1597
|
the member's *own* port, the ordering protects every comparison from a
|
|
1518
1598
|
*sibling's*. The fifth batch is where they came apart, and a session clearing
|
|
1519
1599
|
one by clearing the other has a verdict it did not earn.
|
|
@@ -1844,6 +1924,42 @@ design time; the last three were paid for, and each is named with what it cost.
|
|
|
1844
1924
|
A *blocker* here is therefore work the port owes, in the sense the roster's
|
|
1845
1925
|
opening paragraph fixes for all seven; it never reads on whether a gate ports.
|
|
1846
1926
|
|
|
1927
|
+
**A blocker here holds a member only where the program is the rule's own
|
|
1928
|
+
semantic content**, and the test between the two classes is *whether removing
|
|
1929
|
+
the program changes the gate's verdict*. The criterion has been silent on this
|
|
1930
|
+
since the declarable spelling landed, which is the narrower question that
|
|
1931
|
+
spelling made answerable — *is this member takeable at this cut?* — and the
|
|
1932
|
+
silence is what let an incidental dependency be spelled as a hold.
|
|
1933
|
+
|
|
1934
|
+
- **The program is the rule.** `shellcheck` decides what §check-shellcheck and
|
|
1935
|
+
§check-action-run-shell assert; `cargo` decides what §check-crate-arms
|
|
1936
|
+
asserts; the renderer decides what site-kit/SPEC.md
|
|
1937
|
+
§check-docs-render-fidelity asserts. Designing the dependency away means
|
|
1938
|
+
re-deciding the rule, which is a sub-project with its own design, and the
|
|
1939
|
+
member is genuinely **not takeable now**. This is the class `# port-until:`
|
|
1940
|
+
was minted for.
|
|
1941
|
+
- **The program is incidental spelling.** A text utility the rule uses to
|
|
1942
|
+
assemble, split or order a string the port re-expresses in the target
|
|
1943
|
+
language — `paste -sd, -` is `.join(",")`, and the verdict is identical
|
|
1944
|
+
either side of the substitution. The blocker is **priced by the cut, never a
|
|
1945
|
+
hold**: one line of the port's own work, exactly like a criterion-4 widening.
|
|
1946
|
+
|
|
1947
|
+
**The tool cannot make this call and is not asked to.** §port-blockers reports
|
|
1948
|
+
*which program a rule invokes*; the class is a judgment about what the rule
|
|
1949
|
+
asserts, which no tokenizer sees. Declaring it is therefore presence-shaped on
|
|
1950
|
+
the terms §check-gate-substrate-parity's assertion G already fixed for both
|
|
1951
|
+
fields — presence is the verdict, absence means takeable, and an **undeclared**
|
|
1952
|
+
member is over-counted as takeable rather than lost. The failure direction is
|
|
1953
|
+
unchanged by the test: a misclassified class-(i) member reads takeable, is
|
|
1954
|
+
selected, and the cut discovers the blocker at composition time, which is where
|
|
1955
|
+
the report already puts it.
|
|
1956
|
+
|
|
1957
|
+
**Two refusals, recorded so they are not re-proposed as ergonomics.** *The
|
|
1958
|
+
program is not on the floor* is not the test — that is the **report's** test,
|
|
1959
|
+
and reading it as the hold's is what puts ungrounded declarations on a tree.
|
|
1960
|
+
And *the port is more work than an ordinary member* is not the test either:
|
|
1961
|
+
every criterion prices work, and pricing is not holding.
|
|
1962
|
+
|
|
1847
1963
|
**What it adjudicates is exactly one thing: whether the payload carries the
|
|
1848
1964
|
program a rule invokes.** Whether the *target* of a sanctioned spawn is itself
|
|
1849
1965
|
ported is a **cohort-composition** question and criterion 7 does not reach it —
|
|
@@ -1899,8 +2015,8 @@ design time; the last three were paid for, and each is named with what it cost.
|
|
|
1899
2015
|
family and its walk and reads no knob, and the fact that stops it is one none
|
|
1900
2016
|
of the six criteria sees.
|
|
1901
2017
|
|
|
1902
|
-
**`check-gate-assertions`
|
|
1903
|
-
worth keeping.** The program is not on the floor, so
|
|
2018
|
+
**`check-gate-assertions` required `paste`, and how it surfaced is the part
|
|
2019
|
+
worth keeping.** The program is not on the floor, so that was owed port work of
|
|
1904
2020
|
exactly the shape the worked example above describes — a dependency designed
|
|
1905
2021
|
away, embedded or replaced. It was **invisible for the roster's whole life**:
|
|
1906
2022
|
the scan abandoned that declaration before reaching the call and reported the
|
|
@@ -1909,7 +2025,12 @@ design time; the last three were paid for, and each is named with what it cost.
|
|
|
1909
2025
|
member the roster reported clean and now reports blocked reads like drift
|
|
1910
2026
|
unless the reason is written down — and because it is the standing evidence
|
|
1911
2027
|
that a *derived* roster still has to be re-derived by a **repaired**
|
|
1912
|
-
derivation, never trusted because it is derived.
|
|
2028
|
+
derivation, never trusted because it is derived. **Its class is (ii)**: the
|
|
2029
|
+
invocation was `paste -sd, -`, a comma join of a sorted label set, so the
|
|
2030
|
+
compiled rule spells it directly and the verdict does not move. The member was
|
|
2031
|
+
therefore **takeable and priced**, not held — and the eighth budget batch took
|
|
2032
|
+
it, so the example now reads in the past tense while the *classes* it draws
|
|
2033
|
+
outlive the member (§check-gate-assertions records what its port cost).
|
|
1913
2034
|
|
|
1914
2035
|
**`check-crate-arms` is a different case under the same criterion, and it is
|
|
1915
2036
|
named so no later cohort reads it as owed work.** Its rule is an invocation of
|
|
@@ -2078,11 +2199,11 @@ exactly the missing input; the field landed **with** its declarations in one uni
|
|
|
2078
2199
|
which is the only landing the rule admits.
|
|
2079
2200
|
|
|
2080
2201
|
**The spelling's domain is wider than these two classes, and that widening is
|
|
2081
|
-
§The `# graph:` manifest's to state**: the
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2202
|
+
§The `# graph:` manifest's to state**: the holders are criterion-7 blockers read
|
|
2203
|
+
over gates already authored, fitting no lettered class, so the field's subject is
|
|
2204
|
+
*any temporary hold with named work owed and a live owning entry* rather than the
|
|
2205
|
+
born-native exception letters. Recorded here because this is the section that
|
|
2206
|
+
drafted it for the letters.
|
|
2086
2207
|
|
|
2087
2208
|
**The cause is recorded in the gate's own SPEC section**, beside the rule it
|
|
2088
2209
|
governs, on the same terms every other design ruling for that gate is recorded —
|
|
@@ -2096,12 +2217,17 @@ entry that `bash gate-sdk/bin/port-blockers.sh` can derive but not attribute; an
|
|
|
2096
2217
|
the session landing the missing substrate or the missing target, for which a
|
|
2097
2218
|
class-(b) or class-(c) cause *is* the list of gates that become portable with it.
|
|
2098
2219
|
**A held member's cause now has a machine-read companion and the two must agree**:
|
|
2099
|
-
`# port-until:` names the owning entry, that entry carries the disposition
|
|
2100
|
-
the gate's own section carries the ground
|
|
2220
|
+
`# port-until:` names the owning entry, that entry carries the disposition and
|
|
2221
|
+
the cost, and the gate's own section carries the ground — the single statement of
|
|
2222
|
+
that split, §The `# graph:` manifest citing it rather than ruling a second one.
|
|
2223
|
+
A member may not declare the field
|
|
2101
2224
|
until its own section states its cause — a declaration whose ground is inferred
|
|
2102
2225
|
from a sibling gate, or from this section's shared worked-example prose, is the
|
|
2103
2226
|
one shape the field must not normalise, since the field's whole value is that a
|
|
2104
|
-
reader reaches the ground from the declaration in one hop.
|
|
2227
|
+
reader reaches the ground from the declaration in one hop. That rule is
|
|
2228
|
+
**machine-held** rather than discipline: §check-gate-substrate-parity's assertion
|
|
2229
|
+
H opens the section the declaration's own `# spec:` field names and reds when it
|
|
2230
|
+
does not state the hold.
|
|
2105
2231
|
|
|
2106
2232
|
**What the classes deliberately exclude**, because an exception criterion is
|
|
2107
2233
|
defined by its refusals: *the rule is easier to write in shell*, *the author is
|
|
@@ -2228,7 +2354,27 @@ default forecloses a new one forming, because a gate written native was never in
|
|
|
2228
2354
|
the shell partition to join a group. A later selector therefore reads the arm's
|
|
2229
2355
|
precondition off the run as before and should expect it to keep reporting the
|
|
2230
2356
|
same verdict; what would reopen the arm is a *consumer* contributing shell gates
|
|
2231
|
-
that share a derivation, not this tree.
|
|
2357
|
+
that share a derivation, not this tree.
|
|
2358
|
+
**The takeable tier reopened at the eighth cut and the eighth cut emptied it
|
|
2359
|
+
again, and both readings are oracle reads rather than numbers this section
|
|
2360
|
+
holds.** Run on 2026-08-22 after two holds were retired — one criterion-4 bind
|
|
2361
|
+
that was never a hold ground and one criterion-7 blocker of the
|
|
2362
|
+
incidental-spelling class (§The port-candidate criteria owns both rulings) —
|
|
2363
|
+
`bash gate-sdk/bin/port-blockers.sh --group` trailed *106 member(s) scanned, 2
|
|
2364
|
+
group(s) formed, 0 undecidable, 98 already ported and excluded, 3 permanently
|
|
2365
|
+
shell and excluded, 3 temporarily held and excluded; 5 still owed, 2 takeable at
|
|
2366
|
+
this cut*. That superseded the reading §The sixth budget batch recorded at its
|
|
2367
|
+
own cut, where the tier was exhausted and the budget arm had nothing to compose
|
|
2368
|
+
from. **The eighth budget batch then took both**, and the same command re-run at
|
|
2369
|
+
its build cut trails *106 member(s) scanned, 0 group(s) formed, 0 undecidable,
|
|
2370
|
+
100 already ported and excluded, 3 permanently shell and excluded, 3 temporarily
|
|
2371
|
+
held and excluded; 3 still owed, 0 takeable at this cut* — the owed count down by
|
|
2372
|
+
two and the takeable tier empty, so every unported member again sits behind
|
|
2373
|
+
`cohort-held-members-port-prerequisites`. Neither reading is this paragraph's to
|
|
2374
|
+
hold: a later session re-reads the trailer, because a dated read is evidence that
|
|
2375
|
+
the arm's precondition **can change**, never the tier's current value. Through
|
|
2376
|
+
both readings the groups were of exactly one, so the size arm's verdict is
|
|
2377
|
+
unmoved and the budget arm is the only composer left. Shared derivation is the axis
|
|
2232
2378
|
**while it selects**, because it is what made this cohort
|
|
2233
2379
|
cheap: the walk is ported once and proved N times, and the parity comparison is
|
|
2234
2380
|
over one corpus shape rather than N; the budget arm is what this section says
|
|
@@ -2239,6 +2385,54 @@ design problem — a self-referential parity oracle, an external program on `PAT
|
|
|
2239
2385
|
— that the port owes an answer to rather than a waiver. Neither is ported and
|
|
2240
2386
|
patched later; both are designed, then ported.
|
|
2241
2387
|
|
|
2388
|
+
**The eighth budget batch is `check-gate-assertions` and `check-tree-terms`, and
|
|
2389
|
+
it is two batches of one member in every sense that matters.** The oracle read
|
|
2390
|
+
above is what selected them: the size arm is permanently exhausted, so the budget
|
|
2391
|
+
arm composed, and the takeable tier at that read *was* exactly these two. Neither
|
|
2392
|
+
was held — both had their `# port-until:` declarations retired on 2026-08-22 with
|
|
2393
|
+
their prices relocated to their own sections: §check-gate-assertions priced
|
|
2394
|
+
`paste -sd, -` as criterion 7 class (ii) and named the GNU-awk three-argument
|
|
2395
|
+
`match()` a capture-API re-expression, and §check-tree-terms priced its
|
|
2396
|
+
criterion-4 bind as a fixture widening before the port. Each carried its own
|
|
2397
|
+
descriptor, its own registry entry, its own widening and its own parity run, and
|
|
2398
|
+
no comparison spanned both — the property the paragraph below states in general.
|
|
2399
|
+
**Both bound criterion 4** and each paid it the same way, by widening its pair
|
|
2400
|
+
first; `check-gate-assertions` also ended a *contingent* immunity deliberately and
|
|
2401
|
+
is now self-auditing, which its own section owns. Two facts about the remainder
|
|
2402
|
+
are worth carrying, both measured at the build cut rather than predicted here:
|
|
2403
|
+
`paste` left the battery's program set **entirely**, on a re-run of `bash
|
|
2404
|
+
gate-sdk/bin/port-blockers.sh` where the only programs any rule still names are
|
|
2405
|
+
`shellcheck`, `cargo` and the renderer; and the residual `gawk` floor emptied,
|
|
2406
|
+
because probing showed `check-gate-assertions` was its only live holder
|
|
2407
|
+
(§check-gate-assertions records the probe and what is deliberately *not* changed
|
|
2408
|
+
on the published requirement).
|
|
2409
|
+
|
|
2410
|
+
**Criterion 5's price for that batch, measured on both sides — and the detour it
|
|
2411
|
+
took getting there is the part worth keeping.** Both members are
|
|
2412
|
+
`# install: zero-config` and both live in `gate-sdk`, which the measured profile
|
|
2413
|
+
carries, so the predicted growth is **two** with the profile intersection a no-op.
|
|
2414
|
+
`installer_smoke`'s binary-less leg, run from a clean checkout of each rev reached
|
|
2415
|
+
by path, reports **twenty-two** omitted members before the batch and
|
|
2416
|
+
**twenty-four** after — the prediction exactly, and both sides measured rather
|
|
2417
|
+
than one measured and one reasoned. The **judgment** is the standing one, **accept
|
|
2418
|
+
and declare**, refusing its two rivals for the reasons already ruled: an adopter on
|
|
2419
|
+
an uncovered platform receives each omission declared in its own `gates.list`
|
|
2420
|
+
rather than as a broken battery, restoring the class shell-side reinstates the
|
|
2421
|
+
duplication the port deletes, and a binary-gated declaration is what the omit path
|
|
2422
|
+
already is.
|
|
2423
|
+
|
|
2424
|
+
**The post-side reading was blocked first, and what blocked it was worth more than
|
|
2425
|
+
the number.** The smoke failed at its first profile: the compiled gate binary
|
|
2426
|
+
carried its dependencies' build paths and `init` commits that binary into the
|
|
2427
|
+
consumer's tree, so §check-tree-terms' newly honest binary arm reddened a
|
|
2428
|
+
consumer's own first battery. That is the leak guard working on its first live
|
|
2429
|
+
encounter, and the measurement is what found it — a cohort's criterion-5 price is
|
|
2430
|
+
paid on a real install, which is precisely why this criterion refuses a reasoned
|
|
2431
|
+
number. The defect was fixed at its source rather than exempted (§build-native),
|
|
2432
|
+
after which the leg ran and returned the twenty-four above. The lesson for a later
|
|
2433
|
+
cut: an instrument that will not run is a finding about the product, not a licence
|
|
2434
|
+
to reason the number out.
|
|
2435
|
+
|
|
2242
2436
|
**"Never as one cohort" is the property that makes a budget batch safe, and it
|
|
2243
2437
|
reads as bookkeeping only until that is said.** A batch's members carry **no
|
|
2244
2438
|
joint proof**: each takes its own `.gate` descriptor, its own registry entry, its
|
|
@@ -5144,7 +5338,12 @@ enforcing it.
|
|
|
5144
5338
|
`SMOKE_KIT_ROOT` = the vendored copy of the installing kit. The executable
|
|
5145
5339
|
form of that kit's README install steps: register its gates in
|
|
5146
5340
|
`scripts/gates.list`, establish the minimal governed surface its gates need
|
|
5147
|
-
to be green, and regenerate the hook + graph artifacts.
|
|
5341
|
+
to be green, and regenerate the hook + graph artifacts. **Copying the kit's own
|
|
5342
|
+
templates in is not part of that contract**: a smoke script installs a template
|
|
5343
|
+
only where a registered gate reads one — site-kit's `templates/site-health.yml`
|
|
5344
|
+
is the shipped instance — so a kit whose templates no gate reads copies none,
|
|
5345
|
+
and whether a given kit copies is read off its script rather than assumed.
|
|
5346
|
+
*Which* gates it
|
|
5148
5347
|
registers is not the author's discretion — *The registration accounting*
|
|
5149
5348
|
below rules on every omission, and the installer's own narrower subset is
|
|
5150
5349
|
derived from the same per-gate declarations (§The install disposition) rather
|
|
@@ -6102,6 +6301,19 @@ any CI wrapper without an argv contract change. Gates themselves are untouched
|
|
|
6102
6301
|
each still prints its single clean line per the output contract (§Output
|
|
6103
6302
|
contract); the runner captures it.
|
|
6104
6303
|
|
|
6304
|
+
**That convention governs configuration, not selection, and the bound is ruled
|
|
6305
|
+
here** rather than left for a later reader to re-litigate against the sentence
|
|
6306
|
+
above. `GATE_SDK_VERBOSE` is *how* the battery reports — a value every caller of
|
|
6307
|
+
the battery should carry uniformly — and env is right for it. *Which* members run
|
|
6308
|
+
is the one thing that must not be ambient: a selector spelled as a `GATE_SDK_*`
|
|
6309
|
+
knob would be inherited by the generated hook, by `run-consumer-smoke.sh` and by
|
|
6310
|
+
any CI wrapper that ran under it, silently narrowing a battery to one member
|
|
6311
|
+
while the summary line still reported a pass — precisely the
|
|
6312
|
+
green-with-nothing-behind-it the declared-omission accounting above exists to
|
|
6313
|
+
make impossible. A selector spelled in argv dies with the process that typed it.
|
|
6314
|
+
So the runner draws the line where the two selectors below sit: reporting is env,
|
|
6315
|
+
selection is argv.
|
|
6316
|
+
|
|
6105
6317
|
**The dispatch capture holds the two streams apart.** `gate_command`'s stdout
|
|
6106
6318
|
*is* the invocation argv, one element per line; its stderr is diagnostic text.
|
|
6107
6319
|
Merging them makes any stderr a successful call emits the **first argv element**,
|
|
@@ -6154,6 +6366,65 @@ failure; the selector is a `bin/` tool, never a registered gate, but its own
|
|
|
6154
6366
|
plumbing stays fail-closed (an unreadable registry or unresolvable member exits
|
|
6155
6367
|
non-zero).
|
|
6156
6368
|
|
|
6369
|
+
`run-gates.sh --only <name> [<name>...]` is the **name-keyed** selector — the
|
|
6370
|
+
ergonomic form of the targeted run that §Layout and configuration's `gates.list`
|
|
6371
|
+
bullet composes out of two knobs, and thin precisely because that composition
|
|
6372
|
+
already proves selection needs no new mechanism. It resolves the registry as a
|
|
6373
|
+
bare run, then runs the named members. `--only` is recognized as the first
|
|
6374
|
+
argument on the same terms as `--emit` and `--for`, consuming every remaining
|
|
6375
|
+
argument as a gate name, so the `[gates-dir]` positional is unavailable in this
|
|
6376
|
+
form: a caller selecting within another registry composes it through
|
|
6377
|
+
`GATE_SDK_GATES_DIR`, the knob that positional shadows anyway. An empty name
|
|
6378
|
+
list is a refusal — `run-gates: --only needs at least one gate name`, exit 2,
|
|
6379
|
+
matching `--for`'s message shape.
|
|
6380
|
+
|
|
6381
|
+
Selection is **set-shaped and registry-ordered**: the named set is intersected
|
|
6382
|
+
with the registry and run in registry order rather than argv order, so two names
|
|
6383
|
+
give the same transcript whichever way they were typed and the run reads as a
|
|
6384
|
+
narrower bare run; duplicates collapse silently, because the argument is a set.
|
|
6385
|
+
**An unregistered name is a refusal, exit 2, naming both the name and the
|
|
6386
|
+
registry path.** That is the one place `--only` deliberately diverges from
|
|
6387
|
+
`--for`, and the divergence is the point: an ungoverned path is a fact about the
|
|
6388
|
+
tree, so the path-keyed selector notes it and exits 0, whereas a *name* is a
|
|
6389
|
+
claim about the registry and a wrong one is a typo or a stale memory — exiting 0
|
|
6390
|
+
there would print `All 0 gates passed.`, the vacuous green the summary line
|
|
6391
|
+
exists to make impossible. A `mode=staged` member receives **no** positional
|
|
6392
|
+
arguments under `--only`, which is the bare-run behavior rather than the hook's:
|
|
6393
|
+
`--for` hands such a member its matching paths because it *has* paths, and
|
|
6394
|
+
`--only` names gates and has none, so the member runs over its full corpus.
|
|
6395
|
+
Everything downstream is untouched, which is the whole value of siting this on
|
|
6396
|
+
the runner rather than in a second tool — the `GATE_SDK_KNOB_*` config bridge,
|
|
6397
|
+
the consumer-first resolve-dir order, the dispatch capture, the per-gate timing,
|
|
6398
|
+
`GATE_SDK_VERBOSE`, the declared-omission line and the output contract all behave
|
|
6399
|
+
exactly as in a bare run. The summary line's `N` is the **selected** count, as it
|
|
6400
|
+
already is under `--for`; the roster-collapse tripwire that count serves is a
|
|
6401
|
+
property of a bare run, and neither selector claims it.
|
|
6402
|
+
|
|
6403
|
+
**The runner honours §The bin/-tool contract**, which binds because its
|
|
6404
|
+
positional is free text — a path — and an arity check is not a shape check. `-h`
|
|
6405
|
+
or `--help` as the first argument prints the usage on **stdout** at exit 0; a
|
|
6406
|
+
first argument beginning with `-` that is none of `--emit`, `--for`, `--only`,
|
|
6407
|
+
`-h`, `--help` or `--` is a refusal, usage on **stderr** at exit 2, naming the
|
|
6408
|
+
unrecognized option; and `--` ends option processing, so a gates-dir legitimately
|
|
6409
|
+
spelled with a leading dash stays reachable. A name beginning with `-` is an
|
|
6410
|
+
unrecognized option wherever it stands, so `--only --for` refuses at the name
|
|
6411
|
+
rather than taking it for a gate and calling it unregistered. This is convergence
|
|
6412
|
+
on a contract the family already carries, not a new design: before it,
|
|
6413
|
+
`run-gates.sh --help` fell through to the positional and died with `no registry
|
|
6414
|
+
at --help/gates.list` — a message about a missing file in answer to a rejected
|
|
6415
|
+
argument, which is why a wrong guess cost three steps instead of one.
|
|
6416
|
+
|
|
6417
|
+
**A gates-dir that is really a gate name steers to `--only`.** When the
|
|
6418
|
+
positional holds no `gates.list` and names a member of the **default** registry
|
|
6419
|
+
— resolvable through `gate_sdk_gates_dir` precisely because the failing argument
|
|
6420
|
+
was never a registry path — the refusal gains a line naming the gate and the
|
|
6421
|
+
flag that runs it. It is an addition to a refusal and never a fallback: the
|
|
6422
|
+
positional keeps one meaning, and a caller who typed a name gets a remedy rather
|
|
6423
|
+
than a run it did not ask for, which is the shape a gate's own `help:` line
|
|
6424
|
+
takes applied to a `bin/` tool's argument error. Where the default registry is
|
|
6425
|
+
itself unresolvable the plain message stands unchanged, so the steer adds no
|
|
6426
|
+
failure path of its own.
|
|
6427
|
+
|
|
6157
6428
|
### run-gate-tests
|
|
6158
6429
|
|
|
6159
6430
|
Golden-fixture runner. Each `<tests-dir>/<gate>/` holds `good/` + `bad/` case
|
|
@@ -6675,7 +6946,47 @@ set cwd and get that tree's crate, and it is why the contract says "from the rep
|
|
|
6675
6946
|
root" rather than leaving the working directory unstated.
|
|
6676
6947
|
|
|
6677
6948
|
cargo's exit code passes through unmodified and both streams pass through
|
|
6678
|
-
untouched, so a caller capturing build output keeps working.
|
|
6949
|
+
untouched, so a caller capturing build output keeps working. A **successful**
|
|
6950
|
+
cargo build can still exit 2 here, on the artifact verification below — the one
|
|
6951
|
+
place this script substitutes its own verdict for cargo's, and it does so only to
|
|
6952
|
+
refuse shipping a binary it has already built.
|
|
6953
|
+
|
|
6954
|
+
**The released artifact carries no builder path, and the remap is this script's
|
|
6955
|
+
because this script is where every shipped build passes.** rustc records a panic
|
|
6956
|
+
location per crate it compiles; for a *dependency* that location is absolute
|
|
6957
|
+
under the cargo home, so an unremapped binary carries the builder's home
|
|
6958
|
+
directory into every consumer that installs it. Measured on this tree at the
|
|
6959
|
+
eighth cut: exactly two such paths, both under `$CARGO_HOME/registry/src/`, from
|
|
6960
|
+
resolved dependencies rather than from the crate's own sources — cargo already
|
|
6961
|
+
spells the local crate's paths relative, which was **probed rather than assumed**,
|
|
6962
|
+
including under an absolute `--manifest-path`, where it stays relative. The build
|
|
6963
|
+
therefore exports `RUSTFLAGS` carrying `--remap-path-prefix` for two prefixes,
|
|
6964
|
+
`CARGO_HOME` (defaulted to `$HOME/.cargo`) and `HOME`: the first is the measured
|
|
6965
|
+
leak, the second covers the same leak with a cargo home this tree cannot predict
|
|
6966
|
+
and any future path under the builder's home. A prefix that is empty or `/`
|
|
6967
|
+
contributes **no** flag, because remapping `/` would rewrite every absolute path
|
|
6968
|
+
in the binary. The flags are **appended** to a caller's `RUSTFLAGS` rather than
|
|
6969
|
+
replacing them.
|
|
6970
|
+
|
|
6971
|
+
**`--remap-path-prefix` rather than cargo's `trim-paths`, and the reason is the
|
|
6972
|
+
dependency floor.** `trim-paths` stabilised in 1.81 and this crate pins
|
|
6973
|
+
`rust-version = "1.71"`; taking it would raise the toolchain floor, which runs
|
|
6974
|
+
against the objective that exists to collapse that floor rather than raise it
|
|
6975
|
+
(TRAJECTORY.md). The cost accepted in exchange is that the setting lives in a
|
|
6976
|
+
build path rather than in the manifest, which is what the verification below
|
|
6977
|
+
exists to answer.
|
|
6978
|
+
|
|
6979
|
+
**The artifact is verified rather than the flag trusted.** After a successful
|
|
6980
|
+
build, the emitted binary is matched against the consumer's own resolved
|
|
6981
|
+
banned-pattern set — `gate_msg_pattern_files`, the same roster §check-tree-terms
|
|
6982
|
+
and §check-commit-msg read, so the artifact is held to the tree's leak ban rather
|
|
6983
|
+
than to a second vocabulary this tool would carry. A hit is exit 2 naming the
|
|
6984
|
+
artifact and the matched text. This is the difference between a flag that is
|
|
6985
|
+
*set* and a property that *holds*: a build path losing the flags, or a prefix
|
|
6986
|
+
outside `CARGO_HOME` and `HOME` reaching the binary, is caught here rather than
|
|
6987
|
+
in an adopter's first battery. The artifact path is derived from the crate dir
|
|
6988
|
+
plus any `--target <triple>`, and an absent artifact after a successful build is
|
|
6989
|
+
itself exit 2 rather than a silently skipped verification.
|
|
6679
6990
|
|
|
6680
6991
|
Fail-closed (§Fail-closed contract), each **exit 2 with cause** rather than a
|
|
6681
6992
|
silent success or a skip:
|
|
@@ -6688,6 +6999,14 @@ silent success or a skip:
|
|
|
6688
6999
|
binary per declared target and never the crate source (§Consumer payload), so a
|
|
6689
7000
|
consumer tree that reaches this script has found a misuse, not a missing build.
|
|
6690
7001
|
Saying so is what keeps a vendored tool from reading as a broken one.
|
|
7002
|
+
- The banned-pattern set not resolving — a required tracked pattern file missing
|
|
7003
|
+
or unreadable. The resolver's status is read from the command substitution and
|
|
7004
|
+
**not** from `mapfile`, whose own status reports the array assignment and says
|
|
7005
|
+
nothing about the producer; reading it there would turn a fail-closed resolver
|
|
7006
|
+
into a skipped verification.
|
|
7007
|
+
- The built artifact matching a banned pattern, or being absent after a
|
|
7008
|
+
successful build. Both are stated as assertions so "not shipped" cannot read as
|
|
7009
|
+
"not checked".
|
|
6691
7010
|
|
|
6692
7011
|
It is a tool, not a gate: no `# graph:` manifest, no `# install:` header, no
|
|
6693
7012
|
fixture pair — the same distinction the kits' remaining `bin/` tools carry. It is
|
|
@@ -6705,16 +7024,30 @@ builds *the configured crate* and carries no repo-specific path, no product
|
|
|
6705
7024
|
constant, and no private vocabulary; `native/` reaches it only as
|
|
6706
7025
|
`GATE_SDK_NATIVE_CRATE`'s existing default.
|
|
6707
7026
|
|
|
6708
|
-
**The residual, stated rather than gated
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
7027
|
+
**The residual, stated rather than gated, and one half of it is now attested.**
|
|
7028
|
+
Nothing stops a future session from writing a fresh longhand `cargo build
|
|
7029
|
+
--release --manifest-path …` into a new file: no existing gate's corpus or
|
|
7030
|
+
predicate reaches that, and inventing one would mean a banned-literal gate whose
|
|
7031
|
+
pattern list is one repo's own build command. **The recurrence is attested**, and
|
|
7032
|
+
naming it is what keeps this paragraph honest — §upgrade-smoke carries a second
|
|
7033
|
+
spelling, `cargo build --release` inside a checked-out ref's crate directory. It
|
|
7034
|
+
is deliberately left there and it is **not** a leak path: it builds a *historical
|
|
7035
|
+
ref's* crate, which this script's current text could not govern anyway, and the
|
|
7036
|
+
artifact is placed into a scratch consumer that **gitignores** it (§Consumer
|
|
7037
|
+
smoke), so it never reaches a tracked tree for the leak ban to read.
|
|
7038
|
+
|
|
7039
|
+
**That asymmetry is the whole sufficiency argument and is worth stating once.**
|
|
7040
|
+
gate-sdk's scratch-consumer builder ignores the placed binary; the installer's
|
|
7041
|
+
`init` **tracks and commits** it. Only the tracked half is a leak path, and every
|
|
7042
|
+
build reaching it — the publish workflow's per-target build, CI's, and the
|
|
7043
|
+
consumer smoke's host build — goes through *this* script. So the property is held
|
|
7044
|
+
in two places that do not depend on each other: this script refuses to leave a
|
|
7045
|
+
leaking artifact behind, and `installer_smoke` runs a real `init` and a real
|
|
7046
|
+
consumer battery over the result, where §check-tree-terms reads the committed
|
|
7047
|
+
binary. A future second builder whose artifact reaches a tracked tree is caught by
|
|
7048
|
+
the second; one whose artifact does not is not a leak. What remains uncovered is a
|
|
7049
|
+
new build path that both bypasses this script **and** publishes without an `init`
|
|
7050
|
+
— a costed filing if it is ever built, not a silent regrowth.
|
|
6718
7051
|
|
|
6719
7052
|
### port-blockers
|
|
6720
7053
|
|
|
@@ -7195,13 +7528,16 @@ reason text.
|
|
|
7195
7528
|
|
|
7196
7529
|
### check-gate-assertions
|
|
7197
7530
|
|
|
7531
|
+
`checks/check-gate-assertions.gate` (`align-only`, binary-dispatched).
|
|
7198
7532
|
Invariant: every `### <gate>` subsection in the family SPEC whose contract
|
|
7199
|
-
enumerates its assertions
|
|
7200
|
-
|
|
7201
|
-
the
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7533
|
+
enumerates its assertions is coupled to a matching `# assertion <label>:` marker
|
|
7534
|
+
set in the gate's code, on four assertions: (A) the count-word equals the size of
|
|
7535
|
+
the label span it introduces; (B) the heading resolves to gate code through the
|
|
7536
|
+
registry; (C) a resolved file carrying no marker at all is the retrofit
|
|
7537
|
+
obligation; (D) the marker label set equals the contract's label span, reported
|
|
7538
|
+
through its `missing` and `extra` sub-branches. This catches the prose-vs-code
|
|
7539
|
+
drift an internal count⟺span check cannot: a contract can be internally
|
|
7540
|
+
consistent while the code grew a sixth assertion.
|
|
7205
7541
|
|
|
7206
7542
|
Discovery is first-paragraph-scoped, requires the enumeration noun
|
|
7207
7543
|
(`assertion(s)`|`axes`|`axis`|`checks`) adjacent to the count-word
|
|
@@ -7211,11 +7547,39 @@ follow-on sentences, hierarchical axis/sub-rule contracts, and count-words
|
|
|
7211
7547
|
with non-enumeration nouns. With no spec argument the gate scans
|
|
7212
7548
|
`<gates-dir>/SPEC.md` when present plus each vendored kit's own `SPEC.md`;
|
|
7213
7549
|
each matched heading resolves to its gate source through the registry path.
|
|
7550
|
+
The three fail-closed exits and the internal skip sentinel port
|
|
7551
|
+
unchanged, the sentinel being no failure path at all: a `.gate`-declared member
|
|
7552
|
+
with no crate manifest present is counted onto the clean line as *declared out of
|
|
7553
|
+
reach*, and that segment is part of the output contract.
|
|
7554
|
+
|
|
7555
|
+
**Its manifest, stated because every ported sibling's section states one and
|
|
7556
|
+
because one field of it was wrong.** `dir=bi valve=none tier=align-only`, and no
|
|
7557
|
+
`trigger=`: the member emits into **no** generated hook, which is why criterion 3
|
|
7558
|
+
names a real cost for it — the fixture pair, `run-gates.sh` and the align stage
|
|
7559
|
+
are its only executed callers. `couples=` carries
|
|
7560
|
+
`kit:SPEC.md,scripts/*.sh,kit:*.sh,native/src/gates/*.rs` **plus
|
|
7561
|
+
`kit:checks/*.sh` and `kit:checks/*.gate`**, the two the port added. Probed at
|
|
7562
|
+
the cut: `kit:*.sh` expands to `<kit-root>/*.sh` and no kit root holds a
|
|
7563
|
+
top-level `.sh`, and `scripts/*.sh` matches nothing, because every gate in this
|
|
7564
|
+
consumer's gates dir is now a descriptor. So before the correction the only
|
|
7565
|
+
declaration path the field reached was `native/src/gates/*.rs`, while the
|
|
7566
|
+
**walk** read `gate-sdk/checks/check-gate-substrate-parity.sh` on every run — a
|
|
7567
|
+
shell gate whose edit re-fired nothing. `kit:checks/*.sh` closes that missed
|
|
7568
|
+
content trigger; `kit:checks/*.gate` is a **reverse trigger**, because creating
|
|
7569
|
+
or deleting a descriptor changes which file the gate resolves and greps even
|
|
7570
|
+
though the descriptor's own bytes are never read. The two globs that expand to
|
|
7571
|
+
nothing stay: they are dead against *this* tree's layout, not against a
|
|
7572
|
+
consumer's. No conservation row is added by any of it — the field already carried
|
|
7573
|
+
`native/src/gates/*.rs`, so the member was already substrate-sensitive and
|
|
7574
|
+
already carries its row.
|
|
7214
7575
|
|
|
7215
7576
|
**A `.gate`-declared member's markers live with its rule, in the implementation
|
|
7216
7577
|
module** — the follow-the-rule-to-the-module resolution §check-gate-output owns,
|
|
7217
7578
|
arriving here with the kit-roots cohort, because a descriptor's field roster is
|
|
7218
|
-
closed and cannot carry them.
|
|
7579
|
+
closed and cannot carry them. That resolution is **one implementation shared with
|
|
7580
|
+
§check-gate-output**, not a second copy: both reach a declaration through the
|
|
7581
|
+
same registry path, and two copies of it could disagree about which file a member
|
|
7582
|
+
resolves to. The marker grammar accepts either comment leader
|
|
7219
7583
|
(`#` or `//`): the leader is the substrate's and the marker is a code marker
|
|
7220
7584
|
either way. **A tree with no crate skips those members and counts them**, in the
|
|
7221
7585
|
clean line, exactly as §check-gate-output declares them out of reach — a vendored
|
|
@@ -7226,21 +7590,171 @@ the **manifest**, never the directory, for the reason §check-gate-output states
|
|
|
7226
7590
|
The skip's executed oracle is `installer_smoke`, which runs the battery on a
|
|
7227
7591
|
freshly vendored consumer and is what found the red this branch answers.
|
|
7228
7592
|
|
|
7593
|
+
**Four port hazards are pinned here, each a place the natural port diverges
|
|
7594
|
+
silently rather than loudly.**
|
|
7595
|
+
|
|
7596
|
+
- **The lowercasing must be ASCII and byte-length preserving.** The rule matches
|
|
7597
|
+
on a lowercased copy of the paragraph and then slices the **original-case**
|
|
7598
|
+
paragraph using that copy's offsets, which is sound only because the
|
|
7599
|
+
lowercasing does not change the string's length. The target language's Unicode
|
|
7600
|
+
lowercase is **not** length-preserving — `İ` lowercases to two code points —
|
|
7601
|
+
so the compiled form lowercases ASCII-only. This is the sharpest
|
|
7602
|
+
silent-divergence hazard in the member: nothing reds, the slice simply lands in
|
|
7603
|
+
the wrong place past the first non-ASCII character. The offsets themselves are
|
|
7604
|
+
**bytes**, which is the C-locale reading of the shell form's character indices;
|
|
7605
|
+
an offset landing inside a multi-byte character is stepped back to the boundary
|
|
7606
|
+
below it, so a multi-byte paragraph faults on nothing.
|
|
7607
|
+
- **The slice keeps one boundary character.** The count-word pattern consumes one
|
|
7608
|
+
boundary character on each side, and the slice deliberately starts one position
|
|
7609
|
+
**early** so the trailing one survives. A port slicing from the match end
|
|
7610
|
+
diverges on any paragraph whose enumeration noun is followed immediately by a
|
|
7611
|
+
parenthesis: the `(` is the boundary character the pattern ate, and losing it
|
|
7612
|
+
drops the span's first label and can silently demote the contract below the
|
|
7613
|
+
two-label arity filter.
|
|
7614
|
+
- **The sort is byte order, and that is a stated narrowing.** The shell form's
|
|
7615
|
+
ordering was **locale-dependent and unpinned**; the compiled form sorts by
|
|
7616
|
+
byte, which is C-locale order. The two can differ
|
|
7617
|
+
only on a mixed-case label span under a UTF-8 locale, and no live span is
|
|
7618
|
+
anything but `A`-`H` or `1`-`3`. Recorded as a deliberate narrowing of a latent
|
|
7619
|
+
divergence rather than left as an accident of substrate.
|
|
7620
|
+
- **The two marker grammars differ on purpose.** The extraction pattern accepts a
|
|
7621
|
+
multi-character label while the contract-span pattern accepts exactly one, so a
|
|
7622
|
+
multi-character marker can only ever surface as an *extra marker* finding. The
|
|
7623
|
+
port reproduces both widths rather than unifying them, because unifying them
|
|
7624
|
+
would turn a reported drift into an unreported one.
|
|
7625
|
+
|
|
7626
|
+
**Criterion 4 binds, and the contingent immunity it used to clear under is ended
|
|
7627
|
+
deliberately. This is the finding the eighth cut was named for.** The criterion
|
|
7628
|
+
has **two spellings in one section and they give opposite verdicts on this
|
|
7629
|
+
member**, which is a fact about the criterion and not a reading error. Under *a
|
|
7630
|
+
registry member's declaration path lies inside the corpus the gate scans as
|
|
7631
|
+
content*, it **binds today, before the port, in every configuration**: eight of
|
|
7632
|
+
the nine live enumerated contracts already resolved their markers out of
|
|
7633
|
+
`native/src/gates/*.rs` and the ninth out of a shell gate, so the gate reads
|
|
7634
|
+
registry members' declaration and implementation paths as content on every run,
|
|
7635
|
+
and there is no consumer config in which the SPEC corpus stops naming gates.
|
|
7636
|
+
Under *the gate's **own** declaration path*, it **cleared** — because the section
|
|
7637
|
+
carried no count-word-plus-labelled-span, so the gate's own heading was filtered
|
|
7638
|
+
out of discovery and its own bytes were never read.
|
|
7639
|
+
|
|
7640
|
+
**That second verdict was a contingent immunity, not a structural one, and the
|
|
7641
|
+
contrast with the register's structural case is the point.**
|
|
7642
|
+
`check-gate-fixture-coverage`'s immunity is a theorem: it reaches a declaration's
|
|
7643
|
+
bytes only for a member with no fixture pair, and it must carry a pair to pass
|
|
7644
|
+
its own rule. This member's immunity was **one sentence of prose away from
|
|
7645
|
+
ending** — and the port was the likeliest author of that sentence, since every
|
|
7646
|
+
ported sibling's section opens with an enumerated contract and the descriptor's
|
|
7647
|
+
`# spec:` one-liner conventionally states one too. An immunity whose only guard
|
|
7648
|
+
is a prohibition **this gate itself would have to enforce** is circular, and a
|
|
7649
|
+
standing prohibition would also leave the member permanently anomalous against
|
|
7650
|
+
every ported sibling. So the ruling is in two parts:
|
|
7651
|
+
|
|
7652
|
+
- **The bind is taken** under the registry-member predicate, which was already
|
|
7653
|
+
true and is therefore not a choice: the member joins `check-graph` and
|
|
7654
|
+
`check-gate-exemption-tasks` in the **no-clearing-configuration** row. This is
|
|
7655
|
+
also the direction §The port-candidate criteria itself takes when a verdict is
|
|
7656
|
+
uncertain — the conservative verdict costs a fixture widening and cannot be
|
|
7657
|
+
wrong in the harmful direction, while clearing wrongly ships the hole the
|
|
7658
|
+
criterion exists to point at.
|
|
7659
|
+
- **The contingency is ended by making the member self-auditing.** This section
|
|
7660
|
+
gains its **own** enumerated contract over the four arms above and
|
|
7661
|
+
`gate_assertions.rs` carries the matching markers, so the gate reads its own
|
|
7662
|
+
module and the immunity stops being a prose accident. The precedent is
|
|
7663
|
+
§check-comment-tier, which audits its own declaration and whose **fixture pair,
|
|
7664
|
+
not the live tree, is what proves those arms** — the same sentence this member
|
|
7665
|
+
now inherits. The contract and the markers are two copies of one fact **held by
|
|
7666
|
+
the gate itself**, which is the intended coupling rather than a duplication
|
|
7667
|
+
defect: the set-equality arm reads every label at the comparison and the
|
|
7668
|
+
count arm reads the span's size, so no label can exist without a reader by
|
|
7669
|
+
construction. The module carries the matching authoring rule: it is the
|
|
7670
|
+
resolution target of its own contract, so a marker shape in its unit tests is
|
|
7671
|
+
**composed** and never spelled — a literal one would join the module's marker
|
|
7672
|
+
set and red the gate against itself, which is exactly what
|
|
7673
|
+
`native/src/gates/tree_terms.rs` does for the banned-shape set.
|
|
7674
|
+
|
|
7675
|
+
**The ordering this forced is stated, because it was not free.**
|
|
7676
|
+
§check-gate-substrate-parity assertion A forbids a script and a descriptor
|
|
7677
|
+
coexisting in one resolve dir, so the cross-substrate comparison necessarily ran
|
|
7678
|
+
on the **pre-descriptor** tree. Therefore the pair widened **first**; parity was
|
|
7679
|
+
proved over the **pair**, the only corpus inert under the port; and the enumerated
|
|
7680
|
+
contract plus the module markers landed **with** the port, since neither can exist
|
|
7681
|
+
before the module does. The **shared-snapshot ordering constraint binds
|
|
7682
|
+
independently** and is discharged by none of that: this member's live corpus moves
|
|
7683
|
+
whenever **any** of the enumerated contracts' members ports, so criterion 4
|
|
7684
|
+
protects the oracle from the member's own port and the ordering protects every
|
|
7685
|
+
comparison from a sibling's — independent facts, as §The port-candidate criteria
|
|
7686
|
+
already records for `check-gate-fixture-coverage`.
|
|
7687
|
+
|
|
7688
|
+
**The pair widened first, and the instrument was ruled rather than left to the
|
|
7689
|
+
build.** Measured at spec the pair stood at roughly **two of eight arms**: one
|
|
7690
|
+
finding arm of four and one resolution arm of four. One structural cause
|
|
7691
|
+
explained most of the darkness — both cases pass a second positional, which
|
|
7692
|
+
short-circuits resolution to the *scripts-dir plus `.sh`* branch, so the registry
|
|
7693
|
+
walk, the descriptor-to-module redirection and the no-crate skip were reached by
|
|
7694
|
+
no case at all, and the **`//` marker leader**, which is the leader every live
|
|
7695
|
+
descriptor-declared member actually uses, was covered by nothing. The `args` file
|
|
7696
|
+
carries positionals only and cannot set a knob, so opening those arms took one of
|
|
7697
|
+
two instruments and the choice is ruled here: a bespoke
|
|
7698
|
+
`check-gate-assertions.test.sh` standing up a throwaway mini-consumer, on
|
|
7699
|
+
§check-graph's own tree-test precedent, preferred to a per-case config file
|
|
7700
|
+
because it reaches the no-crate arm — which needs a tree with **no crate
|
|
7701
|
+
manifest**, a state a case dir inside this repository cannot have. The pair took
|
|
7702
|
+
the rest: `good/` gained a `//`-led contract in both its plain and its indented
|
|
7703
|
+
spelling, and three headings discovery must **exclude** — a non-enumeration noun,
|
|
7704
|
+
a first parenthetical that is not a single-char label, and a span of fewer than
|
|
7705
|
+
two distinct labels — none of which resolves to any gate file, so each filter is
|
|
7706
|
+
proved by **greenness** rather than by absence. `bad/` gained the three finding
|
|
7707
|
+
arms and the sub-branch it lacked: an extra-marker set, a count-word disagreeing
|
|
7708
|
+
with its own span, an enumerated contract resolving to nothing, and a resolved
|
|
7709
|
+
file carrying no marker at all. Every expectation was derived by running the
|
|
7710
|
+
case: `run-gate-tests` reds on an `expect.txt` substring **not found**, a
|
|
7711
|
+
zero-count red no inspection can clear.
|
|
7712
|
+
|
|
7713
|
+
**The parity run's verdict, recorded with the limit the register sets for a
|
|
7714
|
+
member binding criterion 4.** Eight comparisons — both fixture cases, the live
|
|
7715
|
+
tree with no argument, three live single-spec and scripts-dir variants, the
|
|
7716
|
+
missing-spec fail-close and a subdirectory cwd — agreed on stdout, stderr and
|
|
7717
|
+
exit code in every one. **Parity is proved over the pair**, the only corpus inert
|
|
7718
|
+
under the port; the six live-tree arms are **no disagreement found on the
|
|
7719
|
+
pre-descriptor tree**, never parity proved.
|
|
7720
|
+
|
|
7229
7721
|
Honest residual: the marker catches editing one
|
|
7230
7722
|
side without the other, but not adding an assertion while forgetting *both*
|
|
7231
7723
|
its marker and the contract. A first paragraph that embeds the literal pattern
|
|
7232
7724
|
in example prose self-matches — the failure is loud (a false positive forcing
|
|
7233
|
-
a reword), never a silent miss, so it is accepted.
|
|
7234
|
-
|
|
7235
|
-
**
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
criterion's worked-example prose
|
|
7240
|
-
|
|
7241
|
-
life
|
|
7242
|
-
|
|
7243
|
-
|
|
7725
|
+
a reword), never a silent miss, so it is accepted.
|
|
7726
|
+
|
|
7727
|
+
**Its port price was `paste`, and the price is paid.** The shell rule invoked
|
|
7728
|
+
`paste`, which is not on `GATE_SDK_PROGRAM_FLOOR` (§lib/gate.sh), so criterion 7
|
|
7729
|
+
named it — owed port work, a dependency to be designed away or replaced, never a
|
|
7730
|
+
permitted exclusion. *How* the requirement surfaced is worth keeping and is
|
|
7731
|
+
recorded in that criterion's worked-example prose: the scan abandoned this
|
|
7732
|
+
declaration before reaching the call, so the roster reported the member clean for
|
|
7733
|
+
its whole life. The invocation was `paste -sd, -` at four sites, a comma join
|
|
7734
|
+
over a sorted label set, which is class (ii) under criterion 7's hold-worthiness
|
|
7735
|
+
test — the compiled rule spells the join directly and the verdict is identical
|
|
7736
|
+
either side of the substitution. The **GNU-awk** requirement rode the same
|
|
7737
|
+
reasoning: `match()`'s third argument was a convenience the port re-expressed in
|
|
7738
|
+
the crate's own matcher, and the re-expression cost no new API — two of its sites
|
|
7739
|
+
wanted the *whole* match span that §The POSIX ERE matcher's `RSTART`/`RLENGTH`
|
|
7740
|
+
pair already reports, and the third's single-character label is read out of that
|
|
7741
|
+
span directly. Neither was ever a hold, and this member
|
|
7742
|
+
declared no `# port-until:` on either ground.
|
|
7743
|
+
|
|
7744
|
+
**The gawk floor's residue is empty after this port, and that is measured rather
|
|
7745
|
+
than inherited.** gate-sdk/SPEC.md carried the residual `gawk` floor as this
|
|
7746
|
+
member's **and** §check-action-run-shell's. Probed at the cut with a `gawk
|
|
7747
|
+
--posix` shim on `PATH`, which refuses every gawk extension: this member's rule
|
|
7748
|
+
died on it — *match: third argument is a gawk extension*, exit 2 — and
|
|
7749
|
+
`check-action-run-shell` ran **clean**, holding no gawk extension at all. Its own
|
|
7750
|
+
declaration's `Requires GNU awk (3-arg match)` header was stale — the file carries
|
|
7751
|
+
two-argument `match()` only — and was deleted at that iteration's close. So the
|
|
7752
|
+
floor had **one** live holder, this one, and
|
|
7753
|
+
the port retires it. What is *not* changed here is the published requirement:
|
|
7754
|
+
`awk (GNU)` is an element of `context-kit/lib/toolfloor.sh`'s probe roster held to
|
|
7755
|
+
docs/install.md §Requirements by `check-install-toolchain`, and narrowing a
|
|
7756
|
+
user-facing requirement is not this port's to rule. The narrowing is filed
|
|
7757
|
+
(`interpreter-floor-gawk-residue-empty`) rather than taken.
|
|
7244
7758
|
|
|
7245
7759
|
### check-gate-substrate-parity
|
|
7246
7760
|
|
|
@@ -7248,7 +7762,11 @@ Holds the dispatch seam honest: a gate's implementation may move to a compiled
|
|
|
7248
7762
|
subcommand, but not by quietly deleting the declaration other gates read or the
|
|
7249
7763
|
record of what that move costs. Usage
|
|
7250
7764
|
`check-gate-substrate-parity.sh [gates-dir] [conservation-doc]`; the two-arg form
|
|
7251
|
-
steers the fixture pair onto hermetic copies of each surface.
|
|
7765
|
+
steers the fixture pair onto hermetic copies of each surface. Eight assertions:
|
|
7766
|
+
(A) declaration uniqueness; (B) subcommand parity; (C) disposition coverage;
|
|
7767
|
+
(D) one writable home for the manifest; (E) no implementation source inside the
|
|
7768
|
+
vendoring set; (F) one owner for the target roster; (G) port-declaration
|
|
7769
|
+
placement; and (H) a held declaration's ground reachable in one hop.
|
|
7252
7770
|
|
|
7253
7771
|
- **assertion A — declaration uniqueness.** Each `gates.list` member resolves to
|
|
7254
7772
|
exactly one declaration. A dir carrying both `<name>.sh` and `<name>.gate` is
|
|
@@ -7576,6 +8094,79 @@ steers the fixture pair onto hermetic copies of each surface. Seven assertions.
|
|
|
7576
8094
|
The gate is permanently shell under exception class (a), so widening it raises
|
|
7577
8095
|
no substrate question, and the assertion adds no member to the conservation
|
|
7578
8096
|
table: the corpus is the declaration set it already walks.
|
|
8097
|
+
- **assertion H — a held declaration's ground is reachable in one hop.** For every
|
|
8098
|
+
declaration carrying `# port-until:`, the SPEC section its own `# spec:` header
|
|
8099
|
+
field points at names the field. §The port-candidate criteria rules that a held
|
|
8100
|
+
member's ground lives in its own section and §The `# graph:` manifest rests the
|
|
8101
|
+
slug-only payload on it; until this assertion that rule was discipline, and two
|
|
8102
|
+
of the five declarations live when it landed failed it.
|
|
8103
|
+
|
|
8104
|
+
**Resolution is the declaration's own pointer, not a derivation.** Every
|
|
8105
|
+
declaration carries a `# spec: <path> §<section>` header field, and
|
|
8106
|
+
canon-kit/SPEC.md §check-spec-pointer already holds that pointer to a tracked
|
|
8107
|
+
file and an existing heading — so this assertion resolves *nothing*: it opens
|
|
8108
|
+
the section that field names and reads it. That is the literal shape of the
|
|
8109
|
+
property, a reader reaching the ground from the declaration in one hop, and it
|
|
8110
|
+
costs no second heading-matching implementation. It also handles the two heading
|
|
8111
|
+
levels in play without a special case (`### <gate>` here, `## <gate>` in
|
|
8112
|
+
site-kit/SPEC.md), because the pointer names the heading **text** and the
|
|
8113
|
+
extraction runs to the next heading at the same or shallower level.
|
|
8114
|
+
|
|
8115
|
+
**Red conditions, enumerated.** A declaration carrying `# port-until:` and **no
|
|
8116
|
+
`# spec:` field naming a section** — either the field is absent, or it carries a
|
|
8117
|
+
path with no `§<heading>` fragment — is red naming the declaration: the ground is
|
|
8118
|
+
unreachable from it, whatever else is true. This is not `check-spec-pointer`'s
|
|
8119
|
+
job, which holds a *present* pointer's resolution and asserts no pointer's
|
|
8120
|
+
presence. A declaration whose named section body contains no `port-until` token
|
|
8121
|
+
is red naming the section: the hop lands somewhere that does not discuss the
|
|
8122
|
+
hold, which is also where a heading the file lacks arrives, its body being
|
|
8123
|
+
empty. And an **unreadable target file** at the resolved path is fail-closed on
|
|
8124
|
+
§Fail-closed contract's ordinary terms — a gate that cannot read its corpus is
|
|
8125
|
+
not clean.
|
|
8126
|
+
|
|
8127
|
+
**Not asserted, deliberately:** that a member *without* the field has no hold.
|
|
8128
|
+
That is assertion G's presence question, refused there for reasons this does not
|
|
8129
|
+
disturb, and the error direction of not asserting it is the status-quo
|
|
8130
|
+
over-count.
|
|
8131
|
+
|
|
8132
|
+
**The corpus and the coupling.** The subject set is the declarations assertion A
|
|
8133
|
+
already resolves; the second corpus is the SPEC files their pointers name. The
|
|
8134
|
+
manifest's `couples=` therefore gains `kit:SPEC.md`, so an edit to any vendored
|
|
8135
|
+
kit's SPEC re-runs the gate — the correct coupling, since deleting a paragraph
|
|
8136
|
+
is exactly how this assertion goes from green to red, and without it the most
|
|
8137
|
+
likely red would arrive a tier late. The existing `gate-sdk/SPEC.md` literal is
|
|
8138
|
+
**kept rather than folded into the new token**: it is assertion C's
|
|
8139
|
+
conservation-doc coupling, and a consumer whose `GATE_SDK_KIT_DIRS` does not
|
|
8140
|
+
name gate-sdk would otherwise lose it silently. Two couples for two assertions,
|
|
8141
|
+
stated so the redundancy does not read as an oversight. The widening's direction
|
|
8142
|
+
is *wider*, so the monotonicity argument below does not bind on it; what it costs
|
|
8143
|
+
is one section read per held declaration, bounded by the held tier.
|
|
8144
|
+
|
|
8145
|
+
**Why it folds in here rather than shipping as its own gate.** Assertion C is
|
|
8146
|
+
the precedent and it is exact: C asserts that a *SPEC document records a
|
|
8147
|
+
disposition* for every substrate-sensitive member — the same prose-placement
|
|
8148
|
+
claim over the same declaration set, in the same gate, read from the same
|
|
8149
|
+
two-positional usage. The refusal recorded at §check-gate-exemption-tasks, that
|
|
8150
|
+
slug liveness would give this gate a **queue-file** coupling it deliberately has
|
|
8151
|
+
none of, does not reach a SPEC coupling it already has. And the gate is
|
|
8152
|
+
permanently shell under exception class (a), so this widening raises no
|
|
8153
|
+
substrate question and adds no conservation row either.
|
|
8154
|
+
|
|
8155
|
+
**Its honest limit, stated rather than discovered.** The assertion holds
|
|
8156
|
+
*reachability*, not truth: a section could name the field and say nothing
|
|
8157
|
+
useful, and no gate can rule whether a ground is a good one. §When a gate earns
|
|
8158
|
+
its place bars a trivially-true proxy, and what clears this one is a measurement
|
|
8159
|
+
rather than an argument — two of the five live declarations failed it at the cut
|
|
8160
|
+
that landed it, so it is a real drift axis over a real corpus and not a
|
|
8161
|
+
heading-presence check. What stays human is the irreducibly semantic judgment
|
|
8162
|
+
alone. The count of held declarations whose ground was verified is on the clean
|
|
8163
|
+
line for that reason: a zero there in a tree that declares holds is the
|
|
8164
|
+
vacuous-pass tell, and its reader is the session choosing the next cohort cut.
|
|
8165
|
+
|
|
8166
|
+
**It must not acquire a non-zero floor**, stated because the vacuity instinct
|
|
8167
|
+
would add one: a tree with no held member has nothing to ground, and a floor
|
|
8168
|
+
would red every consumer that never declared a hold. The anti-vacuity signal is
|
|
8169
|
+
the emitted count, not a refusal.
|
|
7579
8170
|
|
|
7580
8171
|
It stays a **shell** gate: a gate that audits the port is not a gate the port
|
|
7581
8172
|
may consume, or assertion B would be checking a roster through the very binary
|
|
@@ -7587,7 +8178,12 @@ where each is proved is what keeps the split from reading as a hole. The
|
|
|
7587
8178
|
`good/`+`bad/` pair covers **descriptors and a binary** (parity both ways, the
|
|
7588
8179
|
reference-only allowance, each refusal, and every one of assertion G's clauses —
|
|
7589
8180
|
a descriptor carrying either field, a bare one with no payload, a declaration
|
|
7590
|
-
carrying two of one field, and a declaration carrying one of each).
|
|
8181
|
+
carrying two of one field, and a declaration carrying one of each). It covers
|
|
8182
|
+
**assertion H** in the same invocations: a held declaration whose pointed-at
|
|
8183
|
+
section names the field clears, one whose section does not reds, and one with no
|
|
8184
|
+
`# spec:` header field at all reds. The SPEC surface lives inside the case tree
|
|
8185
|
+
and each pointer is case-relative, so the pair proves the resolution rather than
|
|
8186
|
+
the live tree's accident of already being green. The bespoke
|
|
7591
8187
|
`gate-tests/check-gate-substrate-parity.test.sh` holds the rest, each case a
|
|
7592
8188
|
sandbox rather than a live tree: **no descriptors, binary present** — the
|
|
7593
8189
|
post-revert tree, where the roster half is the only live half; **no descriptors,
|
|
@@ -9791,8 +10387,18 @@ and for the same reason the two form one cohort: the declaration path is
|
|
|
9791
10387
|
proved byte-identical to the deleted shell gate. One consequence is worth naming
|
|
9792
10388
|
because the deleted file was where it was recorded: the shell implementation
|
|
9793
10389
|
required GNU awk's 3-argument `match()`, and the compiled one requires no awk at
|
|
9794
|
-
all. The residual `gawk` floor
|
|
9795
|
-
§check-action-run-shell's
|
|
10390
|
+
all. The residual `gawk` floor was §check-gate-assertions' and, on its own
|
|
10391
|
+
declaration's word, §check-action-run-shell's — never this gate's. **Both halves
|
|
10392
|
+
of that residue are now gone, and the second was measured rather than inherited**:
|
|
10393
|
+
the eighth budget batch ported §check-gate-assertions, and probing
|
|
10394
|
+
§check-action-run-shell under a `gawk --posix` shim ran it **clean**, so its
|
|
10395
|
+
`Requires GNU awk (3-arg match)` header was stale — deleted at that iteration's
|
|
10396
|
+
close — and it holds no gawk extension at
|
|
10397
|
+
all. What is *not* changed on that finding is the published requirement:
|
|
10398
|
+
`awk (GNU)` is an element of `context-kit/lib/toolfloor.sh`'s probe roster held to
|
|
10399
|
+
docs/install.md §Requirements by `check-install-toolchain`, and narrowing a
|
|
10400
|
+
user-facing requirement is filed rather than taken in passing
|
|
10401
|
+
(§check-gate-assertions).
|
|
9796
10402
|
|
|
9797
10403
|
### check-commit-msg
|
|
9798
10404
|
|
|
@@ -9882,6 +10488,7 @@ the gate is emitted into the commit-msg hook.
|
|
|
9882
10488
|
|
|
9883
10489
|
### check-tree-terms
|
|
9884
10490
|
|
|
10491
|
+
`checks/check-tree-terms.gate` (`precommit`, binary-dispatched).
|
|
9885
10492
|
Invariant: no tracked file matches the same banned-pattern set — the
|
|
9886
10493
|
tracked-files half of the leak ban, sharing one pattern source with
|
|
9887
10494
|
check-commit-msg (`gate_msg_pattern_files`) so the two halves cannot drift
|
|
@@ -9897,6 +10504,133 @@ missing required tracked pattern file, is fail-closed (exit 2). When the pattern
|
|
|
9897
10504
|
set is empty the tree is unchecked (clean) — the fail-closed obligation is on a
|
|
9898
10505
|
missing file, not an empty one.
|
|
9899
10506
|
|
|
10507
|
+
**The port owes no bridge work on the pattern-file half, and the two halves read
|
|
10508
|
+
one resolution rather than two copies of it.** `GATE_MSG_PATTERN_FILES` and
|
|
10509
|
+
`GATE_MSG_PATTERN_FILES_LOCAL` already crossed the config bridge for
|
|
10510
|
+
check-commit-msg, and this member declares the same two knobs and reads the same
|
|
10511
|
+
resolved arrays — through the same two helpers, which the sibling module exports
|
|
10512
|
+
rather than this one re-deriving. `gate_msg_pattern_files` is one function in the
|
|
10513
|
+
shell precisely so the two halves of the leak ban cannot drift apart, and a
|
|
10514
|
+
second compiled copy of that resolution would reinstate the drift the shared
|
|
10515
|
+
helper exists to prevent. **No pattern is baked into the crate**: the roster is
|
|
10516
|
+
consumer config on the §check-graph pattern, and a kit literal carrying a
|
|
10517
|
+
consumer's vocabulary publishes it (CLAUDE.md §The provenance seam).
|
|
10518
|
+
|
|
10519
|
+
**The cheap-filter-then-match split survives the port.** A fork-free per-path
|
|
10520
|
+
filter runs first — prune dirs, the `msg-patterns` prefix, the regular-file test
|
|
10521
|
+
— and the pattern set is compiled **once for the whole walk** rather than per
|
|
10522
|
+
file. A port recompiling per file would be the regression the split exists to
|
|
10523
|
+
prevent, and it is stated here because a compiled substrate makes the wrong shape
|
|
10524
|
+
cost nothing visible.
|
|
10525
|
+
|
|
10526
|
+
**Three behaviors the shell form held by accident of `grep` are ruled, not
|
|
10527
|
+
inherited.**
|
|
10528
|
+
|
|
10529
|
+
- **A GNU escape in a consumer's pattern file is refused, loudly.** The crate's
|
|
10530
|
+
POSIX ERE engine (§The POSIX ERE matcher) refuses `\b`, `\s`, `\w` and the rest
|
|
10531
|
+
of the GNU set **by name** at compile, which this member turns into exit 2 — a
|
|
10532
|
+
pattern the engine cannot honour must never read as a tree with nothing in it.
|
|
10533
|
+
The divergence is not this member's to invent: it already existed on the same
|
|
10534
|
+
pattern set through the ported check-commit-msg. What changes is that it is
|
|
10535
|
+
stated, so a consumer meeting the exit-2 has its cause. The POSIX ERE spelling
|
|
10536
|
+
of a word boundary is `(^|[^A-Za-z])term([^A-Za-z]|$)`, and docs/ddd.md's
|
|
10537
|
+
worked adoption example is written in it for that reason.
|
|
10538
|
+
- **A banned shape inside a tracked binary yields a path-only record, and reds.**
|
|
10539
|
+
The compiled form detects the NUL byte, matches on the decoded text and emits
|
|
10540
|
+
the path **alone** — no `:lineno:line` suffix — rather than dumping lossily
|
|
10541
|
+
decoded bytes: a binary's bytes can carry no newline for a megabyte and can
|
|
10542
|
+
carry control characters, either of which corrupts the `path:lineno:line`
|
|
10543
|
+
grammar the red output rests on, and the record's purpose — naming a line to
|
|
10544
|
+
edit — does not exist for a binary anyway. **This is a hole closed, not a
|
|
10545
|
+
format choice**, and the measurement is why it is recorded rather than assumed:
|
|
10546
|
+
GNU grep from 3.5 writes `grep: <path>: binary file matches` to **stderr**, and
|
|
10547
|
+
the shell form captured stdout only, so a leak inside a tracked binary reported
|
|
10548
|
+
`TREE-TERMS: clean` and exited 0. Dead on this tree, which tracks no binaries;
|
|
10549
|
+
live in a consumer's, which is exactly why it is ruled here rather than
|
|
10550
|
+
discovered there. **It is live on this tree**, which the ruling did not expect
|
|
10551
|
+
and the measurement found: `installer_smoke`'s artifact legs commit the gate
|
|
10552
|
+
binary into a scratch consumer's tree at `scripts/checkwright-gates`, so this
|
|
10553
|
+
arm reads a real consumer's real artifact on every run of that suite. What it
|
|
10554
|
+
caught there is **fixed at its source rather than exempted here**: the build
|
|
10555
|
+
remaps the builder's paths out of the artifact and verifies the result against
|
|
10556
|
+
this same banned set (§build-native), so what ships carries no such path. The
|
|
10557
|
+
arm stands unnarrowed, which is the outcome worth recording — this guard's
|
|
10558
|
+
first live encounter removes a leak rather than earning an exemption.
|
|
10559
|
+
- **Its fail-closed arms are discharged where they are held**, by
|
|
10560
|
+
§check-gate-fail-closed across the whole registry rather than banked as this
|
|
10561
|
+
member's own coverage, on §Fixture-pair discipline's terms. **What is not an
|
|
10562
|
+
arm, stated because it is a narrowing against the shell form:** an unreadable
|
|
10563
|
+
tracked file is *skipped* by the content match rather than failing it closed,
|
|
10564
|
+
so a path the walk selects and the read cannot open leaves the scan silently
|
|
10565
|
+
short. The shell form failed closed there.
|
|
10566
|
+
|
|
10567
|
+
**The authoring rule this member's own module carries, and it runs both ways.**
|
|
10568
|
+
`native/src/gates/tree_terms.rs` is a tracked file **inside the corpus this gate
|
|
10569
|
+
scans as content**, so a banned shape spelled literally in its source or its unit
|
|
10570
|
+
tests reds the gate against itself; the module **composes** such a shape at
|
|
10571
|
+
runtime instead. `native/src/gates/commit_msg.rs` already does this and names
|
|
10572
|
+
this gate as the reason. The constraint runs the **opposite** way for everything
|
|
10573
|
+
under `gate-tests/`, which is pruned and may spell banned shapes freely — and
|
|
10574
|
+
does, because that is what makes the pair's skip cases prove a skip rather than
|
|
10575
|
+
an absence. Getting the two directions backwards is the plausible error, which is
|
|
10576
|
+
why both are stated. The module's own test inputs come from the **fixture**
|
|
10577
|
+
pattern files, never from the consumer's tracked list: compiling a live pattern
|
|
10578
|
+
into the crate would be a consumer-config literal no gate catches, since the
|
|
10579
|
+
leaked string is not itself a banned term and this very gate cannot see it.
|
|
10580
|
+
|
|
10581
|
+
**Criterion 4 binds, and the price is paid: the pair was widened before the
|
|
10582
|
+
port.** Its corpus is `git ls-files` over the whole tracked tree, pruned only by
|
|
10583
|
+
the shared prune dirs and the `msg-patterns` basenames, so **every** registry
|
|
10584
|
+
member's declaration path lies inside the corpus it scans as content — criterion
|
|
10585
|
+
4's predicate verbatim, and reached through the **walk** rather than the trigger
|
|
10586
|
+
field, which is `couples=scripts/msg-patterns.list` and selects no declaration at
|
|
10587
|
+
all (§The port-candidate criteria, whose couple-clears-walk-binds register this
|
|
10588
|
+
member joins). The pair stood at two of twelve control arms and was widened first
|
|
10589
|
+
in three directions: `good/` gained a pruned-directory file, a `msg-patterns.list`
|
|
10590
|
+
and a `msg-patterns.local.list` — the second proving the self-exemption is a
|
|
10591
|
+
prefix glob and not an exact-name match — and a dangling symlink whose own blob
|
|
10592
|
+
content is a banned shape, each carrying a banned shape so its skip is proved by
|
|
10593
|
+
**greenness** rather than by absence; `good/patterns.list` gained a blank line and
|
|
10594
|
+
the live shapes the fixture omitted, including the only anchored one, whose ERE
|
|
10595
|
+
anchoring a port can silently drop; and `bad/` gained a second leaking file and
|
|
10596
|
+
one carrying two leaks on a line plus two on identical separate lines, which pins
|
|
10597
|
+
the record grammar, one record per matching *line* however many patterns hit it,
|
|
10598
|
+
and no dedup.
|
|
10599
|
+
|
|
10600
|
+
**Two facts about the fixture corpus fixed that shape, and a bespoke
|
|
10601
|
+
`check-tree-terms.test.sh` carries the residue.** A case dir is **not** its own
|
|
10602
|
+
repository: `git ls-files` inside one returns the **outer** repo's index scoped to
|
|
10603
|
+
that subdir, printed relative to cwd. So the non-repository arm is structurally
|
|
10604
|
+
unreachable from a case dir and takes the unit-test arm; the `gate-tests` prune
|
|
10605
|
+
never fires on a case's emitted paths, which is why the pair works at all and why
|
|
10606
|
+
it is inert under the port; and a widening file that is written but not `git
|
|
10607
|
+
add`ed is **invisible to the gate**, so an untracked case silently under-covers.
|
|
10608
|
+
The test file takes what remains: the non-repository fail-close, the
|
|
10609
|
+
missing-required-pattern-file fail-close and with it the entire env-knob
|
|
10610
|
+
resolution path — which both cases short-circuit by passing a positional — the
|
|
10611
|
+
empty-pattern-set *tree unchecked* clean, the binary path-only record, and the
|
|
10612
|
+
record **order** a pair cannot assert, each `expect.txt` line being an independent
|
|
10613
|
+
substring test.
|
|
10614
|
+
|
|
10615
|
+
**The parity run's verdict, recorded as the register §The port-candidate criteria
|
|
10616
|
+
sets for a member binding criterion 4.** Assertion A forbids a descriptor and a
|
|
10617
|
+
script coexisting in one resolve dir, so the cross-substrate comparison ran on
|
|
10618
|
+
the **pre-descriptor** tree. Five comparisons — both fixture cases, the live tree
|
|
10619
|
+
with no argument, a live subdirectory scan root, and the knob-resolved pattern
|
|
10620
|
+
path — agreed on stdout, stderr and exit code in every one. **Parity is proved
|
|
10621
|
+
over the pair**, the only corpus inert under the port; the three live-tree arms
|
|
10622
|
+
are **no disagreement found on the pre-descriptor tree**, never parity proved.
|
|
10623
|
+
The two ruled behaviors above are deliberate divergences and sit outside that
|
|
10624
|
+
claim: the GNU-escape refusal and the binary path-only record are each a place
|
|
10625
|
+
the compiled side is the better one, and each was probed on both substrates
|
|
10626
|
+
rather than reasoned about.
|
|
10627
|
+
|
|
10628
|
+
**The verdict is priced, not held**, and this member declares no `# port-until:`
|
|
10629
|
+
on that ground. Criterion 4 orders a port and prices it; it has never made a
|
|
10630
|
+
member un-takeable, five members having bound it and ported by widening their
|
|
10631
|
+
pairs, so a field whose meaning is *not takeable now* is the wrong instrument for
|
|
10632
|
+
a fixture widening.
|
|
10633
|
+
|
|
9900
10634
|
### check-template-copy-parity
|
|
9901
10635
|
|
|
9902
10636
|
Invariant: a kit template and its vendored consumer copy agree on their
|