Skip to content

Accept recorded Codex reviews with recoverable publication (T59) #227

Closed

Description

@erickb336

Parent work: #88 and #138. Build after #224 and #225.

Let the Codex chief accept one authenticated saved review through sage_accept_review. Acceptance records the exact findings and verdict. It does not mark work verified, authorize a merge or activate automatic Sage.

Scope:

  • Extract only the consumed review-acceptance tool, recorded-report adapter and core operation. Reuse the report parser and validated recorded-write engine.
  • Authenticate the chief and fixed logbook. Accept assignment identity and exact report hash; derive the role, task, run, branch, commit, round and cycle from saved evidence.
  • First acceptance requires an unheld task, the completed run, exact report bytes, current branch head and matching review target. Check held state only after recovery and historical-receipt handling. Refuse caller-supplied verdicts or targets.
  • Permit checks evidence alongside the run's one review/QA verdict, while refusing a second review/QA acceptance. Confirm current main/Claude parity before implementation; do not edit Claude's active CLI verdict function.
  • Preserve low findings. Blocking findings move verified or pr-ready work back to reviewing with the required decision row.
  • Supply a pure review-specific validator before recovery publication: strict saved result fields, exact findings and ledger append, permitted task change, decision append and valid saved timestamps. Preserve prior rows. Do not copy the older integration transaction engine or provide a no-op validator.
  • Include review receipt versions in the shared snapshot reader without changing Claude's active mergeCheck/logbookView bodies. Preserve task and run receipt guards.

Acceptance:

  • Test every supported reviewer role and QA result, positive controls, checks coexistence, duplicate-review refusal, stale commit/round/cycle refusal, and no authority beyond recorded acceptance.
  • Test exact retries across reconnect and concurrency. A receipt returns its historical result. An already validated partial intent can finish after Git advances; unrelated table changes still prevent recovery.
  • Refuse checksum-valid malformed results, altered table changes, conflicting receipts and redirected receipt folders before any publication. Exercise each publication boundary.
  • A transaction completed between snapshot reads must not hide a newly open finding. Start from an otherwise eligible merge.
  • Final-commit native probe records, finishes and accepts one review, then retries unchanged. Check real ledger/findings counts and temporary-profile cleanup. Label model responses simulated.
  • Prove new tests against detached latest main and isolate behavioral repairs against the integration implementation. Run build/check, focused/full local tests, exact-head CI and two clean independent code/security/QA cycles.

Exclude task updates, installed activation, board work, and Claude-active task-set/replan, mergeCheck, logbookView and CLI verdict changes. No product decision is currently identified for this extraction.

Activity

  1. added
    codex
    on Oct 14, 2026
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

    codex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions