schedr: the plan

The milestones and their steps, in order, with each step’s state. This page is generated by make records from plan/<milestone>.toml: it is an index. A step’s scope and “done when”, and a milestone’s notes, are in its milestone’s file; the reasons are in JOURNAL.md (in archive/PROJECT.md before decision 367). The plan’s general notes (the M1 scope, workspace layout, library choices, testing approach) are in plan/notes.md. A step’s decisions are those whose step names it.

To change the plan: edit plan/<milestone>.toml (a step’s status becomes done with its done date and commits when it is committed), then make records.

Next: R1.1, Release 1.1.0.

M0: Foundations

Done when: The shared model, configuration, database schema and CLI skeleton are in place (no criterion of its own: archive/PROJECT.md, Roadmap). Scope, criteria and notes: plan/M0.toml.

Step

Title

State

Decisions

0.1

Workspace

done 2026-10-21

0.2

schedr-model v0

done 2026-10-21

0.3

Schema generation + CI check

done 2026-10-21

0.4

schedr-config

done 2026-10-21

0.5

schedr-db

done 2026-10-21

0.6

schedr-proto

done 2026-10-21

0.7

Binary skeleton

done 2026-10-21

0.8

Python package skeleton

done 2026-10-21

0.9

Documentation site

done 2026-10-21

M1: Standalone runs a native DAG

Done when: A new user can pip install the wheel, write the example DAG, run schedr dags test on it, start schedr standalone, trigger a run with schedr runs trigger --for ... and see it succeed with schedr runs list. Scope, criteria and notes: plan/M1.toml.

Step

Title

State

Decisions

1.1

Native API, parse side

done 2026-10-21

1.2

Serialization

done 2026-10-21

1.3

Templates

done 2026-10-21

1.4

Runner parse

done 2026-10-21

1.5

Agent, processes

done 2026-10-21

1.6

Agent, rendering

done 2026-10-21

1.7

Runner task

done 2026-10-21

1.8

Master, DAGs

done 2026-10-21

1.9

Master, scheduling

done 2026-10-21

1.10

Master, execution

done 2026-10-21

1.11

Commands

done 2026-10-21

1.12

Webserver REST subset

done 2026-10-21

1.13

The user CLI

done 2026-10-21

1.14

schedr standalone

done 2026-10-22

1.15

dags check, dags test, schedr.testing

done 2026-10-22

1.16

Packaging

done 2026-10-22

1.17

Integration tests

done 2026-10-22

M2: Distributed

Done when: Runs on OpenShift with 2 workers and survives killing the master or a worker. Scope, criteria and notes: plan/M2.toml.

Step

Title

State

Decisions

2.1

Separate roles

done 2026-10-22

2.1b (part of 2.1)

standalone in one pod

done 2026-10-22

2.2

Worker lifecycle

done 2026-10-22

2.3

Journal on disk

done 2026-10-22

2.4

Assignment across workers

done 2026-10-22

2.5

Parsing across workers

done 2026-10-22

2.6

Drain

done 2026-10-22

2.7

mTLS

done 2026-10-22

2.8

Memory watchdog

done 2026-10-22

2.9

Ops port

done 2026-10-23

2.9b (part of 2.9)

Documentation of the system as built

done 2026-10-23

2.10

Standalone for production

done 2026-10-24

2.10b (part of 2.10)

Stress suite

done 2026-10-24

2.11a (part of 2.11)

Standalone inside an Istio mesh

done 2026-10-25

2.11

Images and Helm chart, distributed

done 2026-10-25

2.12

Kill tests

done 2026-10-26

2.12b (part of 2.12)

dags check --against

done 2026-10-26

2.13

More wheels

done 2026-10-26

2.13b (part of 2.13)

Supply-chain pins

done 2026-10-26

M2.5: Fork server and quiet DAGs

Done when: Python tasks start from the fork server on Linux workers, with fallback to spawn; stress scenario 14’s rounds no longer grow with the quiet DAGs. Scope, criteria and notes: plan/M2.5.toml.

Step

Title

State

Decisions

M2.5.1

Measure first

done 2026-10-27

M2.5.2

Quiet DAGs

done 2026-10-27

M2.5.3

Fork server, runner side

done 2026-10-27

D13, D14, D15

M2.5.4a

Fork server, agent side

done 2026-10-27

D19, D20

M2.5.4b

What the master stores

done 2026-10-27

D18

M2.5.5a

How tasks choose

done 2026-10-27

M2.5.5b

Finish

