development

Repository, tooling, tests, docs, libraries, CI, workflow, releases.

Generated by make records from the decisions whose topic (or also) is this one; edit the decisions, not this page.

Current

Testing

  • Run a small Playwright suite for the web UI (D27): A Python Playwright suite checks the theme, zone cookie, htmx swap and live updates. make test-ui and a CI job run it outside make check.

  • Concurrency limits have integration and stress coverage (D92): An integration test logs each task’s start and end and checks the most running at once against tight limits (most_at_once). M4.4 also writes a stress scenario to run when the user next runs the stress suite.

  • Inject a failure at each database write in master operation tests (D98): A test hook fails the Nth database write; fail_each_write repeats an operation from fresh state for each write. A shared consistency check compares the database with itself and master memory. Every master operation that writes must have this test.

  • The Python integration tests run on several processes (pytest-xdist) (D479): make test- integration runs the Python integration tests with pytest-xdist (a dev dependency), six processes (a Makefile variable, PYTEST_WORKERS) and --dist loadgroup; CI uses -n auto. The tests sharing the containers’ names (test_connection_types.py) are one xdist_group, run on one process. The Rust and Python suites still run one after the other. Not chosen: both suites at once (12 cores shared; B245 and B247 already show under load).

Documentation

  • Build the documentation as part of releases (D29): The wheel and image CI job waits for the strict documentation build. make image and make server-image build the docs first.

Working in steps

  • M4 implementation follows dependency order (D51): M4 follows PLAN.md’s dependency order: the result model first, the agent channel before its consumers, and async functions before the watcher host.

  • M4 uses small substeps and the revised review schedule (D52): M4 is split into small substeps, each committed after Claude’s own review and mutation-checked tests. Reviews follow the revised session/whole-repository schedule, with later M4 reviews to be planned after the whole-repository review.

  • Build the Deployments page in M4.4b (D124): The Deployments page is scheduled for M4.4b, after M4.4 and before 1.0.0. The schema and protocol can still be edited in place.

Releases

  • Releases use Trusted Publishing to PyPI (D153): .github/workflows/release.yml uses Trusted Publishing through SHA-pinned pypa/gh-action-pypi-publish; the pypi environment requires the user’s approval for each release.

  • A pushed version tag starts a release (D154): A pushed vX.Y.Z tag is checked against package versions and starts the release. The workflow builds and smoke-tests four wheels, publishes them and creates a GitHub Release.

  • Releases carry notes, wheels, checksums and attestations (D155): Release notes come from the version section of CHANGELOG.md; wheels and SHA256SUMS are attached to the GitHub Release. Each wheel has provenance attestation; there is no sdist.

  • Releases push server and worker images while the chart stays in the repository (D157): Releases push x86_64 images from the musllinux wheel to ghcr.io/ptutak/schedr-server and ghcr.io/ptutak/schedr. The Helm chart stays in the repository; its default images use appVersion, checked against the release version.

  • Release candidates publish to TestPyPI (D158): A vX.Y.ZrcN tag publishes to TestPyPI using its own trusted publisher. The published wheel is installed and smoke-tested; final tags publish to PyPI.

  • A release runs CI on its tag and publishes CI wheels (D160): The release workflow calls all of CI on the release tag. It publishes the wheels produced by that CI run.

  • A release rehearsal performs every step as a candidate (D161): A release candidate publishes to TestPyPI and creates a GitHub pre-release. Its images are tagged only X.Y.ZrcN.

  • Release images use version and minor tags (D162): Final release images receive X.Y.Z and X.Y tags. They do not receive a latest tag.

  • The committed tree holds the version named by the tag (D163): Commit the version before tagging: Cargo uses X.Y.Z-rcN, the tag vX.Y.ZrcN, and the wheel and runner comparison X.Y.ZrcN, without a dot after rc. The workflow checks the committed version rather than rewriting it.

  • The Python image is schedr and the server image is schedr-server (D164): ghcr.io/ptutak/schedr includes Python and runs standalone or workers. schedr-server runs the master, webserver and schedr ui.

  • Release documentation is deployed to GitHub Pages (D165): The release workflow deploys CI’s docs-site build to GitHub Pages. The deploy job uses the github-pages environment.

  • The documentation site shows the latest release (D166): A final release tag deploys its documentation site. Release rehearsals and main do not deploy it.

  • From 1.0.0 the schema and the protocol change only additively (D456): From 1.0.0 on, a schema change is a new migration (0001_initial.sql and those after it are never edited once released; sqlx’s checksums refuse an edited one, and so does the schema status at start, B236), and the protocol changes only additively within a major version (PROTOCOL_VERSION 2.0 since D460; a new major for anything else; a field a worker of an older minor would ignore wrongly goes only to workers of its minor, as B187 showed). DAG JSON, the REST API and the configuration keep accepting what they accept. 1.0.0 itself starts afresh: a 0.1 database or worker isn’t carried over.

  • PyPI shows a page of its own: installing and a first run (D477): The package’s page on PyPI is PYPI.md, not the README: what schedr is, pip install schedr, a first standalone with one DAG (examples/sync.py, word for word, a unit test checks it) and links into the documentation’s Getting started section (docs/01-start/). The README keeps the repository’s development setup and points to both.

  • A release with a new migration goes through an rc first (D498, planned (R1.1)): A release whose code adds a migration file is first published as a release candidate (vX.Y.Zrc1: TestPyPI, a GitHub pre-release, images tagged X.Y.Zrc1) and checked, then released; 1.1.0 too, for 0002_next_looks.sql. Before either tag, scripts/upgrade_check.py migrates a database the previous release filled. Not chosen: 1.1.0 without an rc (the user’s call of 2026-11-14, from a release workflow unchanged since 1.0.0).

