← Back to Pull requests

feat(studio): let people read an event model as a waterfall of steps #196

Closed
unknown closed this pull request without merging on Oct 20, 2026 03:33 UTC
View on GitHub
unknown unknown commented on Oct 19, 2026 23:15 UTC
Author

Summary

The Board shows where each entity sits. It does not show the order in which a storyboard runs, or which object types depend on each other. The new Waterfall view lists every step in slice order under numbered slice columns. Readers can follow a storyboard from top to bottom and see where storyboards share steps.

What changes

  • A new Waterfall tab (?view=waterfall). It shows only when the model has at least one slice, the same rule as Plan.

  • By storyboard: each storyboard is a group of steps in slice order. The first storyboard to reach an entity owns it. A later storyboard shows a "joins" row that jumps to the owner. Steps that no storyboard reaches go in a last group, "Not in a storyboard", in happens-next order.

  • By object type: rows group by the Board's lane and kind, in flow order. When one kind fills several lanes, the group title names the lane. A gutter on the left draws one cable per pair of groups with its link count. An open group splits its end into one fiber per entity.

  • Rows mark every slice where an entity occurs. A bar runs to the last slice that reads that occurrence.

  • A code column bundles CodeRef annotations by repo and folder. It shows only when the model has code references.

  • Rows follow the current selection, the focus requests and the validation issue counts. A click selects the entity in the inspector.

  • layout.ts exposes the Board's lane rule and edge colors, so both views use one rule and cannot drift apart.
  • How to test

    1. In tsworkspace/webapps/studio, run pnpm lint, pnpm typecheck and pnpm test.
    2. Open a model that has storyboards and slices, for example one of the acme examples.
    3. Choose the Waterfall tab. Open all groups and check that each storyboard lists its steps in slice order.
    4. Click a "joins" row. The view scrolls to the group that owns the step.
    5. Click a row title. The inspector opens that entity and the row stays highlighted.
    6. Switch to By object type. Open a group and check that its cable splits into one fiber per entity.
    7. Open a model with no slices. The Waterfall tab is not offered.

    Known limits

  • The mode and the open groups live in component state, not in the URL.

  • A selected edge does not highlight anything in this view. Only entity selections do.

  • There is no row virtualization. "Open all" on a model with hundreds of entities renders every row.

  • Code bundles use the first 2 folder levels. Deep monorepo layouts can bundle too coarsely or too finely.
  • <!-- codesmith:footer -->
    ---
    <a href="https://app.blacksmith.sh/TrogonStack/codesmith/atlas/pr/196?autoLogin=true&ref=codesmith_pr_footer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v3.svg"><img alt="View with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"></picture></a> <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1795043730&installation_model_id=437969&pr_number=196&ref=codesmith_pr_footer&repository=TrogonStack%2Fatlas&return_to=https%3A%2F%2Fgithub.com%2FTrogonStack%2Fatlas%2Fpull%2F196&signature=b46458122ef29a105eaf0a66f4f9d0c03fd532636c416183950589f325db2a34"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
    <sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup>

    <!-- codesmith:autofix:disabled -->
    <!-- /codesmith:footer -->

    Diff: 494 lines (+370 / -124) across 6 files Reviewer: yordis Review duration: 258m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.47) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 494 lines diff across 6 files
    0.47
    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.371
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #196"
    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: 47.4% (MEDIUM) · Higher = larger blast radius
    47.4%
    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: 20.5% · Safe to merge
    20.5%