Skip to content

Reuse an eligible passing receipt before loopzero check launches stages #1526

Not planned

Description

@eowca

Problem

A plain loopzero check launches the local gate even when the clean checkout already has a complete, compatible passing receipt. Readiness has a receipt validator, but cmd_check goes straight to sandbox.run_checks. Per-stage input reuse is narrower than full receipt reuse, and the host wrapper's separate pass cache does not cover all invocation identities. This is execution work beyond the status guidance in #1301.

Capacity evidence

From 25 Nov 03:28:50Z to 26 Nov 03:28:50Z, 38 executed loop-zero checks started after a clean pass at the same head. 37 also matched the logged base and command hash. Those 37 used 2.61 run-wall hours and 2.28 recorded CPU hours, 2.12% and 1.12% of the shared check-wrapper totals (123.05 wall hours and 203.25 recorded CPU hours). For example, #1210 at 3154582e2 passed by 00:33:58Z and ran for another 417s from 00:48:39Z with the same logged base and command. Historical receipt fingerprints are missing or overwritten, so this is the opportunity ceiling. A cache sample also showed base identity drift despite identical job-log fields.

Offline reproduction and acceptance

  • In an existing temp-repo CLI fixture, produce a valid clean passing receipt. Invoke plain check again at the same HEAD under identical effective settings. A stubbed stage runner currently sees another invocation.
  • Reuse the existing receipt validator before starting stages. When the current checkout and receipt qualify, report the accepted pass and preserve normal success/PR Validation behavior without executing a stage. A dirty checkout or stale, partial, missing, red or incompatible receipt still follows normal check behavior. Keep readiness trust and fingerprint checks intact.
  • Adapt existing coverage with net-zero test lines and unchanged behavioral coverage. Add no flags, config keys or state.

Activity

  1. eowca commented on Nov 26, 2026

    @eowca
    ContributorAuthor

    Parked (Lean178, 26 Nov): split PR #1587 (head 7b73e394) passed sandboxed and hosted checks and resolved all findings, but spent both review rounds without approval, and local readiness rejected the runner receipt fingerprint (under investigation separately). Net +40 src while src is near its cap. A future attempt needs a fresh primary review and should aim for net-zero source.

  2. eowca commented on Nov 26, 2026

    @eowca
    ContributorAuthor

    Lean reassessment after #1792 was parked (26 Nov).

    The last three attempts all stalled on the same point: how receipt reuse treats exclusion pathspecs (partial wildcards, unmatched exclusions), plus test growth while the test-line cap is full. The measured upside is capped at about 2% of check wall time (issue body).

    Ruling: one final, narrower scope.

    • Reuse a passing receipt only when the check has no exclusion pathspecs at all. With any exclusion, loopzero check runs as it does today. This removes the wildcard question rather than settling it.
    • Net-zero test lines: offset every added test line by deleting redundant ones in the same PR.
    • Same receipt-validity rules as readiness (head, base, command identity). No new flags or state.

    If review of that PR raises a blocking point beyond those three bullets, close #1526 as not worth its cost and record the 2% ceiling. Do not open another repair round. #1792 stays closed as superseded.

  3. loopzero-feder-positronics commented on Nov 26, 2026

    @loopzero-feder-positronics

    Closing as not planned under the scope reassessment. The final narrow attempt, PR #1796, passed its focused CLI tests and held test lines net zero. Its primary review found that an escaped comma in a positive Git attribute pathspec can be mistaken for an exclusion, preventing reuse. The repair would require broader pathspec parsing, so the draft is parked.

    The audit estimated an upper bound of about 2% of shared check wall time (2.12%, or 2.61 run-wall hours across 37 candidate repeats in 24 hours). Historical fingerprint evidence was incomplete, so this is a ceiling rather than measured recoverable savings.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions