Docs / Dashboard

Dashboard

On this page

Dashboard

This document describes the local sdlc dashboard: one web page on the developer’s own computer that shows the pipelines of every registered repo. The page is titled “sdlc signal room”. Every file path, setting, and security rule below was verified against source. For the user-facing command, run /sdlc:dashboard.

What it shows

The dashboard is one page at http://127.0.0.1:<port> (default http://127.0.0.1:7385) that lists every repo registered with the local server — not just the repo of the current session. A repo is registered the moment a Claude session starts in it (see How it works), and stays listed for up to 7 days without a new session, or until its .sdlc-v2 directory disappears (internal/dashboard/registry.go’s Roots self-cleans both cases).

The header has five tabs: Pipelines, Activity, History, Preplans, and Setup. A repo filter under the header applies to Pipelines, Activity, History, and Preplans. The Setup tab has its own repo bar (see Setup tab). With no repo chip on, the page shows all repos. The header also has a Clear cache button (see Clear cache files) and a Stop server button.

For each registered repo, the page shows:

  • Pipelines — one entry per ship, execute, or plan state file, plus one per runs/ledger/review-*/ folder, as one block in one feed for all repos. The feed has 5 groups in this order: waiting on you, running, failed, stalled, and completed. In each group, the newest start comes first. Only completed pipelines start collapsed. An execute run or review run of a ship run shows inside the ship block, not as its own block. Each carries a status (running, stalled, completed, or failed), a done/total progress count, a track of its steps, and any issues. A chip after the branch name shows the run duration. The time of a running pipeline increases each second. Each ship step and execute wave shows its duration under its name. A ship pipeline has plan times when a plan run is linked: from the ship state linkedPlan, else from the joined plan row of runs.jsonl (see How runs join a ship block). The rules:

    • Start and end — the plan step shows the plan time, and the run duration counts from the plan start.
    • Start only (no end, an end that is not RFC 3339, or an end before the start) — the plan step shows no plan time, but the run duration still counts from the plan start.
    • No linked plan, or no valid start — the duration counts from the ship start, and its tooltip says so. Standalone plan and review steps show no duration. Each step with detail is a tile: waves and tasks, review dimensions as cards in balanced columns, review findings, plan guardrails, plan explorers, plan review rounds, the review queue of a ship run, the fixes of the received-review step when the run has no review queue, the harden edits, run records and held proposals of a ship harden step, or the result of a commit step with nothing to commit. Each step tile lists its instructions, one row for each (see Which step carries which detail). A run with instructions that belong to no step has an end group after the last tile. Each issue has a severity, a location (the file and line of a review finding, else the step, wave, or task it came from), and a reason. The issues tile lists issues from critical to info and shows at most 2 lines of each text. A click on an issue opens the full text in the detail viewer. A completed, failed, or stalled pipeline has an archive icon at the left of its options, with the tooltip “Archive this run” (see Archive a run). A running pipeline whose state has not changed in 30 minutes shows as stalled, unless it waits for an answer or a permission. A waiting pipeline shows “WAITING ON YOU” and the wait time. The header shows a waiting count for all repos: waiting pipelines plus lone waits. The tab title starts with (N), where N is the number of waiting pipelines and lone waits in the repos of the repo filter. A lone wait is an open wait that no shown running pipeline owns (same session ID and branch). It shows as a card at the top of the feed. The Dismiss button is in the banner bar, right after the wait age. The card head shows the repo name right after the branch (see Dismiss a wait). The head of a pipeline with a wait keeps the repo name in its right group, and its banner bar has no Dismiss button. A completed or failed pipeline drops off the page 4 days after its last update. Ship and execute pipelines also carry the worktree path they ran in. Some read problems of a repo are warnings: an unread preplan folder or topic file, a topic file whose summary is not read, a Started line that does not parse, more than 100 topic files, an unread runs.jsonl or execute state for plan times, an unread attention folder, and more than 50 lone waits. A warning shows before the pipeline blocks as the line “Warning for <repo>: <text>”, and the archive of the runs of the repo still works. Any other read problem of a repo is repos[].error, which blocks the archive of every run of the repo (see Archive a run). The Preplans tab shows the same lines. See repos[].warnings in the Snapshot contract.
  • Session — a tile with the Claude Code session of the pipeline, else the newest session on the same branch. The collector builds each session from the repo’s evidence files, grouped by session ID, with prompt/command/MCP-call counts, a table of command groups (see Session command groups), and a timeline of its newest 50 events. The page loads the groups and the timeline when the user opens the tile (see Detail on open). A session’s timeline text is redacted and truncated to 120 characters before it reaches the page. A session shows as “active” when its newest evidence line is less than 30 minutes old.

  • Activity tab — the repo’s open deferred issues, high priority first, the entries of its learnings log dated within the last 24 hours, and a Preplans box. The box has one row for each topic file that the Preplans tab lists: the newest 100 files of each repo, and older files add a warning. A file with an unreadable head has no row, and so has a file that went away during the snapshot. A row shows the topic, status, change date, repo name, goal, proposal counts, last check date, open question count, empty sections, and smallest cut. A part whose name is in unread (see repos[].preplans[]) shows a label in place of its value:

    unread name Label
    goal goal unreadable
    proposals proposals unreadable
    lastCheck check unreadable
    openQuestions open questions unreadable
    gaps gaps unreadable
    smallestCut cut unreadable

    A row with an empty goal shows No goal yet. A topic file with no check line shows not checked. A deferred or learning row shows the first 200 characters of its text. A click on a deferred or learning row opens the full item in the detail viewer. Priority chips (all, high, medium, low) with counts filter the deferred items. Each deferred and learning row has a bin icon (see Delete an item). A row of the Preplans box is read only: the status menu and the bin icon stay on the Preplans tab. See repos[].preplans[] in the Snapshot contract.

  • History tab — the 50 newest runs of runs.jsonl, newest first, failed ship runs too. Each row shows the outcome, kind, branch, repo, finish time, plan time, ship time and total time. Outcome chips with counts filter the rows. The finished, plan, ship and total headers sort the rows. The first click sorts newest or longest first, and the next click turns the order. A row with no value goes last. A reload resets the chips and the sort. Each row has a checkbox, and Delete selected removes the checked rows (see Delete History rows).

  • Preplans tab — the newest 100 preplan topic files of each repo, newest first, with status, topic, path, repo, change time, and duration. Status chips with counts filter the rows: all, in progress, ready for plan, paused, and unknown (any other status). The status of a row is a menu that sets the status of the topic file (see Change a preplan status). Each row has a bin icon (see Delete an item). The repo, updated and duration headers sort the rows, like the headers of the History tab. The first click on repo sorts A to Z. The first click on updated or duration sorts the largest value first. The next click turns the order. The sorted header has aria-sort, and the focus stays on it after the redraw. With no click the rows stay newest first. The duration cell shows the time from the **Started:** line to the last change, for example 1h 20m. A status change or any other edit of the file is a change, so the duration grows with each one. It is not the time spent on the topic. A row with no duration shows — and goes last in both duration orders. See durationMs in the Snapshot contract.

  • Setup tab — one form for the config of one repo. The form shows each option of the plugin with its value, and it saves the changed values into the config files of the repo. The count on the tab is the number of unsaved changes. The tab has its own section: see Setup tab.

A link #<pipeline id> scrolls to that block. #<pipeline id>/<n> also opens the block and selects step n of its track, counted from 0. #activity, #history, #preplans and #setup open that tab.

The page updates itself: it opens a server-sent-events stream (GET /api/events). One shared loop collects the snapshot every 2 seconds while at least one page is connected. It sends a new snapshot only when its content changed. A hidden page closes the stream, and the loop stops when no page is connected.

Session command groups

The session tile has a table of command groups. It shows which programs the session ran most. A session with no command has no table.

  • The groups count every command of the session. The timeline keeps only the newest 50 events, but the groups do not.

  • The collector splits a command at |, &&, ||, and ;. It does not split inside single or double quotes. Only the first line that is not blank and not a comment counts, so the body of a heredoc is not read as a command.

  • In each part of the command, the words VAR=x and sudo are skipped. The next word is the program.

  • A group label comes from the programs of the command:

    Programs in the command Label Example command Label of the example
    1 or 2 The first program git add . && git commit git
    3 or more All programs, as a + b + c cat a | grep x | wc -l cat + grep + wc
    None (empty text, or only VAR=x) (other) FOO=1 (other)
  • The share of a group is the number of its commands divided by the number of all commands of the session. It is rounded to 2 decimals. The page shows it as a percent.

  • The largest group has the majority mark. When two groups have the same count, the group with the newest command is the largest. The page lists the largest group first.

The program names go through the same redaction as the timeline text.

Start and stop

How to start Effect
/sdlc:dashboard Starts the server if it is not active, then opens the page: in the default browser, or in a T3 preview tab in a T3 Code thread
autoStart = true in [dashboard] of ~/.sdlc/local.toml Each session start starts the server and prints the address
Default address http://127.0.0.1:7385
Another program uses port 7385 Set port = <1024-65535> in [dashboard] of ~/.sdlc/local.toml. The next ensure stops the old server and starts the server on the new port.
How to stop Effect
Stop server button on the page, then confirm The server stops within 2s. Use it when no Claude session is open to run the skill.
/sdlc:dashboard --stop The server stops within 2s
Nothing The server keeps running. It has no idle stop.

On macOS and Linux the server sets the nice value 10 on its process group at start when it leads that group. The detached start always leads its group. Another serve start gets nice 10 only when it leads its group. When the system refuses the change, the server writes one line to stderr and the start goes on.

The server runs only on macOS and Linux (internal/dashboard/control.go’s ErrUnsupported): a detached process start on any other OS fails outright, and there is no fallback mode.

“Within 2s” is two different internal bounds that both resolve inside that window: a button click or --stop sends SIGTERM and then polls the health endpoint for up to 2 seconds (stopPolls in control.go) waiting for the port to stop answering, while the server’s own graceful shutdown after POST /api/stop allows at most 1 second (shutdownTimeout in internal/dashboard/web/server.go) before it force-closes every connection.

Detail viewer

A list row shows a short text. The detail viewer shows the full item in a dialog. Four kinds of row open it:

Row Where What the viewer shows
Deferred item Activity tab The description, and the Created, Source, Severity, File, Line, and Reason of the item
Learning Activity tab The Date, and the text of the learning
Issue Issues tile of a pipeline The text, and the Source, Severity, File, Line, and Ref of the issue
Finding Review step of a pipeline, for each dimension The text, and the Pipeline, Dimension, and Severity of the finding
  • The viewer leaves out a field with no value.
  • The snapshot holds only the heading of a learning. The page reads the text with GET /api/learning when the row opens. The server redacts the text and cuts it at 8000 characters. A cut text ends with …. When the log has no such entry any more, the viewer shows “The body of this learning was not found.”
  • Close the viewer with the close icon at its top left or the Esc key. The focus goes back to the row that opened it, or to the Activity tab when that row is gone.
  • The viewer follows the snapshot. When the item leaves the snapshot, for example because someone resolved the deferred item, the viewer shows “This item is no longer open.”

Detail on open

The page snapshot has no step detail and no issue list for a completed or failed run. It has no timeline and no command groups for a session. The page loads these parts when the user opens the run or the session tile.

Route Query Returns Token
GET /api/run-detail repo, id full steps and issues of one run no
GET /api/session-detail repo, id timeline and command groups of one session no
  • A failed run starts expanded, so the page loads its detail while the Pipelines tab is active. A completed run starts collapsed, so the page loads its detail when the user expands it.
  • The server collects the repo again for each call, so the answer is as new as a snapshot taken now.
  • repo and id are required. id is at most 256 bytes and repo is at most 4096 bytes. A missing value, or a longer value, gets 400 with the code BAD_REQUEST. See the error table in Security.
  • A good answer is 200. The run answer is {"found","id","steps","issues"}. The session answer is {"found","id","timeline","commandGroups"}.
  • A run or a session that the server does not show gives found: false and empty lists, not an error. For example, a finished run older than 4 days is not shown.
  • For found: false the page shows “This run is no longer on disk.” or “This session is no longer on disk.” The page keeps this answer under the key <repo>|<id>|<updatedAt> for a run and <repo>|<id>|<lastSeen> for a session. It does not send the request again until the run or the session changes.
  • For an error answer with the body {"error":{"message"}}, the page shows that message. For any other failed answer, it shows “The detail cannot be loaded (HTTP N).”. Examples are a network failure (N is 0), a plain-text 403 of the Host check, a 405, and a body with no message. After an error, the next open of the part sends the request again.
  • A read failure gives 500 with the code DETAIL_READ_FAILED, and the message and suggestion of the failure. A session detail also fails when an evidence file of the repo cannot be read, so that an unreadable file does not show as a gone session.

Archive a run

Archive takes a run off the page and keeps its files. It moves them to <repo>/.sdlc-v2/run-archive/<runId>/. Use it for a run that you do not need any more, such as a stalled run that will not resume.

Archive asks for a confirm before it changes a file. The dialog shows the question “Archive run <runId>?”.

