Skip to content
This repository was archived by the owner on Oct 9, 2026. It is now read-only.
This repository was archived by the owner on Oct 9, 2026. It is now read-only.

Rework durable Background Review around upstream review primitives #231

Closed as not planned
3 of 3 issues completed
Closed as not planned

Description

@shiny-code-bot

Finish Line

Codex Lab retains durable Background Review as an Every Code product capability, but the implementation is rebuilt as a thin scheduler/artifact layer on top of upstream manual Review, Approval Review/Guardian, hooks, and bounded context primitives instead of carrying the current forked review runtime unchanged.

Current Status

State: later Background Review thinning owner; the obsolete dependency on future milestone-8 work is removed. #909/#911 remain closed. #927/#928 measure convergence first, and #787 remains the protected instruction-delivery product slice.

Research #926 is incorporated as open hook feasibility questions. Preserve the thin scheduler/artifact objective, native fallback contracts, worktree coordination #318, immutable snapshots #572, terminology #303 and distinct Guardian/manual review/Validation semantics.

Next action when promoted: choose a measured small thinning slice from actual repair or dogfood evidence. No second review engine or wholesale unmodified-runtime replacement is qualified. #149 owns generic quality-hook lifecycle; #895 remains independent bounded fingerprint hardening. Last verified: September 16, 2026.

Priority clarification after the resumed convergence decision: #787 instruction delivery remains the next protected product slice after #928, before promoting broad extraction or Background Review thinning.

Acceptance Criteria

  • Upstream-owned manual Review files are restored or minimized toward upstream shapes wherever possible.
  • The local durable Background Review layer has a bounded data model: run id, source, target fingerprint, status, model, timestamps, bounded rendered findings, and raw detail with hard caps.
  • Background scheduling uses captured completed-turn diffs and upstream ReviewTarget::Custom or an equivalent supported target, not a competing manual-review protocol fork.
  • Model-visible awareness is implemented only as a bounded ContextualUserFragment and follows Codex Lab code-review context rules.
  • App-server summary/detail/control APIs are retained only if TUI/WebUI/client needs justify them after upstream sync.
  • Quality gates are mapped to upstream hooks where that preserves behavior.
  • Approval Review/Guardian remains approval and safety review, not the general code-review findings engine.
  • Product surfaces consistently use the Adopt Background Review terminology across product surfaces #303 terminology while preserving compatibility-sensitive wire and storage identifiers.
  • Future upstream review/hook branches are watched as inputs but are not treated as landed mainline dependencies.

Relationships

Research incorporated from #926

Upstream async hooks exist, but only synchronous handlers can apply turn-control effects. Blocking Stop feedback can request continuation; an async reviewer needs a separately proven result-delivery path.

A future hook-based review trial must account for exact revision targeting, persistence/resume, deduplication/stale suppression, cancellation, bounded findings, complete applicable instructions and reliable desktop/mobile surfacing. A status-cell loss is not the full lifecycle tradeoff. Verify the exact released binary, since upstream main can expose features absent from a release.

These are open research notes, not new blockers for existing #787/product work or mandatory spikes before this issue may advance. No plugin is enabled by this plan; #926 closes only as superseded.

Activity

  1. added 2 commits that reference this issue on Jul 1, 2026
  2. added
    plan:blockedPlan blocked by an open native dependency issue
    and removed
    plan:activePlan is actionable now
    on Jul 9, 2026
  3. changed the title [-]Rework durable auto-review around upstream review primitives[/-] [+]Rework durable Background Review around upstream review primitives[/+] on Jul 11, 2026
  4. added
    plan:waitingDurable plan parked pending a decision, event, or non-issue condition; not for PR QA
    and removed
    plan:blockedPlan blocked by an open native dependency issue
    on Aug 10, 2026
  5. added
    plan:donePlan completed or superseded
    and removed
    plan:waitingDurable plan parked pending a decision, event, or non-issue condition; not for PR QA
    on Sep 27, 2026
  6. shiny-code-app commented on Sep 27, 2026

    @shiny-code-app

    Backlog reconciliation — 2026-09-26

    Closing against the merged DIRECTION.md. Main is now upstream 2deb542491 plus the fresh-start files and the tools/account-router sidecar; the old Lab code stays preserved on archive/lab-main-2026-09-24. Evidence and history in this thread are kept.

    Disposition: superseded (not planned). DIRECTION.md retires "automatic reviews, validation, and command policies inside the engine; they live in catalog hooks". The Background Review code (codex-rs/auto-review, core/src/tasks/background_review_*) is archive-only. Any reviewer hook belongs in the shared catalog.

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

    planDurable planning issueplan:donePlan completed or superseded

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions