Skip to content

fix: correct side-question sender-policy fixture - #166941

Merged
shakkernerd merged 1 commit into
mainfrom
fix/side-question-search-fixture
Oct 8, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
fix/side-question-search-fixture

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

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 toolsBySender deny 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_search is disabled and features.standalone_web_search is false.

Evidence

On the remote Mac with Node 24.21.0 and pnpm 12.5.1, the original restricted-sender case failed with cached versus disabled on baseline 8204e9172e38 (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.

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 11:32 PM ET / October 8, 2026, 03:32 UTC.

ClawSweeper review

What this changes

The branch configures an explicit web-search denial for the restricted sender in the existing side-question test.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, correct fixture repair with reported red-to-green harness validation and no runtime change.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: This MEMBER-authored, test-only repair is outside the external-contributor runtime-proof gate. Reported red-to-green execution drives the production side-question owner with a synthetic Codex client; no live-provider claim is made and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The existing regression fails because its input no longer represents sender denial. Correcting that input restores meaningful coverage without changing product behavior.

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
Reviewed head: e0d3895570b36464d360f93ecaa9d7b7cd475fe3

Before merge

None.

Findings

None.

Agent review details

How this fits together

Codex 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]
Loading

Technical review

Best 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

  • extensions/codex/src/app-server/side-question.test.ts: sender-denial fixture keeps the original intent (feat: add Codex hosted web search #93446: Carry side-question policy context into native Codex forks while keeping native and managed search mutually exclusive.)

Testing

Proof path: in-process harness. Added test files: 1.

Security

None.

Evidence

What I checked:

Likely related people:

  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

PR surface

Tests -6. Total -6 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 7 13 -6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 7 13 -6

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #166934
Summary: This PR is the focused candidate repair for the linked fixture defect.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: This is a bounded repair to broken regression coverage, with no demonstrated user-facing runtime failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: This is a bounded repair to broken regression coverage, with no demonstrated user-facing runtime failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

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

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

@shakkernerd shakkernerd self-assigned this Oct 8, 2026
@shakkernerd
shakkernerd merged commit dac3f24 into main Oct 8, 2026
107 checks passed
@shakkernerd
shakkernerd deleted the fix/side-question-search-fixture branch October 8, 2026 03:38
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: the side-question sender-policy test now exercises an explicit search denial.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 8, 2026
Restore the side-question restricted-sender test by configuring its actual search denial.

Refs openclaw#166934.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: codex P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Codex side-question sender-policy test omits the actual denial

1 participant