ShiftCircle

Release notes

What each release added, and the test counts at the time. These paragraphs used to sit in the README; the README now keeps only the current numbers. The author and review rounds behind each release are in review-rounds.md, and the AI-assisted work in ai-dev-log.md.

Each release was built on its own branch, gated by an independent QA seat on the exact tip (web, API in two class orders, Playwright per viewport on a fresh stack, dataset checksums, payroll golden and plan fingerprints), and only then pushed to main by the operator.

Phase 3 final (before release 3)

The first independently verified tip was 5d0f810 (R61). API: 422 = 123 rules + 27 infrastructure + 272 api tests, green in the default order and with random seed 20261121, 0 failures/errors/skipped. Web unit tests: 277. Playwright against the real API, whole suite, a fresh stack per viewport: desktop 101 passed / 0 failed, tablet 100 passed and 1 skipped (the TV-size check is desktop-only) / 0 failed; fixtures: 22 / 21, as recorded at the time. The static counts agreed (123 + 27 + 272 @Test methods, one per line, no parameterised tests).

Two branches followed on top of it:

Both are on main and are covered by every later gate.

Fresh-clone check at f1d696d (2026-11-20, macOS, Docker Desktop). Setup sections 1, 2 and 4 of the README were run from a fresh clone. Both Playwright viewports on one stack gave 21 passed, 1 skipped and 4 failed, all 4 on tablet after desktop had changed the data; tablet alone on a fresh stack gave 12 passed, 1 skipped (the TV-size check runs on desktop only). That is why the README asks for one viewport per fresh stack. The --add-host line was run on macOS; on Linux it was not run (--network host with BASE_URL=http://localhost:8080 is the alternative). Not run in that clone: the api-test service (the builders and QA ran the same Maven build) and the web unit tests (the same command passed in the branch worktrees).

Release 3: unit closures, relief and the staffing estimate

Adds dated unit closures, closed-unit relief and the staffing estimate, then Dataset 150. Authored as 450 = 123 + 27 + 300 in a clean default run before Dataset 150; its two 150 tests were green, web 313. With no closure rows the 120/100 plan fingerprints and all checksums stayed identical, and 150 has its own pinned checksum and plan. the QA seat’s first gate found a wall-display defect at a0d4f6f; the release passed at 09ed7ba (R65, R66).

Release 4: preference headline, Not rostered, demo lock, U-16

Adds the #20 Block + ACKNOWLEDGE pin, #14 Not rostered status and the corrected preference headline (Dataset 120: 196 of 214, 92%, scorecard = Compare), the #17 owner-token demo lock, the #10 U-16 Warn/acknowledge rule (rule set v3, V12) for an 8 h officer on a night shift, and the #16 48/60 wording. Author run: 460 = 127 rules + 27 infrastructure + 306 api, 0 failures/errors/skipped; web 316; audit codes 49. The gate found a pre-existing route shadow that made the Rules Shift types table (with U-16) unreachable; it was fixed red-first and the router test pins /rules/7/shift-types. The 100/120/150 checksums, the three plan fingerprints and the payroll golden stayed exact; Dataset 120 stays 38 gaps / 7 warnings / 5,103 shifts / 107 officers. Passed at f1883c4 (R67, R68).

Release 5: L16 retired

The Dataset 100 seed has no 16 h rows, V13 sets the template inactive without deleting old history, and new assignments or open shifts naming it get a plain 400. PC-03 is rebuilt as a P12 + 5 h actual (17 h). New Dataset 100 pins: checksum 4156077d…da6b, payroll golden 9f2d51b3…04ff (1,037 rows, 8,197.60 h). The 100 plan fingerprint is unchanged (ec337014…409e1b, 6,586 rows, 727 gaps) and its warnings move 117 → 135, because removing L16 history exposed 18 real U-14 plan warnings that the old baseline subtracted. The gate’s seed repair restored PC-01 (U-01/U-05/U-08/U-14 at 64 h) and Tara’s block-free Sun 29 pick-up; the golden and plan stayed exact. 120/150 checksums and fingerprints are exact. Author run: 462 = 127 rules + 28 infrastructure + 307 api; web 318. Passed at 731b722 after the repair (R69, R70).

Release 6: Qualified staff card

Adds a read-only Qualified staff card to the quarter plan: failing and checked block-days per unit and block, with the sentence “N block-days are below the qualified minimum. The planner does not enforce this.” Measured with no closures: Dataset 100 346 of 1,470, Dataset 120 0 of 1,470, Dataset 150 103 of 1,470. Closed unit-days are not checked; relief counts where placed; qualification start dates are not checked. Checksums, golden and plan fingerprints unchanged. Author run 462 = 127 + 28 + 307; web 325, build clean, lint 4 pre-existing warnings, audit codes 49. Passed at dae3fac (R71).

Release 7: planner hand edits in a draft, and the docs bundle

A planner can add, move (time or unit), give to another officer, or remove one shift in an uncommitted draft. Every save goes through the same rules engine: a Block saves nothing, a Warn needs a second, acknowledged save, and there is no emergency override in a draft. Each save re-scores the whole draft; edited shifts read “· edited” and the audit log records each edit as “Draft shift edited”. Generate and discard drop hand edits after a confirm; commit re-checks every shift. No migration; all checksums, the golden and the plan fingerprints stay exact. The same release added the licence, the user guide, the install guide and the move of the process records to docs/process/. Gate: web 341, API 464 = 127 + 28 + 309 in both orders, Playwright desktop 105 / 0 failed, tablet 104 passed and 1 skipped / 0 failed, fixtures 43 / 0 failed, audit codes 50. Passed at 871375d (R72).

Release 8: public repository (docs only)

Screenshots from the gated build in the user guide, the repository made public (and renamed ShiftCircle), and small documentation corrections: the closure arithmetic behind 1,302, the acknowledgeWarnings types, ADR-030’s note on EXTRA and the re-score, and comment-only path fixes. One test-only fix rode along: two tests (the reports override and the demo-data self-check) used the real clock; from 23 Nov the reports test failed on a clean tip because its override row fell outside the report window. Both now use fixed demo times. No test was added or removed, and no product code changed. Gate: API 464 in both orders, web 341, Playwright and fixtures unchanged from release 7. Passed at 8b0df25.

Release 10: neutral wording (docs only)

The README no longer describes the repository’s purpose beyond “a prototype”, and the design-canvas sentence and two process-record wordings were reworded. No code, test or data change; counts as at release 8.

Release 11 (v1.1): the board as a scheduling grid, a readable quarter plan, planned leave

Everything merged to main after tag v1.0-submission (efba3f7), through sixteen pull requests (#1 to #16) on 23 and 24 November 2026. Gate: the tip 5a3be22, from a fresh stack per viewport (counts at the end).

Planning board (supervisor)

Quarter plan (planner)

Also in this release

No migration, no generator change. The dataset checksums (100, 120, 150), the payroll golden and the plan fingerprints are unchanged.

Counts at the gate: API 470 = 127 rules + 28 infrastructure + 315 api (mvn verify, BUILD SUCCESS, default class order, 0 failures, errors or skipped); web unit tests 463 in 51 files, lint 4 warnings and 0 errors, tsc -b clean; Playwright against the real API, a fresh stack per viewport: desktop-datasets (the whole desktop suite) 124 passed, tablet-datasets 123 passed and 1 skipped (the TV-size check is desktop-only), 0 failed; fixtures-mode web (--grep-invert @api): 23 passed, 79 skipped (the real-API specs), 0 failed. The parallel projects list 110 tests per viewport and the stack-wide specs add 14 (e2e/README.md).

Still not built (unchanged, docs/10-testing.md §8 and docs/roadmap.md): the Excel round-trip, sending a proposal and the proposals inbox, offer withdrawal, OpenAPI, and the rule corrections on the roadmap (U-03 and U-11 re-keyed, L-01, U-13). The planner’s 403 cells have no automated test.

Release 11.1 (v1.1.1): one-line install

Install-only change on top of v1.1: install.sh at the repo root (prerequisite checks, pinned clone, generated secrets never printed, docker compose up -d --build --wait, health checks, idempotent re-run, never down -v), a Quick install section in README and INSTALL, and a CI step running bash -n and shellcheck. No application, rules, data or test change; the v1.1 counts stand. Tag: v1.1.1-submission.

Release step: after merge, tag the merge commit v1.1.1-submission and push the tag, then run scripts/check-install-pin.sh --remote and the README one-liner once from an empty directory (free port, own SHIFTCIRCLE_PROJECT).

Release 12 (v1.2): the shift dialog says up front what it can’t do; the quarter plan says what it uses; plan options for the quarter plan

Not part of the submission tag. Changes merged after v1.1.1-submission, one pull request each. Tag: v1.2; install.sh and the README and INSTALL one-liners now install v1.2, while the course submission, v1.1.2-submission (branch release/v1.1.x), keeps its own installer pinned to that tag.

PR-O: a started shift is not offered a move or cancel. The owner opened a night shift that had already started (Tue 17 Nov, 23:00, with the demo clock at noon on Thu 19 Nov), picked a new date and shift, pressed Move shift and only then read “Past shifts are corrected in Time & attendance, not on the schedule.” The refusal was right (409 .../shift-started); the order was not.

Tests: web unit tests 551 in 55 files (+19: every dialog state including a locked period, the cancel button’s colours, the T&A deep link and a crafted link, the date words); lint 0 errors (4 warnings, unchanged); tsc -b clean. API: ScheduleApiTest gains two tests (the board’s now and the flags; an absence time entry sets actualRecorded but not worked, and a locked period sets payPeriodLocked), AssignmentMoveCancelApiTest one (a past target, with and without an override, exactly now, and later the same day), and PlannerLeaveRosterApiTest asserts the draft leaves now and the flags out; those classes with SchedulePublishApiTest, AssignmentApiTest and ConstraintProblemApiTest: 54 passed, 0 failed. New Playwright spec started-shift-dialog (@api): a started shift on the board has no Move or Cancel and its link opens Time & attendance on that shift; a future shift (Wed 25 Nov, outside the demo week the other writing specs use) still moves, and a start that has passed is refused before submit. The fixtures-mode move spec now picks a shift after the demo day. Playwright against the real API on a fresh stack at cca2d4b, --project desktop-datasets: 126 passed, 0 failed (124 + the 2 new). Tablet and the full mvn verify were not run on this branch (CI runs mvn verify); the API classes that cover the change (ScheduleApiTest, SchedulePublishApiTest, SchedulePeriodSeedApiTest, AssignmentApiTest, AssignmentMoveCancelApiTest, PlannerApiTest, PlannerLeaveRosterApiTest) passed, PlannerApiTest on a re-run alone after its 120 s timing guard missed under host load.

Found, not changed: a move’s rule results can list the same rule more than once (U-16 seven times in one walk); the three new EXISTS checks have no supporting index (fine at demo scale, 23–30 ms per board; an index belongs in a pilot-hardening migration).

PR-M: plan inputs on the Quarter plan (branch sc-pr-m): the plan is no longer a black box.

No migration, no generator change. Measured on the branch: Dataset 120 plan fingerprint e8b29ce6…9d31 (38 gaps, 7 warnings), Dataset 150 a1e093f7…b381 (100 gaps), checksums 120 82b19cf8…32ca and 150 2e6cd938…d7f8, all as before.

Counts on the branch (at 421627a, the review-fix tip, before main’s PR-O was merged in; after the merge the web suite is **567 in 56 files, all green):** web unit tests 548 in 55 files, lint 4 warnings and 0 errors, tsc -b clean. API: PlanInputsApiTest (4 tests), PlanInputsNeededTest (3, the floor’s stretch and its tie-break) plus PlanDraftEditApiTest, PlannerApiTest, GeneratorCharacterizationTest, Demo150ResetApiTest and the unit tests (27 tests) green locally, with the full mvn verify in CI on the PR. Playwright against the real API, a fresh stack per viewport: desktop 126 passed; tablet 125 passed and 1 skipped. That tablet run used E2E_WORKERS=1: a two-worker run on a host at load about 30 lost four supervisor-board tests to Chromium “Target crashed” and timeouts. Fixtures (all four projects): 45 passed, 159 skipped, no failures. That run was the third: two earlier runs, made while this branch’s own stack was still up, lost one or two different unrelated tests to crashes and timeouts.

PR-N: plan options for the quarter plan. The owner asked for “options to tailor the quarter plan. It really is a black box.”

Defaults unchanged: with the options omitted or sent at their defaults, the 100/120/150 plan fingerprints, warning totals and row counts are identical (GeneratorCharacterizationTest generates both ways). Dataset checksums and the payroll golden are unchanged. Commit, the rules and payroll are untouched; the live planning board’s payload is unchanged (the homeUnit marker is sent only on the draft roster).

PR-N counts (author run, 24 Nov 2026, round 3, with PR-O and PR-M merged in; reproduced exactly by the release walk below): API 503 = 127 rules + 28 infrastructure + 348 api (GitHub CI mvn verify); web unit tests 583 in 57 files, lint 4 warnings and 0 errors, tsc -b clean; Playwright against the real API, a fresh stack per viewport (E2E_WORKERS=1): desktop-datasets 129 passed, tablet-datasets 128 passed and 1 skipped (the TV-size check is desktop-only), 0 failed.

Release walk (24 Nov 2026, main at 958209c, installed with install.sh on its own stack): demo script §1–6 on a fresh stack and again after Reset the demo data, and §7 on its own reset stack, came out as written (every quote, figure, status code, DB row and audit row; the payroll CSV’s sha equals the golden file; no names on the wall display; 0 console, CSP or 5xx errors). The quarter plan’s headline, Plan inputs, Generate options and the planning-board shift dialog matched SQL on Datasets 120 and 150. All four suites reproduced the PR-N counts above with 1 worker. One major defect blocked the tag (D1, below), with five smaller findings; PR-Q fixes all six.

PR-Q: the walk’s fixes.

No api, migration, generator or rules change: dataset checksums, the payroll golden and the plan fingerprints are unchanged.

Release step: after merge, tag the merge commit v1.2 and push the tag, then run scripts/check-install-pin.sh --remote and the README one-liner once from an empty directory (free port, own SHIFTCIRCLE_PROJECT).

Counts at v1.2 (PR-Q’s head, 24 Nov 2026): API 503 = 127 rules + 28 infrastructure + 348 api (unchanged; PR-Q changes no api code; UnitApiTest and PlanInputsApiTest re-run green); web unit tests 591 in 58 files (+8: the staffing contract sample ×3, the top-bar clock, the sign-in retry ×2, the open-shift order ×2; the T&A subtitle and Overtime confirm assertions extend existing tests), lint 4 warnings and 0 errors, tsc -b clean; Playwright against the real API, a fresh stack per viewport (E2E_WORKERS=1): desktop-datasets 132 passed, tablet-datasets 131 passed and 1 skipped, 0 failed (+3 each: headline, panel and tile on Datasets 100, 120 and 150). The demo script §1–7 was walked again with the release walk’s harness on PR-Q’s stack: same results, apart from the harness’s known misses (its expected commit hash, the §3 “no refresh” check Playwright cannot perform, and two §7 wording checks).

Release 13 (v1.3): supervisors get their own rostered shifts, and shift proposals — the course submission

This is the submission release. The owner decided on 25 Nov 2026 to record the demo on v1.3 and submit it; the earlier submission build, v1.1.2-submission, keeps its own installer and its pre-supervisor numbers. Tag: v1.3, cut on main after S8 merges; install.sh (DEFAULT_REF="v1.3") and the README and INSTALL one-liners install it, and scripts/check-install-pin.sh passes offline (--remote once the tag is pushed).

What v1.3 adds, in two owner-approved plans (.factory/plans/v1.2-supervisors.md and v1.2-proposals.md; the plan files say v1.2, the release was split afterwards):

Measured on the final main (d3d1d28, S1–S7 and P1–P5, measured on S8’s branch at bd7d377, whose only changes are docs, install.sh’s pin and BUILD_RECORD.md), 25 Nov 2026:

The sections below are each pull request’s own record, S1 to S8 and P1 to P5.

S1 — Positions and the SUPERVISION kind (API, schema only)

What it does. An officer’s position (rank) becomes a reference row instead of a free-text column, and a supervisor post becomes a unit of its own kind. Nothing about the demo changes yet: there are still no supervisor posts and no supervisors in the datasets, so the demo behaves exactly as it did.

The migration (positions). The file is __positions.sql; its version number is the order it merges in, so it takes the next free number when it merges.

The API. The Position enum (CO/CS, with isSupervisory()) joins shiftcircle-domain. PlanGenerator.Employee gains position and rankSeniority, PlanGenerator.Unit gains kind and an isSupervision() helper; the older constructors are kept, so every existing call site still compiles. loadEmployees reads the classification and position_since, loadUnits reads the kind, MyScheduleQuery and GET /me name the position in words (Correctional officer, Correctional supervisor). A rank the api does not know is looked up as nothing and falls back to the lowest, non-supervisory rank, so a new rank in the table can never stop the planner or make it treat someone as a supervisor by accident.

No pin moves. No unit and no employee row changes, so the dataset checksums (100, 120, 150), the three plan fingerprints and the payroll golden are unchanged: GeneratorCharacterizationTest is green with no edits, and the demo reset tests still read the same checksums.

Counts at this gate: API 517 = 127 rules + 36 infrastructure + 354 api (mvn verify on the pull request, BUILD SUCCESS, 0 failures, errors or skipped); web unit tests 591 in 58 files, lint 0 errors, tsc -b clean, build clean; check-ignored-sources.sh OK and check-audit-codes.sh still 50 codes. Playwright against the real API, a fresh stack per viewport: desktop 132 passed, tablet 131 passed and 1 skipped (the TV-size check runs on desktop only). The branch carries v1.2 (main at f681ae7), so the positions migration is V16, after the quarter-plan options migrations V14 and V15.

Two things later releases still owe: the captured contract samples (web/src/api/contract-samples/) do not carry the new position field yet — they are re-captured in S7 with the rest of the samples — and this migration must merge after the quarter-plan options migration (PR #24), which owns the versions before it.

S2 — Who can work a post: the POSTS rule table, R-01/R-02 and rule set v4 (API + rules screen)

Stacked on S1 (#27). The owner approved the plan’s cross-cover answer, and S2 makes it a rule a rules admin can change, not a hard-coded check.

What it does.

The migration (V18__rule_set_v4_posts.sql, the next free number when it merged, after P1’s V17 proposals). A ninth rule table, POSTS “Who can work a post” (template post-eligibility.drt; columns postKind = SUPERVISION/LINE, allowedPositions, actingQualification), and rule set v4 by the same baseline-seeding exception as v2 and v3: v3 becomes history, its 20 rows are copied unchanged, and R-01 (Block, override NONE) and R-02 (Warn, ACKNOWLEDGE) are added, both marked placeholder with the source “Owner item 17”. The published v4 equals the code rows (RuleRowsV1, checked by ReferenceDataMatchesRuleRowsTest).

The engine. RuleTableCode.POSTS, a PostEligibilityFact and its builder (built for the proposed shift only, from the person’s position, the qualifications they hold that day and the unit’s kind; ShiftFact and the other builders are untouched), the template columns (every value is a checked code before it reaches the DRL), the publish-time validator (a known post kind, known positions, not every position at once, a qualification code or nothing) and the plain-language RuleSentence. R-01 and R-02 are Must rows from v4 on, so a draft cannot drop them or change their override policy.

Where it runs. RuleCheckService looks up the position, qualifications and unit kind for every board check (assign, move, overtime candidates) and passes them to the engine. The planner’s generator check, its regenerate check and its commit check pass the same from a lookup read once per run; the planner’s draft add/move check passes it too. There are no supervisors or supervisor posts in the datasets yet, so neither rule fires on the demo data.

The rules screen. A ninth tab, Who can work a post (/rules/{version}/posts), with its own columns: the post (fixed by the unit’s kind), who can work it (Supervisors or Officers), and for a supervisor post whether an acting supervisor may work it with a warning, then the result, override and source. The sentence under the grid updates as the admin edits, word for word the api’s. It is edited through the existing draft → build → submit → approve → publish flow.

API. No new endpoint or request field. GET /rule-sets/{v}/tables/posts (or POSTS) returns the table with the column headings Post, Who can work it, If someone else, Override, and a rule check can now return results with ruleTable: "POSTS" (docs/07 §3, §4.7).

No pin moves except the rule-set version. The live rule set is now v4 (v3 → SUPERSEDED); the dataset checksums (100, 120, 150), the three plan fingerprints, rows and warnings and the payroll golden are unchanged (GeneratorCharacterizationTest and the demo reset tests are green with no edits). Tests that pinned “v3 is the published version” or used version numbers 4/5 for fixtures now say v3 is history and use 5/6.

Counts at this gate: API 512 = 138 rules + 36 infrastructure + 338 api (mvn verify through the compose api-test stage, BUILD SUCCESS, 0 failures, errors or skipped); web unit tests 576 in 56 files, lint 0 errors, tsc -b clean, build clean. Playwright: see the pull request.

The review round (S2). The code review asked for changes (1 must, 2 should, 4 nits), the security review passed (3 low, 3 info) and the UI test found 1 major and 2 minor defects. All of them are fixed in one push:

S3 — The rank-aware planner (API)

Stacked on S2 (#29), with main (the quarter-plan options, PR #24) merged in. The owner approved the plan’s answers: the planner never cross-covers, supervisors get their own scorecard card, and seniority is counted inside the rank. There are still no supervisors or supervisor posts in the datasets (S4 adds them), so no pin moves.

What it does.

Tests. PlanGeneratorSupervisorTest (6): a synthetic centre with two posts and ten supervisors beside two officer units, an officer unit and a post each closed for a week, every option on: no cross-rank placement or check in any pass; R-01/R-02 never fire; the officers’ plan, gaps and every officer card are identical with and without the supervisors; the supervisor card and totals are exact (567 post block-days); a supervisor mis-homed on an officer unit is never placed there; and seniority inside the rank orders the pool. A mutation run (guard removed) fails 5 of the 6. PlannerSupervisorApiTest (3) adds a post and four supervisors to Dataset 100: plan inputs split, the draft keeps each rank on its own posts, and the scorecard, commit preview, compare and commit carry the split. UnitApiTest (+1): closing a supervisor post is a 409 and writes nothing. GeneratorCharacterizationTest is green with no edits.

The review round (S3). The review approved (0 must, 2 should, 6 nits) and security passed (0 findings); fixed in one push:

Counts at this gate (GitHub CI on the pull request, with main’s PR-Q merged in): API 549 = 140 rules + 36 infrastructure + 373 api (mvn verify, 0 failures, errors or skipped); web unit tests 602 in 58 files, lint, tsc -b and build clean; check scripts pass. No web change, so Playwright was not re-run.

Not in this release (the rest of the plan): the supervisor posts and the demo supervisors in the datasets with the single re-pin (S4), the overtime pools and the self-edit guard (S5), and the board, My schedule, display and reports work (S6, S7).

S4 — Supervisor posts in the datasets, the demo supervisors linked, the single re-pin (API)

Stacked on S3 (#32). Owner answers Q2 (two area posts, 1 per block, 24/7; both demo supervisors get both posts) and Q6 (Dataset 100 gets supervisors and is re-pinned once).

What it does.

Pins (moved once). Checksums 100 beb2e222…b7d1, 120 ca73467d…a64a, 150 353e2e62…91a5; plan fingerprints 94aeae1f…, 5a3763c7…, 7368ef13…; rows 7,266 / 5,595 / 5,877; scorecard (officer) warnings 135 / 7 / 39, all warnings 155 / 7 / 41; supervisor-post gaps 230 / 0 / 93 of 588 block-days; payroll golden 1,124 lines b946ef1f…00e6. Officer-only proof (GeneratorCharacterizationTest): the officers’ checksums, plan fingerprints, rows and warnings equal the pre-S4 pins (4156077d…, 82b19cf8…, 2e6cd938…; ec337014…, e8b29ce6…, a1e093f7…; 6,586 / 5,103 / 5,414; 135 / 7 / 39), and the golden’s first 1,038 lines are the old file byte for byte (9f2d51b3…04ff) with only S-… rows after them. Dataset 100’s planner puts no 8 h staff on nights, so all 196 of its supervisor-post night block-days are short in the plan quarter (230 short in all, the other ~34 days and evenings where leave is not backfilled), as the 8 h officers’ nights are; giving some supervisors a 12 h preference was measured and left more short (286).

Visible changes before S6/S7. M. Ellis and J. Chen get Employee view with their own supervisor schedule (header “Correctional supervisor”). The unit pickers, the reports and Compare list SUP-L and SUP-O like any unit. The wall display keeps its six unit tiles (eight do not fit a TV); the posts get their own counts-only strip in S7. The Plan inputs headline counts everyone (“Planning 130 officers in 8 units” on 120) and the commit dialog says “5,595 shifts for 107 officers” until S7 words the split; the audit line reads “5,595 shifts written · 107 officers · 10 supervisors · 7 warnings accepted · across 8 units”.

Tests. GeneratorCharacterizationTest re-pinned plus the officer-only invariance for all three datasets and the payroll prefix; DemoResetApiTest, Demo120ResetApiTest, Demo150ResetApiTest, DemoResetFailureTest re-pinned with per-classification counts and the supervisor composition; new SupervisorDatasetsApiTest (3: My schedule 200 for both on 100/120/150, posts/links/scopes, the rank-bound overtime list); DemoDataGeneratorTest (+2: officers unchanged, supervisors on their posts on 8 h with offers inside the rank); SchemaConstraintsTest (V19 counts). e2e: reset*.spec.ts (new 100 checksum), session-and-nav.spec.ts (Employee view for the supervisors), planner-inputs.spec.ts (headline and staffing totals).

Counts at this gate (author run, 76fd79d: S4 with origin/sc-s3 merged in, which brings main’s S1 #27 and P1 #26; own compose projects sc-s4 and sc-s4-e2e): API 584 = 140 rules + 38 infrastructure + 406 api (docker compose --profile test run --rm --build api-test, mvn verify, BUILD SUCCESS, 0 failures, errors or skipped); web unit tests 603 in 58 files, lint 0 errors (4 warnings), tsc -b and build clean; check scripts pass; Playwright against the real API, a fresh stack per viewport: desktop-datasets 132 passed, tablet-datasets 131 passed and 1 skipped (the TV-size check runs on desktop only). Demo §1–6 and §7 figures re-read on the real API (see docs/demo-script.md); M. Ellis and J. Chen open Employee view → My schedule with their own shifts in a browser.

Counts after the review round (c4d3963: the self-edit guard, the posts named in Compare, the docs fixes, with main merged in, which brings S3 #32 and P3 #33): API 611 = 140 rules + 38 infrastructure + 433 api (GitHub CI mvn verify on the pull request’s merge with main, 0 failures, errors or skipped; SelfEditGuardApiTest +3); web unit tests 632 in 61 files, lint 0 errors (4 warnings), tsc -b and build clean; Playwright against the real API, a fresh stack per viewport: desktop-datasets 134 passed, tablet-datasets 133 passed and 1 skipped.

S5 — Overtime pools by position (API)

Stacked on S4 (#35). Owner answer Q4 (separate overtime pools). The self-edit guard the plan put in S5 shipped in S4, on every supervisor write path (SelfEditGuardApiTest), so S5 is the pools only.

What it does. S4’s stopgap (“the overtime list stays inside the post’s rank”) is replaced by the pools themselves, in OvertimeService:

Pins. None move. The demo §3 list is unchanged and now pinned in SupervisorDatasetsApiTest: 36 candidates, 18 Skipped, 10 Not available, 8 eligible with a warning, Tara Nakamura one of the 8 with 32.0 h. No officer in the datasets holds Acting supervisor, so a supervisor post lists the 10 supervisors on Dataset 100.

Tests. New OvertimeSupervisorPoolApiTest (+5, a fixture of four supervisors, an acting and a plain officer): the supervisor post’s order by rank seniority then the acting officer last as a Warn; an officer post lists officers only; offers outside the pool are 422 and write nothing, the acting officer’s offer is made; a supervisor sick call offered to J. Chen, accepted on My schedule and confirmed by M. Ellis; an acting officer’s proposal is 5th of 5 and out of order. SupervisorDatasetsApiTest (Dataset 100): the §3 counts, 10 supervisors on a post’s list, the seeded supervisor sick calls offered to supervisors only, and an open one offered to another supervisor through the API.

Counts at this gate (author run, 0f60cad: S5 on S4 with main merged in, which brings P4 #36; own compose project sc-sc-s5, port 18495): API 616 = 140 rules + 38 infrastructure + 438 api (mvn -B verify in the maven:3.9-eclipse-temurin-21 image with the Docker socket, BUILD SUCCESS, 0 failures, errors or skipped); web unit tests 656 in 63 files, lint 0 errors (4 warnings), tsc -b clean (no web code changes); Playwright against the real API, a fresh stack per viewport: desktop-datasets 136 passed, tablet-datasets 135 passed and 1 skipped.

Review round (gates on #37: review CHANGES, security PASS with 2 lows). origin/sc-s4 at 36fcff7 (S4’s re-check) and main merged in, keeping S4’s versions. The pool check now runs for every name before any offer is written (next to the self-edit check), and confirm checks the pool again, so an offer accepted before the pools (S4’s offer path had no pool check) to a supervisor on an officer post is a plain 422 officer-unavailable and writes nothing. docs/07’s candidate-list, offer and proposal-order prose name the pools; docs/05’s O-02 says seniority inside the rank. OvertimeSupervisorPoolApiTest +1 (the pre-S5 accepted offer) and a mixed-name list that writes nothing; the dataset test is renamed theOvertimeListKeepsToThePostsPool. API 617 = 140 rules + 38 infrastructure + 439 api (GitHub CI mvn verify).

S6 — Supervisor posts on the board, the shift dialog and gap fill (web + one API field set)

Built on S4 (#35) and S5 (#37), both merged. Plan §2.4 and §4 S6.

What it does.

API. GET /schedule gains unit.kind, officers[].position and, on a line unit covered by a post, supervisorsOnDuty: [{date, block, names[]}] (a shift on the post counts in a block when it overlaps the block’s hours). All three are left out of the planner’s draft (compatibility constructors, so PlannerService is unchanged). No pin moves.

Left for S7 (as the plan places them): the Plan inputs headline and the commit dialog still count supervisors as officers (“Planning 130 officers in 8 units”, “5,595 shifts for 107 officers”); the per-unit supervisor counts on the plan-inputs rows, the scorecard card grain and warning key names, and PR-M’s fill order wording; My schedule, the display strip and reports.

Tests. API: ScheduleApiTest +1 (kind, position, the on-duty names per block on Unit A, and SUP-L’s own board with no on-duty field and “1 of 1”). Web: new supervisorPosts.test.tsx (+15: words, pools, grouping, grid on a post and a line unit, compact, Sup badge, gap panel, R-01 panel, dialog title, picker). Playwright: new supervisor-posts.spec.ts (+4 per viewport, read-only, skips unless Dataset 100 is active): picker groups and SUP-L at “Supervisor n / 1” in all 21 block-days; Unit A’s on-duty names equal the API’s; SUP-L gap fill lists supervisors only and an officer is Blocked by R-01 (Dataset 100 has no post gap, so one block is marked short and an officer row is added by route; the rule check is the real API’s); no sideways page scroll at 390 on a post and on Unit A. Demo §2 gains one sentence about the on-duty line; no quoted number changes.

Counts at this gate (author run, 2d52743, with main (S4 #35, S5 #37) merged in for the API run; own compose project sc-sc-s6, port 18646): API 618 = 140 rules + 38 infrastructure + 440 api (617 on main + ScheduleApiTest’s 1), 0 failures, errors or skipped. The single-JVM api-test run was killed twice (exit 137, out of memory) while other workers’ suites shared the Docker VM, so the api module ran in three mvn verify batches (planner 88, demo 18, the rest 334; -Xmx1g) and the rules and infrastructure modules come from those full runs (140 and 38, green both times); web unit tests 671 in 64 files (656 + 15), lint 0 errors (4 warnings), tsc -b clean; Playwright against the real API, a fresh stack per viewport: desktop-datasets 140 passed, tablet-datasets 139 passed and 1 skipped; the new spec also passed again on the reused stack after the full run (8 of 8).

Review round (gates on #39: review CHANGES 1 must / 3 should / 3 nits, security PASS with 3 info, UI test PASS with 2 lows / 2 nits). The “Supervisor on duty” line leaves out a shift with a recorded absence (Tue 17 Nov nights on Unit A–C now reads J. Chen alone, not the sick Tara Osei), a day the unit is closed, and a covering post outside the caller’s scope. A post’s coverage and the on-duty names count only a supervisor or an officer holding a valid Acting supervisor qualification that day, so an officer left on a post after losing it is a row but not “1 / 1”. The gap panel lists the signed-in supervisor last with the button disabled and “This is you” (the API refuses own-schedule changes). A post’s board says supervisors in search, export, print and the empty-filter note. The board sends the position’s supervisory flag and the web keys on it; the block windows are CoverageCalculator.BLOCKS, used by coverage and the on-duty line alike. Docs say 1 / 1 or 2 / 1 (+1 over) where two shifts overlap. Tests: ScheduleApiTest +1 (absence, no acting, expired acting, valid acting, out-of-scope post), PlannerLeaveRosterApiTest pins the draft without kind, position, supervisory and supervisorsOnDuty; web +3 (Acting/Officer badges, the supervisory flag, the disabled own row); the spec pins Tue 17 Nov nights and the post’s words. Counts: API 619 (441 api), web 674 in 64 files; supervisor-posts, gap-fill, board-filters and layout 26 of 26 on desktop and tablet at 54f12db.

S7 — My schedule, the wall display, reports and plan inputs (web + small API)

Stacked on S5 (#37). Owner item 17: a supervisor sees their own schedule in My schedule; the rest of the screens say how many officers and how many supervisors they count. Built alongside S6 (the board and the shift dialog), which it does not touch.

What it does.

Pins. None move: no dataset, plan row or payroll line changes (GeneratorCharacterizationTest fingerprints hash the draft rows only).

Tests. API +3: DisplayApiTest#theSupervisorPostsHaveTheirOwnCountsOnlyStrip (and the privacy test now has a supervisor’s name, number and id in the database), ReportsApiTest +2 (the position column and filter on hours and overtime, the CSV, 400; the overtime pool’s average), and the post assertions in SupervisorDatasetsApiTest, PlanInputsApiTest (rows 120 + 10, headline) and PlannerSupervisorApiTest (post row 0 + 4, the renamed keys). Web +13: nav and roles (My schedule), My schedule header (supervisor and officer), the posts strip (covered, short, an older API with no posts, the whitelist), reports by position, the split headline and words, the posts table, the supervisor card. Playwright: new supervisor-my-schedule.spec.ts (J. Chen’s My schedule, the posts strip with no names, the reports by position; read-only, figures read from the API first, so it holds on a reused stack); planner-inputs.spec.ts checks the split headline on 150 and 120, Supervisors by post, the supervisor card (“Supervisor posts covered 495 of 588 block-days; 93 short.”) and the commit dialog’s split; session-and-nav and reports follow the new wording.

Counts at this gate (author run; own compose project sc-sc-s7, port 18747): API 620 = 140 rules + 38 infrastructure + 442 api (GitHub CI mvn verify on #38 at 07c2cc6, BUILD SUCCESS, 0 failures, errors or skipped; author runs on a loaded host hit flakes in untouched classes); web unit tests 669 in 64 files, lint 0 errors (4 warnings), tsc -b and build clean; check-ignored-sources.sh OK, check-audit-codes.sh agrees (55 codes, none added). Playwright against the real API at bada893, a fresh stack per viewport, 2 workers: desktop-datasets 139 passed, tablet-datasets 138 passed and 1 skipped (the TV-size check runs on desktop only). The merges of S5’s review round and main after that change only the overtime pools and docs. Screenshots at 1440×900 and tablet (768×1024): supervisor/my-schedule/j-chen, display/wall-display/supervisor-posts, auditor/reports/hours-supervisors, planner/quarter-plan/supervisor-card-150; three are in the user guide.

The review round (S7). Review APPROVE (0 must, 3 should, 6 nits), security PASS (3 info), UI test PASS (1 minor, 3 nits); fixed in one push:

Counts after the review round (author run at 4117cc4, own compose project sc-sc-s7): web unit tests 673 in 65 files (+4: the rotation words, the changed-since note, the split words), lint 0 errors, tsc -b clean; API DisplayApiTest and ReportsApiTest 16/16 (the API @Test count stays 620); Playwright on the same stack: supervisor-my-schedule, reports, screenshots, e5-wall-display and session-and-nav on desktop and tablet 91 passed, 1 skipped, and planner-inputs, planner and planner-a11y (desktop-datasets) 7 passed. On Dataset 100 the API’s figures add up as the dialog says (727 + 230 = 957 short, 135 + 20 = 155 warnings).

Shift proposals, P1: the officer API

The first of five proposal PRs (P1 to P5; plan v1.2-proposals, owner answers Q1 to Q5 approved). P1 is the API for the officer side only; there is no screen yet. An officer can preview a multi-item proposal (each item rule-checked with the earlier items as extra facts, so rest between two drafts shows), send it (a Block can’t be sent, a Warn can), list their own proposals, and withdraw one while every item still waits. A waiting item expires when its shift starts, on every read and withdraw and by an hourly sweep. Nothing creates a shift: the inbox and the decision are P2, so until then a sent proposal stays Waiting and then Expires.

Tests: +30 API (27 in ProposalApiTest, 3 in SelfActionGuardTest). Web: the audit labels only. Counts for the whole release are measured once at the end of v1.3.

Shift proposals, P2: the decider API

The second proposal PR (stacked on P1, PR #26). P2 is the API for the decider side; there is no screen yet (the inbox is P4). A supervisor sees the proposals with an item on their units, and the planner sees all of them, so Unit C and a supervisor’s own proposal always have a decider. The detail shows each item’s rule result as sent and as of now, the overtime it would add in its pay period, and the open shift it matches with the officer’s place in the overtime order. Approving re-runs the board’s rule check at decision time and creates an EXTRA / PROPOSAL shift; declining needs a comment the officer then sees.

Tests: +22 API in ProposalDecisionApiTest (inbox scope, count, filters, a 403 per endpoint for EMPLOYEE and AUDITOR; approve → EXTRA/PROPOSAL shift and audit; Block now → 422 nothing saved; a new Warn needs acknowledgement; same-send rest interaction without double counting; decline needs a comment; self-approval 403 for a supervisor proposer; the planner decides a supervisor’s proposal; out-of-scope 403; expired 409; version, decided and withdrawn; locked period 409; closed unit and retired shift type 409; pay-period overtime hours; open-shift fill with only OFFERED offers withdrawn and the accepted one refused at confirm; out-of-order acknowledgement and audit; an item expiring underneath the decision rolls everything back, deterministic through a test trigger; a withdraw that holds the officer lock first wins with 409, deterministic through a held advisory lock; a proposal row that changes underneath is 412 stale-version with everything rolled back, deterministic through a test trigger; after S2, approving an officer for a supervisor post once the ACTING_SUP qualification is gone is 422 on R-01 with nothing saved) and +2 in ProposalOvertimeTest (the P-01 threshold and the P-04 minimum at 80 h, 80.25 h and 80.5 h, and a 70 h threshold from the policy). Run together with ProposalDecisionApiTest, ProposalOvertimeTest, ProposalApiTest, SelfActionGuardTest, AssignmentApiTest, AssignmentInputApiTest, AssignmentMoveCancelApiTest, OvertimeApiTest, OvertimePayrollConcurrencyApiTest, AuthorizationMatrixTest and AuditApiTest (the two P2 classes are 24 of them): 126 passed, 0 failed (the first version of this note said 139 for the same set; the measured number then was 119). Web: the audit label only. Counts for the whole release are measured once at the end of v1.3.

Shift proposals, P3: the officer screen

The third proposal PR (stacked on P2, PR #28). P3 is the web for the officer side, on My schedule, through the P1 endpoints; the supervisors’ inbox screen is P4, so /proposals stays a placeholder.

Tests: web 591 in 58 files on P2’s base (was 567 in 56), 615 in 60 after merging main (PR-P/PR-Q): +17 in ProposeShifts.test.tsx (add/remove, combined check, Blocked disables Send, checking state, failed check, note limit, send and Waiting, refused send re-checks, note rendered as text, drafts survive a remount, blocked storage, unit picker and date floor, outcome lines with the comment, withdraw with confirm, refused withdraw, partly answered, empty and failed list), +9 in proposalWords.test.ts, +1 calendar focus, +1 /me/propose redirect; the three “not available” Propose tests and the /me/propose placeholder case are gone. Lint 0 errors (4 warnings, unchanged), tsc -b clean. Playwright: new proposals-officer.spec.ts (@api, serial): Tara drafts Sat 28 Nov and Tue 1 Dec evenings, Tuesday is Blocked by U-14 only with the Saturday draft and Send is off with the reason; she removes it, sends Saturday with a note and sees Waiting; she sends Fri 4 Dec and withdraws it; /me/propose lands on the card; at 390 px there is no sideways page scroll and Remove is reachable; axe on every state. The M1 “sends nothing” test in not-built-states.spec.ts and the /me/propose rows in the not-built route, axe and screenshot specs are removed. No API change, no migration; no pin moves.

Playwright on the branch (own stack sc-sc-p3, fresh per run, host load 12 to 29 from other stacks): --project desktop (the parallel specs) 110 passed, 2 failed, both board-views.spec.ts (a 30 s test timeout under load; that spec only reads the planning board, which P3 does not touch, and the review gate re-ran it after a demo reset: 4/4); proposals-officer 3/3. Tablet: proposals-officer, not-built-states and routes-and-errors 9 passed on a fresh stack. An earlier desktop-datasets run at load ~25 lost 17 tests to Chromium “Target crashed” and timeouts across unrelated specs, so the stack-wide specs were not re-measured here; the whole suite per viewport is measured once at the end of v1.3. Screenshots at 1440×900 and 390 px are the two officer-*.png crops in the officer guide and the full captures from proposals-officer.spec.ts (SHOTS_DIR).

Gate fixes (review, security and UI test of PR #33). proposals-officer.spec.ts finds this run’s proposals by a token in their note and withdraws whatever Tara has waiting before and after the spec, so it passes on a reused stack and leaves nothing Waiting for the inbox specs (measured: desktop, desktop again and tablet on one stack, 3/3 each; afterwards Tara has only Withdrawn proposals). A failed check (a 429 “try again in N seconds”, the api unreachable) now offers Check again; nothing retries by itself. The top of My schedule links to Propose shifts and My proposals (“On this page”), because the card sits below the offer history in the side column. Signing out (or an expired session) removes the sc.propose.drafts.* keys from the tab. docs/02 S-04, FR-30 and FR-31 and the docs/09 EMPLOYEE row now say what P1 to P3 built (the inbox side stays P4); docs/ui lists the endpoints the screen calls. Not changed: the calendar at 390 px still scrolls sideways for Friday to Sunday (its scroll region is focusable); fitting seven columns with the shift chips at that width is a redesign, not a fix. Web 619 in 60 files (+4: Partly approved with both outcomes, Check again after a 429, the in-page links, sign-out clears the drafts; the Withdrawn outcome line joined an existing test). Lint 0 errors (4 warnings), tsc -b clean. Playwright on the gate-fix head: proposals-officer, not-built-states, routes-and-errors and a11y-every-screen on desktop 25 passed.

Shift proposals, P4: the inbox screen

The fourth proposal PR (stacked on P3, PR #33). P4 is the web for the decider side, through the P2 endpoints. /proposals is no longer a placeholder.

Tests: web 640 in 62 files (652 after merging origin/sc-p3): +17 in ProposalsPage.test.tsx (nav count for supervisor and planner, list and first card, note as text, Waiting/All and unit filter, empty state, was/now, overtime and open-shift lines, Send off until choices and decline comments, separate warning and overtime-order acknowledgements then send and the count drops, decline comment rendered as text, a Block 422 inline with Approve off, no acknowledgement and no override, a new Warn from a 422 needs a new tick, own proposal read-only, 409 reloads, the ?proposal= link, the chip tooltip and name, the http calls with If-Match), +5 in inboxWords.test.ts; the /proposals placeholder case and the planner nav lists are updated. Lint 0 errors (4 warnings, unchanged), tsc -b clean. API: +1 assertion block in ProposalDecisionApiTest (the approved shift carries fromProposal, no other shift does); mvn verify through the api-test stage: 570 = 127 rules + 36 infrastructure + 407 api on the P3 base, and 603 = 140 + 36 + 427 after merging origin/sc-p3 (with S2/S3 and P2’s R-01 test), 0 failures/errors/skipped. Playwright: new proposals-inbox.spec.ts (@api, stack-wide, serial, a per-run token, cleans up before and after: withdraws Tara’s waiting proposals, declines what is left and cancels shifts created from proposals): Tara sends Sat 28 Nov + Fri 4 Dec and Sun 29 Nov; M. Ellis approves Saturday (warnings acknowledged) and declines Friday with a comment, the nav count drops by one; in a second window Sunday was a Warning when sent and, after Saturday’s approval, the send is refused inline (Blocked U-08, U-14; Approve off; no override) and a reload shows the same was/now; he declines it; the board chip says “from an approved proposal”; Tara sees Partly approved and Declined with the comments; J. Chen’s inbox is empty. The not-built route, axe and screenshot specs drop /proposals; the nav lists in session-and-nav and planner.spec include Proposals. Measured on own stack sc-p4, fresh per viewport. At 6e087b2: --project desktop-datasets 135 passed, 1 failed (the planner spec’s exact nav list, then fixed), --project tablet-datasets 135 passed, 1 skipped; proposals-inbox passed twice in a row on one stack. After merging origin/sc-p3 (rule set v4, R-01/R-02 live), at 5138c38: desktop 136 passed, tablet 135 passed, 1 skipped, 0 failed. Screenshots at 1440×900 and 768×1024 from proposals-inbox.spec.ts (SHOTS_DIR); two are in the supervisor guide. The out-of-order acknowledgement and the own-proposal view are covered by the web and API tests, not Playwright: the demo has no open shift Tara can take that E2 does not, and the demo supervisors are not linked to officers before S4.

Gate fixes (review, security and UI test of PR #36). Inbox cards list their shifts (“Sat 28 Nov · E8 15:00 – 23:00 · Unit B”, up to three, then “and N more”), so several proposals from one officer can be told apart: GET /proposals cards gain shifts (the items on the caller’s units). Each approved shift has Open the board for the week of … whenever the proposal is open, not only right after sending. After a 422, a shift that is Blocked now has its Approve choice cleared; a fresh refusal is authoritative for the open-shift match too (no order in it: no “outside the overtime order” tick). The filters sit above both panes, so on a tablet they come before the open proposal. encodeURIComponent on the proposal id in the detail and decision paths (security low 1). The decision carries the warning codes the decider ticked, and a missing choice is never sent as an approval. The “rules now” note shows only on a shift with an earlier waiting one. The comment-length check counts the trimmed text, as the button does. Fixture: a mix of expired and declined with nothing approved reads Expired (plan §1.1). The e2e clean-up touches only this spec’s own proposals (note prefix e2e-inbox), skips one it can’t see, and cancels only their shifts. Docs: the officer guide no longer says the inbox is being built; build-notes §2.3 marked superseded (no override flow, status=WAITING|ALL); docs/01, HANDOFF, traceability FR-30/31, roadmap and docs/07 (card shifts) brought up to date.

Shift proposals, P5: planted demo proposals, the demo walk, ADR-032

The fifth and last proposal PR. No new screen and no new endpoint; the demo data, the docs and the leftovers of the P4 re-check.

Tests (measured on the branch, own compose project sc-sc-p5, port 18850): API rules 140 + infrastructure 38 + api 421, 0 failures (+1 ProposalDecisionApiTest; DemoResetApiTest and SupervisorDatasetsApiTest gain the planted-proposal and count assertions). The api module ran in three batches (planner classes; PlannerApiTest with the demo and proposal classes; the rest) because the one-JVM run was killed for memory (exit 137) on the shared Docker VM while another stack’s suite ran; no test failed in any run. Web 659 in 63 files (+3: the withdraw id, the refusal’s live offer count, the 409/412 reload), lint 0 errors (4 earlier warnings), tsc -b clean. Playwright --project desktop-datasets on a fresh stack at the code tip: 137 passed (one worker; a two-worker run under host load ~20 timed out in unrelated specs). check-audit-codes.sh: 55, unchanged.

Gate fixes (review, security and UI test of PR #40).

S8 — Docs, ADR-031, the install pin and the demo walk (docs only)

The last pull request of v1.3, made after S7 (#38) merged, so it documents the final main (d3d1d28). The owner then made v1.3 the course submission; S8 records that too.

Release 13.1 (v1.3.1): post-submission fixes and install docs

Not the submission. The course submission stays the tag v1.3, which is unchanged, and its own install.sh stays pinned to v1.3 (its release page has the v1.3 install notes). v1.3.1 is the current release: v1.3 plus pull requests #42 to #48, merged on 25 and 26 Nov 2026. Tag: v1.3.1, cut on main after this release-prep PR merges; install.sh (DEFAULT_REF="v1.3.1") and the README and INSTALL one-liners install it, and scripts/check-install-pin.sh passes offline (--remote once the tag is pushed).

What changed since v1.3:

No api, migration, generator or rules change: the dataset checksums (100 beb2e222…b7d1, 120 ca73467d…a64a, 150 353e2e62…91a5), the payroll golden (1,124 lines, b946ef1f…00e6), the plan fingerprints and rule set v4 are as at v1.3.

Measured on main at 2570e18 (this PR adds only docs and the pin), 27 Nov 2026:

Release step: after merge, tag the merge commit v1.3.1 and push the tag, then run scripts/check-install-pin.sh --remote and the README one-liner once from an empty directory (free port, own SHIFTCIRCLE_PROJECT). Do not move v1.3.

On main after v1.3.1 (next release, not tagged yet)