Repository navigation
Conversation
Foundation for futrx-com#83 (run-scoped change tracking): captures the git HEAD baseline when an agent run starts and appends a changeset record (run/provider/model/timestamps/outcome/base/files/insertions/deletions) to chats/<id>/runs.jsonl when it finishes. Read-only git use; non-repositories skip silently; tracking can never break a turn. Adds gitcli.DiffSummary (numstat + untracked files), the runchanges tracker/store, prompt hooks with outcome mapping, and composition wiring. Verified: new unit tests plus full gitcli/runchanges/prompt/service suites green; go vet clean. Pre-existing failures untouched (githistory resolveRepositoryPath on this machine, static.go embed needs built frontend). UI/API over runs.jsonl is follow-up.
FekyBaz
force-pushed
the
feat/run-changeset-tracking-83
branch
from
September 11, 2026 02:11
51226ff to
c7ab1a5
Compare
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.
Pull Request
Summary
Foundation for #83 (run-scoped agent change tracking): answers "what exactly did this specific
agent run change" at the data layer. Captures the git HEAD baseline when an agent run starts and
appends one changeset record per run to
chats/<id>/runs.jsonlwhen it finishes.Change
gitcli.DiffSummary: numstat-based file/insertion/deletion tally vs a base commit, plusuntracked files (with line counts). Read-only git use.
runchangestracker + file store:BeginRun(nil when no repository — non-repos skipsilently),
Finish(nil-safe, error-swallowing; tracking can never break a turn). Record:run/provider/model/timestamps/outcome/base/files/insertions/deletions, paths repo-relative.
prompthooks inrunPromptAswith outcome mapping (completed/failed/interrupted/error),WithoutCancelfinish, keyed by the existing ledger run ID so records correlate with turn events.Dependencies.RunChanges, built fromDATA_DIRincmd/remote).Deliberately out of scope: HTTP API + UI over
runs.jsonl(proposed follow-up once the recordshape is accepted).
Verification
gitcli,runchanges,prompt,servicesuites green;go vetclean.githistoryresolveRepositoryPath(this machine),lifecycleoverlapping-targets,static.goembed(needs a built frontend).