Skip to content

ci: prepare exact-source fast feedback and full candidate proof - #49

Merged
brettheap merged 5 commits into
mainfrom
ci/fast-candidate-preparation
Nov 12, 2026
Merged

brettheap merged 5 commits into
mainfrom
ci/fast-candidate-preparation

Conversation

@brettheap

@brettheap brettheap commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Purpose and authority

Prepare feature009 task set DELIVERY-PROOF-07 (T015–T018), following merged code #48 and spec #29 and the user-set full-rollout goal. Reconciliation: opensoft/openRepoTools-spec#26. Canonical working spec/plan/tasks were updated before implementation; a paired spec PR records this bounded preparation.

This is additive preparation, not fast-only activation. Preserve lanes1–5 and their bindings/worktrees, running benches, current full CI, rulesets, manual queues, app access and releases. No live canary or queue command is requested or performed.

Changes

  • Add PR fast feedback on opened/synchronize/reopened. Validate the exact test-merge checkout and both source/base parents, syntax/whitespace and the scoped component plus guard/hygiene/delivery contracts. No candidate API token is supplied to source tests.
  • Add a parameterless workflow_call-only candidate entry, deliberately uninvoked by every existing queue/workflow.
  • Verify genuine Mergify push identity, exact live main/ref/candidate and bounded ordered independent membership from trusted main-owned code. Require modified regular allowlisted content, exact-head successful fast Actions workflow/run/job/attempt, official clean Codex summary, complete resolved-thread evidence and deterministic prefix-tree equality. Recheck live identities before and after full integration.
  • Reuse the SAME complete thirteen-job tests.yml, with a fail-closed aggregate. No success-status writer, admission grant, hidden retry or reduced coverage.
  • Add offline real-Git/mocked-API failure vectors and explicit prepared-only operator notes. Candidate merge-tree calculations create private immutable objects in disposable CI only, not refs/index/worktrees; Git2.38+ is a CI-only prerequisite, not an installed CLI requirement.

Local evidence

At code head 0614ce0, actionlint passed and 545 focused tests passed, no skips, including 50 new delivery vectors. Ran offline through tests/run.sh in a disposable native-Linux py-bench image limited to 2 CPUs / 2 GiB:

bash tests/run.sh -k 'ci_delivery or ci_shadow or ci_pilot or full_ci_coverage_parity or tests_workflow or ci_shards' --tb=short

Original tests.yml, full-ci-parity.yml, ci-shadow.yml, ci-pilot.yml, pilot_scope.py, verify/release workflows, full-ci-baseline.json and .mergify.yml are unchanged. Ordinary hosted full CI/reusable qualification and current-head Codex remain required; offline tests are not live candidate acceptance. Source merges do not advance assembly pins.

Explicit later gates

Queue wiring, required-check migration, fast-only suppression, a live two-PR canary, dependent stacks and wider component scopes require separate approved changes and observed qualification. No ruleset bypass, app access or release workflow/tag changes.

Local review repair

The user selected local Codex review with the mandatory expert-panel skill instead of waiting for exhausted connector quota. The panel found three P2 issues at29685ef: hidden dependent ancestry, fast original-base provenance and mutable gate evidence drift. Four offline rejection reproducers confirmed them.

Repair head a644168 checks complete pairwise Git merge bases, unique run/source association plus complete typed base-change history with immutable run creation strictly after all retargets, run/check rereads after job lookup, and final fast/base-history/Codex/thread evidence consistency with PR bracketing. Mutable run.pull_requests alone is deliberately not treated as historical proof. Fresh reopened runs after retargeting qualify; old reruns and equal-second ambiguity refuse.

At the repaired head, 561 committed focused regressions plus the four original review reproducers passed (565 total, no skips), with actionlint and range whitespace validation, offline in disposable2CPU/2GiB py-bench. Local panel re-review and new exact-head ordinary full CI are separate acceptance gates. No official connector receipt is fabricated or inferred from local review; all existing required CI remains in force.

Summary by Sourcery

Prepare exact-source fast feedback and a fail-closed candidate proof path without activating queue admission or changing existing delivery gates.

New Features:

  • Add additive pull-request fast feedback that validates exact merge context and runs scoped regression, guard, hygiene, and delivery checks without source-test credentials.
  • Add a prepared workflow-call-only candidate integration that verifies trusted queue identity, bounded independent membership, exact fast/review evidence, clean merge trees, and live state consistency before running the complete full CI suite.

Bug Fixes:

  • Harden delivery proof against forged, stale, mutable, incomplete, retargeted, dependent, or changed source and review evidence by enforcing immutable provenance and final revalidation.

Enhancements:

  • Document prepared-only delivery semantics while preserving existing full CI, queue, ruleset, release, lane, and acceptance behavior.

CI:

  • Add offline Git and mocked-API coverage for candidate verification failures, evidence drift, workflow trust boundaries, aggregate failures, and exact fast-check provenance.