Status of the row Archive icon Confirm steps Result
running None None The server refuses with RUN_ACTIVE
stalled Shown 2: the second asks “The run stalled. Archive removes its resume point.” Archived after the second confirm
completed, failed Shown 1 Archived after the confirm

The server decides from the status of a fresh collect. It does not trust the status that the page sends. A stalled run needs confirmStalled: true in the request.

What Archive does:

  • Only a top-level pipeline row can be archived. A run nested in a ship block, such as its execute run or its review run, has no archive icon. It moves with its ship.
  • A completed or failed run is a row for 4 days after its last update. After that the run is not a row, and its id returns RUN_NOT_FOUND.
  • Archive moves the files that hold results. It deletes the working folders. Archive does not move them.
Row Moved into the archive folder Deleted
ship-… The ship state file, the report of the ship run, and for the nested execute run its state file, its ledger folder, and its report. The ledger folder of a nested review run. runs/<id>/, the working folder of the nested execute run
execute-… The state file, the ledger folder, and the report runs/<id>/, the working folder of the run
plan-… The state file, and brief.md of its evidence folder (it lands in evidence/brief.md) The evidence folder runs/<plan state>.evidence/
review-<ts> The ledger folder of the review run None

A path keeps its form below .sdlc-v2/ in the archive folder, without the leading runs/. For example:

Before: runs/ship-x-1.json
        runs/execute-x-2.json
        runs/20261008T120000/                      (working folder, execute run)
        runs/ledger/20261008T120000/
        reports/ship-20261008T110000-report.md
After:  run-archive/ship-x-1/ship-x-1.json
        run-archive/ship-x-1/execute-x-2.json
        run-archive/ship-x-1/ledger/20261008T120000/
        run-archive/ship-x-1/reports/ship-20261008T110000-report.md
        run-archive/ship-x-1/archive.json
        runs/20261008T120000/ is deleted

The file archive.json records the archive: runId, archivedAt (UTC), moved, and deleted. The last two are lists of paths below .sdlc-v2/. They are [] when empty. moved does not list the last move, because that move happens after archive.json is written. The last move is the state file of the run, or the ledger folder of a review run.

The state file moves last. When a move fails, the state file stays in runs/, so the run stays on the page. Fix the cause and archive the run again. The second try handles the files that are still in place.

No sdlc tool reads or deletes run-archive/. A linked worktree shares it with the main worktree, like runs/. Delete a folder by hand when you do not need it. Clear cache keeps it.

Archive stops at a link that points nowhere. Such a link occurs when .sdlc-v2/run-archive of a linked worktree or of the main worktree is a link to the path of a deleted worktree.

The server answers 200 with {"runId","dir","moved","deleted"}. An error answer has one of five codes:

Code HTTP status Cause What to do
BAD_RUN_ID 400 The id is not a bare run name. It has a path part, or it does not start with ship-, execute-, plan-, or review-. Send the id of a pipeline row.
RUN_NOT_FOUND 404 No pipeline row has this id, or the run has no file on disk. A nested run and a finished run older than 4 days are not rows. Reload the page. The run is gone.
RUN_ACTIVE 409 The row has the status running. Wait until the run ends or stalls.
CONFIRM_STALLED 409 The row is stalled, and the request has no confirmStalled: true. Confirm. Archive removes the resume point.
ARCHIVE_FAILED 500 A read, a move, or a delete failed. An unexpected error gets this code too. Read the message. If the message names a link that points nowhere, do the recovery in the message. See Linked worktrees. Otherwise, fix the permission of the named file, then archive again.

The page shows the message of the error. The other errors of the route are in Security.

Clear cache files

The Clear cache button in the header deletes cache data that the plugin can build again. It asks one confirm: “Clear cache files?”. The dialog does not list the files, so read this table before you click.

