Skip to content

test(orchestrator): prove the multi-campaign portfolio-to-merge loop on one real scoped PR #1707

Open

Description

@EffortlessSteven

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:

  1. Read current main and generate the portfolio.
  2. Prove at least three concurrent contexts are visible, including:
  3. Show at least two eligible or in-flight candidates and one blocked/conflicting state.
  4. Prove no active.toml, campaign title, label, or issue age silently selects the pilot.
  5. Root explicitly records the selected transition as SelectedWorkIdentity.

Phase 2 — Issue and contract readiness

  1. Generate github/issues: compile live issue intake packets and reconcile stale, duplicate, or already-satisfied premises #1644 issue/PR intake evidence.
  2. 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.
  3. 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.
  4. Root chooses one-PR, contract-required, blocked, or replan disposition.
  5. 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

  1. Compile a one-PR vertical slice through planning(codex): compile qualified issues and accepted specs into dependency-safe PR-sized work items #1646.
  2. Prove all acceptance, negative controls, proof, non-goals, conflict resources, and stop conditions are present.
  3. 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.
  4. Prove a second writer for the same semantic slice is rejected or reconciled.
  5. The claim changes no global campaign/current-work file.

Phase 4 — Build and verification

  1. One writer works in the prepared worktree and edit cage.
  2. Builder returns an author claim bound to exact diff/head.
  3. A separate verifier runs the named proof, records real denominator/instrument/artifact identity, and cannot repair source.
  4. Fan out exact-head correctness, integration, simplification, and test/claim review where useful.
  5. Root deduplicates findings and sends one bounded fixer packet to the existing writer.
  6. Any new push invalidates prior review/proof and requires fresh exact-head evidence.

Phase 5 — CI, merge, and reconciliation

  1. CI triage classifies code, fixture, generated, PR-evidence, runner, or unrelated failure from bounded logs.
  2. Infrastructure cancellation reruns the same SHA where appropriate; no meaningless commit.
  3. Merge only after the exact head has required proof and resolved material conversations.
  4. Verify current main.
  5. Release claims and safely classify/clean the worktree.
  6. 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.
  7. A fresh root reconstructs completion and remaining candidates without the original chat.

Required negative controls

  • unqualified legacy goals next attempts to select a campaign and is rejected/migration-guided;
  • a compatibility active-goal ready row 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

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

  1. coderabbitai commented on Jul 15, 2026

    @coderabbitai
    🔗 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 plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 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:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  2. EffortlessSteven commented on Jul 17, 2026

    @EffortlessSteven
    MemberAuthor

    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

    • .ripr/goals/active.toml — The active campaign manifest being refactored.
    • docs/CODEX_GOALS.md — The autonomous campaign runner model docs.
    • xtask/src/command.rs — Needs command implementations for this workstream.

    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.

  3. EffortlessSteven commented on Jul 18, 2026

    @EffortlessSteven
    MemberAuthor

    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

    • Needs to interact with multiple campaign contexts and \�ctive.toml\ (which should be verified as not silently selecting the pilot).

    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).

  4. EffortlessSteven commented on Jul 18, 2026

    @EffortlessSteven
    MemberAuthor

    Status review (2026-07-17)

    Codebase review against current main (be4a33d1). Read-only; no code changed.

    Current status: not-started (hard-blocked). No PortfolioOrchestrationPilotReceiptV1 identifier 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.

  5. added
    status/needs-work
    on Jul 18, 2026
  6. EffortlessSteven commented on Aug 2, 2026

    @EffortlessSteven
    MemberAuthor

    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.

  7. EffortlessSteven commented on Aug 3, 2026

    @EffortlessSteven
    MemberAuthor

    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). Correctly status/needs-work but effectively gated on #1706.
    PLAN QUALITY: good
    ACTION: keep (but decompose — gate execution behind #1706 PRs A-D)

  8. EffortlessSteven commented on Sep 29, 2026

    @EffortlessSteven
    MemberAuthor

    Downstream dogfood consumers

    The new PR-sized decomposition intentionally reuses this pilot rather than running near-identical real PR journeys:

    Missing fields remain not_measured or an exact producer gap. Neither child should execute a second real PR solely to populate its denominator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

status/needs-work

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions