ShiftCircle

Build progress (working note)

Internal working note, kept as a historical log of the build. It is not the current status: for that, read the block below, then docs/process/release-notes.md and docs/10-testing.md (“Current counts”). Older paragraphs quote the counts of their day.

Current state (24 Nov 2026, release 11 / v1.1, main at 5a3be22)

Start here: exact commands

Run the full API suite (the only supported way; the host has no JDK):

docker run --rm -v "$PWD/api":/src -v shiftcircle_m2:/root/.m2 -v /var/run/docker.sock:/var/run/docker.sock -e TESTCONTAINERS_HOST_OVERRIDE=host.docker.internal -w /src maven:3.9-eclipse-temurin-21 ./mvnw -B test

Verify from a clean checkout (do this before quoting any count):

git worktree add /tmp/sc-handoff-check HEAD
docker run --rm -v /tmp/sc-handoff-check/api:/src -v shiftcircle_m2:/root/.m2 -v /var/run/docker.sock:/var/run/docker.sock -e TESTCONTAINERS_HOST_OVERRIDE=host.docker.internal -w /src maven:3.9-eclipse-temurin-21 ./mvnw -B test
git worktree remove /tmp/sc-handoff-check

Full stack on this host (8080/5432/5433 are taken):

SC_WEB_PORT=18080 SC_API_PORT=28081 SC_DB_PORT=25432 docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build --wait

Web tests and E2E: web/ for pnpm test; e2e/README.md for the Playwright commands and the real-api vs fixtures split. A stale scratch worktree from an earlier seat may exist at /tmp/opencode/sc-step6 (detached at an old commit); it is not on a branch, so check with git worktree list before removing it in case a reviewer pinned it.

Known gaps and half-made decisions (do not re-litigate silently)

docs/traceability.md §”What is not claimed” and docs/10-testing.md §8 are the authoritative lists. Still open at the final tip 5d0f810: FR-07 notice check and per-officer “changed since published” flag (only the count exists); NFR-09 generated OpenAPI/Swagger (no springdoc); ADR-015 shift-time editing is seed-level, not an admin screen; the rule tables have no Excel round-trip; the performance layer is the JUnit PerformanceSmokeTest only; the authorization matrix is grouped by area method plus per-endpoint tests, not one method per cell; the scenario library lives in RuleScenarioRunner (Java), not JSON files.

Phase 3 known limits: the planner does not enforce qualifications (0 failing block-days on 120 by construction, 346 on the 100 seed); no leave is seeded (the absence input is a read-only skip); payroll overtime stays per period (P-01), not cycle-averaged; a late-recorded actual is not re-checked against later shifts; rule set v2 is seeded PUBLISHED by V6 (baseline exception, no maker/checker); 13 shift-less casuals still read their wishes as MET on the 120 plan (candidate 4, not built); the two extra patterns were measured and not added (decision 15). Submission work that is the person’s, not an agent’s: the ≤ 5-minute demo recording (script is docs/demo-script.md, build record is BUILD_RECORD.md), the push, and reading DECISIONS-FOR-THE-PERSON.md.

Done, committed on main

