Skip to content

ci: add general manual full-CI code queue - #45

Merged
brettheap merged 1 commit into
mainfrom
ci/general-manual-code-queue
Nov 11, 2026
Merged

brettheap merged 1 commit into
mainfrom
ci/general-manual-code-queue

Conversation

@brettheap

@brettheap brettheap commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Depends-On: #44

Approved rollout

Brett requested finishing the CI rollout: merge #44 after full CI, add a general manual code queue, and refresh matching assembly pins and Claude instructions. Preserve lanes 1–5; no bypass, app access, paid upgrade or release changes. This PR depends on #44 and must land after it.

Scope

  • Append openrepotools-code; retain both earlier queues.
  • Manual writer-only entry, serial, maximum two members, 60-second fill, 90-minute checks, zero automatic retries/splitting.
  • Same-repository open non-draft independent PRs targeting main. Known normal command/source/test/skill/feature paths only. Release stamp, workflow/queue/pin/package controls and unknown/mixed paths refuse.
  • All four app-qualified GitHub Actions full gates remain required on originals and candidate.
  • Named queue command is operator attestation after fresh exact-head Codex review, threads, head/base/path/checks and user merge authority. It is NOT service-enforced Codex/SHA review proof. No review label, custom passing status or automatic admission.
  • Shared Claude/Codex instructions point to the manual runbook. Real dependencies stay separate; this main-only queue does not flatten stacks or install tools.
  • Canonical spec companion is tracked under Feature 009: reconcile manual queue rollout and label-trigger amendments openRepoTools-spec#26.

No existing PR is enqueued and no live canary is run. No CI/release workflow, ruleset/app access, active lane, installed tool or assembly pin is changed here.

Validation

  • Red first: general queue test fails against the previous two-queue configuration.
  • 262 queue policy regressions pass.
  • 315 combined workflow/queue tests pass via canonical tests/run.sh in a disposable network-disabled clone, pinned dependency initialized. No test runs in active lane worktrees.
  • git diff --check passes.
  • Mergify service schema validation, full cloud CI and exact-head Codex review remain landing gates.

After #44 merges normally, retarget this PR to main and revalidate the actual merge tree. Preserve its reviewed head unless source changes are necessary; rerun full CI if integration changes the tested tree. The assembly will pin only the eventual merged commit after spec reconciliation.

Summary by Sourcery

Add a bounded manual full-CI queue for eligible independent code pull requests while preserving existing CI lanes, controls, and review requirements.

New Features:

  • Add the manually triggered, main-only openrepotools-code queue for eligible independent code pull requests with bounded two-member full-CI batching.

Enhancements:

  • Document the operator preflight and attestation procedure while preserving existing lanes, full checks, and dependency topology.
  • Expand shared Claude/Codex guidance to cover the approved manual full-CI rollout and its restrictions.
  • Add the general code-queue specification amendment and reconciliation guidance.

Documentation:

  • Update CI operator and agent guidance for manual full-CI queues, eligibility boundaries, and landing procedures.

Tests:

  • Add comprehensive policy coverage for queue bounds, eligible paths, rejected control or mixed paths, unsupported topology, required app-qualified gates, and missing context.

@sourcery-ai

sourcery-ai Bot commented Nov 11, 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 23 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 11, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Add the manually invoked, main-only code queue with bounded batching, path and topology restrictions, and all four full-CI gates retained for admission and merge.

  • .mergify.yml L87-115

Documentation

Record the approved rollout, operator preflight and queue procedure, eligibility limits, and shared guidance while preserving lane and review boundaries.

  • .github/ci/batching-pilot.md L1, L106-158
  • .github/ci/task-set-delivery.md L9-14, L23-30 (+2 small edits)
  • AGENTS.md L42-50
  • features/009-manual-two-pr-queue/openspec/general-code-queue.md L1-25

Tests

Update queue-order expectations and add policy regressions covering eligible and refused PRs, full-gate requirements, and the shared operator procedure.

  • tests/test_ci_pilot_queue.py L92, L258-348

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 11, 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-11T21:40:46.744039Z 8bea266 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. Another round soon, please!

Reviewed commit: 8bea266ca5

