Repository navigation
Closed
Labels
blockedBlocked on a dependency or decisionimplementationCode implementation workstoryA single reviewable unit of an epic
Description
Epic: #85 · S7 · [CROSS-REPO-GATED] · blocked · gate: pipeline-core C-40 · DO NOT MOVE YET
Background
The historical inbound is forced pandas: read_dataframe → PGMDataset (unfao.py:58-64), plus the pandas ops in _append_metadata (.reset_index/.set_index/.join, :142-149) and _validate (.isnull().sum(), :165,177). These are inherited from pipeline-core's PostprocessorManager base, whose _read/_transform/_validate contract is defined in terms of PGMDataset (pandas with object-dtype cells).
Why this is tracked but NOT actioned now
- It is forced, not own-choice. Moving it unilaterally would fork the inherited base-class contract and maximally disturb cross-repo interconnectivity — the opposite of the strategy.
- It unblocks only when pipeline-core ships its own DataFrame retirement (register C-40; pipeline-core epic S5 — The lookup declares its own version instead of inferring it (C-60) #186/Record the operator's correction decisions; put the FAO half to them formally #207, issues refactor(unfao): S3 — one representation seam; store metadata gets its own home #161/feat(delivery): S1 — one delivery path; refuse an incomplete launch config #159/feat(crafd): CRAF'd producer package — clone of unfao/ (per CLONING.md) #211).
- Samples live on the forecast frame, not the historical frame — so S7 never blocks the sample work. This story exists to record the gate and the eventual change, not to be done in this epic.
Work (eventual, post-gate)
- Replace
read_dataframe/PGMDatasetwith frame-native loaders; convert_append_metadata/_validatepandas ops to numpy/frame operations.
Acceptance criteria (eventual)
- Historical path holds a frame, not a
PGMDataset;_append_metadata/_validateare pandas-free. - Parity: identical delivered output to today.
Dependencies / gate
Blocked on pipeline-core C-40 (#186/#207/#161/#159/#211). Independent of S1–S6.
Files
views_postprocessing/unfao/managers/unfao.py (_read_historical_data, _append_metadata, _validate).
Metadata
Metadata
Assignees
Labels
blockedBlocked on a dependency or decisionimplementationCode implementation workstoryA single reviewable unit of an epic
Activity
docs(risk-register): cross-link C-40 to the pandas-migration epic (#85)
Polichinel commentedon Jul 27, 2026
Delivered by #126 / PR #129 (2026-07-27) — closing as superseded-and-shipped. The historical inbound is frame-native:
_read_historical_datadispatches ondeclared_data_format, fetches aviews_frames.FeatureFramevia pipeline-core'sget_feature_frame(this repo is that path's first production consumer — the C-40 gate this issue waited on has lifted), clips frame-natively, and builds the artifact pandas-free with reader-level parity proven against a legacy characterization golden.read_dataframe/PGMDatasetremain only on the legacy-descriptor branch, which retires with the legacy forecast path post-run-0.🤖 Generated with Claude Code