Repository navigation
feat(core): persist task execution scopes through session dispatch - #408
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Registered task workspaces now carry their filesystem, network and resource limits through real session shell/exec dispatch. Child sessions and side-question built-ins use the same store-owned authority, independently of model/profile reloads and approval grants. A missing native command service cannot fall back to local host execution; unregistered or replaced task roots are refused.
Persist registrations before recovery/scheduling. Restarting without registrations restores stored limits; conflicting replacements and malformed stored policies are refused. Scope metadata and capacity are bounded. Store schema 60 prevents older runtimes from ignoring the new authority. The embedding caller uses the API; no new CLI or approval mode.
Verified: 110 focused scope/migration/native-recovery/goal-check tests pass, including a real Linux Auto session that edits its task file while an outside write is blocked without an approval prompt. Disabling scope forwarding reproduces that escape; the guard is restored. The embedding example passes and preserves source contents. Formatting, lint and workspace Clippy pass. The local check stopped at shifted existing sleep references; those locations are corrected and lint rerun passes. Full platform checks run in CI, with explicit macOS/Windows persistence and refusal coverage.
Scoped goal completion checks explicitly refuse the legacy host launcher; a regression reproduced the host escape before this guard. Durable scoped completion-check routing remains unfinished.
Seventh layer after #407 in stack 403. Host registration is opt-in; normal server setup still needs task preparation and registration. This does not qualify default Auto or macOS/Windows containment. Credential/egress brokering, protected task Git/config state, output disk/aggregate budgets, scope retirement/reconfiguration and verified publication remain. The native Auto fixture explicitly uses host resource scope; delegated cgroup containment has its separate native fixture. No comparative performance claim.