Repository navigation
Closed
Labels
codexA sage task handed to Codex: Codex builds and opens a PR; the sage reviews and merges
Description
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 consumedsage_create_tasktool 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 privatecheck()snapshot reader, with the pending guard inready()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-tasknative 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.
Metadata
Metadata
Assignees
Labels
codexA sage task handed to Codex: Codex builds and opens a PR; the sage reviews and merges
Activity