Skip to content

Read authenticated Codex task snapshots (T61) #232

Closed

Description

@erickb336

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 readTaskSnapshot API 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.mjs provider adapter and the consumed sage_read_task MCP 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.

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