Repository navigation
Conversation
|
Codex review: blocked before merge. What this changesThis PR advertises flat automation fields, repairs malformed arguments before validation, and preserves stored job types during text-only updates. Example: A model sends action="add", job="truncated", everyMs=300000, and message="Check for urgent mail".
Review scores
ProductKind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain This PR retains useful recovery work absent from current main, with credible live proof and no actionable correctness findings; adopting the advertised flat contract still needs an owner decision. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherThe automations agent tool converts model arguments into canonical jobs and patches, then sends them through existing creator-authority planning and Gateway cron APIs. flowchart LR
A[Model tool call] --> B[Argument preparation]
B --> C[Schema validation]
C --> D[Cron canonicalization]
D --> E[Creator authority planner]
E --> F[Gateway cron API]
F --> G[Stored job and scheduler]
Technical reviewBest possible solution: Keep one pre-validation adapter feeding existing canonicalization and authority owners, with explicit owner acceptance of the advertised flat contract. Do we have a high-confidence way to reproduce the issue? Current source shows malformed non-JSON job strings fail object validation before execution-time recovery; supplied live traces demonstrate the repaired boundary, but no target code was run during this review. Is this the best way to solve the issue? Preparation before validation fixes the boundary using existing owners; advertising additional fields and changing mixed-input precedence require an explicit product choice. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 50ff12b5a680. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +297, Tests +1204, Other 0. Total +1501 across 13 files. Added test files: 1. View PR surface stats
Review metrics
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 HistoryReview history (47 earlier review cycles; latest 8 shown)
Reviewed October 19, 2026, 2:42 AM ET / 06:42 UTC (Revision 48). |
|
Source audit note on the linked issue scope: this looks like a useful repair for #3569-style flat cron tool calls, but I would keep #64721 open after this PR. At this head, One related polish point: the PR head canonicalizer already recovers flat |
|
Thanks. I've done a follow-up fix for the review point on flat nullable clears, so this PR now also allows flat top-level I have re-tested the installed build. Test was run end to end with TEST - text pasted from TEST-flatfields-extended.md Goal: prove the cron tool accepts the flat top-level fields added by the PR, and that flat Step 1Run one agent turn and tell it to use the cron tool exactly once to create a disabled test job with {
"action": "add",
"name": "flat-nullclear-test-DELETEME",
"enabled": false,
"expr": "0 */6 * * *",
"message": "Disposable flat-field proof job.",
"model": "openai/gpt-5.4",
"fallbacks": ["openai/gpt-5-mini"],
"toolsAllow": ["exec"],
"timeoutSeconds": 60
}Requirements:
Step 2Run a second agent turn and tell it to use the cron tool exactly once to update that same job with {
"action": "update",
"jobId": "<JOB_ID_FROM_STEP_1>",
"model": null,
"fallbacks": null,
"toolsAllow": null
}Requirements:
Step 3Verify in the cron job view that Step 4Delete the test job. Output from openclaw: Execution Log
Verdict: The cron tool successfully handles flat top-level fields for creation and uses Model: vllm/local_llama.gguf" As before a separate test was also run with openai/gpt-5.4 for completeness, also successful. This should satisfactorily demonstrate the claims made for the patch, i.e. exposed flat top-level cron payload fields are accepted on create/update; flat Scope note: yes, agreed that this fix is intentionally narrow. It deals with the flat add/update schema but does not claim to resolve the separate |
e9993f0 to
329900d
Compare
…fter main wake-routing changes; successfully tested on OpenClaw v2026.6.11-beta.2; prompt snapshots regenerated Expose provider-compatible flat cron fields while retaining nested job and patch support. Normalize malformed or stringified cron tool arguments, preserve nullable flat update clears, and validate the prepared nested patch after argument preparation. Merge in the upstream wake-scope hardening from main so explicit wake sessionKey and agentId targets remain constrained to the calling agent. Verification: - corepack pnpm test src/agents/tools/cron-tool.schema.test.ts src/agents/tools/cron-tool.test.ts src/agents/tools/cron-tool.flat-params.test.ts - corepack pnpm prompt:snapshots:check - live flat create/read/update/remove proof passed on OpenClaw v2026.6.11-beta.2 - live wake-scope proof rejected cross-agent sessionKey and agentId targets with the expected validation errors
329900d to
5b5f513
Compare
2b1972e to
63894a8
Compare
Fix to reject incomplete flat schedule updates before dispatch
Keep the flat cron job fields out of Control UI admin schema
|
@clawsweeper re-review Requesting a fresh review to reconcile inconsistent review outcomes. (1) cron-tool.ts (c63a721f2523) and cron-tool-prepare.ts (0d957a3e8208) are byte-identical between the 12:55 and 13:16 reviews of the same head 3a34311. The first review reported Security: None, the second raised a medium security item citing cron-tool.ts:406. Nothing changed in that file inbetween |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Prove flat toolsAllow stays capped to creator authority before dispatch
|
Once stored, toolsAllow enforcement applies equally to nested jobs and flat-form jobs. Both become the same canonical payload and follow the same scheduler/runtime path. This PR97339 changes only how flat input is recovered and capped before Gateway dispatch. It does not change later scheduled-run enforcement, which is the same for both flat form and nested jobs. Nothing at that stage differentiates persisted jobs created from flat input from nested jobs. This PR's changes are therefore irrelevant to that stage and so testing if a persisted toolsAllow is enforced when the job later executes is cron runtime code - src/cron/** - and beyond the remit of this PR Request that PR97339 is returned to the maintainer look queue so a maintainer decision can be reached on whether to approve the flat contract for ongoing use and maintenance |
|
On the flat This is a deliberate, previously justified choice - see The invariant this PR enforces is fail visibly before any write. Schedule ambiguity is Payload precedence is different. The bounded-risk case is also covered: As stated, rejecting would cost exactly the tolerance this flat contract exists to provide. |
Merge remote-tracking branch 'origin/main' into fix/cron-tool-schema-fix
Merge remote-tracking branch 'origin/main' into fix/cron-tool-schema-fix
|
This pull request has been automatically marked as stale due to inactivity. |
Merge remote-tracking branch 'origin/main' into fix/cron-tool-schema-fix
…ts, preserve nested handling and update payload types, clarify guidance, and refresh regression tests and prompt snapshots. Merge remote-tracking branch 'origin/main' into fix/cron-tool-schema-fix
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
live Gateway / local LLM proof 2026-10-17. All six acceptance checks passed.
All fixture jobs were removed. Original job IDs and configuration revisions were unchanged after cleanup. Gateway configuration was unchanged; fallback settings were not modified. Evidenceproof-transcript.txt @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
ClawSweeper has accepted the proof and reports no actionable findings. The remaining item is a maintainer decision on the flat contract. @clawsweeper re-review please restore “ready for maintainer look” and remove "stale" label |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…fix, preserving flat cron field and upstream authority checks
|
A focused repair from this investigation has shipped in #182824: 2cd2e62. Malformed The repair has 134 passing focused tests and isolated Gateway creation/readback proof. It landed through the native inherited-failure exception for the separate stream-approval This does not adopt the broader flat-field schema or the other behavior changes proposed here, so this PR remains open. Thanks @LinuxMum for the work that motivated the investigation. |
|
Thanks @LinuxMum. This PR prompted a proper look at how small local models handle the cron/automation tool, and that turned up a real bug, now fixed separately. We measured instead of guessing: 10 cron tasks × 3 runs × 3 local models (Qwen3 8B, Qwen3.5 4B, Qwen2.5 7B) through a real Gateway, checking the saved job each time. We compared the current schema, this PR's flat form, and two general redesigns applied to every model instead of only small ones.
Because the strongest local model regressed, we're keeping the current nested schema for now. The concrete failure you hit, a string Closing this one as not planned. Thanks again for pushing on small-model reliability here. |
What Problem This Solves
Less-capable models (tested locally with Gemma 4 26B and Qwen3.8 27B) often flatten cron
add/updatearguments besideaction, or send a malformedjobstring. Validation then fails and the automation is never created or changed.Why This Change Was Made
name,enabled,sessionTarget,at,everyMs,expr,tz,message,toolsAllow,text. The prompt says to prefer them only when nested objects are unreliable.prepareCronToolArgumentsturns flat input into the existing nested job before schema validation. The Gateway still receives one canonical job format.jobtakes main's route unchanged, including normalization of stale schedule/payload fields. Flat recovery runs only whenjobis missing, malformed, or{}. Nested and flat fields are never merged.Deliberate differences from main:
jobplus any advertised flat field exceptnamefails before the Gateway call. Main silently ignored these, which would drop atz,toolsAllow,enabledorsessionTargetand change timing or tool access without telling the user. Blank filler strings are ignored, andnamebesidejobis still ignored as on main.{payload:{text}}update turns a task into a reminder. If the stored kind is unreadable or incompatible, the update errors without writing.at/everyMs/expr;tzonly withexpr;textormessage, not both (unless identical).job: {}with no flat content fails withjob requiredbefore the Gateway call.User Impact
Weaker models can create and edit automations with flat fields. Existing nested callers are unaffected apart from the two deliberate differences above.
Maintainer decision still open: whether to adopt the flat form as a supported model-facing contract. ClawSweeper recommends adopting the narrow flat form.
Evidence
payload.toolsAllow:["read"].tools/listshowed onlyread, the allowedreadsucceeded, and a rawwritecall was denied (Tool not available: write) with the sentinel file still absent.cron-tool.flat-params.test.ts), through prepare → validate → execute:tz:""inside theatscheduleSTALE_AT_SCHEDULEfixturetext/messagejobfa86f99a19),cron-tool.flat-params,cron-tool.schema,cron-toolandsrc/cron/normalizepass, 218/218. On the previous head56e8b31ce653, ClawSweeper's nested reminder fails withtz needs expr; the new test reproduces that input.Related: #3569, #64721, #12124, #121645
create.json
run.json
scheduled-run-toolsallow-read-proof.json
Everything below is a chronological log of earlier review cycles, kept for history purposes.
Where it conflicts with this summary (e.g. field counts, head SHAs, test totals) this summary
is current as at the time of writing
PR #97339 ClawSweeper proof
Identity
7ff455860b90a1c63070952cf1cbd190b6a8e22bLinuxMum/openclawfix/cron-tool-schema-fixat6c5069e1cdc573df86d5099455482594663d7d0474db4da9de9f042215ac5bdf1966987daacc020f78baf2562a7f6f2d09a0f51ae68f1d6202aac65cqaRuntimepassedMain changes affecting PR files
src/agents/tools/cron-tool.ts: kept mainCronToolOutputSchemaimport plus PRprepareCronToolArgumentsimport.config/assertion-safety-baseline.txt: updated to current counts:cron-tool.ts 9,dashboard-tool.ts 2.Proof achieved
raw MCP
tools/calltocronusing flat fields created job2bf5e1a0-1ab6-4651-9288-6fcfd8ddad4dwith initialpayload.toolsAllow:["automations"],sessionTarget:"isolated", and account scheduled-tool policy.real scheduled restricted run through the genuine Gemini CLI package tree:
allowlist:
payload.toolsAllow:["read"]tools/list: onlyreadallowed
read: succeededraw omitted
writecall: denied withisError:true,Tool not available: writesentinel:
proof/DENIED-WRITE-SENTINEL.txtremained absentThis proves final-boundary denial for a scheduled restricted run: an omitted raw MCP tool call was denied and had no side effect.
Remaining gap
Exact scheduled proof with
payload.toolsAllow:["automations"]did not complete.Finding: the genuine Gemini package passes durable executable binding, but
toolsAllow:["automations"]/["cron"]materializes a non-usable OpenClaw MCP settings entry, howevertoolsAllow:["read"]materializes and proves the denial boundary.Related: #3569
Related: #64721
Current status as at 2026-09-04
Summarised from the below PR body to save reading time:
What this adds: ten flat top-level fields to assist lower capability models usable for
add/update-name,enabled,sessionTarget,at,everyMs,expr,tz,message,toolsAllow, andtext(previously documented forwakeonly). Nine are new properties:textis existing, newlydocumented for add/update. This set has narrowed since the PR opened as earlier revisions
advertised fourteen fields, several of which became unnecessary as cron changed in main.
The nested
jobform is unchanged and still worksScope: ten files, all under
src/agents/tools/plus regenerated prompt snapshots.Flat input is canonicalised into the existing nested job before dispatch
Head
6c5069e1cd:cron-tool.flat-params.test.ts41/41 green in CI, including creatorcapability capping for both an allowed and an unavailable tool. The only red lane is
control-ui-performance, a repo-wide Control UI (this PR changes no UI code)Local models used for testing. Local models Gemma 4 26B Q5 K_S and more recently Qwen3.8
27B Q5 K_S (Llama.cpp) were used as test subjects for the model-facing schema in my
live Openclaw
Open items: maintainer review - whether to adopt the flat contract as a supported
model-facing form
What Problem This Solves
src/agents/tools/cron-tool.tsexposes a TypeBox schema to models in Openclaw where almost everything isType.Optional. However the contract is enforced downstream innormalize.tsandpersisted-shape.tsmeaning fields that looked optional become required depending on whichkindwas chosen. The code says at ln 54–55:In practice this means that openclaw gets no useful feedback from mistakes. Typical failures seen in testing: emitting the
jobargument as a truncated string instead of an object; supplying a top-levelmode(valid only for thewakeaction); choosing a schedule kind without its required field (e.g.kind: "cron"with noexpr, or omittingpayload.kind); and passingtoolsAllow/fallbacksas a scalar string instead of an array. Rejection gives generic error messages such as "jobId required" and "job required" with no field-level detail, so the openclaw doesn't have sufficient information to fix the problem.Why This Change Was Made
I mostly use local Gemma 4 26b Q5 which became completely unable to amend my cron jobs following upgrade to v6 Openclaw. However this is not simply a local LLM issue as Codex also had difficulties. Codex's greater reasoning power allowed for workrounds but with clearer schema these workarounds and iterative fixes wouldn't be needed.
I see that #3569 reported the same issues and the report was later closed through PR #10776. But #10776 did not address the TypeBox schema. @gerroon reported that fails still happen on their Qwen-30b-Instruct after the fix.
Also #64721 reports the same kind of problem:
payload.model,payload.timeoutSeconds,payload.contextTokens, andmaxSpendUsdare accepted at runtime but the schema rejectsthem as unexpected properties.
Fix could be with a discriminated union, making the model reason about nested conditional types. However my concern is that lower-reasoning local LLMs will not manage this reasoning adequately.
Therefore instead the patch adds a flat top-level field set as an alternative to the nested
jobobject:nameenabledsessionTargetmain | isolated | current | session:<id>ateveryMsexprtzexprmessageagentTurnpayloadanchorMseveryMsschedulesmodelfallbackstoolsAllowthinkingtimeoutSecondsThe canonicalizer (
cron-tool-canonicalize.ts) infersschedule.kindandpayload.kindfrom whichever fields are present, so the model never has to deal with the nested union. Alsodescriptions for
text(impliessystemEvent) andmode(wake only, not delivery mode)have been tightened up.
The implementation now also normalises scalar toolsAllow / fallbacks into arrays and reconstructs job / patch from recoverable flat fields when the request is clearly a cron add/update call. This deals with an issue found in testing where openclaw incorrectly tries toolsAllow as a scalar string, or emits a malformed non-object job / patch alongside flat fields.
User Impact
Upstream already recovers flat params at runtime:
recoverCronObjectFromFlatParamsincron-tool-canonicalize.ts(withCRON_FLAT_PAYLOAD_KEYS/CRON_FLAT_SCHEDULE_KEYS)The patch simply exposes in the model-facing schema what the runtime already accepts but doesn't show. Note the nested
jobform still works also. There is no negative user impact to the fix.Evidence
Tested on OpenClaw gateway version 2026.6.10
OS: Linux Mint 22.3 (Zena)
Kernel: Linux 6.17.0-23-generic (x86_64)
LLMs used for testing: Local Gemma 4 26b Q5 (llama.cpp); openai/gpt-5.4
Tests designed and run by: Claude (Anthropic Claude Opus 4.8); OpenAI Codex (gpt-5.4)
Focused validation on
fix/cron-tool-schema-fix(~/code/openclaw-main) currently passes for the actual patch surface:corepack pnpm test src/agents/tools/cron-tool.schema.test.ts src/agents/tools/cron-tool.test.ts20 passed135 passedThese tests cover:
toolsAllow/fallbacksjob/patchfrom recoverable flat argumentsEarlier branch testing also included:
node scripts/run-vitest.mjs src/agents/tools/cron-tool.schema.test.tsnode scripts/run-vitest.mjs src/agents/tools/cron-tool.test.tspnpm tsgo:core:testLive installed testing on patched OpenClaw 2026.6.10 also succeeded in creating disposable cron jobs through the flat-field interface, confirming the path works in a real installed gateway and not only in unit tests.
This four-file branch is green on the patch-local validation that actually exercises the cron-tool
change. The remaining PR-guide blockers are upstream baseline failures outside this patch scope.
Current upstream-baseline validation also shows:
origin/mainstill failscorepack pnpm deps:shrinkwrap:checkwithnpm-shrinkwrap.json is stale. Run pnpm deps:shrinkwrap:generate.origin/mainis also currently red in unrelated test areas, includingsrc/gateway/server-methods/agent.test.tsandsrc/media-understanding/image.test.ts(reported for completeness only)
So the branch is green for the cron-tool patch itself, while the remaining
check/ full-suitetestreds are upstream, pre-existing, and unrelated to this four-file change. codex review --base origin/main stated the patch appears to correctly expose the flat cron fields and normalize them before validation without introducing a concrete regression in the touched surfaces.Update 2026-08-18
The sections above are kept for history. Current state and evidence requested by ClawSweeper below.
Current flat contract (10 fields)
As per my #97339 (comment) below, the advertised flat top-level contract is now deliberately limited to ten fields:
nameenabledsessionTargetmain,isolated,current, orsession:<id>ateveryMsexprtzexprmessageagentTurnprompt; implies anagentTurnpayloadtextsystemEventtext; implies asystemEventpayloadtoolsAllowagentTurntool allowlist, e.g.["read"]at,everyMs, orexpr. Updates remain partial jobs under main's unified API.jobform remains supported and takes precedence if both nested and flat forms are supplied.jobcontract.Codex harness
This PR changes no
openai/codexsource or Codex harness/runtime code. The change runs end-to-end on an installed build using the OpenClaw Codex harness (noted in my #97339 (comment) below)Mode invariant (addressed ClawSweeper P2)
Top-level
modeis wake-only.prepareCronToolArgumentsnow rejects a top-levelmodeonaction="add"andaction="update"(including when a nestedjobis present) before any Gateway write, and returns guidance to remove the field. This replaces the earlier guard that only rejectedmodewhen no nested job was supplied, that droppedmodesilently on the nested path.Evidence (final head
18cdfb2)Output:
name/everyMs/message, no nested structure) is prepared into the canonical nestedjob(schedule.kind="every",payload.kind="agentTurn").modeguard rejects a top-levelmodeon bothaddandupdate, including with a nestedjobpresent.A live gateway session where the model (local Gemma as before) emitted a top-level
modeon anadd; the Gateway returned the rejection end-to-end with head18cdfb2's exact message, and no job was created:Update — 2026-08-19
Resynced onto current
mainand closed the last flat-schedule invariant.prepareCronToolArgumentsnow rejects, before canonicalization, anaddthat supplies more than one schedule field (at/atMs/everyMs/every/expr/cron), or a baretzwithoutexpr. Schedule ambiguity is rejected because a wrong schedule fails invisibly and time-shifted; payload conflicts (message/text,toolsAllow) stay recoverable by documented precedence. Rejecting these would negatively impact the low-capability-model tolerance this contract exists for.Verified live on my installed openclaw (v2026.8.1-beta.2 carrying the PR97339 fixes, local Gemma model as before):
cron-tool.flat-params.test.tsadds regression tests for schedule-conflict rejection,tz-without-expr, and the deliberate payload-conflict tolerance; all cron suites pass.Update — 2026-09-03: mode-guard proof
The earlier evidence is retained above for history. This update addresses the
current ClawSweeper proof request after the final resync at head
92d5db6f333bad2a02cd6a1df1bdaea458adf9b8.Live testing
The live run used my installed build based on upstream tag
v2026.9.1-beta.1at1d96e5aee2d49cde999ed055eda113e2523a7b5cand has the updated PR #97339mode/recovery implementation folded into it. The local model was
Qwen 3.8 27B Q5_K_S. I supplied each case separately through the installed
OpenClaw desktop UI and let the model call the real
automationstool; thesewere not direct calls to a mocked tool.
The tested
prepareCronToolArgumentsmode/recovery block is the same block nowpresent at the current PR head.
At the exact PR head, the focused
cron-tool.flat-params.test.tsandcron-tool.schema.test.tssuites pass. The flat-stream regression test coversboth
mode:"line"andmode:"match"; for each mode it asserts that:job.schedule.kind="stream"with the mode preserved;modeis removed before validation; andcron.addwith the recovered stream schedule.The rejection cases also assert that nested or non-stream top-level modes throw
the actionable wake-only error and that the Gateway mock is not called.
Telegram
This PR changes the transport-independent
automationstool schema and cronargument-preparation path. It changes no Telegram source, Telegram parsing,
channel routing, or delivery code.
After any chat transport has delivered a prompt to the agent, the relevant
path is the same:
The installed Control UI run crosses that complete affected path: a real model
emitted the tool arguments, OpenClaw prepared and validated them, and the real
Gateway either persisted the canonical job or returned the visible error.
Starting the same prompt in Telegram would add Telegram ingress before this
path, but would not exercise a different cron schema, canonicalizer, mode
guard, or Gateway write. A Telegram-specific E2E run therefore would not add
extra evidence about this PR.
Mode invariant and silent-failure protection
Top-level
moderemains wake-only. For add/update:modeis rejected before any Gateway write;modeis rejected before anyGateway write; and
yields
schedule.kind="stream". Its stream mode is preserved inside theschedule and the copied top-level field is removed before schema validation.
This prevents the two silent-drop cases:
normalize.tscannot silently erase amode from a non-stream job, and a top-level mode alongside a nested job cannot
be orphaned. Invalid input fails visibly with:
Live installed-build results — 2026-09-02
mode:"match"schedule.kind="stream"andschedule.mode="match".mode:"line"everyMs+ top-levelmode:"now"everyMs+ top-levelmode:"line"mode:"match"action:"wake",mode:"now"MODETEST-7persisted asschedule.kind="every",everyMs=300000, with an agent-turn message payload.The retained Gateway log independently records the T7 write:
Only T1 and T7 created jobs. The Gateway log records two successful
cron.removecalls immediately after the run (55msand65ms), completingthe cleanup.
This evidence covers both sides of the change: valid flat and stream inputs
survive canonicalization and persist, while invalid mode placements return a
visible error before any write rather than being silently ignored.
Update 2026-09-03
Live validation tests were run on an installed bespoke OpenClaw build combining PR head
92d5db6f333bad2a02cd6a1df1bdaea458adf9b8with then-current upstream main740b2447b4d762bfb7a5ca53fc6794cff778f526. The model was local Qwen 3.8 27BQ5_K_S.
everyMsandmessageinto canonicalschedule.kind="every"and
payload.kind="agentTurn".everyMs=3600000toeveryMs=7200000; the returned persisted job confirmedthe update.
mode="line"was rejected before any write with thewake-only guidance. It was not silently dropped.
schedule.kind="stream", preservingmode="match"andmatch="ERROR",removing top-level
mode, and then stopping at the explicit trusted-run gate.cdDuring testing, main advanced to
3e8bda1d0aaae7cbcee19924370e5d743371584d. There was no upstream overlap inthe cron implementation or tests; the only non-snapshot overlap was the
generated assertion baseline. The branch was resynced and prompt snapshots
were regenerated. The Telegram files in the diff are generated prompt
snapshots reflecting the automations schema; this PR does not change Telegram
runtime code.
Update - 2026-09-04
Automated proof:
cron-tool.flat-params.test.tspasses 39/39 at3a34311e37, includingrejects incomplete flat schedule updates before Gateway dispatchandaccepts a complete flat cron schedule update with a timezone.The guard requires a flat update to recover exactly one complete, kind-consistent
schedule; ambiguous or incomplete schedules fail visibly before dispatch.
Live corroboration: I fetched upstream immediately before building
(
origin/main=0c2da1da0315, the latest main available when the build began),applied pushed PR head
3a34311e37, built it, and ran the compiled output throughthe live Gateway. Local Qwen3.8 27B Q5_K_S (as before) created a flat
expr+tzjob;a timezone-only update was rejected, no
cron.updatewas logged, and readbackretained
{kind:"cron",expr:"17 4 * * *",tz:"Europe/London"}.The tested checkout was not byte-identical to
3a34311e37, so to be exact:cron-tool-prepare.tsdiffers only in that the pushed head passesactionas a parameter where the tested tree read
next.actionThe guard path exercised live is the guard path in the pushed head.