Skip to content

fix(ci): prove pin-only PRs before accepting omitted Sonar eligibility - #84

Merged
brettheap merged 4 commits into
mainfrom
fix/sonar-pin-only-eligibility-20261114
Nov 14, 2026
Merged

brettheap merged 4 commits into
mainfrom
fix/sonar-pin-only-eligibility-20261114

Conversation

@brettheap

@brettheap brettheap commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Repair

Fix the compatibility failure exposed by opensoft/openRepoTools#363: both complete suites passed, but Sonar's zero-changed-source PR response omitted new_lines_to_cover; independent verification correctly refused the unproven omission.

This change permits that response only with positive exact-merge pin-only proof:

  • Sonar reports zero changed components and no queried new-code metrics.
  • Same-repository, main-target pull_request event, exact PR number/ref/SHA and inventory match.
  • Checkout's ordered parents match the event's base/head; comparison objects are available.
  • Complete root diff contains only existing modified code/spec gitlinks and corresponding modified regular pin records, in matching pairs, without mode/type changes or other paths.
  • Dirty tracked state, contradictory metrics or any uncertain identity/scope still fails.

The receipt retains the actual proof and does not fabricate eligibility or claim complete main indexing/coverage. Explicit eligibility, main revision/index/coverage verification, the six gate thresholds, full suites, artifacts, workflows and settings are unchanged.

Validation

  • Red-first: old verifier failed the initial 31 added cases; all 49 existing Sonar cases passed. The final regression matrix adds 37 cases.
  • Isolated offline, non-root, bounded existing-image QA: 86 passed, 5408 deselected; no skips/failures in this focused selection. This is not a full-suite result.
  • Local replay against PR363's actual Git objects: base4377 / heada08e8fe / merge7f7e4fd; all four expected paths positively proved. This is local replay, not live Sonar acceptance.
  • Coordinator plus independent architecture, performance, security, QA, static/Sonar, contracts, data integrity, reliability, simplicity and CI/build review found no actionable issues at 7881268cbe170a2e090bc1eb7c9b11e28a3df1dc.
  • Fresh ordinary full and reusable qualification CI remain required before source merge. Assembly PR363 must then consume the merged source through official lockstep pin tooling and obtain fresh full composed/provider/Sonar results, followed by actual-main qualification.

Governance / preservation

Existing repair-sonar-assurance, feature010 S05/T013–T015, paired spec branch of the same name. Brett approved the narrow repair and subsequent checked adoption. No bypass, app access, paid upgrade, release/tag, tool installation, session restart or wider efficient CI scope. Shared checkout remains untouched until checked assembly landing, main verification and fresh exact-target SAFE from every affected lane owner. Preserve lanes1–5, their writers, WIP, drafts and worktrees.

Refs: opensoft/openRepoTools#363; opensoft/openRepoTools-spec#26.

Summary by Sourcery

Strengthen Sonar CI verification by accepting omitted eligibility only for rigorously proven pin-only pull requests.

Bug Fixes:

  • Allow Sonar pull requests that omit new-code coverage metrics only when an exact, positively verified pin-only change is proven.

Enhancements:

  • Record pin-only proof separately while preserving conservative eligibility, indexing, and coverage assertions.

Tests:

  • Add regression coverage for valid pin-only proofs and rejection of mismatched identities, dirty state, incomplete pairs, and unrelated changes.

@sourcery-ai

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

@sourcery-ai

sourcery-ai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Prove a pin-only PR against the exact GitHub event and merge diff, and permit omitted Sonar eligibility only when that proof succeeds.

  • .github/ci/sonar_assurance.py L247-297, L359-366 (+4 small edits)

Tests

Exercise accepted paired pin-only proofs and reject unrelated diffs, uncertain GitHub/Git identities, and analyses with contradictory or insufficient Sonar evidence.

  • tests/test_sonar_assurance.py L280-467

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

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T17:54:06.942964Z 032993a 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

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 7881268cbe

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@brettheap

Copy link
Copy Markdown
Contributor Author

Latest source6e324e27af450de89def44ccd4f7226024af364c tightens the S6350 source flow: event/report values remain validated comparison expectations only; actual Git comparisons use the matching IDs read directly from local Git. No finding was dismissed and no thresholds/settings changed. Added option/range/nonhex rejection cases. Offline canonical Sonar selection now89pass (40new,49retained), no skips/failures. Exact-head local panel refresh and fresh hosted full CI/review are pending; earlier 7881268 local review remains historical, not substituted for this head.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 6e324e27af

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

Exact-head local review completed at6e324e27af450de89def44ccd4f7226024af364c vsbaseeff8459657e9a970d46a0cdef5cbd531cbe0e9cd: coordinator plus architecture/performance/security/QA/static-Sonar/contracts/data/reliability/simplicity/CI experts report no actionable findings. Hosted Codex receipt6881258172 is also for6e324e27af and reports no major issues. Latest source Sonar check passes;89focusedSonarcases pass offline. Full ordinary run43619717593 a1 is still running and remains mandatory. Paired governance56 normally landed68796b93; source merge, official root repin, complete assembly/main acceptance and fresh all-five SAFE remain separate.

@brettheap

Copy link
Copy Markdown
Contributor Author

Qualification applicability clarification: the unchanged full-ci-parity.yml caller runs only for its explicitly listed workflow/routing/parity-control paths; neither sonar_assurance.py nor test_sonar_assurance.py is listed. No extra reusable-caller run is scheduled for this diff, and no trigger or check is being changed. The complete ordinary tests.yml 15-job full run43619717593 remains mandatory, with all five normal/four no-submodule shard reports and forty new regression IDs verified against the eff main baseline. Fresh root composed/provider/Sonar plus actual-main qualification are still separate mandatory adoption gates. The opening description reference to reusable qualification is not a claim that an untriggered caller passed or a request to widen its existing path scope.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sourcery assessment

Approved.

@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

Old head6e324e2 fully qualified in run43619717593 a1:15/15SUCCESS; normal5497cases/5324pass/173existing skips, no-sub5497/3975/1522;40newregressionspass in both, no removals/duplicates/failures/skip drift. Actual package checkout912c058 has reviewed tree11a045b8 and parents eff/6e. Before merge, live main was c62ba9c (PR69 landed17:17:26Z during the run), not tested baseeff. No source merge was made on stale composition. Own branch032993a normally merges currentc62 main, without rebase/force/conflict; diff vs c62 remains exactly the same two repair files, whose blobs equal reviewed6e. Fresh integrated CI and exact-head review are required and were requested. Other lanes, queue69 and operating checkouts were untouched. Earlier green source results remain historical, not reused for the new head.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 032993a055

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap
brettheap merged commit 4967100 into main Nov 14, 2026
29 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Normal checked squash merge completed496710053e287d8771fa41be02375dd5bceb0f68 at18:34:41Z, soleparentc62ba9c364f0112cc3dd3730f373163ba9a0ae13. Landedtreedea7de6f69a7a51be45e0d138bbb12323a58ec46 equals reviewed032 and actualtestmerge89af639d423cb04ddb698462a55d8bc2d04c9768 (parentsc62/032). Fresh43623404305a1SUCCESS15/15;5518uniqueeach, normal5345pass/173oldskips, nosub3996/1522;all40newSonarcasespass, no removals/dups/fails/skipidentitydrift. Latest-head hostedCodex6881777880 and local expert panel clean; sourceSonarpassed, no unresolved threads. Normal landing guard verified fresh published registry/blob and no current landing hold; no bypass/WIP/setting action. Actual-main43627378026 is separate and still running. Root363 nowconsumes496/Spec68796 through official coherent pins atbcef549, fresh composed43627560294 pending. No shared refresh or SAFE holds yet.

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