Skip to content

fix(ci): bound generated merge hints to actual tested identity - #66

Merged
brettheap merged 1 commit into
mainfrom
ci/source-generated-merge-hint-fix
Nov 13, 2026
Merged

brettheap merged 1 commit into
mainfrom
ci/source-generated-merge-hint-fix

Conversation

@brettheap

@brettheap brettheap commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

CI-METADATA-13 — bounded generated-merge-hint repair

Fresh diagnostic source PR65 refused at initial source snapshot comparison on
merge_commit_sha. Its independent fast run verified the real test merge and
ordered parents. The sparse log proves the rejecting field, not the original
raw hint value. Preserve PR65 as failed source-efficiency evidence.

Exact head: 3036650.
Reviewed base: bb25361.

Narrow behavior

At the initial source/candidate comparison, both generated hints must be absent,
null or strings equal to validated workflow GITHUB_SHA. Only a temporary
comparison copy aligns valid hints. Unknown/malformed non-null hints retain full,
even when both snapshots agree. Actual tested commits and ordered current-main/
head parents remain independently mandatory. Candidate bodies, genuine admission,
independent sources, effective protection, fast provenance and all later strict
raw live rereads remain unchanged. No schema, workflow, retry or permission change.

Review and validation

  • Red-first: 42 failed, 41 passed, 5259 deselected on the old router plus tests.
  • Green deliberate no-submodule selection: 83 passed, zero skips, 5259 deselected.
  • Wider canonical CI contracts with exact pinned standard: 996 passed, zero skips,
    4346 deselected. Disposable offline non-root bench-image QA; no running bench changes.
  • Exact committed collection confirms 81 added regressions and 5342 total cases.
  • Master, nine standard expert roles and a CI specialist completed exact-head
    local pre-pr-review without actionable findings. Expert reviews were static;
    the coordinator executed QA. This is not hosted bot approval.
  • Require complete ordinary and reusable full CI, all four JUnit inventory
    variants, unchanged existing case/skip identities and passing added cases.
  • Hosted Codex review will also be explicitly requested; quota is not approval.

Authority and acceptance

The owner's existing bundle authorizes this directly related repair, checked
normal code/spec merges and genuinely fresh canaries after actual-main qualification.
This configuration PR is full-CI only, not a fast-only source or a queue command.
T052/T053 are implemented; T054/T055 and fresh live acceptance remain pending.
Governing spec: fix-source-delivery-metadata and feature009 tasks, reconciliation
opensoft/openRepoTools-spec#26.

No ruleset/bypass, app access, paid upgrade, release, installed-tool, assembly-pin
or lane 1–5 changes. No canary success or broader adoption claimed.

Summary by Sourcery

Bound generated merge hints to the validated workflow identity during initial CI metadata comparisons without weakening independent commit, provenance, admission, or subsequent live verification.

Bug Fixes:

  • Bound generated merge hints used during initial source and candidate comparisons to absent, null, or the validated workflow commit, preventing untrusted hints from influencing admission decisions.

Enhancements:

  • Preserved independent tested-commit, ordered-parent, candidate-body, admission, and strict live-reread validation while allowing qualified generated-hint differences during the initial comparison.
  • Added diagnostics for invalid event merge hints and comprehensive regression coverage for missing, current, malformed, conflicting, and reread hint values.

Documentation:

  • Documented the bounded generated merge-hint comparison behavior and its continued strictness during later live rereads.

Tests:

  • Added regression tests covering valid hint transitions, invalid hints, parent verification, live-reread races, candidate body changes, and admission requirements.

@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 1 hour 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

Bound the initial source and candidate PR snapshot comparison to generated merge hints that are absent, null, or equal to the validated workflow SHA, while retaining independent commit/parent checks and strict later rereads.

  • .github/ci/delivery_route.py L119-124, L130-134, L141-145 (+2 small edits)

Documentation

Document the narrow initial-comparison exception for generated hints and clarify that candidate bodies and subsequent live rereads remain strict.

  • .github/ci/delivery-cutover.md L179-192

