test(e2e): normal workspace can raise task+approval to the user (core#2606) #2660
Reference in New Issue
Block a user
Delete Branch "test/2606-workspace-requests-e2e"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gated staging e2e for core#2606: provisions a NORMAL workspace, mints its OWN workspace token, raises a task AND an approval to recipient=user via the wsAuth
POST /workspaces/:id/requestsendpoint (the exact server path the runtime's create_request/create_approval bridge tools call — molecule-ai-workspace-runtime#122), and asserts both surface in the org's unified/requests/pendingview (what the canvas Tasks/Approvals tabs read).Wired into the e2e-staging-saas lane as its own run step (separate -run from the concierge test; own throwaway org + t.Cleanup; 30m timeout). Skips LOUD without staging creds. Compiles + vets under -tags=staging_e2e; verified the loud-skip locally.
This is the live proof complementing the runtime unit tests, closing out core#2606's e2e coverage.
🤖 Generated with Claude Code
The test logic itself is useful, but the workflow wiring does not actually make it an independent live proof. The new
Run workspace-requests staginge2e (core#2606)step is appended afterRun concierge/platform-agent staginge2ein the same job. With normal step semantics, if the concierge staging test fails, the workspace-requests step never runs, so a concierge failure still masks the core#2606 coverage despite the comment saying the separate-runprevents that. Please move this into its own job or make the two live runs independent in a way that preserves failure visibility for both, then keep the compile/skip guard for the new test.REQUEST_CHANGES: reviewed head
69b5ff1e0c. The test itself is useful and the wsAuth/request assertions look aligned with core#2606, but the workflow wiring does not provide the independent live proof claimed by the PR.Run workspace-requests staginge2e (core#2606)is appended afterRun concierge/platform-agent staginge2ein the same job. With normal step semantics, if the concierge/platform-agent staging test fails, this new workspace-requests test never runs, so that failure still masks the core#2606 coverage despite the comment saying the separate-runprevents masking. Please move this into its own job or otherwise gate it so it still executes independently of the concierge test result, then re-request review.APPROVED: reviewed head
00fabc7d8c. The previous masking concern is resolved: workspace-requests now has its own staging e2e job with independent checkout/setup/token/health preflight, so concierge failures cannot hide this proof. The test uses a normal workspace token against the wsAuth /workspaces/:id/requests path, creates both task and approval for recipient_type=user, and verifies both through /requests/pending with a throwaway org plus cleanup. Required contexts are green; remaining reds are advisory/review/SOP gates.