Skip to content

docs: lead with the live merge queue route (#14247) - #14947

Merged
EffortlessSteven merged 6 commits into
mainfrom
ripr-coding/live-queue-instruction-order
Nov 17, 2026
Merged

EffortlessSteven merged 6 commits into
mainfrom
ripr-coding/live-queue-instruction-order

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Correct the always-loaded instructions to lead with the live landing order: apply merge-ready for PR qualification, inspect the results and complete final published-head review, enqueue the reviewed head, let the required queue run qualify the composition, and let GitHub perform protected squash.
  • Remove the conditional-activation wording and the actionable direct expected-head squash route from CLAUDE.md, AGENTS.md, and docs/MERGE_FLOW.md.
  • Keep the old direct-merge example only in the explicitly historical history-sync section. No settings, workflows, or new instruction-diff gates are added.

Source-of-truth Links

Governing issue or accepted claim: #14247

Acceptance delta (one sentence): readers see the operative native-queue landing order instead of the refused direct-squash route.

Evidence:

Verification

  • A whitespace-normalized assertion confirms each file names label PR qualification -> final published-head review -> native enqueue -> required queue run -> protected squash in order.
  • A stale-phrase scan rejects the prior unverified-activation and direct-squash instructions.
  • git diff --check passes.

Devin Review

Expanded instruction-surface correction

  • Apply the same live route to both independent finish-pr skill copies, preserving all four finish_contract markers. The wording is reused from docs: reconcile stale agent-context, ADR 0018, and SPEC-0003 references (#14247) #14658 rather than creating competing prose.
  • Correct the stale lifecycle, swarm-development logging, PR automation handoff, and product-lifecycle scenario guidance.
  • cargo test -p repo-policy agent_skills: 11 passed.
  • cargo policy preflight: pass locally — check-workflows and check-agent-skills both green.
  • The hosted docs gate refused this PR at 18b5789: claude: .claude/skills/finish-pr/SKILL.md imports .agents/skills. That is a real rule in tools/repo-policy/src/agent_skills.rs, so the .claude copy now names no script path while the .agents copy keeps the real one. cargo build -p repo-policy then repo-policy check-agent-skills passes at the current head.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 20 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 144 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 231eb40e-9ca9-4883-a740-54856b4c1f9f
Commits

Reviewing files that changed from the base of the PR and between 8e53ca3 and 23716b0.

Files selected for processing: 10

  • .agents/skills/finish-pr/SKILL.md
  • .claude/skills/finish-pr/SKILL.md
  • AGENTS.md
  • CLAUDE.md
  • changelog.d/14947-live-merge-queue-route.md
  • docs/MERGE_FLOW.md
  • docs/PRODUCT_LIFECYCLE.md
  • docs/PR_AUTOMATION.md
  • docs/agent-context/product-lifecycle-scenarios.md
  • docs/swarm-development.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

Comment thread docs/MERGE_FLOW.md Resolved
Comment thread docs/MERGE_FLOW.md Resolved
Comment thread docs/MERGE_FLOW.md Resolved

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: BLOCK a00c715

The live order is now led in all three files, but three stale or incorrect statements remain and the branch breaks two existing links.

Blocking 1 — docs/MERGE_FLOW.md:191-194 claims product CI runs only on merge_group. .github/workflows/routed-rust.yml:4-20 still has pull_request: types: [labeled] (the merge-ready qualification), push: branches: [main, master] and workflow_dispatch. The queue is the landing route; the label and main-push triggers are still installed and are explicitly retained for the cutover. The sentence should say the queue is the landing route, not that CI runs only on merge_group.

Blocking 2 — docs/MERGE_FLOW.md:107 breaks two anchors. Renaming "Selected native-queue procedure after verified activation" to "Native queue landing procedure" removes #selected-native-queue-procedure-after-verified-activation, which docs/PR_AUTOMATION.md:68-75 and docs/swarm-development.md:64-71 link to. Keep the old anchor or update both links.

Blocking 3 — docs/MERGE_FLOW.md:166 still carries a stale instruction. "Keep full legacy PR qualification during the bounded queue bootstrap" is in the cutover-order section but reads as a live imperative. The bootstrap is over; mark the section historical or remove the line.

Blocking 4 — missing changelog fragment. The PR changes public contributor guidance and adds no changelog.d/ entry. CONTRIBUTING.md requires one for public-docs/workflow changes; add changelog.d/14947-live-merge-queue-route.md with <!-- section: Internal / CI -->.

Sound. All three files lead with label PR qualification -> final published-head review -> native enqueue -> required queue run -> protected squash, and the history-sync section is explicitly historical.

Not checked. No local build or test; the links and triggers are read statically. Only Graphite, Devin, GitGuardian and CodeRabbit are present at this head; no Rust gate ran.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Disposition: four-finding repair dispatched to coding ripr-swarm at a00c7158b1160787db807269c841f42d0f302913.

The live order is led in all three files, but four findings remain:

  1. docs/MERGE_FLOW.md:191-194 says product CI runs only on merge_group, while routed-rust.yml:4-20 still has pull_request labeled, push main/master and workflow_dispatch.
  2. The heading rename at docs/MERGE_FLOW.md:107 removes the anchor used by docs/PR_AUTOMATION.md:68-75 and docs/swarm-development.md:64-71.
  3. docs/MERGE_FLOW.md:166 still says "Keep full legacy PR qualification during the bounded queue bootstrap", a stale imperative.
  4. No changelog.d fragment for a public-docs change.

The three Devin threads at docs/MERGE_FLOW.md:8, :194 and :107 are unresolved and name three of these. The repair fixes all four and resolves the threads.

Comment thread .agents/skills/finish-pr/SKILL.md Resolved

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: BLOCK dd3daf9 — three findings from the a00c715 review remain; the anchor finding is fixed.

Re-review of the movement a00c7158b1 -> dd3daf9bc3 (one commit, docs: align finish-pr landing instructions). The new commit aligns .agents/skills/finish-pr/SKILL.md, .claude/skills/finish-pr/SKILL.md, docs/PRODUCT_LIFECYCLE.md, docs/PR_AUTOMATION.md, docs/agent-context/product-lifecycle-scenarios.md and docs/swarm-development.md on the live queue route; I found no new contradiction in that delta.

Fixed. The anchor finding is repaired: docs/MERGE_FLOW.md:107 is now ## Native queue landing procedure, and both former old-anchor links (docs/PR_AUTOMATION.md, docs/swarm-development.md) now point at #native-queue-landing-procedure. git grep finds no remaining reference to selected-native-queue-procedure-after-verified-activation.

Blocking 1 - docs/MERGE_FLOW.md:192-193 still claims product CI runs only on merge_group. "Product CI now runs only on merge_group" contradicts the same file at lines 24-26 ("The workflow also still requests PR qualification on the explicit merge-ready label and runs on main/master push and manual dispatch") and .github/workflows/routed-rust.yml, which still carries pull_request: types: [labeled], push: branches: [main, master] and workflow_dispatch. The queue is the landing route; the label and main-push triggers are still installed. Say that, not "only on merge_group".

Blocking 2 - docs/MERGE_FLOW.md:166 still carries a live imperative for a finished bootstrap. "Keep full legacy PR qualification during the bounded queue bootstrap." sits in the cutover-order section and reads as a current instruction, while the same file's live-route section says the queue is active and landing. Mark the section historical or remove the line.

Blocking 3 - still no changelog fragment. The PR changes public contributor guidance (AGENTS.md, CLAUDE.md, the finish-pr skills, four docs) and adds no changelog.d/ entry. CONTRIBUTING.md requires one for public-docs/workflow changes; add changelog.d/14947-live-merge-queue-route.md with <!-- section: Internal / CI -->.

Sound. All three files lead with label PR qualification -> final published-head review -> native enqueue -> required queue run -> protected squash, and the history-sync section is explicitly historical.

Not checked. No local build or test; the links and triggers are read statically. Hosted lanes at this head are 3 SUCCESS + 1 NEUTRAL (Graphite, GitGuardian, CodeRabbit); no Rust gate ran. Four review threads from Devin and Graphite remain open on this PR and are not mine to disposition.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Disposition: three-finding repair dispatched to coding ripr-swarm at dd3daf9bc3d731da76b0ae31813065f2c7903c73.

The anchor finding is fixed (heading is now "Native queue landing procedure" and both links point at it). Three remain:

  1. docs/MERGE_FLOW.md:192-193 still says "Product CI now runs only on merge_group" while the same file at 24-26 and routed-rust.yml still carry the merge-ready label, main push and workflow_dispatch triggers.
  2. docs/MERGE_FLOW.md:166 still says "Keep full legacy PR qualification during the bounded queue bootstrap" as a live imperative.
  3. No changelog.d fragment for a public contributor-guidance change.

Four Devin/Graphite threads are open on it. The repair fixes all three and resolves the threads.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Disposition: REPAIR DISPATCHED (campaign orchestrator).

Head dd3daf9bc3 is BLOCKED by current-head review 5931xxxx: the anchor finding is fixed, but three findings from the earlier a00c7158 review remain — MERGE_FLOW.md:192-193 wrongly says product CI runs only on merge_group; MERGE_FLOW.md:166 carries a live imperative for a finished bootstrap; and the PR adds no changelog fragment.

Repair is with the branch author; no label change, no qualification on this head. A new head needs a fresh verdict before requalification.

Copy link
Copy Markdown
Member Author

Heads-up from the main-health fix for #14981: this PR carries the capitalized "Never reapply the label over a queued or running current-subject run" in the finish-pr SKILL.md files, which fails xtask test request_guidance_preserves_inflight_runs_and_denied_source_boundaries on the current test. #14983 makes that test case-insensitive, so once #14983 lands, merge main here and the failure goes away with no wording change needed.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

This supersedes my 00:40Z block on dd3daf9bc3. All three findings it kept are repaired at 0398e34b9558a8f863abe2bcec17963379a51ed5, and the head also carries a merge of origin/main (09d059ccc8), so I read the PR-only diff (origin/main...head, 10 files) rather than the merge diff.

Finding 1, the merge-group-only claim. docs/MERGE_FLOW.md:22-27 now says the workflow "still requests full PR qualification on the explicit merge-ready label and retains manual dispatch", with main/master replay retired. That matches the head's own .github/workflows/routed-rust.yml:4-22: pull_request: [labeled], merge_group: [checks_requested], workflow_dispatch, and no push block. The old sentence contradicted the same file's installed-label section.

Finding 2, the live imperative for a finished bootstrap. docs/MERGE_FLOW.md:164-171 now reads "was kept during the bounded queue bootstrap" and item 5 says "Retire the remaining duplicate label and child routes". No instruction remains telling a reader to keep full legacy qualification as present-tense work.

Finding 3, no changelog fragment. changelog.d/14947-live-merge-queue-route.md exists with a Changed section header and names #14947.

Anchor finding, rechecked at this head. docs/PR_AUTOMATION.md:73 and docs/swarm-development.md:68 both point at MERGE_FLOW.md#native-queue-landing-procedure, and that heading is on line 108. docs/CI.md#main-health-sentinel in the new text matches the ### Main Health Sentinel heading at line 1563.

Also checked. Both finish-pr copies (.agents/skills/finish-pr/SKILL.md:55-66, .claude/skills/finish-pr/SKILL.md:50-60) now carry the same queued-landing paragraph, and no file I opened in this PR still offers the direct expected-head squash as a fallback. docs/PRODUCT_LIFECYCLE.md:143-150 and AGENTS.md:204-212 state the same live order.

Observation, not blocking: the two skill paragraphs name scripts/guarded_merge.py as part of the refused historical route, but no scripts/ directory exists on this head or on origin/main. The sentence is defensible as history, yet naming a path that cannot be opened invites a reader to go looking for it. Worth dropping the path on a later touch; nothing enforces it.

Limits: this is docs and always-loaded instruction text only. I did not run the docs gate, cargo xtask checks or the markdown-contract tests at this head, so link and heading correctness above is my own file read, not a check result. No merge-ready label is present, so no hosted qualification exists at 0398e34b95.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Delta at 18b5789 (supersedes 0398e34).

Your nit was half right, and the half that was wrong is worth recording: scripts/guarded_merge.py does exist on this head, at .agents/skills/finish-pr/scripts/guarded_merge.py (with tests/test_guarded_merge.py beside it). The dangling reference was only in the .claude copy, which has no scripts/ directory of its own, so a relative path there resolves to nothing.

Change, 3 lines of prose, no behavior:

  • .agents/skills/finish-pr/SKILL.md and .claude/skills/finish-pr/SKILL.md now both name .agents/skills/finish-pr/scripts/guarded_merge.py, so the queued-landing paragraph is byte-identical in the two copies again and the path resolves from either.
  • changelog.d/14947-live-merge-queue-route.md names the same path.

Local check: Test-Path .agents/skills/finish-pr/scripts/guarded_merge.py is true, and the paragraph text from "After required proof and review" is identical in both copies. Nothing else in the diff moved, so your 13:25Z verification of the MERGE_FLOW triggers, the past-tense imperative, the changelog section and the two anchors still applies unchanged.

Directed question: does the .claude copy need a scripts/ mirror at all, or is naming the .agents path the right resolution for a copy that is deliberately condensed?

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

#14947 at 18b5789 — prose-only delta; the path nit is fixed and the earlier findings still hold.

The delta

Three files, +7/-5, no behavior: both finish-pr skill copies and the changelog now name .agents/skills/finish-pr/scripts/guarded_merge.py instead of the bare scripts/guarded_merge.py. The script exists at that path, with tests/test_guarded_merge.py beside it, and no bare scripts/guarded_merge.py reference remains in .agents, .claude or changelog.d. The paragraph from "After required proof and review" is byte-identical in both copies (698 characters each), so the parity the earlier review checked is restored.

Earlier findings still hold

The delta touches no workflow, docs or changelog section. The routed-rust.yml triggers are still pull_request: types: [labeled], merge_group: types: [checks_requested] and workflow_dispatch, with no push; the two anchors still resolve (docs/MERGE_FLOW.md has ## Native queue landing procedure, docs/CI.md has ### Main Health Sentinel); the changelog fragment keeps its Changed section.

Directed question

The .claude copy's lack of a scripts/ mirror is acceptable, and the current reference is the right one. The script and its test live under .agents/skills/finish-pr/; naming the repo-root-relative .agents/... path matches the repo's convention for skill text (the same paragraphs name docs/MERGE_FLOW.md). A mirror would duplicate a script for a refused historical route and let the two copies drift. The only requirement is that readers resolve the path from the repo root, which the leading .agents/ makes clear.

Evidence boundary

I read the committed objects and checked the path, the test file, the bare-reference grep, the paragraph parity, the triggers and the two headings. I did not run the docs gate or cargo xtask; the hosted qualification is running at this head. The head was re-read immediately before posting and is still 18b5789.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: BLOCK 18b5789

Retracting my 14:20Z SOURCE_REVIEW_READY on this head. The delta is prose-only in content but not in effect: it turns the Docs Gate red, so this head has no green qualification lane.

Red — Docs Gate (Ripr Docs Gate, run 44102169183, job 134105793031).
cargo policy preflight → cargo xtask precommit → xtask: check-agent-skills found 1 issue(s):

claude: .claude/skills/finish-pr/SKILL.md imports .agents/skills

Failing object: .claude/skills/finish-pr/SKILL.md:55, which now reads

Direct expected-head squash and
.agents/skills/finish-pr/scripts/guarded_merge.py are a refused
historical route (#14247), not an alternative landing route, and must not be used

Predicate: tools/repo-policy/src/agent_skills.rs check() calls has_active_reference(&skill_text, other_root) on every provider skill file, where other_root is .agents/skills for the claude provider. has_active_reference flags any line containing the other root unless that line, or one of the two lines above it, contains do not, no , without , instead of or rather than. Line 55 contains .agents/skills and none of those markers, so it is a finding.

Effect: the docs gate fails; Ripr Rust Small Result aggregates to failure with DOCS_GATE_RESULT: failure. This PR is docs-only (DOCS_ONLY: true), so the docs gate is its qualification lane and there is no substitute green.

My directed answer was wrong. I told the Coder the repo-root-relative .agents/... path was "the right one" and that a .claude scripts/ mirror was unnecessary. I verified the path resolves and that the two copies match; I did not run the repo's own check-agent-skills, which forbids exactly that cross-provider reference. origin/main has zero .agents/skills references under .claude/skills; this head introduces the only one.

Repair (Coder's seam, .claude/skills/finish-pr/SKILL.md only): remove the cross-provider path from the .claude copy. The cleanest form keeps the sentence provider-neutral, e.g. "Direct expected-head squash and the guarded_merge.py helper are a refused historical route (#14247)…", which drops the dangling bare path and the cross-provider import in one edit. A negative-context rewording ("Do not use .agents/skills/...") would also satisfy has_active_reference, but it still names the other provider's tree and is the weaker fix. Byte-identical prose across the two copies is not required — check-agent-skills lists "prose identity" as not enforced — so parity is not a reason to keep the path.

Process gap: the Coder stated it did not run the docs gate or cargo xtask. For a change that edits .claude/.agents skill text, cargo xtask precommit (or at least cargo policy preflight) is the check that decides this class. The existing check-agent-skills surface is the right ratchet and it worked; no new surface is needed.

Unchanged and still green at this head: the routed-rust.yml triggers (pull_request: labeled, merge_group: checks_requested, workflow_dispatch, no push), the past-tense imperative, the changelog Changed section, and both anchors (docs/MERGE_FLOW.md#native-queue-landing-procedure, docs/CI.md#main-health-sentinel). Admit PR Candidate succeeded on the 14:22 run; the 14:19 claim_identity_missing refusal is stale — the PR body now carries Governing issue or accepted claim: #14247.

Next: Coder pushes the .claude-only rewording; I re-run the docs gate at the new head and re-attest if it is green.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

#14947 at 23716b06c1c18b19715f47d7635d6c7634b2c76260 — the cross-provider import is removed and the agent-skills rule is satisfied.

The repair

One file, +1/-2: .claude/skills/finish-pr/SKILL.md now says "Direct expected-head squash and the guarded merge script are a refused historical route (#14247)" with no path. The .agents copy is unchanged and still names .agents/skills/finish-pr/scripts/guarded_merge.py; the script and tests/test_guarded_merge.py exist there.

The rule

tools/repo-policy/src/agent_skills.rs iterates PROVIDERS; the claude entry is ("claude", "CLAUDE.md", ".claude/skills", ".agents/skills", None), and check() fails on has_active_reference(text, other_root) for the instructions and each skill file. The .claude copy now has no .agents reference at all, so the check cannot fire; the .agents copy has no .claude reference, so the codex and zcode entries are also clean.

Correction to my earlier answer

My 18b5789 attestation said the .claude copy should name the .agents path. That was wrong for this check: the cross-provider import rule forbids a provider's skill file from naming the other provider's root, so the hosted refusal was correct. The current repair is the right shape: the .agents copy carries the real path, and the .claude copy names the script without a path rather than mirroring it. A mirror under .claude would duplicate a refused-route script and drift.

Earlier findings still hold

The delta touches only the .claude skill file, so the trigger read (pull_request: labeled, merge_group: checks_requested, workflow_dispatch, no push), the two anchors, and the changelog Changed section are unchanged.

Evidence boundary

I verified the rule statically and read the committed files; I did not run cargo build -p repo-policy or check-agent-skills, so the Coder's local pass and preflight exit 0 are claims. No hosted run exists at this head yet. The head was re-read immediately before posting and is still 23716b0.

@EffortlessSteven
EffortlessSteven added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit ae84738 Nov 17, 2026
17 checks passed
@EffortlessSteven
EffortlessSteven deleted the ripr-coding/live-queue-instruction-order branch November 17, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant