Repository navigation
docs: describe unattended Auto and sandbox requirements; delete the unreachable trust prompt - #476
Merged
Merged
Conversation
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.
Collaborator
Author
|
@codex review |
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 Review: Didn't find any major issues. More of your lovely PRs please. 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". |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The help text, the TUI
/approvalpicker, the README and the user guide still described behaviour removed in #446/#463: Auto holding "dangerous" shell,y/a/wapproval 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 --helpand the/approvalpicker 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/-hostare described as stored grants, not answers to held calls.qq trust, andqq config sources/qq doctorlist what is pending.docs/guide/install.md#system-requirements). Shell has no unsandboxed fallback, in any mode.unshareon PATH, and aqqbinary 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.unsharecheck.session runtime is unavailable, exit 4) and leaves that workspace held; I reproduced this with the real binary (below).task_commit,task_pushandtask_pr, which the guide didn't mention before.tools.mdno longer says automatic task workspaces are "not yet implemented", and no longer lists OS sandboxing as deferred.architecture.mdextension-lane row no longer points at PR docs(plans): plan an autonomous OS sandbox for unattended goals #375.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(), soload_for_clientnever returnsTrustRequiredto the TUI. This PR removesMode::Trustand the resolver insrc/main.rs,RuntimeFactory::resolve_trust/trust_for_process, process-scoped trust (ProcessTrust, the plan-key fingerprint),grant_reviewed_trust,TrustChangedandTrustDeclaration.qq trust,qq doctor,qq init,qq config checkandqq config sourcesbehave as before. One test was rewritten to cover "durable trust recompiles a plan that withheld authority" throughgrant_pending_trust.crates/qq-tui/src/effect.rsgoes back to its pre-#161 contents, because #161 added only the trust effect. The commit carries theQQ-Allow-Reverttrailer for it.Verification
cargo xtask checkpasses (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.astro checkandcheck-links(563 internal links, including the new anchors).docs_truthtests pass. They caught two errors in my first draft: a combined troubleshooting heading, and a--allow-*placeholder in the guide.QQ_HOME(verify-qq):write_file. Default Auto writes and publishes it. Autorm -f gone.txtcompletes with no approval events and the file is gone after publish. Ask holds the call and denies it.qq config sourcesshowspending trust,qq doctorfailsproject trustwith the remedy,qq trustrecords the file, andqq config checkprints theTrustRequiredmessage.systemd-run --user -p RestrictNamespaces=yes),qq runwith oneshellcall exits 4 withsession 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
docs/plans/README.mdhas 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.