Class What Clear does Only when
evidence-rotations Deletes <repo>/.sdlc-v2/evidence/*.jsonl.1 The file did not change for more than 30 minutes
temp-dirs Deletes the sdlc-* folders of .sdlc-v2/scratch/ of the repo, except sdlc-explore-* The folder did not change for more than 24 hours
orphan-reports Deletes the files of <repo>/.sdlc-v2/reports/ The run id in the file name matches no ship or execute state in runs/
server-log Cuts ~/.sdlc-cache/dashboard/server.log to 0 bytes. It does not delete the file. Always, when the file is not empty

Details of each class:

  • evidence-rotations — A writer renames an evidence file to .jsonl.1 when the file reaches 5 MiB. Clear never touches the live .jsonl file. A rewrite of a live file would lose lines that another process adds at the same time.
  • temp-dirs — Tools such as review, harden, error-report, and the OpenSpec stage check create these folders in .sdlc-v2/scratch/ of the repo. The sdlc-explore-* folders stay, because the state gc sweep owns them.
  • orphan-reports — A report name is ship-<id>-report.md, ship-<id>-report.json, <id>-report.md, or <id>-report.json. The <id> is the run id of a ship or execute state. Clear keeps a file with any other name. When Clear cannot read every state file in runs/, it deletes no report.
  • server-log — The running server keeps the log open for append, so a new line goes to the new end of the file.

Clear keeps these data: history/ (with deferred.json), learnings/ (with log.md), preplan/, timings.json, runs/, run-archive/, the live evidence files, and ~/.sdlc-cache/bin. Only Delete an item, Change a preplan status, and Delete History rows change deferred.json, log.md, runs.jsonl, and the topic files of preplan/.

The button clears every repo that the page lists, one after another. The repo filter does not change this. evidence-rotations, orphan-reports and temp-dirs belong to one repo. server-log is global, so the first repo clears it and the next repos find it empty.

The page shows the freed size, for example “Freed 2.0 MB.”, and one line for each repo whose request failed. It does not show the list of kept files.

The server answers 200 with freedBytes, a classes list, and a skipped list. Each class has name, files, and bytes. A class with nothing to clear shows files: 0. A skipped row has a path and a reason. Clear continues after a skipped row. The reasons are:

Reason Meaning
Changed less than 30 minutes ago Clear kept a rotated evidence file that is too new
Changed less than 24 hours ago Clear kept a temp folder that is too new
Report name has no run id Clear kept a report with an unknown name
Not a regular file Clear kept a server log path that is not a regular file
Read failed: <error> Clear could not read the path, so it kept the path
Delete failed: <error> Clear could not delete the path
Truncate failed: <error> Clear could not cut the server log

Only a failed read of the repo folder fails the request. The answer is 500 with the code CLEAR_FAILED.

Delete an item

A bin icon deletes one item for good. Three kinds of row have it: a topic file on the Preplans tab, and a deferred item and a learning on the Activity tab. A row with an empty key has no bin icon: a topic file row with an empty slug, a deferred row with an empty id, and a learning row with an empty date or heading. The page has no undo and no trash. Use Archive a run for a pipeline run.

Row Bin tooltip Delete removes The page sends The match
Preplan topic file “Delete this preplan and its topic file” The file <repo>/.sdlc-v2/preplan/<slug>.md slug The file name without .md
Deferred item “Delete this deferred item for good” The item from <repo>/.sdlc-v2/history/deferred.json id The first item with this id, whatever its status
Learning “Delete this learning for good” The entry from <repo>/.sdlc-v2/learnings/log.md date and heading The newest entry with this date and heading

A delete is not a resolve. A deferred item that Delete removes is not marked resolved. It is gone from deferred.json.

Delete asks one confirm before it changes a file. The dialog asks one of these questions:

Delete preplan "<topic>"?
This deletes the topic file: .sdlc-v2/preplan/<slug>.md
You cannot undo this.

Delete deferred item <id>?
This removes the item for good. It is not resolved, it is gone.
You cannot undo this.

Delete learning "<heading>"?
This removes the entry from the learnings log for good.
You cannot undo this.

A topic file with the status in progress adds a fourth line: “A preplan session can still use this topic file.” Any status can be deleted. The <topic> is the topic of the row, else the slug.

What Delete does:

  • Key check — The delete function of the server checks the key. The route does not. An empty slug, id, date, or heading gets BAD_REQUEST, and the message names the empty field.
  • Preplan — The slug is a file name without .md. It has no path separator, it is not . or .., and it does not end in .md. A slug that breaks these rules gets BAD_REQUEST, and the message names the slug and the rule. A folder in the place of the topic file gets BAD_REQUEST too: the server does not remove a folder. A symbolic link is removed as a link, and its target stays.
  • Deferred item and learning — The server reads the whole store file and writes it again without the item. It writes a temp file first. Then it renames the temp file over the store file. A reader sees the old file or the new file, never a half-written file. The new file has the mode 0600.
  • Learning — A learning has no id. The date must be YYYY-MM-DD, else the answer is BAD_REQUEST. The heading is the text that the snapshot sends. When two entries have the same date and heading, Delete removes the newest one. The viewer opens the same entry, because both use one finder.
  • Size limit — A deferred.json or log.md of more than 8 MiB gets DELETE_FAILED. The message names the file size and the limit, and the file keeps its bytes.

The server answers 200 with {"deleted","alreadyGone","message"}. deleted is true when this request removed the item. alreadyGone is true when no item matched, for example because another session removed it first. This is a success, not an error. The message tells the cases apart: an empty or absent store file (“The deferred store has no items. …”), or a store with no matching item (“No deferred item has the id …”). A file that goes away between the size check and the read also gives alreadyGone. The row leaves the page with the next snapshot.

An error keeps the row. The dialog shows the message and the suggestion of the error. The other errors of the routes are in Security. An error of the delete itself has one of two codes:

Code HTTP status Cause What to do
BAD_REQUEST 400 A field is missing. Or the slug is not a file name. Or the path of the topic file is a folder. Reload the page. If a folder holds the path, remove the folder by hand.
DELETE_FAILED 500 A read, a write, or a remove failed. Or deferred.json or the learnings log is larger than 8 MiB. Or deferred.json is not valid JSON. Read the suggestion in the message. It names the permission to check, or the file to edit by hand.

The dashboard and the MCP server can both rewrite deferred.json and the learnings log. No lock exists. An entry that a session appends during a delete can be lost. The read-to-rename window is short.

The dashboard does not edit a deferred.json or a learnings log larger than 8 MiB. The delete answers with an error and a suggestion.

Change a preplan status, delete History rows, dismiss a wait

Three more controls change a file on disk. The page has no undo for any of them.

Control Where Question before the change Route The server changes
Status menu Each row of the Preplans tab None POST /api/preplan-status The **Status:** line of <repo>/.sdlc-v2/preplan/<slug>.md
Delete selected The History tab One confirm POST /api/history-delete The matching lines of <repo>/.sdlc-v2/history/runs.jsonl
Dismiss The banner bar of the card of a lone wait, at the top of the feed None POST /api/wait-dismiss One wait record in <repo>/.sdlc-v2/evidence/attention/

Change a preplan status

The status of a Preplans row is a menu with the tooltip “Change the status of this preplan”. The menu lists in progress, ready for plan, and paused. A topic file with any other status shows a disabled unknown entry, so the menu still shows the real value. A choice sends one request and asks no question. The row shows the new status with the next snapshot.

What the server does:

  • Slug and status check — The slug follows the same rules as the slug of a preplan delete. The status must be one of the three values above. Any other value gets BAD_REQUEST, and the message lists the values.
  • Rewrite — The server finds the first **Status:** line in the first 4 KiB of the topic file. It replaces this line only. Every other byte of the file stays the same, and a line that ends in CR LF keeps its CR. The server writes a temp file first. Then it renames the temp file over the topic file. The new file has the mode 0600.
  • Same status — When the file already has the status, the server writes nothing. The answer is 200 with changed set to false.
  • Topic file that the server does not rewrite — A missing file, a folder, and a symbolic link get BAD_REQUEST. The server does not follow a link. A file with no **Status:** line in its first 4 KiB, and a file larger than 8 MiB, get DELETE_FAILED.

The server answers 200 with {"changed","status","message"}. changed is true when this request rewrote the line. No lock exists: the preplan skill can write the same file, and the last write wins.

On an error, the dialog shows the message and the suggestion, with a Close button. The menu goes back to the status of the last snapshot.

Delete History rows

Each row of the History tab has a checkbox. The checkbox in the header selects every row that the outcome chips show. The tab shows “Select rows to delete them” until a row is checked, then the count of checked rows. The Delete selected button is off while no row is checked.

Delete selected asks one confirm before it changes the file. The dialog asks:

Delete <N> runs from the history?
This removes the rows from .sdlc-v2/history/runs.jsonl for good. The History tab and the run times lose them.

For one row, the first line is “Delete 1 run from the history?”. The plan time of a ship row with no stored plan fields comes from a plan row of the same branch. The collector computes it, so it is not stored in the ship row (see planPaired in the Snapshot contract). When a checked plan row gives its plan time to a ship row that is not checked, the dialog adds a last line: “1 ship row loses its plan time.” or ” ship rows lose their plan time.”

What the page and the server do:

  • Requests — The page sends one request for each repo of the checked rows, one after another. The first request that fails stops the rest. The dialog then names the repos that were already deleted, and the error.
  • Key — A row key is {kind, branch, endedAt}. kind is the skill of the line of runs.jsonl. endedAt is the ts text of the line, exactly as stored. branch can be empty. A key removes every line that matches all three fields.
  • Key check — The server refuses an empty list, more than 50 keys, a key with an empty kind or endedAt, two equal keys, and a key that matches no line. It answers BAD_REQUEST, and it deletes nothing. The History tab shows at most 50 rows for each repo, so the page cannot send more than 50 keys.
  • Rewrite — The server reads runs.jsonl twice. It writes only when both reads are equal, and it tries again once when they differ. After two tries that differ, the answer is DELETE_FAILED and the file keeps its bytes. Every line that stays keeps its bytes, a line that does not parse included. The server writes a temp file first, then renames it over runs.jsonl. The new file has the mode 0600.
  • Size limit — A runs.jsonl of more than 8 MiB gets DELETE_FAILED.

The server answers 200 with {"deleted","alreadyGone","message"}:

Field Value in a 200 answer
deleted Always true. The request removed every line that the keys match.
alreadyGone Always false. A key that matches no line is an error (BAD_REQUEST), not a success, so this field never means “already gone” here.
message “Deleted History rows.”, or “Deleted 1 History row.” for one row. <N> counts the removed lines, so it can be larger than the count of keys.

No lock exists. A session that appends a run between the second read and the rename can lose that run.

Dismiss a wait

An open wait that no shown running pipeline owns (same session ID and branch) shows as a card at the top of the feed. The banner bar of the card has a Dismiss button with the tooltip “Remove this wait from the dashboard”. The button is the last element of the bar, right after the wait age. The card head has no Dismiss button. The head shows the repo name right after the branch. The click asks no question and sends one request. The card leaves the page with the next snapshot.

Dismiss removes the record of the wait, and nothing else:

Wait kind The page sends The server removes
question kind, sessionId, toolUseId <sessionId>-<toolUseId>.json
permission kind, sessionId <sessionId>-permission.json

The files are in <repo>/.sdlc-v2/evidence/attention/. Other records of the same session stay. Dismiss does not answer the question or the permission prompt in the session. The server refuses a kind that is not question or permission, an empty sessionId, a question with no toolUseId, and a permission with a toolUseId. It answers BAD_REQUEST.

The server answers 200 with {"deleted","alreadyGone","message"}. The message is “The wait is dismissed.”, or “The wait is already gone.” when another session or a hook removed the record first. The second case is a success, not an error.

On an error, the dialog shows the message and the suggestion, and the card stays.

Errors of these three controls

An error leaves the row or the card on the page, and the menu goes back to the status of the last snapshot. After a failed History delete, the checkboxes of the History tab clear. The dialog shows the message and the suggestion of the error, with a Close button. The page shows “The request did not reach the dashboard. Check that it runs, then retry.” when the server does not answer. The other errors of the routes are in Security. An error of the change itself has one of two codes:

Code HTTP status Cause What to do
BAD_REQUEST 400 A field is missing or breaks the rules above. Or the topic file, the History file, or a History line is gone. Reload the page, then try again.
DELETE_FAILED 500 A read, a write, or a remove failed. Or a file is larger than 8 MiB. Or a topic file has no **Status:** line in its first 4 KiB. Or runs.jsonl changed during two tries. Read the suggestion in the message. It names the permission to check, or the file to edit by hand.

Setup tab

For the order of the setup steps on a fresh repo, see Getting started.

The Setup tab shows and changes the config of one repo. It is the form version of /sdlc:setup. The tab writes with the same code as the setup_write_sections tool. It keeps every comment line and the key order of the file.

Three limits apply to the tab:

  • The dashboard server reads and writes only the main worktree of a repo. It never writes to a linked worktree.
  • The tab does not lock the config. A save while a pipeline runs is possible, and the next steps of the pipeline read the new config.
  • The page has no undo. To go back, set the old value again. This does not delete a CI script file that a save created, and it does not restore a key that a save removed from .sdlc-v2/local.toml. See Save.

What the form shows

  • Repo bar. The tab has its own repo bar. It selects exactly one repo. The repo filter of the other tabs is hidden here. The count on the tab is the number of unsaved changes of the selected repo. A snapshot event does not build the form again while the list of repos stays the same. It updates only the pipeline notice. A value that you typed and the focus stay.
  • Form sections. The form has 10 cards, one for each form section, with 48 fields in all. Each card shows the file that holds its values and whether that file is in git. The page builds the form from the field list of GET /api/setup-fields. A new option in the field list gets a field with no change of the page.
  • Fields. A field shows its label, its description, its default, and the file that holds its current value. A field with a list of options shows one row for each option with its effect on the plugin. A choice field can also show a sample text before and after the selected option.
  • Hidden step fields. A field of one pipeline step is hidden when that step is off in the ship.steps field of the form. The card shows how many fields are hidden and for which steps.
  • Index, filter and views. An index lists the sections. A filter limits the fields by text. The views All, Changed and Not set limit the fields.
  • File chips. The group FILE limits the fields by the file that holds their value. The chips are Any file, config.toml, local.toml, ~/.sdlc/local.toml, Default and Other files. Default shows the fields that no file sets. Other files shows the sections that live outside the config, for example the review dimensions and the templates. Each chip shows a count. The counts of the two local.toml chips include a value that another file overrides, and Any file counts that field one time. So the counts of the chips add up to Any file only when no field is set in two files. A guardrail section counts as one item of config.toml, or of Default when its list is empty.
  • Override lines. When more than one file sets a field, the field shows one line under the shown value for each other file. The line holds the file, its value and the reason: overridden by <file>, or same value · overridden by <file> when both values are equal. A field of the type flag-set, for example ship.steps, shows merged with <file>, because the runtime merges these tables key by key. The values come from the layers field of GET /api/setup-state.
  • Guardrail sections. The cards plan-guardrails and execution-guardrails list and edit the guardrails. See Guardrail sections.
  • Pipeline notice. When a pipeline of the selected repo has the status running, the notice PIPELINE RUNS shows above the form and in the review dialog. The save stays possible.

GET /api/setup-state?repo=<root> gives the values of the repo. Each value names its source file: config, project or user. When both .sdlc-v2/local.toml and the user file hold a key, the source is project. When the config check of the whole config fails, the state stays ready and configError holds the error text. An empty [version] table gives this notice too. Set tag.enabled or versionFile.enabled again to clear it.

The answer also has two fields for the file chips and the guardrail sections:

Field Meaning
layers Maps <section id>.<field> to the value of each file that sets the field: {"config": …, "project": …, "user": …}. It includes a value that another file overrides. values stays the winning value.
guardrails Maps plan.guardrails and execute.guardrails to the guardrails of config.toml, sorted by id. Each entry is {id, severity, description}. A list with no guardrail is []. Both lists are [] when the state is not ready. See the table below for the other cases.

How the guardrails lists read each value of config.toml:

Value in config.toml Entry in the list
No severity, or a severity that is not text severity is error
No description, or a description that is not text description is ""
A list in array form ([[plan.guardrails]] or guardrails = [...]) One entry for each table with a text id, in id order. Two tables with the same id give two entries
An entry that is not a table, or an array entry with no text id No entry

A value that is present and not text, and a skipped entry, each add one sentence to configError. The sentence names the file, the path and the id or the entry number.

delegated still lists the two guardrail sections with their count.

Guardrail sections

A guardrail is a rule that the plan and execute steps check. It has an id, a severity (error or warning) and a description. The team file .sdlc-v2/config.toml holds the guardrails, one table for each guardrail: [plan.guardrails.<id>] and [execute.guardrails.<id>]. The card plan-guardrails edits the first list. The card execution-guardrails edits the second list.

  • Each list starts closed. It shows the guardrails sorted by id, not in file order, because the file form has no order. The chips All, Error and Warning limit the list and show a count.
  • + Add guardrail adds a row with an empty id. A row can change its severity and its description. The trash button removes a guardrail, and the same button restores it before you save.
  • The page checks each row before the save. The id is in kebab-case, for example no-ci-bypass, and it is unique in its list. The description has 1 to 1024 bytes. A row with an error blocks the save.
  • A row that you remove and add again with the same id is one change.
  • The review dialog lists each guardrail change under config.toml.
  • To get proposals from a scan of the code, run the command that the card shows: /sdlc:setup --only plan-guardrails or /sdlc:setup --only execution-guardrails.

A list that config.toml holds as an array ([[plan.guardrails]] or guardrails = [...]) shows its entries, but a save with a change of that list fails. See Save. Change the list to [plan.guardrails.<id>] tables in the file by hand, then reload the page. The page does not convert the list.

Save

  1. Change one or more fields. The save bar shows the count of unsaved changes for each file.
  2. Select Review and save. A dialog lists each change as the old value and the new value, grouped by file.
  3. Select Save. The page sends POST /api/setup-save with the changed fields only. The save writes the user file first and the project file second.

The body of the save is:

Field Type Meaning Example
repo string The repo root /repo
changes[].section string The form section id plan-tasks
changes[].field string The field name. It may be dotted. tag.enabled
changes[].op string set or reset set
changes[].value any A JSON value. reset takes none. "minor"
targets object Local form section id to project or user {"ship":"project"}
guardrails object Optional. Guardrail section id (plan-guardrails or execution-guardrails) to a list of guardrail changes. See Guardrail changes. {"plan-guardrails":[{"id":"dry","op":"remove"}]}

The server builds each complete section from its target file, keeps every key that the request does not name, and writes through the setup write code.

A save has two lists of changes. The table gives the result for each pair:

changes guardrails Result
Empty or absent Empty or absent Refused: changes and guardrails are empty
Has entries Empty or absent Form fields only
Empty or absent Has entries Guardrails only
Has entries Has entries Both, in one write of config.toml. A rule error in either list refuses the whole save

Guardrail changes

Each entry of a guardrails list is {id, op, severity, description}:

op severity and description Effect on config.toml
add Both are required Writes the table [<path>.<id>]. The id must not be in the file
change Both are required. The change replaces both stored values Writes the same table again. The id must be in the file
remove Neither is allowed Deletes the table. The id must be in the file

<path> is plan.guardrails for plan-guardrails, and execute.guardrails for execution-guardrails. The write keeps the comment lines and the key order of the file. When the write cannot keep a comment line, it does not write that guardrail. Two causes:

  • A remove of a table that holds a comment line.
  • A table that the write cannot edit in place, for example a table in an array of tables or in an inline table, in a file that has a comment line.

That guardrail is then in failed[] with the suggestion Edit <path>.<id> in <file> by hand, then reload the Setup tab., and next names the same step. The other guardrails and sections of the save are written.

An operator may change a severity from error to warning. The save does not refuse a lower severity.

The server checks these rules before any write, in this order. Each request rule answers 400 BAD_REQUEST, and no file changes:

Rule Message Suggestion
changes and guardrails are both empty changes and guardrails are empty Change a field or a guardrail, then save.
A section key is not known guardrails has unknown section "<key>" Use plan-guardrails or execution-guardrails.
A list is empty guardrails.<key> is empty Omit a section with no change.
A list has more than 100 changes guardrails.<key> has <n> changes, over the limit of 100 Save at most 100 guardrail changes of one list at one time.
An id is empty guardrails.<key> has a change with an empty id Send the kebab-case id of the guardrail, for example no-ci-bypass.
An id has more than 64 bytes guardrails.<key> has an id of <n> bytes, over the limit of 64 Use an id of at most 64 bytes.
One id has two changes guardrails.<key> changes id "<id>" twice Send one change for each id.
The op is not add, change or remove guardrails.<key>: op "<op>" of "<id>" is not add, change or remove Use add, change or remove.
An add or a change has no severity or no description guardrails.<key>: <op> of "<id>" needs severity and description Send both fields. change replaces both stored values.
A remove has a severity or a description guardrails.<key>: remove of "<id>" takes no severity or description Send only id and op for a remove.
A form change in changes names a guardrail section section "<id>" is a guardrail section; changes cannot change it Send a change of section "<id>" in the guardrails field of the request, not in changes.
targets names a guardrail section targets names section "<id>", which is not a local form section with a change Name in targets only a local form section that has a change in changes.
config.toml holds the list as an array ([[<path>]] or <key> = [...]) config.toml holds <path> as an array ([[<path>]] or an inline array). The dashboard edits only [<path>.<id>] tables Change the list in config.toml to [<path>.<id>] tables manually, then reload the page.

Each message starts with dashboard setup save: and ends with Nothing was written. The last rule of the table needs the content of config.toml, so it runs after the other rules, with the file checks below.

After the other request rules, the server reads config.toml and checks the list against the file:

  1. A config.toml that is too large, not valid TOML, or not readable gives the same error as a save of form fields. A missing config.toml gives 409 SETUP_NOT_READY. A plan, an execute, a plan.guardrails, an execute.guardrails or one guardrail that is not a table gives 500 SETUP_SAVE_FAILED. Its suggestion is Change <key> in <file> to a table, or remove the key. Then save again. Nothing was written. For one guardrail, the suggestion asks for a table with description and severity. The array form of the last rule comes before this check.

  2. A change that is stale gives SETUP_INVALID with one entry in fields for each stale id. The page shows the message under the row:

    Stale change Message
    An add of an id that the file holds guardrail "<id>" is already in config.toml, so the add is stale. Reload the Setup tab to see the stored guardrail, then change it in place of the add.
    A change or a remove of an id that the file does not hold guardrail "<id>" is not in config.toml, so the <op> is stale. Reload the Setup tab to see the stored list, then make the change again.
  3. The server builds the list that the save would write: the guardrails of the file, minus each remove, with each add and change applied. It checks each entry with the guardrail rules of the config check: an id in kebab-case that is unique, a severity of error or warning, and a description of 1 to 1024 bytes. A finding gives SETUP_INVALID with one entry in fields for each finding.

The stale check runs first. When one or more changes are stale, the answer holds only the stale entries of both lists, sorted by path, and the server does not check the rules of step 3. The rule findings show after a reload and a new save. When no change is stale, the answer holds all rule findings of both lists, sorted by path.

The value check runs before any write. It checks new values only. A value that the target file already holds passes, so a repo with a hand-written value can still save. /sdlc:setup uses the same check. The check refuses a value that is outside the limits of its field:

  • A boolean field takes true or false.
  • A choice field takes one of its options. A multi-choice field takes a list of options with no repeat.
  • A number field takes a whole number from min to max. With no max, the limit is 2147483647.
  • automation.drift.maxErrorRate and automation.drift.maxWarningRate take a number from 0 to 1. They also take a decimal text from 0 to 1, for example "0.25". The save stores that text as a number.
  • A text is at most 1024 bytes.
  • A list has at most 64 entries of at most 1024 bytes each.

The server refuses a save in these cases, with 400 BAD_REQUEST and no file change:

  • The body has no repo, or a repo over 4096 bytes.
  • The save holds more than 64 entries in changes, or no change in changes and none in guardrails.
  • A guardrails entry breaks a rule of Guardrail changes.
  • A change names a delegated section, or a section that is not a form section. For an unknown section, the message lists the allowed sections. For a guardrail section, the suggestion names the guardrails field of the request. For another delegated section, the suggestion names the /sdlc:setup --only <id> command.
  • A change names a field that the section does not have. The message lists the allowed fields.
  • Two changes name the same section and field.
  • The op is not set or reset. Or a set has no value. Or a reset has a value.
  • A targets entry names a section that is not a local form section with a change. Or its value is not project or user.
  • A section has the target user, and there is no user file path: $SDLC_USER_CONFIG is not set and the server finds no home directory.

The server also refuses a save in these cases:

  • The body is over 64 KiB (413 BODY_TOO_LARGE). Save fewer fields or guardrails at one time. The save route takes a larger body than the other POST routes (8 KiB), because a guardrail description has up to 1024 bytes. The 64 KiB limit applies to POST /api/setup-save only. POST /api/setup-create keeps 8 KiB.
  • A guardrail change is stale: the file no longer holds the guardrail state that the page showed (400 SETUP_INVALID). Reload the Setup tab. See Guardrail changes.
  • The repo has the state no-config or legacy-config (409 SETUP_NOT_READY).
  • A stored section in the target file is not a table. The error names the key and the file.

What the save does to each file, for each target and each change:

Save to Field with a new value Field set to “Use default”
Section in config.toml Sets the key in config.toml Removes the key from config.toml
This project Sets the key in .sdlc-v2/local.toml Removes the key from .sdlc-v2/local.toml
All my projects Sets the key in the user file. Removes the key from .sdlc-v2/local.toml Removes the key from the user file and from .sdlc-v2/local.toml

A change of the Save to switch with no field change saves nothing. After “Use default” with the target “This project”, a value in the user file applies, and the page shows that value with its source. An empty table stays in the file after a reset of the last key. Every reader accepts an empty table.

A save that writes the version section also runs scaffold_ci in its default mode. This mode creates each missing CI script file. It does not change an existing CI script file, and it leaves an old .js script as it is. To set the old value again does not delete a created file. Delete each file of ciFiles by hand.

The answer of a save is:

Field Type Meaning
ok boolean true when the save wrote each section
written[] list Each written section: section (the form section id) and file (the absolute path). A guardrail entry has section (the guardrail section id) and id (the guardrail id), with file as the path of config.toml. One entry is for one guardrail, also for a remove. A form section has no id
failed[] list Each section that the save did not write: section, file, message and suggestion. A guardrail entry also has id. See the table below for suggestion
warnings[] list The warnings of the write and of scaffold_ci, for example an outdated CI script file
ciFiles[] list The CI script files that the save created, as paths in the repo
next string The step to edit a failed section by hand. The write did not change that section, because the write would delete comment lines of the file. "" when there is none

An empty list is [].

The suggestion of a failed[] entry:

Cause suggestion
The write call failed as a whole, after the user file write The suggestion of the error. Absent when the error has none
The write did not write the key, because the write would delete a comment line Edit <key> in <file> by hand, then reload the Setup tab.
The write did not write the key for another cause Check <key> in <file>, then reload the Setup tab and save again.

<key> is the config path of the section, or <path>.<id> for a guardrail.

What the user sees when a save fails:

Step that fails Files changed What the page shows
Request check, state check, value check, guardrail check None An error at each field or guardrail row, and the error text in the save bar note
Write of one section Other sections of the same save A save bar note that lists each failed section with its file
Write of one guardrail Other sections and guardrails of the same save A save bar note that lists each failed guardrail with its section, its id and config.toml. The cause is in message. For a guardrail table with a comment line, edit the table by hand as suggestion and next say, then reload the Setup tab
User file write of one section No file for that section. The project file keeps its key A save bar note that lists the section with the user file
Project file write after the user file write The user file A save bar note that lists the section. The old project value still applies

A save that succeeds shows the note Saved 2 changes. (with the count of the changes), and the form loads the state of the repo again. A refused value shows the message of the server under the field, and the note Not saved. The config check refused 1 field. No file changed. A save that is partly written answers 200 with ok false.

Save to: this project or all my projects

A form section is stored in one of three files:

File Sections Notes
<repo>/.sdlc-v2/config.toml Team sections such as version, jira and plan-tasks Usually in git. Shared with the team.
<repo>/.sdlc-v2/local.toml Local sections such as ship and review, with Save to This project Not in git. Per developer.
~/.sdlc/local.toml (or $SDLC_USER_CONFIG) Local sections, with Save to All my projects Outside every repo. Shared by all projects.

Each local section has a Save to switch. It has one choice for the whole section, not one choice for each field. The default of the switch comes from the defaultTarget of the section: project for ship, and user for communication-style, plan-style, review, received-review, automation and github.

When you change the switch of a section that already holds saved values, the save moves only the fields that you changed. The other saved values stay in their old file. The project file wins over the user file for a key that both files set.

Create config

A repo with the state no-config shows the button Create config and the command /sdlc:setup. The button calls POST /api/setup-create. A repo with the state legacy-config (an old config.json and no config.toml) shows the command /sdlc:setup --migrate and no button. The page does not migrate.

Create changes these paths of the repo:

Path in the repo Change
.sdlc-v2/ and .sdlc-v2/runs/ Created when absent
.sdlc-v2/.gitignore Created, or its sdlc block updated
.gitignore of the repo root Created, or its sdlc block updated
.sdlc-v2/config.toml, .sdlc-v2/local.toml Created from the templates, each one only when it is absent. A repo with the state no-config can already have .sdlc-v2/local.toml
.sdlc-v2/local.json of the old JSON form Gets the new name local.json.bak when no local.json.bak exists. With a local.json.bak, both files stay as they are

The answer is {ok, created, changed, errors}:

Field Meaning
created Each path that Create created: .sdlc-v2/.gitignore, .gitignore, .sdlc-v2/config.toml, .sdlc-v2/local.toml
changed Each .gitignore file whose sdlc block Create updated (.sdlc-v2/.gitignore, .gitignore), and the rename .sdlc-v2/local.json → local.json.bak
errors One text for each write that failed

A write that fails inside Create does not stop the other writes. The answer is then 200 with ok false and a non-empty errors list. Other failures of Create get 500 SETUP_CREATE_FAILED. A repo in any other state gets 409 SETUP_NOT_READY and no change.

To undo a create, delete each config file that created lists. Rename local.json.bak back to local.json only when changed lists that rename. A local.json.bak from before the call is an older backup, and it stays as it is.

Sections that the assistant handles

7 read-only cards show the state of the sections that need a scan of the codebase or generated text: the commit and PR builders, the PR labels, the review dimensions, the PR template, the plan template, and the OpenSpec block. The server has no model, so the page does not edit them. Each card names the /sdlc:setup command that changes the section. The route GET /api/setup-state gives the state of each card in delegated. The plan and execution guardrails are not in this list. The form edits them. See Guardrail sections. /sdlc:setup can still scan the code and propose guardrails.

Errors of the Setup tab

The four Setup routes use the error body of Security. The routes add these codes:

Code HTTP status Cause What to do
SETUP_INVALID 400 The value check refused one or more fields, or the guardrail check refused one or more guardrails. A guardrail is refused when its change is stale, or when the merged list breaks a guardrail rule. The answer has a fields list. For a guardrail, section is the guardrail section id and field is the guardrail id. No file changed. Correct each field or guardrail that the page marks, then save again. For a stale guardrail, reload the Setup tab first.
SETUP_NOT_READY 409 The state of the repo does not allow the call: a save for a repo with the state no-config or legacy-config, or a create for a repo that has a config. The message names the state. Reload the page. Use Create config, or /sdlc:setup --migrate.
SETUP_READ_FAILED 500 The server could not read the config files of the repo. Read the suggestion in the message. It names the file to check.
SETUP_SAVE_FAILED 500 The save failed with an error. Read the suggestion in the message. Load the form again to see what was written.
SETUP_CREATE_FAILED 500 The create failed with an error. Read the suggestion in the message. See Create config to undo a part.

SETUP_INVALID reads 1 field value is refused by the config check or <n> field values are refused by the config check. A stale guardrail entry in fields reads, for example, guardrail "dry" is not in config.toml, so the remove is stale. Reload the Setup tab to see the stored list, then make the change again. A guardrail request that breaks a rule of the rules table gets 400 BAD_REQUEST with the message and the suggestion of its row, not SETUP_INVALID. The other codes of these routes (BAD_REQUEST, REPO_NOT_FOUND, BODY_TOO_LARGE, BAD_CONTENT_TYPE, BAD_BODY, NOT_CONFIGURED) are in the error table of Security.

Settings

key default range file
autoStart false true, false .sdlc-v2/local.toml or ~/.sdlc/local.toml
port 7385 1024-65535 .sdlc-v2/local.toml or ~/.sdlc/local.toml

Both keys live in the [dashboard] section, which is a local config section: per-developer, not shared with the team, and never committed. internal/dashboard/settings.go’s ReadSettings reads it from the project file (.sdlc-v2/local.toml), the user-level file (~/.sdlc/local.toml, or the path named by $SDLC_USER_CONFIG when that is set), or both — the project file wins on any key both files set. A [dashboard] section missing from both files is not an error: the documented defaults apply. An out-of-range port is a hard config error (not clamped or silently corrected) — ReadSettings fails with a message naming the valid range and both files [dashboard] may live in.

autoStart decides whether the dashboard server comes up on its own. With autoStart = false (the default), the server only starts when a developer runs /sdlc:dashboard or clicks something that calls the dashboard MCP tool. With autoStart = true, every SessionStart hook also starts the server — without waiting for it to answer — and prints its address to the terminal, so a developer who opens a dozen worktrees across a day never has to remember to launch the page.

port exists because one person can run only one dashboard server per machine, and port 7385 is an arbitrary default that can collide with something else already listening there. Changing port does not move a server that is already running: it takes effect the next time something calls Ensure (the next /sdlc:dashboard, or the next session start with autoStart true), which stops the server at the old port and starts a new one at the new port.

To change either setting, edit (or create) the [dashboard] section of ~/.sdlc/local.toml (or the project’s .sdlc-v2/local.toml):

[dashboard]
autoStart = false   # start the local dashboard when a Claude session starts
port = 7385         # 1024-65535, loopback only

Files on disk

Path Writer Content
~/.sdlc-cache/dashboard/server.json server {pid, port, version, startedAt, url}
~/.sdlc-cache/dashboard/roots/<hash>.json hook, tool {root, lastSeen}
~/.sdlc-cache/dashboard/server.log server output of the detached process. Clear cache class server-log cuts it to 0 bytes
<repo>/.sdlc-v2/run-archive/<runId>/ server archived runs: state files, ledgers, reports, archive.json
<repo>/.sdlc-v2/evidence/*.jsonl.1 hook, tool rotated evidence files. Clear cache class evidence-rotations deletes the old ones
.sdlc-v2/scratch/sdlc-* tool temp folders of tools. Clear cache class temp-dirs deletes the old ones
<repo>/.sdlc-v2/reports/* ship, execute run reports. Clear cache class orphan-reports deletes the ones that no run owns
<repo>/.sdlc-v2/history/deferred.json ship_state defer and deferred_add; server deferred items. The server rewrites it without one item (see Delete an item)
<repo>/.sdlc-v2/learnings/log.md learnings_log; server learning entries. The server rewrites it without one entry (see Delete an item)
<repo>/.sdlc-v2/preplan/<slug>.md plan_support preplan_context, preplan_check and preplan_write; server preplan topic files. The server deletes one file (see Delete an item) or rewrites its **Status:** line (see Change a preplan status)
<repo>/.sdlc-v2/history/runs.jsonl ship_state history_record and fail; plan_mark done; server run history. The server rewrites it without the checked rows (see Delete History rows)
<repo>/.sdlc-v2/evidence/attention/*.json hooks block-askuserquestion-auto, record-permission-wait; server one record for each open wait. The server deletes one record (see Dismiss a wait)
<repo>/.sdlc-v2/config.toml setup tools; server project config. The server rewrites the changed keys (see Setup tab)
<repo>/.github/scripts/*.cjs, <repo>/.github/workflows/*.yml scaffold_ci; server CI script files. A save of the version section creates each missing file. It does not change an existing file (see Save)
<repo>/.sdlc-v2/local.toml setup tools; server local config of the project. The server rewrites the changed keys. A save to “All my projects” removes each changed key from this file
~/.sdlc/local.toml (or $SDLC_USER_CONFIG) setup tools; server local config of the user. The server rewrites the changed keys when the target is “All my projects”
<repo>/.sdlc-v2/.gitignore, <repo>/.gitignore setup tools; server the sdlc block of each file. Create config adds or updates the block (see Create config)

~/.sdlc-cache is paths.CacheDir(): $SDLC_CACHE_DIR when set, else the user’s home directory, shared with sdlc-launcher.sh. dashboard.Dir() joins dashboard onto that root for the first three paths above. The last fourteen paths do not live under ~/.sdlc-cache/dashboard/. See Archive a run, Clear cache files, Delete an item, Change a preplan status, Delete History rows, and Dismiss a wait, and Setup tab for the rules of the last fourteen paths.

  • server.json is written once the listener binds and is removed when the server stops — but only by the process whose own PID still matches the recorded one, so a server that lost a race for the port never deletes a newer server’s record.
  • roots/<hash>.json is one file per registered repo, named after the first 16 hex characters of sha256(root) so every session of the same repo writes the same file (refreshing lastSeen rather than duplicating the entry). Both the SessionStart hook and the dashboard MCP tool can write it. A root’s file is deleted the next time anything calls Roots if its lastSeen is more than 7 days old or its .sdlc-v2 directory is gone — the registry self-cleans with no separate garbage-collection pass.
  • server.log collects the detached process’s stdout and stderr, appended for the life of that process; a new server start appends to the same file rather than rotating or truncating it. Only the Clear cache button cuts it to 0 bytes.

Security

The dashboard binds 127.0.0.1 only — there is no flag to make it listen on a non-loopback address, so it is never reachable from another machine.

Every request’s Host header must be exactly 127.0.0.1:<port> or localhost:<port>, or the server answers 403. This exists because a page on another site can still reach 127.0.0.1 through DNS rebinding; its request would carry that other site’s host name, and only the two loopback names pass. On its own, this check does not stop a cross-origin POST from a browser tab open on another site: a page can issue a request that correctly targets 127.0.0.1:<port> and still originate from anywhere.

Eleven POST routes change files: POST /api/stop, POST /api/run-archive, POST /api/cache-clear, POST /api/preplan-delete, POST /api/deferred-delete, POST /api/learning-delete, POST /api/preplan-status, POST /api/history-delete, POST /api/wait-dismiss, POST /api/setup-save and POST /api/setup-create. Each one checks the Origin and the token. Every other route is GET, including the read-only GET /api/learning, GET /api/run-detail, GET /api/session-detail, GET /api/setup-fields and GET /api/setup-state. GET / additionally serves index.html with its {{SDLC_TOKEN}} placeholder replaced by this server start’s token (Cache-Control: no-store, so the token is never cached) — only a client that has actually loaded the page has ever seen that value.

Each POST route is held to two further checks, both required:

  • Its Origin header must be http://127.0.0.1:<port> or http://localhost:<port>, else 403 with the code FORBIDDEN_ORIGIN.
  • Its X-Sdlc-Token header must equal this server start’s token — 32 bytes from crypto/rand, hex-encoded, generated fresh each time the server starts — compared with crypto/subtle.ConstantTimeCompare, else 403 with the code FORBIDDEN_TOKEN.

Both checks exist together because they block two different attacks: the Origin check blocks a cross-site POST that a browser attaches automatically to every request, including one a malicious page fires at 127.0.0.1 without the victim’s knowledge; the token check blocks a same-origin request forged by something that was never served the page at all, such as a curl replay run from the same machine.

The archive, clear, delete, status, dismiss, save and create routes read a JSON body. After the Origin and token checks, they also need the header Content-Type: application/json (else 415) and a body of at most 8 KiB (else 413). The setup save route takes a body of at most 64 KiB, because it can carry guardrail text. The stop route has no body, so it skips these two checks.

Route What it does Guard after the Host check
POST /api/stop Stops the server Origin and token
POST /api/run-archive Moves one run into run-archive/. See Archive a run. Origin, token, JSON content type, body of 8 KiB or less. The body is {"repo", "runId", "confirmStalled"}. repo and runId are required. confirmStalled is a bool.
POST /api/cache-clear Deletes cache files. See Clear cache files. Origin, token, JSON content type, body of 8 KiB or less. The body is {"repo"}, and repo is required.
POST /api/preplan-delete Deletes one preplan topic file. See Delete an item. Origin, token, JSON content type, body of 8 KiB or less. The body is {"repo", "slug"}. Both are required.
POST /api/deferred-delete Deletes the first deferred item with the id. Same. The body is {"repo", "id"}. Both are required.
POST /api/learning-delete Deletes the newest learning with the date and heading. Same. The body is {"repo", "date", "heading"}. All are required.
POST /api/preplan-status Sets the **Status:** line of one preplan topic file. See Change a preplan status. Same. The body is {"repo", "slug", "status"}. All are required. status is in progress, ready for plan or paused.
POST /api/history-delete Deletes the runs.jsonl lines that match the keys. See Delete History rows. Same. The body is {"repo", "rows"}. rows holds 1 to 50 keys {"kind", "branch", "endedAt"}. repo, rows, and kind and endedAt of each key are required.
POST /api/wait-dismiss Deletes one wait record. See Dismiss a wait. Same. The body is {"repo", "kind", "sessionId", "toolUseId"}. repo, kind and sessionId are required. kind is question or permission. A question needs toolUseId. A permission has none.
POST /api/setup-save Saves the changed fields and the guardrail changes of the Setup form. See Setup tab. Origin, token, JSON content type, body of 64 KiB or less. The body is {"repo", "changes", "targets", "guardrails"}. repo is required. A save needs at least one entry in changes or in guardrails.
POST /api/setup-create Creates the first config files of one repo. See Setup tab. Same. The body is {"repo"}, and repo is required.
GET /api/learning?repo=…&date=…&heading=… Returns the text of one learning. See Detail viewer. No Origin check and no token: the route only reads, like GET /api/snapshot. repo, date and heading are required. The text is redacted and cut at 8000 characters.
GET /api/run-detail?repo=…&id=… Returns the full steps and issues of one run. See Detail on open. No Origin check and no token: the route only reads. repo and id are required. id is at most 256 bytes and repo is at most 4096 bytes. A longer value gets 400 with the code BAD_REQUEST.
GET /api/session-detail?repo=…&id=… Returns the timeline and command groups of one session. Same as run-detail.
GET /api/setup-fields Returns the setup sections and the fields of each one. No Origin check and no token: the route only reads.
GET /api/setup-state?repo=… Returns the config state and the values of one repo. Same as run-detail. repo is required.

For the archive, clear, delete, status, dismiss, learning, run detail, session detail, setup state, save and create routes, repo must be the path of a repo that the page shows. The server compares it with the registered repos, where a linked worktree counts as its main repo. Any other path gets 404, and the server does no file work.

Each error answer of these routes has the body {"error":{"code","message","suggestion"}}. The Host check and a request with a wrong method (405) answer with plain text. The Setup routes add more codes. See Errors of the Setup tab. The error answers are:

Status Code Cause Route
403 FORBIDDEN_ORIGIN, FORBIDDEN_TOKEN The Origin or the token check failed The eleven POST routes
415 BAD_CONTENT_TYPE The content type is not application/json Archive, clear, delete, status, dismiss, setup save, setup create
413 BODY_TOO_LARGE The body is over 8 KiB. For setup save, the body is over 64 KiB. Archive, clear, delete, status, dismiss, setup save, setup create
400 BAD_BODY The server could not read the body Archive, clear, delete, status, dismiss, setup save, setup create
400 BAD_REQUEST The body is not a JSON object of the shape of the route. Or repo or runId is missing (archive). Or repo is missing (clear). Or repo or slug is missing, or slug is not a file name, or the topic path is a folder (preplan delete). Or repo or id is missing (deferred delete). Or repo, date or heading is missing (learning delete, or GET /api/learning). Or repo or id is missing or too long (run detail, session detail). Or the slug or the status breaks a rule, or the topic file is gone, a folder or a link (preplan status). Or rows is empty or holds more than 50 keys, a key is not valid, or a key matches no line (History delete). Or kind, sessionId or toolUseId breaks a rule (wait dismiss). Or repo is missing, or a Setup save breaks a request rule of Save (setup save). Or repo is missing (setup state, setup create). Archive, clear, delete, status, dismiss, learning, run detail, session detail, setup state, setup save, setup create
404 REPO_NOT_FOUND repo is not a repo that the page shows. Archive, clear, delete, status, dismiss, learning, run detail, session detail, setup state, setup save, setup create
500 NOT_CONFIGURED The server runs without the function of the route. This is a wiring defect. Archive, clear, delete, status, dismiss, learning, run detail, session detail, setup fields, setup state, setup save, setup create
500 CLEAR_FAILED Clear cannot read the repo folder Clear
500 DELETE_FAILED The file could not be read or written. The suggestion names the fix. Delete, status, dismiss
500 LEARNING_READ_FAILED The server cannot read the learnings log Learning
500 DETAIL_READ_FAILED The server cannot read the repo of the run or the session Run detail, session detail
400, 404, 409, 500 BAD_RUN_ID, RUN_NOT_FOUND, RUN_ACTIVE, CONFIRM_STALLED, ARCHIVE_FAILED See Archive a run Archive

An example of an error answer:

409 {"error":{"code":"RUN_ACTIVE","message":"Run \"ship-feat-x-20261008T120000Z\" is running","suggestion":"Wait until the run ends or stalls."}}

The server has no idle stop — nothing shuts it down just because it sat unused. There are exactly three ways to stop it:

  1. POST /api/stop — the page’s Stop server button, gated by the Origin and token checks above.
  2. SIGTERM — sent by the dashboard tool’s stop action, or by Ensure itself when a version or port change requires stopping the old server before starting the new one.
  3. SIGINT (Ctrl-C) — in a terminal that ran sdlc dashboard serve directly.

How it works

Changed flow 1 (developer sees progress)

flowchart LR
  subgraph Before
    A1[Developer] --> B1[Ask Claude in each session]
    B1 --> C1[ship_state read for one branch]
    C1 --> D1[Markdown in one terminal]
  end
  subgraph After
    A2[Developer] --> B2[Browser page]
    B2 --> C2[sdlc dashboard serve]
    C2 --> D2[State files of all known repos]
  end
  class B2,C2 new
  classDef new fill:#1f7a3a,stroke:#0b3d1c,color:#ffffff,stroke-width:2px

Changed flow 2 (session start hook)

flowchart TD
  subgraph Before
    S1[SessionStart] --> P1[banner phases] --> O1[text output]
  end
  subgraph After
    S2[SessionStart] --> P2[banner phases] --> R2[register repo root]
    R2 --> Q2{autoStart true?}
    Q2 -- no --> O2[text output]
    Q2 -- yes --> E2[start server, no wait] --> L2[print page address] --> O2
  end
  class R2,Q2,E2,L2 new
  classDef new fill:#1f7a3a,stroke:#0b3d1c,color:#ffffff,stroke-width:2px

Changed flow 3 (prompt and command records)

flowchart LR
  subgraph Before
    H1[record-user-input or pipeline-continue] --> G1{ship or execute active?}
    G1 -- yes --> W1[append entry without sessionId]
    G1 -- no --> N1[write nothing]
  end
  subgraph After
    H2[record-user-input or pipeline-continue] --> G2{ship or execute active?}
    G2 -- yes --> W2[append entry with sessionId]
    G2 -- no --> N2[write nothing]
  end
  class W2 changed
  classDef changed fill:#8a6d00,stroke:#4a3a00,color:#ffffff,stroke-width:2px

Changed flow 4 (instructions)

A step tile lists the instructions of its key. An end group follows the last tile. The text form below shows one step and the end group. The lines under After are the rows that the page adds.

Before:
[done]    pr        PR #123 created
After:
[done]    pr        PR #123 created
            [failed]   pr #1 (team)              Move the Jira ticket ...      Jira transition 'In Review' not found ...
            [running]  pr #2 (project local)     Open the PR URL in my browser.
          end of run (ship)
            [pending]  ship #1 (team)            Post the PR link and the CI result ...

Changed flow 5 (T3 Code)

Flow 1: the user opens the dashboard.

flowchart LR
  subgraph Before
    B1[User runs /sdlc:dashboard] --> B2[dashboard ensure open true]
    B2 --> B3[System browser opens the page]
  end
  subgraph After
    A1[User runs /sdlc:dashboard] --> A2[dashboard ensure open true]
    A2 --> A3{T3 thread id valid?}:::new
    A3 -- no --> A4[System browser opens the page]
    A3 -- yes --> A5[No browser, previewUrl returned]:::changed
    A5 --> A6[Skill calls preview_open with previewUrl]:::new
    A6 -- fails --> A7[Skill prints previewUrl and one warning]:::new
  end
  classDef new fill:#1f7a3a,stroke:#0b3d1c,color:#ffffff,stroke-width:2px
  classDef changed fill:#8a6d00,stroke:#4a3a00,color:#ffffff,stroke-width:2px

Flow 2: a top ship run or a standalone execute run. The panel steps run in a T3 thread only. The card steps run in every client.

flowchart LR
  subgraph Before
    B1[Run starts] --> B2[State: sessionId]
    B2 --> B3[Steps run]
    B3 --> B4[Run ends]
  end
  subgraph After
    A1[Run starts] --> A2[State: sessionId and t3ThreadId]:::changed
    A2 --> P1[dashboard ensure open true runId]:::new
    P1 --> P2[preview_open url#runId?thread=ID: block of the run in the T3 preview tab]:::new
    P2 --> A3[dashboard_card runId: start card]:::new
    A3 --> A4[Step or wave runs]
    A4 --> C5[dashboard_card runId snapshot true: step card or wave card]:::new
    C5 --> A4
    A4 --> A5[Run ends or fails]
    A3 -.-> C8[client with no card: text block and dashboard link]:::new
    A5 --> A6[dashboard_card runId final true: end card]:::new
  end
  classDef new fill:#1f7a3a,stroke:#0b3d1c,color:#ffffff,stroke-width:2px
  classDef changed fill:#8a6d00,stroke:#4a3a00,color:#ffffff,stroke-width:2px

Flow 3: the page reads the address.

flowchart LR
  subgraph Before
    B1["#pipelines"] --> B2[Pipelines tab, all runs]
  end
  subgraph After
    A1["#pipelines?thread=ID"]:::new --> A2[Pipelines tab, runs of thread ID only]:::new
    A2 --> A3[Thread chip with clear button]:::new
  end
  classDef new fill:#1f7a3a,stroke:#0b3d1c,color:#ffffff,stroke-width:2px
  classDef changed fill:#8a6d00,stroke:#4a3a00,color:#ffffff,stroke-width:2px

Changed flow 6 (Setup save with guardrails)

flowchart LR
  subgraph Before
    P1[Page: field changes] --> S1[POST /api/setup-save, 8 KiB] --> W1[Section writer]
    G1[Page: guardrail edits] -.->|not sent| X1[Lost after reload]
  end
  subgraph After
    P2[Page: field changes] --> S2[POST /api/setup-save, 64 KiB]:::changed
    G2[Page: guardrail changes]:::new --> S2
    S2 --> R2[Request rules]:::new --> V2[Stale check and guardrail rules]:::new --> W2[Section writer, one call for config.toml]:::changed
  end
  classDef new fill:#1f7a3a,stroke:#0b3d1c,color:#ffffff,stroke-width:2px
  classDef changed fill:#8a6d00,stroke:#4a3a00,color:#ffffff,stroke-width:2px

T3 Code

A top-level ship run or a standalone execute run shows a card in the chat of any client that supports MCP Apps. The tool checks the client: a client that announces the MCP Apps extension io.modelcontextprotocol/ui in its initialize capabilities gets the card. A process in a T3 Code thread also gets the card, because T3 Code renders it. Any other client gets the same card as a text block, with the dashboard link of the run when the dashboard runs. The skill calls the tool at each card point in every client.

In a T3 Code thread only, the dashboard also opens in a T3 preview tab (the run panel). Outside T3 Code, the run panel does not open.

Function T3 preview tab (T3 Code only) Run card in chat (MCP Apps clients)
Pipelines, run detail, Activity, History, Preplans, Setup full page steps, status, issue counts of one run
Change actions work (token guard) no, read-only
Live updates event stream the card shows the run state at the time of each dashboard_card call; the Refresh button was clicked by hand and works (check 2); the refresh between turns is not tested (see Limits)

The dashboard tool returns previewUrl for ensure with open true in a T3 Code thread. The skill passes previewUrl to the T3 preview_open tool. No system browser opens. dashboard_card takes runId, final and snapshot: final set to true makes the end card, and snapshot set to true makes a step card or a wave card.

The dashboard_card tool

Input Rule
runId The state file name of a ship or execute run, without .json: ship- or execute-, then 1 to 200 characters of A-Z a-z 0-9 . _ -. A plan- run id is refused
final true for the end card. A run whose state still says running then shows as stopped, resumable
snapshot true for a step card or a wave card, a card of one moment. The card draws the run once and does not refresh. final wins when both are true
Error When
DomainError runId has the wrong form, no run file has that name, or in a T3 Code thread the run stores another t3ThreadId
DataError the run is not found and some run files could not be read, or in a T3 Code thread the run stores a t3ThreadId that is not a string
InfraError the runs folder cannot be listed

The output has these fields:

Field Value
summary, runId, kind, branch, status one line about the run; the run id; ship or execute; the branch; the run status
final a copy of the final input
snapshot true for a middle card. Absent when snapshot was not sent, and absent when final is also true: final wins, and next then ends with snapshot was ignored because final is true.
t3ThreadId the thread id of the run, when it has one
startedAt, completedAt the start time; the end time, null while the run has no end time
steps[] name and status of each step of a ship run, or of each wave of an execute run. A wave step of an execute run also has tasksDone and tasksTotal
steps[].waves[] on the execute step of a ship run only, when the dashboard joins an execute run to the ship run: name, status, tasksDone and tasksTotal of each wave of that execute run
issues a count for each severity
next what the skill does next
text a client with no card only: the text block
dashboardUrl a client with no card only, when the dashboard runs: <url>#<runId>

The tool reads the run files and the dashboard server record, probes the server over loopback HTTP, and writes nothing. On the first error, the ship and execute skills print Warning: run card not shown — and the first line of the error, then continue.

Card kinds:

Card When it shows Refresh Client with no card
Start card after the run starts every 15 s while the run runs text block and dashboard link
Step card (ship) or wave card (execute) at each ship step after the first, and after each execute wave except the last none: a snapshot of that moment text block and dashboard link
End card at every exit after the start card none text block and dashboard link

A client with no card gets the same card as a text block. The skill prints the text field in the chat unchanged, in a code block. This is the text block of a ship run in progress:

SHIP  [running]
ship-feat-x-20261116T175538Z
Branch:    feat/x
Started:   2026-11-16T17:55:38Z
Completed: not recorded

STEPS                                   1 of 4 done
[#>..]
  [x] execute            completed
        wave 1  2/2 tasks  completed
        wave 2  3/3 tasks  completed
  [>] commit             in_progress
  [ ] review             pending
  [ ] pr                 pending

ISSUES   high 1
Dashboard: http://127.0.0.1:55551#ship-feat-x-20261116T175538Z

The last line is the dashboard link rule:

Dashboard server Last line of the block What the skill does
runs Dashboard: <url>#<runId> nothing more: the block holds the link
does not run the ISSUES line: the block has no Dashboard: line starts the dashboard once in the run and prints Dashboard: <url>#<runId>, or prints Warning: dashboard not started and continues with no link
record cannot be read Dashboard: link unavailable nothing more: next orders no start, because a server can run while only its record read fails

Thread filter

Address Shows
#pipelines?thread=<id> runs of the thread <id>

A thread id is 1 to 128 characters of A-Z a-z 0-9 . _ -. The plugin ignores any other value of T3CODE_THREAD_ID: the run then records no thread, as outside T3 Code, and ship_prepare and execute_state resolve-config add one warning that names the variable. A run that has a thread records it as t3ThreadId in its state file, and the snapshot has pipelines[].t3ThreadId (see Snapshot contract). ship_prepare and execute_state resolve-config return t3ThreadId too. resolve-config also returns shipDispatched.

Run panel and narrow width

When The T3 preview tab shows
a top-level ship or a standalone execute run starts #<runId>?thread=<id>: the runs of the thread, scrolled to the block of the run
the panel is 640 px wide or less one column: History rows as cards, labels above values. Tested at 400 px

Limits

A person checked the card and the run panel by hand in T3 Code. The check record lists each check and its result. No check failed.

Open risks:

  • A client with no card sees the waves of the ship execute step only at the next step card. Execute runs as a separate agent, and ship makes no card call while that agent runs.
  • The card in the remote T3 web client is not tested (check 5).
  • The card in an MCP Apps client other than T3 Code is not tested.
  • It is not verified that T3 Code announces io.modelcontextprotocol/ui in initialize. The tool treats a process in a T3 Code thread as a client that shows the card, so the card does not depend on that announcement.
  • Whether a thread has its own run panel is not tested (check 6). The thread switch (thread A, then B, then A) did not run.
  • The thread filter is not shown with a matching run (check 6). Repeat the check with a run that starts after the stamping of t3ThreadId exists.
  • The refresh of the card between two agent turns is not tested (check 3). The Refresh button works (check 2). Do not rely on a refresh without a click. The card shows the run state at the time of each dashboard_card call.

Snapshot contract

This section is for plugin contributors. The page reads one JSON snapshot. GET /api/snapshot returns it, and GET /api/events pushes a new one when its content changes. Both send the page snapshot: a completed or failed run has no steps[].detail and no issues[] items, and a session has no timeline and no commandGroups. See Detail on open. CollectDashboardSnapshot in internal/tools/dashboard_snapshot.go builds it on each call from the state files, ledger folders, evidence files, and history files of each repo. The collector writes no file: it reads what other tools wrote. It keeps only an in-memory parse cache of the evidence logs, runs.jsonl, the learnings log and deferred.json. State files, wait records, review ledgers and preplans are read again on each call. The parse cache works as follows:

  • The key is the repo root and the name of one data set, for example <root>|sessions. One entry holds the parsed result of a set of files. The sessions set, for example, is the CLI, user-input and MCP evidence files, each with its rotated .1 file.
  • The signature of an entry is the path, size and modification time of each file of the set. A change to any one file of the set parses the whole set again.
  • An entry is not stored when the files of the set hold more than 32 MiB in total, when os.Stat of a file fails with an error other than “not exist”, or when a file cannot be read in full. That data set is then parsed on each call.
  • A file that cannot be read adds one repo warning that names the data set and the file.
  • A collect drops the entries of each repo that is no longer a root.

The Go types in that file are the full list of fields. The table below lists the fields that carry data from other tools, with the JSON key, where the collector reads the data, and the tool action that writes it.

Field Source Written by
steps[].detail.kind One of waves, dimensions, explorers, rounds, findings, guardrails, result, fixes, or harden. It tells which field of detail is filled. Collector, not stored
steps[].detailKind Page snapshot only. The kind of the step detail, also when the page snapshot has no detail. Absent when the step has no detail. Collector (slim step)
steps[].startedAt, steps[].completedAt startedAt and completedAt of a ship step or an execute wave, as RFC 3339 text. No key when the time is absent or does not parse. A running step has no completedAt. The plan step of a ship block gets its times from linkedPlan of the ship state, else from the plan row of runs.jsonl (old runs). With neither, it has no times. The steps of a standalone plan or review pipeline have no times. ship_state step actions; execute_state wave actions; ship_state complete-step of execute for linkedPlan
steps[].detail.fixes healing.fixProgress[] of the ship state, in stored order. Each row has title (redacted, at most 120 characters), severity, file, line (absent when 0), status: queued, fixing, fixed, failed, or deferred, and origin (local-review or pr-comment, local-review when the record has none). A record with an unknown status, severity or origin is skipped. ship_state healing_record kinds fix-progress and fixed; ship_state defer
steps[].detail.fixes[].origin origin of the fix record. local-review when absent. received-review
steps[].detail.harden healing.hardened[], deferredFindings[], healing.fixed[] and the harden decisions of the ship state. edits[] {surface, action, targetFile, rationale?, patch?, patchCut?} (at most 100, rationale at most 600 characters, patch at most 1536 bytes, both redacted). clusters[] {trigger, phase, interrupted, classification, applied, skipped} (at most 50, trigger at most 120 characters). funnel? {fixNow, staysDeferred, evidenceOnly, suppressed, loneDisagree} (the first three count findings, the last two count files). fixPass? {fixed, total}. held[] {surface, action, targetFile, reason, label, deferredId?} (at most 100). timeline[] {at, decision} (at most 100, decision at most 120 characters). malformed. A started record is interrupted unless the harden step still runs. A run that stops with its harden step in_progress shows the pipeline as stalled, and its started record keeps interrupted: false. The paragraph “Interrupted run or malformed harden record” below the table gives the rules of each field. ship_state healing_record kind hardened, ship_state decide, Collector (derived)
received-review step A ship run with a review step has a seeded received-review entry in its ship state, and the step shows from that entry with its stored status and times. An older run gets the step after the first review step when healing.fixProgress[] holds a valid fix record. A fixProgress value that is not a list, or a list with records and no valid fix record, adds a state issue. The step of an older run is in_progress while a row is queued or fixing on a live run, else completed. Its startedAt is the earliest firstAt. Its completedAt is the latest updatedAt. ship_prepare (seeded entry); Collector, derived
steps[].detail.reviewQueue Set on the review step of a ship block that has reviewTotals. rows holds one row for each fix record (healing.fixProgress), then one row for each deferred finding that no fix record pairs with. A fix record pairs with a deferred finding when it has the same deferredId, else the same file, line and title. A deferred finding with no deferredId also pairs with the only fix record on its file and line. A deferred finding with a deferredId does not pair this way: ship_state defer copies the deferredId onto the fix record that it matched, so a deferredId that no fix record has means that no fix record matched. The queue does not read fixedInRun. It has at most 200 rows. A row has title, severity, file, line ("" when none), status, origin, dimension ("" when unknown) and text ("" when unknown). status is a fix status, or below for a deferred finding with the reason below-threshold or no reason, or deferred for a deferred finding with any other reason. When the queue has no row from these two sources, it has one row with the status open for each review finding of the joined review run. When the queue has rows, each review finding with a file and a line and no row at that file and line also gets an open row, after the existing rows and highest severity first. A file and line that has a row gets no new row, even when several review findings share it. The new rows count toward the 200 rows. A row gets its dimension from the review finding that has its file and line, only when exactly one finding has them. A row with no text of its own gets its text from that finding too. threshold is flags.reviewThreshold, info when absent or not a severity. unrouted is reviewTotals.unaccounted (at least 0): the findings with no fix record and no deferred entry. It is 0 when the queue has open rows, because every review finding with a file and a line then has a row. When the queue adds no open row, unrouted and reason keep the values from reviewTotals. reason is no-findings when the review found 0 and the queue has no row, all-below-threshold when every row is below and unrouted is 0, else "". The collector adds a state issue to the ship block when deferredFindings is not a list, when deferred entries are not an object or have no title, when flags.reviewThreshold is present and not a severity, and (severity info) when it cuts rows at 200. Collector, not stored
steps[].detail.waves waves[] of the execute state, with number, status, committedSha, and tasks[]. A task name is the name of its task row, else the name in the wave’s planned[], else the plannedTasks name. The execute_state wave and task actions: wave-start, wave-done, wave-fail, task-done, task-fail, wave-commit, wave-committed, and the others that edit waves[]
steps[].detail.queued plannedTasks of the execute state that are in no wave and in no planned wave. plannedTasks is one {id, name} for each ### Task N: heading of the plan. execute_state init, only when planPath is readable
steps[].detail.dimensions One row for each planned dimension in the run.meta of a runs/ledger/review-*/ folder. A row with no worker file is pending. A stopped row is skipped with a reason. A worker file holds checkinAt, checkoutAt, and findings. The collector derives name (the dimension name; the file name when run.meta plans no dimension), status (completed when checkoutAt is set), and the findings count and worst severity of the dimension. The run.meta of the folder ties the review to its ship run. A worker file that cannot be read or does not parse is an in_progress row with no findings, and it counts as a run dimension. Findings that are not a JSON list count as none. A run.meta that exists but cannot be read or does not parse gives the rows of the worker files, as with no run.meta. Each of these three cases also adds a state issue that names the file. Each dimension row also has findingItems: its finding rows (text, severity, file, line), the same rows as steps[].detail.findings, or [] when the dimension has no finding. execute_state ledger_checkin, ledger_checkout, ledger_skip
steps[].detail.reviewPlan, dimensions[].wave, .reason waves, dimensions, and stopReason of run.meta. reviewPlan holds wavesPlanned, wavesRun, dimensionsPlanned, dimensionsRun, and neverStarted. reason is stalled, missing, or unstopped. review_prepare, execute_state ledger_skip
steps[].detail.reviewTotals (found, fixed, deferred, unaccounted) Ship state: healing.reviewTotal, healing.fixed[] with origin local-review, and deferredFindings[] without fixedInRun:true. unaccounted is found minus fixed minus deferred. ship_state healing_record (kinds review-total and fixed), ship_state defer
steps[].detail.findings The findings text of one completed dimension file, for a review run that has its own block. execute_state ledger_checkout
steps[].detail.result The result of the ship commit step, when it starts with nothing to commit. ship_state commit-check
DashboardStep.instructions (steps[].instructions) The records of the ship state instructions whose key names the step, in list order. A commit-fixes record goes to the received-review step. Each item has key, number, source, text, status and outcome. A damaged list (a record with a missing or wrong-type field, or a status outside pending, running, done, failed and not run) lists no record: the block gets one issue with the ref instructions that names the damage and says the page shows no instruction of this run. Absent when the run has no record. It is not part of detail, so a completed or failed run keeps it in the page snapshot. ship_prepare, ship_state instructions-next, instruction-record
DashboardPipeline.endInstructions (endInstructions) In a ship block: the records with the key ship, then the records whose key names no step of the block. In an execute block: the records of the execute state. Same item shape as steps[].instructions. Absent when the run has no record. ship_prepare, ship_state and execute_state instructions-next, instruction-record
DashboardPipeline.endLabel (endLabel) end of run (ship) for a ship block, end of run (execute) for an execute block. Absent when endInstructions is absent. Collector, not stored
steps[].detail.guardrails guardrailCounts of the plan state: total, error, and warning. plan_prepare
steps[].detail.explorers In a plan block: the explore-* writers of the plan run’s evidence store. In a ship block: the planExploreSummary of the ship state, and rounds from its planReviewRounds. plan_support evidence_record; ship_state cleanup-pipeline for planExploreSummary and planReviewRounds
steps[].detail.rounds, .maxRounds reviewRounds of the plan state. In a ship block: planReviewRounds of the ship state, which holds the same rows. maxRounds is the review-loop limit of the plan skill, not a stored value. plan_mark review-round; ship_state cleanup-pipeline for planReviewRounds
steps[].detail.roundTotals, .repairLimit, .outcomes From reviewRounds and reviewOutcome of the plan state. roundTotals holds iterations (the number of stored rounds), violations, fixes, and distinct. When every round has a findings list, violations and fixes count distinct finding IDs across all rounds, a finding counts as fixed when any round fixed it, and distinct is true. Else they are the sums of the found and fixed counts of the rounds, and distinct is false. repairLimit is derived, not stored: it is true when the last stored round has a number of at least the review-loop limit (5) and its merged status is Issues Found. outcomes is one {id, text, choice, reason} for each finding of reviewOutcome.findings, in stored order. plan_mark review-round, review-outcome
issues[].source, .severity, .text, .file, .line, .ref Failed ship steps, failed or partial waves, failed tasks that have an error, issues[] of the state file, review findings, review ledger files that cannot be used and a damaged healing.fixProgress (as state issues with no ref), a harden record that cannot be read or a ship state list that is not a list (as medium state issues), a cut harden list (as an info issue), and the stalled notice. source is step, wave, review, state, task, or pipeline. .file and .line are set for review issues only. ref is the step, wave, dimension, or task. Collector, derived. Inputs come from ship_state fail, the execute_state wave and task actions, and ledger_checkout
sessionId sessionId of the ship, execute or plan state; "" when unknown. A plan state gets its session ID from the record-mcp-invocation hook after each plan_prepare call. A review block has none. ship_prepare or ship_state init; execute_state init; hook record-mcp-invocation
pipelines[].t3ThreadId t3ThreadId of the ship, execute or plan state, the T3 Code thread of the process that created the run. The key is absent outside T3 Code and for a run that started before the stamping existed. The page filter #pipelines?thread=<id> reads it (see T3 Code). ship_prepare or ship_state init; execute_state init; plan_prepare (state init)
attention The newest open wait record of the pipeline session and branch. It holds kind (question or permission), askedAt, header, and text. Only a running pipeline with a sessionId has it. Absent when no wait is open. Hooks block-askuserquestion-auto, record-permission-wait
repos[].loneWaits[] Open waits that no shown running pipeline owns (same session ID and branch), newest first, max 50. [] when none. A wait record older than 24 hours is not listed. Each item has kind (question or permission), sessionId, toolUseId ("" for a permission), branch, header, text and askedAt. See Dismiss a wait. Hooks block-askuserquestion-auto, record-permission-wait
commitWaves commitWaves of the execute state; an absent key counts as true. A ship block gets it from its joined execute run. It is absent on a plan block, a review block, and a ship block with no joined execute run. execute_state init
repos[].history The 50 newest rows of .sdlc-v2/history/runs.jsonl, newest first. A row gives kind (the row’s skill), branch, outcome, startedAt, endedAt, durationMs, and totalMs. A ship row with a linked plan also gives planStartedAt and planDurationMs (from plan_started_at, plan_duration_ms). totalMs is ts minus plan_started_at for such a row, else durationMs. A plan_started_at that does not parse or is after ts counts as no linked plan. 0 means no value. startedAt is started_at, else ts minus duration_ms. A line that does not parse is skipped. ship_state history_record (outcome success, failure, or partial); ship_state fail (the first fail of a run appends a failure row); plan_mark done (a plan row with outcome done). history_record with detail.skill ship and detail.branch, and fail, copy plan_file, plan_started_at, and plan_duration_ms from the ship state linkedPlan
repos[].history[].planPaired, .planEndedAt A ship row with no valid stored plan time gets the plan time of the newest plan row of its branch that ended before the ship and after the previous ship of that branch. The plan row needs a start that parses, a duration_ms above 0, and a start that is not after the ship end. The ship row then gets planStartedAt, planDurationMs, a totalMs that counts from the plan start, planPaired set to true, and planEndedAt, the ts of that plan row. Both keys are absent otherwise. The pairing reads every line of runs.jsonl, so a plan row outside the newest 50 rows still pairs with a ship row inside them. Collector, not stored
issueCount, detailDeferred Page snapshot only. issueCount is the issue count of the run, absent when 0. detailDeferred is true for a completed or failed run, because its page snapshot has no step detail and no issue items. A run with another status loses no detail. Collector (slim step)
repos[].sessions[].commandGroups Absent in the page snapshot. GET /api/session-detail returns it. One {label, programs[], count, share, majority, lastAt} for each command group, over every command of the session, not only the newest 50 events. The largest group comes first. [] in the detail when the session has no command, never null. See Session command groups. Collector, derived from the command entries of the evidence files
repos[].deferred[] The open items of .sdlc-v2/history/deferred.json, high priority first, then oldest first. Each item has id, priority, description, created, source, severity, file, line, and reason. A value that the record lacks is "", or 0 for line, never null. ship_state defer and deferred_add; execute_state issue-draft
repos[].warnings Read problems that do not block an archive: an unread preplan folder or topic file, a **Started:** line that does not parse, a count of topic files older than the newest 100, an unread runs.jsonl or execute state for plan times, an unread attention folder (Attention folder unread: ...), a count of open waits older than the newest 50 lone waits (N older open waits not shown), a topic file of more than 262144 bytes (256 KiB) (Preplan <slug> summary not read: the file is <n> bytes, the limit is 262144 bytes, where <n> is the size of the file), a link to a regular file in place of a topic file (Preplan <slug> summary not read: not a regular file), a summary read that failed (Preplan <slug> summary not read: <error>, where <error> is the error text of the operating system). Each of these three summary not read warnings keeps the row and sets all six unread names of repos[].preplans[]. [] when none, never null. Collector, derived
repos[].preplans[] The newest 100 .md files of .sdlc-v2/preplan/, newest first, ties by slug. Each item has slug (the file name without .md), topic, status, path, updatedAt (the change time of the file), durationMs, goal, live, kept, dropped, lastCheckAt, openQuestions, gaps, smallestCut, and unread. The collector finds topic, status, and the Started line in the first 4 KiB (4096 bytes) of each file. It ignores the rest of the file for these three. It reads the whole file for the summary fields (goal to unread), up to 256 KiB (262144 bytes). A file of more than 256 KiB is not read: the row stays, all six unread names are set, and the file adds one warning (see repos[].warnings). A file that went away after the head read has no row and adds no warning. topic is the text after # Preplan:, else the slug. status is the text after **Status:**, else "". Both are redacted and cut at 120 characters, like the timeline text. durationMs is a number of milliseconds, always present: the change time of the file minus the UTC RFC 3339 time on the **Started:** line. A status change or any other edit moves the change time, so the value grows with each change; it is not the time spent on the topic. It is 0 when the file has no Started line, when the line does not parse, or when the start is equal to or later than the change time. A line that does not parse also adds the warning Preplan <slug> start time not read: "<text>" (expected RFC 3339; duration shown as 0). A missing line adds no warning. [] when none, never null. goal is the first sentence of ## Goal (the text of its first paragraph up to the first period followed by a space, else the whole first paragraph), redacted and cut at 120 characters, and "" when the section is absent or empty. live, kept, and dropped count the rows of the ## Decisions table. live is every row that starts with neither Dropped: nor Moved:. kept is the live rows whose Reason holds Kept with warning:. dropped is the rows that start with Dropped:. A Moved: row is in no count. lastCheckAt is the Last check: time of the **Guardrail check:** line, as a UTC RFC 3339 time, and "" when unread or never checked. The collector finds that line in the first 4 KiB of the file and ignores the rest of the file for it. openQuestions is the number of bullets in ## Open questions, and 0 when the section is absent. gaps names each skeleton section that is absent or empty, without ## . smallestCut is set when ## Decisions has a valid Smallest cut: line, else not set. unread lists the parts that the collector did not read or that failed the check, in this order: goal, proposals (live, kept, and dropped), smallestCut, lastCheck (lastCheckAt), openQuestions, and gaps. A section fails the check when its body breaks a rule of the format check that preplan_write uses (see Format rules). lastCheck is also unread when the **Guardrail check:** line in the first 4 KiB has no valid Last check: time, or when the file holds the legacy ## Guardrail check section. A file with no **Guardrail check:** line in the first 4 KiB and no legacy section was never checked: lastCheck is not unread and lastCheckAt is "". A check line that starts after the first 4 KiB counts as no line, as it does for preplan_check. A code fence that is open at the end of the file hides each ## heading after it. Then gaps is unread, and so is each part whose heading is not found: goal, proposals with smallestCut, or openQuestions. An absent heading with no open fence is not unread: its fields keep their empty values. The field of an unread part is empty: "", 0, [], or not set. gaps and unread are [] when empty, never null. plan_support preplan_context (skeleton and Started line), then the preplan skill through preplan_write and preplan_check
pipelines[].planStartedAt Ship blocks only: linkedPlan.startedAt of the ship state, else the started_at of the joined plan row (see How runs join a ship block). Absent when no plan is linked. ship_state complete-step of execute (linkedPlan); plan_mark done (the plan row)

Interrupted run or malformed harden record. A harden run writes a started record, then a done record that replaces it. The two cases below look alike on the page. Their causes and their fixes differ.

  • Interrupted run. The clusters[] row has phase started and interrupted: true. The record is valid. The cause is a session that ended between the two writes, or a done write that failed (see Ship state record). The ship state file needs no repair. A resume of the ship run does not run that cluster again. The harden step commits its leftover edits in its own commit, not the pipeline commit step. A started row is not interrupted while the harden step is in_progress and the run has no pipelineCompletedAt.
  • Malformed record. malformed counts it, and the page does not show it. The pipeline gets one medium state issue: healing.hardened of the ship state holds N record(s) that cannot be read — they are not shown in the harden step. A record is malformed when it is not an object; when phase is not started or done; when trigger is empty; when applied is not a list; when an applied[] or held[] entry is not an object or lacks surface, action or targetFile; when rationale or patch is not a string; when held is present and not a list; or when held[].reason is unknown. A healing.hardened value that is not a list counts as one malformed record, and it gives another medium state issue in place of the issue above: healing.hardened of the ship state is not a list (found <type>) — the harden step does not show its run records. <type> is the JSON type found, for example object or null. healing_record stores the valid form, so the cause is a ship state file that was edited by hand, damaged, or written by another tool. To fix it, correct the record to the form in Ship state record, or remove it.

