Repository navigation
validator: fail-hard wall clock on the validate job (timeout-minutes: 20) - #98
Conversation
… 20) Caps a provider-unanswered review at 20 minutes instead of burning the full 3x900s attempt budget (or the 360-minute GitHub default) with zero interim output. RCA: opencharly/opencharly#199. Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (syntax check only)
Review — BLOCKHead SHA: Change class: CI/workflow config — self-modifying guardrail ( Security screen: no T1–T3 finding. The diff adds only a comment block + Blocks
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: CI/workflow config — self-modifying guardrail ( Security screen: no T1–T3 finding. The diff adds only a comment block + Blocks
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
Wire AI_REVIEW_MAX_ATTEMPTS=1 (opencharly/plugin-review#5, engine PR opencharly/plugin-review#6; inert until the knob-carrying engine release is welded and TAG bumped) and restore the 300s attempt default. Also corrects the PR attribution tier to analysed on a live system. Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (analysed on a live system)
Review — BLOCKHead SHA: Change class: CI/workflow config — self-modifying guardrail ( Security screen: no T1–T3 finding. The diff does exactly what the body says (one job-level Blocks
Comments considered
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: CI/workflow config — self-modifying guardrail ( Security screen: no T1–T3 finding. The diff does exactly what the body says (one job-level Blocks
Comments considered
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
Fixes the round-2 verdict blocks: cumulative stat correction, 15-min current worst case (5-6 min post-activation), 13m19s reconciliation, knob-aware echo. Updates the offline harness pins (900s->300s defaults) and adds wall-clock + attempts coverage. Local harness: 107/107 PASS. Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (analysed on a live system)
Review — BLOCKHead SHA: Change class: CI/workflow config + its test harness — self-modifying guardrail ( Security screen: no T1–T3 exfiltration/weakening finding — all three changes are fail-closed (a cancelled job and a failed attempt each yield a RED required check, so none can manufacture a PASS). T4 applies (block 3). Blocks
Comments considered
Non-blocking: the new harness block at 4-space indent references Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: CI/workflow config + its test harness — self-modifying guardrail ( Security screen: no T1–T3 exfiltration/weakening finding — all three changes are fail-closed (a cancelled job and a failed attempt each yield a RED required check, so none can manufacture a PASS). T4 applies (block 3). Blocks
Comments considered
Non-blocking: the new harness block at 4-space indent references Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
The new AI_REVIEW_MAX_ATTEMPTS assertions reused ns_unset bound inside the preceding ATTEMPT_TIMEOUT guard; bind their own empty namespace so a missing TIMEOUT entry can never surface as NameError. Harness still 107/107 local. Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (analysed on a live system)
Review — BLOCKHead SHA: Change class: CI/workflow config + its offline test harness — self-modifying guardrail ( Security screen: no T1–T3 finding. The diff does what the body says (job-level Blocks
Comments considered
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: CI/workflow config + its offline test harness — self-modifying guardrail ( Security screen: no T1–T3 finding. The diff does what the body says (job-level Blocks
Comments considered
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: CI/workflow config + its offline test harness — self-modifying guardrail ( Security screen: no T1–T3 exfiltration / scope-mismatch / weakening finding. The diff does exactly what the body says (one job-level Blocks
Comments considered
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: CI/workflow config + its offline test harness — self-modifying guardrail ( Security screen: no T1–T3 exfiltration / scope-mismatch / weakening finding. The diff does exactly what the body says (one job-level Blocks
Comments considered
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
|
T4 maintainer sign-off — #98 I have reviewed this change at head
The change is fail-closed: a cancelled job and a failed attempt each yield a RED required check, so none can manufacture a PASS. It bounds a provider-unanswered burn without touching PASS/BLOCK/INCONCLUSIVE/AMBIGUOUS classification or auto-merge arming. Approved to merge once the required — atrawog |
Review — BLOCKHead SHA: Change class: CI/workflow config + its offline test harness — self-modifying guardrail ( Security screen: no T1–T3 finding — no secrets/egress/supply-chain change, the diff matches the body's accounting (2 files, +48/−12), and every change is fail-closed (a cancelled job, a timed-out attempt, and a single failed attempt each yield a RED required check, so none can manufacture a PASS). T4 applies (block 1). Blocks
Tool-limited: the harness run ( Comments considered
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: CI/workflow config + its offline test harness — self-modifying guardrail ( Security screen: no T1–T3 finding — no secrets/egress/supply-chain change, the diff matches the body's accounting (2 files, +48/−12), and every change is fail-closed (a cancelled job, a timed-out attempt, and a single failed attempt each yield a RED required check, so none can manufacture a PASS). T4 applies (block 1). Blocks
Tool-limited: the harness run ( Comments considered
Verdict: BLOCK ollama/deepseek-v4.1-flash — action-review. |
Distinguish observed REVIEWS (38s-13m19s) from the single 43m54s provider-unanswered burn the cap exists to kill (run 34688719317, INCONCLUSIVE). Fixes the R1 comment-vs-paste divergence. Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (analysed on a live system)
Review — PASSHead SHA: Security screen: PASS — T4 self-modifying-guardrail change is fail-closed (a cancelled job, a timed-out attempt, and a single failed attempt each yield a RED required check, so none can manufacture a PASS), matches its stated intent exactly, and carries explicit maintainer sign-off at this head (atrawog, 2026-09-12T11:32Z). Verdict: PASS ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Security screen: PASS — T4 self-modifying-guardrail change is fail-closed (a cancelled job, a timed-out attempt, and a single failed attempt each yield a RED required check, so none can manufacture a PASS), matches its stated intent exactly, and carries explicit maintainer sign-off at this head (atrawog, 2026-09-12T11:32Z). Verdict: PASS ollama/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: CI/workflow config + its offline test harness — self-modifying guardrail (T4). Placement: N/A — no Security screen: PASS — T1/T2 clean (no embedded directive aimed at the validator; body treated as data). T3: no secrets/egress/supply-chain change; the diff matches the body's accounting (2 files, +49/−12 = meta); every change is fail-closed — a cancelled job, a timed-out attempt, and a single failed attempt each yield a RED required check, so none can manufacture a PASS. T4: explicit maintainer sign-off is recorded at this head (atrawog, 2026-09-12T11:32Z, "T4 maintainer sign-off — #98", reviewed at Verdict: PASS ollama/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Change class: CI/workflow config + its offline test harness — self-modifying guardrail (T4). Placement: N/A — no Security screen: PASS — T1/T2 clean (no embedded directive aimed at the validator; body treated as data). T3: no secrets/egress/supply-chain change; the diff matches the body's accounting (2 files, +49/−12 = meta); every change is fail-closed — a cancelled job, a timed-out attempt, and a single failed attempt each yield a RED required check, so none can manufacture a PASS. T4: explicit maintainer sign-off is recorded at this head (atrawog, 2026-09-12T11:32Z, "T4 maintainer sign-off — #98", reviewed at Verdict: PASS ollama/deepseek-v4.1-flash — action-review. |
Summary
Fail-hard wall clock + zero retries for the reusable
charly/pr-validatorgate (5 commits, 2 files, +49/−12):timeout-minutes: 20on thevalidatejob — GitHub cancels past the cap; the required check goes RED fast instead of hanging pending.AI_REVIEW_MAX_ATTEMPTS: 1(default org-wide; any repo may opt back via its own var) — a failed first attempt is terminal, no repeat cycle. INERT until the engine release carrying the knob is welded and TAG is bumped (Attempt loop has no fail-fast: hardcoded 3 whole-loop retries burn 45+ min on provider-unanswered plugin-review#5, engine PR review: AI_REVIEW_MAX_ATTEMPTS knob, fail-hard single attempt plugin-review#6); the pinned bundle ignores unknown env.900→300(the plugin's own built-in default,review.go:28): no recorded generation needing >5 min ever succeeded — the failures are generations that NEVER answer — so the cap is a deadline, not a budget. Stays org-overridable via repo vars..github/tests/validator-gate-harness.py) updated to the new intent: 900s pins → 300s, plus new wall-clock (timeout-minutes: 20present) and attempts (unset→1, set→value) coverage. Behavior pins move with the behavior, deliberately, in the same diff.NameErrorinstead of a clean failure).34688719317, classified INCONCLUSIVE) — the comment no longer says "observed runs" while the paste shows a 43m54s run.Honest worst-case accounting (correcting v2's headline): this PR as merged delivers 15 min worst case (3×300s while the pinned bundle still retries) with the 20-min outer as backstop; ~5–6 min once the knob activates post-release + TAG bump. The INCONCLUSIVE echo is now knob-aware ("up to AI_REVIEW_MAX_ATTEMPTS times") instead of hardcoding "3 times".
PASS/BLOCK/INCONCLUSIVE/AMBIGUOUS classification, fail-closed invariants, and auto-merge arming are untouched: a cancelled or single-failed run carries no verdict and can only red, never pass.
How tested
YAML validation, real command + output (author clone at the PR head):
Offline harness — the exact gate that failed on the previous head — real command + output (local, same stdlib harness CI runs):
It failed pre-fix with exactly 2 FAILs (900s pins vs the new 300s behavior); post-fix 107/107 green, including the 2 new fail-fast assertions.
Gate-load evidence, real command + output (live
ghagainst the org):Observed runs conclude in 38s–13m19s; the 13m19s run FAILED — even the slowest observed run, failure included, fits inside 20 with margin, so 20 ≈ 1.5x the slowest review ever measured. Durations paste (default
gh run listformat carries elapsed time — the--jsonpaste above cannot show it):Reading it: validator reviews complete in 38s–13m19s (the 43m54s row is run
34688719317's provider-unanswered burn, classified INCONCLUSIVE in that PR's thread — the failure mode this PR kills, not a review).R1 on the pasted failures: the two
failureruns above (34686543034,34682099410) are PR #198's sync-evidence BLOCKs (disjoint paste, missing tier/compliance sections, unverifiabledotgithubbump — read in full in that PR's thread), a body-evidence class distinct from the provider-unanswered burn this PR addresses. Noflake / transientframing: named runs, named findings, separate defects.N/A — workflow config, no runtime target: no disposable bed, no fresh rebuild, no binary exercise applies to a YAML-only gate change. The timeout path itself cannot execute live (it only fires on a stuck provider), so live execution caps at the evidence above.
Post-commit check:
git show --stat HEADlists exactly.github/workflows/pr-validator.yml | 9 +++++----;git status --shortclean; push fast-forwarded append-only (no force). Cumulative branch diff: 2 files, +49/−12 overmain.Rulebook compliance
b98ff10). The agent authored but did not land; the merge follows the green required check. No admin/force bypass./charly-internals:git-workflow(append-only review rounds, freeze-head-then-write discipline) and the failure evidence behind the change;timeout-minutessemantics verified against the GitHub workflow-syntax reference (job cancelled at cap, default 360), not assumed.validator-harness) root-caused to its 900s pins and updated, proven by the local 107/107 run above.gh workflow run pr-validator.yml -f pr-number=<N>).900s-default claim swept in the same diff — workflow comments, INCONCLUSIVE echo, and harness pins. Sweep executed, pasted verbatim (only CHANGELOG history survives, which is immutable record, not live claim):feat/branch, status checked, no force-push, no direct push tomain, PR-only.Change classification
.github/workflows/pr-validator.yml,.github/tests/validator-gate-harness.py; no review logic, classification, permission, or auto-merge changes).yaml.safe_load+ localvalidator-gate-harness.py107/107 + liveghevidence (all pasted) + this PR's own validator run (self-gating repo).ghevidence ran live with retained output; the 20-min cancellation path itself cannot execute live — that is the ceiling).Assisted-by: opencode opencode-go/muse-spark-1.3-contributor (analysed on a live system)