Skip to content

Publish authenticated Codex task updates with full transition recovery (T13) #253

Closed

Description

@erickb336

Sage task T13
Parent: #88. PR #140 is merged.

Outcome

Provide authenticated, versioned Codex task updates with durable recovery. Preserve current shared transition rules, including PR140 lead retirement. This is a prerequisite to the PR-wide ownership transaction in #239, not completion of that guarantee.

Required behavior

  • Fix project/logbook/owner from the native connection. Accept request UUID, task ID, version and canonical title/branch/PR/state changes only. Reject children and unknown roots.
  • Extract the current shared task-change calculation. Preserve CLI argument order and behavior; use a defined canonical order for native changes.
  • Publish tasks, retired lead runs and decisions as one validated recorded-write transaction. Do not reuse the old integration legacy writer.
  • Validate exact table effects before every recovery write. Exact retries return historical results without resetting newer state. Corruption and unrelated edits refuse before publication.
  • Include task-update receipts in stable reader checks.
  • Native readiness requires current branch head, configured cycles, answered gates, appropriate PR, no findings, and no running reviewers. Metadata edits cannot retain stale readiness.
  • Coordinate resume/replan/branch changes with admission through a durable task-scoped fence. A logbook-only snapshot cannot exclude concurrent preparation/binding. Keep terminal evidence ingestion possible; never infer child completion from metadata.
  • Keep merged state, direct repair state, gate answers and remote merges outside this API.

Sequence and proof

First close stale descendant authority after a lead is rebriefed in #252. Then implement the shared calculation, three-table writer, admission fence and native adapter as a coherent lifecycle change. The saved integration API is reference material only: it omits PR140 run retirement and current validated writer contracts.

Test table corruption and failures at every publication boundary; historical retries; CLI/native agreement; live-review readiness; concurrent reserve/bind; existing descendants and unbound continuations; root/child/foreign-root calls. Use detached-main regression proofs and supported native tools with simulated-response limits stated. Require build/check/full tests and two clean code/security/QA cycles.

Limits and ownership

Codex owns this work. Do not edit Claude-owned #119, #105 or #67. #243, #246 and required-hook failure handling remain separate blockers for installed automatic operation. No defaults change and no full-runtime completion claim follows from this component.

Activity

  1. added
    codex
    on Oct 16, 2026
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

    codex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions