Repository navigation
docs(adr): S6 — the ontology describes the code, and the claims are now checked - #164
Merged
Merged
Conversation
…ow checked Closes #154; closes register C-67. Epic #148. ADR-012 twice described an intended end state as if it were the code: it called the manager 'the THIN UNFAOPostProcessorManager' when it was 636 lines holding two of everything, and 'the SINGLE pandas-aware module (unfao/extraction.py)' when pandas lived in three. Both drifted the same way — the ADR described where a migration was going, the migration stopped one step short, and nobody re-read it. Both claims are true again (manager 406 lines; pandas has exactly one importer, contract/enrichment.py). But being true is not the fix — being CHECKABLE is. Rewritten: - ADR-012's ontology table, against the three-package structure, with each category naming the package it lives in. New rows for the wire mechanism, artifact builders, external facts, launch declarations and the partner product — categories that existed in code but not in the ontology. - ADR-002's layering illustration, which still named unfao/extraction.py as the seam (deleted in #151), plus the one-way dependency rule the split establishes. - The manager CIC, which documented _historical_dataframe, LEGACY_FORECAST_FILTERS and a ForecastIdentityError that no longer exist. Four guards added to test_doc_accuracy.py: pandas has exactly one importer, views_pipeline_core has exactly one importer (the property that keeps C-40's blast radius one file wide), the manager stays under 450 lines, and contract/ does not import the partner. Each was MUTATION-TESTED — a deliberate violation introduced and confirmed to fail, then reverted. A doc test that cannot fail is not a test, and this repo has now been bitten twice by prose nobody could verify. The corrections are marked in place rather than quietly applied, so a reader of the old claims can see what changed and when. ruff clean; 301 passed, 5 known local pyarrow byte-parity failures. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Aug 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #154 · Epic #148 · Register C-67 closed
The problem
ADR-012 is what a clone's authors will read as the specification. Two of its claims were false, and both described exactly the structures a clone must decide about:
UNFAOPostProcessorManager"unfao/extraction.py)"Both drifted the same way: the ADR described where a migration was going, the migration stopped one step short, and nobody re-read it.
Both are true again — but that is not the fix
Manager is 406 lines; pandas has exactly one importer (
contract/enrichment.py). Being true is not the fix. Being checkable is.Rewritten
unfao/extraction.pyas the seam (deleted in S3 — Collapse the two extraction seams into one #151), plus the one-way dependency ruleunfao/ → contract/ → delivery/._historical_dataframe,LEGACY_FORECAST_FILTERSand aForecastIdentityErrorthat no longer exist.Corrections are marked in place, so a reader of the old claims can see what changed and when.
Four guards, each mutation-tested
tests/test_doc_accuracy.pynow checks: pandas has exactly one importer ·views_pipeline_corehas exactly one importer (the property keeping C-40's blast radius one file wide) · the manager stays under 450 lines ·contract/does not import the partner.I introduced a deliberate violation for each and confirmed it fails, then reverted:
A doc test that cannot fail is not a test, and this repo has now been bitten twice by prose nobody could verify. Same remedy that closed the C-48–C-55 ADR-013 series.
Verification
ruffclean · 301 passed, 41 xfailed · the 5 failures are the known local pyarrow byte-parity tests; CI authoritative.Register: 71 concerns, 26 open, 45 resolved.
🤖 Generated with Claude Code