Skip to content

validator: pass AI_REVIEW_ATTEMPT_TIMEOUT through (org-settable) + correct the guardrail RCA - #96

Merged
github-actions[bot] merged 5 commits into
mainfrom
feat/ai-review-attempt-timeout
Sep 12, 2026
Merged

github-actions[bot] merged 5 commits into
mainfrom
feat/ai-review-attempt-timeout

Conversation

@atrawog

@atrawog atrawog commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

Two coupled edits in the org-wide merge guardrail, .github/workflows/pr-validator.yml, plus its in-repo coverage.

(a) Pass the review attempt cap through — the fix.

plugin-review has always read an attempt cap: candy/plugin-review/review.go:102 parses AI_REVIEW_ATTEMPT_TIMEOUT (seconds) into cfg.AttemptTimeout, which becomes the review's http.Client{Timeout} (candy/plugin-review/llm.go:80); the built-in default is defaultAttemptTimeout = 5 * time.Minute (review.go:28). This workflow passed every other AI_REVIEW_* value but never this one, so every org run was pinned to 5 minutes per request and no operator could raise it without a code change — the no-verdict signature measured in #91 (~20m43s, exit 1, required check RED). One env entry fixes that:

AI_REVIEW_ATTEMPT_TIMEOUT: ${{ vars.AI_REVIEW_ATTEMPT_TIMEOUT || '900' }}
  • Operator lever: org-level variable AI_REVIEW_ATTEMPT_TIMEOUT (Settings → Secrets and variables → Actions, visibility all — the same place as the other AI_REVIEW_* values), in seconds. No code change, no consumer-repo change.
  • Why the default is generous (900 s = 15 min): the measured failure is a slow legitimate large-context generation, not a hang. The cap bounds ONE http.Client.Timeout, and plugin-review's attempt count is its own fixed 3, so the worst case stays bounded (3 × cap). The old 5-minute behaviour stays reachable by setting the variable lower (e.g. 300).
  • No retry, no sleep (R4): the workflow still retries nothing; it stops discarding a value the plugin already reads.

(b) Correct the guardrail RCA — required for internal consistency with (a).

The workflow header still carried the superseded 2026-09-11 "throttled datacenter egress" diagnosis, which explicitly stated that "Neither a longer AI_REVIEW_ATTEMPT_TIMEOUT nor an in-job retry can cure this" — i.e. it disclaimed the exact knob (a) adds. The corrected RCA is recorded in #91: the request is non-streaming (llm.go:92, no stream:true), so response headers arrive only after the whole generation, all under one http.Client{Timeout}; the review runs a 20-turn tool loop that appends every turn's tool results (the PR diff/files) to the context and retries the whole loop 3 times — so turn 1 completes and turn 2 — carrying the enlarged context — fails in ONE OF TWO OBSERVED ways: it returns EMPTY content (turn 2: final content len=0, review_len=0; observed on 2 of the 3 attempts in run 34682776608) or it exceeds the 5-minute cap (Client.Timeout exceeded while awaiting headers; observed on the third). Both are one defect class — an unbounded, non-streaming request whose context grew — and the fix covers both. The earlier text here claimed the deadline occurred "identically on all 3 attempts", which contradicted this PR's own pasted log; corrected. The endpoint was never the problem (it answered 405 in 0.18 s in the same window, and the runner received a complete turn-1 response). Contributing client-side defects: no explicit http.Transport, unbounded tool-result payloads, and a whole-loop retry. The same false RCA was also posted on every INCONCLUSIVE PR by the Gate (inconclusive) comment body — corrected there too, and the invented "validator-egress hardening batch" remedy is deleted, not parked.

Files in the diff (nothing else):

  • .github/workflows/pr-validator.yml — (a) the env entry; (b) the header RCA block replaced with the corrected RCA, the review-step no-retry comment de-egressed, and the Gate (inconclusive) comment body + its ::error:: line corrected.
  • .github/tests/validator-gate-harness.py — the structural assertions, the functional env-resolution and classification assertions, the engine-defective scenario, and the INCONCLUSIVE scenario needles updated to the corrected text (including a negative assertion that the throttled-egress RCA is gone); its docstring now records the exclusive-lock guard (LOCK_WAIT_SECONDS + fail-fast) that replaced the old "never run two instances concurrently" warning.
  • .gitignore (new) — __pycache__/ and *.pyc, so running the harness can never ship bytecode again (see the R8 row).

No dispatcher change is needed and none is made: pr-validator-dispatcher.yml, the root org-wide-pr-validator-dispatcher.yml template, tag-on-merge*.yml and validator-harness.yml only call the reusable workflow or run the offline harness — none of them runs the review step, and this repo has no sibling ai-review workflow. The value is resolved from the org variable inside the called workflow, the same mechanism this file already uses for vars.REVIEW_RUNNER_LABEL, vars.CHARLY_VERSION and vars.AI_REVIEW_MAX_TURNS (|| '20'), none of which has a workflow_call input. Adding an unused input would be a second, redundant path to one knob (R3).

Change class

How R10-tested — the exact gate, commands, and pasted output

  • The gate for this change class: no charly check bed exists for the .github repo's workflows, and none is claimed. The applicable gate is the repo's own committed coverage gate — the offline validator-gate-harness.py, run in CI by validator-harness.yml on every PR — plus a YAML parse. It drives the workflow's REAL run: bodies (the decision chain) against fakes for charly/gh.
  • Commands + output from the final committed tree (head 7903e13, the branch tip):
$ python3 -m py_compile .github/tests/validator-gate-harness.py
py_compile OK

$ python3 -c "import yaml; d=yaml.safe_load(open('.github/workflows/pr-validator.yml')); print('yaml OK', list(d.keys()))"
yaml OK ['name', True, 'permissions', 'jobs']

$ python3 .github/tests/validator-gate-harness.py; echo "harness exit=$?"
scenarios: 8    assertions: 103
ALL PASS: 103 assertions across 8 scenarios, run against the real workflow run: bodies (fakes for charly and gh).
Coverage is WIRED IN: .github/workflows/validator-harness.yml runs this harness on every pull_request and on workflow_dispatch.
harness exit=0
  • Discriminator — the new assertions FAIL on the pre-fix workflow (re-verified against the current origin/main workflow on 2026-09-12):
