← Back to Pull requests

feat(studio): let people see each event stream as a tower in 3D #200

Closed
unknown closed this pull request without merging on Oct 20, 2026 03:45 UTC
View on GitHub
unknown unknown commented on Oct 20, 2026 01:32 UTC
Author

This view reuses the 3D renderer from #199, so this PR carries the #199 commit until #199 merges. Review only the last commit.

Summary

The Board puts each stream in a lane, but a reader cannot see a stream's history as one stack, or which commands write to it and which read models read from it. The new Stream towers tab makes each stream lane a tower. Its events stack as floors from the bottom up, in storyboard and slice order. Floors line up across towers, so one height is one Board column. The view is read only.

What changes

  • Tab: ?view=towers, labelled "Stream towers". It shows when some swimlane holds an event and the board is not a saved snapshot.

  • Layout: src/lib/towers.ts reads the Board's layout. Commands that append to a stream sit on its left. Read models that project from it sit on its right, linked from their events. Automations stand in front of the stream their command appends to. Events without a swimlane get a tower marked "No swimlane", as on the Board.

  • Links: within a tower a link bulges away from the axis. Across towers a link arcs up and toward the viewer.

  • Reuse: the view uses the Lane mesh renderer, ports, selection, focus, camera presets and empty states. The stepper stops only at slices that put something on a tower.

  • Both 3D views: the names of nodes that a selection fades now fade with them.

  • The tab check (hasStreamEvents) lives in model.ts, so the towers code stays out of the Board's chunk.
  • How to test

    1. In tsworkspace/webapps/studio, run pnpm lint, pnpm typecheck, pnpm test and pnpm build.
    2. Apply the Acme storefront example and open the "Stream towers" tab. There are three towers: Cart, Order and Fulfillment.
    3. Select "Order status". All three occurrences light up, with the links from their source events.
    4. Open the customer data deletion example. It draws one tower.

    Known limits

  • Screens and personas belong to no stream, so the view leaves them out.

  • The towers view has no code wall.

  • In a model with more than 50 slices, the towers get tall.
  • <!-- codesmith:footer -->
    ---
    <a href="https://app.blacksmith.sh/TrogonStack/codesmith/atlas/pr/200?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=1795051938&installation_model_id=437969&pr_number=200&ref=codesmith_pr_footer&repository=TrogonStack%2Fatlas&return_to=https%3A%2F%2Fgithub.com%2FTrogonStack%2Fatlas%2Fpull%2F200&signature=c0123491b82cbd8c6157a125a02bdf54b61806220896deeb0527450b32bd28e7"><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: 439 lines (+329 / -110) across 5 files Reviewer: yordis Review duration: 132m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.45) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 439 lines diff across 5 files
    0.45
    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.364
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #200"
    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: 45.3% (MEDIUM) · Higher = larger blast radius
    45.3%
    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: 19.6% · Safe to merge
    19.6%