Skip to content

Rebuild the execution boundary demo and give it its own page - #130

Merged
arpanghoshal merged 2 commits into
mainfrom
docs-execution-boundary-demo
Sep 8, 2026
Merged

Rebuild the execution boundary demo and give it its own page#130
arpanghoshal merged 2 commits into
mainfrom
docs-execution-boundary-demo

Conversation

@arpanghoshal

Copy link
Copy Markdown
Member

What changed

The demo now says which part is the model and which part is CTRLRun. The explorer opens with three lanes — the LLM decides what to do, CTRLRun decides whether it may run, the real system is where it becomes real — and every outcome pairs what the LLM believed against what CTRLRun did. That pairing is the whole point: "the call errored, so it failed" next to "an error is not evidence of failure" explains the product faster than any paragraph on the page.

A refusal is now attributable to a check. Under the request sits the ladder — authority, policy, approval binding, effect reservation, outcome — with the check that stopped the action marked, and a note per check saying what it found. Each outcome also carries the line the caller's own code would see (raise ApprovalMismatch(...)) and a link to the concept page behind it.

Every scenario is addressable. ?domain=&action=&situation= is read on mount, a share row hands over the link, and /try hosts the same explorer as a page of its own. The home page section stays exactly where it was. All 48 domains are still browsable; six quick chips sit above the picker for the common ones.

A plain-English "how it works" section on the home page (#how-it-works) says where CTRLRun sits, in four steps, and hands off to /docs/ARCHITECTURE for the internals. It ends by naming what CTRLRun is not: it does not read prompts, choose models, rank tools, or judge the agent's reasoning.

Cross-links between the two demos. /try illustrates the decisions and says so on the page; /docs/try-it runs the released wheel in the tab. Each now points at the other, and the difference is stated rather than implied.

Medical affairs: the build map is <details open> rather than hidden behind a summary.

Link checker: /try?situation=uncertain was reported as a missing page. A query string is not part of a path. Stripped in _resolve and in the planned-page lookup, with a test asserting both directions — the working link resolves, and a genuinely missing page carrying a query still fails.

Verified

  • pytest tests/ — 4446 passed, 47 skipped.
  • Rendered under mint dev and driven with Playwright: the deep link lands on the right scenario through a client-side navigation, the approve → execute → retry → duplicate flow runs, dark mode and 390px both hold, no console errors.
  • The completed outcome no longer claims an approval was consumed on the path where none was required.

The demo said what CTRLRun decided and never said what it was deciding
instead of. A reader arriving from an agent framework could not tell which
part of the picture was their model and which part was this library, so the
whole thing read as one more layer of the same kind. Three changes fix that.

The explorer opens with three lanes -- the LLM decides what to do, CTRLRun
decides whether it may run, the real system is where it becomes real -- and
every outcome now pairs what the model believed against what the kernel did.
Under the request sits the ladder of checks in order, marking which one
stopped the action, so a refusal is attributable to a check rather than
appearing as a verdict from nowhere. Each outcome carries the line the
caller's own code would see and a link to the concept page behind it.

Every scenario is now addressable. `?domain=&action=&situation=` is read on
mount, the share row hands over the link, and `/try` hosts the same explorer
as a page of its own -- the home page section stays where it is. The lost
response section links into the case it describes rather than only naming it.

A new home page section says where CTRLRun sits in plain English and hands
off to the architecture for the internals, and the medical affairs build map
opens rather than hiding behind a summary.

The link checker was reporting `/try?situation=uncertain` as a missing page:
a query string is not part of a path, and the strip is tested in both
directions so a genuinely missing page carrying a query still fails.
@mintlify

mintlify Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
ctrlrun 🟢 Ready View Preview Sep 8, 2026, 12:01 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@arpanghoshal
arpanghoshal merged commit 555db78 into main Sep 8, 2026
11 checks passed
@arpanghoshal
arpanghoshal deleted the docs-execution-boundary-demo branch September 8, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant