Skip to content

ci: add private-safe source refusal diagnostics without changing gates - #62

Merged
brettheap merged 2 commits into
mainfrom
ci/source-route-refusal-diagnostics
Nov 13, 2026
Merged

brettheap merged 2 commits into
mainfrom
ci/source-route-refusal-diagnostics

Conversation

@brettheap

@brettheap brettheap commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Task set CI-METADATA-12-D — T049/T050

Add secret-safe routing refusal diagnostics after fresh source PR60/61 selected
full before queue admission. Their existing logs do not identify the failed
predicate. Nullable event metadata and early fast-evidence/reread races remain
hypotheses; this PR does not relax gates to fit an unproven explanation.

Exact code head: 8155e4f.
Reviewed base: 338eb42.

Current main's independent HTTPS security repair #63 is preserved by a normal,
conflict-free merge. Our three-file diagnostic patch is byte-identical to the
earlier reviewed head07336fd. That earlier head passed ordinary15/15 and reuse
17/17 with four complete 5,252-case inventories, exactly seven diagnostic
additions and no removals/duplicates/failures/skip drift. Those results do not
qualify this refreshed combined head; require fresh full qualification.

Behavior and privacy

Only .github/ci/delivery_route.py, tests/test_ci_cutover.py and the existing
delivery-cutover.md change. Stderr receives fixed verification-stage/reason
codes and mismatched snapshot field names, not values, bodies, tokens, raw API
payloads or arbitrary exception text. Known literal refusal messages map to
fixed codes; unknown exceptions use a generic code. Successful stdout/proof
schema, snapshot predicates, eligibility, retry policy, final gates and full
fallback decisions remain unchanged. No new API calls or waits.

Exact-head local review and validation

  • Old router: six logging regressions fail, quiet-success case passes.
  • Earlier router head: 915 broad CI contracts pass, zero skips; focused375 passes.
  • Refreshed committed head: canonical CI contracts plus transport tests pass920,
    with only the three expected upstream assembly-context skips in this standalone
    checkout; no assembled acceptance is claimed. All seven new diagnostics still
    pass without the submodule, zero skips.
  • All seven additions also pass without the submodule, zero skips.
  • Canonical offline nonroot 2CPU/2GiB disposable bench-image QA, private HOME,
    exact pinned shape bundle; no running bench changes.
  • Tested patch bytes exactly equal committed diff: SHA256
    013B1544D108AAA6C6F89F3ACD6CE0D26CCB28610A381B34C9847D24C93A366C.
  • Master, nine standard expert roles and CI specialist completed pre-pr-review
    on these exact refs without actionable findings. Experts reviewed statically;
    the coordinator ran tests. The refreshed exact-head reviews are also clean;
    hosted ordinary/reusable full CI on the refreshed head is still pending.
  • Hosted Codex will also be requested; quota is not approval or paid authority.

Scope

This is a full-CI config PR, not a fast-only source or queue command. Governing
spec change fix-source-delivery-metadata and feature009's sole tasks T049–T051:
opensoft/openRepoTools-spec#26.
Existing owner approval covers checked normal code/spec merges and directly
related fixes/fresh canaries. Require full ordinary/reuse qualification, reviewed
landed trees and actual main before new live diagnostic evidence. Preserve failed
attempts. No bypass, app/paid access, release, installed-tool, assembly-pin or
lane 1–5 changes. No efficiency success is claimed by diagnostic publication.

Summary by Sourcery

Add privacy-safe diagnostics for source and fast-evidence routing refusals while preserving existing CI gates and fallback behavior.

Enhancements:

  • Add privacy-safe routing refusal diagnostics that identify verification stages and fixed reason codes without changing routing decisions, fallback behavior, retries, or gates.

Documentation:

  • Document the diagnostic vocabulary, privacy guarantees, and unchanged routing behavior.

Tests:

  • Add coverage for snapshot mismatch field reporting, exception redaction, refusal diagnostics, and silent successful routing.

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

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Add fixed-vocabulary stderr diagnostics for routing refusals and source snapshot mismatches while preserving full-fallback behavior and avoiding sensitive values.

  • .github/ci/delivery_route.py L29-54, L123-129, L231-243 (+5 small edits)

