Skip to content

feat(core): persist task execution scopes through session dispatch - #408

Merged
lg2m merged 4 commits into
feat/auto-task-workspacefrom
feat/auto-session-scope
Oct 22, 2026
Merged

lg2m merged 4 commits into
feat/auto-task-workspacefrom
feat/auto-session-scope

Conversation

@lg2m

@lg2m lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

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.

@lg2m lg2m added the ci:full label Oct 22, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-22T00:20:47.176731Z
We couldn’t complete this review. Comment @codex review to try again.
4ccfbbd New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m
lg2m added this pull request to stack #403 October 22, 2026 00:05
@lg2m

lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 65420909d9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m
lg2m merged commit d7af4ff into main Oct 22, 2026
10 checks passed
@lg2m
lg2m deleted the feat/auto-session-scope branch October 22, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant