State the mission: maintain an existing project on plain requests; add admission codes and the maintenance demo
Browse filesFiles changed (2)
- README.md+5-2
- SPECIFICATION.md+53-3
18 unmodified lines192021222324254 unmodified lines3031323334353618 unmodified linesThis folder carries the **specification** of the thinking-python bundle: an N-agent topologyand the dataset that turn free natural-language text about Python code into a verified changein a Python workspace. The specification is published first, before any code, so the contractcan be reviewed and implemented independently.The one file here is [SPECIFICATION.md](SPECIFICATION.md). It is normative: where code and4 unmodified lines| Section | Subject ||---|---|| 0 | Confinement: the programmer works only inside `datasets/thinkingpython/`, enforced by code || 1-2 | The three claims the bundle publishes, and the vocabulary || 3 | The 7-node topology: `intent -> locator -> planner -> executor -> {gate_checker, adversary} -> arbiter`, with only `intent` allowed to be non-deterministic || 3.1 | Compliance with the sibling bundles: the `python tools/ask.py` contract, the throwaway workspace, `MultiInstanceOrchestrator` used read-only, exit codes, transcript re-derivation of the verdict || 4 | An extensible catalog with an open fallback: GoF patterns, Fowler refactorings, development methodologies |18 unmodified lines192021222324252627284 unmodified lines3334353637383918 unmodified linesThis folder carries the **specification** of the thinking-python bundle: an N-agent topologyand the dataset that turn free natural-language text about Python code into a verified changein a Python workspace. The mission it commits to is narrow on purpose: **maintaining anexisting Python project on plain-language requests** from someone who cannot name thetransformation. Authoring a project from a sentence is outside the contract, and section 1.1says so. The specification is published first, before any code, so the contractcan be reviewed and implemented independently.The one file here is [SPECIFICATION.md](SPECIFICATION.md). It is normative: where code and4 unmodified lines| Section | Subject ||---|---|| 0 | Confinement: the programmer works only inside `datasets/thinkingpython/`, enforced by code || 1-2 | The three claims the bundle publishes, the mission (maintaining an existing project on plain-language requests, not authoring one), and the vocabulary || 3 | The 7-node topology: `intent -> locator -> planner -> executor -> {gate_checker, adversary} -> arbiter`, with only `intent` allowed to be non-deterministic || 3.1 | Compliance with the sibling bundles: the `python tools/ask.py` contract, the throwaway workspace, `MultiInstanceOrchestrator` used read-only, exit codes, transcript re-derivation of the verdict || 4 | An extensible catalog with an open fallback: GoF patterns, Fowler refactorings, development methodologies |
123461 unmodified lines666768697071404 unmodified lines4764774784794804819 unmodified lines49149249349449549649749849950016 unmodified lines517518519520521522# LingoLOGOS thinking-python - Specification of the bundleStatus: draft 1, normative. This file is the contract a programmer implements. Where thisfile and code disagree, the code is wrong until this file is amended in the same change.61 unmodified linesPython, or any benchmark over real repositories. Coverage statements name theirdenominator, which is a fixture of this folder.---## 2. Vocabulary used by this specification404 unmodified linesadded by a new catalog entry is added to the registry in the same change; a code raised byno rule fails `self_lint`.---## 10. Layout of the folder9 unmodified linesintents/ locators/ planners/ catalog/ steps/ gates/ session.py cli.py reasons.pyschemas/ intent, target, plan, step, edit pair, catalog entryfixtures/lab/ the planted laboratory: one shape per entry, plus one to refusecorpus/ L1..L5 plus adversarial, generated onlytools/ ask.py (the sibling compliant entry point, section 3.1),build_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_lint16 unmodified lines| 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 |Definition of done for any programmer task: the confinement check, `pytest`,`run_gates.py` and `build_corpus.py --check` all pass, and this specification is updated123461 unmodified lines66676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114404 unmodified lines5195205215225235245255265275285299 unmodified lines53954054154254354454554654754854916 unmodified lines566567568569570571572# LingoLOGOS thinking-python - Specification of the bundleStatus: draft 1, normative. This file is the contract a programmer implements. Where thisfile and code disagree, the code is wrong until this file is amended in the same change.61 unmodified linesPython, or any benchmark over real repositories. Coverage statements name theirdenominator, which is a fixture of this folder.### 1.1 Mission: maintain an existing project on simple requestsThe mission this bundle commits to, stated narrowly on purpose:> A person who cannot name the transformation takes an **existing** Python project with a> working test suite, says in plain words what bothers them, and the bundle carries that> change through verification.This is a maintenance mission, not an authoring mission. The user does not need to know whata strategy pattern is; the gate protects them from damage they could not foresee.The mission excludes, and the specification does not pretend otherwise:- **Greenfield work.** The unit of output is an edit pair on a file that exists (section 5). Aproject that does not exist has no prior behaviour, and without a prior behaviour there isno oracle: equivalence cannot be checked, so no verdict is meaningful. A bundle that"implements a project from a sentence" is a different system, and this one does not becomeit by adding features.- **Design decisions.** Where the boundaries are, which data, which interface: those arechoices, not transformations, and no simple request carries them.- **Unbounded sessions.** The bundle verifies each step, not the direction of a hundredsteps. Coherence across a session belongs to the person asking.Admission of a workspace is therefore checked **before** any node runs, and each failedcondition is a named reason code, not a crash or a silent degradation:| Condition | Reason code ||---|---|| no runnable test suite for the touched files | `NO_TEST_FILE` || mixed or non-space indentation in the target | `TAB_INDENTED_TARGET` || CRLF in the target | `CRLF_TARGET` || non-ASCII in the target path or content handling | `NOT_ASCII_TARGET` || symbol reached only through dynamic import or `getattr` | `DYNAMIC_REACH` || target is generated code (by a build step, protobuf, Cython stub) | `GENERATED_TARGET` |A refusal on these codes is **correct behaviour** and is counted as a success in theevaluation, never as a failure to fix. What the bundle must do honestly is report the codesin the coverage statement, so the size of the unmaintainable part of a workspace is visiblerather than hidden behind a green number.For this mission there is one deliverable beyond the gates, and it is the one that shows themission works or does not: **the maintenance demo** (see `D8` in section 11).---## 2. Vocabulary used by this specification404 unmodified linesadded by a new catalog entry is added to the registry in the same change; a code raised byno rule fails `self_lint`.The preflight group carries the admission codes of section 1.1 — `NO_TEST_FILE`,`TAB_INDENTED_TARGET`, `CRLF_TARGET`, `NOT_ASCII_TARGET`, `DYNAMIC_REACH`,`GENERATED_TARGET` — raised by the workspace check that runs before any node, and counted ascorrect behaviour in `results/coverage.json`.---## 10. Layout of the folder9 unmodified linesintents/ locators/ planners/ catalog/ steps/ gates/ session.py cli.py reasons.pyschemas/ intent, target, plan, step, edit pair, catalog entryfixtures/lab/ the planted laboratory: one shape per entry, plus one to refusefixtures/seed_project/ the maintenance demo project of section 1.1, suite greencorpus/ L1..L5, adversarial, maintenance.jsonl, generated onlytools/ ask.py (the sibling compliant entry point, section 3.1),build_corpus.py, train_intent.py, run_gates.py, measure_coverage.py,run_maintenance.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_lint16 unmodified lines| 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 || D8 | maintenance demo of section 1.1 | `fixtures/seed_project/`: a package of `20-30` files with a green suite; `corpus/maintenance.jsonl` carries `>= 30` simple requests in plain words, each with an expected verdict; `tools/run_maintenance.py` replays them in order on the seed and prints the tally. Acceptance: `>= 20` land `VERIFIED`, **every** refusal names a code from section 1.1, and the suite of the seed is green after the whole run. The demo is reported as measured, including the refusals; a run with fewer than 20 verified is a documented negative result, not a reason to move the threshold |Definition of done for any programmer task: the confinement check, `pytest`,`run_gates.py` and `build_corpus.py --check` all pass, and this specification is updated
README.md+5-2
SPECIFICATION.md+53-3