The rules of the other fields:

  • Limits. The page reads the first 50 valid run records. edits[] and held[] come only from those records. Each of edits[], held[] and timeline[] holds at most 100 rows. A cut list adds one info state issue: N harden <list> rows not shown: the harden step shows the first L of M. <list> is run record, edit, held or timeline.

  • clusters[] and edits[]. clusters[].applied is a number: the count of applied[] entries in the run record, not the list. The entries are in edits[]. edits[].patchCut is true when the stored entry has patchCut: true (the writer cut the patch at 1536 bytes), or when the patch is longer than 1536 bytes after redaction and the page cuts it. The key is absent otherwise, and always absent for an edit with no patch.

  • funnel. It sorts the findings with the rules of harden_clusters. The findings are the healing.fixed records with no deferredId (verdict agree-will-fix), then the deferredFindings entries. An entry with an empty reason counts as below-threshold. The funnel shows what harden saw before its fix pass: it ignores fixedInRun, so an entry that the fix pass fixed still counts in fixNow. fixPass shows the result of the fix pass. The first three fields count findings, the last two count files:

    Field Counts
    fixNow below-threshold findings with a deferredId. The fix pass of the harden step fixes them.
    staysDeferred below-threshold findings with no deferredId, and needs-direction findings. They stay deferred.
    evidenceOnly disagree and wont-fix findings. Harden reads them as evidence only.
    suppressed Files over the cap of 5 clusters. The files with the fewest findings (ties by path) are not hardened.
    loneDisagree Files whose only finding is a disagree finding. They form no cluster.

    A healing.fixed record or agree-will-fix finding counts in none of the three finding fields. A file that has only below-threshold findings forms no cluster, so it is never suppressed. The funnel counts at most 500 findings. A longer input adds one info state issue: The harden funnel counts only the first 500 findings of the ship state. An entry that is not an object, and a deferredFindings entry with an unknown reason, is not counted; such entries add one medium state issue: N entries of healing.fixed and deferredFindings of the ship state cannot be read — the harden funnel does not count them. When healing.fixed or deferredFindings is present and not a list (null included), funnel is absent, and one medium state issue names the first bad field and the type found: <field> of the ship state is not a list (found <type>) — the harden step does not show its funnel. When healing is present and not an object (null is an empty object), funnel is absent, no run record is read, and one medium state issue says healing of the ship state is not an object (found <type>) — the harden step does not show its run records and funnel.

  • timeline. One row for each decision of step harden, in stored order. at is "" when the stored time is not RFC 3339. decision is redacted and cut at 120 characters. When decisions is not a list, timeline is [], fixPass is absent, and one medium state issue says decisions of the ship state is not a list (found <type>) — the harden step does not show its timeline.

  • fixPass. Present when a harden decision starts with fix pass started and the lists above are valid. fixed counts the deferredFindings entries with fixedInRun: true. total adds the entries that are not fixed yet, have a deferredId, and have the reason below-threshold or no reason.

  • held[].reason and .label. label is the page text of reason:

    reason label
    pending-stored stored as a deferred item
    pending-not-stored not stored — copy it by hand
    not-processed not processed — harden stopped

