Skip to content

docs: describe unattended Auto and sandbox requirements; delete the unreachable trust prompt - #476

Merged
lg2m merged 2 commits into
mainfrom
docs/stale-approval-docs
Oct 26, 2026
Merged

lg2m merged 2 commits into
mainfrom
docs/stale-approval-docs

Conversation

@lg2m

@lg2m lg2m commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

The help text, the TUI /approval picker, the README and the user guide still described behaviour removed in #446/#463: Auto holding "dangerous" shell, y/a/w approval prompts in the normal flow, and a TUI trust prompt. Nothing could reach that prompt any more. This PR deletes the prompt and fixes the docs.

What changed for users

  • qq run --help and the /approval picker now say what each mode does. Auto runs inside the task sandbox without asking, and calls outside that boundary are denied. Full runs without task containment. --allow-tool/-shell/-host are described as stored grants, not answers to held calls.
  • Guide:
    • README, quickstart, headless, FAQ, TUI, concepts, MCP, configuration, permissions and troubleshooting describe unattended Auto. Approval prompts appear only under Ask (and for supervised calls outside Auto).
    • Project trust is described as it works now: sensitive settings stay off until you run qq trust, and qq config sources / qq doctor list what is pending.
  • New: "What the shell sandbox needs" (docs/guide/install.md#system-requirements). Shell has no unsandboxed fallback, in any mode.
    • On Linux: a non-root user, unprivileged user namespaces, a root-owned util-linux unshare on PATH, and a qq binary that isn't group/world-writable. Auto also needs Landlock ABI 6 (Linux 6.12+), seccomp on x86_64/aarch64, and about 768 MiB of free disk.
    • It covers Ubuntu 23.10+/24.04 AppArmor, containers, the macOS and Windows backends, and a one-line unshare check.
  • Troubleshooting gains entries for each sandbox failure, the task-workspace limit, and failed publication. On a host that blocks user namespaces, the first shell command takes down the runtime (session runtime is unavailable, exit 4) and leaves that workspace held; I reproduced this with the real binary (below).
  • Permissions gains "Task workspaces": the private copy, publish-on-completion, the 16,384-entry / 256 MiB limit, and what is skipped. It also gains task_commit, task_push and task_pr, which the guide didn't mention before.
  • Design docs:
    • tools.md no longer says automatic task workspaces are "not yet implemented", and no longer lists OS sandboxing as deferred.
    • The architecture.md extension-lane row no longer points at PR docs(plans): plan an autonomous OS sandbox for unattended goals #375.
    • ADR-0050 is now "Accepted, partly implemented", with a note on what shipped and what is still open. Merging this PR counts as the second review the ADR asked for.
  • verify-qq skill: both copies, still identical, document the four modes and the default auto, along with the sandbox gotcha and corrected expectations for each row.

Removed code

The trust prompt has been unreachable since #446: every startup path sets with_untrusted_project_config_ignored(), so load_for_client never returns TrustRequired to the TUI. This PR removes Mode::Trust and the resolver in src/main.rs, RuntimeFactory::resolve_trust / trust_for_process, process-scoped trust (ProcessTrust, the plan-key fingerprint), grant_reviewed_trust, TrustChanged and TrustDeclaration. qq trust, qq doctor, qq init, qq config check and qq config sources behave as before. One test was rewritten to cover "durable trust recompiles a plan that withheld authority" through grant_pending_trust.

crates/qq-tui/src/effect.rs goes back to its pre-#161 contents, because #161 added only the trust effect. The commit carries the QQ-Allow-Revert trailer for it.

Verification

  • cargo xtask check passes (fmt, lint 66/66 sleeps, clippy, nextest for qq, qq-config, qq-host, qq-tui and xtask). The first commit also builds and passes its tests on its own.
  • The website build passes: astro check and check-links (563 internal links, including the new anchors).
  • The docs_truth tests pass. They caught two errors in my first draft: a combined troubleshooting heading, and a --allow-* placeholder in the guide.
  • Real binary in an isolated QQ_HOME (verify-qq):
    • The skill's rows behave as now documented. Read-only denies write_file. Default Auto writes and publishes it. Auto rm -f gone.txt completes with no approval events and the file is gone after publish. Ask holds the call and denies it.
    • qq config sources shows pending trust, qq doctor fails project trust with the remedy, qq trust records the file, and qq config check prints the TrustRequired message.
    • With user namespaces blocked (systemd-run --user -p RestrictNamespaces=yes), qq run with one shell call exits 4 with session runtime is unavailable. A later run in the same workspace, with namespaces allowed again, waits and doesn't start; I stopped it after 60 s. That is the hold the troubleshooting entry documents.

Not done

  • The freeze-ending six-task baseline/candidate model check in docs/plans/README.md has not been run. The six fixtures it describes don't exist yet, and three of them (approval interruption/resume, long-context correction, review/fix) need a multi-step driver that the Harbor eval adapter doesn't have. This PR changes no plan text.
  • QQ has no command to release a workspace held after a failed sandbox launch. The guide says so rather than inventing a workaround.

lg2m added 2 commits October 26, 2026 10:06
Since #446 every startup path ignores untrusted project configuration
instead of failing with TrustRequired, so the TUI never received pending
trust. Remove Mode::Trust and its resolver, RuntimeFactory::resolve_trust
and process-scoped trust, and the ProcessTrust/TrustChanged/TrustDeclaration
machinery that only served the prompt. qq trust, qq doctor, qq init and
qq config sources keep their behaviour.

crates/qq-tui/src/effect.rs returns to its pre-#161 contents because #161
added only the trust effect.

QQ-Allow-Revert: crates/qq-tui/src/effect.rs
Help text, the /approval picker, README and the user guide still described
held Auto calls, the classifier as the gate, y/a/w prompts, and the TUI trust
prompt. Rewrite them for the shipped behaviour, document what the shell
sandbox needs on each OS and the task-workspace limits, list task_commit,
task_push and task_pr, and fix stale design notes (tools.md, architecture.md
PR #375 row, ADR-0050 status). Update the verify-qq skill in both copies.
@lg2m

lg2m commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T17:11:36.966520Z c8ff1ab 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: c8ff1abaf8

ℹ️ 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 8c2846f into main Oct 26, 2026
9 checks passed
@lg2m
lg2m deleted the docs/stale-approval-docs branch October 26, 2026 18:28
lg2m added a commit that referenced this pull request Oct 27, 2026
…g in place (#481)

* docs: plan v0.1.10 and retire stale research and plans

Replace the core stabilization plan (rows 1-5 shipped) with the v0.1.10
plan: Auto in place with sandboxed writes and host network, long-running
shell commands, tool-call recovery, permission deletion and actionable
denials, prompt and skill fixes. Evidence comes from a live default-Auto
probe and a session-store recount for 2026-10-03..23.

Delete the seven dated research snapshots and the auth-providers plan
(PRs 1-3 merged; PR4/PR5 carried into the new plan), repointing links to
pinned blobs at 2cafa65. Mark ADR-0042 superseded by #476 and fix the
ADR-0064 index status. Correct stale reviewer, trust-prompt, Jev-routing
and soak-oracle claims in design, guide and runbook pages, and mark the
desktop/fleet plan deferred.

* docs(plans): rebuild v0.1.10 around snapshots, a contextual reviewer and running in place
lg2m added a commit that referenced this pull request Oct 27, 2026
…d qq undo (#482)

* docs: plan v0.1.10 and retire stale research and plans

Replace the core stabilization plan (rows 1-5 shipped) with the v0.1.10
plan: Auto in place with sandboxed writes and host network, long-running
shell commands, tool-call recovery, permission deletion and actionable
denials, prompt and skill fixes. Evidence comes from a live default-Auto
probe and a session-store recount for 2026-10-03..23.

Delete the seven dated research snapshots and the auth-providers plan
(PRs 1-3 merged; PR4/PR5 carried into the new plan), repointing links to
pinned blobs at 2cafa65. Mark ADR-0042 superseded by #476 and fix the
ADR-0064 index status. Correct stale reviewer, trust-prompt, Jev-routing
and soak-oracle claims in design, guide and runbook pages, and mark the
desktop/fleet plan deferred.

* docs(plans): rebuild v0.1.10 around snapshots, a contextual reviewer and running in place

* feat(core): snapshot the workspace before a run's first change and add qq undo

* fix(core): snapshot assume-unchanged files, spare grown files on undo, cancel during snapshots

* fix(core): spare newly ignored files on undo, record skip-worktree files, stop snapshots at the duration budget

* fix(core): keep ignored directories and non-UTF-8 names out of undo restores

* fix(core): keep undo from replacing directories that hold excluded files

* fix(core): drain git output while feeding undo's batch input

* fix(core): record left-out paths in snapshots so reversing an undo keeps them

* fix(core): keep snapshots from running hooks, resetting submodules, or blocking workers

* fix(core): keep undo off nested repositories; make the snapshot budget test deterministic
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