Repository navigation
Description
Parent
- epic(codex): turn live GitHub issues into accepted specs, scoped work items, and verified closeout #1643 — live GitHub issue → accepted spec/work items → verified closeout
Foundation
- context: implement the typed repo graph and role-scoped work-item packet compiler #1632 — typed repository context and role-scoped work-item packets
- orchestration: define versioned SubtaskPacket, SubtaskResult, and verification receipt contracts #1633 — typed subtask/result contracts
docs/reference/AGENT_HANDOFF_PROTOCOL.md— mandatory Step 0 premise check- existing source-of-truth graph, issue/PR templates, active-goal manifest, and PR reports
Problem
Codex can read a GitHub issue, but an issue body alone is not a current implementation premise. Before pickup, the root currently has to manually gather and compare:
issue body, edits, comments, labels, assignees, milestone
linked issues and PRs
current main/base SHA and working-tree state
open PRs that overlap the request
existing proposal/spec/ADR/plan/work-item links
active goal and blocked dependencies
current source/tests/fixtures that may already satisfy the request
support-tier and known-limit state
Without a bounded live packet and independent reconciliation, an agent can start stale work, duplicate an open PR, misread a historical comment as current authority, or create a spec for a problem that current main already solved.
Required outcome
Add an agent-neutral live issue intake packet plus a typed issue assessment contract. The tool gathers facts; a Codex triager/scout may classify them, but model conclusions remain claims requiring evidence references and root disposition.
Suggested read-only surfaces:
cargo xtask issues packet --issue <n> [--json]
cargo xtask issues reconcile --packet <path> --assessment <path> [--json]
cargo xtask issues next [--limit <n>] [--json]
Exact names may follow the command catalog. Live GitHub access should use the existing approved gh/connector posture; fixtures must accept captured input so tests do not require network access.
IssueIntakePacket
Bind at least:
schema/version
repository and issue number/URL
issue node/update identity
body/comment/label/assignee/milestone digest
open/closed state and reason
reporter-provided problem, desired outcome, reproduction/evidence, constraints
linked issue/PR references and current states
current default-branch SHA and selected comparison base
active goal/work-item identity
relevant context surfaces/docs/specs/ADRs/plans/code/tests/fixtures/reports
open PR and branch collision candidates
existing claims
support/known-limit references
selected/omitted/total context counts
missing facts and retrieval routes
portable packet identity
Do not copy unlimited comments or full diffs into the default packet. Select relevant entries deterministically, preserve counts, and expose complete retrieval references.
Issue forms and metadata
Review current issue templates/forms and add the smallest useful structured fields for future issues without making contributor intake burdensome. Support at least:
problem / user impact
evidence or reproduction
desired outcome
known constraints/non-goals
surface or workflow when known
security/public-contract/release sensitivity
Issue forms improve inputs but are not required for historical/free-form issues. Missing form fields become explicit packet gaps, not rejection by default.
Use a small label vocabulary only as a projection/queue aid. Labels must never be the sole source for duplicate, spec-required, active, verified, or completed truth.
IssueAssessment
Closed top-level disposition:
needs_evidence
qualified_one_pr
qualified_spec_required
root_decision_required
duplicate
already_satisfied
superseded
blocked_external
invalid_or_unsafe_request
unknown
Required fields:
packet/input identity consumed
disposition and confidence basis
problem restatement and user-visible outcome
current-state evidence
candidate duplicate/superseding issue or PR
accepted-contract/spec coverage when existing
why a new proposal/spec/ADR is or is not required
missing facts/questions
risk/surface classification
recommended next action
explicit non-claims
Spec-needed rules
A new spec/proposal/ADR is generally required when the issue changes or leaves unresolved:
public behavior/API/schema/output vocabulary
architecture/package/process authority
security/trust/network/credential boundary
release/publish/support-tier claim
cross-surface invariant or durable product choice
multiple reasonable product outcomes
multi-PR behavior without an accepted contract
A direct scoped PR is allowed when the issue is a bounded defect or documentation/proof repair under a current accepted contract with clear acceptance and no unresolved decision.
The assessment must explain the rule used. It cannot classify solely from labels or title keywords.
Premise reconciliation
The reconciliation pass must check:
- exact relevant source/test/fixture state on current main;
- open PRs and recently merged work that may already implement the request;
- linked and semantically related issues/specs/plans;
- whether cited files, commands, versions, and assumptions still exist;
- whether the issue asks for a behavior prohibited by current product/architecture rules;
- whether required evidence/reproduction can be obtained safely;
- whether the issue belongs in
ripr-swarmor source/distribution/another producer repo.
Candidate duplicate or already-satisfied classifications require concrete references and inspected scope. A text-similar title is not enough.
issues next
Provide a deterministic, non-business-ranking queue over issues that are eligible for human/root selection. It may filter/order by declared roadmap/milestone/priority, dependency readiness, claim state, age, and exact active-goal relationship. It must not invent product priority from prose sentiment.
Output should distinguish:
ready for assessment
needs evidence
already claimed
blocked by dependency
possible duplicate
active-goal related
outside current campaign
If the active goal has ready work, the report should say so rather than encouraging Codex to abandon it for an unrelated issue.
Acceptance
- Fixture packets cover edited issue bodies, long comments, labels, linked PRs, missing forms, and closed/reopened history.
- Current main/open PR/active goal identities are bound and visible.
- A stale issue whose requested code already landed is classified
already_satisfiedonly with exact source/PR proof. - Two text-similar but behaviorally different issues are not automatically marked duplicate.
- An open PR implementing the same accepted contract appears as a collision candidate and blocks unqualified duplicate pickup.
- One narrow accepted-contract bug is
qualified_one_pr; one public JSON contract request isqualified_spec_required. - Missing reproduction produces
needs_evidence, not a guessed implementation. - Historical/free-form issues remain packetizable.
- Packet and assessment JSON are schema-versioned, root-portable, deterministically ordered, and byte-bounded.
- Repeated unchanged GitHub/repo state yields the same semantic packet identity.
- Human Markdown is projected from the DTO and cannot strengthen the disposition.
- Tests run from captured GitHub inputs with zero network.
Non-goals
- No automatic business-priority scoring.
- No automatic spec generation or source edit in this issue.
- No issue claim, label mutation, comment posting, or closure.
- No provider/model invocation inside
xtask. - No replacement for the active goal or source-of-truth graph.
- No claim that code search proves an issue fully solved beyond inspected scope.
Likely seams
- focused issue intake/reconciliation DTO and command modules under
xtask - GitHub/
ghcaptured-input adapter - context: implement the typed repo graph and role-scoped work-item packet compiler #1632 context routing and references
- issue-template/form files and checked metadata vocabulary
- deterministic fixture corpus for issue histories and collisions
- command catalog and reports index
Relationships
- The spec authoring issue consumes
qualified_spec_requiredpackets. - The planning issue consumes
qualified_one_pror accepted-spec packets. - The durable claim issue consumes current packet/assessment identities.
- Burn-down consumes the same issue snapshot identity and disposition history.
Claim boundary
This issue can make issue pickup current, bounded, and evidence-backed. It cannot decide product priority, guarantee that a reported problem matters, or prove complete implementation from a finite reconciliation search.
Activity
EffortlessSteven commentedon Jul 15, 2026
Issue update — 2026-07-14
Title: github/issues: compile live issue intake packets and reconcile stale, duplicate,
Status
This issue is part of the Codex orchestration epic (#1631) — context-compiled, conflict-safe subagent orchestration. Based on codebase research:
Recommendations
EffortlessSteven commentedon Jul 15, 2026
Prerequisite: #1692 must land before this issue intake packet can be treated as current. Its inputs must include the generated portfolio, selected issue identity, overlapping campaigns/issues/PRs/claims/worktrees, and current main; active-goal data is context only and cannot authorize pickup or ordering.
EffortlessSteven commentedon Jul 15, 2026
Issue-intake authority correction
Consume #1704's portfolio snapshot and #1706's selected-work vocabulary. Replace
active goal / active work item identityas the live premise with:An issue outside every campaign may still be
qualified_one_prorqualified_spec_required. Campaign placement is a later #1646/root decision, not an intake prerequisite.issues nextmay expose/filter the explainable candidate set but may not invent business priority or privilege a compatibility campaign. Missing GitHub, local, or cargo-allow inputs producepartial/not_proven.Add fixtures for standalone qualified issue, issue related to several campaigns, blocked campaign with eligible independent issue, and existing PR selected as collision/resume rather than duplicate pickup.
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
Codebase Context & Plan Review
Reviewed: 2026-07-17
Current Implementation State
Relevant Files
Plan Review
The orchestration plan is coherent but requires new domain types distinct from the repair-focused ContextPacket. The existing architecture will support this well. The dependencies (e.g., #1634 needing #1633) are logically sound and represent a natural bottom-up evolution.
Blockers
No direct blockers, but the domain primitives must be implemented sequentially (e.g., foundational domain types before the planner).
Readiness Assessment
ready-to-implement
Next Action
Implement the foundational domain structs in crates/ripr/src/domain/ (e.g., SubtaskPacket, OrchestrationPlan, LocalClaim) and wire the initial xtask command scaffolding.
EffortlessSteven commentedon Jul 18, 2026
Status review (2026-07-17)
Current status:
not-started (design/spec only), blocked — but this is the correct first implementation slice once the portfolio prereqs land. Per AGENTS.md, not an assumed command surface.Evidence nothing landed
grep -rniE "issue.intake|intake.packet"acrosscrates/ripr/src/,xtask/src/,docs/→ empty.issues packet|reconcile|nextcommands.ContextPacketatcrates/ripr/src/domain/context_packet.rsis the LSP test-grip repair packet — a different domain type, not reusable as-is.The authority correction applies
The intake packet's premise is rewritten:
current main + selected issue snapshot + relevant campaigns/plans/contracts + overlapping PRs + claims/worktrees + portfolio completeness— notactive goal / active work item identity. Depends on #1632/#1633 + #1692 then #1704/#1706.Recommended next step
This is the first useful milestone of the epic. Once #1692's portfolio vocabulary lands, co-design
IssueIntakePacketidentity fields with #1632 context/reference types. Start read-only (packet + assessment, no GitHub mutation) per the epic's own staging. The dispositions vocabulary (needs_evidence|qualified_one_pr|qualified_spec_required|root_decision_required|duplicate|already_satisfied|superseded|blocked_external|invalid_or_unsafe_request|unknown) is worth freezing early. Ignore the 2026-07-17 bot "ready-to-implement" rating — it contradicts the issue's own #1692 prereq corrections.feat(xtask): add bounded live issue snapshot adapter (#1821)
EffortlessSteven commentedon Jul 19, 2026
Landed foundation — 2026-07-19
PR #1821 merged as commit
6d64e59617ffffad2a2c87714b4e78eae42ec2c6after being re-scoped from an issue-completion claim to a bounded live issue-snapshot adapter.Now available
issue-intake --issue <number>argument validation;gh issue viewmetadata capture;target/ripr/reports/issue-intake-<number>.jsonartifact.Still required for this issue
IssueAssessmentdispositions;Those remain owned by #1797 and its prerequisites. #1644 stays open; the landed adapter is input substrate, not an issue-readiness decision.
EffortlessSteven commentedon Jul 23, 2026
Relationship to retained current-state reconciliation
New program #2324 deliberately keeps this issue as the live GitHub premise authority rather than creating another scheduler.
Its retained/docs side is decomposed as:
The boundary should remain:
#2331 should consume the implemented #1644 packet/API or explicitly report
live_state_unavailable; it must not recreate a repository-local live-work scheduler.EffortlessSteven commentedon Aug 2, 2026
Earnest review (2026-08-02)
GitHub/issues: compile live issue intake packets + reconcile stale/duplicate/satisfied premises. Slice #1797 (IssueIntakePacket + typed IssueAssessment) is the execution.
Action: keep open; track via #1797. The premise-reconciliation is the high-value part of intake.
EffortlessSteven commentedon Aug 3, 2026
Deep re-review (2026-08-02)
STATUS: stale
EVIDENCE:
status/blocked-upstream. (Github issues: compile live issue intake packets + reconcile stale/duplicate/already-satisfied premises.)grep -rniE 'issue.intake|intake.packet|needs_evidence|qualified_one_pr' crates/ xtask/-> 0 hits; no intake-packet compiler or disposition vocabulary. Blocked-upstream on cargo-allow. #1733 owns the intake-disposition freeze; this is the consumer. Premise-reconciliation is genuinely useful but the tooling is upstream.PLAN QUALITY: good
ACTION: keep (depends on #1733 + cargo-allow unblock)
test(orch): freeze orchestration attempt receipts contract (#4925) (#…
feat(orch): issue intake migrates to selected-work basis (#1706)
feat(orch): migrate orchestration consumers to selected-work portfoli…