Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Codex Review Summary: ✅ CompletedThis 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. |
|
4ef8f4a to
fec2988
Compare
|
@clawsweeper re-review Please review final head Local |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR lets admitted Talk consultations finish after device revocation while preserving authorization for subsequent consultations and explicit Stop. Example: A Talk consultation awaits approval to run /usr/bin/touch node-parity-effects when its device is revoked.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this focused maintainer-authored fix completes Talk’s adoption of the request-start authority contract; no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherTalk carries authenticated caller authority into agent consultation admission, then supplies retained run authority to native tools and approval handling. flowchart TD
A[Authenticated Talk caller] --> B[Consultation admission]
B --> C[Retained run authority]
C --> D[Agent and tool approval]
D --> E[Native action]
F[Explicit Stop] --> C
G[Device revocation] --> B
Technical reviewBest possible solution: Keep consultation admission authoritative and preserve existing run-lifetime and Stop checks without restoring per-effect device-policy checks. Do we have a high-confidence way to reproduce the issue? Current main supplies a raw source-current assertion to native effect admission, so revocation can reject an already-admitted consultation; the author reports the focused regression failing before this change and passing afterward. Is this the best way to solve the issue? The patch is the smallest complete correction: it reuses the existing admission and cancellation owners, removes the obsolete effect check, and updates affected consumer expectations without adding machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 999e873a9165. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -3, Tests +3, Docs +5. Total +5 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 18, 2026, 7:17 PM ET / November 19, 2026, 00:17 UTC. |
|
Merged via squash.
|
…aw#201527) Apply the request-start authority contract from openclaw#197557 and @obviyus’s openclaw#201334. Remove the obsolete per-effect source check while preserving next-consult denial and explicit Stop. Follow openclaw#201473 for the stale in-process session-read expectation.
Apply the request-start authority contract from #197557 and @obviyus’s #201334. Remove the obsolete per-effect source check while preserving next-consult denial and explicit Stop. Follow #201473 for the stale in-process session-read expectation. (cherry picked from commit ac17452) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
A Talk consultation that already passed admission can incorrectly refuse a native action if its device is revoked while it is running. Main CI also still expects revocation to cancel a pending Talk approval, so both public-callback variants wait forever for a cancellation that the current contract no longer promises.
User Impact
Admitted Talk work can finish after device revocation. The next consultation must pass authorization again, and explicit Stop still cancels pending approvals without executing their native action. No configuration or schema changes are required.
Why This Change Was Made
Move the retained Talk source check to consultation entry and remove its repeated raw device/policy check from native effects. The admission owner already reauthorizes before execution; retained lifetime and cancellation checks remain in place. Production code shrinks by three lines.
Update the Talk approval fixture to resolve an admitted approval after device revocation, explicitly exercise Stop, and settle failed fixtures through cancellation. Update the in-process sessions.list test to permit its admitted read while retaining the next-request denial. The separate sessions-list-privacy fix belongs to #201502 and is excluded here.
This follows the admission contract established in #197557 and implemented by @obviyus in #201334, with the test pattern from #201473. The obsolete Talk source guard dates to #159697; #201334 exposed the stale cancellation expectation.
Evidence
The native-effect regression fails before the production change with “agent harness host capability is no longer active” and passes after it, including denial of the next consultation. The stale in-process read assertion also fails on the main base before correction.
Local Bun validation: 42 focused tests passed across Talk permission parity, admission scope, gateway control, and in-process session reads. Another 35 tests passed across portable Talk history and prompt-prefix stability; three Linux-only cases are skipped on macOS. Codex review found no actionable P0–P2 findings.
Linux CI passed all 22 Talk history tests on final head
fec29882493e: the previously hanging approval/Stop variants completed in 6.070 s and 1.479 s, versus 120 s timeouts in main run 44401396829. Exact-head Linux job. The native permission regression also passed again after rebasing onto the already-merged dead-export repair #201497; the patch ID is unchanged. Full localpnpm check:changedpassed, including all three export scans. No production performance improvement is claimed.