feat: Streaming Diff Oven — port of #5 onto main (agent-agnostic)#8
Open
apresmoi wants to merge 9 commits into
Open
feat: Streaming Diff Oven — port of #5 onto main (agent-agnostic)#8apresmoi wants to merge 9 commits into
apresmoi wants to merge 9 commits into
Conversation
Co-authored-by: Agustin Capeletto <174887634+alowpoly@users.noreply.github.com>
Co-authored-by: Agustin Capeletto <174887634+alowpoly@users.noreply.github.com>
Co-authored-by: Agustin Capeletto <174887634+alowpoly@users.noreply.github.com>
Co-authored-by: Agustin Capeletto <174887634+alowpoly@users.noreply.github.com>
Co-authored-by: Agustin Capeletto <174887634+alowpoly@users.noreply.github.com>
Co-authored-by: Agustin Capeletto <174887634+alowpoly@users.noreply.github.com>
003049a to
95ebf3d
Compare
…nstall per review Co-authored-by: Agustin Capeletto <174887634+alowpoly@users.noreply.github.com>
… binary consistency Co-authored-by: Agustin Capeletto <174887634+alowpoly@users.noreply.github.com>
…e 18 CI) Co-authored-by: Agustin Capeletto <174887634+alowpoly@users.noreply.github.com>
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.
Builds on @alowpoly's #5 (their Streaming Diff Oven) and the design we worked out together in that thread — this ports those concepts onto current
main's oven framework and makes capture agent-agnostic (Codex and Claude Code).What it does
Watch an agent edit your repo, live. As the agent runs file-mutating tools, hooks bracket each call and publish a timestamped, session-scoped diff feed to git-ignored
.local/; the dashboard streams it over SSE.Design decisions (vs #5)
.local/atomically; the dashboard is a strict read-only observer (self-heal/pruning live only in the CLI writer path).git diff HEAD� the pre-hook snapshots the hinted files, post diffs against that, so pre-existing dirty-tree changes are never misattributed to the tool.Last-Event-ID.partial; the@2contract rejects acapturedcard that contains withheld content. There is noexactclaim for hook-based capture..env/keys/credentials/secret-looking/ignored/symlink-escape are hard-denied and never copied; secret patterns redacted before any write; capture covers tracked + non-ignored-untracked files (untracked resolved only within hinted paths).watchfallback was dropped.Layers (commit-by-commit)
a9ea913engine �@2contract, capture core, LCS line diff, durable journal (atomic manifest + contiguous ring buffer + reconnect)4f75ab8wiring �ensure-feed+ one-time binding,streaming-diffCLI, hash-based feed keys (case-insensitive-FS safe)4a16d38server � oven package + SSE handler (res-owning, heartbeat, subscriber caps, leak-free cleanup) + synthetic-event E2Ef4a54adrenderer �StreamingDiff.tsx+ EventSource client (text-only, XSS-safe)1930da7adapters � Codex/Claude hook adapters +burnlist hooks install/uninstall/status003049afinal review fixesInstall
burnlist hooks install --agent codex,claude # merges into .codex/hooks.json + .claude/settings.jsonMerge-never-clobber, exact-ownership uninstall, honest tracked-vs-untracked config modes. Hooks always exit 0 and can't block the agent (stdin-capped, bounded subprocesses); the agent still owns first-run execution consent.
Verification
npm run verifyis green (354 tests, incl. HTTP/SSE integration + a socketless synthetic acceptance test that drives capture�journal�server�SSE). Built through an adversarial review loop; please poke holes, especially at: the pre�post attribution, the read-only-observer boundary, the content/redaction policy, and the Codex/Claude adapter payload mapping.