Repository navigation
feat(perception): perception/interact, a persistent browser session a citizen drives and sees after each step (card 3569675f) - #4551
Merged
Conversation
joelteply
added a commit
that referenced
this pull request
Sep 28, 2026
…ed it, and opens only http(s) pages (Fable on #4551) - The core stamps the VERIFIED caller into provided params as _callerPeerId (runtime::provided_provider::with_verified_caller, on both the socket and the persona route), removing any value the request supplied. A session records its opener and refuses interact or close from anyone else, so a handle pasted into a room cannot let another citizen drive her logged-in job-site session. - target and goto must be http(s): a file:// page would render local files (config.env, keys) into her observation. Public pages stay open. Evidence: eye-node typechecks under Node 22; the real-browser run now also shows another caller refused ("belongs to another citizen") and file:// refused, with the owner's session unaffected. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
This was referenced Sep 28, 2026
joelteply
added a commit
that referenced
this pull request
Sep 28, 2026
… process, so a sibling test's child cannot hold its writer (card 64ca188f) (#4556) windows_launch::tests::detached_child_closes_unrelated_pipe_and_preserves_launch_contract makes an INHERITABLE pipe writer on purpose, to prove the detached child does not receive it. But std spawns every process with handle inheritance on, so any sibling test in the same binary that spawned a process during that window inherited the writer and held the pipe open, and the check failed on a child that was not the one under test. It failed on four heads on 2026-09-28 (#4540, #4550, #4551 and the canary tip a0c43bf, where a red tip makes the deploy tracker RefuseRed and blocks every deploy). The test now re-execs the test binary with --exact <itself> --test-threads=1 and a marker env var, and asserts that run succeeds; only the isolated run performs the check. Nothing else runs in that process, so nothing else can spawn while the inheritable writer exists. The check itself is unchanged. Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE Co-authored-by: Claude Opus 5.5 <[email protected]>
… citizen drives and sees after each step (card 3569675f) Joel: help Kimi screenshot and drive her own site, the same Playwright-style automation her product needs. observe and hot-edit reopen the page per call; nothing persona-callable could click, type or navigate across calls. - perception/interact (native, AiSafe, Provided): the first call opens a session at `target` and returns its handle with the observation; later calls pass `session` + `actions` (click, type, press, hover, goto) and get the page after them plus the before/after pixel delta. - perception/session-close (catalog only) releases a browser early. - The eye-node holds sessions behind handles (interactAdapter.ts): at most 8 open, a ninth refused with the reason, idle ones closed after 10 minutes, all closed on stop, and a failed step keeps the page. - DomSurface gains `goto`, navigating the same live page. - Typed PerceptionAction (a closed serde enum matching the DomAction kinds), bindings in protocol/typescript/perception, README and PERCEPTION-SURFACE step 5 updated. Evidence: eye-node and perception typecheck under Node 22; a real-browser run through InteractSessions -> PerceptionSession -> DomSurface -> Playwright (installed Chrome) opened a local page, typed and clicked (the h1 read "approved: rust", delta 0.995), navigated with goto, and closed the browser. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…ed it, and opens only http(s) pages (Fable on #4551) - The core stamps the VERIFIED caller into provided params as _callerPeerId (runtime::provided_provider::with_verified_caller, on both the socket and the persona route), removing any value the request supplied. A session records its opener and refuses interact or close from anyone else, so a handle pasted into a room cannot let another citizen drive her logged-in job-site session. - target and goto must be http(s): a file:// page would render local files (config.env, keys) into her observation. Public pages stay open. Evidence: eye-node typechecks under Node 22; the real-browser run now also shows another caller refused ("belongs to another citizen") and file:// refused, with the owner's session unaffected. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
force-pushed
the
feat/perception-session
branch
from
September 29, 2026 00:02
ddedb18 to
01f8f74
Compare
…3610 over work/create (#4551 rebase) The rebase onto #4550 put perception/interact on top of work/create; CI measured the combined surface at 13610 guard tokens (ceiling was 13500). Pinned to the measured sum, not a rounded guess. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
This was referenced Sep 29, 2026
joelteply
added a commit
that referenced
this pull request
Sep 29, 2026
…batch tip, naming #4557's wording (#4568) Canary ac65b92 is red: the batch combined #4551's 13610 pin (measured with work/create and perception/interact) with #4557's work/submit help text, +14 tokens. The words are the fix for Kimi's stalled submit, so the ceiling is re-pinned to the measured value with the addition named, per the test's own instruction. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Sep 29, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Card 3569675f (first slice). Joel asked: "we actually need to help her do screenshots and stuff. Continuum could help here. It's gonna do similar playwright automation."
The gap
Continuum already had the capability:
@continuum/perception'sPerceptionSessionover a PlaywrightDomSurface(pixels, element tree, and a driver). But no persona-callable command could act on a page across calls.perception/observeandperception/hot-editreopen the page every time. So a citizen couldn't click through her own site's flow, couldn't produce visual evidence that a slice works, and her product had no Continuum verb for the job-site automation it needs.What this adds
perception/interact(native, AiSafe,Provided, served by an eye-node):target: it opens a session and returns asessionhandle with the page's image and element tree.sessionandactions(click,type,press,hover,goto, with CSS selectors aimed at the tree) and return the page after them plusdelta, the before/after pixel fraction.perception/session-close(catalog only): releases a browser early.apps/eye-node/src/interactAdapter.ts):PerceptionSession;stop();DomSurfacegainsgoto, which navigates the same live page with its cookies and storage kept.PerceptionActionis a closed serde enum that mirrors theDomActionkinds. Bindings are inprotocol/typescript/perception/. The eye-node README and PERCEPTION-SURFACE.md §7 step 5 are updated.Evidence
Per Joel's rule today (done means evidence it ran):
tsc --noEmitpasses forapps/eye-node(including the new spec) andpackages/perception, under Node 22.InteractSessions→PerceptionSession→DomSurface→ Playwright, with the IntelMac's installed Chrome, against a local page:interactAdapter.spec.tscovers persist, bounds, idle expiry, a failed step keeping the page, and the action mapping, using a fake session. I couldn't run it on the IntelMac: its vitest bundler has no darwin-x64 native binding in the shared install. It typechecks.Gaps this exposes (follow-up cards)
ci.ymltargets the legacysrc/tree, and no required check runsapps/eye-nodeorpackages/perceptiontypecheck or tests. So TS changes like this one ship verified only by whoever ran them locally. A required typecheck-and-vitest job for the workspace packages would close that.npx.cmdspawn; the eye reaper kills Playwright browsers) may keep this from working on Kimi's node. That needs checking there before she relies on it.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE