Repository navigation
Description
Sage task T36
Extract review-report claim validation from the Codex integration after #185. A reported clean review or QA pass must name the saved branch, commit, round and cycle. Malformed, mismatched or contradictory claims must refuse before a caller considers them for acceptance.
Scope: the public core parseReviewReport helper, review documentation, isolated provider tests and generated bundles. Decode evidence and findings only. Match the four review roles to their existing clean/failure kinds; medium or high findings require a failure result, while low-only findings can accompany a clean result. Reject unanswered questions, non-done reports, unknown fields and invalid summaries or severities. Use fixed validation errors without private report text.
This helper must not write the logbook, accept verdicts, count cycles, query Git or authorize merges. Current assignment, current commit and acceptance gates remain the chief/state-tool caller's responsibility. Do not edit state.mjs or Claude hooks while #140 is open.
Acceptance: tests cover each role and result, matching evidence, low and blocking findings, malformed input, unchanged caller data, and no state mutation. Prove new tests fail detached main, run build/check/full tests and exact-head CI, and complete two clean code/security/QA review cycles on the final commit. This is part of #88 and #138; automatic Sage stays disabled.
T36 merged and integration verified — 2026-10-13
PR #188 merged at 8af7caa. Reviewed head ecee6f4 passed two clean code/security/QA cycles, build/check, all 1,143 local tests with serial file scheduling, and all 1,143 exact-head CI tests (run 38431096618). Three new tests fail on detached main because the API is absent.
Pushed integration cd66953 has the same tree as tested 72b8de1: build/check, 28 focused checks, and all 1,265 full tests pass. The real CLI --sage-report probe passed with simulated responses: exact review evidence produced one matching recorded verdict, retry retained that result, and task/gate/merge approval stayed unchanged. Temporary storage was removed. All owned local tests and probe processes finished.
This does not verify real-model behavior or complete installed policy. Automatic Sage remains disabled. Claude #140 was left untouched.
Activity