ℹ️ 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 changed the base branch from ci/no-label-full-ci to main November 11, 2026 22:06
@brettheap

Copy link
Copy Markdown
Contributor Author

Parent #44 merged normally as d17421d after successful recovery CI and exact-head Codex review. Retargeted this PR to main without changing reviewed head 8bea266. Its new synthetic integration tree remains 78671d49d6dbf09bdb040822f7690a6347346c57, identical to the original CI merge-ref tree recorded before retargeting. No source rebase, force, status override or check weakening. Full CI and Mergify config validation remain required before this PR merges.

@brettheap

Copy link
Copy Markdown
Contributor Author

@Mergifyio refresh

@mergify

mergify Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

refresh

✅ Pull request refreshed

@brettheap
brettheap merged commit d3c55e5 into main Nov 11, 2026
25 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Source rollout qualified and merged normally as d3c55e5. All 13 full-CI jobs passed on first attempt (run 43104702686), Mergify Configuration changed validation passed, and exact-head Codex review was clean with zero threads. Package, launch guard and both shell variants checked out 62edf69; its tree, independent integration against current main, and actual landed tree all equal 78671d49d6dbf09bdb040822f7690a6347346c57. No head rewrite, check skip, status override or bypass. The general manual queue is now in code main; no existing PR has been queued. Matching assembly adoption remains pending spec reconciliation and composed exact-pin qualification.

brettheap added a commit that referenced this pull request Nov 11, 2026
…osed-lane

Lane 3 asked for this merge before landing (opensoft/openRepoTools#165, 6808628795).

Lane: openRepoTools-5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Nov 11, 2026
…tten, as `--late` does, instead of taking it from CLOSED to SWAPPING (opensoft/openRepoTools#118) (#32)

A lane whose log's last lane-kind line is an `ENDED` or a `RETIRED` is
closed. `lane-handoff` on it read the lifecycle's `CLOSED` as the
compare-and-swap's expected value and took the lane to `SWAPPING`, then
`SWAPPED`, appending a `PAUSED` after the `ENDED`: a terminal lane reopened
by a `/handoff` typed in a pane that was still there.

- `lane-handoff`: `--late`'s read of `lane-last` and its `ENDED` or
  `RETIRED` refusal move into `read_last_lane_line` and
  `refuse_a_closed_lane`. Every mode but `--late` calls them right after
  the managed-ledger seam's refusal, before the restart intent, the window,
  the handoff, the register, the object log or the lifecycle is touched. A
  closed lane exits 2 with `--late`'s words, and `--late` keeps its own
  order and words.
- The log is the lane's state: a lane that a later `STARTED` or `RESUMED`
  reopened is never refused, and a `lane-last` read that fails exits 1
  before any write (Amendment 7(d)).
- tests/test_a23_lane_handoff.py: a closed lane is refused before any
  write, for the plain handoff, `--restart`, `--exit` and `--in-process`; a
  failed read of the last line is not an open lane; and a lane started
  again after its close is handed off as before.

It is the option Brett Heap chose for opensoft/openRepoTools#118, "Refuse,
as --late does (Recommended)". The issue stays open for the transition
table its "What's open" also asks for.

Lane openRepoTools-3's independent review read READY at 1915f48, after the
fix round for its MUST and SHOULD, and its delta check read READY at the
merge 959e21a. The merge 4d211d2 took code main 92f9e10
(#36 and #35): lane 3 checked that its tree
equals git merge-tree's in every file but tests/test_a23_lane_handoff.py,
which holds both sides' blocks, main's first, and Codex found no major
issue there. The head 0356714 then merges code main d3c55e5
(#44 and #45, two CI changes), and its tree,
3284253, is git merge-tree's of d3c55e5 and 4d211d2, so it adds nothing
of its own. Codex found no major issue at 0356714. All 18 checks that
ran passed at 0356714 on main d3c55e5 (Sourcery's review was skipped and
the Mergify queue check was neutral), so the tested tree is this commit's
tree, 3284253. Lane openRepoTools-3 lands it under Brett Heap's standing
landing word, which he extended on 2026-11-10 to lane-tooling fixes any
lane writes, once lane 3 has reviewed them.

Part of opensoft/openRepoTools#118

Lane: openRepoTools-5
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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