Skip to content
C.W.K.
Stream
Lesson 02 of 04 · published

One Locked WebView, Not a Browser

~11 min · webview, renderer, trust

Level 0Cold Stick
0 XP0/41 lessons0/14 achievements
0/100 XP to next level100 XP to go0% complete

Presentation Is a Guest

The conversation paints in one locked primary web view. Script talks only to the host bridge. The store is nonpersistent. Navigation is not a feature. This is not 'a web app in a shell.' A web app in a shell can wander, cache, and grow a second backend. A locked view can draw Markdown and cards the record already made durable.

Family chrome — a Sidekick — occupies a second isolated view when it is available. Different configuration, different origin, read-only host context, no engine pipe, no permission capability, no prompt submission. When that sibling surface is down, the coding client stays fully usable and the dock tells the truth. Engine runtime-zero is untouched: the engine still consults no one. The dock is optional client furniture.

Two views, two trust zones. Mixing them is how a chat widget becomes an execution path. The renderer never authorizes a tool.

What the Renderer Must Not Own

Elapsed time, permission cards, and review folds are projections of the record. A client reducer that 'helps' by keeping its own copy of the turn will drift the first time a child dies. The window recovers from the notebook, or it is lying. A renderer that caches the last pretty Markdown and replays it after a child restart is inventing a turn the record never wrote.

Code

What each view may touch·text
PRIMARY VIEW    draw the fold; talk to the host bridge only
SIDEKICK VIEW   read-only sibling chrome; no engine pipe
HOST            permissions, files, PTY, child lifecycle
ENGINE          the only writer of the notebook

External links

Exercise

Draw the three views — conversation, optional sibling chrome, preview — and mark which of them may submit a prompt. Only the host, through the engine child, may. If your drawing lets the preview talk, erase that arrow.
Hint
An arrow from preview to engine is a second product.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.