Skip to content

[Task] L1 follow-ups: label synthetic seed reports and verify an uncached app-stack image rebuild #103

Open

Description

@DavidVFitzGerald

Delivery phase

Local MVP hardening (follow-up to L1 #96 QA, non-blocking notes 7 and 8). The maintainer requested an issue on 2026-11-16.

Goal

Make the synthetic seed's audit reports read as synthetic, and prove that the app-stack images build without the shared host build cache.

Context and authority

  • Note 7. data_pipeline/src/lca_etl/reports.py:470 always titles the summary "# Private import report". The committed synthetic seed artifact (data_pipeline/seed/artifact/reports/summary.md and reports/*.csv) therefore carries that title, although the data is invented and public. This can confuse readers. Real BAFU reports must keep their private labelling.
  • Note 8. L1 QA reused host build-cache layers and did not run a --no-cache rebuild of the compose.app.yaml images (tools, api, auth, frontend). Hidden dependencies on the cache were therefore not ruled out.
  • Relevant documents: specification §0.3 and §3.1; ADR 0006; docs/engineering/b3-ingestion.md.

Requirements and constraints

  • Mark the seed's reports as synthetic/public without weakening the private-report behavior for real imports. Preferred: a report-title option set only by the seed build. The artifact is regenerated with python -m lca_etl.seed build in a container, and must stay deterministic and bound to its sources.
  • Never commit private data.
  • Rebuild the app-stack images with --no-cache from a clean clone, start the stack with ./dev app-up, and run ./dev app-smoke. Fix any Dockerfile or context defect found.

Acceptance criteria

  • AC1 — The committed seed reports no longer claim to be a private import report. Real-import reports are unchanged, and a test covers both.
  • AC2 — The seed tests (make backend-test-seed) pass, and the regenerated artifact is reproducible byte for byte.
  • AC3 — A clean-clone --no-cache build of every compose.app.yaml image, followed by ./dev app-up and ./dev app-smoke, succeeds. The exact commands and results are recorded.

Out of scope and follow-ups

The L2 #97 adapter work, and the #101 tooling hardening.

Verification plan

All in containers:

  • ./dev publication-run make backend-test-seed
  • the seed regeneration check
  • a docker compose -p <isolated> -f compose.app.yaml build --no-cache equivalent through ./dev on distinct ports and project, then ./dev app-up and ./dev app-smoke

Dependencies and readiness

Does not block L2. Schedule it after #97 to avoid conflicts in the seed and compose files, unless PM grooms it otherwise. Needs PM grooming to READY.

Activity

  1. added
    task
    on Nov 16, 2026
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

    task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions