Skip to content

fix(session): preserve snapshot runtime ownership and policies - #258

Closed
KaiEureka wants to merge 1 commit into
mainfrom
codex/fix-audit-session-snapshots-20261025
Closed

KaiEureka wants to merge 1 commit into
mainfrom
codex/fix-audit-session-snapshots-20261025

Conversation

@KaiEureka

Copy link
Copy Markdown
Collaborator

An isolated session snapshot could retain its source workspace safety root and workflow-tool owner while losing its effective budget and Scout submission settings. The branch could reject normal file operations, charge or close the source session's authored work, stop at a soft allowance treated as a hard cap, or finish without the required structured submission.

Rebind the two existing session-owned workflow tools through the copy memo, relocate built-in workspace safety bindings, and preserve hard authorization separately from the current soft allowance. Retain the budget decision callback, cleanup and history settings, and Scout enforcement through existing constructors. Autosave and external event observation keep the documented snapshot behavior. Extra allowed roots and existing command restrictions remain in effect.

All 12 new regression cases failed on the base commit and passed on this branch. Related snapshot, restore, authored-workflow and cleanup tests passed all 156 cases. Actual child processes verify that closing either session ends its own work while the other remains alive. Repository Ruff, import constraints and dependency checks passed.

The production change stays in the existing session composition module, which owns construction, restoration and binding of concrete runtime collaborators.

@KaiEureka KaiEureka closed this Oct 25, 2026
@KaiEureka
KaiEureka deleted the codex/fix-audit-session-snapshots-20261025 branch October 25, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant