Skip to content

core: delete the Temporal runtime — run-client, op-progress, codegen loader, --temporal, the worker spawns; COMP004 renamed #2130

Closed

Description

@lex00

Sub-issue 1 of #2116.

Delete the Temporal half of core. Every item below is unreachable after #2114 sub-issue 5 put chant run behind the runtime seam; this issue removes it and the flags that led to it.

packages/core/src/cli/handlers/: delete run-client.ts (loadTemporalClient, connectionOptions, the history normalisers) and op-progress.ts (history-to-StepRecord reconstruction); strip the Temporal branch from run-report.ts; in run.ts delete makeTemporalClient, requireTemporalMode, runOpTemporal, runComponentTemporal, componentWorkflowId, workflowFnName, kebabToCamel, ensureSearchAttributes, waitForTemporalServer, and both spawnChild("temporal", ["server", "start-dev"], ...) sites. packages/core/src/components/: delete temporal-codegen-loader.ts; rewrite the comments in driver.ts (lines around 30 and 288), cli-support.ts (446 to 463), auto-release.ts (the runComponentTemporal and workflow-state paragraphs), manifest-persistence.ts (16, 73, 104). packages/core/src/cli/main.ts: remove --temporal from the flag list, the parser case, and the help text at lines 508 to 510; cli/registry.ts: drop temporal?: boolean and the --progress-json comment's Temporal clause. For one minor version, --temporal prints --temporal was removed in #2116; use --on fountain and exits 2; then the parser forgets it.

packages/core/src/lint/rules/comp/comp004-gate-needs-temporal.ts becomes comp004-gate-needs-durable-runtime.ts with a message that says a gate ends the run pending chant approve (the id COMP004 stays; the docs page under lint-rules/composition.mdx follows). packages/core/src/op/operator.ts comments at lines 3, 44 and 47; lifecycle/gate-ledger.ts line 34; cli/commands/build.ts lines 662 to 666; cli/build-params-cli.ts line 13; op/activity-runtime.ts's heartbeat docstring.

Tests: 24 files under packages/core/src reference Temporal (rg -il temporal packages/core/src --glob '*.test.ts'). Delete the ones that test deleted code, rewrite the fixtures in the rest.

Waits on #2114 sub-issues 1, 3 and 5. Sub-issue 2 waits on this one.

Acceptance

  • rg -i temporal packages/core/src returns only the one-line --temporal removal message and its test.
  • run-client.ts, op-progress.ts, temporal-codegen-loader.ts do not exist; run.ts has no function named above.
  • chant run <op> --temporal exits 2 with the removal message; chant run <op> and --on behave as after epic: ops in core without Temporal — base activities, gate-as-fact, a runtime hook, and a schedule that belongs to the op #2114.
  • COMP004 fires with the new message; lint-rules/composition.mdx shows it.
  • packages/core has no dependency, optional or dynamic, on @intentius/chant-lexicon-temporal or @temporalio/* (rg 'temporalio|lexicon-temporal' packages/core).
  • Repo-wide typecheck and npm test pass.

Activity

  1. added
    chore
    area:core
    area:ops
    on Sep 6, 2026
  2. lex00 commented on Sep 6, 2026

    @lex00
    ContributorAuthor

    Working #2130 on top of the epic-A stack (feat/2122-ops-rules-into-core, 7388b27). One deviation from the acceptance checklist, flagged here rather than papered over:

    packages/core/src/cli/handlers/run-client.ts survives as a shim. lexicons/temporal/src/describe-resources.ts and deep-observe.ts import loadTemporalClient, connectionOptions, resolveProfile and WorkerProfile from @intentius/chant/cli/handlers/run-client. Deleting the module breaks the repo-wide typecheck and npx vitest run lexicons/temporal, and #2130's scope is core only, so the file is now four exports and a header marked // #2131 deletes this file. Nothing in packages/core imports it. That means:

    • rg -i temporal packages/core/src returns the removal message and its test, the shim, and two false positives in the vendored SARIF schema fixture ("temporally ordered", "temporal order" — plain English in cli/commands/__fixtures__/schemas/sarif-2.1.0.schema.json, not editable).
    • rg 'temporalio|lexicon-temporal' packages/core returns two lines, both the shim's dynamic @temporalio/client import. It is not a declared, optional or static dependency — node scripts/depcheck.mjs passes.

    Both greps go clean the moment #2131 deletes lexicons/temporal and this file with it.

    Two smaller judgement calls:

    • chant run --report was reachable only behind --temporal (it rendered a past durable run's workflow history). It now refuses with one line pointing at chant run log <op>, rather than silently falling through to a real run.
    • run list/status/log/cancel --components were all requireTemporalMode-gated, so they already errored without --temporal. Each now refuses with \chant run --components` read a component's durable run state, which epic: remove Temporal from chant — lexicon, core, examples, docs, CI, npm #2116 removed` plus the command that still answers.
  3. 1 remaining item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corearea:opsbreakingchore

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions