Repository navigation
Description
Sub-issue 4 of #2114.
Composites that run on a cadence return { op, schedule } where schedule is a TemporalSchedule (lexicons/temporal/src/composites/watch-op.ts, reconcile-op.ts, converge-op.ts, workflow-audit-op.ts, pipeline-audit-op.ts, lexicon-upgrade-op.ts; apply-op.ts returns { op }). The cron belongs to the op. The github lexicon already renders a cron for an op without Temporal (ScheduledOpSpec in packages/core/src/lexicon.ts, generateOpPipeline, lexicons/github/src/components/generate-op-pipeline.ts), and chant operator ticks converge ops on its own interval while ignoring the Temporal cron (DEFAULT_OPERATOR_INTERVAL_MS's comment).
- Add
schedule?: { cron: string; overlap?: "skip" }toOpConfig(packages/core/src/op/types.ts).overlaphas one value and defaults to it. Validate the cron atOp()construction with the five-field parser TMP010 uses (porttmp010-cron-syntax.ts's parser intopackages/core/src/op/cron.ts). - Move the composites to
packages/core/src/op/composites/with their tests, each returning{ op }withscheduleset on the op when the caller passed one. DropkebabToCameland the workflow-type plumbing they carry. Export them from@intentius/chant/op. Leavelexicons/temporal/src/composites/*.tsas re-export shims until epic: remove Temporal from chant — lexicon, core, examples, docs, CI, npm #2116. generateOpPipelineandScheduledOpSpec.schedulereadop.schedule.cronwhen the op has one, so a scheduled op needs no second declaration in the github lexicon; keep the explicittriggeroverride.chant operatorhonoursop.schedule.cronas the tick cadence for that op when present, falling back to--interval.TemporalSchedulestays in the temporal lexicon for the deployment-resource use case until epic: remove Temporal from chant — lexicon, core, examples, docs, CI, npm #2116 deletes it; nothing in core references it after this issue.
Waits on sub-issue 1 (activities in core) so the moved composites import from ../activities. Runs in parallel with sub-issues 3, 5 and 6 after that.
Acceptance
-
Op({ schedule: { cron: "*/10 * * * *" } })typechecks; an invalid cron throws at construction with the TMP010 message. -
WatchOp,ReconcileOp,ConvergeOp,ApplyOp,WorkflowAuditOp,PipelineAuditOp,LexiconUpgradeOpare exported from@intentius/chant/op, return{ op }, and their tests pass in core. -
lexicons/temporal/src/composites/*.tsare one-line re-exports;lexicons/terraform/src/composites/terraform-watch-op.tscompiles unchanged. - A github pipeline generated for an op with
schedulecarries its cron;generate-op-pipeline.test.tscovers it. -
chant operatorticks an op withscheduleon that cron;operator.test.tscovers the cadence. - No composite in core imports anything from
lexicons/temporal. - Repo-wide typecheck and
npm testpass.
Activity
lex00 commentedon Sep 6, 2026
Heads-up from the #2120 branch, not caused by it: with #2117 merged in,
lexicons/terraform/src/op/activities/choudoufu.test.tsfails to load with[vitest] No "execFile" export is defined on the "node:child_process" mock.Chain: #2117 made
packages/core/src/op/activity-registry.tsstaticallyimport * as baseActivities from "./activities", so@intentius/chant/op— whichlexicons/terraform/src/op/activities/terraform.tsimports forsafeHeartbeat— now pullsop/activities/converge.tsand through it../../lifecycle/*, reachingpackages/core/src/lifecycle/index.tsandaffected.ts's top-levelpromisify(execFile). That test'svi.mock("node:child_process")is a full replacement with onlyexecon it.Verified pre-existing: it fails on the merge of
main+ #2117 with none of #2120's changes applied (stash test), and passes onmainalone. Fix is oneimportOriginalin that test's mock, or making the registry's base-activity import lazy — either belongs to #2117 rather than here, so I left it. Everything else is green on the #2120 branch:npx vitest run15803 passed / 36 skipped with that one suite failing, repo typecheck 44 baselined + no regressions, check-lexicons tier 1 all green, docs prose ratchet no regressions.feat(fountain): regenerate from v0.16.0 — Teammate, Schedule, Webhook…
feat(op): the schedule belongs to the op; composites move into core (#…
fixup: rebase #2122 onto the #2117-#2120 stack
feat(fountain): regenerate from v0.16.0 — Teammate, Schedule, Webhook…
feat(op): the schedule belongs to the op; composites move into core (#…
fixup: rebase #2122 onto the #2117-#2120 stack
feat(fountain): regenerate from v0.16.0 — Teammate, Schedule, Webhook…
feat(fountain): the opRuntime provider over REST and SSE (#2126)
feat(op): the schedule belongs to the op; composites move into core (#…
fixup: rebase #2122 onto the #2117-#2120 stack
13 remaining items
feat(fountain): regenerate from v0.16.0 — Teammate, Schedule, Webhook…
feat(fountain): the opRuntime provider over REST and SSE (#2126)
refactor(lint): TMP012, TMP013, TMP014 move into core as OPS012, OPS0…
feat(fountain): regenerate from v0.16.0 — Teammate, Schedule, Webhook…
feat(fountain): the opRuntime provider over REST and SSE (#2126)
feat(fountain): regenerate from v0.16.0 — Teammate, Schedule, Webhook…
feat(fountain): the opRuntime provider over REST and SSE (#2126)
feat(fountain): regenerate from v0.16.0 — Teammate, Schedule, Webhook…
feat(fountain): the opRuntime provider over REST and SSE (#2126)
feat(fountain): the opRuntime provider over REST and SSE (#2126)
feat(fountain): the opRuntime provider over REST and SSE (#2126) (#2153)
chore: delete lexicons/temporal and every place the workspace knew it (…
docs(lexicons): describe the current run mechanism in the fountain, k…
docs(lexicons): the fountain, k8s, cedar, github, gitlab, terraform, …
feat(ops): an `environment` option on a scheduled Op, so a deployment…