← Back to Pull requests

fix(execution): on the default flow the ladder shows each slice's recorded status and says when nothing records a build #2872

Closed
unknown closed this pull request without merging on Nov 10, 2026 04:21 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 01:27 UTC
Author

Refs #2761. Thanks to @ziadeh for the careful report, which proved the mechanism by adding the missing rows by hand. This
takes the report's second suggestion (the view says which answers come from missing records) and its third in part
(a stated limit for work that isn't a Git commit). Teams aren't asked to record more, so the issue stays open for the
reporter to judge.

What changes


On the default flow a team records each slice's status: word, not plan lock, candidate:<sha> rows, review artifacts
or a worktree_path= row. The execution view reads only those heavier records, so a finished mission read as all
false or INDETERMINATE. Built, reviewed and merged already read INDETERMINATE ("not recorded"), not false; plan
lock read false without saying why.

  • Each slice's recorded status, beside its ladder. q4_ladder[].recorded_status is { word, bucket, basis }: the

  • status: word from the slice's own node file (SPEC.md, or a legacy README.md), and the bucket that word falls in
    (done, shipped, promoted, closed… are done).
    - It's testimony: it never turns a rung true and never makes a slice next-up, which still reads the merged rung.
    - With no status:, it's { word: null, bucket: null, basis: "no status: in SPEC.md frontmatter" }, not "draft" and
    not "not done".
    - The bucket comes from the slice indexer's own table, now exported as sliceStatusBucket, so a word buckets the same
    everywhere.
    - Like the scopes views, it never reads PROGRESS.md. GET /api/slices lets a status: in PROGRESS.md frontmatter
    override the node file's, so a status kept only there shows in that list and not here. The scaffold's PROGRESS.md
    has no frontmatter, and rig scope slice ship and close write the node file.
  • One line for the mission. q4_records counts slices with a candidate:<sha> row and with a merged:<pr> report,

  • names the repository context, and says in its basis when nothing records a build: "built, reviewed and merged read
    INDETERMINATE: not recorded, which is not the same as not done".
  • Plan lock says why it's false. The basis now names plan lock as a heavier-flow step, so a default-flow slice reads

  • false here whatever its recorded status. The value is unchanged: nothing but the display reads it, and a team that
    does plan-lock keeps the real "not approved" signal.
  • The TUI's mission view read only the exact word done as declared done, so slices marked shipped-to-<mission>

  • (rig scope slice ship), closed-<reason> (rig scope slice close) or promoted read "planned".
    - It now uses the served bucket. An older daemon that serves none keeps the old rule.
    - The slice strip's "next" says "none — declared <word>" for the same words.
    - The evidence page shows the mission's records line.
  • Docs: one paragraph in sdlc-conventions.md Part A says what the view shows on this flow, and that built means a

  • Git commit.

    Cost


  • Source: +54/−13 over 3 files:

  • - daemon/src/domain/execution-view.ts +28/−3;
    - daemon/src/domain/slices/slice-indexer.ts +13/−8 (the bucket rule moved into an exported function, unchanged);
    - tui/src/execution/execution-model.ts +13/−2.
  • Tests: +197 over 2 new files.

  • Docs: +12.

  • No new settings, routes, refusals, error codes or stored state. Two response fields are added; nothing is removed

  • or renamed.

    Tests


  • packages/daemon/test/execution-view-default-flow.test.ts, 5 cells: a mission finished on the default flow

  • (done, shipped-to-release-1, Closed, and one slice with no status), with rows that name the mission and carry no
    build records.
    - recorded status and bucket per slice, and the no-status case;
    - a status kept only in PROGRESS.md isn't read;
    - the mission's records line;
    - every rung and next-up unchanged by the status, and plan lock's basis;
    - the counts when a team does record a candidate and a merge report.
  • packages/tui/test/execution-default-flow.test.ts, 4 cells:

  • - done-bucket words read declared done;
    - the strip's next for a shipped slice;
    - the evidence page's records line;
    - an older daemon keeps the old rule (the control).
  • Red first, through CI: the first commit (e15cebdf) added the cells alone.

  • - Daemon: the 4 cells failed on their first assertions (no recorded_status; no q4_records, twice; plan lock's
    old basis). The other 1,381 files passed.
    - TUI: 3 cells failed, with the mission view reading "3 slices · 3 planned" and the strip and evidence lines missing.
    The older-daemon control passed, as did the other 130 files.
  • Green at e086fd34: all 15 checks. Daemon 1,382 files (26,645 tests), TUI 131 files (1,212 tests), CLI, UI,

  • typecheck, build and the installed scenario.
  • 9f40c2ff names the status's file and adds the PROGRESS.md cell; its run is in progress.
  • Limits


  • Built and merged still need the heavier flow's records (a candidate:<sha> row and a worktree_path= row) to

  • read true; this change says they're missing rather than reading them from somewhere else.
  • A team's own slice names in slice: tags don't join a slice folder (#2725, separate).

  • Work that isn't a Git commit never reads built.
  • 🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    The execution view now shows each slice’s recorded status and bucket separately from ladder progress. Recorded status does not change plan-lock or next-up information.
    Evidence details now show candidate and merge-report counts, repository context, and the basis for build-record availability. Declared-done statuses are reflected in the execution view.
    Documentation
    Clarified how recorded statuses, ladder progress, repository context, and build records are represented.
    Tests
    * Expanded coverage for status display, record counts, evidence details, and behavior when records are unavailable.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: mvschwarz Review duration: 174m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2872"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.5% · Safe to merge
    22.5%