Skip to content

test(issue-lifecycle): define attempt extensions, dispositions, and scorecard projections #4929

Closed

Description

@EffortlessSteven

Parent/controller: #1650.
Replaces the schema/fixture/report portions of closed oversized slice #1803.
Depends on: #4925 and stable #1644–#1649 neutral contracts.
Sequence: ISSUE-D1 — define issue-lifecycle evidence as an extension of the base orchestration attempt, not a parallel task store.

One-PR objective

Define one versioned issue-lifecycle extension and deterministic report that references the #4925 attempt identity for shared context, execution, verification, and cleanup facts. Add an honest empty report and mechanics fixtures before any real issue is counted.

Required extension

Add the smallest equivalent of:

IssueLifecycleAttemptV1
IssueLifecycleCorpusV1
IssueLifecycleScorecardV1

Retain at least:

GitHub issue snapshot, comments/labels/assignees/milestone identity
current main, relevant PRs, portfolio, selected-work, and claim identities
initial information completeness and issue family
intake disposition and evidence references
spec-required decision and root disposition
proposal/spec/ADR draft, challenge, amendment, and acceptance identities
plan/work-item/dependency/acceptance-coverage identities
claim/collision/expiry/takeover events
PR/review/check/verification/current-main identities
progress mutation plan, before/after digest, and unchanged suppression
burn-down state, uncovered/contradicted/deferred rows
closeout state/reason and remaining limitations
base OrchestrationAttemptId and non-duplicated shared facts

Closed issue dispositions

Support at least:

needs_evidence
qualified_one_pr
qualified_spec_required
root_decision_required
duplicate
already_satisfied
superseded
blocked
partially_landed
verification_failed
merged_pending_closeout
completed
closed_not_planned
stale
not_run

Issue state is a projection over evidence. A label, comment, merge, or confident agent summary alone is not authority.

Required fixtures

  1. One-PR bug with no new spec.
  2. Public-contract issue requiring independent challenge.
  3. Architecture ambiguity returning root decision.
  4. Duplicate and already-satisfied cases.
  5. Overlapping open PR/claim blocking pickup.
  6. Needs-evidence issue.
  7. Partially landed umbrella with uncovered rows.
  8. Verification failed after merge candidate.
  9. Merged PR still pending current-head closeout.
  10. Stale issue/main/PR/receipt identity.
  11. Unchanged progress update suppressed.
  12. Closed-not-planned without implementation success.

Acceptance

  • Shared orchestration facts are referenced, not copied into a second attempt authority.
  • Issue snapshot, main, relevant PR, contract/plan, claim, proof, burn-down, and closeout identities are load-bearing.
  • Merge cannot imply completed closeout.
  • Duplicate/already-satisfied/needs-evidence/blocked/closed-not-planned remain first-class and do not count as implementation success.
  • Synthetic fixtures do not enter real issue denominators.
  • JSON and Markdown derive from one DTO and cannot strengthen state.
  • An honest empty report exists before the real pilots.

Proof

cargo test -p xtask issue_lifecycle_attempt -- --nocapture
cargo xtask issue-lifecycle-scorecard --captured <fixture>
cargo xtask check-output-contracts
cargo xtask check-static-language
cargo xtask check-local-context
cargo xtask check-generated-clean
cargo xtask precommit
git diff --check

Non-goals

No live GitHub mutation, issue selection, spec acceptance, source edit, PR, merge, closeout, priority ranking, or automation-default decision.

Claim boundary

Completion makes issue-to-closeout dogfood countable and auditable. It does not establish intake, planning, implementation, or closeout quality on a real issue.

Activity

  1. added
    status/needs-work
    on Sep 29, 2026
  2. EffortlessSteven commented on Oct 3, 2026

    @EffortlessSteven
    MemberAuthor

    Unblocked by #5154 (merged as 3fb4f16): the shared orchestration attempt authority now exists as RIPR-SPEC-0213. This slice should reference, not copy: OrchestrationAttemptV1 rows bind repository/source/selected-work/portfolio/base/head identity, task family, accepted contract, client and role configuration, planned/actual waves, packet/result/synthesis/overflow identities, claims with worktree/edit cage/resources, command denominators, independent verification with base/head/result binding, contradictions, rejected claims, changed-path boundary status, PR/review/CI/merge state, cleanup and residue, limitations and non-claims, plus a producer-recorded row_digest. One attempt observed through several roles stays one attempt via observation_key; the portable identity excludes each claim's worktree_root so equivalent roots remain one attempt; assess_orchestration_attempt is the fail-closed counting law (downgrades never upgrade: forbidden paths, contradictions, stale bindings, zero-subject or failed verification, non-matched comparisons, missing required overflow, rejected claims, cleanup residue); AttemptDispositionV1 (completed/partial/blocked/contradicted/verification_failed/stale/boundary_violation/instrument_failure/not_run) and AttemptStrategyV1 (single_agent/read_only_fanout/scouts_plus_adversary/builder_plus_verifier/validated_parallel_writers) are the closed vocabularies to reuse. Command: cargo xtask orchestration-scorecard --captured <corpus.json> projects the deterministic JSON/Markdown scorecard; the mechanics corpus is fixtures/orchestration_attempt_receipts/corpus.json (13 required scenarios).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/needs-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions