Skip to content

fix(cron): restore native requester integration coverage - #201731

Merged
vincentkoc merged 1 commit into
mainfrom
fix/cron-native-requester-ingress
Nov 19, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/cron-native-requester-ingress

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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 the test-root-other type 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.

@vincentkoc vincentkoc self-assigned this Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc
vincentkoc marked this pull request as ready for review November 19, 2026 08:58
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

Please review exact head 9509250008d2a93d8d2e62308003dc1cb702e06d for this one-file fixture correction. Confirm the canonical host ingress preserves the Discord group requester, keeps its authority live through the existing Gateway journey, and retains the original persistence, scheduled-edit, and revocation assertions.

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.

@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The fixture supplies sender fields without the host-bound principal required for requester capture.
  • After: Host ingress admits the requester, and the existing journey checks persistence, one successful edit, and denial after permissions change.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-verified fixture repair with preserved behavioral coverage; reported execution results were not independently inspectable.
Proof confidence 🦐 gold shrimp (3/6) This test-only fixture correction needs no shipped-entry-point demonstration; reported Bun passes support the review, with linked raw logs unavailable through the review network.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Developers lose scheduled native requester coverage because the fixture fails before reaching its intended assertions.
Reason: The maintainer-authored correction restores a meaningful existing integration journey using the canonical fixture and preserves its independent outcome assertions.

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
Reviewed head: 9509250008d2a93d8d2e62308003dc1cb702e06d

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Authenticated native requester integration journey keeps the original intent (9ee5c26: Retain the authenticated Discord requester through job persistence and scheduled edits, with current permission checks.)
  • Creation environment override keeps the original intent (daaaffa: Restore fixture environment overrides before scheduled child execution to avoid stale Bun environment state.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +31. Total +31 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 50 19 +31
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 50 19 +31

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This repairs integration coverage without changing production behavior.
  • 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:

  • P3: This repairs integration coverage without changing production behavior.
  • 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 execution lanes are retired.

Reviewed November 19, 2026, 4:03 AM ET / 09:03 UTC.

@vincentkoc
vincentkoc merged commit 157f1ef into main Nov 19, 2026
146 checks passed
@vincentkoc
vincentkoc deleted the fix/cron-native-requester-ingress branch November 19, 2026 09:10
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

RomneyDa added a commit that referenced this pull request Nov 20, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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.

1 participant