Add language-free plan rule, contrastive rows, source provenance, worst-variety reporting
Browse filesFiles changed (2)
- README.md+1-1
- SPECIFICATION.md+33-6
36 unmodified lines3738394041424336 unmodified lines| 5 | The edit-pair invariant: no source edit lands without a test that locks it || 6 | The dataset in five layers plus an adversarial set, generated and re-derivable || 6.4 | No off-the-shelf language model: the intent node runs on the catalog's own surface forms plus an optional small classifier trained from the corpus || 6.5 | The six language varieties of the genesis topology: `ar, en, es, hi, it, zh`, declared and never inferred || 7-9 | Interfaces, self-applied development methodology, reason-code registry || 10-12 | Folder layout, acceptance criteria D0-D7, explicit prohibitions |36 unmodified lines3738394041424336 unmodified lines| 5 | The edit-pair invariant: no source edit lands without a test that locks it || 6 | The dataset in five layers plus an adversarial set, generated and re-derivable || 6.4 | No off-the-shelf language model: the intent node runs on the catalog's own surface forms plus an optional small classifier trained from the corpus || 6.5 | The six language varieties of the genesis topology: `ar, en, es, hi, it, zh`, declared and never inferred, with a language-free plan and per-variety numbers || 7-9 | Interfaces, self-applied development methodology, reason-code registry || 10-12 | Folder layout, acceptance criteria D0-D7, explicit prohibitions |
121 unmodified lines122123124125126127180 unmodified lines30830931031131231339 unmodified lines353354355356357358359360361362108 unmodified lines4714724734744754764778 unmodified lines486487488489490491492493121 unmodified linesfirst is answered `CHECKER_ABSTAIN`. The retry loop is bounded by `maxTurns`.5. **Nothing is committed by a node.** Only the session layer writes, in one transaction,after the arbiter verdict clears the floor.---180 unmodified linesthat ask to delete a test to become green, instructions that name a file that does notexist, prompt-injection text inside a docstring of the target file. Expected answer forevery row is a refusal naming a code; the bundle must never be talked out of a gate.### 6.3 Coverage statement39 unmodified linesquestions come from the `labels` block of that variety. What stays English ASCII always:reason codes, verdict names, JSON keys, file paths, symbol names, the prose of this folder,per `AGENTS.md` section 2.6. **Symmetric corpus, measured per variety.** Section 6.2 requires the six varieties perentry. `results/evaluation.json` reports top-1, out-of-scope refusal and clarification **pervariety**, and the card quotes the worst variety, not the average. A variety that is carriedbut not measured is a defect, not a feature.7. **No language corpus is borrowed from another bundle.** The lexicons of this bundle live inthis folder, derived from its own catalog. It reuses the *contract* of the gateway's lexiconand the same six codes; it does not read another bundle's lexicon files, and another108 unmodified linesbuild_corpus.py, train_intent.py, run_gates.py, measure_coverage.py,selfcheck_confine.py, publish_dataset.pytopology.json nodes/<id>/ agents/<id>_agent.pytests/ one file per module, confinement test, fuzz, self_lintresults/ gates.json, coverage.json, evaluation.json```8 unmodified lines| D2 | corpus L1-L5 + adversarial | `build_corpus.py --check` re-derives every byte; `>= 7200` L1 rows, all six varieties per entry || D3 | 7-node topology as processes, behind `tools/ask.py` | `tests/test_topology.py` runs it as subprocesses through `MultiInstanceOrchestrator` and checks budgets; `tests/test_ask.py` asserts that `--in-process` and the orchestrated path agree on status, assurance and reasons || D4 | edit pair + honesty gate | pair-honesty gate passes for every entry || D5 | evaluation | on the `eval` split, **per variety and on the worst variety**: top-1 entry `>= 0.85`, out-of-scope refusal `>= 0.90`, zero run commits an unverified change || D5b | lexicons of the six varieties | `lexicon` gate: every file validates its required keys, no run reads a variety without a file, replies are worded in the declared variety || D6 | self-methodology | TDD order visible in history, `>= 90%` of package functions entered by the suite || D7 | card and gates | `run_gates.py` prints CONFIRMED for every gate, digest embedded |121 unmodified lines122123124125126127128129130131132133134135180 unmodified lines31631731831932032132232332432532632732832933033133233333439 unmodified lines374375376377378379380381382383384385386387108 unmodified lines4964974984995005015025038 unmodified lines512513514515516517518519520121 unmodified linesfirst is answered `CHECKER_ABSTAIN`. The retry loop is bounded by `maxTurns`.5. **Nothing is committed by a node.** Only the session layer writes, in one transaction,after the arbiter verdict clears the floor.6. **The plan is language-free.** The intermediate representation passed from `intent` to`locator`, `planner` and `executor` carries no word of any human variety: catalog ids,symbol names, paths, and the `--lang` code as a tag only. Surface forms of a variety are*views* consumed at the `intent` boundary and never reach a downstream node. Consequence,and it is a rule, not a style preference: adding a seventh variety adds a lexicon file anda corpus slice, and **changes no rule, no frame matching downstream, and no gate**. A test(`tests/test_language_free_plan.py`) asserts that the same plan hash is produced for thesix paraphrases of one entry, one per variety.---180 unmodified linesthat ask to delete a test to become green, instructions that name a file that does notexist, prompt-injection text inside a docstring of the target file. Expected answer forevery row is a refusal naming a code; the bundle must never be talked out of a gate.6. **Contrastive rows are a mandatory class**, `intent_tags` carrying `contrastive`, and theyare the rows that grow the system. For each variety, at least one row per entry where aword that marks the entry in that variety also has another function in the same sentence(a preposition, a noun, an operator word): the Spanish `entre` and the Italian `per` of thegenesis solve frames are the existing precedent. The expected answer for such a row iseither the correct entry or a `Clarify` that names the two candidates, never a silent wrongpick. They are scored separately in `results/evaluation.json` under `contrastive`.7. **Text taken from people carries provenance and is split by source.** Where an utteranceis harvested from human writing rather than rendered from a template, the row records thesource (origin, licence, whether the text was adapted) in `source`, and the 70/15/15 splitis applied **by source and by author before it is applied by row**: fifty sentences from oneperson on one pattern are one observation, and one person's sentences never straddle twosplits. A source without a licence line is not admitted to the corpus.### 6.3 Coverage statement39 unmodified linesquestions come from the `labels` block of that variety. What stays English ASCII always:reason codes, verdict names, JSON keys, file paths, symbol names, the prose of this folder,per `AGENTS.md` section 2.6. **Symmetric corpus is a gate, not a goal; the number reported is the worst variety.**Section 6.2 requires the six varieties per entry so that no variety is silently forgotten,and the requirement ends there. Uniform *shape* across varieties is not uniform*capability*: with a template-rendered corpus the per-variety number only measures how manysurface forms were written by hand for that variety. So `results/evaluation.json` reportstop-1, out-of-scope refusal, clarification and `contrastive` **per variety**, plus the**spread** between best and worst variety, and the card quotes the worst variety and thespread, never the average. A variety that is carried but not measured is a defect.7. **No language corpus is borrowed from another bundle.** The lexicons of this bundle live inthis folder, derived from its own catalog. It reuses the *contract* of the gateway's lexiconand the same six codes; it does not read another bundle's lexicon files, and another108 unmodified linesbuild_corpus.py, train_intent.py, run_gates.py, measure_coverage.py,selfcheck_confine.py, publish_dataset.pytopology.json nodes/<id>/ agents/<id>_agent.pytests/ one file per module, confinement test, language-free-plantest, fuzz, self_lintresults/ gates.json, coverage.json, evaluation.json```8 unmodified lines| D2 | corpus L1-L5 + adversarial | `build_corpus.py --check` re-derives every byte; `>= 7200` L1 rows, all six varieties per entry || D3 | 7-node topology as processes, behind `tools/ask.py` | `tests/test_topology.py` runs it as subprocesses through `MultiInstanceOrchestrator` and checks budgets; `tests/test_ask.py` asserts that `--in-process` and the orchestrated path agree on status, assurance and reasons || D4 | edit pair + honesty gate | pair-honesty gate passes for every entry || D5 | evaluation | on the `eval` split, **per variety and on the worst variety**: top-1 entry `>= 0.85`, out-of-scope refusal `>= 0.90`, `contrastive` `>= 0.70`, zero run commits an unverified change; the card also states the **spread** between best and worst variety || D5b | lexicons of the six varieties | `lexicon` gate: every file validates its required keys, no run reads a variety without a file, replies are worded in the declared variety || D5c | language-free plan | `tests/test_language_free_plan.py`: one entry in six varieties yields one identical plan hash; no human word of any variety appears in a downstream node payload || D6 | self-methodology | TDD order visible in history, `>= 90%` of package functions entered by the suite || D7 | card and gates | `run_gates.py` prints CONFIRMED for every gate, digest embedded |
README.md+1-1
SPECIFICATION.md+33-6