Skip to content

O08 Implement bounded retry and resume #109

Open

Description

@andrewperis

Approved backlog tracking only; unassigned. Execution requires separate authorization.

Parent: #101

Evidence reconciliation (2026-11-19 UTC)

Scoped implementation and review evidence recorded; broader acceptance remains open. Platform #74 records a scoped pass on the synthetic, no-context local-filesystem path, with bounded retry, reauthorization and recovery evidence. For ambiguous effects, “terminate” means stop automatic execution and further dispatch, leaving reconciliation open; it does not mean guessing an outcome. The proposal/test-harness notes below are historical, not the latest Platform evidence. No live-provider deduplication, generic exactly-once effect, or production durability is established. The scoped verdict did not formally unblock O09.

Proposed accountable owner

E

Dependencies and qualifying boundary

O05, O06, O07; H

Root means no additional task dependency after common execution/owner/access gates; it does not authorize immediate execution. Human decisions and passing verdicts are required where specified; closed state alone does not establish acceptance.

Deliverable and acceptance

Mock transient failures obey attempt limits; resume checks authority again and has no duplicate effects; unrecoverable cases terminate. Bound to one accepted adapter/effect boundary and a finite table of transient failure, exhausted attempts, authorized resume and denied resume fixtures; identify the supported idempotency/deduplication mechanism. No generic exactly-once claim across arbitrary providers.

Preliminary estimate

1–2 focused person-days, including focused tests and handoff.

Common scope and dispatch constraints

Target each execution task at 0.5–2 focused person-days, including its own focused tests and handoff notes. Each row has one reviewable outcome. Estimates are preliminary, not guarantees. Before execution, the owner checks the affected code/content and re-estimates; anything exceeding two days is narrowed or proposed as additional bounded tasks before starting. Discovery tasks finish with evidence and a decision, not an obligation to implement an unknown system. Do not split off mechanical tests or documentation into extra tickets. Before dispatch, record the target repository/files or content set, one bounded supported path, the finite fixture/output matrix, explicit exclusions, and the evidence needed for acceptance. The owner confirms the complete outcome, including focused tests and handoff, fits two focused person-days. If it does not, return a narrower scope or additional proposed issues before execution; do not begin an open-ended implementation under the original label.

All 44 start as unassigned GitHub backlog issues, with a proposed accountable owner below. Approval here creates tracking only. No Paperclip execution tasks or agent dispatch until execution is separately authorized. On dispatch, map dependencies to actual blocker IDs; human approvals must be recorded as explicit gates. Completion of a review task means a verdict exists; downstream work additionally requires a passing verdict or resolved findings. Parent links alone do not unblock work.

Owners: E = Studio Engineer; Q = Studio QA; S = Chief of Staff coordinating editorial/source/publisher decisions. Human creative, canon, private-source and publication authority remains with the relevant human owner. S can draft proposals and prepare decision packets but cannot grant those approvals. For independent Q tasks, findings are posted on the reviewer's own task and the verdict is the deliverable even when adverse.

Contract changes belong in Codex under its owner; runtime implementation belongs in Platform; Studio holds governance and tracking; Universe and Lore hold their respective content. Each issue identifies its target repository/artifact before execution. Each dispatched issue has one accountable owner; C07/C08 require an appointed art owner, C13 proposes andrewperis as the human publisher, subject to explicit acceptance/authority at C11, and C12 remains independent QA. This proposal makes no agent assignment or release authorization.

Common prerequisites: approved execution scope, accepted relevant contracts, authorized tools/data and an actual owner. “Root” means no additional task dependency after these gates. Root tasks produce distinct artifacts and can run in parallel. H = handoff/dependency boundary; P = parallel independent deliverable; R = independent review; G = governance boundary. These explain the splits in addition to the user's preference for smaller tasks.

Source: PER-5 accepted plan revision 6, revision ID 1a89d7f9-8449-4e9c-bb7b-e0e6d191b355. Approval covers backlog creation only. No new hiring, spending, private access, canon promotion or publication authority.

Epic completion boundary

O01, O02, O03, O04, O05, O06, O07, O08, O09, O10, O11, O12 complete synthetic orchestration core v1, not the full epic. Epic closure additionally requires C05 capability mapping, C08 actual assembly proof, C09 production outputs/build-result linkage and C10 passing independent verification, with all discovered integration tasks and applicable Manifest/Platform gates accepted. C09 depends on O12, not epic closure; this avoids a circular gate. No external-generation reproducibility claim follows from pinned-asset processing.

Platform evidence (2026-11-07)

On Platform main at f628877, O05/O06/O07 implementation evidence was rechecked before this bounded O08 slice. Draft PR #64 adds a deterministic finite-path test and documents the existing retry boundary: one same-process explicit retry only after the pinned rate-limit-before-acceptance proof, current authority checks, the original deadline, and a two-attempt maximum. It verifies a denied retry produces no second call, an authorized retry produces exactly one new call with a distinct per-attempt idempotency key, and restart recovery is read-only. The mock offers no cross-attempt deduplication; durable resume and generic exactly-once effects are unsupported. O08 remains open; this evidence does not satisfy any broader resume/dedup requirement.

Durable-resume contract gates (2026-11-07)

Draft Platform PR #65 contains a review-only proposal and finite synthetic test matrix. It recommends initially resuming only a persisted terminal first-attempt state with verified rate-limit-before-acceptance evidence; uncertain dispatch remains unresolved. Before runtime implementation, the contract owner must choose (1) restart-safe deadline and rollback semantics, (2) persistent-store integrity and atomic claim/ambiguous-commit guarantees, and (3) whether uncertain dispatch remains unsupported or needs a separate adapter-specific deduplication contract. PR #64's merged tests/docs establish only same-process retry. O08 remains open; O09 is not unblocked.

PR #65 technical refinements (2026-11-07)

Updated draft PR #65 to preserve both the original deadline and retry_not_before; use an injected synthetic time authority with an explicit domain/epoch; fail closed on unknown epoch/rollback; require transactional single-runner claim, immutable evidence and durable dispatch-intent markers; prohibit automatic lease takeover; quarantine ambiguous commits; and never automatically replay uncertain dispatch. Added crash-point fixtures for claim, dispatch marker, provider outcome, time bounds, authority, concurrent claim, corrupted evidence, and terminal recovery. Clarified that hashes do not authenticate a record if both record and digests are mutable; the storage trust boundary must be explicitly chosen. Proposal only; runtime contract gates and merge remain pending.

Retry window boundary correction

Updated draft PR #65 to state the inclusive/exclusive eligibility interval exactly: retry_not_before <= now < original_deadline, in the validated synthetic time domain. Before retry_not_before: wait, zero provider calls. At/after retry_not_before and before the original deadline: time-eligible subject to every other gate. At/after the original deadline: fail closed, zero provider calls. If retry_not_before >= original_deadline, no eligible interval exists. No deadline/backoff reset.

Test-only resume proposal harness (2026-11-07)

Platform PR #67 adds an in-memory test-only model for the proposal's time/authority, claim, crash, marker-ordering, and uncertain-dispatch cases. It is not wired to the runner and is not runtime conformance, durable storage, or O08 completion. Owner gates in PR #65 remain open; O09 remains blocked. Issue stays open.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions