Skip to content

Reuse passing check receipts when inputs have no exclusions - #1796

Closed
eowca wants to merge 1 commit into
mainfrom
lean178/1526-no-exclusion-reuse
Closed

eowca wants to merge 1 commit into
mainfrom
lean178/1526-no-exclusion-reuse

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Closed following the #1526 decision and measured savings ceiling.

Closes #1526

Supersedes #1792 under the narrow scope ruling.

loopzero check reuses a passing receipt on a clean checkout if the existing readiness receipt validator accepts it and the trusted check plan contains no exclusion pathspec. Any exclusion follows the existing check execution path. The command uses the existing receipt and task-state lock, and adds no flags or state.

The existing offline CLI fixture covers a second successful check with no exclusion and with long-form and short-form exclusions. The size gate reports zero net test lines.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, codex, 2d7f77c, request_changes

Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by codex on 2d7f77cd4f6bd27c28135ac8a5f0437e72c2561b, 52.9s: request_changes (0 critical, 1 important, 0 suggestion)

Same-family fallback: independent reviewers failed: claude: not authenticated. Cross-family review is preferred.

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: 3f7ef24286b3838a4c5184454fd04cb3da5f5a6713da223905ad33879e8a6fed

Comment thread src/loopzero/cli.py
except sandbox.SandboxUnavailable as exc:
print(f"sandbox unavailable: {exc}", file=sys.stderr)
return 2
EXCLUSION_PATHSPEC = re.compile(r"^:(?:[/!^]*[!^]|\((?:[^,)]*,)*exclude(?:[,)]))")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

important: Respect escaped commas when detecting exclusion magic

Git accepts :(attr:foo=a\,exclude)README.md as a positive pathspec matching the attribute value a,exclude. The regex treats the escaped comma as a separator and exclude as a magic keyword, so every subsequent check reruns despite a clean checkout and a valid passing receipt. Parse long-form magic using Git’s escape rules and cover this positive case alongside the existing exclusion cases.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reuse an eligible passing receipt before loopzero check launches stages

1 participant