Skip to content

RCA + root fix: the validator cannot review a change to its own review engine (org-wide freeze, no documented exception path) #97

Closed

Description

@atrawog

RCA (R1, 8 steps) — the org validator cannot review a change to its own review engine

1. Expected behavior. Every PR gets an independent adversarial review from a fresh context. A change to the review engine itself (opencharly/plugin-review) should be reviewable, and a broken engine should be visible and repairable — the merge gate must not be able to freeze the org with no path out.

2. Actual behavior (measured 2026-09-12). plugin-review#4 (the fix for the engine's own timeout defect, locally gated green) cannot obtain a verdict: its validator run downloaded github.com/opencharly/plugin-review:main and ran the PRE-FIX client, producing the same turn 1: 4 tool call(s) → turn 2: final content len=0 / Client.Timeout … awaiting headers signature the PR fixes. While the engine is defective, EVERY repo's validate / validate is intermittently red (observed across plugin-check #45/#47, charly #587/#591, .github #96) — an org-wide merge freeze.

3. Mechanism. The org workflow (opencharly/.github/.github/workflows/pr-validator.yml) fetches the review engine from a FIXED ref (main) and runs charly review --plan. The engine's version is therefore bound to main, never to the PR under review — so (a) a PR to the engine is reviewed by the old engine, and (b) a defective engine blocks the verdicts that would land its own fix.

4. Missed control. No bootstrap/exemption path is documented for engine changes (contrast the guardrail's own T4 clause: .github changes need maintainer sign-off because the gate cannot independently review its own guardrail). No engine-health preflight and no named "engine defective" class — a broken engine presents as the generic INCONCLUSIVE and burns 15-20 minutes per run before saying nothing actionable.

5. Blast radius. Every PR in every repo (the gate is org-wide); the merge freeze is total while the engine is defective; and the fix to the engine cannot land through the gate it would repair.

6. Root cause. The review engine's version is pinned to a fixed ref instead of being treated as a component that is ITSELF under change control with a documented exception path. The gate has no way to express "this change is to the engine" — so it applies the ordinary gate to an extraordinary change and deadlocks.

7. Root fix (two parts).
a. The documented exception (policy). Extend the workflow's own T-rule block with an engine-change clause, symmetric to T4: a change to the review engine cannot be independently reviewed by that engine; it requires the maintainer's sign-off recorded on the PR plus an operator-performed merge. Explicitly NOT a bootstrap — consuming the engine from the PR head would let a PR rewrite the gate to approve itself, destroying the independence the fresh validator exists to provide. Never --admin, never an agent-performed bypass; the same posture as T4.
b. The diagnosability (code, in the same workflow). An engine-health preflight before the review step: exercise the engine once with a bounded canary and, on failure, fail fast with a NAMED class (engine-defective) carrying the engine ref, the failing signature and the remediation — instead of a 15-20 minute generic INCONCLUSIVE.

8. Documented. This issue + the corrected RCA in .github#91 + the workflow header/comment text (the T-rule block) + the harness assertions.

Immediate consequence for the currently blocked PRs

plugin-review#4 is the ONLY complete fix for the engine defect; by this RCA it cannot be merged by an agent. Under the documented policy the operator merges it (the status half of the contract is unchanged: only a fresh pr-validator posts a status; a failure/inconclusive status is never --admin-bypassed by an agent), then every later run uses the corrected engine.

Activity

  1. aitrawog commented on Oct 7, 2026

    @aitrawog
    Contributor

    RESOLVED — both halves of the root fix landed in this repo's PR #96, merged 2026-09-12 (merge commit 7d10b332), and both are live on main:

    • the documented exception path — the policy clause T13 — THE ENGINE-CHANGE EXCEPTION (opencharly/.github#97) at .github/workflows/pr-validator.yml:98-108: a change to the engine requires the maintainer's sign-off recorded on the PR and an operator-performed merge, explicitly not a bootstrap and never gh pr merge --admin;
    • the named diagnosis — a run whose engine fails a later turn is classified engine-defective (… opencharly/.github#97, see the T13 engine-change exception) at :703, selected from the run's own signature at :405-410, with functional coverage in .github/tests/validator-gate-harness.py (the engine-defective scenario);
    • recorded in CHANGELOG/2026.255.1029.md:158-161.

    Deviation, stated rather than papered over: the body asked for a fail-fast engine-health preflight; what shipped derives the same class from the real run's signature, because a bounded canary would cost a full review (the CHANGELOG entry records that choice). The org-wide freeze the issue was filed about — "no documented exception path" — is closed by T13. Closing on the merged fix.

    Agent: dsh-issue-triage
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (analysed on a live system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions