Repository navigation
fix(tests): enforce cron authority and optional exec completion - #184373
Conversation
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesRequire admitted operator identity for privileged GitHub actions and update regression coverage for stable tool schemas and silent background completions. Example: A scheduled continuation with legacy attribution calls merge on fixture/repository pull request 7.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: useful test and documentation corrections remain, although main already fixes the authority gap through #184366. The pinned diff introduces no definite defect; GitHub reports merge conflicts. Priority: P2 Before merge
FindingsNone. Agent review detailsHow this fits togetherScheduled conversation turns invoke GitHub tools through Gateway admission; the publication action owner checks live requester authority before reading publication metadata or sending GitHub requests. flowchart LR
A[Scheduled continuation] --> B[Session admission]
B --> C[Stable GitHub tool]
C --> D[Gateway requester]
D --> E[Publication action guard]
E --> F[GitHub transport]
Technical reviewBest possible solution: Preserve main's caller-capability authorization while integrating the remaining independent action assertions, optional-completion regression, and documentation correction. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the pre-fix synthetic-System scope path and stale completion expectation; the author reports failing negative controls and passing repaired suites, but this review ran no tests. Is this the best way to solve the issue? The pinned change is a focused repair at the existing owner, but its authority hunk now overlaps main's more explicit caller-capability implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0eb245aedb56. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests +5, Docs 0. Total +6 across 4 files. Added test files: 0. View PR surface stats
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 October 26, 2026, 4:10 AM ET / 08:10 UTC. |
ab0365e to
b4e7b57
Compare
…claw#184373) Assert stable GitHub schemas and independently reject unauthorized inspect and merge calls on top of openclaw#184366. Accept empty optional exec-completion finals without delivery claims. Correct stale tool-authority documentation. Follow-up to the contracts established by openclaw#184144 and openclaw#184005.
What Problem This Solves
Fixes the stale empty-final expectation in MCP exec-completion coverage, strengthens cron publication-authority regression coverage, and corrects outdated tool-listing documentation.
Related: #184144, #184005, #184366.
User Impact
No production changes in this PR. CI checks that ordinary background exec completions can finish quietly without an error or delivery claim, and that listed GitHub actions still refuse unauthorized scheduled calls.
Why This Change Was Made
Read the bodies and diffs of #184144 (@steipete) and #184005 (@obviyus). Their intended contracts remain: GitHub schemas stay stable across turns, and ordinary exec-completion replies are optional.
The cron investigation also reproduced a product authority gap: a continuation without operator authority could reach synthetic GitHub inspection and merging through the System-backed in-process bridge. #184366 independently fixed that owner while this PR's first CI run was passing. This branch incorporates it by rebase, preserves its production implementation unchanged, and adds the remaining independent-action coverage. The upstream fix was not in the original failing baseline (
git merge-base --is-ancestorreturned 1).inspectandmergecalls are independently rejected.The cron test no longer consults schema contents to decide whether to execute. An inspection rejection cannot skip the merge attempt. It retains absent-operator, zero-result, zero-receipt-read and zero-GitHub-transport assertions. MCP coverage retains real dispatch, admission, CLI preparation, MCP calls, allowed filesystem effects, permission-revocation denial, and provider failure. External GitHub and model I/O remain synthetic.
Evidence
622215d053bbe4c1ec3c6cdc4a386ccd27d5a844: cron 4 failed / 16 passed, MCP 1 failed / 3 passed, matching all five reported signatures.ab0365e1bb4b42eb541b62cf7cacbc7351e07158. This is prior-head evidence only.openclaw/ci-gate: passed forb4e7b57cfc7628160f2c15e0454dc553eed4886b. Logs verify cron 20/20 and MCP 4/4. Summed test-case time: 72.989 s cron, 4.210 s MCP (not whole-job elapsed time).git diff --check: passed after conflict repair.The existing cron file exceeds the 30-second test budget because it exercises durable scheduling, admission, restart recovery, queued edits and real action boundaries across 20 cases. This repair adds no fixtures or cases. The author simplification pass consolidated schema assertions and independent action calls in the existing fixture. Local proof used the repository test wrapper with
--maxWorkers=1; no Testbox lease was used.