Skip to content

Enable the exact P07/P09 stacking canary - #112

Merged
brettheap merged 3 commits into
mainfrom
ci/p07-p09-exact-canary
Nov 19, 2026
Merged

brettheap merged 3 commits into
mainfrom
ci/p07-p09-exact-canary

Conversation

@brettheap

@brettheap brettheap commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Adds the manual, ordered #97 then #103 queue with authenticated fresh source CI, one full candidate qualification, and exact landed-tree verification. No admission is automatic; source heads and bodies remain unchanged. Ordinary full fallback and other queues stay unchanged. P08 (#106) is held. No release, app-access, ruleset, pin, or lane changes.

Refs opensoft/openRepoTools#165 and #111.

Summary by Sourcery

Enable a manual exact P07-then-P09 canary with authenticated source qualification and immutable landed-tree verification.

New Features:

  • Add a manually controlled, ordered P07-then-P09 delivery queue with exact source, candidate, and landing verification.

Bug Fixes:

  • Prevent admission when source CI, review history, candidate order, tree identity, or landing evidence does not match the qualified pair.

Enhancements:

  • Extend delivery evidence validation to authenticate fresh fast-only source runs, preserve per-source receipts, and verify exact landed-tree identities.
  • Support complete paginated review-comment history validation for exact-pair qualification.

CI:

  • Add the P07/P09 Mergify queue with bounded two-item batching and heavy CI required only after qualification.

Tests:

  • Add comprehensive tests covering queue configuration, source drift, ordering, tree proofs, source CI evidence, landing validation, heavy-run catalogues, receipts, and pagination.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Nov 19, 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 3 days and 14 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

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-19T00:30:58.204099Z
We couldn’t complete this review. Comment @codex review to try again.
296d21a 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.

@sourcery-ai

sourcery-ai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Define the exact P07/P09 policy, reviewed source inventories, and ordered-tree contract that the rest of the canary relies on.

  • .github/ci/delivery-p07-p09.json L1-76
  • .github/ci/delivery_p07_p09.py L1-181

API

Extend receipt validation and candidate and landing verification to authenticate exact-pair source evidence and confirm the ordered pair's landed trees.

  • .github/ci/delivery_evidence.py L127-135, L190-266, L391-485 (+8 small edits)

Uses of the API

Route exact-pair sources through the new policy and carry authenticated source receipts through duplicate admission and landing checks.

  • .github/ci/delivery_route.py L171-177, L196-199, L245-249 (+3 small edits)

Implementation

Add exact-pair scope selection, complete paginated review-comment validation, fresh source-CI checks, and ordered candidate admission while preserving existing scopes.

  • .github/ci/delivery_verify.py L77-123, L413-424, L503-521 (+11 small edits)

Configuration

Configure a manual, bounded queue for only the P07/P09 pair, requiring fast delivery checks and batch-heavy success without retries.

  • .mergify.yml L171-202

Tests

Exercise exact-pair policy, source and candidate evidence, landing, catalogue, receipt, and paginated review-history safeguards.

  • tests/test_ci_p07_p09.py L1-361

Keep the pilot queue inventory assertion aligned with the new queue.

  • tests/test_ci_pilot_queue.py L93-94

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

@codex review

@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

Copy link
Copy Markdown
Contributor Author
{
  "schema_version": 1,
  "repository": "opensoft/openRepoTools-code",
  "pull_request": 112,
  "head_sha": "296d21a8a4372e8efb2e15fbcd6fde1daee44f0c",
  "base_sha": "7a176474c28735dba49bb4f791ac2e6d357c038f",
  "reviewer": "codex-local",
  "skill": "pr-review",
  "status": "accepted",
  "unresolved_findings": 0,
  "findings": "Nine-role local expert panel: no unresolved findings on this exact head and base. Hosted Codex did not complete; the authorized local review is separate.",
  "resolution": "Re-reviewed the current-base source receipts, authenticated probe-only classifier, operator consent contract, and latest test-only queue inventory correction where applicable. No review finding or CI gate is waived.",
  "validation": "848 focused regressions passed for the production delta. The final test-only change passed 320 pilot-contract/exact-pair tests. Offline exact real Git rehearsal checked all 40 P07 and 165 P09 commits, both ordered prefix trees, and rejected wrong member order/count."
}

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap merged commit d34963f into main Nov 19, 2026
53 checks passed
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