Repository navigation
fix/issues/08 legacy run readers - #265
Merged
xiduzo merged 2 commits intoDec 2, 2026
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Test plan
Related