Skip to content

refactor(core): simplify default Auto permissions and native execution - #463

Merged
lg2m merged 8 commits into
mainfrom
refactor/permission-baseline
Oct 24, 2026
Merged

lg2m merged 8 commits into
mainfrom
refactor/permission-baseline

Conversation

@lg2m

@lg2m lg2m commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Auto denied ordinary tools and required a reviewer for child actions. It now runs arbitrary programs within the native task boundary, preserves normal installed-tool reads/configuration, and returns denied operations or questions as tool results so work can continue without human approval. Full no longer has a global command-name veto. Explicit managed command controls and parent revocation still apply.

The existing durable worker, task publication and goal recovery stay in place. Linux uses a recursive read-only host mount snapshot plus writable task roots; macOS uses Seatbelt; Windows uses a restricted caller token rather than tool-specific SDK adapters. Default resource policy no longer requires cgroup setup or a fixed per-command memory quota.

Validation: current head a15c54e passes CI on Linux, macOS and Windows, plus website and wasm checks. Linux passes the affected gate and real-binary smoke. macOS passes native Cargo/Node, worker and default Auto tests. Windows passes production token creation, a real offline Cargo build/test/artifact and write-boundary fixture, and all 16 native worker tests. Local targeted regressions, formatting, lint and Clippy pass. Codex reviewed this exact head without findings; all review threads are resolved.

Limits: broad host reads include readable credential files. Windows retains ambient Everyone/logon-SID write permissions and host networking; it does not provide the Linux/macOS write/network contract. Windows tests cover the native backend and durable worker; a Windows real-CLI default Auto fixture is not included because the CLI currently lacks an isolated data-root test seam. Existing detached-import size limits and unbounded task output disk usage are unchanged.

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

chatgpt-codex-connector Bot commented Oct 24, 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 ✅ Completed 2026-10-24T15:27:11.276924Z a15c54e Manual request
ℹ️ 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.

@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Remove obsolete universal command-veto and cleared-environment claims, bump the prompt version, and repair guide links. The earlier removal of Worker::resource_root intentionally deletes the default-quota-only test helper; explicit resource enforcement tests remain.

QQ-Allow-Revert: tests/command_worker_client/cli.rs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 03ab383720

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

Comment thread src/headless.rs Resolved
Comment thread crates/qq-core/src/approval/classify.rs Resolved
Comment thread crates/qq-core/src/approval.rs Resolved
@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: bf17607366

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

@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review current head 2595c2b. All prior threads are fixed and resolved. This update fixes Linux copied procfs mount handling, preserves historical plan digests while updating current prompt identities, and corrects Windows token handle rights. Native Windows launch qualification is still pending; the independent token API regression isolates the remaining error 87 without launching under weaker permissions.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 2595c2b23c

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

@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review current head a15c54e. Prior findings remain fixed and resolved. Linux affected tests/smoke and the complete macOS native job passed at parent2595c2b2. This Windows-only fix replaces a rejected AppContainer package SID with an ordinary identity-bound workspace SID used consistently for ACL grants and token restriction; the compact token regression and real Cargo fixture remain mandatory in native CI.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: a15c54e5e1

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

@lg2m
lg2m merged commit 7e9f268 into main Oct 24, 2026
10 checks passed
@lg2m
lg2m deleted the refactor/permission-baseline branch October 24, 2026 15:56
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