Tests

Cover allowed hint transitions, rejection of unknown or malformed hints, preservation of tested-commit and parent verification, strict rereads, exact candidate bodies, and unchanged admission requirements.

  • tests/test_ci_cutover.py L137, L143-144, L491-595

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
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-13T20:14:12.712406Z
We couldn’t complete this review. Comment @codex review to try again.
3036650 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.

@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

Exact-head local review completed for paired code3036650c508ae9dc4c2fdd9a65c649e2fe60148a
(basebb253610a46d8f06d60b0b1c371102606cf70bdb) and
spec8ab644d12022b17e45d877f75d6ff55f300d6f1a
(base7816ac5caf0ba64a3c4ed9fb9f4b9c45e8a11801).

The master, nine standard pre-pr-review expert roles and a CI specialist found
no actionable issues. Experts performed static read-only review; the coordinator
ran canonical offline QA: old-router red42failed41passed, repaired no-submodule
83passed0skips, and pinned-standard CI contracts996passed0skips. Exact committed
collection confirms81added cases/5342total. Strict OpenSpec passes.

Both initial hint values are independently bounded to absent/null or the trusted
validated workflow SHA. Comparison copies do not mutate original live evidence.
Actual ordered-parent verification, candidate bodies, real admission, independent
source proofs, protection, fast provenance and raw live rereads remain mandatory.

Hosted Codex was explicitly requested and reported usage-limit failure, not a
completed review. No inline review findings or unresolved threads were present
on either exact head at readback. The owner previously approved local expert
review for this scoped repair/checked-merge rollout. No paid change is authorized.

This is a configuration-review report, NOT a structured canary source-acceptance
receipt or queue request. Full ordinary/reusable qualification and complete
inventory parity are still pending before normal checked merges; actual main
and genuinely fresh source events remain later gates. No live success claimed.

@brettheap

Copy link
Copy Markdown
Contributor Author

CI-METADATA-13 exact-head source qualification is complete.

Code head3036650c508ae9dc4c2fdd9a65c649e2fe60148a,
basebb253610a46d8f06d60b0b1c371102606cf70bdb,
reviewed tree1163f0dc20a12a6bd7180b834ba20394924a94c2.
Spec head8ab644d12022b17e45d877f75d6ff55f300d6f1a,
base7816ac5caf0ba64a3c4ed9fb9f4b9c45e8a11801.

  • Ordinary full run43499591436: SUCCESS15/15, all jobs successful, first attempt.
  • Reusable full run43499591727: SUCCESS17/17, all jobs successful, first attempt.
  • Fast run43499591582: SUCCESS1/1.
  • Complete ordinary/reusable normal/no-submodule inventories each contain5342
    unique cases. Each retains the5261-case actual-main baseline plus exactly81
    passing regressions. Zero removals, duplicates, failures or skip-identity drift.
    Normal5169passed/173existing skips; no-submodule3820passed/1522existing skips.
  • Tested merge6955b6ed56a33f23c85d23a1936eafc1aee295f5 has ordered base/head
    parentsbb25361/3036650 and exactly the reviewed code tree1163f0d.
  • Exact-head local master/nine-standard-role/CI-specialist review is clean.
    Hosted Codex was requested and quota-failed, not approved. Strict OpenSpec passes.
  • Current main refs remain the reviewed bases. Landing readers show no open
    code/spec LANDING. Current remote audit confirms all15 unrelated historical
    warning lines contain no openRepoTools reference; logs were not rewritten.

Proceed only with the pre-approved normal checked code/spec merges, followed by
landed-tree readbacks and full actual-main qualification. No fast-only source or
queue command is issued here. Fresh source/candidate/heavy/landing acceptance
remains pending; preserve failed attempts. No bypass, app/paid access, release,
tool, assembly-pin or active-lane changes.

@brettheap
brettheap merged commit 660459f into main Nov 13, 2026
46 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