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. Build after #229 and the #138 closeout, from latest main. This is independent of Claude's active task-transition changes.
Let the authenticated Codex chief read one recorded task through sage_read_task. Return its exact task row and a stable SHA-256 token for task metadata only. This token is not evidence of current findings, runs, reviews, branch HEAD or merge permission.
Scope:
- Add the core
readTaskSnapshotAPI and its snapshot/token helpers. Require the exact own request properties project and task. Hold the existing logbook lock and reuse guarded readiness checks. - Add a separate
task-read.mjsprovider adapter and the consumedsage_read_taskMCP tool. The caller supplies only a task ID. - Reuse authenticated root ownership and fixed project/logbook configuration. Refuse children, unknown roots, unsupported runtimes and caller-selected paths. A saved owner can read while Sage is off.
- Refuse missing/duplicate IDs, corrupt tables, pending task/run/review writes and redirected receipt directories. Do not recover or change records during a read.
- Preserve all existing task/run/review snapshot checks. No change to Claude's active task-set, replan, mergeCheck, logbookView or CLI verdict bodies.
Acceptance:
- Test exact returned fields, repeat token stability, and token change after a supported metadata edit. Show that non-task evidence does not turn this token into a workflow authorization.
- Test actor/version/request/ID/configuration/path refusals and off-mode owner access.
- Test pending task/run/review publication, corrupt records and receipt aliases. Successful and refused reads preserve logical records, receipts and admission state; lock coordination files are allowed.
- Prove new tests on detached main, distinguishing absent API/tool failures from isolated behavioral mutation checks for authentication and pending-write guards.
- Add a standalone --sage-read-task native probe on the existing narrow fixture. Seed one clearly labelled task, perform two native MCP reads, compare rows/tokens and before/after state, and require normal exit and temporary-profile cleanup. No child or mutation tool is needed. Label responses simulated.
- Build/check, focused/full tests, exact-head CI and two clean independent code/security/QA cycles must pass. Fake process commands first on PATH for all tests/probes.
Exclude task mutation APIs, the older task-update transaction writer, board work, installed activation, full workflow permission and Claude-active functions. No product decision is currently identified.
Metadata
Metadata
Assignees
Labels
codexA sage task handed to Codex: Codex builds and opens a PR; the sage reviews and merges
Activity