Repository navigation
fix: correct side-question sender-policy fixture - #166941
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 11:32 PM ET / October 8, 2026, 03:32 UTC. ClawSweeper reviewWhat this changesThe branch configures an explicit web-search denial for the restricted sender in the existing side-question test. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR repairs a still-broken test fixture without changing runtime permissions. No actionable findings remain; its MEMBER authorship also prevents automatic closure. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCodex side questions run in temporary conversation forks. OpenClaw resolves the sender’s tool permissions and translates them into the fork’s search configuration; this test checks that an explicit denial disables native search. flowchart LR
A[Side question and sender identity] --> B[Shared tool-policy resolver]
C[Explicit sender denial] --> B
B --> D[Side-question search plan]
D --> E[Temporary Codex fork configuration]
E --> F[Test checks search is disabled]
Technical reviewBest possible solution: Keep the shared permission resolver authoritative and retain this explicit sender-denial fixture with its unchanged fork assertions. Do we have a high-confidence way to reproduce the issue? Yes: the base fixture supplies no denial while expecting disabled search, although the current resolver permits search without a managed tool. The PR reports a failing baseline run; this review established the mechanism from source. Is this the best way to solve the issue? Yes: using the existing sender deny rule repairs the test input while preserving intentional runtime behavior and both denial assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9658ea8d8af2. Provenance checked
TestingProof path: in-process harness. Added test files: 1. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -6. Total -6 across 1 file. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 |
|
Fixed: the side-question sender-policy test now exercises an explicit search denial. |
Restore the side-question restricted-sender test by configuring its actual search denial. Refs openclaw#166934.
Closes #166934
What Problem This Solves
The hourly CI side-question suite fails its restricted-sender case after #166787 made native hosted search consult the shared tool-policy resolver. The fixture expects disabled search but supplies no actual deny policy, so the resolver correctly permits cached search.
User Impact
This restores the test's intended coverage of a restricted sender. Runtime behavior and permission defaults remain unchanged: native hosted search can still work when no managed search tool is installed, and an explicit sender denial must still disable it.
Why This Change Was Made
Configure the existing
toolsBySenderdeny rule for the restricted sender while retaining an empty managed-tool list. The test now exercises the real policy resolver and verifies that the denial reaches the side-question fork configuration. Both existing assertions remain:web_searchisdisabledandfeatures.standalone_web_searchisfalse.Evidence
On the remote Mac with Node 24.21.0 and pnpm 12.5.1, the original restricted-sender case failed with
cachedversusdisabledon baseline8204e9172e38(39.38 seconds including cold worker preparation). The corrected full file passes all 55 tests, including the unchanged denial assertions; the existing search-policy neighbors pass another 25 tests. The combined command completed in 53.56 seconds. The affected file's Vitest phase took 22.89 seconds.The exact-head hosted extension test job also passes all 55 side-question tests in a 77.46-second Vitest phase.
Changed-file formatting, lint, and the selected extension test type check pass. The full PR CI run passed. Independent engineering review, a separate automated source review, and the exact-head ClawSweeper review found no actionable issues. No live provider or channel calls were used.