Repository navigation
fix(cron): restore native requester integration coverage - #201731
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review Please review exact head At this head, all 13 requester cases and all 9 integration cases passed on Bun, together with targeted formatting, type-aware lint, and the test-root-other type graph. The complete committed-range local fallback review finished P0-only with zero findings and final source verification; independent broader source review also passed. Ordinary PR CI and security remain separate pending gates. This is a scoped prerequisite for #200486, not a claim that the parent is ready. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces raw Discord sender context in the cron integration test with an authenticated host ingress fixture. Example: Discord requester 100000000000000009 schedules a channel edit using account work.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR correctly restores the native requester journey through existing host ingress without weakening persistence, scheduled-edit, or permission-revocation assertions; no actionable code findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe integration fixture feeds admitted Discord context into reply processing, creates an automation through generated MCP, reloads the stored job, and runs its scheduled message action through the Gateway. flowchart LR
A[Discord fixture message] --> B[Host ingress admission]
B --> C[Reply and MCP automation creation]
C --> D[Persisted cron job]
D --> E[Gateway scheduled execution]
E --> F[Discord permission check and edit]
Technical reviewBest possible solution: Use the existing host ingress fixture for native creation while retaining the complete scheduled execution and permission-denial journey. Do we have a high-confidence way to reproduce the issue? Source shows that raw sender fields cannot satisfy the current host-bound requester contract; no target code was executed during this read-only review. Is this the best way to solve the issue? The change uses the existing admission owner, preserves the Discord group and non-default account, keeps its authority live through the scenario, and adds no production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d54f706b921a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +31. Total +31 across 1 file. 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 19, 2026, 4:03 AM ET / 09:03 UTC. |
|
Merged via squash.
|
Bounded beta2 FRV repair; preserve the existing runtime contract and original failure assertions. Combined qualification follows integration. Selected source hunks only; unrelated source changes excluded. (cherry picked from commit 157f1ef) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
The native cron integration test supplied raw sender fields after requester creation began requiring a host-admitted channel principal. It failed before verifying that the scheduled job retained the requester's authority.
This is a scoped validation prerequisite for #200486.
User Impact
No user-visible behavior changes. Developers regain coverage of authenticated requester → persisted job → scheduled edit → revoked access.
Why This Change Was Made
Use the existing native ingress fixture to admit the same Discord group requester, assert its bound principal before invoking the model, and keep that authority alive through the existing Gateway journey. The original persistence, edit, and revocation assertions remain unchanged. Production: 0 lines changed; tests: +50/−19.
Evidence
At
9509250008d2a93d8d2e62308003dc1cb702e06d, all 13 requester tests and all 9 cron integration tests passed on Bun. Targeted formatting, type-aware lint, and thetest-root-othertype graph also passed.Bounded native proof run: workload exit 0; the carrier Actions run was cancelled during normal native teardown after proof completed. Source identity, output, joins, and resource closure were independently verified. This is scoped proof, not a whole-CI pass.
Local autoreview covered the complete committed range
7db69bedeab658dd83749dd3c45fe0239701632a→9509250008d2a93d8d2e62308003dc1cb702e06d, with 20 complete source-context files: P0-only, one complete pass, zero findings, final source verification passed. Independent broader source review also passed. Local ClawSweeper was unavailable; the required hosted review and ordinary CI/security gates remain pending.