Documents and records

  • The project’s documents: STATUS, design topics, a file per decision, archive/PROJECT.md as history (D367): STATUS.md (rewritten, at most 60 lines) says where things stand; design/<topic>.md how each part works now; decisions/D<n>.toml one file per decision, indexed by the generated DECISIONS.md. archive/PROJECT.md is the history up to D366; later decisions are in JOURNAL.md (D370). The layout lives on in the project-docs skill.

  • One source for each record; every other view generated (D368): The plan (plan/.toml), decisions (step, not a built flag) and open questions (questions/) are records; PLAN.md, DECISIONS.md, the design pages’ lists and STATUS.md’s block are generated by scripts/records.py as indexes: one line per item saying where the details are.

  • Decisions point to anchors in archive/PROJECT.md and JOURNAL.md (D369): Each decision’s main passage starts with ; its history is “archive/PROJECT.md#D” or “JOURNAL.md#D”; records-check fails on a missing anchor.

  • JOURNAL.md holds decisions from 2026-11-08 on; archive/PROJECT.md is left as it is (D370): New decisions are dated entries in JOURNAL.md with their anchors; archive/PROJECT.md keeps its own text up to decision 366 and gains nothing but anchors.

  • Work reaches main through git; undone-check guards recent commits (D371): No worktree’s files are copied over main: merge, rebase or cherry-pick; colleagues’ record edits go in field by field. make undone-check and CI fail on a change removing over 20 lines the last 10 commits added, unless its message says Undoes: …

  • PROJECT.md lives in archive/ (D372): The design log up to D366 is archive/PROJECT.md, unchanged but for its anchors; pointers name that path; JOURNAL.md and the design pages are the current documents.

  • Design pages are generated whole from the decisions (D373): A decision has an optional section; make records writes each design page whole: Current (the active decisions’ summaries by section, with their state unless built), Replaced, code (a path or path::symbol, checked), Open and Details (the anchors’ sections). The pages are for the agent; the reader’s documentation is docs/. Only development.md keeps hand-written rules. Corrected by N1: the design drafts deleted.

  • A decision lists the claims nobody found in the code (unverified) (D374): A decision’s optional unverified lists claims of its summary nobody found in the code yet; its design page shows them after the summary and DECISIONS.md lists those decisions. Whoever next works on that code checks them: the claim is confirmed (removed from the list) or the summary corrected. A defect found in the code is a bug in bugs/, not a decision’s state.

  • Summaries follow the code: names checked, affected and stale decisions listed (D375): make records-check fails when a built or rule decision’s summary names in code font a word no code file has (unless the claim is in unverified). records.py affected [<since>] lists the decisions whose code a change touches, re-read before each step’s commit; records.py stale those whose code changed after checked. code entries are path::symbol; a summary names keys, not their values.

  • STATUS.md is generated from the records and status.toml (D376): make records writes STATUS.md whole: the next step, open questions and bugs, the latest journal entries and steps done, from the records; in progress, waiting for the user, the rules in force, colleagues’ usage and the resume line from status.toml, rewritten at each step’s or session’s end.

  • JOURNAL.md holds notes (N) beside decisions (D) (D377): A journal entry is a decision (D<n>, with its TOML) or a note (N<n>, the entry alone): an event, a finding, or a correction of an earlier entry, which stays as written. records.py note "<title>" [D<n>] appends a note’s heading; one correcting a decision shows on that decision’s design page. Notes are numbered without gaps and listed in STATUS.md’s Recent.