Deferred findings that the fix pass fixed. healing_record kind fixed with detail.deferredId sets fixedInRun:true on the deferredFindings entries with that id. The entry stays in the list. Four consumers skip such an entry, because the fix is counted once, under healing.fixed:

  • the review ledger: reportData.reviewLedger and reviewTotals of the dashboard
  • the count reportData.deferredFindings
  • the deferredFindings list of the ship report
  • the deferredFindings list of the execute report

Two consumers keep the entry:

  • the top-level deferredFindings array of the ship_state read response
  • reviewQueue, which does not read fixedInRun. It leaves out a deferred entry when a healing.fixProgress record pairs with it: the same deferredId, else the same file, line and title, else the only record on that file and line. It never reads healing.fixed.

Which step carries which detail

  • Execute block — each wave N step has waves with that one wave. A planned wave that has not started shows as pending. A last step named queued has the tasks that are in no planned wave.
  • Plan block — five steps: setup, explore, draft, review, and finalize. setup has guardrails. explore has explorers. review has rounds. The others have no detail.
  • Review block — one step for each dimension. A completed dimension has findings.
  • Ship block — the execute step gets all waves and queued from the joined execute run. The review step gets reviewTotals from the ship state, and dimensions and reviewPlan from the joined review run. The commit step has result when it completed with a nothing to commit result. When the ship state holds planExploreSummary, the collector adds a first step plan with explorers. When it also holds planReviewRounds, the step adds rounds and maxRounds. When the ship state holds linkedPlan, the plan step gets startedAt and completedAt from it, and the step is added when it is absent. A ship run with no linkedPlan gets the plan times from the joined plan row of runs.jsonl (see How runs join a ship block), the same row that the ship_state report action reads (shipPlanTimingFor). When the ship state holds a valid fix record, the received-review step has fixes. A review step that has reviewTotals also has reviewQueue: threshold, rows, unrouted and reason. When the review step has a queue, the page draws the fixes in the queue tile and draws no tile for the received-review step. On a completed run, the step shows completed. A row keeps its last status. A queued or fixing row on a completed run means that the fix pass stopped. The harden step has harden when the ship state holds healing.hardened or a decision of step harden.
  • Instructions — a ship or execute block only. Plan and review blocks have none. A step of a ship block gets the records of its key in instructions. The received-review step also gets the commit-fixes records. A step with records is a tile, also when it has no detail. The records of the key ship go to endInstructions, with the label end of run (ship). A record whose key names no step of the block goes there too. A standalone execute block gets its records in endInstructions, with the label end of run (execute). An execute run that a ship run started has no records, because ship passes --no-instructions to it. Each row shows a lamp for the status, the label <key> #<number> (<source>), the text cut to 60 characters, and the outcome. The title of the text holds the full text. The page sets the text and the outcome as text, never as markup. A damaged instructions list shows no row. The block then gets one issue with the ref instructions that names the damage.

