Skip to content

Change Control, Drafts & Semantic Merge

Domain models evolve continuously alongside production data and handwritten business logic. Perlite Studio’s Change Control Bar and Draft Review Studio go beyond line-by-line file diffs with semantic impact analysis — isolating active edits in draft sandboxes and tracing every change across entities, screens, state machines, views, and action points.


1. Protected Published Baseline & Isolated Draft Sandboxes

The Change Control Bar along the bottom of Studio protects Published Model (main) by default:

  • Auto-Draft Branching: Whenever an edit begins while viewing Published Model · Protected - Auto-Draft, Studio prompts to fork a named Draft (such as Dispatch SLA Escalation), keeping main clean until changes pass review.
  • Per-Draft Database Sandboxes: Switching between drafts automatically stashes and swaps an isolated SQLite sandbox database so new attributes, seed datasets, and test migrations execute cleanly per draft without affecting other workstreams.
  • Save & Share: Checkpoints unshared draft modifications into version control and keeps distributed collaborators synchronized.
Draft Review Studio inspecting the Dispatch SLA Escalation draft with Safe change summary, Before vs Active Draft JSON diff, Ripple & Blast Radius check, and Publish to Main controls

Draft Review Studio comparing the active draft against Published Model (main) with risk tiers, item inspection, and blast-radius verification.


2. Semantic Impact Analysis, Blast Radius & Auto-Cascading Renames

Click ⌃ Review Changes for a compact drawer or ⤢ Review & Merge to open the full Draft Review Studio:

  • Three Semantic Risk Tiers: Every change is categorized automatically in the left rail:
    • 🔴 Breaking: Structural deletions or type changes that break screen bindings, foreign-key relations, views, state machines, scenarios, or drop persisted data. Publishing stays gated until breaking items are resolved.
    • 🟡 Developer Review (Dependent): Changes touching custom TypeScript action points or inherited trait behaviors where engineer sign-off ensures handwritten code stays aligned.
    • 🟢 Safe: Additive fields, new capabilities, non-destructive constraints, and auto-cascaded references.
  • Before vs Active Draft Inspector & Jump-to-Studio: Inspect structured property diffs cleanly side by side, click ↗ Open in Studio to navigate straight to the target entity or screen, or click ↩ Revert This Change selectively per item.
  • 1-Click Auto-Cascading Renames: When an attribute rename triggers broken references on downstream panels, state machines, logic blocks, or scenarios, Draft Review offers an automatic Cascade Rename action that updates every affected binding across the workspace cleanly.
  • Client Impact Report (Markdown): Switch to the Impact Report Markdown tab (or click 📄 Generate Impact Report) to copy a stakeholder-ready summary of model changes, affected screens, and affected entities.

3. Three-Way Model & Code Merge, Publishing & Pull Requests

When multiple collaborators work concurrently from main:

  1. 🔄 Sync with Published: Pulls upstream updates into your draft branch. Clean non-overlapping model edits merge structurally at element granularity.
  2. Three-Way Visual & Code Conflict Resolution: Structural collisions (property_collision, delete_modify, add_add_collision) surface side-by-side ours / theirs / custom cards (MergeConflictCard), while custom TypeScript collisions open an interactive three-way code merge view (CodeConflictMergeView).
  3. 🚀 Publish to Main or 🔗 Submit Pull Request: Once 0 Breaking and 0 Merge Conflicts remain, click Publish to Main (sealing any schema migrations automatically) or connect Git & GitHub to raise a tracked Pull Request enriched with the Markdown Impact Report.

4. Guided Example — Reviewing Impact & Publishing Cleanly

Guided Build · Step 8 of 8
Draft Sandboxing, Risk-Tiered Diffs & Publishing to Main
Previously in this build: In Step 7 you verified WorkOrderDispatchLifecycle end to end inside Scenario Studio with clean SQLite snapshot restoration.
✅ Checkpoint:WorkOrder.escalationNotes classifies as 🟢 Safe with 0 Breaking items and promotes cleanly to Published Model (main).
Primary TrackFork a Dispatch SLA Escalation draft from main, extend WorkOrder with an optional escalationNotes field, confirm 0 Breaking changes in Draft Review Studio, and inspect the generated Prisma/Service targets.
  1. Create the Dispatch SLA Escalation Draft: Add an optional escalationNotes (String) attribute on WorkOrder while viewing Published Model — Studio forks an isolated draft branch and database sandbox automatically.
  2. Inspect Risk Classification & Blast Radius in Review & Merge: Click ⤢ Review & Merge on the Change Control Bar and verify WorkOrder.escalationNotes registers as 🟢 Safe with zero downstream screen or relation breakage.
  3. Inspect Impact Report & Publish to Main: Switch to the Impact Report Markdown tab to preview the summary, then click 🚀 Publish to Main cleanly.
Draft Review Studio verifying Safe impact classification and zero blast-radius ripples before publishing.
Guided Build: Step 8 of 8
You have completed all 8 Guided Build steps across Pillar 1 (Platform & Studio)! Continue into Security, Compliance & Deployment or Enterprise Reference Suites next.