From other topics

  • Serve the versioned documentation inside the UI (D28, ui-cli; built M3.1)

  • The inherited descriptor uses unsafe code in schedr-fd (D147, task-context; built M4.5b)

Replaced

  • D156 (superseded by D456): The 0.x schema and protocol are edited in place

  • D48 (untraced): No record found

  • D44 (untraced): No recorded decision found

  • D12 (untraced): No recorded decision found

  • D11 (untraced): No recorded decision found

  • D10 (untraced): No recorded decision found

  • D9 (untraced): No recorded decision found

  • D8 (untraced): No recorded decision found

  • D7 (untraced): No recorded decision found

  • D6 (untraced): No recorded decision found

  • D5 (untraced): No recorded decision found

  • D4 (untraced): No recorded decision found

  • D3 (untraced): No recorded decision found

  • D2 (untraced): No recorded decision found

  • D1 (untraced): No recorded decision found

Where in code

  • .github/workflows/release.yml::gh-action-pypi-publish (D153)

  • .github/workflows/release.yml::tags (D154)

  • JOURNAL.md (D367, D370)

  • Makefile (D479)

  • Makefile::docs-dist (D29)

  • Makefile::server-image (D29)

  • Makefile::test-ui (D27)

  • PYPI.md (D477)

  • STATUS.md (D367)

  • archive/PROJECT.md (D372)

  • crates/schedr-db/src/database.rs (D98)

  • crates/schedr-db/src/faults.rs (D98)

  • crates/schedr-db/src/status.rs (D456)

  • crates/schedr-fd/Cargo.toml::unsafe_code (D147)

  • crates/schedr-fd/src/lib.rs::inherited_datagram (D147)

  • crates/schedr-master/src/faults.rs::fail_each_write (D98)

  • crates/schedr-model/src/ctx.rs (D147)

  • crates/schedr-model/src/runner.rs (D163)

  • crates/schedr-model/src/runner/tests.rs (D163)

  • crates/schedr-proto/src/version.rs::PROTOCOL_VERSION (D456)

  • crates/schedr-ui/src/deployments.rs (D124)

  • crates/schedr-ui/src/docs.rs::resolve (D28)

  • design/README.md (D367)

  • plan/README.md (D368)

  • python/tests/integration/test_connection_types.py (D479)

  • python/tests/integration/test_testing.py::most_at_once (D92)

  • python/tests/ui/test_ui.py::test_the_theme_toggle_switches_and_is_remembered (D27)

  • python/tests/unit/test_pypi_page.py (D477)

  • python/tests/unit/test_upgrade_check.py (D498)

  • scripts/docs-dist.sh (D28)

  • scripts/records.py (D367, D368, D369)

  • scripts/records.py::affected (D375)

  • scripts/records.py::design_blocks (D373)

  • scripts/records.py::generated_page (D373)

  • scripts/records.py::new_note (D377)

  • scripts/records.py::note_problems (D377)

  • scripts/records.py::read_status (D376)

  • scripts/records.py::render_decisions (D374)

  • scripts/records.py::render_status (D376)

  • scripts/records.py::stale (D375)

  • scripts/records.py::unknown_names (D375)

  • scripts/release.py (D153, D157, D158, D160, D162, D456)

  • scripts/release.py::Release (D161)

  • scripts/release.py::check (D154, D163)

  • scripts/release.py::notes (D155, D161)

  • scripts/release.py::parse_tag (D163)

  • scripts/release.py::wheels (D155)

  • scripts/undone.py (D371)

  • scripts/upgrade_check.py (D498)

  • status.toml (D376)

Open

None.

Details and edge cases, with the reasons; read them before changing this:

  • JOURNAL.md: D367, D368, D369, D370, D371, D372, D373, D374, D375, D376, D377, D456, D477, D479, D498

  • archive/PROJECT.md: Native API, Packaging and releases, Testing, Web UI and CLI