Skip to content

fix(cron): cap trigger script tool access - #104430

Merged
steipete merged 10 commits into
openclaw:mainfrom
yetval:fix/cron-trigger-script-tools-cap
Jul 15, 2026
Merged

steipete merged 10 commits into
openclaw:mainfrom
yetval:fix/cron-trigger-script-tools-cap

Conversation

@yetval

@yetval yetval commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where a restricted agent could create a recurring cron job with a trigger script and a systemEvent payload, then have that script receive the full coding tool surface. Main-session cron jobs require systemEvent, so the common path bypassed the creator's tool policy whenever cron triggers were enabled.

Why This Change Was Made

The creator tool cap now applies whenever a cron job has a trigger script, in addition to isolated agentTurn jobs. The cap is retained on every cron payload shape, survives updates, is persisted through the cron SQLite store so it survives a gateway restart, and is passed to the headless trigger evaluator. This keeps the existing agent-turn behavior while covering main-session system events and command payloads.

Distinct from #12736, which concerns global cron deny policy; #97317 and #101349, which concern isolated agent-turn defaults; and #41484, which concerns elevated execution scope.

User Impact

Agents restricted to a small tool set can use cron triggers without acquiring shell, exec, or patch capabilities beyond that set. Existing unrestricted operator-created cron jobs continue to work with their configured policy.

Rebase onto current main

This branch was rebased onto current main. Three things needed re-expressing against main's current code, none of which change the fix:

  • packages/gateway-protocol/src/schema/cron.ts conflicted because main replaced Type.Object({...}, { additionalProperties: false }) with the closedObject() helper. The cap fields were re-expressed in that helper form.
  • The changed-file TypeScript LOC ratchet that landed on main in chore(ci): enforce changed-file TypeScript LOC ratchet #106387 forbids an already-oversized file from growing. src/cron/service/jobs.ts, src/agents/tools/cron-tool.ts and packages/gateway-protocol/src/schema/cron.ts are all over the limit, so the cap additions tripped the gate. Cohesive declarations were hoisted into three companion leaf modules, mirroring the existing sibling convention: src/agents/tools/cron-tool.types.ts (type-only), packages/gateway-protocol/src/schema/cron.types.ts (type-only wire types), and src/cron/service/payload-merge.ts (the cron payload merge rules the patch touches). All three source files are now back at or below their baseline line counts and the ratchet passes.
  • src/cron/store.test.ts now uses the repo's expectDefined helper for indexed job access, which main's tightened unchecked index access requires.

Evidence

  • The touched suites were re-run after the rebase with node scripts/test-projects.mjs and all pass: 145 checks in src/agents/tools/cron-tool.test.ts, 199 checks across src/cron/normalize.test.ts, src/cron/store.test.ts, src/cron/service.jobs.test.ts and src/cron/trigger-script.test.ts, and 23 checks in packages/gateway-protocol/src/cron-validators.test.ts. 367 checks total.
  • src/cron/store.test.ts restart-aware round-trip coverage for the systemEvent and command tool caps; both fail on the pre-persistence codec and pass here.
  • node scripts/run-tsgo.mjs -p tsconfig.core.json and node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.json both pass, node --import tsx scripts/check-ts-max-loc.ts passes, and oxfmt --check on the changed files is clean.
  • An earlier restart cap-loss and reload proof, pinned to a previous head, is in fix(cron): cap trigger script tool access #104430 (comment)

Real behavior proof

Behavior addressed: A cron trigger script created by a restricted caller must not receive tools the caller cannot use; a systemEvent main-session job with a trigger script previously kept no tool cap.
Real environment tested: The production createCronTool entry point (src/agents/tools/cron-tool.ts) driven via tool.execute("add", ...) on pristine main 1708faf85b and on PR head c891d9601bafa360c3e8faa0cfb1781a87cece7b with the identical restricted creator (creatorToolAllowlist: ["read", "cron"]) creating a trigger-script systemEvent job; only the gateway RPC boundary was replaced to capture the params the tool sends.
Exact steps or command run after this patch: PROOF_OUT=/tmp/proof-after.txt node_modules/.bin/tsx cron-trigger-proof.ts (harness invokes the real cron tool add with trigger.script + payload.kind=systemEvent, prints the captured cron.add payload)
Evidence after fix:

# BEFORE (pristine main 1708faf85b, identical restricted-caller input)
{"kind":"systemEvent","text":"changed"}
# AFTER (this patch, head c891d9601bafa360c3e8faa0cfb1781a87cece7b, identical input)
{"kind":"systemEvent","text":"changed","toolsAllow":["read","cron"]}

