Skip to content

fix(core): keep Auto permission decisions unattended - #446

Merged
lg2m merged 17 commits into
fix/linux-private-loopbackfrom
fix/auto-no-approval-waits
Oct 24, 2026
Merged

lg2m merged 17 commits into
fix/linux-private-loopbackfrom
fix/auto-no-approval-waits

Conversation

@lg2m

@lg2m lg2m commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Auto now executes within its existing authority or returns a denial without opening a human permission prompt. Write children retain internal review; missing reviewers, abstentions and timeouts deny the call. CLI allowlists are stored before dispatch and cannot resolve a child’s internal supervision. Task startup withholds untrusted project authority without stopping for project approval or recording trust.

Verified 146 approval/delegation, 29 client-state, 129 configuration and two runtime cache tests. All eight failures found in the broader local test run were addressed with focused steering/headless reruns; the new grant test covers restart persistence, idempotence, capacity and child refusal. Formatting, lint (66 legacy sleeps) and strict Clippy pass. The real Linux CLI read/wrote Rust code, compiled/tested it through the durable worker, preserved an outside-workspace guard, and continued with an allowed alternative without permission prompts. Fresh CI is still required; the earlier failed local check receipt is preserved.

Review fixes: write children inherit only explicit human grants, while current ancestor checks and mandatory supervision remain in force. Explicit CLI/config seeds promote colliding reviewer rows to human authority, including at the grant cap. Regression coverage includes denial before network dispatch, revocation after child creation, and promotion surviving a database restart. Both new regressions failed before the production fix; current head b37944ee passes 161 selected headless/approval/delegation tests, strict qq/qq-core Clippy and formatting. Full roots also seed their explicit flags before Auto children inherit them; the real Full/Auto-child regression failed before and passes after. All three review threads are addressed and resolved. Current-head CI and Codex review are running.

Final inventory-only head 513c443f refreshes two existing test-sleep locations shifted by the new fixture. Repository lint passes (66/66); no sleep or limit changed. Functional head b37944ee received a clean Codex review. Fresh current-head CI and final review are pending.

@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-24T05:18:11.796711Z 871af0e 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 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: e0d716a2a8

ℹ️ 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 crates/qq-core/src/sessions/runtime.rs Resolved

@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: 3b4331a9ff

ℹ️ 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
@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review current head b37944e. The Full-root allowlist finding is fixed: explicit flags seed Full and Auto roots before spawning bounded Auto write children. The real headless Full/Auto-child regression failed before and passes after; 161 targeted tests and strict qq/qq-core Clippy pass. All three prior findings are addressed with replies and resolved threads. Please check authority propagation, root mode handling and mandatory child supervision.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: b37944eec9

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

Current head 513c443 only refreshes two existing sleep-inventory line locations after adding the reviewed headless fixture; no test sleep, runtime behavior or ceiling changed. Correctly bound repository lint passes (66/66). Prior functional head b37944e has a clean Codex review and passed 161 targeted tests plus strict Clippy. All findings are resolved. Please provide final current-head review.

@lg2m
lg2m added this pull request to stack #457 October 24, 2026 04:32
@lg2m
lg2m force-pushed the fix/auto-no-approval-waits branch from 513c443 to a3d373f Compare October 24, 2026 04:53
@lg2m
lg2m removed this pull request from stack #457 October 24, 2026 04:54
@lg2m
lg2m changed the base branch from main to fix/linux-private-loopback October 24, 2026 04:54
@lg2m
lg2m added this pull request to stack #458 October 24, 2026 04:54
@lg2m

lg2m commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

Rebased onto current main and aligned the dependency stack. Please review the current head against its current base.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: a3d373f27e

ℹ️ 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 871af0ed32b26136f219850652e23164698af656 against its current base. The deadline fixtures now expire only after the actual approval/tool-entry event; the eight affected regressions pass. The existing sleep inventory was aligned with the rebased source, with no new sleeps or weakened assertions.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 871af0ed32

ℹ️ 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 71bf546 into main Oct 24, 2026
9 checks passed
@lg2m
lg2m deleted the fix/auto-no-approval-waits branch October 24, 2026 13:12
lg2m added a commit that referenced this pull request Oct 26, 2026
…nreachable trust prompt (#476)

* refactor(tui): delete the unreachable project trust prompt

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

* docs: describe unattended Auto, sandbox requirements and task tools

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