M35: studio app blocks (the app, hud's questions and gates as attention) #85
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blocked by: #73 (M34: gate cards, gate attention as a type, the phone's gates-first sheet) and #75 (approve as a person). From: S22 (
spikes/s22-apps, PLAN's "Studio apps track": go).Studio apps track. A studio box (arugula-salad's studio, or planter's on Fountain) as a block: the app in the frame, and everything the box waits on as illogical attention. That means its agent's questions and its chant gates. A box's repo is a chant workspace, but illogical reads it through hud in the box, never by running chant there: illogical can't run commands in a hosted box, and a full chant read (about 7.5 CPU-s) is too much for a 2 GB box when hud already pays it and pushes changes.
{box url, app name, studio}. The frame is the box itself (it's already its own origin, so no block site or proxy). S22:illogical open <entry link>worked once the cookie was partitioned./__enterlink (POST /api/apps/:name/openis passkey-session only today). For studio.box_next) asSameSite=None; Secure; Partitioned. Without it the frame gets 401 in Chrome and Firefox; with it, 200, including Chrome with third-party cookies blocked. For studio (door-patch.shis the stand-in). Check on purpose that hud's write routes still refuse cross-origin JSON withNone.bridge.mjs, into the daemon):/__hud/api/chat/streamfor each of/__hud/api/tabs;hud-chat-queueframe'squestionbecomes an ask on the block itself,source: "hud", project from the box's repo, not the follower's cwd;/__hud/api/chat/answer; a question gone from the queue withdraws the card.Api::Ask(and soPOST /api/panes/{id}/ask) to take browser blocks. It's terminal-only today (no terminal %2).GET /__hud/api/work, which readsworkspace statusand so has every gate, whoever ran it), refreshed when hud's live feed changes (/__hud/api/live/stream), not polled;source: hud).POST /__hud/api/deploy/runs/:id/approve; those runs live in memory). A gate from the steward's or a terminal'schant run releasehas no hud route. Either hud gets one (approvefor any pending gate inworkspace status,--actorfrom its roster), or Approve opens hud's work page in the frame. For hud.hud share --role player), or hud trusting a follower's "answered in illogical by X". View-only guests are refused./__enter?…&to=/__hud/work). Record review stays hud's (ws-052).app, project the box's app; the box's questions and gates bundle with it.illogical app [NAME], and an MCPopen_app.POST /api/apps); a terminal into the box when it's on your own wispd.Tests: the follower against a fake hud (queue frames, answer, withdraw, expiry); a daemon test for an ask on a browser block; an e2e with a fake box (a page plus hud's routes) framed from another site.
Done when: on geek, a real studio box opens as a block from the picker; its agent's question shows on the swarm's rail and on the phone; answering in illogical carries on the agent's turn, with hud naming who answered; a release waiting at
shipshows as attention and can be approved; and the block comes back after a daemon restart without a stored link.Found on the way (arugula-salad, for Jake to file): hud's panel never mounts on the template's page, framed or not (the client is injected in
<head>and looks for<body>); a template clone on geek getswidgets.wtfwhile~/box/domainsaysstudio.arugula.io.Merged into local main as
edddc1a(branchm35-studio-apps; CI green on linux 808 and macos 810), with the PLAN as-built section at71d955d. Not pushed by this run."Done when" was met on geek against a throwaway box (
ilg-m35-a, cloned from arugula-box-template, with hud and the door built from the PRs below) and a throwaway studio from studio#292:ship: it showed as attention and was approved from the phone. chant's ledger saysresolvedBy: "jhgaylor".Who answered: decided as hud's trusted follower (hud#736,
onBehalfOf), as #75's rule requires.Needs Jake before it works against the real studio: merging and deploying arugula-salad/hud#734, #735 and #736 and arugula-salad/studio#291 and #292, then a personal token from the real studio (
illogical studio login) and a follower link per app (hud share --role follower→illogical studio follower APP).Details and the gaps (a real phone, a second device, WebKit, planter) are in PLAN.md's "M35: as built". Tracker: #86.
Shipped in v0.7.0 (tag on
84b5e9b; geek, jake-mini and jake-air upgraded). Tracker: #86.