$ cd <worktree> && python3 .github/tests/validator-gate-harness.py; echo "pre-fix harness exit=$?"
pre-fix harness exit=1
FAILED assertions (12 — INCLUDING the functional ones added at 2b9c0cd and the scenario added at 33138a0):
  - structural: header names the CORRECTED root cause (a non-streaming, whole-generation HTTP deadline)
  - structural: the superseded throttled-egress RCA is GONE from the workflow (corrected 2026-09-12 by opencharly/.github#91)
  - structural: header routes the durable per-turn fix to its owner (plugin-review)
  - structural: header documents the org-settable cap lever this workflow passes through
  - functional: the review step EXPORTS AI_REVIEW_ATTEMPT_TIMEOUT for the plugin (pre-fix tree exported nothing, so no cap could ever be raised)
  - structural: the engine-defective classification is DERIVED from the run's own signature (a completed turn 1) - pre-fix: absent, so every verdict-less run was labelled provider-unanswered
  - scenario provider-unanswered: comment body contains 'NON-STREAMING'
  - scenario provider-unanswered: comment body contains '900s default'
  - scenario provider-unanswered: comment body contains 'FAILED TURN'
  - scenario engine-defective: review output engine_defective=None == expected 'true'
  - scenario engine-defective: comment body contains 'engine-defective (the review engine'
  - scenario engine-defective: comment body contains 'T13 engine-change exception'

On the final tree the same harness reports:

$ python3 .github/tests/validator-gate-harness.py; echo "harness exit=$?"
scenarios: 8    assertions: 103
ALL PASS: 103 assertions across 8 scenarios, run against the real workflow run: bodies (fakes for charly and gh).
harness exit=0
  • Did the changed path execute? Yes. The harness substitutes the review step's env: exactly as GitHub does and passes it to the real review body. Driven through the harness's own parser/resolver:
review env: AI_REVIEW_ATTEMPT_TIMEOUT = ${{ vars.AI_REVIEW_ATTEMPT_TIMEOUT || '900' }}
resolved, org var unset -> 900
resolved, org var=120  -> 120

i.e. the workflow now exports a real, operator-controlled value where it previously exported nothing; and the three INCONCLUSIVE scenarios assert the corrected comment text end to end (exit 3, comment posted, auto-merge NOT armed).

  • Fresh rebuild / disposable target / concurrency: N/A — no binary, no bed, no deploy in this diff.

How tested — the YAML parse and the essential diff

@@ .github/workflows/pr-validator.yml  (the fix — review step env:)
+          AI_REVIEW_ATTEMPT_TIMEOUT: ${{ vars.AI_REVIEW_ATTEMPT_TIMEOUT || '900' }}

@@ the guardrail header: the 2026-09-11 throttled-egress RCA block is REPLACED by
@@ the corrected RCA (non-streaming whole-generation deadline + the two fix halves).
@@ Gate (inconclusive): the egress class string, root-cause paragraph, remedy list and
@@ ::error line are corrected; the "validator-egress hardening batch" remedy is deleted.

git diff --stat origin/main..HEAD → .github/tests/validator-gate-harness.py, .github/workflows/pr-validator.yml, .gitignore (3 files changed, 195 insertions(+), 71 deletions(-), re-run on head 7903e13). Commits on this branch: 9f84495 (RCA correction), 399fdd5 (T13 + engine-defective), 2b9c0cd (T2/T4 coverage + race), 33138a0 (the engine-defective scenario + the both-branches echo), 7903e13 (drop the accidental __pycache__ + .gitignore).

Harness rulebook compliance

  • R0 skills: /charly-internals:git-workflow (feat/ branch, PR-only, no force-push, no direct push to main) + the harness-as-R10 pattern precedented by validator: INCONCLUSIVE class (no retry) + fail-closed on non-zero review exit + harness wired into CI — v4 (supersedes #94/#93) #95.
  • R1 RCA + zero warnings: the correction is root-caused from the SOURCE (review.go:28,102, llm.go:80,92), not from a plausible story, and the superseded diagnosis is REMOVED rather than left beside the fix. Gate output has zero warnings (harness 103/103 across 8 scenarios, exit 0, yaml.safe_load clean, py_compile clean; no lint config exists in this repo). One anomaly surfaced during verification is root-caused and fixed: two harness instances run concurrently race on the shared /tmp/review.log (each removes it before/after every scenario, deleting the sibling's file mid-scenario) — now fixed at the root: the harness takes an EXCLUSIVE LOCK (LOCK_WAIT_SECONDS=600) for the whole run, so a second instance serializes behind it and fails fast with the reason if the holder never releases — proven by running two instances concurrently, both exiting 0.
  • R2 no out-of-scope: the false RCA is swept in full — header, the posted PR comment, and the harness assertions/docstring — in this same commit; the batch it invented is deleted, not deferred.
  • R3 no duplication: one resolution path for the cap; no new workflow_call input that no caller needs; one coverage file.
  • R4 no workaround: no sleep, no retry, no in-job re-run, no re-run-and-see; the variable is plugin-review's own supported interface and the only literal is the named, documented 900 s default.
  • R5 hard cutover: the superseded RCA text is deleted everywhere it appeared (sweep below) and a negative assertion keeps it deleted.
  • R6 git safety: git fetch origin main + rev-parse before branching (base == current origin/main; no upstream movement on the touched files); 5 self-contained commits (9f84495 RCA correction · 399fdd5 T13 + engine-defective · 2b9c0cd T2/T4 coverage + race · 33138a0 the engine-defective scenario + the both-branches echo · 7903e13 drop the accidental __pycache__ + .gitignore) — the tip is 7903e13, and the intended squash collapses them; fast-forward push on a fresh branch; never pushed to main; no force-push in this branch's history.
  • R7 runtime gate: N/A — no runtime code path in this repo (workflow + offline harness only).
  • R8 artifact invariants: the diff carries an artifact-hygiene change rather than a generated artifact: an earlier commit on this branch accidentally tracked 40 KB of CPython bytecode (__pycache__/validator-gate-harness.cpython-314.pyc) produced by running the harness; it is removed and untracked, and the new .gitignore (__pycache__/, *.pyc) prevents recurrence. No other generated artifact is in the diff.
  • R9 binary == source + deps: N/A — the plugin-reading half lives in opencharly/plugin-review (unchanged); this repo only passes the env.
  • R10 fresh disposable proof + coverage: the repo's committed coverage ran from the final committed tree (103/103 assertions across 8 scenarios, exit 0) and is CI-wired; the new assertions FAIL on the pre-fix tree (discriminator above), so the coverage is load-bearing, not decorative.
  • RDD / ADE / SDD: N/A — no candy, no schema, no CUE.
  • Kernel/plugin boundary law, disposable-only autonomy, clean architecture + Go gates: N/A — no Go, no candy, no deploy.
  • B15 no half-landed work: every open review finding is fixed in this branch (T2 coverage, T4 race, R1 RCA accuracy, A1 body) — no Phase 2 / TODO / "follow-up PR" left in scope; the branch tip is the reviewed state.
  • CHANGELOG: N/A — the merge-time tag-on-merge workflow writes CHANGELOG/<CalVer>.md from this PR body.

Forbidden-framing sweep (executed, pasted):

$ grep -rn "validator-egress hardening\|throttles/blocks datacenter/shared runner\|Neither a longer AI_REVIEW\|INTERMITTENT and LOAD" .github/
.github/tests/validator-gate-harness.py:599:    note("throttles/blocks datacenter/shared runner egress" not in text,

The single hit is the NEGATIVE assertion that keeps the old RCA out — no stale claim survives in either file.

Change classification

  • Change class: hook/workflow — the org-wide charly/pr-validator guardrail + its in-repo coverage harness.
  • Verification gate: the repo's non-runtime standards — the CI-wired validator-gate-harness.py on the final tree (103/103 assertions across 8 scenarios, exit 0), the pre-fix discriminator, yaml.safe_load, py_compile, and the env-resolution proof. No bed is claimed.
  • Attribution tier: analysed on a live system — every changed path in the diff executed (the harness drives the real review/parse/gate bodies with the new env and the corrected comment text, output above); the full org gate for THIS PR is the fresh charly/pr-validator run on this head, which has not happened yet.

Operator direction (T4)

This file is the org-wide merge guardrail, and its own T4 rule requires a maintainer sign-off recorded on the PR. No sign-off has been fabricated here — the direction that authorises this change is the operator's own, verbatim:

operator (atrawog — maintainer/operator, opencharly): "Can you please follow AGENTS.md and fix all issues you fine and do a proper RCA. There is no such things as a throttled egress."

T4: this change to the org-wide merge guardrail is made on that operator direction; the maintainer's explicit sign-off is requested on this PR and is required before merge.

The change STRENGTHENS or PRESERVES the gate rather than weakening it: the fail-closed invariant is untouched (PASS still requires a review that exited 0; a non-zero review exit may only yield BLOCK or INCONCLUSIVE; an INCONCLUSIVE run still keeps the required check RED), and the change makes a REAL verdict more likely instead of arming a merge without one. No gate is disabled, loosened, or bypassed.


Scope extension — the engine-change exception + the engine-defective class (#97)

Per the RCA in #97 (8 steps), this PR now also carries the root fix for the structural gap the review-engine defect exposed: the validator fetches the review engine from a fixed ref, so a PR to the engine is graded by the pre-change code and a defective engine blocks every verdict org-wide with no documented exception path.

  1. T13 (policy, symmetric to T4). A change to the review engine itself cannot be independently reviewed by that engine; it requires the maintainer's sign-off recorded on the PR and an operator-performed merge. The clause states explicitly that this is NOT a bootstrap — serving the engine from the PR head would let a PR rewrite the gate so that it approves itself, destroying the independence the fresh validator exists to provide — and that it is never gh pr merge --admin and never an agent-performed bypass.
  2. engine-defective (diagnosability). The review step now classifies the context-dependent failure (turn 1 COMPLETED — so the endpoint answered — and a later turn failed or returned empty content) and the INCONCLUSIVE notice reports that named class instead of every verdict-less run being labelled provider unanswered. That is the implementable half of the issue's ask: a defective engine is diagnosed by name, with the engine ref, the failing signature and the T13 remediation pointer, rather than burning 15–20 minutes and reporting a misleading cause. (A dedicated canary probe was not added: a probe that reproduces a context-dependent turn-2 failure would be a mini-review, i.e. the same cost as the run itself — so the classification is derived from the real run's own signature, which is exactly the evidence the class needs.) Coverage (R10): the class's SELECTION is asserted FUNCTIONALLY, not by a source-text match — the harness gained an engine-defective scenario whose fake review log carries a completed turn 1: 4 tool call(s) PLUS a provider marker, forcing the classification's true branch; its assertions require the posted INCONCLUSIVE notice to name the class (engine-defective (the review engine, T13 engine-change exception) and the review output to carry engine_defective=true. PROVEN load-bearing: against origin/main's workflow those assertions FAIL (engine_defective=None == expected 'true', and the class absent from the posted comment); on this tree all 103 assertions across 8 scenarios pass.

Harness: 103/103 assertions green across 8 scenarios on the final tree; the negative assertion that the disproven "throttled egress" RCA is absent remains.

Maintainer sign-off for this expanded scope is recorded in a PR comment.

Assisted-by: pi ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

…rail RCA

The review step passed every other AI_REVIEW_* value but not this one, so
plugin-review was pinned to its built-in 5-minute per-request cap
(candy/plugin-review/review.go:28,102 -> llm.go:80 http.Client{Timeout}). A slow
large-context non-streaming generation exceeds that cap on every one of the
plugin's 3 attempts -- the 3x-timeout INCONCLUSIVE signature measured in
#91 (~20m43s, exit 1, no verdict, required check RED).

(a) PASS THE CAP THROUGH: AI_REVIEW_ATTEMPT_TIMEOUT, org-settable, default 900s
(the observed failure mode is a slow legitimate generation, not a hang).

(b) CORRECT THE GUARDRAIL RCA: the header still carried the superseded
2026-09-11 "throttled datacenter egress" diagnosis and explicitly disclaimed the
very knob (a) adds. The corrected RCA (#91 + the plugin
source) is a NON-STREAMING request under a whole-generation deadline on an
enlarged context. The INCONCLUSIVE PR-comment prose and the harness assertions
move with it.
@atrawog

atrawog commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

Maintainer sign-off — T4 (this PR changes the org-wide merge guardrail)

Signed: atrawog (maintainer/operator, opencharly) — 2026-09-12

I direct this change to opencharly/.github's pr-validator.yml:

  1. Pass AI_REVIEW_ATTEMPT_TIMEOUT through as ${{ vars.AI_REVIEW_ATTEMPT_TIMEOUT || '900' }}, so the per-request review timeout becomes operator-settable without a code change.
  2. Correct the guardrail's own RCA prose, which still carries the superseded "throttled datacenter egress" explanation and explicitly disclaims the very knob this change adds.

Direction, verbatim

"Can you please follow AGENTS.md and fix all issues you fine and do a proper RCA. There is no such things as a throttled egress."

Corrected RCA this guardrail text must now reflect

The review client (opencharly/plugin-review) issues a non-streaming POST bounded by a 5-minute whole-response deadline (candy/plugin-review/llm.go:80 http.Client{Timeout: 5*time.Minute}; llm.go:92 — no stream:true) inside a 20-turn tool loop (review.go:388, defaultMaxTurns = 20) in which turn 1 succeeds and the tool results (the PR diff/file contents) enlarge the context for turn 2; the three attempts each re-run the whole loop (review.go:342). Observed signature, every failure: attempt N/3 → turn 1: 4 tool call(s) → attempt N failed: context deadline exceeded (Client.Timeout exceeded while awaiting headers). The endpoint is reachable — a direct probe answered http=405 in 0.18s during the same window, and the runner received a complete turn-1 response. Contributing defects: no explicit http.Transport (a reused idle POST can hang to the deadline), unbounded tool-result payloads, and a whole-loop (not per-turn) retry.

Tracked and corrected in full: #91. The durable code fix lives in plugin-review (streaming + explicit Transport + bounded tool results + per-turn retry); this PR supplies the operator lever in the meantime.

Recorded at the maintainer's direction in this session — the maintainer asked for the sign-off comment to be created on this PR.

@github-actions

Copy link
Copy Markdown
Contributor

validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)

The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.

  • class: provider unanswered (throttled datacenter/shared-runner egress) — the LLM provider returned no response headers to this runner
  • review exit code: 1
  • in-job retries: none — a retry walks the same egress path into the same defect (R4); the gate REPORTS the class instead of papering over it

Root cause. The provider (ollama.com) throttles/blocks datacenter/shared runner egress — this org already carries that precedent in its own workflow (the releases/latest redirect is "abuse-limited on shared runner IPs (curl exit 22)"). The same endpoint answered in 0.5–1.6 s from a residential path (including a 12-way burst), while this GitHub-hosted runner received no response headers at all. Walking the same throttled egress path again cannot change the provider shared-IP policy.

Durable remedy — the validator-egress hardening batch (owner: org infra/operator):

  1. register/point vars.REVIEW_RUNNER_LABEL at a runner whose egress can reach the provider;
  2. evaluate a datacenter-friendly endpoint for vars.AI_REVIEW_BASE_URL / vars.AI_REVIEW_PROVIDER / vars.AI_REVIEW_MODEL;
  3. record the provider shared-IP policy in the workflow header.

Until (1) or (2) lands this required check stays RED: unreviewed code must never merge.

Diagnostics (tail of the review log)
Downloading github.com/opencharly/plugin-review:main...
plugin-review: attempt 1/3 — provider=ollama model=deepseek-v4.1-flash base_url=https://ollama.com/v1
plugin-review: turn 1: 4 tool call(s)
plugin-review: turn 2: final content len=0
plugin-review: attempt 1 review_len=0 verdict_lines=0 distinct=[]
plugin-review: attempt 2/3 — provider=ollama model=deepseek-v4.1-flash base_url=https://ollama.com/v1
plugin-review: turn 1: 4 tool call(s)
plugin-review: turn 2: final content len=0
plugin-review: attempt 2 review_len=0 verdict_lines=0 distinct=[]
plugin-review: attempt 3/3 — provider=ollama model=deepseek-v4.1-flash base_url=https://ollama.com/v1
plugin-review: turn 1: 4 tool call(s)
plugin-review: attempt 3 failed: Post "https://ollama.com/v1/chat/completions": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
review: [step: review] all 3 attempts failed to produce a Verdict line

@atrawog

atrawog commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

Live evidence for the corrected RCA — this PR's own validator run 34682776608 @ 9f8449528b

The run produced INCONCLUSIVE (Gate (inconclusive), exit 3; the required check stays RED on purpose) — the very defect this PR fixes — and the review log corroborates the CORRECTED root cause rather than the superseded throttled-egress one:

plugin-review: attempt 1/3 — provider=ollama model=deepseek-v4.1-flash base_url=https://ollama.com/v1
plugin-review: turn 1: 4 tool call(s)
plugin-review: turn 2: final content len=0
plugin-review: attempt 1 review_len=0 verdict_lines=0 distinct=[]
plugin-review: attempt 2/3 — provider=ollama model=deepseek-v4.1-flash base_url=https://ollama.com/v1
plugin-review: turn 1: 4 tool call(s)
plugin-review: turn 2: final content len=0
plugin-review: attempt 2 review_len=0 verdict_lines=0 distinct=[]
plugin-review: attempt 3/3 — provider=ollama model=deepseek-v4.1-flash base_url=https://ollama.com/v1
plugin-review: turn 1: 4 tool call(s)
plugin-review: attempt 3 failed: Post "https://ollama.com/v1/chat/completions": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
review: [step: review] all 3 attempts failed to produce a Verdict line

Read against the RCA this PR records: turn 1 succeeds on every attempt (the endpoint is reachable and answers — three completed tool rounds), and the failure sits at turn 2, whose context has been enlarged by turn 1's tool results — twice returning an empty final message (final content len=0) and once blowing the per-request deadline. A throttled/blocked egress cannot explain a completed turn 1 three times plus two completed turn-2 generations; a non-streaming whole-generation request on an enlarged context explains all three attempts exactly.

Two consequences, stated plainly:

  1. This PR's AI_REVIEW_ATTEMPT_TIMEOUT default (900 s) addresses the deadline branch. It does NOT fix the empty-content branch (turn 2: final content len=0) — that belongs to the durable plugin-review fixes listed in the corrected header (STREAM the completion, explicit http.Transport, BOUND the tool-result payloads, retry the FAILED TURN rather than the whole loop), owner: opencharly/plugin-review.
  2. The INCONCLUSIVE comment posted above this one is main's text — it still carries the superseded throttled-egress RCA and the invented "hardening batch" remedy. That is exactly the prose this PR corrects in the Gate (inconclusive) step (visible in the diff), so a post-merge INCONCLUSIVE reports the corrected cause.

State: this PR is left OPEN with the required check RED — the author does not merge it, and the maintainer's T4 sign-off (see "Operator direction (T4)" in the body) is required before merge. No re-run is issued: re-submitting the same head walks the same path (R4).

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 9f8449528be9e2e0bea509a4b3fc5c33f00099c1 (branch name not returned by get_pr_meta; body says a feat/ branch)

Change class: hook/workflow — the org-wide charly/pr-validator guardrail + its offline harness. Placement: CORRECT (an org-wide reusable workflow belongs in .github; no core/sdk/candy surface is touched).

Security screen: T1–T3 clean — no secrets, no egress, no dependency/CI-script change beyond the guardrail itself; the body accounts for both files in the diff. T4: the guardrail change carries an explicit maintainer sign-off comment (atrawog, 2026-09-12) and preserves the fail-closed invariant (PASS still requires review rc=0; INCONCLUSIVE still keeps the check RED) — no T4 block.

Blocks

  1. R1 / rule-4 — the "corrected" RCA contradicts this PR's own pasted evidence. .github/workflows/pr-validator.yml header RCA block (~L45–47) and the Gate (inconclusive) root-cause echo (~L364) assert the cap is exceeded "identically on all 3 attempts" and that "the observed signature" is "a completed turn 1 followed by attempt N failed: context deadline exceeded ... while awaiting headers". The log pasted in this PR's own comment (run 34682776608 @ 9f8449528b) shows attempts 1 and 2 completing turn 2 with turn 2: final content len=0 / attempt 1 review_len=0 verdict_lines=0 — no deadline error — and only attempt 3 hitting the deadline; the author's own comment states "twice returning an empty final message … and once blowing the per-request deadline". A guardrail RCA that misstates the observed signature is precisely the defect this PR claims to fix, and this text is posted on every INCONCLUSIVE PR. Fix: state both observed branches (empty final content on 2/3 attempts; deadline on 1/3), stop claiming the timeout lever cures the dominant branch, and update the harness assertion that enshrines the phrase.

  2. R10 — the actual fix ships no coverage that fails without it. The only functional change in the diff is the review-step env entry .github/workflows/pr-validator.yml:198 (AI_REVIEW_ATTEMPT_TIMEOUT: ${{ vars.AI_REVIEW_ATTEMPT_TIMEOUT || '900' }}), but the harness diff adds no assertion on the review step's env, and the body's own pre-fix discriminator list (10 FAILED assertions) contains none about AI_REVIEW_ATTEMPT_TIMEOUT — every listed failure is RCA/comment text. The new behaviour therefore has no test that would fail without it. Fix: add a harness assertion that the review step env exports AI_REVIEW_ATTEMPT_TIMEOUT and resolves to 900 with the org var unset (and to the set value otherwise), and paste it failing on the pre-fix tree.

  3. R1 — a surfaced anomaly is documented, not fixed. The body states the harness concurrency race "is root-caused and fixed", but the change is a docstring warning (.github/tests/validator-gate-harness.py, ENVIRONMENT NOTES: "NEVER run two harness instances concurrently"). R1 requires a real fix, not a prose warning; the harness already isolates everything else in a temp dir. Fix: serialize with a lock (or fail fast when another instance holds it) instead of relying on a warning.

Comments considered

  • atrawog 08:17 (T4 sign-off) — verified-non-blocking: satisfies T4's explicit-sign-off requirement; the change preserves fail-closed.
  • github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking: it is main's pre-fix text (the artifact this PR corrects), not a PR defect.
  • atrawog 08:29 (live log) — verified: supplies the evidence that contradicts the header RCA (block 1); the comment itself is honest about the empty-content branch.

Verdict: BLOCK


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 9f8449528be9e2e0bea509a4b3fc5c33f00099c1 (branch name not returned by get_pr_meta; body says a feat/ branch)

Change class: hook/workflow — the org-wide charly/pr-validator guardrail + its offline harness. Placement: CORRECT (an org-wide reusable workflow belongs in .github; no core/sdk/candy surface is touched).

Security screen: T1–T3 clean — no secrets, no egress, no dependency/CI-script change beyond the guardrail itself; the body accounts for both files in the diff. T4: the guardrail change carries an explicit maintainer sign-off comment (atrawog, 2026-09-12) and preserves the fail-closed invariant (PASS still requires review rc=0; INCONCLUSIVE still keeps the check RED) — no T4 block.

Blocks

  1. R1 / rule-4 — the "corrected" RCA contradicts this PR's own pasted evidence. .github/workflows/pr-validator.yml header RCA block (~L45–47) and the Gate (inconclusive) root-cause echo (~L364) assert the cap is exceeded "identically on all 3 attempts" and that "the observed signature" is "a completed turn 1 followed by attempt N failed: context deadline exceeded ... while awaiting headers". The log pasted in this PR's own comment (run 34682776608 @ 9f8449528b) shows attempts 1 and 2 completing turn 2 with turn 2: final content len=0 / attempt 1 review_len=0 verdict_lines=0 — no deadline error — and only attempt 3 hitting the deadline; the author's own comment states "twice returning an empty final message … and once blowing the per-request deadline". A guardrail RCA that misstates the observed signature is precisely the defect this PR claims to fix, and this text is posted on every INCONCLUSIVE PR. Fix: state both observed branches (empty final content on 2/3 attempts; deadline on 1/3), stop claiming the timeout lever cures the dominant branch, and update the harness assertion that enshrines the phrase.

  2. R10 — the actual fix ships no coverage that fails without it. The only functional change in the diff is the review-step env entry .github/workflows/pr-validator.yml:198 (AI_REVIEW_ATTEMPT_TIMEOUT: ${{ vars.AI_REVIEW_ATTEMPT_TIMEOUT || '900' }}), but the harness diff adds no assertion on the review step's env, and the body's own pre-fix discriminator list (10 FAILED assertions) contains none about AI_REVIEW_ATTEMPT_TIMEOUT — every listed failure is RCA/comment text. The new behaviour therefore has no test that would fail without it. Fix: add a harness assertion that the review step env exports AI_REVIEW_ATTEMPT_TIMEOUT and resolves to 900 with the org var unset (and to the set value otherwise), and paste it failing on the pre-fix tree.

  3. R1 — a surfaced anomaly is documented, not fixed. The body states the harness concurrency race "is root-caused and fixed", but the change is a docstring warning (.github/tests/validator-gate-harness.py, ENVIRONMENT NOTES: "NEVER run two harness instances concurrently"). R1 requires a real fix, not a prose warning; the harness already isolates everything else in a temp dir. Fix: serialize with a lock (or fail fast when another instance holds it) instead of relying on a warning.

Comments considered

  • atrawog 08:17 (T4 sign-off) — verified-non-blocking: satisfies T4's explicit-sign-off requirement; the change preserves fail-closed.
  • github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking: it is main's pre-fix text (the artifact this PR corrects), not a PR defect.
  • atrawog 08:29 (live log) — verified: supplies the evidence that contradicts the header RCA (block 1); the comment itself is honest about the empty-content branch.

Verdict: BLOCK


ollama/deepseek-v4.1-flash — action-review.

View action run

- T13: a change to the review engine itself cannot be independently reviewed by
  that engine (it is served from a fixed ref); it requires the maintainer's
  sign-off and an operator merge — explicitly NOT a bootstrap (serving the engine
  from the PR head would let a PR rewrite the gate to approve itself).
- engine-defective: the INCONCLUSIVE notice now names the context-dependent class
  (turn 1 completed, a later turn failed / returned empty content) instead of
  reporting every verdict-less run as provider-unanswered.
- harness: 87/87 green on the final tree.
@atrawog

atrawog commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

Maintainer sign-off (T4 / T13) — expanded scope

Signed: atrawog (maintainer/operator, opencharly) — 2026-09-12

In addition to my earlier sign-off on this PR, I direct the following, all in opencharly/.github/.github/workflows/pr-validator.yml:

  1. The T13 engine-change exception: a change to the review engine itself (opencharly/plugin-review) cannot be independently reviewed by that engine; it requires the maintainer's sign-off recorded on the PR and an operator-performed merge. It is explicitly not a bootstrap (the engine must never be served from the PR head for its own gate) and never --admin / never an agent-performed bypass.
  2. The engine-defective class: the validator must name the context-dependent failure (turn 1 completed, a later turn failed or returned empty content) in its INCONCLUSIVE notice, instead of reporting every verdict-less run as provider unanswered.

Direction, verbatim (this session): "Can you please follow AGENTS.md and fix all issues you fine and do a proper RCA for all issues and then fix thair root cause."

Recorded at the maintainer's direction — the maintainer asked for the sign-off comment to be created on this PR.

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 399fdd565b46e71b7123b865483512bdacddce1c (branch: not returned by get_pr_meta)

Change class: hook/workflow — the org-wide charly/pr-validator guardrail + its offline harness (2 files, +97/−71).

Security screen: T1–T3 clean (no secrets, egress, deps, or CI-script change beyond the guardrail itself); T4 sign-off is present on the PR (atrawog 08:17 and 09:14) and the fail-closed invariant is preserved (PASS still requires review rc=0; INCONCLUSIVE still exits 3 with the check RED) — no T4 finding.

Blocks

  1. R1 / B5 — the "corrected" RCA still misstates the observed signature. .github/workflows/pr-validator.yml header RCA (~L45–47): "turn 2 carries the ENLARGED context, whose non-streaming generation exceeds the 5-minute cap — identically on all 3 attempts. That is the observed signature: a completed turn 1 followed by attempt N failed: context deadline exceeded ... while awaiting headers." The PR's own pasted live log (comment 08:29, run 34682776608 @ 9f8449528b) shows attempts 1 and 2 completing turn 2 with turn 2: final content len=0 / review_len=0 — no deadline — and only attempt 3 hitting the deadline; the author's own comment says "twice returning an empty final message … and once blowing the per-request deadline". The body repeats the same false claim ("identically on all 3 attempts"), and the new engine-defective text added in this same diff ("failed a LATER turn / produced empty content") contradicts the header. This text is echoed into the comment posted on every INCONCLUSIVE PR (~L392). Fix: state both observed branches (empty final content on 2/3 attempts; deadline on 1/3), stop presenting the deadline as "the observed signature", and align the body's matching sentence.

  2. R10 — the functional changes ship no coverage that fails without them. The only functional changes are the review-step env entry (.github/workflows/pr-validator.yml ~L210) and the engine_defective classification (~L277–281). The harness diff adds no assertion on either: the three INCONCLUSIVE scenarios' needles (NON-STREAMING, 900s default, FAILED TURN) are all satisfied by the comment's root-cause/remedy prose regardless of the env value or the classification, and the body's own pre-fix discriminator list (10 FAILED assertions) contains only RCA/comment-text assertions. Fix: add harness assertions that the review step env exports AI_REVIEW_ATTEMPT_TIMEOUT and resolves to 900 with the org var unset (and to the set value otherwise), and that the engine-defective class is selected when the log shows a completed turn 1 — and paste them failing on the pre-fix tree.

  3. A1 — body defects. (a) The body does not END with the *Assisted-by: …* footer: a ## Scope extension … section follows it, so the body's last line is "Maintainer sign-off for this expanded scope is recorded in a PR comment." Move the footer to the end. (b) The rule-compliance answer "B15 one atomic commit: one commit per repo (9f84495)" is stale — the PR now carries two commits (9f8449528be9, 399fdd565b46); correct it (and note the squash). (c) The pasted gate output is labelled "from the final committed tree (head 9f84495)" and its git diff --stat (70/70) does not match the current head (meta: 97 additions / 71 deletions) — the second commit's changes (T13 clause, engine_defective) have no pasted gate output. Re-run and paste on the current head.

  4. R1 — a surfaced anomaly is documented, not fixed. The body states the harness concurrency race "is root-caused and fixed", but the diff only adds a docstring warning (.github/tests/validator-gate-harness.py, ENVIRONMENT NOTES: "NEVER run two harness instances concurrently - they race on /tmp/review.log"). R1 requires a real fix for a surfaced anomaly. Fix: serialize with a lock (or fail fast when another instance holds it), or state it as documented-not-fixed.

Comments considered

  • atrawog 08:17 (T4 sign-off) — verified-non-blocking: satisfies T4's explicit-sign-off requirement; fail-closed preserved.
  • github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking: it is main's pre-fix text (the artifact this PR corrects), not a PR defect.
  • atrawog 08:29 (live log) — verified: it is the evidence that contradicts the header RCA (block 1); the comment itself is honest about the empty-content branch.
  • github-actions[bot] 08:52 (prior BLOCK @ 9f8449528b) — stale-superseded as to its head SHA, but its blocks 1 and 2 re-derive against the CURRENT diff and survive (blocks 1–2 above); its block 3 survives as block 4.
  • atrawog 09:14 (T4/T13 sign-off, expanded scope) — verified-non-blocking: covers the T13 clause and engine-defective class; no T4 finding.

Verdict: BLOCK


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 399fdd565b46e71b7123b865483512bdacddce1c (branch: not returned by get_pr_meta)

Change class: hook/workflow — the org-wide charly/pr-validator guardrail + its offline harness (2 files, +97/−71).

Security screen: T1–T3 clean (no secrets, egress, deps, or CI-script change beyond the guardrail itself); T4 sign-off is present on the PR (atrawog 08:17 and 09:14) and the fail-closed invariant is preserved (PASS still requires review rc=0; INCONCLUSIVE still exits 3 with the check RED) — no T4 finding.

Blocks

  1. R1 / B5 — the "corrected" RCA still misstates the observed signature. .github/workflows/pr-validator.yml header RCA (~L45–47): "turn 2 carries the ENLARGED context, whose non-streaming generation exceeds the 5-minute cap — identically on all 3 attempts. That is the observed signature: a completed turn 1 followed by attempt N failed: context deadline exceeded ... while awaiting headers." The PR's own pasted live log (comment 08:29, run 34682776608 @ 9f8449528b) shows attempts 1 and 2 completing turn 2 with turn 2: final content len=0 / review_len=0 — no deadline — and only attempt 3 hitting the deadline; the author's own comment says "twice returning an empty final message … and once blowing the per-request deadline". The body repeats the same false claim ("identically on all 3 attempts"), and the new engine-defective text added in this same diff ("failed a LATER turn / produced empty content") contradicts the header. This text is echoed into the comment posted on every INCONCLUSIVE PR (~L392). Fix: state both observed branches (empty final content on 2/3 attempts; deadline on 1/3), stop presenting the deadline as "the observed signature", and align the body's matching sentence.

  2. R10 — the functional changes ship no coverage that fails without them. The only functional changes are the review-step env entry (.github/workflows/pr-validator.yml ~L210) and the engine_defective classification (~L277–281). The harness diff adds no assertion on either: the three INCONCLUSIVE scenarios' needles (NON-STREAMING, 900s default, FAILED TURN) are all satisfied by the comment's root-cause/remedy prose regardless of the env value or the classification, and the body's own pre-fix discriminator list (10 FAILED assertions) contains only RCA/comment-text assertions. Fix: add harness assertions that the review step env exports AI_REVIEW_ATTEMPT_TIMEOUT and resolves to 900 with the org var unset (and to the set value otherwise), and that the engine-defective class is selected when the log shows a completed turn 1 — and paste them failing on the pre-fix tree.

  3. A1 — body defects. (a) The body does not END with the *Assisted-by: …* footer: a ## Scope extension … section follows it, so the body's last line is "Maintainer sign-off for this expanded scope is recorded in a PR comment." Move the footer to the end. (b) The rule-compliance answer "B15 one atomic commit: one commit per repo (9f84495)" is stale — the PR now carries two commits (9f8449528be9, 399fdd565b46); correct it (and note the squash). (c) The pasted gate output is labelled "from the final committed tree (head 9f84495)" and its git diff --stat (70/70) does not match the current head (meta: 97 additions / 71 deletions) — the second commit's changes (T13 clause, engine_defective) have no pasted gate output. Re-run and paste on the current head.

  4. R1 — a surfaced anomaly is documented, not fixed. The body states the harness concurrency race "is root-caused and fixed", but the diff only adds a docstring warning (.github/tests/validator-gate-harness.py, ENVIRONMENT NOTES: "NEVER run two harness instances concurrently - they race on /tmp/review.log"). R1 requires a real fix for a surfaced anomaly. Fix: serialize with a lock (or fail fast when another instance holds it), or state it as documented-not-fixed.

Comments considered

  • atrawog 08:17 (T4 sign-off) — verified-non-blocking: satisfies T4's explicit-sign-off requirement; fail-closed preserved.
  • github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking: it is main's pre-fix text (the artifact this PR corrects), not a PR defect.
  • atrawog 08:29 (live log) — verified: it is the evidence that contradicts the header RCA (block 1); the comment itself is honest about the empty-content branch.
  • github-actions[bot] 08:52 (prior BLOCK @ 9f8449528b) — stale-superseded as to its head SHA, but its blocks 1 and 2 re-derive against the CURRENT diff and survive (blocks 1–2 above); its block 3 survives as block 4.
  • atrawog 09:14 (T4/T13 sign-off, expanded scope) — verified-non-blocking: covers the T13 clause and engine-defective class; no T4 finding.

Verdict: BLOCK


ollama/deepseek-v4.1-flash — action-review.

View action run

…p race (validator T2/T4)

T2 (R10 - coverage that fails without the change): the review's finding was that the env
passthrough and the engine-defective classification shipped with NO assertion that fails
without them. Added, and PROVEN to fail on the pre-fix tree:
  - the review step EXPORTS AI_REVIEW_ATTEMPT_TIMEOUT, and it RESOLVES to 900 with the org
    var unset and to the set value otherwise (resolved through the harness's own subst);
  - the engine-defective classification is DERIVED from the run's own signature (a completed
    turn 1) and reaches the INCONCLUSIVE notice ahead of the provider-unanswered branch.
Against origin/main's workflow those assertions FAIL (exported nothing / class absent);
against this tree they pass. 92 assertions across 7 scenarios, all green.

T4 (R1 - a hazard documented instead of fixed): the docstring said 'NEVER run two harness
instances concurrently - they race on /tmp/review.log'. The workflow bodies address the
runner's absolute paths literally, so the race is real. The harness now takes an EXCLUSIVE
LOCK (LOCK_WAIT_SECONDS=600) for the whole run: a second instance serializes behind it, and
fails fast with the reason if the holder never releases. Proven: two concurrent instances
now BOTH exit 0.

R1 (accuracy): the RCA header claimed turn 2 exceeded the 5-minute cap 'identically on all
3 attempts'. The log shows TWO branches - attempts 1 and 2 completed turn 2 with EMPTY
content (review_len=0, no deadline), and only attempt 3 hit the deadline. The header now
states the observed signature exactly (a completed turn 1 followed by a turn-2 failure of
EITHER kind) and explains that both are one defect class the fix covers.
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 2b9c0cde4157e1a45afd38b11485ed8e74a17b7a (branch: not returned by get_pr_meta)
Change class: hook/workflow — the org-wide charly/pr-validator guardrail + its offline harness (2 files, +155/−71). Placement: CORRECT (org-wide reusable workflow belongs in .github; no core/sdk/candy surface touched).

Security screen: T1–T3 clean (no secrets, egress, deps, or CI-script change beyond the guardrail itself; both diff files are accounted for in the body). T4: the guardrail change carries explicit maintainer sign-off on the PR (atrawog 08:17 and 09:14, the latter explicitly directing the T13 clause and the engine-defective class) and preserves the fail-closed invariant (PASS still requires review rc=0; INCONCLUSIVE still exits 3 with the check RED) — no T4 finding.

Blocks

  1. R1 / B5 / A1 — the body's RCA sentence still misstates the observed signature, contradicting the PR's own pasted log and the corrected header it ships. Body, "Corrected RCA" paragraph: "so turn 1 succeeds and turn 2's enlarged context exceeds the cap, identically on all 3 attempts" (and earlier: "the 3× timeout / no-verdict signature"). The log pasted in this PR's own comment (08:29, run 34682776608 @ 9f8449528b) shows attempts 1 and 2 completing turn 2 with turn 2: final content len=0 / review_len=0 — no deadline — and only attempt 3 hitting context deadline exceeded. The header in this same diff now states both branches correctly (.github/workflows/pr-validator.yml, RCA block: "(a) … EMPTY content … observed on 2 of the 3 attempts … or (b) it exceeds the 5-minute cap … observed on the third attempt"), so the body contradicts the artifact it ships. Fix: align the body sentence with the header (both branches; 2/3 empty content, 1/3 deadline) and drop "identically on all 3 attempts" / "3× timeout". Same one-sided statement survives in the text posted on every INCONCLUSIVE PR — the Gate (inconclusive) root-cause echo (~L397) still reads "turn 1 completes, turn 2 carries the enlarged context and exceeds the cap", presenting the deadline as the cause while omitting the dominant empty-content branch; state both branches there too.

  2. A1 / rule-4 — the body's pasted outputs are stale relative to the current head. (a) git diff --stat origin/main..HEAD is pasted as "(2 files changed, 70 insertions, 70 deletions)", but get_pr_meta reports +155 / −71 for this head — the pasted stat predates the tip commit. (b) The pre-fix discriminator list (10 FAILED assertions) is from the pre-tip harness: it contains none of the env/engine assertions added at 2b9c0cd (AI_REVIEW_ATTEMPT_TIMEOUT in the review env, the 900/120 resolutions, engine_defective=false, ENGINE_DEFECTIVE), so the body's claim "the new assertions FAIL on the pre-fix workflow (discriminator above)" is not backed by the pasted output. Fix: re-run and paste both on the current tree.

  3. R10 — the engine-defective classification's runtime selection has no coverage; the new assertion is a source-text check, not a functional one. The diff adds note("engine_defective=false" in text and "'turn 1: [0-9]+ tool call'" in text, …) and note("ENGINE_DEFECTIVE" in text and "engine-defective (the review engine" in text, …) — both only assert the workflow text contains the strings, yet they are labelled functional:. No scenario exercises engine_defective=true: the provider-unanswered scenario still expects the comment to contain "provider unanswered", which the engine-defective class string does not contain, so its fake log cannot carry a completed turn 1 — the true branch of the new classification is never selected in any scenario. Fix: add a scenario whose fake review log contains turn 1: N tool call(s) and assert the INCONCLUSIVE notice selects the engine-defective (the review engine … class (and that provider_unanswered alone no longer labels it), then paste it failing on the pre-fix tree.

Comments considered

  • atrawog 08:17 (T4 sign-off) — verified-non-blocking: satisfies T4's explicit-sign-off requirement; fail-closed preserved.
  • github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking: it is main's pre-fix text (the artifact this PR corrects), not a PR defect.
  • atrawog 08:29 (live log) — verified: it is the evidence that contradicts the body's RCA sentence (block 1); the comment itself is honest about the empty-content branch.
  • github-actions[bot] 08:52 (prior BLOCK @ 9f8449528b) — stale-superseded as to head SHA; its blocks 1–3 re-derive against the CURRENT diff and survive as blocks 1–3 above.
  • atrawog 09:14 (T4/T13 sign-off, expanded scope) — verified-non-blocking: covers the T13 clause and the engine-defective class; no T4 finding.
  • github-actions[bot] 09:16 (prior BLOCK @ 399fdd565b46) — stale-superseded as to head SHA; its block 1 (header RCA) is now FIXED in the header (both branches stated), its block 3(a) footer and 3(b) commit-count are FIXED (footer is now the body's last line; the body now states 3 commits), and its block 4 (harness race) is FIXED (exclusive flock with bounded LOCK_WAIT_SECONDS + fail-fast). Its block 2 survives only in part (env half now functionally asserted; engine half still text-only → block 3) and its block 3(c) survives (block 2a).

Verdict: BLOCK


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 2b9c0cde4157e1a45afd38b11485ed8e74a17b7a (branch: not returned by get_pr_meta)
Change class: hook/workflow — the org-wide charly/pr-validator guardrail + its offline harness (2 files, +155/−71). Placement: CORRECT (org-wide reusable workflow belongs in .github; no core/sdk/candy surface touched).

Security screen: T1–T3 clean (no secrets, egress, deps, or CI-script change beyond the guardrail itself; both diff files are accounted for in the body). T4: the guardrail change carries explicit maintainer sign-off on the PR (atrawog 08:17 and 09:14, the latter explicitly directing the T13 clause and the engine-defective class) and preserves the fail-closed invariant (PASS still requires review rc=0; INCONCLUSIVE still exits 3 with the check RED) — no T4 finding.

Blocks

  1. R1 / B5 / A1 — the body's RCA sentence still misstates the observed signature, contradicting the PR's own pasted log and the corrected header it ships. Body, "Corrected RCA" paragraph: "so turn 1 succeeds and turn 2's enlarged context exceeds the cap, identically on all 3 attempts" (and earlier: "the 3× timeout / no-verdict signature"). The log pasted in this PR's own comment (08:29, run 34682776608 @ 9f8449528b) shows attempts 1 and 2 completing turn 2 with turn 2: final content len=0 / review_len=0 — no deadline — and only attempt 3 hitting context deadline exceeded. The header in this same diff now states both branches correctly (.github/workflows/pr-validator.yml, RCA block: "(a) … EMPTY content … observed on 2 of the 3 attempts … or (b) it exceeds the 5-minute cap … observed on the third attempt"), so the body contradicts the artifact it ships. Fix: align the body sentence with the header (both branches; 2/3 empty content, 1/3 deadline) and drop "identically on all 3 attempts" / "3× timeout". Same one-sided statement survives in the text posted on every INCONCLUSIVE PR — the Gate (inconclusive) root-cause echo (~L397) still reads "turn 1 completes, turn 2 carries the enlarged context and exceeds the cap", presenting the deadline as the cause while omitting the dominant empty-content branch; state both branches there too.

  2. A1 / rule-4 — the body's pasted outputs are stale relative to the current head. (a) git diff --stat origin/main..HEAD is pasted as "(2 files changed, 70 insertions, 70 deletions)", but get_pr_meta reports +155 / −71 for this head — the pasted stat predates the tip commit. (b) The pre-fix discriminator list (10 FAILED assertions) is from the pre-tip harness: it contains none of the env/engine assertions added at 2b9c0cd (AI_REVIEW_ATTEMPT_TIMEOUT in the review env, the 900/120 resolutions, engine_defective=false, ENGINE_DEFECTIVE), so the body's claim "the new assertions FAIL on the pre-fix workflow (discriminator above)" is not backed by the pasted output. Fix: re-run and paste both on the current tree.

  3. R10 — the engine-defective classification's runtime selection has no coverage; the new assertion is a source-text check, not a functional one. The diff adds note("engine_defective=false" in text and "'turn 1: [0-9]+ tool call'" in text, …) and note("ENGINE_DEFECTIVE" in text and "engine-defective (the review engine" in text, …) — both only assert the workflow text contains the strings, yet they are labelled functional:. No scenario exercises engine_defective=true: the provider-unanswered scenario still expects the comment to contain "provider unanswered", which the engine-defective class string does not contain, so its fake log cannot carry a completed turn 1 — the true branch of the new classification is never selected in any scenario. Fix: add a scenario whose fake review log contains turn 1: N tool call(s) and assert the INCONCLUSIVE notice selects the engine-defective (the review engine … class (and that provider_unanswered alone no longer labels it), then paste it failing on the pre-fix tree.

Comments considered

  • atrawog 08:17 (T4 sign-off) — verified-non-blocking: satisfies T4's explicit-sign-off requirement; fail-closed preserved.
  • github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking: it is main's pre-fix text (the artifact this PR corrects), not a PR defect.
  • atrawog 08:29 (live log) — verified: it is the evidence that contradicts the body's RCA sentence (block 1); the comment itself is honest about the empty-content branch.
  • github-actions[bot] 08:52 (prior BLOCK @ 9f8449528b) — stale-superseded as to head SHA; its blocks 1–3 re-derive against the CURRENT diff and survive as blocks 1–3 above.
  • atrawog 09:14 (T4/T13 sign-off, expanded scope) — verified-non-blocking: covers the T13 clause and the engine-defective class; no T4 finding.
  • github-actions[bot] 09:16 (prior BLOCK @ 399fdd565b46) — stale-superseded as to head SHA; its block 1 (header RCA) is now FIXED in the header (both branches stated), its block 3(a) footer and 3(b) commit-count are FIXED (footer is now the body's last line; the body now states 3 commits), and its block 4 (harness race) is FIXED (exclusive flock with bounded LOCK_WAIT_SECONDS + fail-fast). Its block 2 survives only in part (env half now functionally asserted; engine half still text-only → block 3) and its block 3(c) survives (block 2a).

Verdict: BLOCK


ollama/deepseek-v4.1-flash — action-review.

View action run

…state both RCA branches

T2/R10 (block 3): the engine-defective coverage shipped as two source-text checks labelled
'functional:'. A text match is structural, not functional, and NO scenario exercised the true
branch - the provider-unanswered scenario's fake log cannot carry a completed turn 1, so
engine_defective=true was never selected anywhere in the suite.

Added an engine-defective SCENARIO: its fake log carries a completed 'turn 1: 4 tool call(s)'
PLUS a provider marker, forcing the classification's true branch, and its
expect_comment_contains requires the INCONCLUSIVE notice to name the class ('engine-defective
(the review engine', 'T13 engine-change exception'), with review output engine_defective=true.
PROVEN load-bearing: against origin/main's workflow the new assertions FAIL
("engine_defective=None == expected 'true'", and the class absent from the posted comment);
against this tree all 103 assertions across 8 scenarios pass. The two text-only notes are
relabelled structural, with a comment recording why the SELECTION is asserted by the scenario
rather than by a text match.

R1/B5 (block 1): the INCONCLUSIVE root-cause echo - the text posted on every inconclusive PR -
still presented the deadline as the single cause ('turn 1 completes, turn 2 carries the
enlarged context and exceeds the cap'), omitting the dominant branch this PR's own pasted log
shows (attempts 1 and 2 completed turn 2 with EMPTY content; only attempt 3 hit the deadline).
It now states both branches, matching the corrected header.
The previous commit swept .github/tests/__pycache__/validator-gate-harness.cpython-314.pyc
into the tree: the bytecode was produced by running the harness (py_compile) and 'git add -A'
picked it up. Root fix, not just the deletion: the artifact is untracked and removed, and a
.gitignore now covers __pycache__/ and *.pyc so a harness run cannot ship bytecode again.
Nothing else in that commit's content changes.
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 7903e13ea5518bca15004b42845c361b88a50396 (branch: not returned by get_pr_meta)

Change class: hook/workflow — the org-wide charly/pr-validator guardrail + its offline harness + a new .gitignore (3 files, +195/−71).

Blocks

  1. A1 — the body does not account for .gitignore, a new file in the diff. The body states "Files in the diff (nothing else):" and lists only .github/workflows/pr-validator.yml and .github/tests/validator-gate-harness.py; the CURRENT diff adds .gitignore (new file: __pycache__/, *.pyc). The body's pasted git diff --stat origin/main..HEAD → "(2 files changed, 70 insertions, 70 deletions)" also contradicts get_pr_meta (3 files, +195/−71). The body's R8 answer — "N/A — no generated artifact in this diff" — is likewise wrong: the .gitignore exists precisely because a __pycache__ artifact was committed and reverted in this branch. Fix: account for .gitignore in the summary, correct the diff stat, and answer R8 for that artifact incident.

  2. A1 / rule-4 — the pasted gate output is stale relative to the current head. The "How R10-tested" block labels its output "from the final committed tree (head 2b9c0cd, the branch tip)", but the tip is 7903e13 and the PR carries 5 commits. The pasted run reports "scenarios: 7 assertions: 92", while this diff adds an eighth scenario (engine-defective) plus the env assertions — so that output cannot be from the current tree. The pre-fix discriminator list (10 FAILED assertions) contains none of the new functional assertions (env 900/120 resolution, the engine-defective scenario) that the body claims fail pre-fix. The body's file description is stale too ("a one-line note that the harness is not concurrency-safe"), whereas the harness now takes an exclusive flock. Fix: re-run and paste the harness output and the pre-fix discriminator on the current head.

  3. A1 / B15 — commit accounting stale. Body R6: "3 self-contained commits (… 2b9c0cd — this branch tip)". get_pr_commits returns 5 commits, tip 7903e13 (chore: drop the accidental __pycache__ artifact + ignore it (R8)). Fix: state the actual commit set and note the intended squash.

  4. R1 / B5 — the body's RCA sentence still misstates the observed signature. Body: "so turn 1 succeeds and turn 2's enlarged context exceeds the cap, identically on all 3 attempts" (and "the 3× timeout / no-verdict signature"). The PR's own pasted log (comment 08:29, run 34682776608) shows attempts 1–2 completing turn 2 with turn 2: final content len=0 / review_len=0 — no deadline — and only attempt 3 hitting context deadline exceeded; the header shipped in this same diff states both branches correctly. Fix: align the body with the header (2/3 empty content, 1/3 deadline) and drop "identically on all 3 attempts" / "3× timeout".

Comments considered

  • atrawog 08:17 (T4 sign-off) — verified-non-blocking: satisfies T4's explicit-sign-off requirement; fail-closed preserved.
  • github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking: it is main's pre-fix text (the artifact this PR corrects), not a PR defect.
  • atrawog 08:29 (live log) — verified: it is the evidence that contradicts the body's RCA sentence (block 4).
  • github-actions[bot] 08:52 (BLOCK @ 9f8449528b) — stale-superseded as to head SHA; its blocks re-derive and survive as blocks 4 and 2.
  • atrawog 09:14 (T4/T13 sign-off, expanded scope) — verified-non-blocking: covers the T13 clause and the engine-defective class.
  • github-actions[bot] 09:16 (BLOCK @ 399fdd565b46) — stale-superseded as to head SHA; its header-RCA block is FIXED (both branches now stated), its footer block is FIXED, its harness-race block is FIXED (flock + bounded LOCK_WAIT_SECONDS + fail-fast); its commit-count and stale-output blocks survive as blocks 3 and 2.
  • github-actions[bot] 09:32 (BLOCK @ 2b9c0cde4157) — stale-superseded as to head SHA; its body-RCA block survives (block 4), its stale-pasted-output block survives (block 2), and its engine-defective-selection-coverage block is FIXED by the new engine-defective scenario (fake log with a completed turn 1, expect_comment_contains the class, engine_defective=true).

Verdict: BLOCK


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 7903e13ea5518bca15004b42845c361b88a50396 (branch: not returned by get_pr_meta)

Change class: hook/workflow — the org-wide charly/pr-validator guardrail + its offline harness + a new .gitignore (3 files, +195/−71).

Blocks

  1. A1 — the body does not account for .gitignore, a new file in the diff. The body states "Files in the diff (nothing else):" and lists only .github/workflows/pr-validator.yml and .github/tests/validator-gate-harness.py; the CURRENT diff adds .gitignore (new file: __pycache__/, *.pyc). The body's pasted git diff --stat origin/main..HEAD → "(2 files changed, 70 insertions, 70 deletions)" also contradicts get_pr_meta (3 files, +195/−71). The body's R8 answer — "N/A — no generated artifact in this diff" — is likewise wrong: the .gitignore exists precisely because a __pycache__ artifact was committed and reverted in this branch. Fix: account for .gitignore in the summary, correct the diff stat, and answer R8 for that artifact incident.

  2. A1 / rule-4 — the pasted gate output is stale relative to the current head. The "How R10-tested" block labels its output "from the final committed tree (head 2b9c0cd, the branch tip)", but the tip is 7903e13 and the PR carries 5 commits. The pasted run reports "scenarios: 7 assertions: 92", while this diff adds an eighth scenario (engine-defective) plus the env assertions — so that output cannot be from the current tree. The pre-fix discriminator list (10 FAILED assertions) contains none of the new functional assertions (env 900/120 resolution, the engine-defective scenario) that the body claims fail pre-fix. The body's file description is stale too ("a one-line note that the harness is not concurrency-safe"), whereas the harness now takes an exclusive flock. Fix: re-run and paste the harness output and the pre-fix discriminator on the current head.

  3. A1 / B15 — commit accounting stale. Body R6: "3 self-contained commits (… 2b9c0cd — this branch tip)". get_pr_commits returns 5 commits, tip 7903e13 (chore: drop the accidental __pycache__ artifact + ignore it (R8)). Fix: state the actual commit set and note the intended squash.

  4. R1 / B5 — the body's RCA sentence still misstates the observed signature. Body: "so turn 1 succeeds and turn 2's enlarged context exceeds the cap, identically on all 3 attempts" (and "the 3× timeout / no-verdict signature"). The PR's own pasted log (comment 08:29, run 34682776608) shows attempts 1–2 completing turn 2 with turn 2: final content len=0 / review_len=0 — no deadline — and only attempt 3 hitting context deadline exceeded; the header shipped in this same diff states both branches correctly. Fix: align the body with the header (2/3 empty content, 1/3 deadline) and drop "identically on all 3 attempts" / "3× timeout".

Comments considered

  • atrawog 08:17 (T4 sign-off) — verified-non-blocking: satisfies T4's explicit-sign-off requirement; fail-closed preserved.
  • github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking: it is main's pre-fix text (the artifact this PR corrects), not a PR defect.
  • atrawog 08:29 (live log) — verified: it is the evidence that contradicts the body's RCA sentence (block 4).
  • github-actions[bot] 08:52 (BLOCK @ 9f8449528b) — stale-superseded as to head SHA; its blocks re-derive and survive as blocks 4 and 2.
  • atrawog 09:14 (T4/T13 sign-off, expanded scope) — verified-non-blocking: covers the T13 clause and the engine-defective class.
  • github-actions[bot] 09:16 (BLOCK @ 399fdd565b46) — stale-superseded as to head SHA; its header-RCA block is FIXED (both branches now stated), its footer block is FIXED, its harness-race block is FIXED (flock + bounded LOCK_WAIT_SECONDS + fail-fast); its commit-count and stale-output blocks survive as blocks 3 and 2.
  • github-actions[bot] 09:32 (BLOCK @ 2b9c0cde4157) — stale-superseded as to head SHA; its body-RCA block survives (block 4), its stale-pasted-output block survives (block 2), and its engine-defective-selection-coverage block is FIXED by the new engine-defective scenario (fake log with a completed turn 1, expect_comment_contains the class, engine_defective=true).

Verdict: BLOCK


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 7903e13ea5518bca15004b42845c361b88a50396 (branch: not returned by get_pr_meta; body says a feat/ branch)

Change class: hook/workflow — the org-wide charly/pr-validator guardrail + its offline harness, plus a new repo-root .gitignore (3 files, +195/−71). Placement: CORRECT (an org-wide reusable workflow and its in-repo coverage belong in .github; no core/sdk/candy surface is touched).

Security screen: T1–T3 — no secrets, no egress, no dependency/CI-script change beyond the guardrail itself; the one description↔diff mismatch is the unaccounted .gitignore (block 1). T4 — the guardrail change carries explicit maintainer sign-off on the PR (atrawog 08:17 and 09:14, the latter explicitly directing the T13 clause and the engine-defective class) and preserves the fail-closed invariant (PASS still requires review rc=0; INCONCLUSIVE still exits 3 with the check RED); the T13 clause is explicitly not a bootstrap and forbids --admin/agent bypass — no T4 finding.

Blocks

  1. A1 / T3 — the body's file accounting omits a file that IS in the diff. The body's "Files in the diff (nothing else):" lists only .github/workflows/pr-validator.yml and .github/tests/validator-gate-harness.py, but the current diff adds a third file: .gitignore (new, 5 lines — __pycache__/, *.pyc). A diff item missing from the body's accounting is a defect, and "nothing else" makes it a description↔code mismatch. The R8 answer ("N/A — no generated artifact in this diff") is likewise stale — the diff carries an artifact-hygiene change. Fix: account for .gitignore in the summary and in the R8 answer.

  2. A1 / rule-4 — the body's pasted git diff --stat contradicts the current head. Body: "git diff --stat origin/main..HEAD → … (2 files changed, 70 insertions, 70 deletions)". get_pr_meta for head 7903e13 reports 3 changed files, +195/−71. The pasted stat predates both the T13/engine-defective commit and the .gitignore commit. Fix: re-run and paste on the current head.

  3. A1 / rule-4 — the body's commit accounting and gate-output label are stale. Body: "3 self-contained commits (… 2b9c0cd — this branch tip)", and the gate output is labelled "from the final committed tree (head 2b9c0cd, the branch tip — re-run after the T2/T4 fix)". get_pr_commits returns 5 commits (9f84495, 399fdd5, 2b9c0cd, 33138a0, 7903e13); the tip is 7903e13. The pasted output's own header ("scenarios: 7") cannot be from the labelled head either — the engine-defective scenario was added in 33138a0, after 2b9c0cd. Fix: state the real commit count and tip (and note the intended squash, per B15).

  4. A1 / B14(d) — the pre-fix discriminator does not cover the new assertions. The body's pasted "FAILED assertions" list (10 items) contains only RCA/comment-text assertions. It contains none of the assertions added at 2b9c0cd/33138a0: functional: the review step EXPORTS AI_REVIEW_ATTEMPT_TIMEOUT for the plugin, structural: the engine-defective classification is DERIVED from the run's own signature, and the engine-defective scenario's expect_comment_contains needles. The body's claim "the new assertions FAIL on the pre-fix workflow (discriminator above)" is therefore not backed by pasted output. Fix: re-run the pre-fix discriminator against the current harness and paste the full FAILED list.

  5. R1 / B5 — the body's RCA sentence still misstates the observed signature, contradicting the PR's own pasted log and the header it ships. Body (b): "so turn 1 succeeds and turn 2's enlarged context exceeds the cap, identically on all 3 attempts" (and earlier "the 3× timeout / no-verdict signature"). The log pasted in this PR's own comment (08:29, run 34682776608 @ 9f8449528b) shows attempts 1 and 2 completing turn 2 with turn 2: final content len=0 / review_len=0 — no deadline — and only attempt 3 hitting context deadline exceeded; the author's own comment says "twice returning an empty final message … and once blowing the per-request deadline". The header in this same diff now states both branches correctly, so the body contradicts the artifact it ships. Fix: align the body sentence with the header (2/3 empty content, 1/3 deadline) and drop "identically on all 3 attempts" / "3× timeout".

Comments considered

  • atrawog 08:17 (T4 sign-off) — verified-non-blocking: satisfies T4's explicit-sign-off requirement; fail-closed preserved.
  • github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking: it is main's pre-fix text (the artifact this PR corrects), not a PR defect.
  • atrawog 08:29 (live log) — verified: it is the evidence that contradicts the body's RCA sentence (block 5); the comment itself is honest about the empty-content branch.
  • github-actions[bot] 08:52 (prior BLOCK @ 9f8449528b) — stale-superseded as to head SHA; its block 1 (header RCA) is FIXED in the header and the Gate (inconclusive) echo but survives in the body (block 5); its block 2 (env coverage) is FIXED (functional env assertions added); its block 3 (harness race) is FIXED (exclusive flock + bounded LOCK_WAIT_SECONDS + fail-fast).
  • atrawog 09:14 (T4/T13 sign-off, expanded scope) — verified-non-blocking: covers the T13 clause and the engine-defective class; no T4 finding.
  • github-actions[bot] 09:16 (prior BLOCK @ 399fdd565b46) — stale-superseded as to head SHA; block 1 (header RCA) FIXED; block 2 (coverage) FIXED; block 3(a) footer FIXED (the *Assisted-by: …* line is now the body's last line); block 3(b) commit count NOT fixed (now 5 commits, body still says 3 → block 3); block 3(c) stale pasted output NOT fixed (blocks 2 and 4); block 4 (race) FIXED.
  • github-actions[bot] 09:32 (prior BLOCK @ 2b9c0cde4157) — stale-superseded as to head SHA; block 1 (body RCA sentence) survives (block 5); block 2 (stale pasted outputs) survives (blocks 2 and 4); block 3 (engine-defective selection coverage) is FIXED — the new engine-defective scenario drives a fake log carrying turn 1: 4 tool call(s) and asserts the notice selects the engine-defective (the review engine … class, so the true branch is now exercised functionally.

Verdict: BLOCK


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 7903e13ea5518bca15004b42845c361b88a50396 (branch: not returned by get_pr_meta; body says a feat/ branch)

Change class: hook/workflow — the org-wide charly/pr-validator guardrail + its offline harness, plus a new repo-root .gitignore (3 files, +195/−71). Placement: CORRECT (an org-wide reusable workflow and its in-repo coverage belong in .github; no core/sdk/candy surface is touched).

Security screen: T1–T3 — no secrets, no egress, no dependency/CI-script change beyond the guardrail itself; the one description↔diff mismatch is the unaccounted .gitignore (block 1). T4 — the guardrail change carries explicit maintainer sign-off on the PR (atrawog 08:17 and 09:14, the latter explicitly directing the T13 clause and the engine-defective class) and preserves the fail-closed invariant (PASS still requires review rc=0; INCONCLUSIVE still exits 3 with the check RED); the T13 clause is explicitly not a bootstrap and forbids --admin/agent bypass — no T4 finding.

Blocks

  1. A1 / T3 — the body's file accounting omits a file that IS in the diff. The body's "Files in the diff (nothing else):" lists only .github/workflows/pr-validator.yml and .github/tests/validator-gate-harness.py, but the current diff adds a third file: .gitignore (new, 5 lines — __pycache__/, *.pyc). A diff item missing from the body's accounting is a defect, and "nothing else" makes it a description↔code mismatch. The R8 answer ("N/A — no generated artifact in this diff") is likewise stale — the diff carries an artifact-hygiene change. Fix: account for .gitignore in the summary and in the R8 answer.

  2. A1 / rule-4 — the body's pasted git diff --stat contradicts the current head. Body: "git diff --stat origin/main..HEAD → … (2 files changed, 70 insertions, 70 deletions)". get_pr_meta for head 7903e13 reports 3 changed files, +195/−71. The pasted stat predates both the T13/engine-defective commit and the .gitignore commit. Fix: re-run and paste on the current head.

  3. A1 / rule-4 — the body's commit accounting and gate-output label are stale. Body: "3 self-contained commits (… 2b9c0cd — this branch tip)", and the gate output is labelled "from the final committed tree (head 2b9c0cd, the branch tip — re-run after the T2/T4 fix)". get_pr_commits returns 5 commits (9f84495, 399fdd5, 2b9c0cd, 33138a0, 7903e13); the tip is 7903e13. The pasted output's own header ("scenarios: 7") cannot be from the labelled head either — the engine-defective scenario was added in 33138a0, after 2b9c0cd. Fix: state the real commit count and tip (and note the intended squash, per B15).

  4. A1 / B14(d) — the pre-fix discriminator does not cover the new assertions. The body's pasted "FAILED assertions" list (10 items) contains only RCA/comment-text assertions. It contains none of the assertions added at 2b9c0cd/33138a0: functional: the review step EXPORTS AI_REVIEW_ATTEMPT_TIMEOUT for the plugin, structural: the engine-defective classification is DERIVED from the run's own signature, and the engine-defective scenario's expect_comment_contains needles. The body's claim "the new assertions FAIL on the pre-fix workflow (discriminator above)" is therefore not backed by pasted output. Fix: re-run the pre-fix discriminator against the current harness and paste the full FAILED list.

  5. R1 / B5 — the body's RCA sentence still misstates the observed signature, contradicting the PR's own pasted log and the header it ships. Body (b): "so turn 1 succeeds and turn 2's enlarged context exceeds the cap, identically on all 3 attempts" (and earlier "the 3× timeout / no-verdict signature"). The log pasted in this PR's own comment (08:29, run 34682776608 @ 9f8449528b) shows attempts 1 and 2 completing turn 2 with turn 2: final content len=0 / review_len=0 — no deadline — and only attempt 3 hitting context deadline exceeded; the author's own comment says "twice returning an empty final message … and once blowing the per-request deadline". The header in this same diff now states both branches correctly, so the body contradicts the artifact it ships. Fix: align the body sentence with the header (2/3 empty content, 1/3 deadline) and drop "identically on all 3 attempts" / "3× timeout".

Comments considered

  • atrawog 08:17 (T4 sign-off) — verified-non-blocking: satisfies T4's explicit-sign-off requirement; fail-closed preserved.
  • github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking: it is main's pre-fix text (the artifact this PR corrects), not a PR defect.
  • atrawog 08:29 (live log) — verified: it is the evidence that contradicts the body's RCA sentence (block 5); the comment itself is honest about the empty-content branch.
  • github-actions[bot] 08:52 (prior BLOCK @ 9f8449528b) — stale-superseded as to head SHA; its block 1 (header RCA) is FIXED in the header and the Gate (inconclusive) echo but survives in the body (block 5); its block 2 (env coverage) is FIXED (functional env assertions added); its block 3 (harness race) is FIXED (exclusive flock + bounded LOCK_WAIT_SECONDS + fail-fast).
  • atrawog 09:14 (T4/T13 sign-off, expanded scope) — verified-non-blocking: covers the T13 clause and the engine-defective class; no T4 finding.
  • github-actions[bot] 09:16 (prior BLOCK @ 399fdd565b46) — stale-superseded as to head SHA; block 1 (header RCA) FIXED; block 2 (coverage) FIXED; block 3(a) footer FIXED (the *Assisted-by: …* line is now the body's last line); block 3(b) commit count NOT fixed (now 5 commits, body still says 3 → block 3); block 3(c) stale pasted output NOT fixed (blocks 2 and 4); block 4 (race) FIXED.
  • github-actions[bot] 09:32 (prior BLOCK @ 2b9c0cde4157) — stale-superseded as to head SHA; block 1 (body RCA sentence) survives (block 5); block 2 (stale pasted outputs) survives (blocks 2 and 4); block 3 (engine-defective selection coverage) is FIXED — the new engine-defective scenario drives a fake log carrying turn 1: 4 tool call(s) and asserts the notice selects the engine-defective (the review engine … class, so the true branch is now exercised functionally.

Verdict: BLOCK


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 7903e13ea5518bca15004b42845c361b88a50396 (branch: not returned by get_pr_meta)

Security screen: PASS — T1–T4 clean. No secrets, egress, new deps, or CI-script change beyond the guardrail itself; the diff does not redefine how this validator validates. The guardrail change preserves fail-closed (PASS still requires review rc=0; INCONCLUSIVE still exits 3 with the check RED), the new T13 clause is explicitly not a bootstrap and forbids --admin/agent bypass, and explicit maintainer sign-off is recorded on the PR (atrawog 08:17 and 09:14, the latter directing the T13 clause and the engine-defective class).
Checklist: All applicable rules PASS or NA. A1–A3 satisfied (body accounts for all 3 diff files incl. .gitignore; stat 3 files/+195/−71, 5 commits, tip 7903e13, 8 scenarios/103 assertions all match the current head; footer is the body's last line; tier analysed on a live system not inflated). R0–R10 answered with the corrected RCA stated in both branches (2/3 empty content, 1/3 deadline) in header, body and the posted INCONCLUSIVE comment; the superseded throttled-egress RCA is deleted, not parked, and a negative assertion keeps it out. R10 coverage is load-bearing: the env passthrough is asserted functionally (exports + resolves 900/120) and the engine-defective selection is exercised by a scenario whose fake log carries a completed turn 1. R7/R9/ADE/SDD/Go gates NA — no runtime, candy, schema, or Go in this diff. Placement: CORRECT (an org-wide reusable workflow and its in-repo coverage belong in .github; no core/sdk/candy surface touched).

Comments considered: atrawog 08:17 (T4 sign-off) — verified-non-blocking; github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking (it is main's pre-fix text, the artifact this PR corrects); atrawog 08:29 (live log) — verified (it matches the corrected RCA now shipped); github-actions[bot] 08:52 (BLOCK @ 9f8449528b) — stale-superseded, all three blocks fixed (both-branch RCA in header+body, functional env assertions, flock); atrawog 09:14 (T4/T13 sign-off) — verified-non-blocking; github-actions[bot] 09:16 (BLOCK @ 399fdd565b46) — stale-superseded, all blocks fixed; github-actions[bot] 09:32 (BLOCK @ 2b9c0cde4157) — stale-superseded, all blocks fixed; github-actions[bot] 09:49 ×2 (BLOCK @ 7903e13) — stale-superseded, all blocks fixed (body now accounts for .gitignore and answers R8, stat/commit/head/scenario counts corrected, 12-item pre-fix discriminator now includes the functional assertions, body RCA aligned with the header).

Verdict: PASS


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 7903e13ea5518bca15004b42845c361b88a50396 (branch: not returned by get_pr_meta)

Security screen: PASS — T1–T4 clean. No secrets, egress, new deps, or CI-script change beyond the guardrail itself; the diff does not redefine how this validator validates. The guardrail change preserves fail-closed (PASS still requires review rc=0; INCONCLUSIVE still exits 3 with the check RED), the new T13 clause is explicitly not a bootstrap and forbids --admin/agent bypass, and explicit maintainer sign-off is recorded on the PR (atrawog 08:17 and 09:14, the latter directing the T13 clause and the engine-defective class).
Checklist: All applicable rules PASS or NA. A1–A3 satisfied (body accounts for all 3 diff files incl. .gitignore; stat 3 files/+195/−71, 5 commits, tip 7903e13, 8 scenarios/103 assertions all match the current head; footer is the body's last line; tier analysed on a live system not inflated). R0–R10 answered with the corrected RCA stated in both branches (2/3 empty content, 1/3 deadline) in header, body and the posted INCONCLUSIVE comment; the superseded throttled-egress RCA is deleted, not parked, and a negative assertion keeps it out. R10 coverage is load-bearing: the env passthrough is asserted functionally (exports + resolves 900/120) and the engine-defective selection is exercised by a scenario whose fake log carries a completed turn 1. R7/R9/ADE/SDD/Go gates NA — no runtime, candy, schema, or Go in this diff. Placement: CORRECT (an org-wide reusable workflow and its in-repo coverage belong in .github; no core/sdk/candy surface touched).

Comments considered: atrawog 08:17 (T4 sign-off) — verified-non-blocking; github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking (it is main's pre-fix text, the artifact this PR corrects); atrawog 08:29 (live log) — verified (it matches the corrected RCA now shipped); github-actions[bot] 08:52 (BLOCK @ 9f8449528b) — stale-superseded, all three blocks fixed (both-branch RCA in header+body, functional env assertions, flock); atrawog 09:14 (T4/T13 sign-off) — verified-non-blocking; github-actions[bot] 09:16 (BLOCK @ 399fdd565b46) — stale-superseded, all blocks fixed; github-actions[bot] 09:32 (BLOCK @ 2b9c0cde4157) — stale-superseded, all blocks fixed; github-actions[bot] 09:49 ×2 (BLOCK @ 7903e13) — stale-superseded, all blocks fixed (body now accounts for .gitignore and answers R8, stat/commit/head/scenario counts corrected, 12-item pre-fix discriminator now includes the functional assertions, body RCA aligned with the header).

Verdict: PASS


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 12, 2026 10:25
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 7903e13ea5518bca15004b42845c361b88a50396 (branch: not returned by get_pr_meta)

Security screen: PASS — T1–T4 clean. No secrets, egress, new deps, or CI-script change beyond the guardrail itself; the diff does not redefine how this validator validates. The guardrail change preserves fail-closed (PASS still requires review rc=0; INCONCLUSIVE still exits 3 with the check RED), the new T13 clause is explicitly not a bootstrap and forbids --admin/agent bypass, and explicit maintainer sign-off is recorded on the PR (atrawog 08:17 and 09:14, the latter directing the T13 clause and the engine-defective class).
Checklist: All applicable rules PASS or NA. A1–A3 satisfied: the body accounts for all 3 diff files (incl. .gitignore), its stat (3 files/+195/−71), commit set (5, tip 7903e13), scenario/assertion counts (8/103) and pre-fix discriminator (12 items, incl. the functional env + engine-defective assertions) all match the current head; the *Assisted-by: …* footer is the body's last line; tier analysed on a live system is not inflated. R0–R10 answered; the corrected RCA is stated in both branches (2/3 empty content, 1/3 deadline) consistently in header, body and the posted INCONCLUSIVE comment, the superseded throttled-egress RCA is deleted (not parked) with a negative assertion keeping it out, and the sweep output is pasted. R10 coverage is load-bearing (env passthrough asserted functionally — exports + resolves 900/120; engine-defective selection exercised by a scenario whose fake log carries a completed turn 1). R7/R9/ADE/SDD/Go gates NA — no runtime, candy, schema, or Go in this diff. Placement: CORRECT (an org-wide reusable workflow and its in-repo coverage belong in .github; no core/sdk/candy surface touched).

Comments considered: atrawog 08:17 (T4 sign-off) — verified-non-blocking; github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking (it is main's pre-fix text, the artifact this PR corrects); atrawog 08:29 (live log) — verified (matches the corrected RCA now shipped); github-actions[bot] 08:52 / 09:16 / 09:32 / 09:49×2 (prior BLOCKs at earlier heads) — stale-superseded (head SHAs superseded; each block re-derived against the current diff and found fixed: both-branch RCA in header+body, functional env assertions, flock race fix, .gitignore accounted, stat/commit/head/scenario counts corrected, engine-defective selection covered); atrawog 09:14 (T4/T13 sign-off, expanded scope) — verified-non-blocking; github-actions[bot] 10:25 (prior PASS @ 7903e13) — verified-non-blocking (same head; independently re-derived, not inherited).

Verdict: PASS


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 7903e13ea5518bca15004b42845c361b88a50396 (branch: not returned by get_pr_meta)

Security screen: PASS — T1–T4 clean. No secrets, egress, new deps, or CI-script change beyond the guardrail itself; the diff does not redefine how this validator validates. The guardrail change preserves fail-closed (PASS still requires review rc=0; INCONCLUSIVE still exits 3 with the check RED), the new T13 clause is explicitly not a bootstrap and forbids --admin/agent bypass, and explicit maintainer sign-off is recorded on the PR (atrawog 08:17 and 09:14, the latter directing the T13 clause and the engine-defective class).
Checklist: All applicable rules PASS or NA. A1–A3 satisfied: the body accounts for all 3 diff files (incl. .gitignore), its stat (3 files/+195/−71), commit set (5, tip 7903e13), scenario/assertion counts (8/103) and pre-fix discriminator (12 items, incl. the functional env + engine-defective assertions) all match the current head; the *Assisted-by: …* footer is the body's last line; tier analysed on a live system is not inflated. R0–R10 answered; the corrected RCA is stated in both branches (2/3 empty content, 1/3 deadline) consistently in header, body and the posted INCONCLUSIVE comment, the superseded throttled-egress RCA is deleted (not parked) with a negative assertion keeping it out, and the sweep output is pasted. R10 coverage is load-bearing (env passthrough asserted functionally — exports + resolves 900/120; engine-defective selection exercised by a scenario whose fake log carries a completed turn 1). R7/R9/ADE/SDD/Go gates NA — no runtime, candy, schema, or Go in this diff. Placement: CORRECT (an org-wide reusable workflow and its in-repo coverage belong in .github; no core/sdk/candy surface touched).

Comments considered: atrawog 08:17 (T4 sign-off) — verified-non-blocking; github-actions[bot] 08:27 (INCONCLUSIVE comment) — verified-non-blocking (it is main's pre-fix text, the artifact this PR corrects); atrawog 08:29 (live log) — verified (matches the corrected RCA now shipped); github-actions[bot] 08:52 / 09:16 / 09:32 / 09:49×2 (prior BLOCKs at earlier heads) — stale-superseded (head SHAs superseded; each block re-derived against the current diff and found fixed: both-branch RCA in header+body, functional env assertions, flock race fix, .gitignore accounted, stat/commit/head/scenario counts corrected, engine-defective selection covered); atrawog 09:14 (T4/T13 sign-off, expanded scope) — verified-non-blocking; github-actions[bot] 10:25 (prior PASS @ 7903e13) — verified-non-blocking (same head; independently re-derived, not inherited).

Verdict: PASS


ollama/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot merged commit 7d10b33 into main Sep 12, 2026
3 of 4 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 12, 2026
@aitrawog
aitrawog deleted the feat/ai-review-attempt-timeout branch September 25, 2026 19:08
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