Step Commit(s) Evidence  
1 spike a70556e Spring Boot 4.1.3 + Drools 10.2.0 on Java 21, Docker  
2 scaffold 52b8693 five modules, version endpoint, compose, secrets refusal  
3 database c24389a Flyway V1–V3, constraint tests (T10, T11, overlap), readiness guards  
4 rules 64092c5, 1452a3d, 5ad4367, dbd0365 full boundary matrix, seed/rule-set drift guard  
4 fixes b4a2562…6755e4f, baf42d0, c3f5d41 review-r2 F2–F8, R5; .gitignore integrity fix  
5 generator e63e548, 1c73768, 3cec3bd self-check, PC-01…PC-09, reproducible checksum, PC-06 runs counted  
6 auth e19cec5, ba8f763 mock sign-in, HS256 JWT, roles/scope, hostile claims are 401s  
6 schedule 4c09f95, 74b22c8 GET /api/v1/schedule, hourly coverage, web shape  
6 assignments 132590d, 74b22c8 rule-check preview, 422/acknowledge/override, audit, S-04  
6 authz 0a2f51d role/scope matrix over the live endpoints  
6 reference 3d373bc units (scoped), shift-templates, qualifications, employees  
docs 6ec99b2, 3d373bc API spec matches the api and web shapes  
step 6 review fixes f73d6c5 preview unit scope, per-officer save lock, override+warn acknowledgement, 28-day U-11 window, problem+json; 142 tests from a clean worktree (ADR-021)  
8 overtime ba8f95f, 6e68a8d OvertimeRanker + endpoints: ranked candidates (PC-07 tie, PC-08 offer→accept→confirm, PC-09 unavailable head, PC-02 exactly 8 h), /me/schedule, /me/offers, V4 CONFIRMED; 162 tests  
9 time/payroll merge 1714f76, 2b5f3fe dev-build2’s api-time-payroll (T8 golden CSV, T11, T12, T14, CSV quoting); 200 tests from a clean worktree  
8 review fixes 7489cf7 F1 gate on offer/confirm/assign, F3 row locks + status guards, F2/F4/F6, F7 demo clock, F5 docs; 31 targeted tests  
11 rules admin 2dc1b1b, 3cc55e6, a46580b RuleRowValidator (T13 + Must rows), RuleScenarioRunner (T1-T5 + ranking), drafts/rows/build/dry run/submit/approve/publish, atomic hot-swap snapshot, boot-time published rows; 206 tests  
merges c67488d, 210e59b, 1a7d231, 17308b7 integration2 (reports M1-M6), integration3 (demo clock, offers 404/400, PC-03 actor, guard fix), its docs, web-display (wall display screen); conflicts only ai-dev-log numbering  
review nits 874926b balanced-parens validation; TemplateColumns’ re-checks throw RuleCompilationException (plain refusal, no 500)  
12c schedule publish f300cd0 POST /schedule-periods/{id}/publish: scope 404, employee/auditor 403, one-way 409, audit row, board publishedState; absences were already on main from step 9  
12d NFR-05 perf 51a4cc5 PerformanceSmokeTest: board 4 weeks 54/58 ms, rule check 4/7 ms, 90-day coverage 7/15 ms, rule build 655 ms, publish 516 ms; recorded in docs/10  
boot validation 062da95, 62dd4fc PublishedRuleSet runs RuleRowValidator on the published rows at boot; unreadable rows stop the boot instead of falling back to v1; direct-edit tests restore the row  
12e move/cancel c1dd6ad PATCH/DELETE /assignments/{id}: full rule pipeline on the target with own slot excluded, If-Match inside the officer lock, ETag/version, locked/started/actual/fills-open checks, audit before/after, 16 tests; POST and board items carry version too. Shapes handed to dev-build2  
traceability docs/traceability.md 20 rules + S-04, T1-T14, E1-E5, guardrails 1-8 and ADR-001..023 mapped to exact tests; 65 class#method refs machine-checked. Found and reported: scenario JSON claim, U-15 boundary, FR-07 notice flag, NFR-09 OpenAPI, ADR-015 editing, perf E2E claim  
U-15 boundaries 57da6b1 ScheduleApiTest pins 71.99/72/79.99/80/80.01 h plus last-day/midnight and a separate period; 2 new tests; fixture clears time entries  
reason caps + absence f1d696d cancel/override/unlock/reject reasons capped at 500 with 400 naming the field; cancel refuses absence-recorded; tests for each; docs/07 updated  
order-proof tests 22375d4 one database per API test class; authz stale-token bug fixed; reverse + random x2 each 276 tests green  
generated password 22375d4 no-op UserDetailsService stops Boot’s default user; AuthApiTest asserts no in-memory user and basic auth 401; log line gone  
12b audit viewer 21af15c GET /audit-events: auditor facility-wide, supervisor scoped to their units, filters (actor/action/entity/date), keyset pages, read-only; 405s and the append-only trigger proven  
review S1-S5 e13ddeb, b572dff, 444f685, 03ceb19, 35c225d DRL injection closed (codes/messages/regex validated before compile + escaped again), shift-kind bounded against ReDoS, message edits saved, Must policies pinned, limits capped + silent rule named, odd input 400/404 problems  
12a wall display 6649eb1, f191d07, 6237258 GET /display/today (ADR-017 hourly blocks, midnight-crossing night, no names, scope, roles); the coverage/ ignore fix that a clean checkout caught; ignored-source guard script + README step; 209 tests from a clean worktree at f191d07  
12f schedule periods 4a24ca9, 530ab82, fe6487d the generator seeds the 84 roster weeks a supervisor publishes (past weeks published, the current and later weeks drafts), every shift points at its period, and the self-check refuses a dataset without them; the board returns period {id, label, status} and a real unpublishedChanges count from the audit trail; SchedulePeriodSeedApiTest publishes a generated period; 284 tests  
12g raw 500 on a conflicting save ca85c69, 5f426ce a database constraint now answers a problem document, never a 500: one advice maps every SQLSTATE (23P01 → 409 “this officer already has a shift at that time”, 23505 → 409, 23514 → 409, 22003 → 400) and nothing rethrows; ConstraintProblemApiTest goes through HTTP for the overlapping save, the overlapping move and the guarded overtime confirm; a catch-all answers every other error as problem+json (the advices are ordered so it cannot shadow them); 295 tests  
12h hidden errors logged dcee43b a refusal the caller cannot see behind is now visible to the operator: the catch-all logs the exception and stack at ERROR under a traceId that is also in the body (5xx ErrorResponse takes the same path, a 4xx keeps its status and is not logged as a fault); a database conflict logs at WARN with its SQLSTATE and constraint name; the rule-compile refusal is pinned by a log test; the boot-validation and unreadable-rows refusals log at ERROR before the app stops; docs/07 §2.2 matches  
12i rules-admin refusals 23bdf0e, 211e8f9, d2d120e a row edit is saved or refused, never dropped: unknown keys (unless on the stored row), wrong types, missing non-nullable values and lists over 16 are 400 naming the column; afterShiftKind is authoritative in params, the strict grammar is saved and hostile values are refused; minRestHours is 8–24; the validator is total (a stored bad value, including params = NULL, is a validation error, not a 500 or an NPE) and a build shows at most 20 errors; RuleRowEditApiTest (31 @Test at the final tip; 19 when this row closed); the intermediate static count at this point was 323, superseded by 348 in 12j  
12j review-r2/r3 findings c0dcaf3, 33493d0, edca04d after-label vs params conflict is 400; every numeric column has a documented range at PUT and validator; the validator is total for any JSON root; message/enums/ranges; a new REST row may carry minExtensionMinutes; startAt ±5 years and type ASSIGN EXTRA are 400; the employee list is scoped; unknown top-level row fields are 400; JWT blank default gives the friendly secret message; LF is neutralised in CSV; open-shift assign/confirm lock the shift first so one fill wins (revert-the-fix: 3/3 officers filled), unlock guards on LOCKED and writes one audit row (revert-the-fix: 4 rows); concurrency + HTTP tests; static total 348 = 97 + 27 + 224; dev-qa’s independent default and random seed 20261121 runs at c0dcaf3 are green
12k D6 rule sentence 8c5d705 the sentence the rules screen shows names the shift in words (“any shift”, “a regular shift”, “a 16-hour shift”, or the codes) and the outcome as blocked/warned/noted, never the stored .* or the raw enum (block); RuleSentenceTest scans all 97 shipped rows and pins U-01, and RuleSetApiTest checks the GET; red on the old builder (“After .*, … the change is block.”); static 351 = 97 + 27 + 227; this author’s full clean-worktree runs at dc6890e are 351, 0 failures/errors/skipped in default order and random seed 20261121; dev-qa’s independent run pending  
12l V12/V19/V5 c8c05cd refusals name the visible column label, not the params key (the minRestHours and shift-kind messages too); rest rule evidence reads “P12 ending …, next shift D8 starts …” with no assignment UUID; seeded locked pay periods record m.ellis so GET /pay-periods names the actor, matching the API lock path; tests red then green (1 + 31 + 14 + 1); static 352 = 97 + 27 + 228; this author’s full clean-worktree runs at c8c05cd are 352, 0 failures/errors/skipped in default order and random seed 20261121; dev-qa’s independent run pending  
12m plain evidence everywhere 9ef9f7c the four other fact builders stop echoing assignment ids: rolling names hours/window/count, long-shift names counts/date, consecutive names run length/end date, shift-length names pattern/duration/unit; FactEvidenceTest feeds real UUID ids to each builder and asserts the evidence excludes them (red first); the ids move to RuleResult.evidenceAssignmentIds so the demo self-check matches overrides without reading the message; rules 101; static 356 = 101 + 27 + 228; this author’s full clean-worktree runs at 8a2257a are 356, 0 failures/errors/skipped in default order and random seed 20261121; dev-qa’s independent run pending (done: see R46/R47 and R61)  
12n UI test (Playwright) 72ebd24 eleven new specs (a11y-every-screen, audit-viewer, display-short, keyboard-api, overtime-decline-filled, planning-override, reports, routes-and-errors, rules-refusals, screenshots, session-and-nav) cover every screen by role and state at desktop 1440×900 and tablet 768×1024, axe WCAG 2.1 AA on every screen reached, keyboard-only E1/E3, and 80 captures + index.json; D1–D11 pinned and fixed; dev-qa independent: real-api desktop 86 / tablet 85 + 1 skip, fixtures desktop 22 (+56 skipped by design) / tablet 21 (+57), vitest 239/239 in 29 files; commands in e2e/README.md, coverage in e2e/COVERAGE.md  
13a phase 3 slice 1 c29d306, a56ce10 #11 absence correction: sick→worked, worked→vacation and DELETE /time-entries/{id} back to needs actual, locked 409, pay codes recalculated, audited; the first clear event was invisible to supervisors because it named the deleted time entry, fixed to the assignment (a56ce10, test first). #5 GET /audit-events/actors with the same scope as the trail. #12 coverage extraHours + extraHoursByBlock (DAY/EVENING/NIGHT) for kind EXTRA/source OVERTIME_OFFER in JSON and CSV (extra_hours, extra_day, extra_evening, extra_night), reconciled hour-by-hour  
13b quarter planner (ADR-026) 2a62682 V5 planner tables, PLANNER role and p.planner, deterministic synthetic preferences; generator over 7 periods 4 Jan – 11 Apr 2027 (default ROTATING_5_2: 80 h/period, weekends rotate; 5_ON_2_OFF and 7_ON_3_OFF selectable; 12 h 4/4, 16 h 1/2); fixed night group volunteers senior-first then newest-first; every proposal through RuleCheckService against draft + history; draft/gaps/warnings/preview/compare/commit/discard and preferences endpoints; commit re-checks, refuses Block with a list, needs If-Match + exact warning ack, locked 409, one audit event and plan_draft_id on each row; PlannerApiTest 9 green (generate 1.4 s; determinism; whole-draft no-Block + 80 h; newest-first; commit; stale; locked; discard; authz; board read), WeekendRotationProbeTest 4  
13c planner review fixes ec39e43 stale V5 counts (8 users / 10 roles), default changed to 5_ON_2_OFF after the all-phase probe showed ROTATING_5_2 warns U-12 at the Sun-Mon wrap (40 h break; 72 h transition would be needed); scorecard warnings now subtract each officer’s history-only baseline (default plan 0 warnings, not 21,556); commit creates the seven 2027 pay periods and 42 schedule periods, and a test locks one and gets 409 on the next commit; one fixed block per 8 h officer (removed 7,573 U-02 block-switch warnings); draft schedule + coverage endpoints in board shapes; seeded-history test proves the verifier seam (mutation: whole-draft U-01 + commit 422)  
13d rotating default (person) 7b315be, f6ee8cd person chose ROTATING_5_2: pair retreats per period, 3-day break at the wrap (72 h changeover), fixed and 7/3 selectable; scorecard warningNote + quarterHours min/avg/max (report-only U-13) + weekends; warnings counted once per officer per rule at the changeover; tests: no Block in the draft, U-12/U-14 ≤1 each, no U-08, hours {72,80} with five/six 80 h periods, weekends 22; honest correction: where a seventh consecutive day would block, a second 72 h period appears (some officers), so the note says one or two 72 h periods  
13e FTE / casual pool eaf4df6 employee.fte drives planning: full-time on the pattern, FTE<1 a fill pool (target FTE x 80 h/period, nights first, newest-first, engine-verified, never over target, fixed iterations, deterministic); scorecard fteBands + plain note. Synthetic 100 FT + 50 casuals: gaps 617 -> 223 of 1,764 (35.0% -> 12.6%), 8,986 assignments, 132 ms, every casual at/under target; 100 FT default unchanged. Reset API (61c45de) 3.5 s, checksum twice; 16 h preferences unmet, no L16 (1860e93); rephased block groups 617 -> 571 (f53b488). Static 381 = 106 + 27 + 248; full suite pending (done: see R46/R47 and R61).  
13f Planner M1/M2 f3399e1 A second draft over a committed quarter is 409 problem+json, reason ALREADY_COMMITTED_WINDOW, plain sentence (date, author, Reset the demo data); a real Block at commit still lists failures. Compare is real: coverage gaps, gap hours, shifts, officers, hours, warnings, preferences, weekends min/avg/max with direction + 6 unit gap rows; board via ScheduleQuery, draft via plan tables; board == draft after commit. Locked-period check folded into the commit test; seeded late-shift test generates its own draft. 12/12.  
13g Absolute-time coverage e003c7b Board and plan use CoverageCalculator: NIGHT D = 23:00 D to 07:00 D+1. Board gaps 1,058 -> 576, plan gaps 571 -> 576 (5 night block-days the day-modulo count missed), identical per unit and block (DAY 158, EVENING 312, NIGHT 106). FTE synthetic stays 223.  
13h Reset lock 78aacf6, 8f9f347 Release before DONE/FAILED; ReentrantLock -> Semaphore permit (acquired on the request thread, released on the virtual worker; the old release silently did nothing). DemoOperationLockTest 2/2; reset twice ~5.0 s each, same checksum.  
13i Time-entry contradiction 4401c09 PUT /time-entries with workedAsScheduled + actual times is 400 problem+json and writes nothing; PayrollApiTest 18/18.  
13j Night rule e9f1b10 Only 12 h officers work nights: 8 h never N8, 8 h NIGHT preference unmet with the plain reason; 12 h A12 keeps nights. Default 789 gaps (DAY 171, EVENING 30, NIGHT 588; every unit-night short), warnings 117, quarter 549.6 average. FTE synthetic: casuals no longer shift full-time phases (689 baseline), 8 h casuals fill all 101 day/evening gaps (689 -> 588) but cannot fill nights; every casual at/under target.  
13k V6 D12/N12 8c1f58e D12 07-19/N12 19-07 templates + published rule-set v2 (U-02 additive D12 N12; U-10 19-07); ShiftFact/ConsecutiveRun support. 6 new boundary tests (U-02 after N12, U-09 4/5, U-10 4/5, U-14 48/60/68, U-05 16/16.25, nominal). Rules 112/0, drift 1/0, rule API 18/0; 100 checksum unchanged, no D12/N12 in the 100 roster, ADM/ESC allows_12h false. Review-r2 starts here.
13l Crews + paired phases a803215 Planner reads rotation_pattern.code and keeps D12/N12/D8/E8 separate; 12 h phases paired j/j+4 per crew, so a crew of 2p covers p posts every day. 100 plan improves 789 -> 727 gaps (DAY 171 -> 109, EVENING 30, NIGHT 588), quarter 550.6 avg. PlanGeneratorCrewTest: 196 N12 on 98 nights, 196 D12, no N8/L16/A12/P12, no mixed crews; scorecard n12Officers/n12NightShifts + crew note.  
13m Docs 7fb06e2 ADR-027 and updated ADR-026; docs/05 U-10 19-07; docs/06 templates/rotation/absolute coverage; docs/07 409/compare/nightPolicy; docs/10 D12/N12 matrix + night/coverage/compare/reset/time-entry cases; 16 h = 12 h + ~4 h extension in ADR-026/docs/10/HANDOFF/demo script.  
13n JWT test flake (test fix) dev-qa saw rejectsATamperedSignature fail once at b896e2a. The test replaced the last two base64 signature chars; the final HMAC char has only 4 significant bits, so some replacements decode to the same bytes (~1/1,000). Not a signature bypass. The test now flips the first signature char (fully significant); JwtServiceTest 12/12. No product change.  
13o Flake fix + final counts 31fbd3a Testcontainers shared Postgres raised to max_connections=400 (26+ contexts x Hikari 4 crossed the default 100; review-r2 hit it at sc_test_26) and local test URLs use sslmode=disable (the SSL handshake flake). No retries. Full clean worktree at 31fbd3a: 393 = 112 rules + 27 infrastructure + 254 api, 0 failures/errors/skipped, default and random seed 20261121, twice each.  
13p Committed plan readable 204cc08 /planner/plan state COMMITTED + committedDraft (full DraftSummary incl. scorecard), lastCommitted kept; gaps/warnings/schedule/coverage/compare answer for a committed id (PLANNER only); compare adds draftStatus/basis and compares a committed plan to the current board incl. supervisor edits. Test cancels a shift: board -1, draft unchanged. PlannerApiTest 13/13.  
13q V6 governance/U-10 b9725f9 V6 baseline-seeding exception documented (PUBLISHED without maker/checker or audit row, like v1; later versions use maker/checker) in ADR-027/docs/04/BUILD_RECORD; U-10 message counts A12 00-12 and N12 19-07. Drift 1/1, RuleSentence 2/2.  
13r Dataset selector + 120 provider 35c9fdc Provider registry: 100 wraps DemoDataGenerator unchanged (3390148255…6539), 120 is option B (100 FT crews 38 N12/54 D12/3 E8/5 relief + 20 casuals, 8 N12-capable/12 8h), unknown 400, /version datasets, status/audit dataset. 120 provider sets ADM/ESC 12h at seed, patterns/history/quals/prefs; reset twice ~1.4-2.7 s checksum 82b19cf814acde5c5740f9a9aa1162e61d4b7f5598848f99861d2f4ea66732ca; reset 100 restores 3390/flags. 120 plan 38 gaps of 1,764 (2.2%), 7 warnings, 0.9 s, zero Block; qualifications 0 failing block-days on 120 vs 346 on 100; absences are now a read-only input via POST /planner/absences (item 23); see 13t. PlannerApiTest adds 428 no If-Match / 412 stale; RotatingBreakProbeTest 11/11 added.  
13s Final counts 35c9fdc 407 = 123 rules + 27 infrastructure + 257 api, default and random seed 20261121, 0 failures/errors/skips from a clean worktree.  
13t 120 commit + pay-period overlap abbaaf7 120 seed periods aligned to 100 (last 21 Dec-3 Jan); ensurePlanPeriods skips identical, refuses other overlap with 409 PAY_PERIOD_OVERLAP; 23P01 on pay_period_no_overlap maps to its own problem. Real 120: reset -> generate (38 gaps/7 warnings/zero Block) -> commit 200 5,103 shifts -> supervisor board 77 rows for 4-10 Jan; LOCKED period 409 LOCKED_PERIOD; reset 100 -> commit 200 6,586. Tests: Demo120ResetApiTest 2/2, PlannerApiTest 13/13 (428/412/overlap), ApiProblemAdviceTest 8/8.  
13u Planned absences (read-only input) abbaaf7 POST /planner/absences (PLANNER only; employee/date/type in quarter) inserts an absence; next generate skips that officer, relief/gap covers, scorecard absences line/counts; same inputs reproduce, no absences = baseline; 120 checksum unchanged by the feature (no leave seeded). Authz 401/403/400. PlannerAbsenceApiTest 2/2.  
13v Final counts abbaaf7 410 = 123 rules + 27 infrastructure + 260 api, default and random seed 20261121, 0 failures/errors/skips from a clean worktree.  
13x Candidate-2 names, F5/F6/F9 6a6a667 120 uses DemoNames (unique, deterministic, no FirstN/LastN); checksum includes identities, 82b19cf814acde5c5740f9a9aa1162e61d4b7f5598848f99861d2f4ea66732ca; 100 checksum unchanged. U-14 warning group “Week over 48 hours”; Compare preferencesMet == scorecard.preferences.met; /planner/preferences after commit evaluates the committed plan (no NO_DRAFT). GAPS120 exactly {ESC, EVENING, 38} (ESC has D12/N12 only, no E8; known/deliberate). Planner 13/13, 120 2/2, absence 3/3. Count 411 = 123+27+261.  
13y F10 preference kinds 3124c2e ShiftKinds derives 8/12/16 and DAY/EVENING/NIGHT from the template row; generator scorecard, compare and /planner/preferences use it (no copies). D12=12h DAY, N12=12h NIGHT. Red-first test PlannerPreferenceKindsTest: scorecard.met == compare.preferencesMet, N12 12/NIGHT MET, D12 asked 8h NOT_MET; nights bands/n12 count valid. Plan unchanged: 120 38 ESC/EVENING gaps, 7 warnings, zero Block, commit 5,103; 100 unchanged. 412 = 123 + 27 + 262.  
merge web-stable 5e7765f ux-audit + publish-action + period-shape + web-stable merged --no-ff; planning board move/cancel and publish-period actions, audit viewer screen, error boundaries, real-api contract samples, web test waits; ai-dev-log numbering settled at 68/69/70; 301 tests at the merge tip  
13z candidate 1 + demo walk 99703a9 p3-int frozen after review-r2 (419 = 123+27+269) and dev-design’s walk: 38 gaps / 7 warnings, reset 120, generate, commit 5,103, supervisor fill, U-09 refusal, audit. Candidate-2 defects: D-1 names First92 Last92, D-2 commit time in UTC, D-3 raw FTE keys, D-4 note said 150, D-5 audit warning list  
14a candidate 2 c2c8dba p3-int + web + ds2 + the seam test; author 421, web 277, Playwright desktop 100/0 and tablet 99+1/0. dev-design’s re-walk found F6/F10: D12/N12 preferences read as 8 h DAY (scorecard 68 vs Compare 195); review-r2 confirmed F10; fix on ds3  
14b candidate 3 / final 5d0f810 ds3 + web; F10 fixed by ShiftKinds; independent 422 = 123+27+272 both orders, web 277, Playwright desktop 101/0 and tablet 100+1/0, fixtures 22/21; reset 100/120 checksums reproduced; local main fast-forwarded and tagged sc-verified-5d0f810  

