Skip to content

ci: accept exact-head local Codex review receipts (disabled) - #53

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

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

Conversation

@brettheap

@brettheap brettheap commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Scope

Task set LOCAL-REVIEW-10 (feature 009 T033–T035), governed by
opensoft/openRepoTools-spec#26 and accept-exact-head-local-reviews.
Paired governance PR: opensoft/openRepoTools-spec#36.

Add an explicit local Codex skill-review receipt alternative to the prepared
candidate reader. This is operator-authenticated local acceptance, not a forged
hosted Codex summary or independent human approval.

  • Exact repository, PR, current head and reviewed base, strict schema/report.
  • GitHub User identity and current write/admin permission, read-only APIs only.
  • New unedited comments; latest authorized local decision controls revocation.
  • Complete REST/GraphQL comment ID-to-body agreement before local OR hosted
    selection, complete resolved threads, and final live access/digest rechecks.
  • Preserve hosted-only compatibility and all candidate/historical artifact schemas.
  • Isolate an existing test's clock stub from subprocess polling; no retry or
    coverage reduction.

Verification

  • 908 focused CI/Sonar contract tests passed, zero skips, through tests/run.sh.
  • All 72 added tests passed without the dependency submodule, zero skips.
  • Initial local-only/mixed candidate regressions failed the old reader as expected.
  • A deterministic regression failed the old global time.sleep test stub.
  • Strict OpenSpec validation passed for the new and predecessor changes.
  • Local pre-PR specialist review found history races; fixes and final security,
    reliability, QA, API-contract, CI and static re-review closed the findings.
  • Read-only GitHub inspection confirmed the required permission endpoint and
    REST/GraphQL comment-body representation. Not a live queue/canary test.

Local tests used non-root offline disposable QA, bounded 2CPU/2GiB. Hosted full
CI and reuse qualification must still pass; local checks are not hosted or live
acceptance. No structured acceptance receipt is posted automatically by this PR.

Boundaries

Leave open; no merge authority. Activation remains false. Workflow definitions,
queue configuration, legacy full checks, coverage baselines, dependency pins,
releases, app/settings and lanes 1–5 are unchanged. No queue command, canary,
ruleset bypass, installed-tool refresh or assembly pin bump.

Summary by Sourcery

Prepare a fail-closed local Codex review receipt alternative for exact candidate heads without enabling activation or granting merge authority.

New Features:

  • Add a prepared exact-head local Codex review receipt path authenticated through a new comment from a current repository writer.
  • Support local review receipts for candidate admission while preserving hosted Codex review fallback and existing delivery authority boundaries.

Bug Fixes:

  • Reject incomplete, edited, replaced, stale, revoked, unauthorized, or inconsistent review evidence during local or hosted review selection.
  • Prevent shared clock stubs in tests from affecting subprocess timeout polling.

Enhancements:

  • Reconcile REST and GraphQL comment histories, author permissions, review-thread resolution, and final live evidence before accepting review receipts.

Documentation:

  • Document the exact-head local review receipt contract, operator attestation boundaries, revocation behavior, and disabled activation state.

Tests:

  • Add comprehensive offline contract and regression coverage for valid local receipts, malformed or forged evidence, authorization changes, history races, metadata edits, and unresolved threads.

Chores:

  • Record the local-review receipt change and its disabled, non-authoritative disposition in the feature documentation.

@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 2 days and 12 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

Implementation

Implement local receipt validation and selection, reconciling complete REST and GraphQL comment histories before either local or hosted review and requiring current writer identity, exact-head metadata, and resolved threads.

  • .github/ci/delivery_verify.py L56-63, L78-171, L188-200 (+5 small edits)

Configuration

Add a disabled-by-default local review receipt contract to the delivery runbook and candidate guidance, documenting acceptance limits, revocation, and the boundary with merge authority.

  • .github/ci/delivery-cutover.md L50-53, L111-112, L137-206
  • .github/ci/task-set-delivery.md L101-110

Record the governing change, implementation scope, authority, and disabled operational disposition for local review receipts.

  • features/009-manual-two-pr-queue/openspec/local-review-receipts.md L1-21

Tests

Adapt existing candidate and repair tests to the expanded comment metadata reader, and isolate the retry wait stub from subprocess polling.

  • tests/test_ci_cutover.py L108-568 (6 small edits)
  • tests/test_ci_cutover_repair.py L118-126 (+10 small edits)

Update hosted-review fixtures and verification helpers for complete comment ID/body metadata and the revised thread response shape.

  • tests/test_ci_delivery.py L134-140 (+4 small edits)

Add regression coverage for valid local receipts, strict schema and identity checks, revocation ordering, metadata and permission races, hosted fallback, and disabled preparation boundaries.

  • tests/test_ci_local_review.py L1-356

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

@sonarqubecloud

Copy link
Copy Markdown

@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:20.292458Z
We couldn’t complete this review. Comment @codex review to try again.
a930036 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 6292cf5 into main Nov 13, 2026
46 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

  • Reviewed code head: a930036.
  • Landed squash commit: 6292cf5.
  • Landed tree e732cf945752003a38ebd7bc5b0f152c79cf9e6e exactly matches both the source head and the actual CI merge commit aa6e30f; parent remains the qualified main 5173ad2.
  • Ordinary full CI: 15/15 jobs passed.
  • Reusable full qualification: 17/17 jobs passed.
  • Fast CI: passed.
  • Downloaded all four hosted JUnit inventories: each contains the same 5,197 distinct cases. Normal variants: 5,028 passed / 169 existing skips. Deliberate no-submodule variants: 3,679 passed / 1,518 existing skips. Versus the qualified 5,125-case baseline: exactly 72 added cases, all passed in every variant; zero removals, duplicate identities, failures or skip-identity changes.
  • Local skill review (master, nine standard expert roles and CI specialist) found no remaining actionable findings after the repaired full-history race and test-clock regression. Hosted Codex was requested but could not complete due to review quota; this receipt does NOT claim hosted bot approval or cryptographic execution proof.
  • Paired governance: spec PR36, landed fd70ac58ec1160868795660a2918a517131862fc; final task/publication-only notes were coordinator-reviewed.

Scope remains source-only. delivery-policy.json is still enabled: false. No activation/settings/ruleset/app/queue/canary/release changes, assembly-pin adoption, shared checkout refresh or lane/session actions were performed. This ordinary qualification comment is not a structured local-review admission receipt.

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