Nightly harness: scan the built agent image against the fixture corpus and assert golden baselines #188

Closed
opened 2026-07-16 22:16:33 +00:00 by sharang · 0 comments
Owner

Part of #309. (Rewritten 2026-09-21. The original story, "nightly regression against the demo targets", is folded in.)

What

  • Replace the current nightly job, which only runs the stale e2e suite (#298) and so is always red, with:
    • start the built agent image (:latest, later :sha-… from MVP-4.1), plus Mongo, in CI;
    • seed the fixture corpus through the public API: git fixtures from a public host (the SSRF guard blocks internal ones), archive fixtures by upload;
    • wait for every scan run, then diff the results against golden baselines.
  • Baseline format, one file per fixture:
    • exact: SBOM components, rule ids, planted secrets, stage statuses;
    • at_least: CVE ids, semgrep auto rules (downloaded at scan time);
    • ignored: LLM triage and code review, which run but never gate.
  • Tooling: a bless command regenerates baselines after an intended change, and the diff shows in review.
  • Failure handling:
    • alert through the existing notification path;
    • keep the full scan output as a job artifact.
  • Budget: under 30 minutes, fixtures scanned in parallel within SCAN_CONCURRENCY.

Starts with the existing demo targets (2 PLC, 1 web backend, 1 Zephyr). The fixture issues in #309 add the rest.

Acceptance

  • Runs nightly and on demand.
  • A deliberately broken pipeline stage fails it.
  • The old e2e job is gone, and #298 is resolved or re-scoped.
Part of #309. (Rewritten 2026-09-21. The original story, "nightly regression against the demo targets", is folded in.) **What** - **Replace** the current nightly job, which only runs the stale e2e suite (#298) and so is always red, with: - start the **built agent image** (`:latest`, later `:sha-…` from MVP-4.1), plus Mongo, in CI; - seed the fixture corpus through the public API: git fixtures from a **public** host (the SSRF guard blocks internal ones), archive fixtures by upload; - wait for every scan run, then diff the results against golden baselines. - **Baseline format**, one file per fixture: - `exact`: SBOM components, rule ids, planted secrets, stage statuses; - `at_least`: CVE ids, semgrep auto rules (downloaded at scan time); - `ignored`: LLM triage and code review, which run but never gate. - **Tooling:** a `bless` command regenerates baselines after an intended change, and the diff shows in review. - **Failure handling:** - alert through the existing notification path; - keep the full scan output as a job artifact. - **Budget:** under 30 minutes, fixtures scanned in parallel within `SCAN_CONCURRENCY`. **Starts with** the existing demo targets (2 PLC, 1 web backend, 1 Zephyr). The fixture issues in #309 add the rest. **Acceptance** - Runs nightly and on demand. - A deliberately broken pipeline stage fails it. - The old e2e job is gone, and #298 is resolved or re-scoped.
sharang added the enhancementonboarding labels 2026-07-16 22:16:33 +00:00
sharang added this to the Production MVP milestone 2026-09-20 20:20:06 +00:00
sharang changed title from STORY · Nightly agent regression against the demo targets to Nightly harness: scan the built agent image against the fixture corpus and assert golden baselines 2026-09-21 17:08:46 +00:00
sharang added infrastructure and removed onboarding labels 2026-09-21 17:08:58 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#188