Observed result after fix: The persisted trigger-script job carries toolsAllow: ["read","cron"], capping the trigger to exactly the creator-visible tools instead of receiving the full coding tool surface.
What was not tested: No live gateway tick with a provider-backed trigger evaluation, and the full build was not run.

@yetval
yetval requested a review from a team as a code owner July 11, 2026 11:17
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: S labels Jul 11, 2026
@yetval
yetval force-pushed the fix/cron-trigger-script-tools-cap branch from 9e4683e to 2f79127 Compare July 11, 2026 11:21
@clawsweeper

clawsweeper Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 13, 2026, 8:29 PM ET / July 14, 2026, 00:29 UTC.

Summary
Propagates creator-derived tool allowlists across trigger-script system-event and command cron payloads, including updates, protocol validation, SQLite persistence, restart reload, and headless evaluation. (github.com)

PR surface: Source +73, Tests +115. Total +188 across 15 files.

Reproducibility: yes. The supplied current-main production-entry-point run shows a restricted creator's trigger-script systemEvent payload lacks toolsAllow, and the restart proof demonstrates resulting exec and shell exposure. (github.com)

Review metrics: 2 noteworthy metrics.

  • New Persisted Cap Surfaces: 2 payload kinds added. systemEvent and command jobs newly carry toolsAllow through protocol validation, updates, and SQLite reload.
  • Legacy Cap Backfill: 0 jobs backfilled. Existing cap-less trigger jobs remain unrestricted until an owner selects an upgrade and operator-audit policy.

Stored data model
Persistent data-model change detected: unknown-data-model-change: packages/gateway-protocol/src/schema/cron.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🦞 diamond lobster
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Risk before merge

  • [P1] Existing trigger-script jobs created through restricted agents remain unrestricted after upgrade until an operator or agent edits them.
  • [P1] Fail-closing every cap-less historical trigger could interrupt legitimate unrestricted operator-created jobs because the store lacks creator provenance.
  • [P1] The branch is behind the latest main and needs a final rebase or merge-result refresh before landing.

Maintainer options:

  1. Land Forward Hardening With Audit Guidance (recommended)
    Merge the proven fix after explicitly accepting that historical cap-less jobs require a separate operator audit path.
  2. Add Legacy Quarantine Before Merge
    Fail closed for cap-less trigger scripts until an operator approves or re-saves them, accepting the upgrade disruption.
  3. Pause for a Provenance Model
    Keep the PR open if maintainers do not accept either forward-only protection or broad legacy quarantine.

Next step before merge

  • A cron/security owner should choose the legacy cap-less job policy and refresh the branch against current main; no narrow contributor code defect remains.

Maintainer decision needed

  • Question: Should this P0 hardening ship forward-only now, or must existing cap-less trigger-script jobs be quarantined before release?
  • Rationale: Historical rows cannot distinguish restricted-agent jobs from legitimate unrestricted operator jobs, so preserving or stopping those jobs changes a shipped security and compatibility boundary.
  • Likely owner: steipete — Their recent authorization and cron-runtime work most directly spans the security and compatibility boundary requiring a decision.
  • Options:
    • Ship Forward Protection Now (recommended): Land the proven forward hardening and require operator-facing guidance or an audit flow for pre-existing cap-less trigger jobs.
    • Quarantine Legacy Triggers: Block cap-less trigger evaluation until operators explicitly review and re-save each historical job with an approved policy.
    • Pause for Provenance Design: Hold the PR while designing a broader migration or provenance model that can classify historical jobs.

Security
Needs attention: The patch correctly strengthens new and edited jobs, but an owner must decide how to contain already-persisted cap-less trigger scripts.

Review details

Best possible solution:

Land the forward cap promptly after owner approval, then provide an operator-visible audit or Doctor flow that identifies cap-less trigger scripts and lets operators approve, restrict, or disable them without silently guessing provenance.

Do we have a high-confidence way to reproduce the issue?

Yes. The supplied current-main production-entry-point run shows a restricted creator's trigger-script systemEvent payload lacks toolsAllow, and the restart proof demonstrates resulting exec and shell exposure. (github.com)

Is this the best way to solve the issue?

Unclear as a complete upgrade solution. The branch is the narrowest maintainable forward-path fix, but a cron/security owner must choose how historical cap-less trigger jobs are handled.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0559bc22e0f6.

