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 lines373839404041424336 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 || 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 lines122123124125126127128129130131132133134135180 unmodified lines31631731831932032132232332432532632732832933033133233333439 unmodified lines374375376356357358359377378379380381382383384385386387108 unmodified lines4964974984744995005015025038 unmodified lines512513514489515516517518519520121 unmodified lines first 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 and a 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 the six paraphrases of one entry, one per variety.
---
180 unmodified lines that ask to delete a test to become green, instructions that name a file that does not exist, prompt-injection text inside a docstring of the target file. Expected answer for every 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 they are the rows that grow the system. For each variety, at least one row per entry where a word 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 the genesis solve frames are the existing precedent. The expected answer for such a row is either the correct entry or a `Clarify` that names the two candidates, never a silent wrong pick. They are scored separately in `results/evaluation.json` under `contrastive`.7. **Text taken from people carries provenance and is split by source.** Where an utterance is harvested from human writing rather than rendered from a template, the row records the source (origin, licence, whether the text was adapted) in `source`, and the 70/15/15 split is applied **by source and by author before it is applied by row**: fifty sentences from one person on one pattern are one observation, and one person's sentences never straddle two splits. A source without a licence line is not admitted to the corpus.
### 6.3 Coverage statement
39 unmodified lines questions 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 per entry. `results/evaluation.json` reports top-1, out-of-scope refusal and clarification **per variety**, and the card quotes the worst variety, not the average. A variety that is carried but not measured is a defect, not a feature.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 many surface forms were written by hand for that variety. So `results/evaluation.json` reports top-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 the spread, 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 in this folder, derived from its own catalog. It reuses the *contract* of the gateway's lexicon and the same six codes; it does not read another bundle's lexicon files, and another108 unmodified lines build_corpus.py, train_intent.py, run_gates.py, measure_coverage.py, selfcheck_confine.py, publish_dataset.py topology.json nodes/<id>/ agents/<id>_agent.py tests/ one file per module, confinement test, fuzz, self_lint tests/ one file per module, confinement test, language-free-plan test, fuzz, self_lint results/ 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 || 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