Latest independent run (dev-qa, the final tip 5d0f810): API 422 = 123 rules + 27 infrastructure + 272 api, 0 failures/errors/skipped, default order and random seed 20261121; web 277 vitest; Playwright against the real api, a fresh stack per viewport, desktop 101 passed / 0 failed and tablet 100 passed + 1 skipped / 0 failed; fixtures 22 / 21. Dataset checksums: 100 roster and the 84 periods 3390148255db715844c4df90f553ae342530417621539b23499f638c5b126539, payroll golden d502848dad316ae00d7f7f90ccd01be8f82aa9332391f13cfb41b1b2d5e9d06a, 120 82b19cf814acde5c5740f9a9aa1162e61d4b7f5598848f99861d2f4ea66732ca. The full command is in README §4; counts count only from a clean worktree. Security-fix branch p3-sec at 74a58c0 (author run, dev-qa pending): 425 = 123 + 27 + 275 in default order and random seed 20261121; web 277. The last independently verified tip is 5d0f810 at 422.

Phase 3 preference/pattern branch p3-pref (author run, dev-qa gate pending): 444 = 123 + 27 + 294 in the default order (dev-qa runs both), web 290; the 120 plan stays 38 gaps / 7 warnings / 5,103 shifts / 107 officers and the 100 plan is unchanged, with both drafts sha256-identical to c9ac073 and every checksum and the payroll golden unchanged.

Release 3 unit closures/staffing branch p4-unit (author run, dev-qa gate pending): 450 = 123 + 27 + 300 in the clean default run before dataset 150 (the two 150 tests are green; the full 452 run is dev-qa’s gate; my repeat was killed by the harness timeout under host load, not a test failure), web 313; V11 adds dated closures and the shared unit_active_on, closed-unit officers work relief, the Staffing tile uses the 12 h/8 h formula and 20% leave, and with no closure rows the 120/100 fingerprints and all checksums are unchanged. Dataset 150 (120 FT + 30 PT, 20% leave) is pinned separately at 100 gaps / 1,764 and checksum 2e6cd938…d7f8.

Phase 3 complete

The quarter planner (ADR-026), the D12/N12 crews and rule set v2 (ADR-027), the 120 dataset and the reset selector, the read-only planned-absence input, actual times in the rule checks and the trial fixes are all on 5d0f810. The phase 3 review/QA record is R48–R61 in docs/process/review-rounds.md; the acceptance table is in the mission folder.

Before submission

Gotchas for the next seat