Skip to content

ci: qualify v1.3 disabled shadow without omitting full checks - #90

Merged
brettheap merged 2 commits into
mainfrom
011-v13-qualification-shadow
Nov 15, 2026
Merged

brettheap merged 2 commits into
mainfrom
011-v13-qualification-shadow

Conversation

@brettheap

@brettheap brettheap commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Scope

Paired spec: opensoft/openRepoTools-spec#59. Add only v1.3 qualification wiring and a read-only disabled shadow observer. No fast-only activation: every result requires full CI, sets efficiency/skip/admission false, and says not-qualified. No existing delivery/router/verifier/queue consumes the output; existing claude-current behavior is unchanged.

Changes

  • Main-owned disabled P03/P05 planning projection and bounded Git/mock-API observer.
  • P01 PR88 immutable source/control anchors, pending/drift/merged-contract observations; no inference of successful PostgreSQL execution.
  • Trusted-main-only token-bearing observation, safe bootstrap, separate token-free offline PR contracts.
  • Existing parameterless reusable full-CI caller: watched paths only (including shared helper); jobs, matrices and commands unchanged.
  • Regression tests and operator runbook, including remaining case-inventory/required-PG qualification gates.

P01 coordination

Root issue165 comments 6888083282, 6888099830, 6888103864.

P01 remains open at 7f1141b. This PR has zero overlapping paths with its 18 files. P01's required-PG workflow/baseline environment amendment does not change any job hash or the 13 expanded integration jobs. Our contracts tolerate either landing order and do not assert those mutable environment bytes unconditionally. Positive runtime observation still requires the exact anchored P01 contract on main.

Validation

Final code head 1b17f9f:

  • Canonical tests/run.sh selected v13_shadow, full_ci_coverage_parity, ci_shadow and ci_cutover: 571 passed, 5054 deselected.
  • Separate standalone no-submodule clone, canonical v13_shadow tests: 86 passed, 3 skipped, 5536 deselected. The skips are the three dependency-bound YAML/workflow contracts, not PG eligibility skips.
  • Strict paired OpenSpec validation: valid.
  • Pre-PR coordinator plus nine specialist roles and CI specialist: no actionable findings; latest watch-path addendum rechecked. This is local review, not a hosted bot receipt.
  • Exact diff leaves tests.yml, full-ci-baseline.json, conftest/fixtures/gate/markers, live delivery policy/router/verifier/evidence, Mergify and provider pins unchanged.

Ordinary full CI and the full reusable qualification run must report independently on this PR. Before P01 lands, those runs qualify this additive implementation only, not real-engine007 acceptance.

Exclusions

Leave this PR open. No live canary, activation, settings/ruleset changes or bypass, app access, paid upgrade, release changes/tags, installed-tool changes, assembly pins, shared-checkout refresh, lane/session restart or lane takeover. Lanes1–5 and their worktrees remain preserved. No merge requested.

Summary by Sourcery

Add disabled v1.3 qualification wiring that observes eligible task-set changes without changing full-CI execution or granting qualification.

New Features:

  • Add a read-only v1.3 CI shadow observer for detecting narrowly scoped P03/P05 task-set candidates from trusted main.

Enhancements:

  • Keep all observations explicitly non-qualifying, with full CI required and no skip or queue-admission behavior.
  • Validate immutable P01 prerequisite contracts and conservatively fall back when policy, source, or API state is stale or unsupported.
  • Preserve existing delivery, routing, verification, and full-CI behavior while adding the shadow workflow and offline contract checks.

CI:

  • Run the disabled shadow observer on pull request and source push events with least-privilege permissions.
  • Extend full-CI parity watch paths to cover the shadow policy, workflow, implementation, and tests.

Documentation:

  • Document the disabled shadow observation contract, P01 coordination, and future qualification gates.

Tests:

  • Add comprehensive Git, mocked-API, workflow-trust, fallback, and non-gating regression coverage for the shadow observer.

@sourcery-ai

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

@sourcery-ai

sourcery-ai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Define the disabled P03/P05 policy projection and its prerequisite anchors, which the observer treats as authoritative input.

  • .github/ci/v13-shadow-profiles.json L1-25

API

Add the observer workflow entry points and preserve a separate token-free contract job, with read-only permissions and no gating outputs.

  • .github/workflows/v13-shadow.yml L1-55

Implementation

Implement conservative PR and push observations against trusted main policy and the anchored P01 contract, always returning full-CI, disabled, not-qualified results.

  • .github/ci/v13_shadow.py L1-226

Configuration

Watch the shadow workflow, policy, observer, shared helper, runbook, and tests in the existing full-CI parity caller without changing its reusable full-CI invocation.

  • .github/workflows/full-ci-parity.yml L18-22, L31
  • tests/test_full_ci_coverage_parity.py L199-201

Documentation

Document the disabled observation contract, P01 coordination, remaining qualification evidence, and explicit operational exclusions.

  • .github/ci/v13-shadow.md L1-85

Tests

Exercise safe fallback and positive observations, P01 and policy drift, event/API/Git changes, workflow trust boundaries, and full-CI coverage wiring.

  • tests/test_v13_shadow.py L1-461

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 15, 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-15T03:17:09.489113Z 1b17f9f 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.

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 1b17f9f9f9

ℹ️ 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 3e98d7b into main Nov 15, 2026
52 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