fix(serve): reclaim witness scratch after restart #139

Merged
iggy merged 4 commits from agent/witness-scratch-recovery-20260804 into main 2026-08-04 03:36:47 +00:00
Contributor

Live root cause: witness PVCs retained abandoned project-check-runs across daemon restarts. The stale trees consumed enough space to force cold fallbacks and false No-space code reds. This change adds startup-only scratch recovery, preserves the warm target/evidence, and fails startup if recovery cannot establish a safe disk state. It also disables incremental/full debug artifacts in the ephemeral 16 GiB CI test job after that runner independently hit ENOSPC.\n\nValidation: failing-first recovery test committed before implementation; local cargo execution is blocked by the shared-checkout safety hook, so Forgejo CI is the authoritative compile/test proof. YAML parsing and workflow mirror policy pass locally.

Live root cause: witness PVCs retained abandoned project-check-runs across daemon restarts. The stale trees consumed enough space to force cold fallbacks and false No-space code reds. This change adds startup-only scratch recovery, preserves the warm target/evidence, and fails startup if recovery cannot establish a safe disk state. It also disables incremental/full debug artifacts in the ephemeral 16 GiB CI test job after that runner independently hit ENOSPC.\n\nValidation: failing-first recovery test committed before implementation; local cargo execution is blocked by the shared-checkout safety hook, so Forgejo CI is the authoritative compile/test proof. YAML parsing and workflow mirror policy pass locally.
fix(ci): fit tests inside runner scratch
All checks were successful
ci / rust-analyzer latency harness (S1 / AC#2) (pull_request) Has been skipped
ci / clippy (pull_request) Successful in 1m23s
ci / test (pull_request) Successful in 9m36s
ci / build (pull_request) Successful in 9m49s
ci / fmt (pull_request) Successful in 11m44s
ci / lane policy mutation proof (pull_request) Successful in 11m53s
43690bad30
fix(ci): bound all Rust job artifacts
All checks were successful
ci / build (pull_request) Successful in 48s
ci / rust-analyzer latency harness (S1 / AC#2) (pull_request) Has been skipped
ci / lane policy mutation proof (pull_request) Successful in 3m31s
ci / clippy (pull_request) Successful in 5m36s
ci / fmt (pull_request) Successful in 6m37s
ci / test (pull_request) Successful in 12m40s
be66bb649c
iggy merged commit 17539207dd into main 2026-08-04 03:36:47 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
triform/cargoless!139
No description provided.