Skip to content

ui-server: REST run detail returns lifecycleSeq without a lifecycle on a legacy store #4423

Open

Description

@schlessera

Part of #4278. Found in the sixth review of PR #4327, which introduced it.

Context

  • packages/ui-server/src/routes/activity.ts:259-262 reads legacySeq before the row, and falls back to it even when store.lifecycle(runId) finds nothing.
  • A cron run with only a span returned lifecycleSeq: 0 and no lifecycle.
  • docs/integration-contract/http.md:1271 describes lifecycleSeq as accompanying lifecycle.

Scope

Omit lifecycleSeq when no lifecycle is returned. Out of scope: the sequence-before-row read order.

Acceptance criteria

  • A run with no lifecycle on a store lacking both atomic readers returns neither lifecycle nor lifecycleSeq.
  • The prior-store terminal-replacement test still passes unchanged.
  • The new test fails when the guard is removed.

Activity

  1. added
    type: fix
    area: ui-server
    priority: p3
    agent-ready
    on Nov 21, 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

    agent-readyarea: ui-serverpriority: p3type: fix

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions