ci: enforce functional Forgejo checks and isolate build inputs (#1400) #1414

Merged
PlasticDigits merged 5 commits from fix/issue-1400-functional-ci into main 2026-10-06 02:19:17 +00:00
Owner

What

The required Forgejo check currently covers only secrets, while executable caches and mutable image tags leave functional regressions and build-input trust unenforced. This adds every-PR contract/frontend/indexer/Postgres jobs, a signed immutable configuration service to keep policy outside PR control, fresh executable state, protected-default-branch publication rules, digest-pinned images and verified build receipts.

It also repairs the discovery negative-cache collision and a selector blur callback found during full-suite retesting. Third-party LocalTerra fixtures use exact locked Git revisions and isolated optimizer volumes.

Why

Refs #1400. Genuine hosted green/red enforcement receipts are complete. Scheduled LocalTerra execution and native release reproduction remain explicitly unverified.

Testing

  • make verify-issue-1400: 9 PASS, 0 FAIL, 0 SKIP; 10 runner and 8 supply tests repeated, policy image/tests built.
  • Contracts: 884 tests twice; indexer library: 470 tests three times; discovery tests: 20 parallel repeats.
  • Frontend: 352 files / 3,069 tests; lint, cold production build and no sourcemaps; corrected affected tests retested.
  • Fresh isolated PostgreSQL 16.15: 63 critical integration tests twice (security, hooks, route tax, ingestion).
  • 13 registry-verified image pins. Final cold optimizer receipt verified; 13 wasm hashes match the independent first cold compiler outputs.
  • Signed policy container health/hash and unsigned-request rejection; tracked/staged gitleaks and commit hooks pass.
  • Actual signed exclusive policy deployed from immutable reviewed commit; genuine green pipeline 307 and deliberate-red pipelines 306/308/309/310 prove the configured required context. All test drafts closed without merging.
  • Scheduled dedicated LocalTerra signing/rollback execution and native release reproduction: unverified. Native cold build exceeded the resource bound; no artifact accepted.

Checklist / issue criteria

  • AC1: real contract/frontend/indexer assertion failures and deleted policy mirrors produce genuine failed required contexts; complete hosted matrix is genuinely green.
  • AC2: executable cache isolation implemented and synthetic contamination/reuse checks pass; live runner readback is a separate scope.
  • AC3: reviewed immutable image inputs and source/lock/toolchain/output receipts implemented and verified for optimized wasm.
  • AC4: explicit daily 03:00 UTC and pre-release critical LocalTerra policy, finite resources and maintaining-agent failure ownership documented. Scheduler installation/execution remains unverified; no full-browser-suite CI claim.
  • No credentials or private keys committed; the public policy signing key is intentionally pinned.
  • Invariants, documentation and agent instructions crosslinked.

Agent verification instructions and explicit skip-to-overall-implementation-PASS policy: checklist, evidence, CI1400 invariants. Run available checks first. Record unavailable items as SKIP with scope/reason, leave their criteria unverified, and keep executed failures as FAIL. No fabricated statuses, forced merge or production deployment acceptance from source checks.

Live evidence: green matrix, deleted policy, contract assertion, frontend assertion, indexer assertion. Policy hash, status provenance, exact commits, failures, source results and limits are recorded under docs/qa/issue-1400.

Final documentation/evidence head c95cba3f91 also has genuine green pipeline 311, completing a hosted full-matrix retest. All four synthetic negative drafts are closed without merging.

## What The required Forgejo check currently covers only secrets, while executable caches and mutable image tags leave functional regressions and build-input trust unenforced. This adds every-PR contract/frontend/indexer/Postgres jobs, a signed immutable configuration service to keep policy outside PR control, fresh executable state, protected-default-branch publication rules, digest-pinned images and verified build receipts. It also repairs the discovery negative-cache collision and a selector blur callback found during full-suite retesting. Third-party LocalTerra fixtures use exact locked Git revisions and isolated optimizer volumes. ## Why Refs #1400. Genuine hosted green/red enforcement receipts are complete. Scheduled LocalTerra execution and native release reproduction remain explicitly unverified. ## Testing - [x] `make verify-issue-1400`: 9 PASS, 0 FAIL, 0 SKIP; 10 runner and 8 supply tests repeated, policy image/tests built. - [x] Contracts: 884 tests twice; indexer library: 470 tests three times; discovery tests: 20 parallel repeats. - [x] Frontend: 352 files / 3,069 tests; lint, cold production build and no sourcemaps; corrected affected tests retested. - [x] Fresh isolated PostgreSQL 16.15: 63 critical integration tests twice (security, hooks, route tax, ingestion). - [x] 13 registry-verified image pins. Final cold optimizer receipt verified; 13 wasm hashes match the independent first cold compiler outputs. - [x] Signed policy container health/hash and unsigned-request rejection; tracked/staged gitleaks and commit hooks pass. - [ ] Actual signed exclusive policy deployed from immutable reviewed commit; genuine green pipeline 307 and deliberate-red pipelines 306/308/309/310 prove the configured required context. All test drafts closed without merging. - [ ] Scheduled dedicated LocalTerra signing/rollback execution and native release reproduction: unverified. Native cold build exceeded the resource bound; no artifact accepted. ## Checklist / issue criteria - [x] AC1: real contract/frontend/indexer assertion failures and deleted policy mirrors produce genuine failed required contexts; complete hosted matrix is genuinely green. - [x] AC2: executable cache isolation implemented and synthetic contamination/reuse checks pass; live runner readback is a separate scope. - [x] AC3: reviewed immutable image inputs and source/lock/toolchain/output receipts implemented and verified for optimized wasm. - [x] AC4: explicit daily 03:00 UTC and pre-release critical LocalTerra policy, finite resources and maintaining-agent failure ownership documented. Scheduler installation/execution remains unverified; no full-browser-suite CI claim. - [x] No credentials or private keys committed; the public policy signing key is intentionally pinned. - [x] Invariants, documentation and agent instructions crosslinked. Agent verification instructions and explicit skip-to-overall-implementation-PASS policy: [checklist](docs/qa/issue-1400/README.md), [evidence](docs/qa/issue-1400/verification.md), [CI1400 invariants](skills/AGENTS_FORGEJO_FUNCTIONAL_CI.md). Run available checks first. Record unavailable items as SKIP with scope/reason, leave their criteria unverified, and keep executed failures as FAIL. No fabricated statuses, forced merge or production deployment acceptance from source checks. Live evidence: [green matrix](https://ci.cl8y.com/repos/7/pipeline/307/1), [deleted policy](https://ci.cl8y.com/repos/7/pipeline/306/1), [contract assertion](https://ci.cl8y.com/repos/7/pipeline/308/1), [frontend assertion](https://ci.cl8y.com/repos/7/pipeline/309/1), [indexer assertion](https://ci.cl8y.com/repos/7/pipeline/310/1). Policy hash, status provenance, exact commits, failures, source results and limits are recorded under docs/qa/issue-1400. Final documentation/evidence head c95cba3f91f047cf11694b59a1af956b4e945454 also has genuine green [pipeline 311](https://ci.cl8y.com/repos/7/pipeline/311/1), completing a hosted full-matrix retest. All four synthetic negative drafts are closed without merging.
Serve signed immutable Woodpecker policy, pin build images, and record cold build provenance. Repair discovery cache isolation and selector timer regressions exposed by full verification.
docs: record completed issue 1400 verification
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
c9567587b9
ci: handle minimal Rust images and reject deleted policy mirrors
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
9ef0548a50
docs: record genuine functional CI enforcement receipts
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
c95cba3f91
Combine functional CI with bounded discovery and security fixes [skip ci]
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
0eb064e6cc
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/cl8y-dex-terraclassic!1414
No description provided.