feat(agent): persist provenance and gate sensitive egress - #5821
Draft
RaresKeY wants to merge 21 commits into
Draft
feat(agent): persist provenance and gate sensitive egress#5821RaresKeY wants to merge 21 commits into
RaresKeY wants to merge 21 commits into
Conversation
Open
3 tasks
RaresKeY
marked this pull request as ready for review
July 28, 2026 16:41
RaresKeY
marked this pull request as draft
July 28, 2026 16:56
This was referenced Jul 29, 2026
This was referenced Aug 8, 2026
This was referenced Aug 11, 2026
Closed
RaresKeY
force-pushed
the
feature/agent-provenance-controls
branch
3 times, most recently
from
August 17, 2026 00:48
0707a52 to
e3c2bd5
Compare
|
Changed-file classification: UI-sensitive. Author-reported runtime / visual state
Checkboxes are author attestations. GitHub Actions results remain the execution evidence for CI; this check does not prove that a local command ran. This comment updates automatically when the description or changed files change. |
This was referenced Aug 17, 2026
RaresKeY
force-pushed
the
feature/agent-provenance-controls
branch
from
August 17, 2026 16:30
e3c2bd5 to
2848b75
Compare
This was referenced Aug 17, 2026
RaresKeY
force-pushed
the
feature/agent-provenance-controls
branch
from
August 17, 2026 16:43
2848b75 to
9ce7769
Compare
RaresKeY
force-pushed
the
feature/agent-provenance-controls
branch
from
August 19, 2026 10:40
9ce7769 to
3feac73
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.
Summary
Persist monotonic agent provenance for external, workspace, Odysseus-owned, and private-data context, and use that state when authorizing later tools. Provenance accumulates across turns, reloads, forks, background continuation, model changes, and teacher escalation instead of disappearing when one model call or request ends.
The capability registry also separates integrity origin from data sensitivity. Sandbox mode requires exact approval for private reads, and workspace/private data cannot cross a brokered network or external side-effect boundary without a matching approval. Agent mode no longer gains ambient personal-document or memory retrieval as an unclassified private-data path.
Stack
This is the provenance slice in #5815 directly after #5819. Its only direct stack dependency is #5819; #6120, #6084, #6119, #6118, and #6121 are transitive or separate foundations and are not direct parents of this PR.
Target branch
dev, notmain. All PRs land indev;mainis curated by the maintainer at each release.Linked Issue
Part of #6093
Part of #5815
Part of #4754
Depends on #5819
Related: #2605, #3709, and #3866
Type of Change
Checklist
dev.How to Test
Run:
Current secretless validation on the rebased public head passes 361 focused tests, with the listed syntax and compile checks still applicable.
In Sandbox mode, read external context and verify the thread records External provenance. Reload, change model, fork the session, and trigger teacher/background continuation; verify the applicable provenance remains set and only accumulates.
Request a private read and verify exact approval is required. Approve it, then change the exact action or run context and verify the grant is rejected.
After workspace or private data enters the thread, request network egress or an external side effect. Verify policy requires a matching exact approval before data can cross that boundary.
Switch between sessions and verify the provenance indicator reflects the selected thread without leaking state between sessions.
Current restacked-head validation passes 361 focused tests, Python compile, and
git diff --check.Historical full-suite evidence from the pre-restack provenance tree is not a current-head claim; the current focused suite is the validation recorded above.
Not yet validated: live Docker/native/browser behavior, desktop/mobile provenance display, multi-worker approval consumption, external database migration behavior, or independent latest-head security review.
The running-app provenance/approval flow and independent latest-head security review remain outstanding, so this PR is opening as a draft.
Visual / UI changes — REQUIRED if you touched anything that renders
This adds a thread provenance indicator and updates its state during streaming/session changes. Running-app visual evidence is required before marking the PR ready for review.
Screenshots / clips
Pending running-app desktop/mobile capture after the provenance indicator placement is finalized.