How runs join a ship block

  • An execute run joins the ship run of the same branch whose run window holds the start of the execute run.
  • A review run joins the ship run named by the shipRunId of its run.meta. With no shipRunId, it joins the ship run of the same branch whose review step window holds the start of the review run.
  • When two ship runs match, the newest wins. A review folder with no run.meta joins no ship run and stays its own block.
  • review_prepare writes run.meta once, in the ledger folder: branch, startedAt, shipRunId, waves, and dimensions. A dry run writes no file. A folder with only run.meta turns stalled after 30 minutes. shipRunId is set only when the branch has a ship run whose review step is in progress. The file name has no .json suffix, so the collector does not read it as a dimension file. A review run that started before review_prepare wrote the file gets a run.meta from its first ledger_checkin, with no waves or dimensions.
  • The issues of a joined execute run go to the ship block with execute: before each ref. The issues of a joined review run go with their ref unchanged.
  • A plan row of runs.jsonl joins a ship run only when the ship state has no linkedPlan with a valid start. The ship state names its branch. The newest execute state of that branch names the plan file: its planPath, joined to its worktree when it is relative, and cleaned. Of the newest 100 rows of runs.jsonl, the plan rows (skill plan) whose cleaned plan_file equals that path match, and the newest match wins. There is no time window. A ship state with no branch, a branch with no execute state, an execute state with no planPath, and no matching row give no plan times. The row gives started_at as the plan start and last_modified_at as the plan end.

