Repository navigation
Description
Parent: #1692
Depends on: #1697, #1701, #1704, #1706
Consumes: #1632–#1637, #1644–#1649
Precedes broad dogfood: #1639 and #1650
Purpose
The authority, portfolio, packet, claim, synthesis, and burn-down pieces can each pass fixtures while failing as one operating loop. Before broad dogfood or default ratification, prove that a fresh Codex root can discover several concurrent RIPR campaigns, explicitly select one bounded transition, use subagents only where useful, deliver one real scoped PR, and reconcile it without a repository-global active goal.
This is an integration gate, not a new architecture owner. Defects return to #1697/#1701/#1704/#1706 or the existing #163x/#164x owner rather than being patched into a pilot megadiff.
Pilot subject
Select one real, independently useful, current RIPR issue or near-ready PR from the live #1704 portfolio at execution time.
Selection requirements:
- bounded accepted-contract or reviewed contract scope;
- no product/architecture/security/release decision still open;
- one coherent production/evidence delta;
- ordinary PR/review/CI/merge path;
- no throwaway work created only for the pilot;
- no overlap with an existing unregistered writer;
- small enough to finish while still exercising code/test or meaningful repository behavior.
Record the chosen candidate and why it was selected. Do not encode it as a new repository-wide default.
Phase 1 — Fresh portfolio recovery
From a fresh process/root with no prior chat:
- Read current main and generate the portfolio.
- Prove at least three concurrent contexts are visible, including:
- program: converge ripr from usable to workable to release-ready without cutting a release #1693 usable/workable program;
- the Rust repair-trust campaign/history;
- Codex/spec-v2/control-plane work.
- Show at least two eligible or in-flight candidates and one blocked/conflicting state.
- Prove no
active.toml, campaign title, label, or issue age silently selects the pilot. - Root explicitly records the selected transition as
SelectedWorkIdentity.
Phase 2 — Issue and contract readiness
- Generate github/issues: compile live issue intake packets and reconcile stale, duplicate, or already-satisfied premises #1644 issue/PR intake evidence.
- Fan out bounded read-only lenses only where needed:
- current-premise/problem scout;
- architecture/owner scout;
- test/oracle scout;
- one adversary against the proposed premise.
- Ingest and synthesize results through orchestration: define versioned SubtaskPacket, SubtaskResult, and verification receipt contracts #1633/orchestration: ingest bounded worker results and emit contradiction-aware root-thread synthesis #1636.
- Root chooses one-PR, contract-required, blocked, or replan disposition.
- If a new contract decision is required, stop the pilot subject and select another eligible bounded subject; do not force a spec merely to continue.
Phase 3 — Planning and claim
- Compile a one-PR vertical slice through planning(codex): compile qualified issues and accepted specs into dependency-safe PR-sized work items #1646.
- Prove all acceptance, negative controls, proof, non-goals, conflict resources, and stop conditions are present.
- Acquire one github/issues: add durable issue and work-item claims to prevent duplicate Codex pickup across sessions and hosts #1647 durable claim and one orchestration: enforce local task claims, isolated writer worktrees, and contamination-safe cleanup #1635 local worktree/resource claim.
- Prove a second writer for the same semantic slice is rejected or reconciled.
- The claim changes no global campaign/current-work file.
Phase 4 — Build and verification
- One writer works in the prepared worktree and edit cage.
- Builder returns an author claim bound to exact diff/head.
- A separate verifier runs the named proof, records real denominator/instrument/artifact identity, and cannot repair source.
- Fan out exact-head correctness, integration, simplification, and test/claim review where useful.
- Root deduplicates findings and sends one bounded fixer packet to the existing writer.
- Any new push invalidates prior review/proof and requires fresh exact-head evidence.
Phase 5 — CI, merge, and reconciliation
- CI triage classifies code, fixture, generated, PR-evidence, runner, or unrelated failure from bounded logs.
- Infrastructure cancellation reruns the same SHA where appropriate; no meaningless commit.
- Merge only after the exact head has required proof and resolved material conversations.
- Verify current main.
- Release claims and safely classify/clean the worktree.
- Update github/issues: join specs, work items, PRs, verification, and closeout into an evidence-backed burn-down state #1648 burn-down/closeout and portfolio state.
- A fresh root reconstructs completion and remaining candidates without the original chat.
Required negative controls
- unqualified legacy
goals nextattempts to select a campaign and is rejected/migration-guided; - a compatibility active-goal
readyrow cannot authorize the pilot; - stale portfolio/selected-work identity blocks mutation;
- unrelated portfolio movement does not invalidate the selected work;
- newly overlapping PR/claim does invalidate and forces reconcile;
- builder self-reported green remains unverified;
- proof on another SHA or zero subjects cannot verify the claim;
- one proposed extra subagent is rejected because the task is serial/narrow;
- one proposed parallel writer is rejected for semantic conflict despite disjoint paths;
- raw logs/search dumps never enter the default root summary;
- merged PR with uncovered issue acceptance remains partial.
Pilot receipt
Produce one bounded PortfolioOrchestrationPilotReceiptV1 containing:
repository/main and portfolio identities
visible campaigns/candidates/blockers
selected-work identity and explicit selection rationale
packet/task/result/claim/worktree identities
roles and actual wave plan
context/result/overflow bytes
contradictions and dispositions
changed files and boundary status
verification commands, denominators, instruments, artifacts, and heads
review findings/fixer rounds
CI attempts and classifications
PR/merge/current-main identities
burn-down/claim/cleanup outcomes
fresh-process resume outcome
limitations and non-claims
Raw transcripts and logs remain referenced artifacts.
Acceptance
- A fresh root sees multiple concurrent campaigns and no default/current authority.
- The root explicitly selects one useful transition without tracked selection mutation.
- Read-only fan-out returns bounded schema-valid results and at least one independent challenge.
- Exactly one writer owns the PR; a separate verifier owns proof.
- Relevant stale/conflict changes stop or recompile safely.
- Exact-head review, CI, merge, and current-main verification complete.
- Issue/spec/claim/worktree/burn-down/portfolio state reconciles after merge.
- A fresh process resumes from artifacts without chat.
- Root-context transfer is materially smaller than raw linked documents/logs, or the limitation is reported honestly.
- No fixture-only or synthetic evidence is counted as the real merged pilot.
Metrics
Record root context bytes by phase; subagent packet/result/overflow bytes; source rereads; time to accepted premise, verified result, PR-ready, and merge; review/fixer and CI cycles; contradictions caught; duplicate/conflict prevention; cleanup residue; and whether subagent use was beneficial versus single-agent overhead.
Non-goals
- No broad autonomous rollout or default ratification; owned by dogfood(codex): measure real subagent orchestration quality, context efficiency, and safe defaults #1639/dogfood(codex): prove the real GitHub issue → spec → work-item → verified closeout loop #1650.
- No portfolio priority automation.
- No product megadiff or integration fixes bundled into the pilot PR.
- No release, tag, support promotion, or branch-protection bypass.
- No recursive subagent delegation.
Claim boundary
One real end-to-end proof that RIPR's corrected multi-campaign Codex loop can select, delegate, implement, verify, merge, reconcile, and resume without singleton active-goal authority. It does not establish universal productivity, optimal fan-out, or broad support.
Activity
coderabbitai commentedon Jul 15, 2026
🔗 Related PRs
#1612 - fix(lsp): reject ambiguous workspace roots [merged]
#1616 - test(architecture): keep causal fixture parsing out of domain [merged]
#1640 - docs: make Codex subagent orchestration explicit [merged]
#1670 - perf(review-comments): emit bounded phase receipts [open]
#1691 - specs(ripr): materialize first RIPR-SPEC v2 requirement [open]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
EffortlessSteven commentedon Jul 17, 2026
Codebase Context & Plan Review
Reviewed: 2026-07-17
Current Implementation State
The repository relies on cargo xtask goals commands for single-file active tracking (.ripr/goals/active.toml). The epic #1631 and its workstreams introduce bounded-context orchestration, typed packets, worktree claims, and a live portfolio to replace the singleton tracking.
Relevant Files
Plan Review
The plan aligns with Epic #1631 and the shift towards deterministic orchestration and multi-campaign portfolio modeling without polluting root context. It adheres to the repository's strict non-goals of avoiding unverified AI claims or background daemons.
Blockers
Blocked by foundational components in earlier workstreams (#1632, #1633, #1634).
Readiness Assessment
blocked
Next Action
Implement prior dependent steps in the orchestration pipeline before starting this task.
EffortlessSteven commentedon Jul 18, 2026
Deep Research Follow-up
Reviewed: 2026-07-17
Current Implementation State
This is an integration test gate to prove the orchestrator loop. It relies on the implementation of the #163x and #164x consumers.
Relevant Files
Plan Review
The pilot scope for proving the orchestrator loop is highly targeted: select ONE real, independently useful, current RIPR issue or near-ready PR from the live #1704 portfolio. It must run from a fresh root, discover the portfolio, explicitly select a bounded transition, claim worktree/resources, generate a PR, and reconcile it—all without relying on a repository-global active goal. It proves the orchestration pipeline end-to-end.
Blockers
Depends on #1697, #1701, #1704, and #1706 being completed to ensure the portfolio and claim mechanics are in place.
Readiness Assessment
blocked
Next Action
Wait for the completion of #1706 and #1704, then select a bounded pilot subject and execute Phase 1 (Fresh portfolio recovery).
EffortlessSteven commentedon Jul 18, 2026
Status review (2026-07-17)
Current status:
not-started(hard-blocked). NoPortfolioOrchestrationPilotReceiptV1identifier anywhere. Hard-blocked on #1697, #1701, #1704, #1706 — all partially-done or not-started. This is the final proof gate of the goals-portfolio epic.Recommended next step
No action until #1697/#1701/#1704/#1706 all land. The 5-phase integration test (portfolio recovery → issue/contract readiness → planning/claim → build/verification → CI/merge/reconciliation) proves a fresh Codex root can discover ≥3 concurrent campaigns, explicitly select one bounded transition, deliver one real scoped PR, and reconcile without a repository-global active goal.
EffortlessSteven commentedon Aug 2, 2026
Earnest review (2026-08-02)
Test(orchestrator): prove the multi-campaign portfolio-to-merge loop on one real scoped PR. Slice #1796 (portfolio-to-merge loop integration test, final proof gate) is the execution.
Action: keep open; track via #1796. This is the final proof gate for the orchestrator line.
EffortlessSteven commentedon Aug 3, 2026
Deep re-review (2026-08-02)
STATUS: open
EVIDENCE: This is the portfolio-to-merge pilot integration gate. Its dependencies (#1697/#1701/#1704/#1706) and consumed contracts (#1632-1637, #1644-1649) are all unbuilt:
grep -rniE 'PortfolioBasis|SelectedWorkIdentity|portfolio_basis' crates/ xtask/-> 0 hits. The pilot cannot run until PRs A-D of #1706 land the shared identity vocabulary. The acceptance checklist is thorough (5 phases + 12 negative controls). Correctlystatus/needs-workbut effectively gated on #1706.PLAN QUALITY: good
ACTION: keep (but decompose — gate execution behind #1706 PRs A-D)
EffortlessSteven commentedon Sep 29, 2026
Downstream dogfood consumers
The new PR-sized decomposition intentionally reuses this pilot rather than running near-identical real PR journeys:
PortfolioOrchestrationPilotReceiptV1into dogfood(codex): measure real subagent orchestration quality, context efficiency, and safe defaults #1639's general orchestration corpus.Missing fields remain
not_measuredor an exact producer gap. Neither child should execute a second real PR solely to populate its denominator.test(orch): freeze orchestration attempt receipts contract (#4925) (#…