Skip to content

Measure complete assembled sources and enforce the Sonar quality gate - #361

Merged
brettheap merged 29 commits into
mainfrom
sonar-assurance-20261112
Nov 13, 2026
Merged

brettheap merged 29 commits into
mainfrom
sonar-assurance-20261112

Conversation

@brettheap

@brettheap brettheap commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Repair assembled Sonar analysis that reported NONE, omitted 18 extensionless commands and excluded all coverage. Inventory exact pinned Python/shell sources and tests, measure both complete composed/provider suites, validate their reports, submit Sonar and retain the existing exact-pins required context.

Current published inputs:

Measurement is now stricter than the successful earlier rehearsal: Python observations use Coverage.py's canonical multiline statement mapping and complete executable statement set. Shell hits apply only to kcov's fixed executable baseline. Unexecuted statements/files remain explicit, and report combination refuses different per-file denominators for identical source inventories. Exact-copy hashes, modified-copy zero credit, line bounds, all source commits and complete report inventories remain mandatory. No observed-only event can enlarge a denominator.

The workflow retains both original complete test commands, all original triggers and the existing exact-pins context. Parallel full jobs share one exact-source preparation action, including native CTracer and verified isolated-Python provenance registration. Only successful full jobs supply immutable artifact IDs from this exact workflow run/commit. The scanner independently rebinds those reports to its fresh checkout of the same github.sha. A failed/skipped/cancelled predecessor fails acceptance.

Validation:

Retained history is not disguised as current acceptance. The 9e rehearsal failed three deleted-cwd startup cases; #54 corrected only the collector prerequisite and all 28 unchanged provider branch/directory tests passed under measurement. The later 70bfd full rehearsal passed composed 5,193/six skips, provider 22,480/360 skips, scanner and exact-pins, but its raw-event coverage had growing denominators and is diagnostic-only. #55/#38 repair that audit finding. Its PR receipt correctly states full_index_verified=false and coverage_import_verified=false; a PR with zero eligible changed lines is not main proof. Earlier startup/SIGTERM failures and all successful reports remain preserved.

Original 12 findings: six false positives have immutable source-flow/regression evidence; six real wheel-install/runtime-lock findings are repaired at their source owners, pending automatic assembled-main closure. No true finding is accepted or excluded. Root Sonar way's six original thresholds remain unchanged. The initial baseline is the oldest retained main analysis (2026-09-10, revision 7cf0bd5), not this repair's merge. Only root automatic analysis was disabled after the replacement was reviewable.

Actual native analyzer limitation is documented: all 19 shell sources were attempted, but 13 emitted IaC Shell parse warnings despite valid native bash -n syntax. No file/rule is excluded; index/coverage proof is distinguished from complete native Shell parsing. Two UTF-8 warnings are intentional U+FFFD negative fixtures whose source bytes decode strictly. See spec feature 010 evidence for exact locations and retained diagnostics.

T009 remains open for actual published-main acceptance. Normalized full workflow 43397438707 passed at head 135b581: composed 5,195 passed/six explained skips, provider 22,480 passed/360 explained skips, both complete reports, strict equal-denominator combination, scanner/readback and exact-pins. Independent report validation agrees on all 64 per-file executable line sets: Python 31,902/36,026 and shell 16,349/20,088 covered, or 85.987% measured line coverage overall. Both copy probes retain 190 exact/zero modified. PR analysis 7d329248-a465-4a6a-a24f-dd531e0c74ea computed OK; its receipt explicitly leaves full main index and coverage import unverified because this PR has zero eligible changed executable lines. The root validate check also passed. This is ready for normal landing, with actual main proof still required. After normal landing, a fresh main workflow must independently verify the exact published revision, full Python/shell index including all 18 commands, actual per-language/file coverage import, evaluated new coverage and unchanged conditions, old baseline and original issue statuses. No cross-commit artifact reuse is allowed.

This repair invokes no queue and changes no delivery flag, protection, lane/register/log, session binding, installed command or primary checkout. Codex review is explicitly requested for each meaningful head; exhausted Codex/Sourcery quota is disclosed and never treated as approval.

openRepoShape bump-leg and others added 4 commits November 12, 2026 17:42
aa93f99 -> 0b390e494924, tree dc1cebc24fc2514d1078e696c5e0cf160757c34745714a30c78828aef64c48f7.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at code, `commit:` and `digests.tree_sha256` in contracts/code-pin.yaml, and every workflow reference to opensoft/openRepoTools-code move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
bc24929427a1 -> bc86b0a9e24e, tree 030a88e1d6dc5711c1cc3c9592f63e6b2aaae60ef90ac1d869d9ae378421add2.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at spec, `commit:` and `digests.tree_sha256` in contracts/spec-pin.yaml, and every workflow reference to opensoft/openRepoTools-spec move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
0b390e494924 -> 8c17c0fa3479, tree f3898923d5feb46589410c6b47ca99ea59c1d6a77071f61e08f0ff609eaaceb9.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at code, `commit:` and `digests.tree_sha256` in contracts/code-pin.yaml, and every workflow reference to opensoft/openRepoTools-code move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Add a shared preparation action for validating the assembled checkout and pins, installing measurement dependencies, registering provenance, and preparing Python and shell coverage.

  • .github/actions/prepare-sonar/action.yml L1-123

Update the composed workflow to run the complete composed and provider suites, combine and verify their coverage evidence, enforce the Sonar analysis gate, and retain the existing exact-pins required context.

  • .github/workflows/composed.yml L16-19, L52-57, L69-217 (+3 small edits)

Advance the code and spec pin records together with their assembled revisions and recomputed tree digests.

  • contracts/code-pin.yaml L24, L39
  • contracts/spec-pin.yaml L24, L39

Lock files and vendored code

Advance the assembled code and spec submodule gitlinks to the revisions recorded by their pin files.

  • code L1
  • spec L1

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 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-13T12:57:27.648150Z
We couldn’t complete this review. Comment @codex review to try again.
135b581 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.

openRepoShape bump-leg and others added 2 commits November 12, 2026 17:52
8c17c0fa3479 -> 2d347d069723, tree 1ec5a83aa803b163f2de72741f5420688304758ba0ab1e62ce70cd29a45d37d0.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at code, `commit:` and `digests.tree_sha256` in contracts/code-pin.yaml, and every workflow reference to opensoft/openRepoTools-code move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
@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.

openRepoShape bump-leg and others added 2 commits November 12, 2026 17:59
2d347d069723 -> cf4332f4cd2f, tree 28bb2735310489462e2311a45a876bf5a77430a744eaed1d236240a00c028928.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at code, `commit:` and `digests.tree_sha256` in contracts/code-pin.yaml, and every workflow reference to opensoft/openRepoTools-code move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
@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.

Brett Heap and others added 7 commits November 12, 2026 18:22
cf4332f4cd2f -> 27e34a72e10b, tree ab4aae511b547233e04c4d3bbfcffeb1d85b0c55f777d41ec21335037ab26acc.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at code, `commit:` and `digests.tree_sha256` in contracts/code-pin.yaml, and every workflow reference to opensoft/openRepoTools-code move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
bc86b0a9e24e -> 8813fa9d2bb5, tree f94076f89e084a818022b938b5a334263397d0d0d80b10f1ca9d763902790ff6.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at spec, `commit:` and `digests.tree_sha256` in contracts/spec-pin.yaml, and every workflow reference to opensoft/openRepoTools-spec move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
@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

@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.

openRepoShape bump-leg added 2 commits November 12, 2026 22:17
cf57a16d793a -> b227d53, tree 5cd3696e4e28fb810a034cdea70716cfa5c49a07523ccaca53c8bdb4429cae20.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at code, `commit:` and `digests.tree_sha256` in contracts/code-pin.yaml, and every workflow reference to opensoft/openRepoTools-code move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
8813fa9d2bb5 -> 180c61136f99, tree b567e7c6d13a5efa33b2bc9ea5282fa2634895cf59edb50d5d2add45a2fb3291.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at spec, `commit:` and `digests.tree_sha256` in contracts/spec-pin.yaml, and every workflow reference to opensoft/openRepoTools-spec move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
@brettheap brettheap changed the title ci: close Sonar command, coverage and quality-gate gaps Measure complete assembled sources and enforce the Sonar quality gate Nov 12, 2026
@brettheap
brettheap marked this pull request as ready for review November 12, 2026 22:48
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

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

@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.

Brett Heap and others added 2 commits November 12, 2026 23:48
180c61136f99 -> 1b1c93fa0afa, tree e4b82ad167dd400c291a9f2618cf10fa6cb1dac852b372b036b6e614981fe2be.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at spec, `commit:` and `digests.tree_sha256` in contracts/spec-pin.yaml, and every workflow reference to opensoft/openRepoTools-spec move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
@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.

openRepoShape bump-leg added 2 commits November 13, 2026 04:24
b227d53 -> febf516, tree 4aa794ec27052660b0f7a1224ddeb536a094bce5ee9fea6c621cf3f3b9964a5b.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at code, `commit:` and `digests.tree_sha256` in contracts/code-pin.yaml, and every workflow reference to opensoft/openRepoTools-code move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
1b1c93fa0afa -> 7e5a248debb8, tree 7ab19fb88e0ef959afad6829a63fa2adc917171433af2db67b61329573dd5cba.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at spec, `commit:` and `digests.tree_sha256` in contracts/spec-pin.yaml, and every workflow reference to opensoft/openRepoTools-spec move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
@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
brettheap marked this pull request as draft November 13, 2026 08:21
openRepoShape bump-leg added 2 commits November 13, 2026 08:58
febf516 -> 22aac02, tree 30c9215d5d81afb3b2bb355d5c06a31adea62962f0c85577bb80050ef2f5510d.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at code, `commit:` and `digests.tree_sha256` in contracts/code-pin.yaml, and every workflow reference to opensoft/openRepoTools-code move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
7e5a248debb8 -> 9311051d340a, tree 5f4636a1d603b8706f1806f5e1db01adff1641df50c8405b24a7ecdcd8cbd307.

No workflow reference names this leg, so the gitlink and the pin file are the whole of it.

The gitlink at spec, `commit:` and `digests.tree_sha256` in contracts/spec-pin.yaml, and every workflow reference to opensoft/openRepoTools-spec move in ONE commit because `scripts/validate-pins.py` refuses when they disagree — a gitlink advanced alone is red on the next pull request, and on somebody else's change.

Written by openRepoShape's `scripts/bump-leg.py`; the digest is recomputed from the leg's own objects, not adjusted.
@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.

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review November 13, 2026 12:57
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@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 8 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@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 dab458e into main Nov 13, 2026
7 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