Documentation

Document the fixed-vocabulary refusal diagnostics, privacy guarantees, and unchanged routing decisions.

  • .github/ci/delivery-cutover.md L169-175

Tests

Cover safe snapshot-mismatch diagnostics, refusal-code mapping, unchanged full fallback, and quiet successful routing.

  • tests/test_ci_cutover.py L132-182

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 13, 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-13T17:56:45.313227Z
We couldn’t complete this review. Comment @codex review to try again.
8155e4f 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.

@brettheap

Copy link
Copy Markdown
Contributor Author

Local Codex expert review — diagnostic-only configuration change

Exact reviewed code base 000743a → head
07336fd; spec base28b5cf3 →04fc566,
with final factual QA/checklist update0c1a84a independently checked by coordinator.

No actionable findings from the master and all nine standard expert roles:
architecture, performance, security, QA, static/Sonar risks, API/integration,
data integrity, reliability/concurrency and maintainability/simplicity. A CI/build
specialist also found no actionable issues. Experts performed independent static
review; this does not claim a hosted Codex review or independent test execution.

Coordinator validation: old router failed six diagnostic regressions while the
quiet-success case passed. Changed router passed915 broad CI contracts, focused
subset375 and seven new no-submodule cases, all zero skips. Tested patch bytes
equal the committed diff; strict governing OpenSpec and whitespace passed.

Privacy and behavior: only fixed stderr codes/stages and snapshot field names
are emitted. Unknown exception text and PR/API/body values are not logged.
Exact route/proof results, eligibility, full fallback, pending waits and gates
remain unchanged. Reason-message drift can reduce diagnostic specificity but
cannot grant omission or authority.

Hosted ordinary/reuse qualification is running and is not claimed passed by
this review. Hosted Codex was separately requested. Its quota/failure is not an
approval. Source/main landings and a genuinely new live event are separate gates.
This is not a local-review receipt for any fast-only canary member, a queue
request or efficiency acceptance. Existing owner-scoped approval governs checked
normal source merges; no excluded-resource changes are authorized or performed.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@brettheap

Copy link
Copy Markdown
Contributor Author

Current-head qualification refresh; earlier green evidence is preserved

The original reviewed07336fd passed first-attempt ordinary43469533638 (15/15),
reuse43469533858 (17/17) and fast43469533656. All four downloaded normal/no-sub
inventories contain5,252 unique cases: normal5,083passed/169existing skips,
no-sub3,734passed/1,518existing skips. Exactly the seven reviewed additions pass;
zero removed/duplicate/failing cases or changed skip identities. Both package
logs identify testedmergead6109be72af4d635717dbf26048cabe5f3254cb and reviewed
treea490d11df9e2fe059d00d2aa97cbcc9a71cc5cd0.

Before merge, main advanced through the independent HTTPS security fix #63.
Preserved it via a normal conflict-free merge, without overwriting any work:

  • Current base338eb42641c8f0486099b0f5e0827bc0d6b8625b.
  • Current head8155e4fd8e4c5f8c35bd6e4c7d5bb47dd0ddde41.
  • Current tree82a711d832856c1d7be30f7c00220c4fe8760676.
  • Own three-file patch remains byte-identical, SHA256
    013B1544D108AAA6C6F89F3ACD6CE0D26CCB28610A381B34C9847D24C93A366C.

Master plus all nine standard experts and CI specialist refreshed exact-head
local review without actionable findings. Experts inspected statically. The
coordinator ran fresh canonical offline nonroot QA on a verified committed
bundle:920passed with three expected upstream assembly-context skips; all seven
new diagnostics passed without the submodule, zero skips. Code and spec main's
independent work remain preserved. Current spec head60c5f22 also received the
complete exact-head refreshed panel and strict governing OpenSpec validations.

Require fresh ordinary/reuse CI and current-main test-inventory parity for this
combined head. Do not relabel old green runs as latest-head proof or dispatch
reruns of old events. Hosted Codex is separately requested; its quota is not
approval. No source merge, queue or fresh efficiency acceptance is claimed here.
Existing scoped approval and all excluded-resource boundaries remain intact.

@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 merged commit 6c4d8c3 into main Nov 13, 2026
50 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