Skip to content

feat(perception): hot-edit — hot css, no deployments, as a citizen tool - #2402

Merged
joelteply merged 1 commit into
canaryfrom
feat/hot-edit-capability
Aug 23, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/hot-edit-capability

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The third instrument of the engineer-loop: patch CSS on a live page, re-observe with craft facts, get the pixel delta. Real-browser-proven patch semantics; scene surfaces refuse loudly; persistent sessions named as next. 76 perception tests + ratchets green, both TS packages clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ss citizen tool

perception/hot-edit (AiSafe, native, Provided — ObserveCommand's shape
exactly): apply a CSS patch to a live page and re-observe, without
touching disk. Params target/css/viewport?/selector?; result = the same
flattened ObserveResult an observe returns (patched page's image +
structure + craft facts) plus appliedCss and delta {pixelsChanged,
totalPixels, ratio} — the money signal of the iterate-loop, per patch.

The eye-node opens the target, replaces the <style data-continuum-
hot-edit> layer wholesale (empty css clears; proven in a real browser),
re-observes at the caller's viewpoint so a selector-scoped delta frames
the same pixels. Scene surfaces refuse loudly for free (hotPatchCss is
DOM vocabulary; SceneSurface rejects foreign verbs). Stateless-but-
effective contract stated in the tool doc: the page reloads per call, so
she passes her FULL accumulated css each time; a persistent session table
(open-on-first-call, LRU eviction, handle on the wire) is the named next
step — the session machinery already supports it.

Agentic-surface ceiling re-pinned per the ratchet's own protocol:
descriptions SHRUNK first (238→191 tokens), growth stated plainly.

Built by a worktree agent (real-browser patch-replace proof; one
pre-existing serving_footprint test failure dispositioned as pristine-
base, untouched); integrated onto post-#2400 canary.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) August 23, 2026 12:44
@joelteply
joelteply merged commit 166d04c into canary Aug 23, 2026
5 checks passed
@joelteply
joelteply deleted the feat/hot-edit-capability branch August 23, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant