Skip to content

fix(ci): avoid unnecessary mutation cache misses - #62

Merged
choskeli merged 3 commits into
mainfrom
fix/cache-admission-fallback
Oct 28, 2026
Merged

choskeli merged 3 commits into
mainfrom
fix/cache-admission-fallback

Conversation

@choskeli

@choskeli choskeli commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Two avoidable cache misses triggered fresh mutation work: a rejected exact own-PR cache prevented admission of an already downloaded compatible main baseline, and two editorial README files were still fingerprinted.

After own-PR admission fails, the runner now tries the existing main envelope before cleanup or cold routing. A valid authenticated main SHA is required, and the same input-key, source-identity and current-policy audit remain mandatory. The admitted source determines audit provenance. Valid PR reports stay preferred; forced runs and execution/audit failures retain their existing behavior.

Exclude only fuzz/README.md and scripts/schemas/cyclonedx-1.5/README.md. JSON schemas, fuzz resources, neighboring Markdown and all other existing executable inputs remain keyed. This adds a ten-line guarded retry, two declaration changes and two exact-path exclusions; it introduces no dependency analysis, transport search, cache engine or workflow change.

Validation:

  • Routing regression red run: 35/46 passed with 11 expected failures. Green: all 46 passed, plus one added final-audit rejection control (47/47).
  • Focused admission/promotion tests: 14/14; exact prose/input tests: 11/11 including the parent test. PR54 promotion bounds and cleanup ordering remain intact.
  • Short real Stryker/Vitest fixture: 15 scenarios with five mutants each passed in 58s. Both README edits preserve the key and reuse all five results; schema JSON and fuzz resource edits execute all five fresh. Existing proof/source/helper/config/lock controls remain.
  • Final refresh to main 273888b preserved the seven-file patch byte-for-byte; all 41 incoming paths exactly match main. The 58 routing/input tests and 14 admission/promotion tests passed on refreshed head 235c809, and independent integration review found no issues.
  • Independent Astra Ultra source review found no blockers. Formatting, lint, both TypeScript checks, 162 policy tests and build passed.
  • Standard local npm run check stopped on six previously observed Windows HTTP cleanup failures: 2,125 passed and 12 skipped. The complete cache/routing run separately retained the unchanged Windows chmod fingerprint failure (65/66). No unrelated assertions were changed.

The runner fixture mocks process/discovery/audit boundaries; the native toy proves native reuse and input invalidation, not hosted authentication or full production-parser acceptance. Required hosted exact-head CI 40633094641 passed: 34/34 jobs and 39/39 checks, including 733 tooling tests, 162 policy tests, all 15 native fixture scenarios, and the full parser collector (1,360 mutants, 100% adjusted). The tested synthetic merge tree matches reviewed head 235c809. The live route was cold after incompatible main admission; rejected-PR-to-valid-main fallback is covered by the harness, not claimed as live-transport coverage. No long exploratory mutation campaign, settings change or release action.

@choskeli
choskeli marked this pull request as ready for review October 28, 2026 04:36
@choskeli
choskeli merged commit 450daab into main Oct 28, 2026
40 checks passed
@choskeli
choskeli deleted the fix/cache-admission-fallback branch October 28, 2026 04:44
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.

1 participant