|
Download doc/REASONS.md from tailot/lingologos-thinkingpython: direct link, hf CLI and curl.
- Browser
- Download file 3.73 kB
-
https://huggingface.co/datasets/tailot/lingologos-thinkingpython/resolve/main/doc/REASONS.md
- Command line
-
hf download hf://datasets/tailot/lingologos-thinkingpython/doc/REASONS.md
-
curl -L -o REASONS.md https://huggingface.co/datasets/tailot/lingologos-thinkingpython/resolve/main/doc/REASONS.md
3.73 kB
| # Reason codes | |
| Every refusal, warning and gate failure this bundle reports is one code from the registry | |
| below. The registry is `lingologos_thinkingpython/reasons.py`; this file describes it and | |
| is checked against it by `tests/test_reasons.py`, which scans the package, the nodes and | |
| the tools for an all-caps literal that is not registered. A code that is not in the | |
| registry cannot be emitted, and a code in the registry that no path emits fails the same | |
| test only if the literal never appears -- the scan is one-directional on purpose, so an | |
| unused constant is not an error but an undocumented emission always is. | |
| Kernel codes are not restated here. When a kernel is present its codes are imported from | |
| the kernel and pass through unchanged. | |
| ## Session and node codes | |
| | Code | Who raises it | What it means | | |
| |---|---|---| | |
| | `NODE_TIMEOUT` | orchestrator | A node process exceeded its budget; the run is not reported as verified. | | |
| | `NONSENSE_REPLAY` | arbiter | A replayed transcript does not re-derive the verdict it carries. | | |
| | `CHECKER_ABSTAIN` | gate_checker | A checker could not decide, so assurance cannot rise to its top value. | | |
| | `NOT_UNDERSTOOD` | intent | No frame scored above `min_score`; the request is refused, not guessed. | | |
| | `AMBIGUOUS_TARGET` | intent | Two frames scored within `clarify_margin`; the run stops and asks. | | |
| | `ALREADY_APPLIED` | executor | The edit is already in the source; nothing is written, nothing is claimed. | | |
| | `PROTECTED_PATH` | executor | The target path is outside what the workspace admits. | | |
| | `LINKED_PATH_IN_WORKSPACE` | preflight/executor | A path inside the workspace resolves through a link. | | |
| | `NO_TEST_ANCHOR` | planner | No test file exists to lock the intended change. | | |
| | `ASSERTION_REMOVED` | gate_checker | The projected source has fewer `assert` statements than the original. | | |
| | `OUT_OF_CATALOG` | intent | The request maps to no catalog entry: outside the published contract. | | |
| | `NO_MATCH` | locator | The named symbol is not in the workspace index. | | |
| | `NO_EDIT` | planner | The entry matched but produced no edit for this file. | | |
| | `SEARCH_NOT_FOUND` | executor | The edit's search block is not byte-present in the target. | | |
| ## Preflight codes | |
| Raised by `preflight.admit` before any node runs, on the workspace itself. | |
| | Code | What it means | | |
| |---|---| | |
| | `NO_TEST_FILE` | The project carries no test suite, so no change can be locked. | | |
| | `TAB_INDENTED_TARGET` | The target mixes tab indentation; the edit pairs assume spaces. | | |
| | `CRLF_TARGET` | The target file has CRLF line endings. | | |
| | `NOT_ASCII_TARGET` | The target file is not ASCII, so byte-exact edit pairs are unsafe. | | |
| | `DYNAMIC_REACH` | The target is reached through dynamic imports or `exec`. | | |
| | `GENERATED_TARGET` | The target looks generated, so an edit there is not maintainable. | | |
| ## Gate codes | |
| Raised by `tools/run_gates.py` and the entry gates. | |
| | Code | What it means | | |
| |---|---| | |
| | `PAIR_DISHONEST` | An edit pair claims a change its test does not lock, or locks a change the edit does not make. | | |
| | `SHAPE_STILL_PRESENT` | The edit ran but the unwanted shape is still in the projected source. | | |
| | `SUITE_RED` | The suite of the workspace is not green after the change. | | |
| | `LEXICON_INCOMPLETE` | A variety file is missing a required key or a frame has no phrase. | | |
| | `CATALOG_INTEGRITY` | An entry has no rule, no test, or no declared refusals. | | |
| | `CATALOG_CONFLICT` | Two entries claim the same symbol with no declared policy. | | |
| | `CONFINEMENT` | Something outside `datasets/thinkingpython/` moved. | | |
| Status words (`VERIFIED`, `REFUSED`, `PASS`, `FAIL`, `GREEN`, `ALL_GATES_PASS`, ...) are | |
| verdicts and gate labels, not reason codes, and are listed as such in the test. | |