Every independent check on the build, newest last. Each entry gives who checked, at which commit, what was checked, what was found, and what happened to it. Times are UTC on 2026-11-20 and 2026-11-21. Full narratives are in docs/process/ai-dev-log.md.
Model independence, honestly. The verifiers (GLM 5.3 and GLM 5.3 Flash) are a different model family from the builders (DeepSeek V4.1 Flash, and MiniMax for dev-build2 until 05:06Z), so verification doesn’t depend on the authors. Exception: about 10:07Z to 11:30Z. The OpenCode Go credit ran out, and all five OpenCode seats were relaunched fresh on MiniMax (builders M3.1 Flash, verifiers M3). Authors and verifiers were then the same family. The checks done in that window have weaker independence: R32, R33 and R34. From about 11:40Z every seat is back on the original DeepSeek/GLM mapping. From about 12:55Z dev-qa and review-r2 run on GLM 5.3 Flash, a lower tier than the earlier GLM 5.3 rounds, though still independent of the DeepSeek authors. The person asked for this change to save credit. The final security review is review-r3, on Claude Sonnet 5.5.
Phase 3 (from 2026-11-21 00:20Z). The authors are dev-build and dev-build2 on DeepSeek V4.1 Flash; dev-qa and review-r2 verify on GLM 5.3 Flash, so verification is independent of the authors. dev-design (Claude Opus 5.5) wrote the UI spec and the demo script and ran the visual and demo-walk passes; those are not independent of the UI design, but they are independent of the API authors. The lead is Claude Sonnet 5.5.
Numbering: the mission notes number rounds differently from R31 on. Notes R31 is the “Visual 2” row here, notes R32 is R31 here, and from there each notes number is one higher than the number used here.
| Round | What and where | Who | Verdict | Findings and outcome |
|---|---|---|---|---|
| R1 | Step 1 spike, a70556e |
dev-qa | PASS | 6/6 in Docker, on a clean worktree. Minor: an evidence string read “8 h” for 4 h of rest; fixed in step 4. |
| R2 | Steps 2–3, 502c434 |
review-r1 | APPROVE | Ran the full api suite, SchemaConstraintsTest 15/15, web 9/9, compose refusal without secrets, and the live stack. Docs had drifted (grants, npm ci, make env, nginx root); fixed in 06afcaa, ADR-018. |
| R3 | Steps 2–3, 502c434 |
dev-qa | PASS | 28/28. Cross-checked each constraint against its test. S-04 was decided as workflow-enforced (ADR-019). One finding (CHECK rejects NULL) was disproved: see ai-dev-log #23. |
| R4 | Step 4 rules, dbd0365 |
dev-qa | PASS* | 68/68. Every rule checked at under, exactly and over its limit. A mutation check (3 rule values flipped) produced exactly 8 failures. *Ran on the working tree, so it missed R5’s blocker. |
| R5 | Step 4, dbd0365 |
review-r2 | CHANGES NEEDED | F1 blocker: .gitignore build/ swallowed the fact-builder package, so a clean clone couldn’t compile. F2–F8 logic defects. All fixed (b4a2562 … 6755e4f). |
| R6 | Step 4, c034923 |
dev-qa | PASS | Clean worktree: 69/69, nothing ignored, mutation check repeated. |
| R7 | Step 4 + generator, 545afcc |
review-r2 | APPROVE F1–F8 | 83/83, with revert-the-fix checks. Generator findings R1–R5 (e.g. 16 h shifts extended past the 16 h ceiling in the actuals) fixed in 1c73768, baf42d0. |
| R8 | Web UI round 1, 15e2421 |
dev-design | 7 blocking | Code read: the acknowledge button saved immediately, chips weren’t clickable, Approve wasn’t gated, overtime-pay wording contradicted ADR-016, and more. Fixed in 7b228b9. |
| R9 | Step 6 auth, e19cec5 |
review-r2 | CHANGES NEEDED | Validly signed tokens with hostile claims returned 500, not 401. Fixed in ba8f763. |
| R10 | Step 5 generator, c3f5d41 |
dev-qa | PASS | 84/84. Checksum reproduced. Own SQL checks: 0 overlaps, overtime 6.54%, coverage 98.04%. PC-06 had only one four-night run; fixed in 3cec3bd. |
| R11 | Web UI round 2, 4413ea0 |
dev-design | 5 blocking | Each fix reverted to prove its test fails. Approver landed on “Page not found”, E3 impossible in fixtures, Build ignored unsaved edits. Fixed in 448fb62, c2da72b. |
| R12 | Step 6, 0dc96e1 |
dev-qa | PASS + leak | 125/125. Whole permission matrix probed. Scope leak: POST /rule-checks skipped the unit-scope check. |
| R13 | Step 6, 0dc96e1 |
review-r2 | CHANGES NEEDED | S2 HIGH: two concurrent saves for one officer both passed the Block rules (a check-then-write race). Also S1 (the R12 leak), S3 (500s), S4 (28-day window). Fixed in f73d6c5; re-verified in R15 and R16. |
| R14 | Web UI round 3, f14b261/c919c8f |
dev-design | 1 blocking | Every guard mutated; all real. E2 broken in fixtures; fixed in 46ba5f6. |
| E2E | Playwright, e2e-playwright vs web 46ba5f6 |
dev-design | 25/3/4 | Real browser in Docker, axe checks: one real accessibility defect (a scroll region keyboard users can’t reach). E5 is fixme (not built). |
| R15 | Step 6 fixes, f73d6c5 |
dev-qa | PASS | 142/142. Reverting the preview-scope fix makes its new test fail. Removing guards gives 6 failures, each in the test named after that guard. |
| R16 | Step 6 fixes, f73d6c5 |
review-r2 | APPROVE | S1–S4 fixed and each fix load-bearing (revert-the-fix checks). Four concurrent saves keep the rest invariant; unrelated officers aren’t serialized against each other; the audit trigger refuses a DELETE. Reviewer’s self-correction: its R13 live probe for S4 had an off-by-one in its own setup. Ten 16 h shifts 3 days apart span 30 days, so only nine fell in the 28-day window, and the probe would also have “passed” against correct code. The finding itself, from reading the code, was real. With the setup corrected, the fixed code gives a genuine fail-before, pass-after pair. Step 6 verified. |
| E2E-2 | Playwright vs web a908c1f |
dev-design | 26/2/4 | The accessibility defect is fixed in a real browser. Newly exposed: the fixture payroll CSV header doesn’t match docs/07 §4.5 (fixtures only; the real export is step 9). |
| E2E-3 | Playwright vs web d99de9e |
dev-design | 28/0/4 | Fixture CSV now follows the contract. The E4 check was strengthened to cover rows: 8 columns, hours to 2 decimals, the exported period’s dates, and at least one row. All pass on desktop and tablet; only E5 (not built) is skipped. |
| R17 | Step 9 time, lock, payroll export, af424d0 |
dev-qa | PASS | 140/140. The T8 golden CSV was recomputed independently from the docs, without the code under test: byte-for-byte identical (1,009 rows). Mutations on the 80 h threshold, the 30-minute rule and the lock precondition each fail their tests. Two judgement calls went to the lead (idempotent double lock; facility-wide pay periods): ADR-022. |
| R18 | Step 9, af424d0 |
review-r2 | CHANGES NEEDED | Real-HTTP probes. A shift could be saved into a locked pay period; the payroll CSV had no formula neutralisation (=2+5*10 exported raw); a ten-year actual gave a 500. Fixed on the branch and on main. |
| R19 | Step 8 overtime, b2312ae |
review-r1 | CHANGES NEEDED (small) | 162/162; ranking O-01 to O-03 sound. Found: the qualification gate was display-only (an unqualified officer could be offered and confirmed), offers on cancelled shifts, double answers under concurrency. The reviewer stated what a flash-tier model couldn’t verify, so the fixes went to dev-qa (R21). |
| R20 | Step 9 fixes, ef4a208 |
review-r2 | APPROVE | 144/144. Hostile CSV cells quoted and neutralised; the CSV parsed with a real reader; time windows enforced; two concurrent locks write one audit row. Residual: a leading TAB or CR, fixed in step 10. |
| R21 | Merged main (steps 6, 8, 9), 7489cf7, 2b5f3fe |
dev-qa | PASS | 180/180, then 200/200. Revert-the-fix on the locked-period gate, the overtime qualification gate and the double-accept guard: 5 failures across 3 knobs, none elsewhere. Flagged two step-11 groundwork issues before step 11 was built. |
| R22 | Step 10 reports, 370c03c |
review-r1 | APPROVE (minor) | 206/206. Every report reconciled against the test’s own SQL and against the real payroll CSV. Six minor items (untested range checks, a duplicated CSV helper). |
| R23 | Step 11 rules admin and publish pipeline, 7f8d6b8 |
dev-qa | PASS with gaps | 206/206. T7, T10 and E3 end to end over HTTP. Maker/checker real in the api and the database. Mutation: removing the build-fingerprint check failed zero tests (guard real but unpinned). Seven gaps routed. |
| R24 | Step 11, 7f8d6b8 |
review-r2 | CHANGES NEEDED: 1 CRITICAL | S1 DRL injection = remote code execution by a rules admin, no approval needed. Row values reached the generated rule source unescaped. The reviewer edited U-01’s shift-kind pattern in a draft, pressed Build, and the build executed the injected Java (System.setProperty); compile errors also leaked rule internals. Also S2 lost message edits, S3 an override policy could be weakened to none on U-01, S4 absurd limits passed, S5 odd inputs gave 500s. dev-qa’s PASS (R23) hadn’t covered this. Step 11 marked not verified. |
| R25 | Web against the real api, integration 2ba502d |
dev-qa | PASS + 2 findings | Own private stack. Playwright 5 passed / 2 skipped per viewport, exactly as the builder claimed. PC-01 blocks with no override (U-14), which corrected docs/05 (ADR-023). Found: the payroll lock ran on the real clock, not the demo’s, so locking was refused on a fresh stack; an unknown open shift gave 400, not 404. Correction (retracted by dev-qa in R30): R25 also reported that the auditor’s overrides view returned the employee, unit and rule codes as null. That was dev-qa’s own tool artifact (its query asked for field names the row doesn’t have). The raw JSON shows the full row: officer, Unit C, reason, U-05, actor, 4 Nov. The genuine gaps at the time were a null actor and a created_at equal to stack start, fixed in afbbe7e. |
| R26 | Wall display, web-display a4b307e |
dev-qa | PASS | No names in the payload or the page, even with a hostile planted name; the api container really stopped → banner, recovery clean; the display role reaches nothing else; a geometry probe found zero overlaps at both TV sizes. Limit stated: dev-qa can’t view images. |
| Visual | Wall display screenshots, a4b307e |
dev-design (the screen’s author) | 1 real defect | The only seat that can view images looked at normal, short and stale at 1920×1080 and 1366×768. In the stale state every card spilled into the footer, the old numbers stayed bright white and the banner said “Failed to fetch”. R26’s probe and the author’s own fit test had both checked only the live state. Fixed in 067e556; the stale e2e now checks the layout and failed before the fix. Not independent: the author reviewed their own screen. |
| R27 | Wall display stale fix, 067e556 |
dev-qa | PASS | With the api container really stopped: zero overlaps or spill at both sizes, dimmed numbers about 4.3:1 against 13:1 live, no jargon, recovery clean. dev-qa named its own miss (it checked the stale contract, not the stale layout) and added stale geometry to its checklist. |
| R28 | Step 11 fixes S1–S5, 35c225d |
review-r2 | APPROVE | 235/235. S1 closed: the shift-kind column is now a whitelist grammar (shift codes or .*), validated before any compile; compile errors are generic. Both live payloads refused at validation with no property set. A 19-value character battery (fullwidth quote, right-to-left override, zero-width space, newline, catastrophic regexes): 17 refused at validation, the 2 unbalanced parentheses fail safely at compile. Each layer stops the payload on its own (revert checks). S2–S5 verified. Step 11 verified. |
| R29 | Assignment move and cancel, boot validation, 62dd4fc |
review-r2 | APPROVE (2 low) | 270 tests. About 30 real-HTTP probes: a move can’t bypass a Block (rest, an adjacent 16 h shift, an eighth consecutive day all 422); the own-slot exclusion can’t hide a violation; locked and started shifts 409; concurrent move/cancel pairs give one success and one 412, never an overlap; every If-Match header shape handled; scope and roles; reasons of 9 characters or ten spaces refused. A corrupted published rule set stops the api at boot with a plain message. Low: no length cap on the cancel reason; a cancel isn’t refused for an absence row created outside the api. |
| R30 | Full state of main 17308b7, from a true clean clone |
dev-qa | PASS + 1 finding | Followed the README as a stranger: secrets refusal, healthy stack, all 7 demo users sign in, out-of-scope 404, 8 h tokens; no forbidden files or secrets in the tree or history. Suites from the clone: api 246/246, web 118/118, Playwright real api desktop 13 passed, tablet 12 passed + 1 skipped, fixtures 35/3/0. Walked the demo script step by step: every segment worked. Safeguard sweep live (anonymous 401 everywhere, PC-01 saves nothing on all three paths, author can’t approve, locked-period trigger). Finding: the api-test service fails when built fresh, because test class order changes between builds and two tests share the demo employee (a test-isolation bug, routed). Also listed stale README and demo-script lines (fixed), and retracted its own R25 claim on the raw data. |
| R31 | Delta pass, code tip 22375d4, docs tip 16b287f |
dev-qa (GLM 5.3, reported 09:27–09:30Z) | PASS + 1 finding | (1) The order fix holds. The README’s api-test service failed 2/2 at 17308b7. Built fresh from a clean clone it now passes (one database per class, sc_test_N, shows in the log). The full suite also passes in reverse-alphabetical order and in random order with seed 20261122. Total: 91 + 20 + 165 = 276, exactly as the author claimed. (2) Spring’s generated password is gone: Basic auth on /api/v1/me gets 401. (3) The schedule-publish cells all pass. Finding: nothing in production creates schedule_period rows, so on a fresh stack the feature can’t be reached. Fixed by seeding the roster weeks (4a24ca9; re-verified in R33). (4) The U-15 boundaries (71.99 / 72.00 / 79.99 / 80.00 / 80.01 h) pass in all three orders. (6) The performance test: run twice — full suite schedule median=57 p95=61 ms; rule-check median=3 p95=4 ms; coverage median=8 p95=12 ms; build=259 ms; publish=168 ms, class alone 64/70, 5/6, 8/9 ms; build=1162 ms; publish=1567 ms; both inside the NFR limits (1000/200/2000). It asserts the median and the p95, each against the limit (PerformanceSmokeTest.assertLimit, two assertions over 20 samples after 5 warm-ups). What it leaves behind is contained: it publishes a rule version and generates the whole demo dataset, but PostgresTestSupport gives every API test class its own database — proved from the run log, 17 distinct sc_test_N databases for 17 classes (PerformanceSmokeTest → sc_test_13), so its published v2 and audit rows are invisible to the others. (7) The docs counts: 276 lives in the docs tip 16b287f, not in the code tip alone (22375d4 by itself still says 269). At 16b287f: README:121–123, PROGRESS:35 and :41, docs/traceability.md:6 all say 91 rules + 20 infrastructure + 165 api = 276. dev-qa counted it independently: @Test on its own line over api/*/src/test = 91 + 20 + 165 = 276 exactly (a naive grep @Test gives 284; 8 hits are @TestInstance/@Testcontainers/@TestMethodOrder). The suite ran green from a clean worktree: 276 tests, 0 failures, 0 skipped, matching the claim exactly. |
| Visual 2 | Web UX branch ux-audit, three rounds up to 2d25918 |
dev-design (wrote the UI spec) | 10 findings, then ACCEPT | Screenshots and keyboard walks at 1920, 1366, 1280 and 768 px. Findings at dbb1750: Record actual had a default value; the Rule check covered Nia’s Fri/Sat cells; no sticky officer column at 768; nav entries didn’t match the roles; and more. All ten were fixed by af747cf. Round 3 at 2d25918: focus returns to the chip that opened the dock; “Find eligible officer” is in view without scrolling (y 537–581 of 768 at 1366). Not independent: dev-design specified this UI. dev-qa verified it in R32. |
| R32 | Web UX branch ux-audit 2d25918 (superseded by dev-build2’s branch) |
dev-qa (MiniMax M3, weaker independence) | PASS on the web work, 2 api findings, 1 branch-hygiene finding | Web: pnpm install --frozen-lockfile clean, 141/141 vitest, lint 0 errors / 2 warnings (pre-existing set-state-in-effect), build clean. Real stack on a private project (sc-qac, port 29080): up -d --build --wait 22 s warm, and the stack is usable the instant --wait returns — /open-shifts answered 67 for the reference supervisor m.ellis (93 for j.chen, whose scope is narrower: the count is scope-dependent, not a fixed 67). Playwright real api desktop 18/18 and tablet 17 passed / 1 skipped (the TV-size check is desktop-only), each on its own fresh stack; fixtures suite 41 passed / 3 skipped / 0 failed. By hand against the real api: the audit viewer (a supervisor’s override is found by the auditor with its actor and rule codes; an employee gets 403 on /api/v1/audit-events and no Audit log nav entry; the auditor has no write verb — POST/PUT/PATCH/DELETE all 405). Move/cancel: 428 without If-Match, 412 stale, 400 weak, 400 a 5-character reason, 200 with a good reason, 403 for an employee. “Record actual” cannot be saved without a choice (Save disabled, “Choose what happened” hint, “Will record:” only after a choice) — verified in a real browser on the fixtures web, because the real dataset records every past shift so no cell needs an actual. The rule-check dock at 1366×768 keeps its primary action in view (“Find eligible officer” and “Close” both fully inside the viewport, y 537–581 of 768; “Assign shift” correctly absent behind a Block). Finding 1 (on main too): an overlapping POST /assignments that is emergency-overridden hits the database exclusion constraint and returns a raw HTTP 500 instead of 409 — PayrollProblemAdvice.onConflict rethrows for every SQLSTATE but 22003, which aborts handler resolution so ApiProblemAdvice’s 409 never runs. Fixing the rethrow turns the 500 into a clean 409 (proved on a patched scratch stack). Finding 2: the auditor’s sign-in showed a blank page — the api sends actualPercent: null for a planned week and the coverage chart filtered only undefined, so null.toFixed() threw and unmounted the app; the fixtures omit the field, so only the api’s shape triggers it. Finding 3 (branch hygiene): the branch is based on 920e026 and never received main’s 22375d4 per-class-database fix, so AuthorizationMatrixTest.overtimeAndOwnScheduleCells fails there (reproduced on untouched 2d25918 in reverse-alphabetical order; passes with 22375d4’s two test files applied). Not a UX regression — a missing main merge. |
| R33 | Schedule publish end to end, main 489b3e1, from a true clean clone |
dev-qa (MiniMax M3, weaker independence) | PASS + 2 web gaps | Api suite 91 + 22 + 171 = 284, 0 failures, in default order and random order (seed 20261121). One random-order run was killed by the host’s out-of-memory killer (exit 137) and passed on rerun; that is not a test failure. Live stack: 84 roster weeks (6 units × 14). The 7 past weeks are PUBLISHED and the current week is DRAFT. Revert-the-fix: seeding no weeks makes the self-check refuse the dataset. The new checksum 3390148… reproduced on two fresh stacks. The T8 payroll file is byte-identical. Live contract: publish 200, a second publish 409, employee and auditor 403, out of scope 404. One audit row per publish. “Changes since publishing” really counts (0 → 1 → 2). Gaps: the web’s period type drops status, and the fixtures still had the old 14-day period shape. Routed to dev-build2 (period-shape). |
| R34 | Final web verification of publish-action 8ccd8c6, items 1–4 (items 5–8 and the web-stable re-check are R37) |
dev-qa (MiniMax M3, weaker independence) | 1 finding so far | The web suite is flaky: vitest (188 tests) ran 6 times and failed 2, every failure a timeout. One test took 18.2 s, and failures happened only while other suites loaded the shared host; alone it passed 4 of 4. Routed to dev-build2. Its stated root causes: every fixture call slept a real 120 ms, and one test polled the clock for up to 10 s. The fix at web-stable 4b2da19 was re-verified independently in R37. All seven demo users signed in and opened every nav entry with no blank page and zero page or console errors; this is the check the auditor’s blank page had slipped past. Playwright on the real api, one fresh stack per viewport: desktop 20 passed, tablet 19 passed + 1 skipped. Fixtures, documented recipe: 43 passed / 3 skipped. Api on that branch: 289, 0 failures. |
| R35 | Delta pass 3: error handling on main a10688e, from a true clean clone |
dev-qa (GLM 5.3) | PASS + 1 finding | Api 295 in three class orders. Live authorization cells, hostile tokens and every refusal answer problem+json with no internals. The overridden overlapping save is now a clean 409 with nothing saved. Removing three guards fails exactly 4 tests, each named after its guard. Finding: a forced unexpected error answered cleanly but logged nothing, although docs/07 said the stack went to the log. Fixed with a traceId in both the body and the log line (R36). |
| R36 | Delta pass 4: logging fix, dcee43b |
dev-qa (GLM 5.3) | PASS | Api 296 in two orders. Live: a forced 500 shows only the traceId in the body, and the full stack is in the log under the same id. A corrupt published row stops the api at boot with a plain message. Reverting the logging fails exactly 4 named tests. |
| R37 | Final web verification, web-stable 4b2da19 (completes R34) |
dev-qa (GLM 5.3) | PASS | The flaky-suite fix is confirmed independently: vitest 195/195 three times while the api suite ran, with no timeouts. The error boundary was proved live by reintroducing the null crash. Contract samples, the audit-code check (both drift directions) and the Publish action all pass live. The wall display’s stale state was re-verified live with the api container stopped. Merge go given. |
| R38 | Final full-state verification of the merged main 3a4bbbd, from a true clone |
dev-qa (GLM 5.3 Flash) | PASS (the suites at the final code tip are R41) | README walk; no forbidden files or secrets; the demo script walked at the api level with exact figures (see docs/demo-script.md); safeguards sweep live. Scope note: for scheduled shifts the locked-period wall is the api’s 409 only: a raw SQL UPDATE cancelled a shift in a locked period (time entries also have a trigger). Recorded as a known limit (docs/06). |
| R39 | Final security pass, 3a4bbbd, replayed at 211e8f9 |
review-r2 (GLM 5.3 Flash) | 2 moderate findings, fixed and replayed | DRL injection isn’t exploitable, proved through the api and by feeding payloads straight into the compiler with a control rule. But edits to the shift-kind column were silently dropped, and wrong-typed values crashed the build with a 500. Both fixed in 211e8f9: refused with 400 naming the column. CSV formula neutralisation proved with planted hostile values. JWT forgeries all 401. Missed: the unscoped roster list and the cross-unit assignment that R40 found. |
| R40 | Final security review, 211e8f9 |
review-r3 (Claude Sonnet 5.5) | 1 high, 2 medium, lows; fixed in c0dcaf3 (re-run: R42) |
Seven scopes with live probes: rule rows (about 160 hostile saves), authorization (7 users × about 60 endpoints × 5 units), CSVs, 66 malformed requests, about 60 forged tokens, 8 boot variants, threaded races. Found what the earlier passes missed: F8 HIGH, an open-shift double fill (3 officers filled one need, 6 of 6 rounds); F5, an unscoped roster list (any supervisor saw all 100 officers); F7, an unlock audit overcount (5 rows for 1 unlock). F1–F3 were rule-value gaps (an overtime rate of 1e308 could pass the build). F6, cross-unit cover, was kept as a decision (ADR-024, confirmed by the person). |
| R41 | Final QA of the final code tip c0dcaf3, from a true clone |
dev-qa (GLM 5.3 Flash) | PASS | Api 348 = 97 + 27 + 224 green in the default order and random seed 20261121: 0 failures, errors or skips. Web: vitest 195, lint and build clean. Playwright real api, a fresh stack per viewport: desktop 19 passed, tablet 18 passed + 1 skipped (the TV-fit check is desktop-only). Fixtures: 43 passed / 3 skipped. Live re-probes of every touched item pass. F8 revert-the-fix proven: the full revert fails with 3 officers filling one shift; the conditional UPDATE alone is defence in depth (a partial mutation still passed). The payroll golden file and the dataset checksum are byte-identical. |
| R42 | Re-run of R40 at c0dcaf3, and the overall verdict |
review-r3 (Claude Sonnet 5.5) | SHIP WITH LISTED KNOWN LIMITS | Every fixed finding re-verified live on a stack built from the tip. Double fill now gives 1 × 200 + 2 × 409 with one assignment, 6 of 6 rounds, on both fill paths. 5 concurrent unlocks give one unlock audit row. The roster list is scoped (36 for M. Ellis, 47 for J. Chen, 100 for the auditor). 280 of 297 hostile numeric values are refused at save and 2 at build; the other 15 are low in-range values (e.g. a 0.5 h threshold). No injection path, IDOR, auth bypass, internals in an error body, or secret in a log. Known limits: ranges are sanity bounds; tokens last 8 h with no revocation; framework and nginx error pages aren’t problem+json; cross-unit cover (ADR-024). Could not verify: CSVs opened in a spreadsheet app; the LF prefix at the tip; token theft and revocation; the nginx tier beyond status pages; a multi-instance deployment. |
| R43 | UI test, phase A: the existing e2e suite as a baseline, ac7e1cd |
dev-qa (GLM 5.3 Flash) | PASS, 1 gap | Real api, Chromium only, a fresh stack per viewport: desktop 19 passed, tablet 18 passed + 1 skipped, 0 failed. Gap: every keyboard-only test ran on the fixtures web only; none ran against the real api. |
| R44 | UI test, phases B and C: new specs, screenshots and an independent run | dev-design wrote the specs (ui-tests, tests only); dev-qa (GLM 5.3 Flash) ran them independently |
9 product defects pinned, plus D11 from dev-qa | New specs: sessions and navigation per role, routes and error states, all four reports with CSV, override and acknowledgement, decline and filled shifts, rules refusals, audit viewer, short-staffed display, real-api keyboard runs (E1, audit filters), axe on every screen per role, and 80 full-page screenshots (e2e/COVERAGE.md). Each defect is a test of the correct behaviour marked test.fail: D1 top-bar date one day early, D2 empty overrides with no sentence, D3 report tab in the address ignored, D4 reports load error silent, D5 Confirm on a filled shift, D6 rule sentence “After .*, … is block”, D8 supervisor nav on the sign-in screen, D9 board not reloaded after a save, D10 axe serious at 768 px (sideways tables with no keyboard access). dev-qa then found D11 (a reload lost the session with errors; ADR-025). There is no D7. dev-qa’s independent run at 40dbfdf, desktop: 83 passed, matching the author. dev-qa’s screenshots at 24c34ce proved the author’s two capture-wait fixes. dev-qa also showed that a blank Coverage capture was a capture race, not a defect. |
| R45 | UI test, phase D: visual review of the 80 screenshots against docs/ui |
dev-design (not independent: wrote the UI notes and the specs), spot-checked on dev-qa’s capture | 0 blocker, 4 major, 11 minor, 5 cosmetic | All 80 PNGs opened. Major: V1 today’s coverage read short everywhere, V2 coverage chart axis wrong, V3 Time & attendance opened on the last pay period, V7 the overtime board opened on the oldest filled shift (7,846 px). Minor and cosmetic: V4–V6, V8–V20 (raw JSON in audit summaries, raw timestamps and ids, no scroll cue at 768, the stretched nav on short tablet pages, and more). Matches: palette, Source Sans, the footer line on every route, no government mark in any image, A12/P12/L16 and · extra chips, every state screen. 10 of dev-qa’s independent PNGs reproduced every defect checked. Record: missions/…/UI-VISUAL-REVIEW.md (mission folder). |
| R46 | UI test, fix verification: merged main 72ebd24 (api f4496c6) |
dev-qa (GLM 5.3 Flash, true clone); review-r2 (GLM 5.3 Flash) read the web diff; dev-design before/after on dev-qa’s capture | PASS (the api’s evidence change: R47) | Api 356 = 101 + 27 + 228, default order green; dataset checksum and payroll golden unchanged; draft build scenarios 6/6. Web: vitest 239/239 in 29 files, lint 0 errors, build clean. Playwright real api: desktop 86 passed / 0 failed, tablet 85 passed + 1 skipped (TV fit) / 0 failed; no known-defect marker left. Fixtures: desktop 22 passed / 56 skipped, tablet 21 / 57 (real-api-only specs skip by design). 80 screenshots. Mutation: reverting the D5 fix turns its spec red (“Confirm expected 0, received 1”). review-r2 on the web diff: safe with notes (the return-path validator was fixed at 72ebd24 and confirmed; role-gating UX is a documented limit). Fixed: D1–D6, D8–D11; V1, V2, V3, V5, V6, V7, V9, V10, V11, V12, V17, V18, V19, and the internal ids in rule evidence. The before/after, checked in dev-qa’s PNGs, shows D1, D2, D6, D8, V1, V2, V3, V5, V7, V9, V10, V17 and V18 fixed. Not fixed (cosmetic): V4, V13, V14, V15, V16, V20, and a new R1 (the desktop side-nav column stops short on short pages). |
| R47 | Rules-engine review of the api changes in the UI-fix round, 5d1d532..f4496c6 (rule sentences, internal ids out of rule evidence) |
review-r2 (GLM 5.3 Flash, independent of the DeepSeek author) | SAFE | Read: no change to any WHEN clause, threshold, severity, override policy or rest/hours/run arithmetic. The 8 .drt changes are one line each (the last RuleResult argument becomes the evidence id list; max hours in a window has two sites, both updated). Run: live JSON pairs from two stacks (ac7e1cd vs f4496c6, same seed, 4 probes including a Block and the emergency-override variant). Every difference is inside ruleResults[*].evidence[*].label: 6–7 UUIDs each before, none after; evidenceAssignmentIds is not serialized. Own full suite at f4496c6, default order: 356 = 101 + 27 + 228 green. Mutation: U-01 minimum rest 8 → 7 fails exactly one test (RestRulesTest.u01BlocksWithSevenHoursFiftyNineMinutesRest), with no collateral failures. Scenario library T1–T6, ranker 10/10, validator 27/27, FactEvidenceTest 4/4 green. Could not verify: class orders other than the default; PC-02’s own planted case was not exercised separately. |
| R48 | Phase 3 slice 1: actual correction, the audit actor list and coverage extra hours, p3-api c29d306 |
dev-qa (GLM 5.3 Flash) | PASS, 1 finding fixed | API 361 = 101 + 27 + 233 green in default and random order. Live: DELETE /time-entries/{id} clears the actual and the absence, writes clear_actual, is 409 in a locked period, 403 for an employee and 404 out of scope; the actor list is scoped; coverage extraHours reconciles hour by hour (32.00 h in week 1). Revert-the-fix: removing the locked-period guard fails PayrollApiTest#clearingAnActualInALockedPeriodIsRefused. Finding: the first clear_actual audit row named the deleted time entry, so a scoped supervisor could not see it; fixed at a56ce10 (test first) and re-verified live at 00:54Z with the delete-then-audit sweep clean and 361 green. |
| R49 | The planner Must flow (ADR-026), p3-api 8961c15 |
dev-qa (GLM 5.3 Flash) | PASS with open gaps | Suite 377 = 106 + 27 + 244 in default and random order. Live: generate 1.0–1.2 s, 0 plan-added warnings on the default pattern, newestFirstHeld, commit guards 428/409/200, seven 2027 pay periods created, a locked period 409, a supervisor edit 200 then illegal 422/409/412, the draft endpoints, ROTATING_5_2 130 warnings and 7_ON_3_OFF 7,827 warnings shown honestly, same seed same hash. Open: 528 unfillable unit-days in the default draft; the 80 h assertion was not isolated by a surgical mutation; the web planner screens were not yet verified. |
| R50 | Planner adversarial delta, 2a62682..8961c15 |
review-r2 (GLM 5.3 Flash) | SAFE WITH NOTES | Period creation at commit is inside the transaction, all-or-nothing and idempotent; the locked-period wall is reachable; baseline-subtracted warnings cannot hide one; acknowledgement is the warning count plus a WARNINGS_CHANGED recompute (a same-count content swap is theoretically conceivable, not constructible). The author’s mutation turns 4 of 11 PlannerApiTest red. Low nit: pay_period had no unique index on (start_date, end_date). Newer commits need their own delta. |
| R51 | Actual times in the rule checks, p3-actuals 4348650 |
review-r2 (GLM 5.3 Flash) | SAFE WITH NOTES | One MEDIUM: PlannerService.loadHistory (the generator verifier and the commit re-check) read roster times with extension 0 and no time_entry reference, so the planner seam did not see actuals while the board path did (unreachable in the demo config; it fires when a look-back covers recorded actuals). Notes: a shorter actual is correct live but not pinned by a test; an actual recorded after later shifts exist is not re-checked (known limit, audited); rule-check latency median 6.5 ms / p95 14.5 ms (was 2/4); 132 seeded entries differ from the roster and live checks near them cite actual times (Unit A N8 13 Nov: U-01/U-05/U-14 BLOCK with a 94-minute actual). Checksum and T8 golden unchanged. Suite 386 with a Testcontainers connection-exhaustion flake; isolated rerun green. |
| R52 | Rule-set v2 and the D12/N12 rule rows, p3fte 8c1f58e vs 6e325e6 |
review-r2 (GLM 5.3 Flash) | SAFE WITH NOTES | v1 vs v2: exactly two rows differ (U-02 afterShiftKind additive, U-10 message 00-12 to 19-07); nothing loosened, A12/P12/L16/N8 unchanged. Live boundaries all correct (N12 into D8 0 h U-01/U-05 Block; 4 N12 pass, 5th U-10 Warn and U-09 Block; D12 into N12 same day U-01; midnight and pay-period seam clean; D12 + 4 h actual exactly 16 h, no U-05). Mutations (drop N12 from U-10; drop D12 or N12 from U-02) go red. Governance: v2 is seeded PUBLISHED by V6, bypassing maker/checker like v1 (created_by/approved_by NULL, change_reason recorded, no audit_event row); every later change uses maker/checker. Suite at 5759b12: 393 green; checksum and T8 golden unchanged. Cosmetic: U-10 says 19-07 but still counts A12 night-block shifts. |
| R53 | Phase 3 UI checkpoint, p3-int 7338d86 |
dev-qa (GLM 5.3 Flash) | 7 Playwright failures, 1 real defect | API 403 = 112 + 27 + 264 green; web 267/267. Playwright desktop 85 passed / 7 failed, tablet 84 / 7 / 1 skipped, the same 7: five spec lag (audit-viewer, audit, keyboard-api Actor to Done by; publish-period wording; absence-correction combobox), one order-dependent (reset.spec), and one real defect (axe label-content-name-mismatch on the wall display supervisor variant). Earlier a65f6c0 numbers were VOID: dev-qa ran against the person’s trial stack on 18080 and disclosed it; the restore is down -v and up -d --wait in the main checkout, and commit guard 5c8c99b prevents a repeat. |
| R54 | The 120 dataset, planned absences and the 120 commit, p3-api-ds abbaaf7 |
review-r2 (GLM 5.3 Flash) | SAFE | 120 commit fixed: 5,103 rows, 77 supervisor rows for 4–10 Jan, one commit_plan event; both datasets commit 200 across three cycles with exact checksums (120 then e5efb5ca...1b58, 100 unchanged). A 28 Dec–10 Jan overlap is now 409 PAY_PERIOD_OVERLAP, not absorbed; the old regression is unplantable; a second generate after a commit is 409 ALREADY_COMMITTED_WINDOW; a planted locked 4–17 Jan is 409 LOCKED_PERIOD. Absence input: 403/401 authorization, 400/404 validation; two absent officers were skipped and relief covered 2/2; same seed identical; the baseline returns when the absences are removed; no leak into payroll or time and attendance. Suite 410 = 123 + 27 + 260 in default and random order. Low nit: duplicate absences answered 201 (harmless, the scorecard deduplicated); idempotency fixed later. |
| R55 | Phase 3 visual review and demo walk, p3-int 99703a9 (earlier capture at 83d766c) |
dev-design (Claude Opus 5.5; not independent of the UI spec) | 8 steps verified, 1 major + 5 moderate + 10 minor | All eight demo steps ran end to end twice (reset 1 s, checksum e5efb5ca...1b58 twice; generate 0.6–0.8 s; scorecard 38 gaps / 7 warnings; gaps; compare; commit 5,103; supervisor fill plus a 5th consecutive D12 refused by U-09 with no override; audit rows). Major: the 120 officers were named First92 Last92. Moderate: the commit time showed 20 Nov 18:00 instead of 21 Nov 01:02 Regina; raw FTE band keys; the note said 150; the audit commit line had the warning count but not the list. Minor: unit link order, ISO date, empty hire years, 0% days off, raw audit summary keys, the reset card said about 20 seconds. Fact: all 38 gaps are Escort evening and M. Ellis covers A/B only, so the script uses J. Chen. |
| R56 | Integrated tree, p3-int 99703a9 |
review-r2 (GLM 5.3 Flash) | SAFE WITH NOTES | Composition proven live: the planner loadHistory uses the same actual resolver (a short actual on a committed look-back N12 moved the plan 5,103 to 5,071 shifts); the whole demo path on one stack (reset 120, 2 absences with relief 2/2, generate, commit 5,102, illegal edit 422, extension actual then U-04 WARN, reset 100 restores 3390… and zero 2027 periods/absences/N12); authorization supervisor 403, anon 401, auditor 403, rules-admin 403; tokens survive a reset; demo OFF boot has datasets [] and anon reset 401. Suite 419 = 123 + 27 + 269. Notes: a skip-one-generator-check mutation leaves all 15 planner tests green (weak, as before); dropping the actual resolution in loadHistory fails ZERO tests, so the planner actual seam was unpinned (behaviour correct, test missing; routed); a legal extra shift on a fully committed quarter could not be constructed; duplicate absences 201 (low). |
| R57 | Candidate 2 demo re-walk, p3-cand2 c2c8dba |
dev-design (Claude Opus 5.5; not independent of the UI spec) | 7 items verified, F6 FAILS (F10) | Demo steps 1–8 verified twice (script v0.3, p3-demo-docs 76134b8). F1 names, F2 Regina time, F3 FTE labels, F4 120 note, F5 48 h label, F7 wall Exit and the reset card verified. F6 FAIL: the scorecard said 68 of 240 wishes while Compare said 195. Root cause F10: PlanGenerator.nominalMinutes/preferenceOf and their PlannerService copies had no D12/N12 case and read both as 8 h DAY, so the scorecard undercounted and every 12 h crew row showed the wrong status (an N12 officer with all 48 shifts N12 read Not met). PlannerApiTest asserted scorecard = compare only on dataset 100, which has no D12/N12. Fix routed to candidate 3. |
| R58 | Candidate 2 API delta, p3-api-ds2 6a6a667 |
review-r2 (GLM 5.3 Flash) | Names/V7/absence PASS; F9/F6 NOT SAFE | 120 names are unique and stable, checksum 82b19cf8...32ca reproduced three times, the 100 checksum and golden unchanged across cycles; V7 adds the unique index on pay_period dates; absence posts are idempotent (201 then 200, one row). Suite 411 = 123 + 27 + 261. F9/F6 not safe: preference evaluation was wrong for every D12/N12 officer, the same root cause as F10 (PlannerService copies of preferenceOf/nominalMinutes defaulted to DAY/480). Independent confirmation of F10; the fix is p3-api-ds3 29a0757, with the red-first test 68 vs 195 then green. |
| R59 | F10 re-verification, p3-api-ds3 3124c2e |
review-r2 (GLM 5.3 Flash) | SAFE WITH NOTES | All 120 officer statuses match review-r2’s hand rule (N12-crew officers who asked 12 h nights now read MET); ShiftKinds is the single classification source; a mutation (19:00 start treated as DAY) turns PlannerPreferenceKindsTest red; the plan is unchanged (38 ESC evening gaps, 7 warnings, commit 200); F6 verified: Compare preferencesMet 195 equals the scorecard’s 195 (SHIFT_LENGTH 104/120 + TIME_OF_DAY 91/120). Suite 412 = 123 + 27 + 262. Notes, not in candidate 3: 13 casual officers (120-0101..0117) with zero committed shifts read their asked criteria as MET (vacuous; met=195 includes 26 such criteria; suggest NOT_ROSTERED); the post-commit Compare has no preferencesMet row. |
| R60 | Candidate 3 re-check of F6, F9/F10 and the demo numbers, p3-cand3 5d0f810 |
dev-design (Claude Opus 5.5; not independent of the UI spec) | PASS | F6 verified: the scorecard’s 81% / 195 of 240 equals Compare 195/195 after the commit. F9/F10 verified: Nia Thompson (N12, asked 12 h nights) Met; Aiden Bergeron (12 h days, D12) Met; Kellan Kaur (12 h days, rostered on N12) Partly met: Time of day DAY, which is right. Step 3 numbers: 38 / 1,764 gaps, 7 warnings, 81%, Held 96.8%, N12 crew 42, 4,808 h; step 6: 5,103 shifts, 107 officers (the database matches), committed 21 Nov 03:08. Demo script v0.4 at b122947. |
| R61 | Candidate 3 final verification, p3-cand3 5d0f810 |
dev-qa (GLM 5.3 Flash) | PASS | Guard-checked final pipeline: API 422 = 123 + 27 + 272 green in the default order and random seed 20261121; web 277; Playwright against the real api, a fresh stack per viewport: desktop 101 passed / 0 failed, tablet 100 passed + 1 skipped / 0 failed; fixtures 22 + 21 / 0. Reset 100 twice gives checksum 3390148255...6539 and the payroll golden; reset 120 twice gives 82b19cf8...32ca; preference checks pass. Review-r2’s F10 re-verification, its integrated 99703a9 verdict and the ds2 delta stand; dev-design’s demo walk ran twice. Local main fast-forwarded to 5d0f810 and tagged sc-verified-5d0f810; no forbidden files or secrets in the 145-file diff; nothing pushed. |
| R62 | Phase 3 security review, code tip 5d0f810 (docs b6e120a), then the fixes on p3-sec |
review-r3 (Claude Sonnet 5.5) found; dev-build (DeepSeek V4.1 Flash) fixed and ran the red-first tests | FINDINGS; 5 fixed on p3-sec, dev-qa verification pending | review-r3’s report (P3-SECURITY-REPORT.md) found 2 important and 3 low. P3-1: a discard racing a commit answered DISCARDED while 6,586 shifts committed; fixed with the demo operation lock on discard, a status-guarded discard UPDATE, and a status-guarded commit UPDATE with a rowcount 409 that rolls back. P3-2: a 1-minute actual shortened the shift and turned the U-01 statutory Block into a warning, and the assignment saved with acknowledgements; the facts now use the envelope of roster and actual (earliest start, latest end), one resolver for board and planner, and the old shorter-actual test was deliberately replaced. P3-3: concurrent absences left duplicate officer-days; V8 adds a partial unique index with a dedupe and the insert uses ON CONFLICT. P3-4: the demo web port was published on every interface; it is now 127.0.0.1 only. P3-5: an Error during a reset left the lock held and the status RUNNING and leaked raw text; the reset now catches Throwable, releases in finally and returns a generic message. Tests red on b6e120a, green on p3-sec: PlannerDiscardRaceApiTest, ActualTimesInRulesTest#aShortActualCannotRelaxTheRestOrHoursBlock, PlannerAbsenceApiTest#concurrentAbsencesForOneOfficerDayLeaveOneRow, DemoResetFailureTest; P3-4 is checked with docker compose config. Author run at code tip 74a58c0: 425 = 123 + 27 + 275 in both orders, web 277. Nits not fixed. |
| R63 | Phase 3 preference/coverage/rule-sentence author pass, code tip 05c6398 on p3-pref-api (then merged with p3-pref-web at 0a4a77f) |
dev-build (DeepSeek V4.1 Flash), tests first in a detached c9ac073 worktree |
AUTHOR PASS; dev-qa verification pending | Three red-first items in one branch. Preference multi-select: V9 adds times_of_day text[] (backfill, element check, old column dropped); timesOfDay on every request/response, legacy timeOfDay accepted for one release and losing when both are sent; PreferenceTimes is one matcher for any-match, night volunteer, ranking and the 8 h night block; the scorecard counts a time criterion met only when every shift matches any chosen part. Red on c9ac073: PreferenceMultiSelectApiTest (field absent) and PreferenceTimesMigrationTest (column absent). Coverage: extraPercent = extraHours / requiredHours * 100, axis floor includes scheduledPercent - extraPercent; red on c9ac073 (extraPercent null), green. The SQL check reconciles the weekly extra hours with the non-cancelled EXTRA/overtime-offer assignments; not payroll overtime. Rule sentence: U-08/U-09/U-14 (ACKNOWLEDGE Block) say it cannot be saved and has no override; Warn keeps acknowledge; red on c9ac073, green. Author counts at 05c6398, clean detached worktree: 437 = 123 rules + 27 infrastructure + 287 api, 0 failures/errors/skipped, default order and random seed 20261121; web 289 at the merged tip. 120 plan still 38 gaps / 7 warnings (4 U-12 + 3 U-14) / 5,103 shifts / 107 officers; 100 unchanged; both checksums and the payroll golden unchanged. |
| R64 | Phase 3 option C author pass, merged tip 78fb935 (p3-pref-api 34aec88 + docs + p3-pref-web 8c16049) |
dev-build (DeepSeek V4.1 Flash), tests first on the parent commit; dev-build2 built the web on 34aec88 | AUTHOR PASS; dev-qa gate pending | Option C: the shift pattern is per officer. V10 adds employee.shift_pattern (default ROTATING_5_2, check on the three 8 h codes) and lets plan_draft.pattern8h be null; a 12 h officer’s 4-on/4-off cycle is derived from the crew rotation_pattern row rather than copied, so there is one source. Every preference row carries pattern, patternWords, patternEditable; PUT /planner/preferences/{employeeId}/pattern changes an 8 h officer only, with plain 400/404 refusals for a 12 h officer, a 12 h code on an 8 h officer, or an unknown code. Generate with no pattern8h uses each officer’s value and stores null; the old parameter still overrides for one release. The generator resolves works() per officer and staggers phases per pattern cohort; the same engine verifies every proposal. Identity proof: the 120 draft is 5,103 rows e8b29ce6…fe9d31 and the 100 draft 6,586 rows ec337014…409e1b, both shift-for-shift c9ac073; 120 stays 38 gaps / 7 warnings (4 U-12 + 3 U-14) / 107 officers and 100 is unchanged. Both fingerprints are pinned in Demo120ResetApiTest, which also checks every seeded pattern; the checksums and payroll golden are unchanged. Red on the parent: no pattern field on preferences, and V10 missing (column "shift_pattern" does not exist). Author run: 444 = 123 + 27 + 294 in the default order, 0 failures/errors/skipped (dev-qa’s gate runs both orders); web 290. Deviations: the optional mixed 120 seed was not added, so the identity and gate numbers stay exact (mixed cohorts are covered by PlanGeneratorPatternTest); the fixed code stays the existing 5_ON_2_OFF; no draft-staleness flag was invented. |
| R65 | Release 3 unit closures and staffing author pass, code tip ee4020c on p4-unit (final docs tip at handover) |
dev-build (DeepSeek V4.1 Flash), build after review-r2’s relief note; dev-build2 for web | AUTHOR PASS; dev-qa gate pending | V11 adds unit_availability (closed from, optional reopening, reason, plain overlap/date refusals), unit_staffing, staffing_setting 0.20 and the one unit_active_on(unit, day) function. ActiveUnits wraps it; the planner generator, board, roster, draft coverage, coverage report, wall display and unit list are date-aware, while history readers stay date-agnostic because nothing is deleted. The generator skips a closed unit on the day; full-time closed-unit officers are relief after the receiving unit’s own staff and casuals, in home-unit/seniority/employee order, with 12 h only into an allowing unit and the same verifier; closed-unit casuals stay a fill pool. The API adds units/today/closures with preview and CRUD, flagged future published shifts, staffing periods split at every closure boundary with posts12Day/posts12Night/posts8/rawNeeded/leave/needed, allocated and leave writes, and closedReason on the board/roster/coverage unit objects. Identity before any closure: 120 stays 5,103 rows e8b29ce6…fe9d31 (38 gaps / 7 warnings / 107 officers) and 100 6,586 ec337014…409e1b; Demo120ResetApiTest also asserts no closure/staffing rows and leave 0.20. Unit C closed from 2027-02-15 has no C assignment or gap after it, the days before are bit-identical, relief appears, the draft has no Block, two runs are deterministic and C returns after 2027-03-29. Author run: 450 = 123 + 27 + 300 in the default order, 0 failures/errors/skipped; web 304; audit codes 49 agree. Deviations: closed-unit casuals are not used as relief (no guaranteed hours); the planner still has no qualification check; the staffing estimate uses the design’s 12 h/8 h mapping and is not a qualification plan. |
| R66 | Release 3 dataset 150 addition, code tip 81d71f5 on p4-unit |
dev-build (DeepSeek V4.1 Flash), from review-r3’s STAFFING-SWEEP.md and its loader |
AUTHOR PASS; dev-qa gate pending | A new provider on the 120 shape: 120 full-time (N12 50, D12 67, E8 3; A25 B24 C22 ADM13 CTL14 ESC22) plus 30 part-time (12 N12-capable, 18 8 h, five per unit, FTE 0.4-0.8). Full-time officers get a deterministic 20% leave placement (20 of 98 days, blocks 1-14 from a fixed seed; local-midnight timestamps so one absence is one leave day); part-timers remain the fill pool. Own checksum 2e6cd938…d7f8, plan fingerprint a1e093f7…838030, 100 short block-days of 1,764 (5.7%), 39 warnings, 5,414 shifts, 150 officers. The sweep’s mean is 88.6 (5.0%); the gap is the fixed leave placement and the seeded history, reported not tuned. 100/120 seeds, checksums, payroll golden and fingerprints unchanged; Demo120ResetApiTest still passes. Demo150ResetApiTest pins reset twice, the plan and the Unit C mid-quarter close on 150. Author: 450 = 123 + 27 + 300 in the clean default run before 150; the two 150 tests and the 100/120/unit targets are green (12 targeted); the full 452 run is dev-qa’s gate (my repeat was killed by the harness timeout under host load, no test failure). Web 313 at the merged tip (FLOOR wording and the 150 label). |
| R67 | Release 4 author pass, code tip 8628d57 on p5 (API ffecd62 + p5-web c13a495) |
dev-build (DeepSeek V4.1 Flash) for the API, dev-build2 for the web | AUTHOR PASS; dev-qa gate pending | #20 release 3 already fixed the Block + ACKNOWLEDGE sentence; the release adds a pin over all three rows. #14 NOT_ROSTERED for an officer who asked but has no draft shift; the scorecard preferences and Compare count rostered officers only, so 120 moves 195/240 → 196/214 (92%) and the two agree; the plan is untouched. #17 DemoOperationLock is owner-token based: the reset keeps the pre-DONE release, the finally is a no-op, and a stale token cannot free the next owner; N-2 was inspected and left (clean-then-migrate by design, About says FAILED, a retry recovers). #10 V12 publishes rule-set v3 = v2 + U-16 (WARN/ACKNOWLEDGE, 8 h officer on a night shift); the fact carries a night flag, the template fires on a 480-minute night shift, the validator accepts exactly one of allowed lengths / unit flags / night warning, and v2 stays as history. #16 the remaining web fixture strings moved to “Week over 48 hours” and the shipped 48/60 message on p5-web. Author run in Docker at the merged tree: 460 = 127 rules + 27 infrastructure + 306 api, 0 failures/errors/skipped; web 316/316, build clean, lint 4 pre-existing warnings, audit codes 49. The 100/120/150 checksums, three plan fingerprints and payroll golden are exact; 120 stays 38 gaps / 7 warnings / 5,103 shifts / 107 officers. One honest side effect: an existing N8 makes an 8 h officer a WARN candidate for a later shift, which updated one OvertimeApiTest fixture. |
| R68 | Release 4 gate finding, p5 2ed7293 → p5-web2 e9e9ff3 → merged a23fa47 |
dev-qa found; dev-build2 fixed red-first; dev-build merged and verified | FIXED; re-gate pending | The pre-existing Rules route bug: the literal /rules/:version/shift-types route won over /rules/:version/:table but carried no table param, so the page fell back to Rest between shifts and the Shift types table (with U-16) could never be opened. Dev-build2 removed the literal route and added a router-level test that renders /rules/7/shift-types and expects the Shift types table pressed and shown, not Rest; it failed on the literal route and passes now. Merged into p5 as a23fa47; the docs addendum for r2’s U-16 night-window note is in the same handover. Merged web 316/316, build clean, lint 4 pre-existing, audit 49; API unchanged at 460. |
| R69 | Release 5 L16 retirement author pass, API tip 0a07bf1 on p6 (web p6-web follows) |
dev-build (DeepSeek V4.1 Flash) for the API, dev-build2 for the web | AUTHOR PASS; dev-qa gate pending | Option (b) full + V13: the 100 seed no longer makes the 16 h swap; L16 is absent (0 rows, was 270); V13 sets the template inactive without deleting old history; new assignments/open shifts naming it get a plain 400; the web pickers exclude it but history chips still render. PC-03 is now E-047 Pia Nguyen, Unit C, P12 12:00–24:00 on 3 Nov + a 5 h actual to 05:00 (17 h), U-05 override. New 100 pins: checksum 01b05436…322e58; payroll golden 9f2d51b3…04ff (1,037 rows, 8,197.60 h); plan fingerprint unchanged ec337014…409e1b (6,586 rows, 727 gaps). The warning count moves 117 -> 135 (U-12 78 + U-14 57): the plan rows are identical, but the old L16 history supplied U-14 baseline keys; removing it exposed 18 real U-14 plan warnings. Measured on both images (old 78+39, new 78+57); same warningsCard query, not U-16. 120/150 exact: 82b19cf8…32ca / e8b29ce6…fe9d31 (5,103, 38, 7) and 2e6cd938…d7f8 / a1e093f7…838030 (5,414, 100, 39). Old-DB V13 proved by L16RetirementMigrationTest (assignment survives, template inactive). Author run: 462 = 127 rules + 28 infrastructure + 307 api, 0 failures/errors/skipped; web 318 at the p6-web merge; audit 49. Rules untouched (L-01/S-03/U-03/U-04/U-05/U-11 and the extension tests); the history seam test now uses +5 h because the 12 h + 5 h shape is the over-limit one. |
| R70 | Release 5 gate finding 1, p6 dd3a62d -> seed repair |
dev-qa found; dev-build repaired the seed and re-measured | FIXED; re-gate pending | Retiring L16 silently changed PC-01: Nia’s week lost the L16 history, so the Sat 21 D8 blocked only U-01+U-05 (both emergency) and the UI offered an override; docs T2/PC-01 require U-01+U-05+U-14. Tara also lost every block-free pick-up after the demo week. Repair: Nia Mon 16 E8->P12 (+4 h), Thu 19 E8 added (+8 h), previous Sat 14 removed so the saved week is 56 h and the proposal 64 h; Tara Sun 29 removed. 100 checksum 01b05436…322e58 -> 4156077d…da6b; golden 9f2d51b3…04ff and plan ec337014…409e1b/6,586/727/135 unchanged; 120/150 exact. Self-check now asserts PC-01’s U-01/U-05/U-14 block set and Tara’s Sun 29 block-free D8. All PC-01..PC-09 shapes re-checked by the self-check; T1-T14 by the full suite. |
| R71 | Release 6 #6 Option A author pass, API tip da08dde on p7 (web p7-web follows) |
dev-build (DeepSeek V4.1 Flash) for the API, dev-build2 for the web | AUTHOR PASS; dev-qa gate pending | Qualification card is read-only over the draft: QualificationCoverage (new helper) counts, for every active unit requirement with min_with_qualification > 0, block-days below the qualified minimum. PlanGenerator and every placement path are untouched; qualificationPolicy is removed. Active unit-days only (a closed unit is not checked); relief counted in the placed unit with the officer’s qualifications; valid_from not read and stated. Measured, not assumed: 100 346 of 1,470, 120 0 of 1,470, 150 103 of 1,470 (A DAY16 A NIGHT9 B DAY9 B NIGHT10 C DAY22 C EVENING1 C NIGHT20 CTL DAY2 CTL NIGHT8 ESC DAY2 ESC NIGHT4). Tests: card equals an independent SQL count on 100/120/150; Unit C closed from 15 Feb 2027 gives 42 checked days per C requirement and 1,302 total (1,470 - 3 x 56 closed days; a closure from 1 Mar gives 1,344 = 1,470 - 3 x 42, as gate 6 saw); PlannerApiTest pins the key. 100/120/150 checksums, payroll golden and plan fingerprints unchanged. Author run 462 = 127 + 28 + 307; web 325/325 at the merged tip, build clean, lint 4 pre-existing, audit 49. |
R72 | Release 7 #27 author pass, API tip 5c6e922 on p8; merged code tip eb7132c (p8-web 0c888da, p8-docs 9248cd4, p8-guide 31f2e26); final docs tip follows |
dev-build (DeepSeek V4.1 Flash) for the API, dev-build2 for the web | AUTHOR PASS; dev-qa gate pending | #27: a PLANNER adds, moves (time or unit), reassigns one-way or removes one shift in an uncommitted DRAFT only; the live board is untouched. Preview saves nothing; every save needs If-Match with the draft version (428/412) and reads the draft row FOR UPDATE, so two edits with one version cannot both save. A Block is 422 blocked-by-rules and saves nothing; a Warn is 422 warnings-need-acknowledgement until a second save with acknowledgeWarnings:true; no EMERGENCY override in a draft. One edit_plan_draft audit row (kind ADD/MOVE/REASSIGN/REMOVE); handEdits/editedAssignmentIds and the roster edited flag come from those rows, no migration. Each save re-scores the whole draft synchronously through the extracted PlanGenerator.assess (gaps, warnings, scorecard, qualification and staffing cards) and commit still re-verifies every row. Findings fixed during the pass: the first recompute dropped the scorecard’s staffing and qualification cards (both paths now share one helper, and the test compares a no-op edit with the generated scorecard key for key); the re-score query did not select a.kind; a reassign was audited as MOVE; concurrent edits could lose an update. Identity: the pre-extraction characterization at 84d0ea0 pins the 100/120/150 checksums, payroll golden, plan fingerprints, row counts and warning totals; it stays in the suite and is green through the extraction. Remove+add restores the 5,103-row fingerprint; generating after edits returns the unedited fingerprint. Pins exact: 4156077d…da6b, 82b19cf8…32ca, 2e6cd938…d7f8; golden 9f2d51b3…04ff; plans ec337014…409e1b, e8b29ce6…fe9d31, a1e093f7…838030. Author run: 464 = 127 rules + 28 infrastructure + 309 api, 0 failures/errors/skipped, default and reverse order (a fork per test class with -Xmx1536m -Dspring.test.context.cache.maxSize=1, because the 8 GB Docker VM OOM-killed one long fork at ~45 classes). Web at 0c888da: 341/341, tsc -b/build clean, lint 4 pre-existing, audit 50 (check-audit-codes.sh agrees). dev-build2’s real-api edit spec on a scratch merge: 209 passed / 1 skipped / 0 failed (desktop + tablet), with Wade’s D12->N8 Block refused and nothing saved, Bram’s Warn kept, the edited tag, 1 -> 2 hand edits, the scorecard tiles matching the API, remove and commit. |
Api test counts over time (rules + infrastructure + api). Independent runs:
22375d4 (R31);489b3e1 (R33);a10688e (R35);dcee43b (R36);c0dcaf3 (R41);f4496c6 (R46);c29d306 (R48);8961c15 (R49);4348650 (R51, with a connection-exhaustion flake isolated on rerun);5759b12 (R52);7338d86 (R53);abbaaf7 (R54);6a6a667 (R58);3124c2e (R59);99703a9 (R56);5d0f810 (R61), default order and random seed 20261121.p3-sec 74a58c0 (R62, author run; dev-qa verification pending).p3-pref-api 05c6398 (R63, author run; dev-qa verification pending).p3-pref handover tip (R64, author run, default order; dev-qa gate runs both orders and is pending).09ed7ba (gate 3, both orders; web 313).p5 handover tip (R67 author run + R68 gate fix, default order; web 316; dev-qa re-gate runs both orders and is pending).p6 API tip 60f8f7d (R69 author run + R70 gate repair, default order; web 318 at the p6-web merge; dev-qa gate runs both orders and is pending).p7 API tip c42e6e2 (R71, author run, default order; web 325 at the final merge; dev-qa gate pending).p8 API tip 5c6e922 (R72, author run, default and reverse order, one fork per class; web 341 at the p8-web merge; audit 50; dev-qa gate pending).Author runs:
5e7765f;d2d120e.