A state file written before a field existed does not fail the snapshot. The page shows less. An execute state without plannedTasks shows task ids without names, unless a wave stores the name. A ship state without planExploreSummary has no plan step when it also has no linkedPlan and no joined plan row. A ship state without planReviewRounds shows explorers only. A harden record written before rationale, patch and held existed shows the action, the surface and the file of each edit, and no held rows.

Lifetime of the source data

  • Ship stores the plan times at the execute step. complete-step (or legacy complete) of execute copies the start and the end of the linked plan run into the ship state key linkedPlan. The key survives cleanup-pipeline, which deletes the plan state, and the garbage collection of plan states. The history rows of the run copy the plan fields from it.

  • The plan row join is a fallback for old runs. A ship run that completed its execute step before linkedPlan existed has no key. Its plan times come from the joined plan row of runs.jsonl while that row is in the newest 100 rows.

  • Review ledgers stay after the review. The review skill does not remove its ledger folder, because the dashboard reads it to show the review dimensions. The folder stays until the first execute_state gc or ship_state cleanup-pipeline sweep after 7 days. That sweep removes it. 7 days is the default of state.gc.ttlDays. A completed review leaves the page 4 days after its last update. With the default TTL, the first sweep after the TTL removes its folder later than that.

  • Ship stores the explorer summary and the review rounds at cleanup. The explorer findings of a plan run live in its .evidence directory, and cleanup-pipeline deletes that directory with the plan state file. Before it deletes them, cleanup-pipeline copies the explorer summary into the ship state key planExploreSummary: one {name, status, total, top[]} entry for each explorer, with at most 5 findings in top. It does this only after the ship report exists. If the copy fails, it deletes nothing, and planRun.reason starts with explorer summary and review rounds not saved: . It also copies the plan state reviewRounds into planReviewRounds, when the plan run has rounds, in the same ship state write. A retry keeps a stored list of rounds. After that write, planRun carries exploreSummaryCount and reviewRoundsCount: the number of entries the ship state now holds in each key.