done 2026-10-27

M3: Web UI

Done when: The web UI shows DAGs, runs (their graph, tasks, attempts, outputs and logs, live), workers and commands, and takes the actions the API takes, with the auth modes, times in UTC and local, light and dark themes, over a list of deployments. Scope, criteria and notes: plan/M3.toml.

Step

Title

State

Decisions

M3.1

Foundations

done 2026-10-28

D26, D28, D29

M3.2a

Runs, the API

done 2026-10-28

M3.2b

Runs, the pages

done 2026-10-28

D22, D25, D27, D30, D31, D33

M3.3

Live

done 2026-10-28

D23, D34

M3.4

Actions

done 2026-10-28

D35, D38

M3.5

Auth modes

done 2026-10-28

D24

M3.6

Federation, in production

done 2026-10-28

D21, D32, D36, D37, D40, D41, D42, D43

M3-review: the whole repository reviewed (Codex, from 2026-10-30)

Done when: The whole repository reviewed by sections, the confirmed findings fixed or logged (Codex’s scan: F1-F11 done, F12-F14 after M4). Scope, criteria and notes: plan/M3-review.toml.

M4: Native API complete

Done when: The native API’s whole design is built, so a DAG written against it runs as designed, distributed and in standalone. Scope, criteria and notes: plan/M4.toml.

Step

Title

State

Decisions

M4.1

Results and outcomes

done 2026-10-29

M4.1e (part of M4.1)

Pydantic outputs

done 2026-10-29

D59, D60, D61, D62, D63

M4.2

@branch and groups

done 2026-10-29

M4.2a (part of M4.2)

@branch

done 2026-10-28

D55, D57, D58

M4.2b (part of M4.2)

Task groups

done 2026-10-29

D56, D64, D65

M4.2c (part of M4.2)

Import errors in the UI

done 2026-10-29

D66, D67, D68

M4.3a (part of M4.3)

Mapping, the API

done 2026-10-29

D69, D72, D73

M4.3b (part of M4.3)

Mapping, the master

done 2026-10-30

D70, D74, D75, D76, D77, D78, D79

M4.3c (part of M4.3)

Mapping, around it

done 2026-10-30

D71, D80, D81, D82, D83, D84, D85, D93, D94, D97

M4.3d (part of M4.3)

The CLI’s run and task reads

done 2026-10-30

D86

M4.3

Mapping

done 2026-10-31

M4.3e (part of M4.3)

Bug fixing before M4.4

done 2026-10-31

D98, D99, D100, D102, D104, D105, D106, D107, D108, D109, D110, D111, D112, D113, D114, D115, D116, D117, D118, D119, D120

M4.4

Concurrency limits

done 2026-11-01

D87, D88, D89, D90, D91, D92, D96, D126

M4.4b (part of M4.4)

The Deployments page

done 2026-11-01

D121, D122, D123, D127, D128, D129, D130, D131

M4.5

The agent channel, params and dag_ctx

done 2026-11-02

M4.5a (part of M4.5)

Params

done 2026-11-01

D133, D134, D135, D137, D138, D139, D140, D141, D142

M4.5b (part of M4.5)

The agent channel

done 2026-11-02

D143, D144, D145, D146, D147, D148

M4.5c (part of M4.5)

The UI’s trigger form

done 2026-11-02

D149, D150, D151, D152, D159

M4.6

Secrets

done 2026-11-03

M4.6a (part of M4.6)

Secrets, the model and the Python API

done 2026-11-02

M4.6b (part of M4.6)

Secrets in the agent

done 2026-11-02

D167, D168

M4.6c (part of M4.6)

The db storage

done 2026-11-02

D169, D170, D172

M4.6d (part of M4.6)

Vault

done 2026-11-02

D171

M4.6e (part of M4.6)

Secrets typed as their values

done 2026-11-03

D176, D177, D178

M4.6f (part of M4.6)

One live stream per browser

done 2026-11-03

D175

M4.7

Connections

done 2026-11-04

M4.7a (part of M4.7)

@connection

done 2026-11-03

D179, D180, D181, D182

M4.7b1 (part of M4.7)

Typed connections

done 2026-11-03

D183, D185, D187, D188, D189

M4.7b2 (part of M4.7)

What commands get

done 2026-11-03

D184, D190, D191, D192, D194, D195, D196, D197, D201

M4.7c (part of M4.7)

schedr connections check / test

done 2026-11-03

D174, D193, D198, D199, D200

M4.7d (part of M4.7)

A connections demo

