Skip to content

spec: define complete Sonar analysis and acceptance - #32

Merged
brettheap merged 4 commits into
mainfrom
010-sonar-assurance
Nov 12, 2026
Merged

brettheap merged 4 commits into
mainfrom
010-sonar-assurance

Conversation

@brettheap

@brettheap brettheap commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Define the repair of openRepoTools' incomplete automatic Sonar analysis: inventory extensionless commands at exact pins, measure Python and Bash coverage with source-copy provenance, preserve the full existing test and gate contracts, and triage the original twelve findings at their owners.

The implementation is isolated from installed commands and active lane/session state. Strict OpenSpec validation passed. Implementation, per-finding evidence and computed main quality-gate acceptance are being completed before final landing.

Summary by Sourcery

Define the complete Sonar assurance repair and its acceptance process while preserving existing project behavior, CI contracts, sessions, and quality-gate thresholds.

New Features:

  • Define a governed Sonar assurance capability covering complete source classification, measured coverage, quality-gate evaluation, and auditable finding triage.

Bug Fixes:

  • Document source-owner repairs for six confirmed Sonar findings and evidence-based dispositions for six false positives.

Enhancements:

  • Establish reproducible analysis requirements, preservation boundaries, baseline handling, acceptance criteria, and an implementation plan for the assembled project.

CI:

  • Preserve existing CI, packaging, required-check, and Sonar way contracts while specifying complete composed analysis and coverage verification.

Deployment:

  • Document the transition from incomplete automatic analysis to CI-based analysis with a retained Sonar baseline and unchanged gate thresholds.

Documentation:

  • Add README links to the Sonar assurance proposal, requirements, plan, triage, finding identities, and acceptance evidence.

Tests:

  • Record isolated collector, source-flow, YAML reader, policy, and helper verification results and define required full-suite acceptance checks.

Chores:

  • Add OpenSpec governance metadata and feature 010 specifications, tasks, evidence, findings, triage, and verification plans.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@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-12T18:25:36.719356Z
We couldn’t complete this review. Comment @codex review to try again.
5af7c5d 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 12, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Record the identities and structured metadata for the twelve original Sonar findings that the repair must disposition.

  • specs/010-sonar-assurance/findings.json L1-178

API

Define the assurance requirements and acceptance scenarios that govern complete analysis, measured coverage, quality-gate outcomes, finding triage, and preservation safeguards.

  • openspec/changes/repair-sonar-assurance/specs/sonar-assurance/spec.md L1-44
  • specs/010-sonar-assurance/spec.md L1-40

Configuration

Declare the OpenSpec change's schema and creation date.

  • openspec/changes/repair-sonar-assurance/.openspec.yaml L1-2

Documentation

Explain the repair's decisions, scope, risks, and migration sequence, and point readers to its governing artifacts.

  • README.md L40-45
  • openspec/changes/repair-sonar-assurance/design.md L1-29
  • openspec/changes/repair-sonar-assurance/proposal.md L1-25

Describe the implementation architecture, invariants, verification approach, task ownership, and handoff checklist.

  • openspec/changes/repair-sonar-assurance/tasks.md L1-3
  • specs/010-sonar-assurance/plan.md L1-23
  • specs/010-sonar-assurance/tasks.md L1-18

Preserve the baseline and service-setting receipts, verification status, and evidence-backed dispositions for all twelve findings.

  • specs/010-sonar-assurance/evidence.md L1-43
  • specs/010-sonar-assurance/triage.md L1-129

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

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

@brettheap
brettheap marked this pull request as ready for review November 12, 2026 18:25
@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 2 days and 19 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 8813fa9 into main Nov 12, 2026
1 check 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