docs: document the scheduler, the planning in real time and the 1.4.0 timeline model #82

Merged
abiwab merged 3 commits from docs/scheduler into main 2026-10-04 17:59:18 +02:00
Owner

PR 6 of the 1.4.0 scheduler plan (`.notes/plan-scheduler-1-4.md`, sections 11 and 12). Documentation only, EN and FR, French written for French rather than translated.

New pages

  • `explanation/planning-in-real-time`: serving time, zone, availability, how the plan is made (stretch or shorten the nearest rest written as a range), what it cannot fix, daylight saving, the production sheet.
  • `explanation/engine/scheduler`: the package, its neutral task graph, the two levels, the two families of diagnostics.
  • `reference/api/scheduler`: `layout`, `project`, `runSheet`, the task graph and plan types, the choices and helpers.
  • `how-to/plan-a-meal`: from a recipe to a sheet and a calendar, with the real output of `gram plan` (checked by running it, EN and FR).
  • Sidebar entries with their v1.4.0 badges.

Updated

  • `reference/syntax/times`: exact timers and ranges (passive range = slack read through `rests`, active range = always the longest), anchors in days versus hours; the old "more than 24 hours opens the day before" rule is gone.
  • `explanation/mise-en-place-and-planning`, `alap-scheduling`: the rests choice, where to choose (CLI, VS Code, playground, renderer), the new rules for the days and the advice to anchor only the last section of a day.
  • Kitchen reference and explanation (`tasks` and `schedule` instead of `schedules`, `layout()`, `scheduleFor` with rests), renderer reference and explanation (`miseEnPlace`, `rests`, `projection`, production sheet), data formats, lifecycle (scheduler in the pipeline), CLI (`gram plan`, `--rests`, `cook`), VS Code (`gram.rests`), language server, analyzer diff, build a custom UI, deprecations (`metrics.activeTime` added, `schedule` as the replacement), philosophy and homepage samples, the API overview and the README.
  • The 2026-10-02 devlog got a short dated note saying the rule for the days changed before shipping, rather than being rewritten.

Checks: docs build (links validated, playground chunk 505 KB for 800 KB), lint, 1647 tests. An FR/EN parity audit (headings, tables, code blocks, leftovers of `schedules`, the old option name and the old anchor rule) found no gap in what this PR touches. It did flag drift that was already there and that I left alone: `mise-en-place-and-planning` uses different examples in EN and FR (a 2 h rest versus 30 min, with Gantt diagrams only in FR), the FR analyzer page lacks the `massStatus` and `NutritionMetrics` parts of the EN one, and a few older aside titles are in Title Case.

Not here: the 1.4.0 release blog post and the changesets rewrite (PR 7).

PR 6 of the 1.4.0 scheduler plan (\`.notes/plan-scheduler-1-4.md\`, sections 11 and 12). Documentation only, EN and FR, French written for French rather than translated. **New pages** - \`explanation/planning-in-real-time\`: serving time, zone, availability, how the plan is made (stretch or shorten the nearest rest written as a range), what it cannot fix, daylight saving, the production sheet. - \`explanation/engine/scheduler\`: the package, its neutral task graph, the two levels, the two families of diagnostics. - \`reference/api/scheduler\`: \`layout\`, \`project\`, \`runSheet\`, the task graph and plan types, the choices and helpers. - \`how-to/plan-a-meal\`: from a recipe to a sheet and a calendar, with the real output of \`gram plan\` (checked by running it, EN and FR). - Sidebar entries with their v1.4.0 badges. **Updated** - \`reference/syntax/times\`: exact timers and ranges (passive range = slack read through \`rests\`, active range = always the longest), anchors in days versus hours; the old "more than 24 hours opens the day before" rule is gone. - \`explanation/mise-en-place-and-planning\`, \`alap-scheduling\`: the rests choice, where to choose (CLI, VS Code, playground, renderer), the new rules for the days and the advice to anchor only the last section of a day. - Kitchen reference and explanation (\`tasks\` and \`schedule\` instead of \`schedules\`, \`layout()\`, \`scheduleFor\` with rests), renderer reference and explanation (\`miseEnPlace\`, \`rests\`, \`projection\`, production sheet), data formats, lifecycle (scheduler in the pipeline), CLI (\`gram plan\`, \`--rests\`, \`cook\`), VS Code (\`gram.rests\`), language server, analyzer diff, build a custom UI, deprecations (\`metrics.activeTime\` added, \`schedule\` as the replacement), philosophy and homepage samples, the API overview and the README. - The 2026-10-02 devlog got a short dated note saying the rule for the days changed before shipping, rather than being rewritten. Checks: docs build (links validated, playground chunk 505 KB for 800 KB), lint, 1647 tests. An FR/EN parity audit (headings, tables, code blocks, leftovers of \`schedules\`, the old option name and the old anchor rule) found no gap in what this PR touches. It did flag drift that was already there and that I left alone: \`mise-en-place-and-planning\` uses different examples in EN and FR (a 2 h rest versus 30 min, with Gantt diagrams only in FR), the FR analyzer page lacks the \`massStatus\` and \`NutritionMetrics\` parts of the EN one, and a few older aside titles are in Title Case. Not here: the 1.4.0 release blog post and the changesets rewrite (PR 7).
abiwab merged commit 2b1ba986b0 into main 2026-10-04 17:59:18 +02:00
abiwab deleted branch docs/scheduler 2026-10-04 17:59:19 +02:00
Sign in to join this conversation.
No description provided.