Documentation:

  • Document the additive fast-feedback and candidate-proof preparation, its explicit non-activation boundaries, and the later approval gates required for rollout.

Tests:

  • Add comprehensive offline regression coverage for independent candidate membership, deterministic prefix trees, fast checkout validation, review evidence, base-change history, live drift, and fail-closed integration gates.

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

@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Verify exact fast-feedback checkouts and candidate membership, provenance, review evidence, deterministic merges, and live-state consistency before and after full integration.

  • .github/ci/delivery_verify.py L1-267

Configuration

Add PR-only fast feedback and an uninvoked workflow_call candidate integration that reuses full CI and fails closed unless verification and integration succeed.

  • .github/workflows/task-set-candidate.yml L1-65
  • .github/workflows/task-set-fast.yml L1-32

Documentation

Document prepared-only authority, proof requirements, and separate activation gates, and clarify that existing delivery instructions and checks remain in force.

  • .github/ci/delivery-preparation.md L1-72
  • .github/ci/task-set-delivery.md L3-6
  • features/009-manual-two-pr-queue/openspec/delivery-proof.md L1-32

Tests

Add offline real-Git and mocked-API regressions for valid proofs, malformed or stale evidence, source drift, and workflow boundaries.

  • tests/test_ci_delivery.py L1-470

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

@brettheap

Copy link
Copy Markdown
Contributor Author

Paired governance/spec reconciliation: opensoft/openRepoTools-spec#30. Source preparation only; no queue/ruleset/canary activation. All ordinary full checks remain required.

@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-12T01:43:58.102178Z
We couldn’t complete this review. Comment @codex review to try again.
7f64452 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

@codex review

@brettheap

Copy link
Copy Markdown
Contributor Author

The additive fast job rejected the first head for one extra blank line at task-set-fast.yml EOF. Reproduced git diff --check against the actual GitHub merge 6d108b1 and base754cbf. Removed only that whitespace at 29685ef; range whitespace validation now passes. The exact-parent/whitespace gate is unchanged, not bypassed. New-head full CI and review are required.

@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

Current-head hosted fast run43132228907 passed at29685ef, proving actual test mergec3557415512f9875a56e3764edd71bb671d555e7 against754cbf. Scoped standalone run439passed/18skipped (existing absent assembly/spec-root document cases), not composed acceptance. Full13-job tests43132228763 still runs independently; no queue consumes the prepared check. Explicit Codex request is quota-blocked, not completed review. Leaving unmerged; no waiver, paid change or canary assumed.

@brettheap

Copy link
Copy Markdown
Contributor Author

Final expanded local verification at current head29685ef: 934passed/18skipped/3882deselected in383.09s, plus actionlint and committed-range git diff --check against main754cbf. Ran offline through tests/run.sh in a disposable2CPU/2GiB py-bench image; initialized dependency, standalone absent assembly/spec roots retain existing skips. Prior focused545 policy/queue/shard/shadow/delivery tests had zero skips. Current hosted fast passed; original full CI remains pending and exact-head Codex quota-blocked. No queue, ruleset, app, release, lane or installed-session changes.

@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

Copy link
Copy Markdown
Contributor Author

@codex review

@brettheap

Copy link
Copy Markdown
Contributor Author

User-selected local Codex skill review completed at latest7f64452c2642a06e7f4a405c72b8eb47d951442d: nine expert roles plus master, all prior P2 findings fixed, no remaining actionable findings. Four red review reproducers now pass. Latest offline validation565passed/no skips (561 committed cases +4review reproductions), actionlint/range whitespace passed. Metadata read permissions confined to trusted verifier/qualification jobs after actual Sonar gate feedback; no settings/suppression. Exact-head full hosted CI and Sonar must still pass. This is an explicitly local review receipt, NOT an official connector receipt; no forged status or bypass. No canary/queue/ruleset/app/release/lane changes.

@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

Final latest-head qualification: fullCI43136353840 passed13/13 at7f64452; fast43136353939, Sonar, shadow/pilot contracts passed. All13 checkout logs prove actual testmergef0671f4d3e8056c0504daeaec1c2bfc332064832, base754cbf, expectedtree472d0f728786d2a9ee3baa92fc27278c3b4d7210. User-selected local Codex9role+master reviewclean; no unresolved threads. Normal guarded merge only; no admin/bypass, queue/canary/settings/app/release/lane change. Codeleg source landing is not assembly adoption or efficiency activation.

@brettheap
brettheap merged commit aa93f99 into main Nov 12, 2026
27 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Merged normally asaa93f99fd965269f07254e16cb8960642394dd53 at02:32:42Z. Actualtree472d0f728786d2a9ee3baa92fc27278c3b4d7210 equals fullCI/fast testedmergef0671f4 and independent merge-tree computation against754cbf. No bypass. This source preparation remains uninvoked, not live fast-only acceptance.

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