Skip to content

fix/issues/08 legacy run readers - #265

Merged
xiduzo merged 2 commits into
fix/issues/07-wire-renamesfrom
fix/issues/08-legacy-run-readers
Dec 2, 2026
Merged

xiduzo merged 2 commits into
fix/issues/07-wire-renamesfrom
fix/issues/08-legacy-run-readers

Conversation

@xiduzo

@xiduzo xiduzo commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

Changes

Test plan

  • [ ]

Related

xiduzo and others added 2 commits December 2, 2026 00:56
…k for older clients

- cursor: red "the run list > refuses a cursor that names no last activity" (packages/api src/runs/router.test.ts) on the old schema; green with lastActivityAt required in the api input, in RunCursor and in the query, which no longer falls back to createdAt.

Closes #246

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: sander boer <mail@sanderboer.nl>
… shape go

Migration 20261201230029_run_current_shape counts the runs of an older shape,
copies the database to backups/ beside it, removes those runs with their steps,
sessions, events, commands, notifications, leases and checkpoints, and logs the
count. An older shape: no device_id, no name for that Device in device_names, a
row worktree without its WorktreeCreated event, a RunStarted or ItemStarted
without inputs, a StopRequested or RunResumed without by, or a step of an
Agent, a Call or a Decision that names no rung.

- migration: red "migration run_current_shape > removes each run of an older shape" (packages/db) on the current code; green with the migration, the count, the copy and the log.
- ladder: red "ladderOf, a step that names no rung" (4 cases) because olderRung guessed a rung; green with olderRung, laterSteps, firstLabel and the cascadeTry branch removed. The older-Walker tests go.
- needed-you: red "a person's stop counts, also when a restart follows it"; green with personStop reading only by and restart. StopRequested.by and RunResumed.by are required; the older-log test goes.
- run-views worktree: red "a row is no worktree"; green with the worktree read from WorktreeCreated only (the row gives only the base a waiting run asked for), awaitsWorktree(run), and deriveWorktrees without the row path. Recovery reads WorktreeCreated too.
- params: red TS2339 "Property 'params' does not exist" in read/run-views.ts once RunStarted lost params; green with deriveInputs reading inputs only. RunStarted.inputs is required.
- runDeviceId: one strict reader in log/run-row; planOf, deriveWorktrees, lastRunDevice, run-worktree and the run views use it; followWalkerMoves no longer fills device_id from the Walker.
- call-each: red TS2322 "InputValues | null is not assignable to InputValues" once ItemStarted.inputs is required; green with the open item read with its inputs only.
- plan name: PlannedDevice.name is a string; planOf refuses a run without the name of its Device; a step moved to a Device off the fallback list is reached by id.
- test fixtures write the current shape: a Device and its name on each run row, WorktreeCreated in the graph harness, inputs and by in the logs.

Closes #243
Refs #245
Refs #241
Refs #240

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: sander boer <mail@sanderboer.nl>
@xiduzo
xiduzo added this pull request to stack #270 December 2, 2026 09:17
@xiduzo
xiduzo marked this pull request as ready for review December 2, 2026 10:21
@xiduzo
xiduzo merged commit 9a4c99e into main Dec 2, 2026
24 checks passed
@xiduzo
xiduzo deleted the fix/issues/08-legacy-run-readers branch December 2, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant