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 #221 merges.
Let the Codex chief create a real Sage run through sage_create_run. An exact request retry returns the original result. Creation records work; it does not dispatch an agent or accept a review.
Scope:
- Extract the native run adapter and consumed tool from integration.
- Add core
createRequestedRun, run-request receipts and shared CLI/native run framing. Reuse the task-creation transaction support. - Preserve current CLI role, writer, lead-capacity and eligibility rules. Refuse new runs for held tasks. Keep exact historical retries valid after the run finishes or the task becomes held.
- Include run receipts in the guarded snapshot reader. Avoid Claude Lead honesty before step 4 (T289) #140's task-set/replan, mergeCheck, logbookView and verdict implementation.
Acceptance:
- Authenticate the chief and fixed logbook. Refuse changed requests, invalid fields, unauthenticated or child callers and missing tasks without writes.
- Distinct authenticated owners may reuse a request UUID independently.
- Verify CLI parity for role normalization, branch requirements, one writer per branch, one lead per task, project lead limit, investigation eligibility, and recorded model/round/candidate values.
- Historical retries preserve the original timestamp, model and result after configuration changes, without reopening or rewriting the current run.
- Serialize concurrent writers. Preserve one run and receipt across reconnect, publication interruption and exact retry.
- Retain pending-record preflight validation and refuse unrelated table edits during recovery. Supply a real run-specific validator to the shared transaction engine; do not add a no-op validator or copy the older integration transaction engine. Validate the saved run and exact intended table append before recovery publication.
- Prove new held-task requests create no run or receipt; historical retries return their original result.
- Start snapshot-race controls from a valid snapshot and prove concurrent publication causes refusal.
- Exact-commit native probe: create/retry task and run, prepare/dispatch one child, record its report, finish the run, then retry creation without reopening it. Check one task/run/reservation/binding/report/completion, zero accepted verdicts and unchanged framed task state.
- Build/check, full local suite and exact-head CI pass. Two independent code/security/QA cycles are clean. Compare new tests to detached post-task-creation main; separately demonstrate the held-task defect on integration 548ad4a.
Native responses remain simulated. Real-model choices, installed automatic operation, review acceptance and task transitions are excluded. No product decision is needed for this extraction.
Metadata
Metadata
Assignees
Labels
codexA sage task handed to Codex: Codex builds and opens a PR; the sage reviews and merges
Activity