done 2026-11-04

D202, D203, D204, D206

M4.7e (part of M4.7)

Connections in the UI

done 2026-11-04

D207, D208, D209, D210, D211, D212

M4.8

Cleanup and resources

done 2026-11-05

M4.8t (part of M4.8)

Timings: public keys and hidden ones

done 2026-11-04

D231, D232, D233, D234, D238

M4.8u (part of M4.8)

Every server-side timing on the hidden route

done 2026-11-04

D236, D239, D240, D241

M4.8a (part of M4.8)

Cleanups on the same worker

done 2026-11-04

D16, D216, D217, D218, D222, D228, D230

M4.8b (part of M4.8)

Surviving restarts

done 2026-11-04

D219, D242, D248, D249, D250

M4.8b2 (part of M4.8b)

Cleanups on another worker

done 2026-11-04

D220, D221, D229, D243, D244, D245, D246, D247

M4.8b3 (part of M4.8b)

A worker cut off

done 2026-11-04

D252, D253, D254, D255, D256, D257, D258

M4.8c1 (part of M4.8)

Python resources, the API

done 2026-11-05

D223, D224, D226, D259, D266, D267, D268, D269

M4.8c2 (part of M4.8)

Python resources, running

done 2026-11-05

D225, D260, D261, D263, D264, D270, D273, D274, D275, D276, D277

M4.8d (part of M4.8)

Command resources

done 2026-11-05

M4.8e (part of M4.8)

UI and test doubles

done 2026-11-05

D262, D272

M4.8f (part of M4.8)

A hung resource cleanup

done 2026-11-05

D235, D278, D279

M4.8z (part of M4.8)

Chaos scenarios

done 2026-11-05

D280, D281, D282, D290, D291, D297

M4.9a

Script roots and schedr.toml

done 2026-11-05

D296, D299, D300

M4.9b

The script task kind and ScriptOperator

done 2026-11-05

D293, D294, D295, D301, D302, D303, D304, D306

M4.9c

The rest of [jobs.<name>]

done 2026-11-06

D271, D310, D311, D312, D313, D314

M4.9d

Libraries in roots

done 2026-11-06

D305

M4.10

Async task functions

done 2026-11-06

D49, D53, D315, D316, D317, D318, D319

M4.11a

Wait steps

done 2026-11-07

M4.11a1 (part of M4.11a)

Part of M4.11a

done 2026-11-06

D323, D324, D325

M4.11L

How DAG files load

done 2026-11-06

D326, D327, D328, D329, D330, D331, D332, D333

M4.11a2 (part of M4.11a)

Part of M4.11a

done 2026-11-06

D320, D334, D335, D336, D337

M4.11a3 (part of M4.11a)

Part of M4.11a

done 2026-11-06

D338, D339, D340, D341, D342

M4.11a4 (part of M4.11a)

Part of M4.11a

done 2026-11-07

D321, D343, D344, D346

M4.11b

Triggers

done 2026-11-07

D348, D349, D350

M4.11c

first_of

done 2026-11-07

D345, D347, D351

M4.11d

Waiting for another DAG’s run

done 2026-11-08

D353

M4.11e

Events through the API

done 2026-11-08

D354

M4.11f

batch= on @trigger.poke

done 2026-11-08

D352

M4.11g

delay and until wait steps

done 2026-11-08

D355

M4.11h

schedr.api, Python access to the REST API

done 2026-11-08

D356

M4.12

Runs between and over time

done 2026-11-09

M4.12a (part of M4.12)

TriggerDagOperator

done 2026-11-09

D358, D359, D360, D361, D362, D365, D378, D379, D380, D398, D399

M4.12b (part of M4.12)

Backfill

done 2026-11-09

D363, D364, D400, D401, D402, D403, D404, D405

M4.12c (part of M4.12)

Operator mapping

done 2026-11-09

D406, D407

M4.13a

Notifications: events, outbox, webhooks

done 2026-11-10

D390, D391, D408, D409, D410, D413, D415, D416, D417, D419, D420, D421, D422, D423, D424, D425, D427, D428, D429

M4.13b

Notifications: email

done 2026-11-10

D411, D426

M4.14

Retention

done 2026-11-10

D430, D431, D432, D433, D434, D435, D440

M4.15

Per-task memory and upgrade rules

done 2026-11-10

D50, D436, D437, D438, D439

M4.15a (part of M4.15)

Per-task memory

done 2026-11-10

M4.15b (part of M4.15)

Upgrade rules completed

done 2026-11-10

D441

0.1.0: after M4.5

Done when: pip install schedr gives 0.1.0; the GitHub Release and the images exist. Scope, criteria and notes: plan/0.1.0.toml.

Step

Title

State

Decisions

R0.1

The release workflow

done 2026-11-02

D153, D154, D155, D157, D158, D160, D161, D162, D163

R0.2

Rehearsal

done 2026-11-02

R0.3

0.1.0

done 2026-11-02

D164, D165, D166

M4B: Batched worker messages (a milestone after M4)

Done when: A worker’s turn of messages (up to 40, SCHEDR_HIDDEN__MASTER__MESSAGES_PER_TURN) is stored as groups: its Starteds, then its Finisheds, each group one transaction with set-based statements and each run read and settled once, a failed group redone one by one; B184 fixed (500 ends recorded within 5 s on Postgres by stress 23). Scope, criteria and notes: plan/M4B.toml.

Step

Title

State

Decisions

M4B.0

Master time hardened (the clock step)

done 2026-11-11

D445, D446, D447, D448, D449, D453

M4B.1

Measure first

dropped

M4B.2

Savepoints in schedr-db

dropped

M4B.3

A turn’s messages in groups

done 2026-11-11

D397, D451, D452

M4B.4

A turn’s Finisheds written together

done 2026-11-11

M4B.5

The agent’s journal in groups

done 2026-11-11

D396

M4B.6

The turn in one transaction, savepoints per group

dropped

1.0.0: after M4B

Done when: 1.0.0 is released once M4B is done; from then on the schema and the protocol change only additively. Scope, criteria and notes: plan/1.0.0.toml.

Step

Title

State

Decisions

R1.0a

A slim image

done 2026-11-11

D383

R1.0b

The master’s side in the clock simulator

done 2026-11-12

R1.0c

Images on glibc beside Alpine

done 2026-11-11

D454

M5: Performance, metrics, Airflow migration tools

Done when: Not set yet (archive/PROJECT.md, Roadmap). Scope, criteria and notes: plan/M5.toml.

Step

Title

State

Decisions

M5.1a

Profile the start path

done 2026-11-13

M5.1b

Start journal records in groups

done 2026-11-13

M5.1b2

A first start: Getting started, the PyPI page

done 2026-11-13

D476, D477

M5.1c1

The core lock per transaction; the round’s assignments set-based

done 2026-11-13

D469, D479, D480, D481, D482

M5.1c2

The commands measured

done 2026-11-13

M5.1c3

A command one transaction, the lock released between commands

done 2026-11-13

D483

M5.1d

Pokes and rounds through PgBouncer

done 2026-11-14

M5.1e

The turn size from data

done 2026-11-14

D484

M5.1f1

The idle cost: one probe a tick, the moments stored

done 2026-11-14

D485

M5.1f2

Triggers and events in a round of their own

done 2026-11-14

D486, D487

M5.1g

The Status block

done 2026-11-14

D462

M5.1h

Memory and CPU reported

done 2026-11-14

D463

M5.1i

The samples table

done 2026-11-14

D464

M5.1j

The Metrics page

done 2026-11-14

D465, D466, D491, D492

M5.1k

Task memory charts

done 2026-11-15

D467

M5.1l1

The DAGs page by deployment

done 2026-11-15

M5.1l2

Throughput and start latency on the Metrics page

done 2026-11-15

D494

M5.1m

The start time from the worker

done 2026-11-14

D490

M5.1n

Standalone takes its DAG and script directories on the command line

done 2026-11-15

D488

M5.1o

A poke may be a plain def

done 2026-11-15

D489

M5.1p

Tunable constants as hidden settings

done 2026-11-15

D493

M5.1q

A worker waits for its Deregister; roles wait for their database; an unset cleanup timeout fits

done 2026-11-15

D495, D496, D497

R1.1

Release 1.1.0

next

D498, D499, D500

M5.2a

The recording stub and the comparison

planned

D475

M5.2b

The rewrite: the authoring core

planned

D470, D471

M5.2c

Branching, groups, mapping, trigger rules, emulations

planned

D472, D473

M5.2d

Templates, XCom, sensors, chained runs, email

planned

M5.2e

Connections and Variables

planned

D474

M5.2f

The report and the migration guide

planned

M5.3a

Hot standby masters in the chart

planned

M6: sign-in against LDAP

Done when: A person signs in with their directory password through the UI and the CLI, against a real directory in the integration tests. Scope, criteria and notes: plan/M6.toml.