Skip to content

Create recorded tasks through the Codex chief tool (T56) #221

Closed

Description

@erickb336

Parent work: #88 and #138. Build after #220.

Let the Codex chief create one real Sage task through its native tool. Save an exact request receipt so a retry cannot create a duplicate task. Creation records work; it grants no dispatch or merge permission.

Scope:

  • Extract task-create.mjs:createNativeTask, the chief logbook authority helper and the consumed sage_create_task tool from integration.
  • Extract core createRequestedTask, task-frame calculation, task receipts and only the transaction support this route consumes. Keep CLI task creation on the same route calculation.
  • Protect partial writes and concurrent snapshot reads. Integration currently changes mergeCheck; Claude Lead honesty before step 4 (T289) #140 owns that function. Keep it untouched. Evaluate placing before/after pending and receipt-version checks around the existing private check() snapshot reader, with the pending guard in ready() before writes. This approach is not yet verified.
  • Preserve missing-table, redirected-logbook, partial-publication, concurrent-publication and exact-request recovery behavior. Never substitute only a pending-file check for the version check.

Acceptance:

  • The chief creates the expected real task and decision once. Identical retries return the original result, including after reconnect.
  • Foreign actors, changed requests and malformed inputs cannot write a task or receipt.
  • Interrupted writes recover only through the matching saved request; unrelated table changes remain intact.
  • New tests fail on detached current main at identified assertions. Build/check, full local tests and exact-head CI pass. Two independent code/security/QA cycles are clean.
  • A final-commit --sage-create-task native probe checks the real logbook, exact retry and cleanup. Label simulated responses and remaining real-model limits.

Exclude run creation, review acceptance, task transitions, installed activation and all Claude-active task-set/replan, mergeCheck, logbookView and verdict implementation changes. If the transaction design cannot preserve required behavior without those changes, record the concrete conflict before building further.

Design review conditions:

  • For this creation-only unit, the snapshot guard reads the task-receipt version before and after sheet() materializes tables. Both reads reject pending markers. Do not call check/ready/status/logbookView recursively from the guard.
  • Keep only generic recorded-write machinery and the task consumer; omit unconsumed review/run wrappers and tools. Retain compatible pending-marker naming.
  • Prove a fully published transaction between table reads is refused even after its pending marker disappears. Exercise both merge checks and logbookView through their existing snapshot path.
  • Preserve read-only aliases with canonical receipt paths; require canonical paths for writes.
  • Check the empty-logbook and missing-tasks fallback paths. A check() wrapper does not by itself prove every pending marker blocks every read; missing task data must never authorize a merge.
  • Cover each publication failure boundary, damaged intent/receipts, unrelated table edits, separate owner identities, changed-request refusal and deleted-task retries.

Activity

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