refactor(scheduler): extract the scheduling engine into its own package #77

Merged
abiwab merged 1 commit from refactor/scheduler-package into main 2026-10-04 11:33:01 +02:00
Owner

PR 1 of the 1.4.0 scheduler plan (`.notes/plan-scheduler-1-4.md`, section 11).

Moves the scheduling engine out of `kitchen/src/schedule/` into a new `@gram-lang/scheduler` package. Kitchen now depends on it; it depends on nothing.

  • The scheduler works on neutral records: a step is identified by its index in its section instead of a reference to the compiled step, sections are reduced to what the passes read (`SchedulingSection`), and problems come out as `SchedulingDiagnostic`s instead of warnings.
  • Kitchen keeps what touches its own types: `legacy-timings.ts` (`commitTimeline`, the only writer of `timings`/`backgroundTasks`) and `schedule-warnings.ts` (diagnostics to warnings with their source location, `isSameSchedulingProblem`).
  • The schedule types and the schedule modes now live in the scheduler; kitchen re-exports them, so nothing exported from `@gram-lang/kitchen` disappears.
  • Added to the changesets fixed group, the CI pack step and the any-ratchet baseline; `deprecations.yaml` points at `legacy-timings.ts`.
  • New test that the scheduler imports nothing from other packages.

Zero conformance diff (99/99). Schedule tests moved with the code; `bun test`, lint, typecheck, build and `deprecations:check` pass.

PR 1 of the 1.4.0 scheduler plan (\`.notes/plan-scheduler-1-4.md\`, section 11). Moves the scheduling engine out of \`kitchen/src/schedule/\` into a new \`@gram-lang/scheduler\` package. Kitchen now depends on it; it depends on nothing. - The scheduler works on neutral records: a step is identified by its index in its section instead of a reference to the compiled step, sections are reduced to what the passes read (\`SchedulingSection\`), and problems come out as \`SchedulingDiagnostic\`s instead of warnings. - Kitchen keeps what touches its own types: \`legacy-timings.ts\` (\`commitTimeline\`, the only writer of \`timings\`/\`backgroundTasks\`) and \`schedule-warnings.ts\` (diagnostics to warnings with their source location, \`isSameSchedulingProblem\`). - The schedule types and the schedule modes now live in the scheduler; kitchen re-exports them, so nothing exported from \`@gram-lang/kitchen\` disappears. - Added to the changesets fixed group, the CI pack step and the any-ratchet baseline; \`deprecations.yaml\` points at \`legacy-timings.ts\`. - New test that the scheduler imports nothing from other packages. Zero conformance diff (99/99). Schedule tests moved with the code; \`bun test\`, lint, typecheck, build and \`deprecations:check\` pass.
refactor(scheduler): extract the scheduling engine into its own package
All checks were successful
CI / Build, Test & Publish (pull_request) Successful in 4m0s
c156d562aa
abiwab scheduled this pull request to auto merge when all checks succeed 2026-10-04 11:29:51 +02:00
abiwab merged commit 997eda9e9c into main 2026-10-04 11:33:01 +02:00
abiwab deleted branch refactor/scheduler-package 2026-10-04 11:33:01 +02:00
Sign in to join this conversation.
No description provided.