Commit a6768d9
authored
feat(cron): event triggers — polled condition-watcher scripts via code mode (#101195)
* feat(cron): add headless code-mode driver and trigger-script evaluator
Part A of cron event triggers: runCodeModeScriptHeadless runs a script
to completion (exec/settle/resume, no snapshots, no session), plus the
cron-facing evaluator with per-job tool catalog cache, semaphore, 16KB
state cap, and closed failure taxonomy.
* fix(cron): correct trigger-script bootstrap flags and cache narrowing
* feat(cron): add event triggers (polled condition-watcher scripts)
Part B: trigger field on cron jobs gated by cron.triggers.enabled;
timer evaluates the script each due tick, quiet ticks leave no run
history, fired runs append the script message to the payload; once
semantics, min-interval floor, SQLite columns, RPC/CLI/agent-tool
surfaces, and docs.
* fix(cron): propagate triggerEval through startup catch-up outcomes
* fix(cron): honor cron staggering on quiet trigger ticks; fix trigger test types
* fix(cron): reject with Error reason in trigger-script abort test
* fix(cron): regenerate protocol/docs/snapshot artifacts and break madge cycle for trigger types
CI fixes for #101195: trigger evaluator result types move to the cron
types leaf (madge cycle), cron tool schema inventory gains trigger,
Swift protocol bindings + docs map + Linux prompt snapshots regenerated.
* fix(cron): drop underscore-dangle names in trigger code sync assert
* fix(cron): adopt registerHeadlessToolSearchCatalog after tool-search symbol localization
Upstream #101831 made registerToolSearchCatalog module-private; fold the
headless ref-only catalog registration into one public seam.1 parent 525f58e commit a6768d9
53 files changed
Lines changed: 2826 additions & 85 deletions
File tree
- docs
- automation
- packages/gateway-protocol/src
- schema
- src
- agents
- tools
- cli/cron-cli
- config
- cron
- isolated-agent
- run-log
- service
- store
- gateway
- server-methods
- state
- test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7057 | 7057 | | |
7058 | 7058 | | |
7059 | 7059 | | |
| 7060 | + | |
7060 | 7061 | | |
7061 | 7062 | | |
7062 | 7063 | | |
| |||
7088 | 7089 | | |
7089 | 7090 | | |
7090 | 7091 | | |
| 7092 | + | |
7091 | 7093 | | |
7092 | 7094 | | |
7093 | 7095 | | |
| |||
7118 | 7120 | | |
7119 | 7121 | | |
7120 | 7122 | | |
| 7123 | + | |
7121 | 7124 | | |
7122 | 7125 | | |
7123 | 7126 | | |
| |||
7150 | 7153 | | |
7151 | 7154 | | |
7152 | 7155 | | |
| 7156 | + | |
7153 | 7157 | | |
7154 | 7158 | | |
7155 | 7159 | | |
| |||
7236 | 7240 | | |
7237 | 7241 | | |
7238 | 7242 | | |
| 7243 | + | |
7239 | 7244 | | |
7240 | 7245 | | |
7241 | 7246 | | |
| |||
7253 | 7258 | | |
7254 | 7259 | | |
7255 | 7260 | | |
| 7261 | + | |
7256 | 7262 | | |
7257 | 7263 | | |
7258 | 7264 | | |
| |||
7269 | 7275 | | |
7270 | 7276 | | |
7271 | 7277 | | |
| 7278 | + | |
7272 | 7279 | | |
7273 | 7280 | | |
7274 | 7281 | | |
| |||
7287 | 7294 | | |
7288 | 7295 | | |
7289 | 7296 | | |
| 7297 | + | |
7290 | 7298 | | |
7291 | 7299 | | |
7292 | 7300 | | |
| |||
7394 | 7402 | | |
7395 | 7403 | | |
7396 | 7404 | | |
| 7405 | + | |
7397 | 7406 | | |
7398 | 7407 | | |
7399 | 7408 | | |
| |||
7418 | 7427 | | |
7419 | 7428 | | |
7420 | 7429 | | |
| 7430 | + | |
7421 | 7431 | | |
7422 | 7432 | | |
7423 | 7433 | | |
| |||
7441 | 7451 | | |
7442 | 7452 | | |
7443 | 7453 | | |
| 7454 | + | |
7444 | 7455 | | |
7445 | 7456 | | |
7446 | 7457 | | |
| |||
7466 | 7477 | | |
7467 | 7478 | | |
7468 | 7479 | | |
| 7480 | + | |
7469 | 7481 | | |
7470 | 7482 | | |
7471 | 7483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
91 | 126 | | |
92 | 127 | | |
93 | 128 | | |
| |||
497 | 532 | | |
498 | 533 | | |
499 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
500 | 539 | | |
501 | 540 | | |
502 | 541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
39 | 71 | | |
40 | 72 | | |
41 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
250 | 259 | | |
251 | 260 | | |
252 | 261 | | |
| |||
431 | 440 | | |
432 | 441 | | |
433 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
434 | 447 | | |
435 | 448 | | |
436 | 449 | | |
| |||
454 | 467 | | |
455 | 468 | | |
456 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
457 | 474 | | |
458 | 475 | | |
459 | 476 | | |
| |||
474 | 491 | | |
475 | 492 | | |
476 | 493 | | |
| 494 | + | |
477 | 495 | | |
478 | 496 | | |
479 | 497 | | |
| |||
527 | 545 | | |
528 | 546 | | |
529 | 547 | | |
| 548 | + | |
530 | 549 | | |
531 | 550 | | |
532 | 551 | | |
| |||
556 | 575 | | |
557 | 576 | | |
558 | 577 | | |
| 578 | + | |
559 | 579 | | |
560 | 580 | | |
561 | 581 | | |
| |||
621 | 641 | | |
622 | 642 | | |
623 | 643 | | |
| 644 | + | |
624 | 645 | | |
625 | 646 | | |
626 | 647 | | |
| |||
0 commit comments