Repository navigation
test(gateway): delete stale mid-run refusal tests after one-time admission - #204081
Conversation
…ssion Closes the main-CI part of R6 A-class (one-admission). Deletes test cases that assert a refusal after a permission, role, scope, device or membership change during a started request or run. Admission, next-request, Stop, run-close and data-fence refusals stay; their expected text follows the current messages. Co-authored-by: obviyus <[email protected]>
|
🦞👀 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. What this changesThis PR removes obsolete mid-request permission-refusal tests and updates retained admission and recovery expectations. Example: Carol is removed from a session after opening its HTTP history stream.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this useful test cleanup follows the accepted one-time admission contract, and no actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway tests send RPC and HTTP requests through admission and handler fixtures, then check responses, cancellation, recovery, and persisted effects. flowchart TD
A[Gateway test fixtures] --> B[RPC and HTTP admission]
B --> C[Admitted request handlers]
C --> D[Cancellation and data fences]
D --> E[Response and state assertions]
Technical reviewBest possible solution: Land the focused test cleanup once the existing required CI gate passes. Do we have a high-confidence way to reproduce the issue? Source inspection confirms that removed expectations require permission rechecks deliberately retired by merged admission changes; historical discussion records matching base failures, but no local reproduction was run. Is this the best way to solve the issue? Removing obsolete expectations and unused helpers is appropriate because the existing admission owners remain authoritative and distinct cancellation, next-request, session-identity, and recovery coverage remains. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a10e445719a6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -1778. Total -1778 across 39 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. Review metrics
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 23, 2026, 8:59 AM ET / 13:59 UTC. |
|
Landed as 6587c9f. Proof: all 31 test files (and agent, agents-mutate, plugin-reload product tests through the changed support files) were red on main in scheduled run 45175216085, and they pass in PR CI run 45186590679 with 0 failures. Tests only; local review clean. |
…ssion (openclaw#204081) Closes the main-CI part of R6 A-class (one-admission) per ONE-ADMISSION-PLAN.md. Deletes test cases that assert a refusal after a permission, role, scope, device or membership change during a started request or run. Admission, next-request, Stop, run-close and data-fence refusals stay; their expected text follows the current messages. Tests only. Co-authored-by: Ayaan Zaidi <[email protected]>
Result
Closes the main-CI part of R6 A-class (one-admission) per ONE-ADMISSION-PLAN.md.
Scheduled
mainCI run 45175216085 (head e6b910b, the first run with all R6 PRs) is red in the 31 test files below (plus 8 support files they use). Each red case asserts a refusal that the one-time-admission work removed on purpose: a permission, role, scope, device or membership change after the request or run started. AGENTS.md "Check authority one time": a started request may finish; queued and replayed work is checked again when it starts.This PR deletes those cases and the helpers only they used. Refusals at admission, refusals of the next request, Stop, run-close and data-fence refusals stay. Where only the refusal text changed, the expected text is updated.
member-profile-role-recovery,server.plugin-reload-send-revocation.product.test-support,question.communication,chat.abort-session-fence.rpc).Per file
server-methods/stop.test.tsserver-methods/presence.test.tsserver-methods/system-event-routing.test.tsserver-methods/question.own-run.test.tsserver-methods/question.session-access.test.tsserver-methods/question.recovery.test.tsserver-methods/question.communication.test.tsmethod-authorization.ts).server-methods/sessions-groups.create.test.tsserver-methods/tool-usage.test.tsserver-methods/sessions-title.test.tsserver-methods/environments.suggested-profile.test.tsserver-methods/chat.abort-authorization.test.tsserver-methods/chat.abort-cascade.test.tsserver-methods/chat.abort-persistence.test.tsserver-methods/chat.abort-session-fence.rpc.test.tsserver-methods/sessions.abort-native-descendants.test.tsserver-methods/chat-pending-inputs-dismiss-handler.test.tsserver-methods/agents-create.test-support.ts(agents-mutate.test.ts)server-methods/agent.reset-and-identity.test-utils.ts,agent.base.test-utils.ts(agent.test.ts)hasCurrentClientAuthority: () => false(#203488). Owner cancellation stays.worker-environments/provider-create-authority.test.tsworker-environments/provider-destroy-authority.test.tsgithub-publication-imported-actions.test.tsagents-create.inference-authority.integration.test.tsmcp-http.async-scope.test.tsmcp-http.personal-authority.test.tsserver.chat-membership-authority.product.test.tsserver.config-security-policy.test.tsserver.plugins-install-authority.test.tsserver.openclaw-id-member-suspension.test.tsserver.plugin-reload-send-revocation.product.test-support.tsopenclaw-id/member-profile-role-recovery.test.tsoperator.sessions.write). Running work keeps going.server-http.openai-compat.test.tsserver.guest-history-http.test.tsworker-environments/local-workspace-projection.test.ts+local-workspace-{cancellation,incremental,recovery,reuse}.test-support.tsNot in this PR
auth-api-key,exec-approvals,sessions-create-device-folder,sessions-diff,system-changes,server.sessions.create.*(chore(test): align latent-red tests with one-time admission and no-auto-disable cron #203560),models-auth-status(fix(test): stop rejecting admitted API-key saves in Gateway tests #203904),server.chat-abort-initiator.product(fix: align chat Stop product test with request admission #203961),doctor-health.legacy-update.github-pr-workspace-preparation.test.ts: refactor: drop mid-run authority re-checks in infra, state, plugins and GitHub publication #204037 changed it. It is still red on 45175216085 ("refuses a maintainer's revoked selected authority before changing the guest workspace"), but its owner keeps it.config-reload.test.ts(timeout),sessions-spawn.lifecycleand the UI e2e files: not refusal tests.Evidence
main: scheduled run 45175216085, every file in the table.mainCI and this PR does not change them.