Repository navigation
Release: development → main — six months of the FAO delivery layer, first update since January - #168
Conversation
Governance: 11 ADRs (000-011), 2 CICs, risk register (24 concerns),
contributor protocols, logging standard, and hardened spatial protocol.
ADR-011 formalizes replacing the runtime mapper with a precomputed
lookup table based on FAO-confirmed area-majority requirement.
Tests: 73 passing tests (pytest, CI enabled) covering mapper
determinism, largest-overlap, admin assignment, cache equivalence,
null validation, and known bugs. Falsification test stubs document
8 rounds of Cluster B audits.
Code fixes:
- Re-enable null validation in _validate() (C-01)
- Remove global warnings.filterwarnings("ignore") (C-18/D-03)
- Add make_valid() to all three shapefile load methods (C-12/D-04)
- Add zero-area guards at all 7 overlap calculation sites (C-20)
- Add batch failure tracking to both enrichment methods (C-21)
- Add log-before-raise to 3 validation methods (C-19 partial)
- Replace hardcoded test description with enrichment timestamp (C-15)
- Clean up dead imports, dead variables, lint fixes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Falsification campaign (15 claims, 4 layers): - Layer 1 (understanding): 1 survived, 2 falsified (CIC-code drift) - Layer 2 (correctness): 4 survived (algorithm verified) - Layer 3 (test sufficiency): 2 contested, 3 falsified (regression/integration/E2E gaps) - Layer 4 (drift detection): 1 survived, 2 contested 11 falsification test stub files document every gap found. Risk register updated: C-12 Tier 1→2, Cluster F (CIC drift) added, Clusters A/C/D tagged contingent on ADR-011. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 tests verifying that enrich_dataframe_with_pg_info output matches the manager's filter_cols: all 9 columns present, no nulls for valid GIDs, correct types (numeric admin codes, float coordinates, valid ISO codes), row count preserved, and enriched output passes validation. Closes #4 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
test_enrichment_adds_expected_columns now checks all 9 metadata columns (was 5). Added: pg_xcoord, pg_ycoord, admin1_gaul0_code, admin1_gaul0_name. A rename or removal of any column now fails a test. Closes #5 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ea guard 8 regression tests protecting fixes applied during audit session: - make_valid(): 3 tests (invalid country/admin geometry fixed, fixture guard) - Warning suppression: 2 tests (no global ignore, UserWarning visible) - Zero-area guard: 3 tests (country/admin1/admin2 return None with WARNING) Removing any fix causes at least one test to fail. Closes #6 Closes #7 Closes #8 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…-net Sprint 1: Test safety net for source code work
Documents what we know vs don't know, the core risk (can't verify output without LFS/Appwrite/views-pipeline-core), 4 prerequisites for safe implementation, and 4 possible approaches with pros/cons. Recommendation: build alongside (additive), don't replace, verify with real data before switching. Or wait for infrastructure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Major additions: - views-faoapi identified as the Appwrite-to-FAO bridge (answers D-06) - Complete data flow diagrams for both historical and forecast streams - Forecast stream is completely independent of datafactory — mapper needed for both - Viewser-to-datafactory migration history and nokgi semantic difference - orange_ensemble ghost reference (views-models #77) - Option C (factory GAUL columns) doesn't solve the forecast stream - Option D (hybrid) creates inconsistency between historical and forecast - Cross-repo risk register entries affecting this repo - Recommendation: read views-faoapi first, build alongside second Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…rmed Investigation of views-faoapi confirms: - FAOApiManager passes postprocessor columns through unmodified - dataframe_to_dict() serves raw records, no renaming - FAO_PGMDataset._METADATA_COLS hardcodes postprocessor column names - The column renaming from RN01 Topic C was never implemented - FAO receives country_iso_a3, admin1_gaul1_code, pg_xcoord — NOT the contract-specified UN M49, ADM1_CODE, lat D-06 resolved as Possibility B: genuine gap, not this repo's fix. C-24 updated: renaming belongs in views-faoapi, not postprocessor. Assessment document Section 7 rewritten with definitive findings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…d-lookup ADR-011 assessment and D-06 resolution
…34/D-07..D-10, deploy-readiness stubs Session artifacts from the FAO global-delivery investigation: - cross_repo_integration_report.md: datafactory<->postprocessing<->Appwrite<->faoapi - ADR-011 assessment §10: datafactory prerequisites met (v1.3.0 area-majority) - register: 9 new concerns + 4 disagreements from expert review + cross-repo audit - test_datafactory_deploy_readiness.py: deploy-gate falsification stubs Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Replaces the runtime spatial mapper's enrichment with a precomputed table: - scripts/build_gaul_lookup.py: joins the datafactory's 7 area-majority GAUL parquets (v1.3.0), renames to the 9-column contract, computes coords from the gid, keeps only fully-complete cells. No geopandas. - data/gaul_lookup.parquet: 64,742 land_gaul cells, 0 nulls, 0.9 MB. - unfao/enrichment.py: GaulLookupEnricher, merge-by-gid, categorical strings, fail-loud (unknown cell -> null -> validation catches). - tests/test_enrichment.py: 16 tests (integrity, contract, coords, fail-loud). Not yet wired into the live pipeline (that is Stage 3). Core suite: 104 passed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…w enricher) africa_me (13,110 cells), all 9 columns, on exact production shapefiles: - 96.1% identical (12,597); 512 changed; ZERO unexplained - 259 country_reassignment + 247 admin_reallocation (all border cells), 4 ocean cells dropped by land_gaul, 2 coastal recovered - no ISO code-system noise (NE and GAUL agree on alpha-3) scripts/diff_enrichment.py: runs both engines, classifies every difference. scripts/plot_enrichment_diff.py: 5 maps (agree/disagree, by-class, country before/after, Lesotho + Namibia/Botswana border zooms). reports/enrichment_diff/: report.md, summary.json, diff_cells.csv, maps/. Every change is the FAO-contracted area-majority arriving; none regress. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…itories analysis C-35 (Tier 1): the current mapper ships Somaliland cells to FAO with country_iso_a3 = -99 (Natural Earth's no-ISO sentinel); it passes the null-only validation gate. Measured: 64 africa_me cells. Resolved by the ADR-011 lookup (0 occurrences of -99 in all 64,742 cells -> SOM/Somalia). Added a disputed-territories section to the enrichment diff report with the Morocco/Western Sahara (boundary-placement) and Somalia/Somaliland (-99 fix) worked examples, confirmed at the shapefile level. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
W1: portable datafactory resolution ($VIEWS_DATAFACTORY or sibling repo) in
build_gaul_lookup.py and diff_enrichment.py — no more machine-specific path.
W2: enricher logs ignored mapper-only kwargs at debug (not wholly silent).
S1/S2: new gaul_schema.py is the single source of truth for METADATA_COLS, the
source->contract rename map, and the PRIO-GRID coordinate formula; enricher,
build, diff, and plot all import it (no duplicated contract/constants).
S3: add docs/CICs/GaulLookupEnricher.md.
S4: reports/enrichment_diff/README.md documents the committed evidence artifacts.
Rebuilt lookup is byte-identical to the committed one; core suite 104 passed.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… ambiguous var - diff_enrichment.py: move package imports to top (E402), drop unused CODE_COLS - test_datafactory_deploy_readiness.py: l -> ln (E741) ruff: all checks passed. Functional suite: 104 passed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The one behavioral change in the plan: UNFAOPostProcessorManager now enriches via the precomputed GAUL lookup instead of the runtime spatial mapper. - unfao.py: import + __init__ (self._mapper -> self._enricher) + the one _append_metadata call; drop mapper-only batch_size kwarg; delete two dead commented AppwriteConfig blocks; description string no longer names the mapper. - UNFAOPostProcessorManager.md: enrichment source is now the lookup; mapper kept inert, slated for removal after one verified production cycle. - tests/test_append_metadata.py: replicates the _append_metadata join sequence with the enricher (manager can't be instantiated without pipeline-core). mapping.py stays in the repo, no longer used by the manager. Revert this commit to restore the mapper path. ruff clean; functional suite 109 passed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
D1: manager now imports gaul_schema.METADATA_COLS instead of hardcoding the
9-column contract twice (filter_cols in _append_metadata, and
_necessary_metadata_cols in _validate) — removes drift risk now that there
is a single source of truth.
F1: UNFAOPostProcessorManager CIC test-alignment note updated to reference the
replica tests (test_validation.py, test_append_metadata.py).
ruff clean; functional suite 109 passed.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pre-merge full-PR review caught the manager README still describing PriogridCountryMapper / _mapper as the enrichment mechanism — false after the Stage 3 swap. Updated the architecture diagram, data-flow text, attribute table (_mapper -> _enricher), troubleshooting, and doc links; the runtime mapper link is kept but labelled legacy/retained. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…p-enrichment ADR-011: precomputed GAUL lookup enrichment (Stages 1 + 3)
A delivery's Appwrite description previously said only a generic 'precomputed GAUL lookup (ADR-011)'. The enricher now reads its lookup's embedded provenance at load (region + short source digest, e.g. 'land_gaul@f74d3b2b') and the upload description includes it, so a delivery is traceable to the exact lookup build, not just 'the lookup'. Falls back to 'version=unknown' if a lookup carries no provenance (honest, non-crashing). Also commits reports/predeploy_safe_checks.md (the 4 read-only pre-deploy checks: 3 pass, provenance was the partial this fixes). ruff clean; functional suite 109 passed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pre-merge review: the CIC described the enricher's outputs but not the new public lookup_version attribute. One-line completeness fix. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Stamp deliveries with the exact lookup version (ADR-011)
…ation phase 1) Phase 1 of removing pandas/polars/geopandas from this repo. views-frames 1.0 shipped frozen on PyPI, so views-postprocessing becomes its first live cross-repo consumer. Adds to_prediction_frame()/to_target_frame() adapters wrapping the forecast (PredictionFrame) and historical GED (TargetFrame) halves of our data at PGM level, plus a CI test asserting both satisfy the published assert_frame_contract. No delivery behaviour changes — the adapters are not yet wired into the manager. Registers C-36: the falsification-campaign and deploy-readiness tests leave `pytest tests/` permanently red on development, so the suite gate cannot detect new regressions. The 8 new conformance tests pass; committing over the red gate is deliberate and documented. - views_postprocessing/unfao/frames.py: new adapters (numpy-at-the-boundary) - tests/test_views_frames_conformance.py: 8 tests, assert_frame_contract on both - pyproject.toml: views-frames >=1.0,<2 as a main dependency - reports/technical_risk_register.md: C-36 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…olve C-36) The suite was permanently red on development (43 failures), so the CI/ship-it gate could not distinguish a real regression from the known baseline. Convert the deliberate failure-markers to xfail(strict) so the suite is green-when- healthy (119 passed / 43 xfailed / 0 failed) and a genuine failure stands out. - 40 falsification probes: module-level pytestmark = xfail(strict) across 15 files + a per-function mark on r3_03; each documents an open finding by design. - 3 cross-repo deploy gates (test_datafactory_deploy_readiness.py): xfail(strict), tracked upstream as views-datafactory#223 (provenance omits admin_digest -> stale served grid) and #224 (development version 1.3.0 collides with tag). These auto-flip to a failure when datafactory is fixed. - register: C-36 -> resolved. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…, slice 1) Bring the forecast-reconciliation algorithm home from views-reporting (their issue #72), starting with the leaf math as pure numpy — no torch, no pandas. reconcile_proportional is a faithful float32 port of ForecastReconciler. reconcile_forecast: per-draw top-down proportional scaling (FPP3 forecast proportions), zero-preserving, non-negative, point + probabilistic. Parity is proven bit-for-bit against the *untouched* views-reporting torch oracle: scripts/gen_reconciliation_parity_fixture.py captures inputs->outputs over their full test battery + independent-country / negatives / all-zero edge cases; tests/test_reconciliation_parity.py reproduces them exactly (max abs diff 0.0) and needs neither torch nor views-reporting (fixture committed). Not wired to any live path (zero delivery impact). Orchestration, country<->grid mapping, end-to-end parity, and the pipeline-core repoint/phase-out are slices 2-4. C-37 records that this is the pragmatic per-draw method, to be upgraded to principled probabilistic reconciliation only after the move is wired. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…solved) datafactory 6f7f4ec bumped to v1.4.0 (untagged), resolving #224. The xfail(strict) guard flipped to a pass, so remove the marker and promote the test to a live guard against a future version<->tag collision. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Freeze the whole views-reporting reconciliation pipeline as a committed fixture: build a realistic cm+pgm sample (5 countries, 3 months, 2 targets, 100 samples), run the *untouched* oracle fully offline (inject the country->grids mapping so no viewser; patch WandB; CPU), and save (cm, pg, pg_country, reconciled pgm). The frames-native module must reproduce it (the parity gate). Records D-R1 (group by injected VIEWS country_id, GAUL deferred to S7) and D-R2 (all-zero-draw edge case captured) in docs/reconciliation_migration.md. Closes #32. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Array -> PredictionFrame builders at SpatialLevel.CM (country_id) and PGM (priogrid_gid); predictions carry a real sample axis so values are (N, S). The reconciliation package's own I/O (CRP: distinct from the unfao pandas-scalar adapters). Contract-checked against the S0 fixture; inputs never mutated. Closes #33. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ty (S2, #34) The heart of the migration: label grid rows by country with views-frames cross_level_align (fail-loud on unmapped rows), group by (time, country) via np.unique (no per-row loop -> scales to the full grid), and reconcile each group with the parity-proven leaf reconcile_proportional. Returns a new pgm frame (de-mutated, C-184). Reproduces the S0 oracle fixture BIT-FOR-BIT (max abs diff 0.0) on both targets. Closes #34. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…adata fix(delivery): 255-safe provenance descriptions + loud upload port (#131 findings)
…rmanent guards The delivery-log/provenance redaction audit (orð_09 §3 commitment; PLATFORM-001 multi-carrier redaction clause) found the delivery clean: every log line carries filenames/run_ids/counts/regions only, and the provenance description — the one carrier that leaves the machine — is a closed set of delivery primitives. Two guards pin that: the wire/delivery modules stay credential-blind (no environment or credential reference), and build_provenance's key set stays closed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…eclared fail-loud entry validation The manager no longer reaches into views-models' checkout for its environment (the load_dotenv(ensemble_path_manager.dotenv) borrow — the runtime edge of the þing-01 copy-chain, sáttmál S6). The launcher declares its env sourcing (views-models M3/#287, merged: run.sh reads the PLATFORM-001 coordinate registry; the secret stays the operator slot); this package now only validates. New unfao/appwrite_env.py declares the required names (registry connection + target classes + the one secret slot; dependency-light by design) and assert_env_declared() raises naming EVERY missing variable (verdict D6) — called before all three AppwriteConfig constructions. Guards pin the borrow dead, the declaration↔use match, and the D3 naming rule. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…-audit test(redaction): þing-01 P2 (#135) — delivery-log/provenance redaction audit + permanent guards
feat(env): þing-01 P1 (#134) — kill the ensemble-dotenv borrow; declared fail-loud entry validation
… + post-adoption entry) The wire contract seals the data half of the Appwrite seam; the ratified PLATFORM-001 (homed in views-appwrite) seals the identity/config half. §7(d) cross-references it by URL, never by copy, naming the coordinate registry as the canonical source behind unfao/appwrite_env.py's declared names. The post-adoption record logs the full þing-01 follow-through (P1 #134, P2 #135, P3 #138). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…01-xref docs(adr): þing-01 P3 (#138) — ADR-013 references PLATFORM-001 by URL
…guard (#140) The register had drifted four days behind two events — run-0's delivery (2026-07-27) and the þing-01 verdict (2026-07-28) — and its own structure had drifted with it. Structural: header said 25 open / 30 resolved; the file held 27 / 28. Root cause was C-19 and C-45 carrying RESOLVED bodies while still filed under Open. Both relocated, along with C-08 (→ views-datafactory), C-37/C-38 (→ views-frames), C-42 (settled its own internal contradiction) and C-32 (measured, not deferred). C-34 merged into C-30 as a forwarding stub. Eight stale unfao.py line ranges refreshed against the current 636-line manager; foreign-register IDs (C-161, C-146, C-71) namespaced to the repos that own them. Calibration: C-30 tier 1→2 (run-0 exercised the coverage guard live at 64,742 cells), C-24 tier 2→3 (entry's own conclusion is that it is not this repo's to fix). C-26 held at tier 1 with an open question logged for the pipeline-core seat — whether get_feature_frame inherits the fillna(0.0) could not be verified from here. Four expired triggers, five symptomatic ones and one circular one rewritten; C-43's now says plainly that it has fired. Clusters A-F indexed only deleted mapper-era code and covered no open entry; collapsed to a historical stub and replaced with G (inherited pipeline-core surface), H (go-global debt, discharged unevenly by run-0), I (governance-artifact drift) and J (delivery aftercare). Three entries registered from the blind-spot analysis: - C-56 the run-0 OOM incident chain (23.8 GB kill → 5.6 GB frame-native), which the closeout plan required and never got, plus the live memory budget it leaves - C-57 PLATFORM-001 registry drift — referenced by URL, so nothing local can diff it - C-58 wrong Appwrite coordinate auto-provisions instead of raising, on both client lineages (þing-01 D5; the finding that widened the verdict's D8 trigger) tests/test_register_integrity.py makes this class self-detecting, the same way test_falsify_adr013_*.py did for the wire contract: counts match sections, no closed entry under Open, section order, unique IDs, required field rows, and references that either resolve here or name their owning repo. Mutation-checked against all three historical bugs — each is caught by its own guard. appwrite_cache/ gitignored: downloaded partner-store objects were untracked AND unignored, one `git add -A` away from being committed ahead of the first public release (#125). Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
… build (#141) ADR-011 swapped runtime geopandas mapping for a precomputed lookup, and the plan's required old-vs-new value diff (#20 Stage 2 / #23) was signed off without being produced. The comparator was then deleted in PR #42, so the backward check is unrecoverable — and run-0 shipped 64,742 cells to FAO on 2026-07-27 with no gate anywhere asserting that a *present* GAUL value was the *right* one. The check that remains available runs forwards, against the producer. Run this session, zero mismatches on all four links: gid->lat/lon formula vs PRIO-GRID priogrid_cell.dbf, all 259,200 cells -> max abs error 0.00e+00 lookup values vs the 7 datafactory gaul_admin parquets -> 0 mismatches / 64,742 cells lookup gid set vs land_gaul_pgids.json -> exactly equal, all unique delivered run-0 sidecar bytes vs the lookup -> 0 mismatches, sha256 matches the manifest The leading hypothesis going in — a flipped or off-by-one coordinate formula putting wrong-but-non-null coordinates on every cell, invisible to every gate — was falsified. The formula is exact across the entire global grid. This commit turns that session result into a standing guarantee. 18 tests split by dependency: always-on checks on the committed artifact (key uniqueness, no nulls, no -1 sentinels, region count, coordinate formula against a committed 219-cell PRIO-GRID ground-truth sample) and skipif checks against the views-datafactory sibling (all 7 columns, full 259,200-cell formula sweep). build_gaul_lookup.py: the three bare `assert`s become explicit LookupBuildError raises (python -O silently strips asserts, writing an unvalidated artifact that looks identical), plus a new index-uniqueness guard. Rebuild verified value-identical to the committed artifact. Two entries I registered earlier today are corrected here on mutation evidence rather than left overstated: - C-59 tier 2 -> 3. A duplicate cannot reach the artifact on the production path: Index.intersection de-duplicates first. The guard is reachable only via --region all. Kept anyway — that de-duplication is accidental pandas behaviour, not a declared guard, and silently absorbing upstream duplication hides a producer defect. - C-61 exposure corrected. The primary protection against -1 is the completeness filter, which is plain code and survives -O; the strippable-assert argument never applied to the -1 case. The real defect was stating invariants in a form the interpreter can delete. C-43 scope stated explicitly and deliberately: this proves transcription fidelity, not assignment correctness. If views-datafactory's area-majority join puts a cell in the wrong country, every test here still passes. That is filed as views-datafactory#387 — it had been resolved here on 2026-06-24 as "tracked there" and was never actually opened there, leaving it untracked platform-wide for five weeks. Register: 61 concerns, 24 open. Cluster K added. ruff clean; 296 passed (5 known local pyarrow byte-parity failures, CI authoritative). Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…ls 2.5 GB of CUDA (#142) Maintainer challenge during the development->main sweep: "Is geopandas back? Is it still here?" Audited it properly. Source-level answer: no. The only three mentions of geopandas/shapely in .py or .toml are assertions of its absence (enrichment.py:9, build_gaul_lookup.py:11) plus a doc-accuracy test that bans the word. C-39's deletion held completely. Environment-level answer: yes. poetry.lock resolves geopandas 1.0.1, optional = false. The carrier is the pinned release — views-pipeline-core 2.3.0 declares geopandas, torch, scipy, seaborn, plotly and plotly-express. Their development branch already dropped geopandas and their own falsification tests name the problem; it is gated purely on publishing 3.0.0 (their #319/#313). Measured in the live project venv (2.8 GB total), none of it imported here: nvidia/ (torch CUDA runtime) 2.5 GB plotly 42 MB matplotlib 25 MB geopandas 1.6 MB The framing correction is recorded in the entry because it inverts the intuition that started the audit: geopandas is the architectural violation but is 1.6 MB. The material cost is torch's CUDA stack at 89% of the venv, in a repo with no GPU code, no training and no tensor operations. Optimising for the offensive dependency rather than the expensive one would have missed nearly the whole bill. Registered Tier 3 and deliberately NOT folded into C-44, because the two pull in opposite directions: C-44 holds the 3.0.0 bump on the maintainer's standing cross-repo constraint, C-62 records what waiting costs. Folding this into the entry arguing for the delay would hide the bill inside the argument. Also filed today: the geopandas claim in views-datafactory#387 was wrong and is corrected there — that repo does its spatial work geopandas-free already (shapely STRtree + pyproj, ADR-030), so the proposed equal-area check must not reintroduce it. And a consumer data point on pipeline-core#319. Register: 62 concerns, 25 open. Cluster G. Integrity guard green. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…ath (#143) The first C-62 figures were taken mid-install and understated the footprint. Corrected against the settled venv: nvidia/ (CUDA runtime) 2.5 GB -> 2.7 GB venv total 2.8 GB -> 3.4 GB More importantly, the entry implied torch was installed. It is not. There is no torch/ directory and no dist-info, with no install running — only its five nvidia-* dependencies landed, which carry a platform_system == "Linux" marker. So the repo holds 2.7 GB of GPU support libraries for a package that is absent. Cause unknown; recorded as unexplained rather than guessed at. Dependency chain traced: views-pipeline-core is the sole requirer (torch = ">=2.6.0,<3.0.0" in 2.3.0's metadata), torch 2.12.1 then pulls the nvidia-* wheels. Nothing else in the tree wants torch and this repo imports it zero times. Also confirmed there is only one poetry venv on the machine — it belongs to this repo; pipeline-core is a package inside it, not a separate environment. Removal path added, and it is not local: pipeline-core's development branch is already version 3.0.0 and declares no torch, geopandas, scipy, seaborn or plotly, with a test asserting `import torch` appears nowhere. The fix is complete upstream and gated purely on publishing. Their runbook (#313) fixes the order: views-frames (done) -> views-evaluation 0.5.0 -> views-pipeline-core 3.0.0 -> views-reporting 0.3.0 -> models/postprocessing envs, on the maintainer's platform-wide signal. C-62 closes when C-44's bump becomes takeable. The tempting local workaround — declaring torch here against the PyTorch CPU wheel index — is recorded and explicitly NOT recommended: it would shed the nvidia tree today, but makes this repo declare a dependency it never imports and would be reverted at the bump. Written down so it is not rediscovered later and mistaken for free. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…#144) C-44 holds the pipeline-core 3.0.0 bump on two conditions. Their status has diverged and nobody had noticed, so the entry read as "both still closed." Condition 2 (platform running smoothly on development across consumer repos) now has substantial evidence: run-0 on 2026-07-27 exercised the whole FAO delivery chain on development — views-models config -> pipeline-core frame-native fetch and Track A publish -> this repo's contract delivery (108 shards, 64,742 cells, 28.4M rows, 5.6 GB peak) -> faoapi ingest, confirmed serving live on 2026-07-31 (smoke ALL PASS, IDN present, i.e. outside the old Africa-only region). Scoped honestly in the entry: that covers the FAO delivery chain across five repos, NOT consumers outside it (views-reporting's report path, views-baseline, other model families). Whether "all consumer repos" means the chain or literally everything is a maintainer judgement the register cannot make. The condition moved from unevidenced to substantially evidenced for the path that matters most — which is a real change, and less than a clearance. Condition 1 (3.0.0 on PyPI) remains unmet and is not blocked on engineering: pipeline-core's development already carries version = "3.0.0" with the heavy deps removed, and views-evaluation's to_metric_frame — the one release-train edge in their runbook #313 — exists in code, 8 commits past v0.4.0, needing a version bump and a publish. Net: one release signal, not two open questions. Explicitly does NOT authorise the bump; the signal is the maintainer's and the scoping caveat is a real reason it might still be withheld. Cross-referenced to C-62, which records what continuing to wait costs. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…d the clone-readiness set (#147) * chore(register): C-63..C-69 + Cluster L — the won migration was never cleaned up repo-assimilation pass with a clone-readiness lens (views-crafdapi, views-productionapi). Seven new entries, two merges. The finding that organises the rest: the frame-native contract path replaced the pandas path and won — run-0 delivered 2026-07-27 and FAO has been served from it since — but the replaced path was kept behind a config fork "until run 0 proves the contract path live" (C-40) and never removed. C-63/C-64/C-65/C-66/C-68 are all residue of that single omission, so Cluster L's fix strategy is one deletion, not five fixes. D-11 already ratified that shape and named the missing step. C-63 (Tier 2) is the sharpest: two independent config axes (wire_contract, data_format) give four delivery modes, production uses one, and omitting either key silently selects the retired half — .get() returning None is indistinguishable from a deliberate False. That is the inference ADR-003 forbids, in the repo that authored it. Two merges that IMPROVE existing entries rather than adding risk: - C-40: views_pipeline_core is imported by exactly ONE module. The blast radius is one file wide, not repo-wide, which makes the thin-shell extraction bounded. That file is 636 lines / 25% of the package and holds every SRP violation in the repo — reframed as *the* clone blocker. - C-25: its registered mitigation (identity.assert_forecast_identity) is legacy-only; production selects by run manifest instead. Better protected than the entry claims, but not by the mechanism it names. Register: 69 concerns, 32 open. Integrity guard green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * chore(register): C-70 (METADATA_COLS triple-duty) + partner-identity locations into C-69 Second register pass, from expert-code-review with the dead-code and migration-tail focus. C-70 (Tier 3): gaul_schema.METADATA_COLS encodes three independent contracts — set membership, normative wire column order (ADR-013 §5.1), and null-gate scope — while its docstring names only the first. The type policy is separately re-derived positionally via 'if col in CODE_COLS' in three modules. Held at Tier 3 rather than 2 because the §10 golden fixture makes a reorder fail loudly in CI; the risk is cost-of-change and the trap a clone walks into. Folded into C-69 rather than registered separately: partner identity has three homes — product.py CONSUMER_DOCUMENT_NAME, appwrite_env.py UNFAO_* names, and sink.py's consumer_name parameter. The third is the right shape and proves the machinery is already parameterisable; the other two are what a clone must hunt. Same boundary problem as C-69 at field level, so it belongs in that entry. Register: 70 concerns, 33 open. Integrity guard green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…onfig (#159) Closes #149 and #145; closes register C-63; resolves C-29. Epic #148. The frame-native contract path replaced the pandas path and won — run-0 delivered global-land 2026-07-27, FAO served since. The replaced path was kept behind a config fork "until run 0 proves the contract path live" (C-40) and never removed. D-11 warned that if it lingered the duplication would become permanent. This is the removal, not new work. Two independent axes (wire_contract, data_format) gave four delivery modes; production used one; omitting either key silently selected the retired half, because .get() returning None is indistinguishable from a deliberate False. That is the inference ADR-003 forbids, in the repo that authored it. unfao/managers/unfao.py 636 -> 406 lines 14 config forks -> 0, plus one refusal pandas / PGMDataset -> gone from the manager Deleted: the legacy _read_forecast_data body, _read_historical_data's pandas leg, _append_metadata, _delivery_description, _clip_observed_history, the legacy _save body (whose AppwriteConfig duplicated _unfao_appwrite_config verbatim), and LEGACY_FORECAST_FILTERS. _prod_forecasts_datastore lost its name_scoped parameter — it existed only for the caller that no longer exists (ISP). Added: unfao/launch_config.py — the launch declarations, asserted not inferred. Sibling of appwrite_env (that one validates the environment, this one the delivery mode), same fail-loud shape, dependency-light. A launcher that omits a key is refused BY NAME and told there is no fallback, so nobody "fixes" it by setting False. #145's silent uploads go with the legacy _save: the surviving path uploads only through _ContractStorePort, which already raises on a failed result — the guard written after run-0 stranded an invisible orphan (PR #132). Tests: test_selection_guard.py rewritten to pin the RETIREMENT rather than a golden string for deleted code, re-pointed at ADR-013's post-adoption record so the disjointness fact stays checkable, and asserting the Hop-B clause still binds — retiring our reader must not read as relaxing the consumer's obligation. test_append_metadata.py deleted (it characterised a deleted method; its docstring said "keep in lockstep with _append_metadata"). test_launch_config.py added. Docstring maps in test_input_integrity_e2e.py corrected to the post-#149 tree. ADR-013: dated post-adoption entry recording the Hop-A retirement, the retired filter values, and that §11.4's Hop-B clause is untouched. Review findings addressed in-commit (/review-diff verdict was HOLD): - launch_config raised without logging — ADR-008:48 requires both. Fixed, with tests asserting the log, not just the raise. - _transform annotated -> list while returning None. Fixed. - the declaration check ran after _initialize_data_loader; a refused config paid for loader construction. Reordered. Registered C-71: appwrite_env has the identical ADR-008 gap (pre-existing, #134). Left for scope discipline — the module this one mirrors is now inconsistent with it, which is worth tracking rather than silently widening S1. Wire contract untouched: no file under wire/, delivery/ or fixtures/ in the diff. ruff clean; 303 passed, 41 xfailed, 5 known local pyarrow byte-parity failures (CI authoritative). Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
… it did not lapse (#160) Closes #150; closes register C-64 and C-25. Epic #148. S1 deleted identity.py's only caller. ADR-012's "Delivery Invariants" row listed forecast identity as authoritative, so this could not be allowed to happen as a silent side effect — C-64 existed to force the decision. Decision: retire it. The rule is enforced, in a stronger form, at wire/source_selection.py:73-81 — TargetLease.load() checks EVERY shard header's declared provenance.ensemble against the launched ensemble. Identity now comes from the artifact's own declared content rather than one store document's metadata field, and is checked per shard rather than once per run. Covered by test_wire_source_selection.py::test_wrong_declared_ensemble_refuses_at_load. Why retire rather than keep: an invariant module nothing calls is documentation shaped like code, and delivery/ is exactly the package the coming clones will copy wholesale — an unenforced rule there would be inherited as if it were live. C-25 closes too, and the distinction matters: its recorded mitigation WAS this function, so on paper it loses its guard. In fact its hazard — "newest category=forecast upload wins regardless of producer" — is now structurally impossible, because the contract path selects by run manifest, a commit marker with hash-verified contents. Recency-based selection is not an operation the code can perform. Closed as superseded by mechanism, not as mitigated. ADR-012 gains a dated amendment recording all of the above, and its Delivery Invariants row now points at it rather than naming a rule whose module is gone. The e2e suite's S3 section is re-homed rather than deleted: a comment now names where the invariant lives and which test covers it, so the next reader of that file finds the guarantee instead of a gap. ruff clean; 295 passed, 41 xfailed, 5 known local pyarrow byte-parity failures (CI authoritative). No file under wire/ or fixtures/ touched. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…s own home (#161) Closes #151; closes register C-65. Epic #148. extraction.py held two unrelated things. Its four frame readers (cells_of, months_of, drop_months_above, unmapped_cell_count) became unreachable when #149 retired the pandas delivery, and frame_extraction.py already implements all four frame-natively — the WET siblings D-11 sanctioned for the migration, now one implementation too many. Deleted. Its one survivor, file_metadata, was never extraction at all: it unpacks a STORE DOCUMENT and touches no representation. It shared a module with the frame readers only because both "unpack something", which is not a reason to change together. It moves to unfao/store_metadata.py — sibling of source_metadata.py, so the pair reads producer facts / store facts and each module carries one concept. Tests followed the code rather than being deleted: - test_extraction.py -> test_store_metadata.py, keeping the file_metadata cases. - test_frame_extraction.py was a PARITY suite proving both seams returned identical primitives. With one seam gone parity has nothing to compare against, but the absolute expectations were already written into the assertions, so they are asserted directly. Values unchanged; they just no longer route through a deleted module to be checked. - test_input_integrity_e2e.py now feeds the invariants PRIMITIVES, which is how the delivery actually calls them. It had been building synthetic pandas frames and pushing them through the pandas seam to reach representation-free rules — testing a chain the delivery no longer has, and holding the file's last pandas import hostage to it. Its docstring names where each representation-specific half is covered instead. - test_input_integrity_design_contract.py ① named extraction.py as "the seam"; updated to frame_extraction.py and now asserting BOTH halves — the seam exists and its retired pandas sibling has not come back. Its ② note ("no premature Extractor Protocol — a migration, not a coexistence") is marked vindicated: the coexistence ended, and a Protocol would have outlived the second implementation. ruff clean; 289 passed, 41 xfailed, 5 known local pyarrow byte-parity failures (CI authoritative). No file under wire/ or fixtures/ touched. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…licly named (#162) Closes #152; closes register C-66 and C-68. Epic #148. The 888 KB lookup was read three times per delivery: once eagerly in the manager's __init__ into a GaulLookupEnricher the contract path never used, then twice more through pyarrow, once per consumer. The path that reached those consumers was _DEFAULT_LOOKUP — a leading-underscore name imported across three module boundaries, so a refactor entitled to move it would have broken live call sites. Both trace to the same mistake: the artifact's identity was owned by one of its consumers. lookup_version was a @staticmethod on the enricher that never touched the instance — a fact about the artifact wearing the enricher's coat. New unfao/gaul_lookup.py holds that identity: LOOKUP_PATH (public), version() and load(). _save_contract reads once and threads the table to both consumers, each of which already accepted it as a parameter (DIP) — so this is threading one value, not a redesign. The pandas enricher leaves the delivery path entirely. GaulLookupEnricher is NOT retired — it remains the build/verification path's object, covered by test_enrichment.py. What changed is that it no longer owns the artifact. Its _read_version delegates rather than duplicating, and a test asserts both routes report the same stamp, so provenance cannot differ by which path produced it. C-60 deliberately NOT fixed here. version() still reaches three levels into views-datafactory's ledger shape and degrades to "unknown" silently. It was moved VERBATIM — moving and changing behaviour in one commit is exactly what S5 must not do, and the same discipline applies here. The limitation is documented at its new home with a pointer to C-60's own scope. tests/test_gaul_lookup_access.py pins the fix rather than the symptom: one declared home, a source-scan asserting exactly one gaul_lookup.load() in the manager, and a signature check that both consumers still ACCEPT the table rather than fetching it — so a revert to per-consumer reads fails loudly instead of quietly restoring the count. ruff clean; 295 passed, 41 xfailed, 5 known local pyarrow byte-parity failures (CI authoritative). No file under wire/ or fixtures/ touched. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
… machinery (#163) * refactor(structure): S5a — move partner-neutral machinery into contract/ (pure move) Part 1 of #153. NO behaviour change: file moves plus import rewrites only. The behavioural half — decoupling the wire from the partner's product — is the next commit, deliberately separate so this one is reviewable as a move. views_postprocessing/ now has three top-level packages, each answering a different question: delivery/ what makes a delivery VALID — representation-free invariants contract/ how a delivery is BUILT — the ADR-013 machinery (NEW) unfao/ who a delivery is FOR — product, appwrite_env, manager Moved into contract/: wire/ (7 modules), frames, frame_extraction, track_a_source, gaul_lookup, gaul_schema, enrichment, historical, source_metadata, store_metadata, launch_config. unfao/ keeps product.py, appwrite_env.py and managers/ — 3 files, all genuinely FAO. Structure now matches ADR-002's declared layering, which S6 will re-state (its illustration still names unfao/extraction.py as the seam, deleted in #151). Imports rewritten across 28 files + tests + scripts. test_input_integrity_ design_contract.py's path assertions follow the move. ruff clean; 295 passed, 5 known local pyarrow byte-parity failures. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * refactor(contract): S5b — the wire no longer reaches into the partner; column contract as data Part 2 of #153 (part 1 was the pure move). Closes register C-69 and C-70. THE MOVE EXPOSED A REAL COUPLING. With everything under unfao/ it was invisible: wire/sink.py imported unfao.product — not in its logic, but as DEFAULT ARGUMENT VALUES for upload_enabled, consumer_name and s_min. The parameters already existed, so DIP was satisfied; the defaults reached back into the partner anyway. They are now required arguments the manager supplies explicitly. The mechanism declares what it needs; the partner provides it. contract/ now contains no code reference to unfao. #155 makes that mechanical. C-70 folded in, because gaul_schema is partner-neutral machinery and this was the one time it was being handled: COLUMNS declares each column's (name, role, wire_dtype) once and METADATA_COLS / CODE_COLS / NAME_COLS / COORD_COLS / WIRE_DTYPE derive from it. One list had been carrying three meanings — membership, normative wire ORDER, and null-gate scope — while its comment named only the first, and the dtype policy was re-derived positionally in three modules. Two tests pin it: the derivation itself (roles partition the nine exactly; the §5.1 dtype ruling holds), and the normative order written out literally so a reorder fails with a readable diff rather than only as a fixture byte mismatch. Verified the derived lists are byte-identical to the hand-written ones they replace, and the byte-parity fixtures are unaffected. ruff clean; 297 passed, 5 known local pyarrow byte-parity failures. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
…ow checked (#164) 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>
Closes #155. Epic #148. #153 separated partner-neutral machinery (contract/) from FAO's product (unfao/). Nothing then stopped the next contributor adding one convenient import back — and the boundary would be gone with NO SIGNAL, because everything would still work for FAO. It would break only for views-crafdapi and views-productionapi, in a repo nobody had cut yet. C-69's fix is one-shot; this is what makes it hold. tests/test_clone_readiness.py imports all 21 partner-neutral modules in a FRESH INTERPRETER and fails if views_postprocessing.unfao arrives with them. The subprocess matters: in-process the check is worthless, because pytest has already imported the whole package by collection time, so sys.modules would say yes regardless of what contract/ actually depends on. Same mechanism views-pipeline-core uses to keep pandas out of its frame path (their test_import_purity.py, #321); þing-02 recorded it as the pattern for turning a rule into a test rather than a promise. Second assertion: the machinery must not pull in views_pipeline_core either. Pinned while true — a clone writes its own manager against its own framework seam, and if the machinery dragged pipeline-core in, that choice would be made for it and C-40's blast radius would widen from one file to the package. Third: the guard proves ITSELF non-vacuous by importing the partner deliberately and asserting the detector sees it. Separately mutation-tested — a real import added to contract/wire/header.py failed both purity assertions, then reverted. docs/CLONING.md is the human half: what you get free (delivery/, contract/), the three files you must supply (product, appwrite_env, manager), and the hard rules with WHY each exists — including þing-02 S24(5)'s ban on importing views_pipeline_core.modules.{appwrite,datastore}, which is how a two-repo defect became three. ruff clean; 305 passed, 5 known local pyarrow byte-parity failures. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Closes #156, closes #157. Epic #148 complete. Every acceptance criterion verified against the TREE, not against the issues — which is the failure this story existed to prevent: one path, incomplete config raises 2 assert sites, 0 config forks manager < 450 lines 406 (from 636) machinery imports without partner tests/test_clone_readiness.py green ADR-012 rows verifiable tests/test_doc_accuracy.py green ADR-013 falsification guards 39 green (plus byte-parity on CI) docs/CLONING.md present Register: - C-29 resolved — its disk side-channel WAS the legacy leg; deleted with it. - Cluster L CLOSED. The prediction held: one deletion, not five fixes. Nine entries closed. Measured cost recorded: 636->406 lines, 14 forks->0, pandas importers 3->1, lookup reads per delivery 3->1. - C-40 UPDATED, not closed. Its surface shrank and its one-file blast radius is now mechanically pinned, but the double inheritance stands and remains gated on pipeline-core 3.0.0 — a release signal, not engineering work. - D-11 condition met: the legacy branch was deleted before #89 landed, so the re-open trigger never fired. Position A vindicated by events. The lesson recorded in Cluster L is D-11's, and it is not that WET was wrong: the siblings were correct and a premature Protocol would have outlived them. What failed is that the removal condition — "until run 0 proves the contract path live" — was written without a named trigger to act on. The box expired on 2026-07-27 and nobody opened it. A deferral needs an owner and a trigger, not just a reason. ADR-013 gains a post-adoption note: the delivery around the contract reduced to one path, and NO byte on the wire changed — the golden fixture was untouched and green on CI at all seven merges. contract_version unchanged. ruff clean; 305 passed, 5 known local pyarrow byte-parity failures. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
The agent working instructions are the canonical engineering philosophy propagated across the six platform repos — the file says so itself and asks that it be changed there first. Tracking a copy here would make this repo a second source of truth for a document that has one. Untracked, so nothing is removed from history. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Findings from /code-review max on PR #168 (development -> main). Two agents, both grounded in verification rather than inference. THE ONE THAT MATTERS: the publish workflow's version gate would have failed the FIRST EVER release of this package, and this merge made the failure worse. curl on an unpublished package -> HTTP 404, body {"message": "Not Found"} jq -r .info.version -> the literal string "null", exit 0 parse("null") -> InvalidVersion, uncaught main currently compares against views-pipeline-core (a published package), so it failed cleanly with AssertionError. After the merge it crashes with a traceback that reads like a version-parsing bug rather than "not published yet". Each step was checked concretely — the 404 body, jq's output and exit code, and parse()'s exception — not assumed. Fixed with `.info.version // empty` plus an explicit first-release branch. Register C-09 closes: it recorded the wrong-package half, and this is the half that was hiding behind it. DOCS: main is about to become canonical, and the doc its own index calls "READ FIRST" described a structure that has not existed for weeks. - docs/architecture/role_and_seams.md — the lifecycle table described _append_metadata joining geography (deleted #149), a null-gate in _validate (moved to build time), and _clip_observed_history (deleted). Seam A named unfao/extraction.py (deleted #151). Seam B said "a views-frames frame cannot flow end-to-end through this repo today" and called frames.py an unused adapter hardcoding S=1 — it is the live constructor and takes declared (N, S). The quick map showed no contract/ package at all. - README.md — the tree showed delivery/identity.py and unfao/extraction.py, both deleted, and omitted contract/ entirely; the config section claimed "there is no startup validation yet" when appwrite_env has validated fail-loud since #134; the dependency table said "the live path is still pandas". - ADR-012's Rationale still listed unfao/extraction.py as the seam though its own table had been corrected; docs/ADRs/README.md and docs/architecture/README.md still propagated the retracted "thin manager"; the CIC still named _clip_observed_history. Seam A's correction is worth reading rather than skimming: the invariants needed NO change when the pandas seam was retired, only which module fed them. That is the design the section claims, evidenced instead of restated. Deliberately NOT touched: docs/falsification_campaign.md, docs/cross_repo_integration_report.md and docs/ADR-011_implementation_assessment.md reference deleted methods inside dated historical records, which is what those documents are for. VERIFIED SAFE by the same review, and recorded because a release merge should say what it checked: zero non-merge commits exist on main that are not on development (nothing is lost); no workflow references unfao/ paths, git-lfs or .gitattributes, and every checkout defaults to lfs:false — so CI never downloaded the 774 MB bundle and deleting it cannot break a job; the branch-behind gate passes because main is a strict ancestor; publish_package.yml triggers only on release:published, so merging cannot publish; and run_pytest.yml's test step is COMMENTED OUT on main today, so this merge makes main actually run its tests for the first time. ruff clean; 305 passed, 41 xfailed, 5 known local pyarrow byte-parity failures. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Code reviewFound 2 issues. Both fixed in #169, which is now merged into this PR's head.
Verified safe
🤖 Generated with Claude Code |
#168 was merged with a merge commit, so main's tip (the merge commit itself) was not reachable from development. prevent_merge_when_branch_behind.yml correctly blocked the next development->main PR: its guard requires main to be an ancestor of the PR head. No content change — main carries nothing development does not. This restores the ancestry the guard expects. Note for future release merges: merging development->main with --merge (or --squash) always creates a commit on main that development lacks, so this back-merge is required each time. A fast-forward merge would avoid it.
…ve C-58 into Cluster M (#180) Answering "are the things in other repos tracked by gh issues there?" — mostly yes, two were not, and one turned out to be already fixed upstream. ALREADY TRACKED, verified rather than assumed: C-13, C-28 timeouts -> pipeline-core #248, #347 C-73 stale run -> pipeline-core #341 (closed) C-72 pyarrow CVE -> vpp #174, faoapi #348, comment on #280 C-62, C-44 dependency drag -> comment on pipeline-core #319 C-43 area math -> views-datafactory #387 GAPS, now filed: C-26 (Tier 1) -> pipeline-core #366. Our only Tier 1, open since 2026-06-12 with no home in the repo that owns the code. Filed carrying the question this seat cannot answer: does get_feature_frame inherit the unconditional fillna(0.0), or does the frame path propagate NaN? That decides whether C-26 is live — run-0 shipped 28.4M historical rows through the frame path — or historical. Entry stays Tier 1 until answered, not downgraded on a guess. C-27 -> pipeline-core #367, cross-referenced to their #168 as the same defect class on a different call path. C-24 -> cross-referenced on faoapi #222 (their output-schema epic) asking directly whether the Topic-C rename is in scope, with an offer to close our entry pointing there if so. Open fourteen months without a home in the repo that owns the fix. FOUND WHILE CHECKING: C-58's fix has already LANDED upstream. pipeline-core #322 (write-path raise-by-default), #331 (relocate the four create_* sites) and #332 (assert the delivery path does not import provisioning) are all closed — that is þing-02's D5 implemented. But all three are on their 3.0.0, and we resolve 2.3.0, so the defect is fixed upstream and LIVE here until the bump. Same shape as C-73. C-58 joins Cluster M, which is now six entries — two of them Tier 2 — resolving on one publish. The integrity guard caught me writing "C-166" unnamespaced, which is my own convention. Fixed before commit. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
218 commits · 195 files · +35,025 / −4,623.
mainhas not been updated since 2026-01-26. Everything this repository currently is lives ondevelopment.This PR is the first half of the first release: git first, PyPI later and separately.
What arrives
What this merge DELETES — read this before approving
39 files, and the deletion is the point:
views_postprocessing/shapefiles/— the GAUL_2024 L1/L2 bundle, ~774 MB, LFS-tracked.gitattributes— the LFS rules that tracked themBoth were replaced in June by an 888 KB precomputed parquet (
views_postprocessing/data/gaul_lookup.parquet). After this merge no LFS assets exist at HEAD — a fresh clone stops pulling three quarters of a gigabyte it never needed.History still holds the blobs; this is a clone-size change, not a history rewrite. Register C-41 covers the LFS retirement itself.
What this merge does NOT change
contract_versionunchanged; the golden fixture untouched.The one thing that made this risky, now resolved
views-models/postprocessors/un_fao/run.shinstalls this package from@main. Until 2026-07-31, merging would have swapped a build that still hadload_dotenvfor one that doesn't — breaking the launcher's credential path at the moment of merge.views-models #293 is closed;
run.shnow exportsAPPWRITE_DATASTORE_API_KEYexplicitly. The trap is disarmed, and disarming it was the precondition for this PR.Deliberately NOT in this PR
The version bump and the tag.
pyproject.tomlstill says0.1.0; #125 proposes1.0.0. Kept separate so this merge is reviewable as content.PyPI. Blocked, correctly: this package's runtime floor is higher than anything released — it consumes
get_feature_frameanddeclared_data_format, unreleased in pipeline-core. PyPI has 2.3.0. A PyPI-only install today would import-error at runtime. The chain is views-evaluation 0.5.0 → pipeline-core 3.0.0 → this repo.Verification
Every commit on
developmentarrived through a CI-green PR. The suite: 305 passed, 41 xfailed, with the ADR-013 byte-parity fixtures green on CI's pinned toolchain.Register: 71 concerns, 25 open, 46 resolved — with a mechanical integrity guard (
tests/test_register_integrity.py).🤖 Generated with Claude Code