Repository navigation
feat(perception): hot-edit — hot css, no deployments, as a citizen tool - #2402
Merged
Merged
Conversation
…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
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.
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