Skip to content

[#1086 slice 2] Dwell/sample count only candidate-executing runs; report NO_COVERAGE when none #1121

Open

Description

@don-petry

Story

As the canary release gate,
I want dwell and sample to count only runs that executed the candidate, and to report NO_COVERAGE when none did,
so that a tier nobody runs can no longer report a satisfied soak.

Slice 2 of #1086 (its AC1 + AC2). Blocked by slice 1 (see the Blocked-by line below), which provides the per-run attribution helper.

Acceptance Criteria

  1. _tier_sample counts only source-tier runs whose referenced_workflows commit equals the candidate, using slice 1's helper.
  2. A transition with zero candidate-executing runs reports a distinct state, NO_COVERAGE. It must never read as a clean soak, and the scheduled promote-all must not auto-advance it.
  3. Decide and document how NO_COVERAGE can be cleared: an explicit --override, or a member repo that actually runs the candidate. Do not silently fall back to membership counting.
  4. Regression test using Gate soak is vacuous: dwell/sample count runs from repos that are not executing the candidate — and dev-lead's 'next' tier is structurally unoccupiable (SC2 forbids its only member) #1086's recorded topology: candidate with zero occupants must not produce a satisfied dwell/sample; it reports NO_COVERAGE.
  5. shellcheck --severity=warning -x clean; tests registered in the existing bats job.

Dev Notes

  • Every consumer of _frontier_state's output (promote, promote-all, sync-issues dashboard and issues) must render the new state. Enumerate them first.

Blocked by #1120 (slice 1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug reports

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions