Skip to content

spec: govern exact-head local Codex review receipts - #36

Merged
brettheap merged 5 commits into
mainfrom
ci/exact-head-local-review
Nov 13, 2026
Merged

brettheap merged 5 commits into
mainfrom
ci/exact-head-local-review

Conversation

@brettheap

@brettheap brettheap commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Scope

Paired governance for the code change ci/exact-head-local-review, under #26.
One full OpenSpec proposal: accept-exact-head-local-reviews; one implementation
checklist: feature 009 LOCAL-REVIEW-10, T033–T035. Preserve prior approval history
while explicitly superseding the managed-only candidate review interpretation.

The contract authenticates an exact-head/base local Codex skill-review acceptance
comment through its publishing GitHub user and current writer permission. It
records findings, resolution and validation, requires unedited complete evidence
and resolved threads, supports new-comment replacement/revocation, and verifies
complete ID/body history before either local selection or hosted fallback.
It is operator attestation, not bot approval, independent human approval or merge
authority. The existing genuine hosted path stays available.

Verification

  • New and predecessor OpenSpec changes pass strict validation.
  • Code a9300367ba8202b17678b60648b701c8b52dfbb6: 908 focused tests passed with
    zero skips; all 72 additions also passed without the dependency submodule.
  • Local specialist reviews closed the reproduced history-race findings; the
    existing retry-test clock stub is isolated without reducing assertions.
  • Hosted code full/reuse CI remains separate, as do assembly and live acceptance.

Boundaries

Open PR only; do not merge or activate. No settings, queue operation, live
canary, app access, release/tag, assembly pins, active-plan or lane 1–5 changes.
Do not archive the change or treat source publication as project adoption.

Summary by Sourcery

Enable auditable writer-authenticated local Codex review receipts for exact candidate heads without activating routing or changing merge, queue, or deployment behavior.

New Features:

  • Add authenticated exact-head local Codex review receipts as an alternative to genuine hosted review summaries for candidate admission.
  • Support explicit supersession and revocation of local review decisions while retaining the existing hosted-review path when no local receipt exists.

Bug Fixes:

  • Prevent stale, edited, malformed, forged, replaced, or permission-invalid review evidence from authorizing admission, including races between REST and GraphQL history reads.

Enhancements:

  • Define bounded, fail-closed local receipt validation with complete comment history, writer permissions, exact source identity, and resolved-thread rechecks.
  • Document the local-review governance contract and operator procedure while preserving disabled activation and existing CI, queue, settings, artifact, and release boundaries.

Documentation:

  • Add OpenSpec governance and shared operational guidance for exact-head local review receipts, supersession, revocation, and preparation-only publication.

Tests:

  • Add focused regression coverage for local-only and mixed review evidence, refusal cases, permission changes, receipt races, and hosted fallback compatibility.

@sourcery-ai

sourcery-ai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day and 19 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Define the authenticated exact-head local-review receipt contract and its relationship to the existing candidate data model, preserving prior approval history while specifying supersession, revocation, and preparation-only boundaries.

  • openspec/changes/accept-exact-head-local-reviews/specs/exact-head-local-review/spec.md L1-96
  • specs/009-manual-two-pr-queue/cutover-data-model.md L33-42
  • specs/009-manual-two-pr-queue/spec.md L148-167

Documentation

Explain the proposed change, its design decisions and risks, and the authorized implementation and rollout boundaries.

  • openspec/changes/accept-exact-head-local-reviews/design.md L1-69
  • openspec/changes/accept-exact-head-local-reviews/proposal.md L1-42
  • openspec/changes/accept-exact-head-local-reviews/tasks.md L1-8
  • specs/009-manual-two-pr-queue/cutover-quickstart.md L6, L12-17, L22
  • specs/009-manual-two-pr-queue/plan.md L345-363

Tests

Record the implementation checklist, focused regression qualification, review findings, and paired-PR publication status without treating publication as activation.

  • specs/009-manual-two-pr-queue/tasks.md L180-218

Other changes

Files not grouped.

  • openspec/changes/accept-exact-head-local-reviews/.openspec.yaml L1-2

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap

Copy link
Copy Markdown
Contributor Author

Paired implementation: opensoft/openRepoTools-code#53 at a9300367ba8202b17678b60648b701c8b52dfbb6. Local panel review and focused/no-submodule regressions passed; hosted full/reuse CI remains pending. Both PRs stay open; activation remains false. No settings, queue, canary, release, pins or lanes changed. This is a publication record, not a candidate acceptance receipt.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-13T01:38:23.110500Z
We couldn’t complete this review. Comment @codex review to try again.
a503700 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap
brettheap merged commit fd70ac5 into main Nov 13, 2026
1 check passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Checked source merge completed under the user's explicit source-only approval.

Spec head a503700 landed as fd70ac5. Its tree 4e8b2e007fdc0de1dbc44c341c32c1e2ffebac3e exactly matches the reviewed source, on the unchanged qualified parent 1b1c93f.

Both accept-exact-head-local-reviews and prepare-claude-current-ci-cutover passed strict OpenSpec validation. The contract received the local expert review; later task/count/publication notes were coordinator-reviewed. Hosted Codex was requested but quota-blocked, not claimed as completed review.

Code PR53 is also merged after full ordinary CI, reusable qualification, fast CI and hosted inventory parity passed. All four variants contain the same 5,197 distinct cases: 72 additions passed in each, zero removals or new skip identities.

This completes checked source landing only, superseding the earlier preparation-only approval boundary. Activation remains disabled. No settings, queue/canary, app/ruleset, release/tag, assembly pins, shared checkout or lane/session changes were performed. Reconciliation issue #26 remains open for the separately approved adoption/activation work.

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