Skip to content

S1 — unfao/product.py + unfao/wire/naming.py: the declared FAO product and the Hop-B name templates #106

Closed

Description

@Polichinel

Part of epic #105 (ADR-013 Hop-B sink leg). No dependencies — first story.

Problem

Nothing in this repo declares the FAO delivery product (§4.2a: expected target set is views-postprocessing configuration), the §6 floor, the §4.1a consumer document name, or the §11.4 upload interlock. And the §4.1b Hop-B file-name templates exist only as fixture bytes.

Work

  • views_postprocessing/unfao/product.py — declared constants, never inferred: TARGETS = ("lr_ged_sb", "lr_ged_ns", "lr_ged_os") (§7a vocabulary), S_MIN = 2 (walking skeleton; production pinning is an OPEN maintainer item), CONSUMER_DOCUMENT_NAME = "un_fao" (§4.1a pin), UPLOAD_ENABLED = False (§11.4 interlock — overridable only by an explicit launch-config key, later story).
  • views_postprocessing/unfao/wire/__init__.py + wire/naming.py — §4.1b templates as functions: shard_name(run_id, target, time_id), run_manifest_name(run_id), sidecar_name(run_id). Locators only, never identity (§3.3 lesson).

Acceptance criteria

  • Golden-string tests reproduce the exact fixture file names (fixture_run_0__lr_ged_sb__m000543.arrow.parquet, fixture_run_0__manifest.json, fixture_run_0__sidecar.parquet).
  • product.UPLOAD_ENABLED is False asserted as a literal (the interlock's golden test seed).
  • Suite + design-contract tests green.

Tests: tests/test_product.py, tests/test_wire_naming.py. Oracle: tests/fixtures/wire_contract/SHA256SUMS names.

🤖 Generated with Claude Code

Activity

  1. added
    story
    implementation
    on Jul 19, 2026
  2. added a commit that references this issue on Jul 19, 2026
  3. Polichinel commented on Jul 31, 2026

    @Polichinel
    CollaboratorAuthor

    Shipped and proven by run-0. unfao/product.py (36 lines) and unfao/wire/naming.py (31 lines) exist on development, are covered by the wire test suite, and were exercised end-to-end in the first FAO global-land delivery on 2026-07-27 (run rusty_bucket_forecasting_20260727_095355: 108 shards, 1 sidecar, 1 manifest, 64,742 cells). Live API confirmed serving it 2026-07-31 (smoke test ALL PASS). Closed during the development→main cleanup sweep; reopen if anything here is unfinished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    implementationstory

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions