Task logs: State Store read contract and dashboard download #1374

Closed
opened 2026-10-27 13:40:08 +00:00 by sam · 0 comments
Owner

The dashboard's per-task log panel answers "No persisted log for this attempt / Task logging is optional and was not enabled for this run" for every attempt in a deployment where task logging is unconditional and the files exist. Cause: the extracted UI process composes no task-log reader (internal/app/archieui/compose.go lists TaskLogs as deliberately absent, "no contract exists for these yet"), so handleTaskLogs sees a nil registry and reports the disabled shape, which the SPA renders as a configuration claim.

Requirements:

  • Add a task-log read group to the State Store gRPC contract (ReadTaskLog, ReadTaskLogContent), wired server-side from the standalone state-store process only (internal/app/archied/state_store.go).
  • archie-ui consumes it; GET /api/tasks/{id}/logs keeps its existing JSON shape and gains an explicit found marker.
  • GET /api/tasks/{id}/logs/download serves the raw attempt log as a Content-Disposition attachment named task--attempt-.log.
  • The disabled copy stops blaming a setting: a process that cannot read logs and an attempt that has no log are different conditions and must read differently.
  • docs/prds/ui-service-boundary.md route table moves the log routes from unresolved to resolved.

Close reason

Landed via PR #848; GitHub #847 already closed.


Imported from beads archie-core-iaqx · GitHub #847 · type bug · priority P1 · created 2026-09-17 · closed 2026-09-17

The dashboard's per-task log panel answers "No persisted log for this attempt / Task logging is optional and was not enabled for this run" for every attempt in a deployment where task logging is unconditional and the files exist. Cause: the extracted UI process composes no task-log reader (internal/app/archieui/compose.go lists TaskLogs as deliberately absent, "no contract exists for these yet"), so handleTaskLogs sees a nil registry and reports the disabled shape, which the SPA renders as a configuration claim. Requirements: - Add a task-log read group to the State Store gRPC contract (ReadTaskLog, ReadTaskLogContent), wired server-side from the standalone state-store process only (internal/app/archied/state_store.go). - archie-ui consumes it; GET /api/tasks/{id}/logs keeps its existing JSON shape and gains an explicit found marker. - GET /api/tasks/{id}/logs/download serves the raw attempt log as a Content-Disposition attachment named task-<id>-attempt-<n>.log. - The disabled copy stops blaming a setting: a process that cannot read logs and an attempt that has no log are different conditions and must read differently. - docs/prds/ui-service-boundary.md route table moves the log routes from unresolved to resolved. ### Close reason Landed via PR #848; GitHub #847 already closed. --- _Imported from beads `archie-core-iaqx` · GitHub #847 · type bug · priority P1 · created 2026-09-17 · closed 2026-09-17_
sam added the highbug labels 2026-10-27 13:40:08 +00:00
sam self-assigned this 2026-10-27 13:40:08 +00:00
sam closed this issue 2026-10-27 13:40:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1374