design/: how schedr works now, by topic¶
For the agent, not the reader (the reader’s documentation is docs/): one file per topic,
design/<topic>.md, an index into the decisions and the code. make records writes it whole from the
decisions whose topic (or also) is this one; never edit it, edit the decisions:
Current: the active decisions’ summaries, grouped under their
section, each with its ID and, unless built, its state (“planned (M4.12a)”); then the other topics’ decisions naming this one inalso.Replaced: the superseded, dropped and untraced decisions.
Where in code: the decisions’
code(a path orpath::symbol, checked to exist). A claim of a summary nobody found in the code yet is listed in itsunverifiedand shown after it.Open: the questions not decided yet, with the current proposal.
Details: the archive/PROJECT.md sections and JOURNAL.md entries the decisions’ anchors are in; read them before changing the topic.
A decision’s summary is therefore written to be read there: what holds now, two to four sentences, names in
code font. Working rules and this machine’s notes are in AI_SETUP.md and AI_INSTRUCTIONS.md, not here.
The other layers (see AI_SETUP.md, Project documents):
File |
Answers |
Written |
|---|---|---|
|
where things stand, what’s next |
generated; its notes in |
|
how a part works now |
generated from the decisions |
|
what was decided, whether it holds, where its reasons are |
one file per decision; |
|
how the project got here, and why, up to D366 |
by topic; left as it is, with an anchor at each decision |
|
each decision since, with its reasons and “Not chosen” |
dated entries appended, each starting with its anchor |
Topics¶
scripts/decisions.py check takes a decision’s topic only from this table.
Topic |
Covers |
archive/PROJECT.md sections (up to D366) |
|---|---|---|
|
what schedr is for, the deployment target |
Goal; Deployment target |
|
the roles (master, webserver, worker, standalone), how they fit |
Architecture: Components and roles |
|
the web UI, the user CLI, the REST API |
Web UI and CLI |
|
task logs, their endpoint and proxy |
Task logs |
|
DAG roots, code delivery, versions, change detection, ID conflicts |
DAG code delivery; DAG roots; DAG ID conflicts; Code versions and change detection |
|
plain script delivery and script jobs |
Plain script delivery |
|
the master–worker protocol |
Master–worker protocol |
|
worker lifecycle, memory protection, environment, drain |
Worker lifecycle; Worker memory protection and crash recovery; Worker environment |
|
task assignment, rejections, placement, queues |
Task assignment; Task rejections |
|
Rust/Python integration, how tasks start (fork server), the runner |
Rust/Python integration; How Python tasks are started |
|
the in-task CLI, run parameters, |
In-task CLI; Run parameters and the DAG context |
|
ports, default size, upgrades and compatibility |
Default deployment size; Ports; Upgrades and compatibility; Expected workload |
|
the end-to-end flow of a run |
End-to-end flow |
|
metrics, health, logging |
Observability |
|
the configuration file, keys, env, hidden keys, timings |
Configuration; Timings: public keys and hidden ones |
|
secret storage and masking |
Secret storage |
|
connections and their types |
Connections |
|
the database, retention |
State storage; Retention |
|
the native API’s shape, how it maps to the engine |
Python API structure; How the Python API works with the engine; Native API |
|
outcomes, failures, joins, task results |
Outcomes, failures and joins; Task results and outcomes |
|
run kinds, manual runs, backfill, pausing, queueing |
Runs: manual runs, backfill and pausing |
|
|
Dependencies between DAGs |
|
async task functions |
Async task functions |
|
sensors, wait steps, the watcher host, |
Sensors and triggers (wait steps) |
|
event triggers, |
Sensors and triggers (triggers, events) |
|
approvals (M6) |
Human in the loop |
|
cleanup handles, resources |
Cleanup and resources |
|
output serialization, codecs |
Output serialization |
|
|
Testing DAGs |
|
the Airflow migration tool (the compatibility layer dropped, D475) |
Airflow compatibility |
|
repository, tooling, tests, docs, libraries, CI, workflow, releases |
Repository and tooling |