Label changes

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): After-fix live output exercises the production cron-tool entry point, while restart/reload evidence shows the resulting trigger surface retains read and cron but excludes exec and shell. (github.com)
  • remove merge-risk: 🚨 security-boundary: Current PR review merge-risk labels are merge-risk: 🚨 compatibility.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P0: Current main permits a restricted agent's trigger script to regain shell, exec, and patch capabilities, constituting a concrete tool-policy security bypass.
  • merge-risk: 🚨 compatibility: A complete upgrade policy may restrict or stop existing cap-less trigger jobs and require explicit operator review.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): After-fix live output exercises the production cron-tool entry point, while restart/reload evidence shows the resulting trigger surface retains read and cron but excludes exec and shell. (github.com)
  • proof: sufficient: Contributor real behavior proof is sufficient. After-fix live output exercises the production cron-tool entry point, while restart/reload evidence shows the resulting trigger surface retains read and cron but excludes exec and shell. (github.com)
Evidence reviewed

PR surface:

Source +73, Tests +115. Total +188 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 11 340 267 +73
Tests 4 119 4 +115
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 459 271 +188

Security concerns:

  • [high] Choose containment for legacy cap-less trigger jobs — src/gateway/server-cron.ts:466
    After merge, an existing job without toolsAllow still reaches trigger evaluation unrestricted; historical creator provenance is unavailable, so preserving compatibility also preserves the old escalation path for those jobs.
    Confidence: 0.98

What I checked:

Likely related people:

  • steipete: Recent history ties this person to centralized tool authorization and cron runtime seams, making them the strongest available owner for the compatibility-versus-containment decision. (role: recent security and cron-runtime contributor; confidence: high; commits: 3d7ad1c, cc9be84, 3f82dae; files: src/agents/tools/cron-tool.ts, src/gateway/server-cron.ts)
  • tyler6204: Merged history shows repeated work across cron scheduling, persistence, delivery, and job configuration in the central affected paths. (github.com) (role: cron feature owner; confidence: high; commits: d90cac9, 821520a, 3f82dae; files: src/agents/tools/cron-tool.ts, src/cron/service/jobs.ts, src/gateway/server-cron.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-12T00:43:25.980Z sha a6fbdd34a4873f3bf9ee3864f52d376b97b5e95b :: needs maintainer review before merge. :: none
  • reviewed 2026-07-12T01:09:28.619Z sha b960d13d6d51177dcf047be127754c7511a61d80 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-13T18:06:13.237Z sha c891d96 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-13T18:25:58.464Z sha c891d96 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-13T18:46:31.137Z sha c891d96 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-13T23:31:55.831Z sha c891d96 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-13T23:49:36.013Z sha c891d96 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-14T00:07:33.185Z sha c891d96 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 11, 2026
@yetval

yetval commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Rank-up addressing the two P1 items plus the requested provider-side reload proof.

What changed

  1. SQLite round-trip persistence for the new payload kinds. The cap was written to the payload but the cron store codec (src/cron/store/payload-codec.ts) hard-coded payload_tools_allow_json: null for systemEvent and command, and neither read path restored it. So the cap survived only in memory: after a gateway restart the reloaded job carried no toolsAllow, and server-cron.ts (toolsAllow: job.payload.toolsAllow) then handed the trigger the full coding surface again. Fix reuses the existing payload_tools_allow_json column for all three kinds on both write and read.
  2. Restart-aware regression in src/cron/store.test.ts: a trigger-script systemEvent job and a command job, each with a ["read","cron"] cap, are persisted via saveCronStore and reloaded via loadCronStore (the real restart path); both assert the cap survives.

Real behavior proof

Behavior addressed: After a gateway restart, a trigger-script cron job created by a restricted caller must still be capped to the creator tool surface; before this fix the cap was dropped on SQLite reload and the trigger regained shell/exec/patch.
Real environment tested: Real cron SQLite store (saveCronStore/loadCronStore) plus the real trigger tool-construction path (resolveEmbeddedAttemptToolConstructionPlan + applyEmbeddedAttemptToolsAllow, the functions prepareTriggerRuntime uses) driven on pristine PR head 2f79127443 and on the rank-up head 7112921198 with the identical persisted ["read","cron"] cap.
Exact steps or command run after this patch: persist a trigger-script systemEvent job capped to ["read","cron"], reload it from the SQLite store, then resolve the trigger tool surface from the reloaded payload.toolsAllow exactly as the gateway does.
Evidence after fix:

# BEFORE (pristine PR head 2f79127443, cap dropped on reload)
reloaded payload.toolsAllow = null
plan.includeShellTools after reload = true
trigger tool surface after reload = ["cron","exec","patch","process","read","shell","write"]
disallowed "exec" available after reload = true
disallowed "shell" available after reload = true
# AFTER (this rank-up 7112921198, identical persisted cap)
reloaded payload.toolsAllow = ["read","cron"]
plan.includeShellTools after reload = false
trigger tool surface after reload = ["cron","read"]
disallowed "exec" available after reload = false
disallowed "shell" available after reload = false

Observed result after fix: After reload the trigger surface is exactly the creator-visible ["cron","read"]; the disallowed exec and shell tools are no longer reachable, whereas before the reloaded job regained the full surface.
What was not tested: No live model-backed headless trigger execution and no full build; the tool-construction decision (which alone gates availability before any headless/model run) was driven, not the subsequent script run.

Restart-aware regression (supplemental)

src/cron/store.test.ts, reverting only the codec to this PR's head:

# BEFORE (unfixed codec)
 × round-trips a trigger-script systemEvent tool cap through SQLite
   expected { kind: 'systemEvent', text } to deeply equal { kind, text, toolsAllow: ['read','cron'] }
 × round-trips a command payload tool cap through SQLite
# AFTER (this rank-up)
 round-trips a trigger-script systemEvent tool cap through SQLite  ok
 round-trips a command payload tool cap through SQLite             ok

Migration note

No shipped release ever persisted a systemEvent/command cap: on origin/main the payload schema is additionalProperties: false without toolsAllow, normalize.ts deletes toolsAllow for non-agentTurn payloads, and the cap was only stamped on agentTurn. So there are no legacy rows to backfill; the field is introduced here. Existing uncapped jobs keep their current (uncapped) behavior until their next update, at which point the cap is restamped. The cap derives from the creator's live tool surface, which is not recorded on the job, so no doctor migration could synthesize it retroactively.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 11, 2026
@yetval
yetval force-pushed the fix/cron-trigger-script-tools-cap branch 2 times, most recently from b960d13 to 06d066d Compare July 13, 2026 16:02
yetval added 3 commits July 13, 2026 12:41
Persist the creator tool cap for any cron job with a trigger script and pass it to the headless trigger runtime. System event and command payloads retain the cap across cron updates.
The creator tool cap is stamped on systemEvent and command payloads whenever a
cron job carries a trigger script, but the SQLite codec dropped
payload.toolsAllow for those kinds. After a gateway restart the reloaded job
carried no cap and the trigger regained the full coding surface. Persist and
restore toolsAllow through the existing payload_tools_allow_json column for all
payload kinds, and add restart-aware round-trip coverage.
@clawsweeper clawsweeper Bot added the P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. label Jul 13, 2026
@clawsweeper

clawsweeper Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 13, 2026
@yetval

yetval commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-run

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 14, 2026
@steipete steipete self-assigned this Jul 15, 2026
@steipete
steipete merged commit 864bb18 into openclaw:main Jul 15, 2026
104 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 16, 2026
* fix(cron): cap trigger script tool access

Persist the creator tool cap for any cron job with a trigger script and pass it to the headless trigger runtime. System event and command payloads retain the cap across cron updates.

* fix(cron): persist trigger tool cap for systemEvent and command payloads

The creator tool cap is stamped on systemEvent and command payloads whenever a
cron job carries a trigger script, but the SQLite codec dropped
payload.toolsAllow for those kinds. After a gateway restart the reloaded job
carried no cap and the trigger regained the full coding surface. Persist and
restore toolsAllow through the existing payload_tools_allow_json column for all
payload kinds, and add restart-aware round-trip coverage.

* ci: re-trigger workflows (transient self-hosted runner flake)

* fix(cron): use expectDefined for store test job access

* refactor(cron): hoist cron tool types, payload merge, and wire types into companion modules

Keeps the oversized cron files at or below their baseline line counts for the
changed-file TypeScript LOC ratchet on main. No behavior change.

* fix(cron): retain freshly stamped cap markers

* test(ci): align compact shard count

* fix(cron): make trigger cap updates atomic

* fix(cron): preserve explicit cap provenance

---------

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
* fix(cron): cap trigger script tool access

Persist the creator tool cap for any cron job with a trigger script and pass it to the headless trigger runtime. System event and command payloads retain the cap across cron updates.

* fix(cron): persist trigger tool cap for systemEvent and command payloads

The creator tool cap is stamped on systemEvent and command payloads whenever a
cron job carries a trigger script, but the SQLite codec dropped
payload.toolsAllow for those kinds. After a gateway restart the reloaded job
carried no cap and the trigger regained the full coding surface. Persist and
restore toolsAllow through the existing payload_tools_allow_json column for all
payload kinds, and add restart-aware round-trip coverage.

* ci: re-trigger workflows (transient self-hosted runner flake)

* fix(cron): use expectDefined for store test job access

* refactor(cron): hoist cron tool types, payload merge, and wire types into companion modules

Keeps the oversized cron files at or below their baseline line counts for the
changed-file TypeScript LOC ratchet on main. No behavior change.

* fix(cron): retain freshly stamped cap markers

* test(ci): align compact shard count

* fix(cron): make trigger cap updates atomic

* fix(cron): preserve explicit cap provenance

---------

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XL 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.

2 participants