Repository navigation
v2.3.0 — Accessible in-app dialogs, Delete Class and status page fixes, closed ledger type vocabulary
·
548 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Released 2026-10-22 at 04:38 UTC. Migration a4d7e9c2f1b6.
Highlights
- Delete Class did nothing: the page posted to a URL that refused the request (405)
- The delete safety gate was mostly silent to screen readers, and the student-deletion gate shut out keyboard users
- Every browser-native
alert/confirm/promptis replaced with the in-app modal - Students on some in-app browsers could not request a hall pass
- Public status page showed an outage while the app was up (2026-10-20)
Fixed
- Contextual help described features that do not exist or work differently (#1619, #1620, #1621, #1622)
- Delete Class did nothing: the page posted to a URL that refused the request (405)
- Every browser-native
alert/confirm/promptis replaced with the in-app modal - Students on some in-app browsers could not request a hall pass
- Ticket correlation packs listed
/static/<path:filename>instead of the routes the user visited - Scheduled savings interest posted
mechanism=self, misattributing a system-triggered credit as the student's own voluntary act - The insurance premium suggestion showed monthly rent as slightly less than students are billed
Full details
- Contextual help described features that do not exist or work differently (#1619, #1620, #1621, #1622; a full pass over the "Need Help?" drawers, tooltips and diagnostics guides). Among the fixes: the student Add Class drawer invented a "seat code" field; the teacher hall-pass drawer described a granting toggle and a student kiosk that do not exist; the store guide said Delete Permanently destroys records, though the route refuses it; the teacher analytics diagnostic described the retired v1 analytics engine;
docs/view.html's Back to Dashboard link read session keys nothing writes; and the support-ticket guide made three claims the code contradicts. Help links on the insurance claim and general issue pages now reach their troubleshooting guides instead of the generic index. - Delete Class did nothing: the page posted to a URL that refused the request (405).
admin.delete_join_codehad two rules,POST /admin/join-code/deleteand aDELETE /admin/join-codethat nothing used. Decorators register bottom-up, so the DELETE rule came first andurl_forbuilt it. Since 2026-09-09 (8651c274e),admin_class_delete.htmlfetchedurl_for("admin.delete_join_code")and POSTed to/admin/join-code, got 405, and the class was never deleted. It was found during local VoiceOver testing on 2026-10-20. No production request reached the URL in the 14 days of retained logs. The unused DELETE rule is removed, leaving only the URL FEAT-CLASS-006 and FEAT-IDEN-007 define. Every existing test POSTed to the literal path, sotests/dom/identity/test_teacher_last_class_deletion.pynow follows the URL the page renders. It fails with the old routes with('/admin/join-code', 405). A scan of the URL map finds no other endpoint whereurl_forbuilds a rule that refuses its caller's method. - Every browser-native
alert/confirm/promptis replaced with the in-app modal (SPEC-DES-001 v2.4 §X, §XI.6). After the hall-pass PIN prompt failed silently in an in-app browser, the remaining 20 native dialogs went too. They covered Start Work, hall-pass cancel, leave and return, passkey naming, rent payment, insurance cancel and retire, transaction reversal, bulk student actions, and teacher and sysadmin deletes.AppCore.confirm()andAppCore.prompt()(static/js/app-core.js) build a Bootstrap modal.data-confirmdoes the same for plain form posts, and its capture-phase listener runs before any other submit handler, so cancelling leaves the form untouched. Screen readers: every Bootstrap modal in the app now makes the rest of the pageinertwhile it is open. Chromium leaves content outside anaria-modalelement in the accessibility tree, so browse mode could leave any modal, existing ones included. Live regions stay live. The new dialogs return focus to the control that opened them, start destructive actions on Cancel, and announce a field error only once it applies (aria-invalidplusaria-describedby). The break modal now returns focus to Break. Checked in Chromium against its accessibility tree over CDP, with an axe-core WCAG 2.1 A/AA audit (tests/test_app_dialog_accessibility_browser.py), each check mutation-proved. Guard:tests/test_no_native_browser_dialogs.py, with mutation proofs. It reports all 24 pre-change call sites. - Students on some in-app browsers could not request a hall pass. Picking a destination in Choose Break Type called
window.prompt()for the PIN from inside the open modal. On 2026-10-20 a student on the Google app's iOS browser chose Bathroom seven times. Each time the prompt came back empty, the modal closed, and no request reached the server. The modal now has its own Your PIN field, used by both hall-pass destinations and Done for the day. An empty field keeps the modal open with an error instead of failing silently. The student guide also wrongly said no PIN was needed to request a pass (tests/test_break_modal_pin_browser.py). - Ticket correlation packs listed
/static/<path:filename>instead of the routes the user visited. Every static asset wrote anactor_request_tracerow, about 20 per page load. They filled the pack's fetch window and padded out its 20 entries. Static requests no longer write traces (DOM-SUP-001: "relevant request trace entries"), which also removes one DB write per asset (tests/test_request_trace_lock_safety.py). - Scheduled savings interest posted
mechanism=self, misattributing a system-triggered credit as the student's own voluntary act (DOM-LED-001INV-LED-016). No human decides, in the moment, that a given payout window's interest posts —app/services/ledger_interest_service.py'sapply_savings_interestnow suppliesmechanism="system". Test:test_INV_LED_016__scheduled_interest_posts_mechanism_system, confirmed to fail withmechanism=selfrestored. - The insurance premium suggestion showed monthly rent as slightly less than students are billed. On a monthly policy, "After rent" converted the class's monthly rent to a weekly figure and back over a 30-day month, so $600.00 a month read as $591.39 (reported by the owner on production after the v2.2.4 release). Rent billed at the policy's own frequency is a fixed amount per period, like the premium, so
app/services/insurance_premium_helper.pynow shows the billed amount when the frequencies match, and still scales when they differ (weekly rent on a monthly policy, monthly rent on a weekly one). Test:test_monthly_rent_shows_the_billed_amount_on_a_monthly_policy, confirmed to fail without the fix (591.39 == 600.0).
Security & Reliability
ledger_transaction.typeis now a DB-enforced closed vocabulary- Status page hero read "Mostly unavailable" when the health check was only refused
- Public status page showed an outage while the app was up (2026-10-20)
- The status operator console verifies IAP's signed assertion again, instead of relying on the unsigned email header
Full details
ledger_transaction.typeis now a DB-enforced closed vocabulary (DOM-LED-001INV-LED-017). Migrationa4d7e9c2f1b6addsck_ledger_transaction_type_closed_vocabulary(addedNOT VALID, so it guards every new row without a long lock or a failed deploy over an unexpected historical value), enumerating INV-LED-017's full canonical/legacy table — a write outside that set is now rejected at the database level;NULLis still permitted. This closes the set of lawful values; it does not yet require canonical spelling on a new row (bothInterest/interest,REVERSAL/reversal,Withdrawal/withdrawal, andDeposit/depositstill pass) — that write-time casing validator is separate, later-PR scope, since it requires retiring every current legacy-cased writer and every read-site comparison that still expects the legacy spelling (most criticallyapp/utils/transaction_idempotency.py's idempotent-type and fingerprint-exclusion sets, whose silent mis-update would break interest-posting idempotency). Five pre-existing tests that fixtured atypevalue never actually written by production code ('Rent Payment','adjustment','credit','manual_credit') are corrected to the real production values (rent_payment,manual_payment) the constraint now requires; three Interpretation test fixtures that used a placeholdertypeno writer produces ("act","test") are likewise corrected tomanual_payment. No existing row'stypevalue changes.FEAT-LED-005v1.3 reconciles this PR's and #1599's independently-recorded v1.2 histories (route/registry cutover and DBCHECKconstraint both now landed). PR 5 of the approved sequence from the 2026-10-17SYSTEM_ORIGINATED_FEAT_CODESprovenance investigation. Tests:tests/dom/ledger/test_transaction_type_closed_vocabulary.py.- Status page hero read "Mostly unavailable" when the health check was only refused (
SPEC-OPS-0061.5, owner ruling 2026-10-21). On 2026-10-20 the app's rate limit answered the status collector's/health/statusread with 429.collect_platform()mapped every HTTP error other than a redirect, 401 or 403 to an endpoint FAIL (HTTP_UNAVAILABLE), so the hero said "Mostly unavailable" while the feature cards, from real traffic, said "Working". Only a 5xx is now a FAIL. Any other non-redirect, non-auth HTTP error (429, 404, ...) means the check observed nothing: the endpoint and database checks are UNKNOWN with no timestamp under the new closed diagnosticHTTP_REFUSED, and the hero reads "Unknown".tests/test_status_platform.pycovers 500/502/503 as FAIL and 429/404 as UNKNOWN with anUnknownhero; the 429 and 404 cases fail on the old mapping. Deploys with the status service (deploy-status.yml), not the app release. - Public status page showed an outage while the app was up (2026-10-20).
/healthand/health/statuswere under the default per-address limits (500 per day,200 per hour). The old Cloud Run Job collector egressed from a new address each run, so no address reached the cap. After the 04:04Z cutover to the long-lived collector service, every once-a-minute probe came from one address. It spent the day's budget by 15:10Z, and every later probe got 429. Both probes are now@limiter.exempt, like/metrics(tests/test_metrics_rate_limit.py). - The status operator console verifies IAP's signed assertion again, instead of relying on the unsigned email header (
status_service/identity.py). The verifier allowed no clock skew, so an assertion IAP stamped a moment ahead of the container's clock read as issued in the future and was rejected; every sampled operator login over 30 days (81) was admitted only by theIAP_TRUSTED_EMAIL_HEADERfallback, loggedassertion=invalid_token. It now allows the 30 seconds Google's signed-header guidance prescribes foriatandexp, and a rejection whose signature verifies is logged asissued_in_futureorexpiredrather thaninvalid_token. The allowlist, audience, issuer and algorithm checks are unchanged. The fallback stays enabled until the deployed log showsvia=iap_assertion; turning it off is a separate, owner-approved step.
Accessibility
- The delete safety gate was mostly silent to screen readers, and the student-deletion gate shut out keyboard users
- Outline buttons failed contrast when focused from the keyboard
Full details
- The delete safety gate was mostly silent to screen readers, and the student-deletion gate shut out keyboard users (INV-ARC-020 §VI.3–4, §VII.E). On the Delete Class gate, VoiceOver read only the title, Cancel and "Enter the confirmation phrase shown below": the warning and its bullets were tied to nothing, "Required phrase: …" was never read, and the hold button used
disabled, which removes it from the Tab order. A screen-reader user could not find the button, learn why it was locked, or hear it unlock. Now the dialog is described by its warning and bullets, and the phrase field by the countdown status and the required phrase. The hold button stays focusable witharia-disabledand still refuses a locked hold. A polite live region announces the unlock once, and an interrupted hold. The title is anh2.admin_students.htmlcarried its own 186-line copy of the gate, which never got the keyboard hold, so a keyboard-only teacher could not delete students. It now mounts the shared component and script, and a guard keeps the gate to one implementation. Checked in Chromium against the accessibility tree, with a fake clock for the countdown and hold (tests/test_timed_delete_gate_browser.py). Four of its checks fail on the previous code. VoiceOver then stuttered during a hold ("hhhhho"): the focused button's own label was rewritten every 100 ms, so the screen reader restarted it each time. The label is now fixed, and the ticking countdown is a separatearia-hiddenelement. The live status speaks only on events, in the owner's wording. On unlock it says Hold the Space or Enter key for 10 seconds. You will hear "complete" when the timer is done. It stays silent while held, says Complete at the end, and says Hold must be continuous for 10 seconds. if released early. Complete stays on screen for one second before the dialog closes and the page submits, so a screen reader can say it. The per-pageholdPromptoption it replaced is removed. A test fails if the button is renamed during a hold; the old per-tick rename made 90 changes in 9 seconds. - Outline buttons failed contrast when focused from the keyboard (INV-ARC-020 §VII.D, §IX.4).
style.cssforced the text colour of.btn-outline-primary,.btn-outline-secondaryand.btn-outline-infobut restyled only:hover. Under:focus-visible, Bootstrap's own fill showed through: 1.8–2.9:1 in all three role themes, against the 4.5:1 AA minimum. Every Cancel button in the app (btn-outline-secondary) failed this way. axe audits resting states and never saw it. Those states now use the same fill as hover, as the warning, danger and success variants already did.tests/test_app_dialog_accessibility_browser.pymeasures every button variant under keyboard focus and hover in each role theme, and fails on the original stylesheet.
Internal Changes
- The status collector runs as a private, request-billed Cloud Run service instead of a Cloud Run Job (#1615, #1616, #1617)
- Dependencies
- The public district brief's SSO and integration section is reworded for clarity and compliance
FEAT-OBL-003is labelled by its contract, Satisfy Obligation, and two insurance comments are corrected (#1490)INV-ARC-0111.2 andINV-CORE-0002.2- Internal account transfers' effect construction consolidated onto one Ledger-owned builder
- Interpretation's provenance classifier no longer consults
feat_code; routes the internal-transfer route onto its ownFEAT-LED-005identity (#1599) SOP-DEP-0012.9: how browser-check lines are evidenced, recorded and kept off live classes- Two tests depended on timing rather than behaviour (test-only, no app change)
Full details
- The status collector runs as a private, request-billed Cloud Run service instead of a Cloud Run Job (#1615, #1616, #1617). Each Job execution paid a one-minute billing floor; the service handles the same
POST /collectper Scheduler tick. #1616 accepts Cloud Run's"1"as one vCPU in the deploy verification (it expected only"1000m"); #1617 corrects the cutover and rollback runbook, since Scheduler refusesjobs runon a paused job. The cutover moved every probe onto one egress address, which is what tripped the app's per-address rate limit on/health/status(see Fixed). - Dependencies. App: gunicorn 26.0.0 → 26.2.0 (#1380), redis 8.0.1 → 8.1.0 (#1381), packaging 26.2 → 26.3 (#1416), playwright 1.62.0 → 1.64.0 (#1417), alembic 1.18.5 → 1.20.0 (#1419), and greenlet 3.5.6, iniconfig 2.3.1, Mako 1.4.3, cryptography 50.0.2, python-dotenv 1.2.4 (#1571). Status service: google-cloud-firestore 2.21.0 → 2.34.1 (#1418), google-auth 2.40.3 → 2.61.0 (#1595), gunicorn 26.0.0 → 26.2.0 (#1380). CI actions: actions/setup-node 7.1.0 (#1413), google-github-actions/setup-gcloud 3.0.1 (#1566) and auth 3.0.0 (#1568), reviewdog/action-actionlint 1.80.0 (#1567). The release full suite ran on Python 3.10 with these pins.
- The public district brief's SSO and integration section is reworded for clarity and compliance (
github-pages/district.html,92f27466d,566b2ebc5). FEAT-OBL-003is labelled by its contract, Satisfy Obligation, and two insurance comments are corrected (#1490). Text only: nothing reads the registry label at runtime, and stored rows carry the id, not the label.INV-ARC-0111.2 andINV-CORE-0002.2 (owner, 2026-10-18).INV-ARC-011§V: phantom scope is now a request referencing a non-existentclass_id, notjoin_code.INV-CORE-000: §I drops the claim to be the top-level authority from which all others derive; §II states its precedence overINV-ARC-*andINV-CORE-001within theINVARIANTfamily; no §III invariant changed. Adds.markdownlint.json(MD024siblings only). The text landed indf4569211; this records the version bumps it missed.- Internal account transfers' effect construction consolidated onto one Ledger-owned builder (
DOM-LED-001INV-LED-014,app/services/ledger_transfer_service.py). The standalone student-initiated transfer (create_transfer_pair) and the overdraft-protection funding legs insideapply_resolved_ledger_planeach built the same two-leg withdraw/deposit effect-dict shape independently, free to drift apart. Both now compose the new purebuild_transfer_effect_pairfor the shared fields.create_transfer_pairkeeps its own dedicated_command_fingerprintreservation/replay path exactly as before (perSPEC-LED-002§4.2 the internal-transfer family's fingerprint serializer is never the general effect-plan one used bycreate_reserved_effects), so an existing reservation's replay-match is unaffected. No effect shape, invariant, or historical row changes; this is PR 3 of the approved sequence from the 2026-10-17SYSTEM_ORIGINATED_FEAT_CODESprovenance investigation. Tests:tests/dom/ledger/test_transfer_consolidation.py. - Interpretation's provenance classifier no longer consults
feat_code; routes the internal-transfer route onto its ownFEAT-LED-005identity (SPEC-ITR-001v1.4 owner ruling,DOM-ITR-001INV-ITR-015 v1.9,FEAT-LED-005§VIII.5, #1599).app/services/ledger_provenance_query_service.py's §6.3 student-originated classifier now excludes rows by a closedTransaction.typeset (SYSTEM_ORIGINATED_TYPE_VALUES:payroll,payroll_correction,interest/Interest,overdraft_fee) instead of the removedSYSTEM_ORIGINATED_FEAT_CODESfeat_codemembership test, which had wrongly excluded a student's own manual insurance premium payment (FEAT-OBL-003) and internal transfer (FEAT-LED-000) from counting as student-initiated activity.app/routes/student.py's transfer route now opensFEATContext("FEAT-LED-005", ...)instead of the retiredFEAT-LED-000top-level identity; a structural guard (tests/guards/feat_led_000_route_usage.py,tests/test_feat_led_000_route_guard.py) fails the build if anyapp/routes/file reopensFEAT-LED-000. The DBCHECKconstraint and write-time casing validator onTransaction.type(DOM-LED-001INV-LED-017) remain a separate, not-yet-landed PR.FEAT-LED-005v1.2 andFEAT-LED-000v0.7 update from prospective to live-runtime status to match. Tests:tests/dom/interpretation/test_provenance_type_classifier.py, confirmed mutation-sensitive (the removed-FEAT-code positive cases, and the type-clause-as-independent-check negative cases, fail without the fix). SOP-DEP-0012.9: how browser-check lines are evidenced, recorded and kept off live classes (owner rulings 2026-10-16). §XI: every line takes one of five results, evidenced, in part, failed, blocked or not exercised, replacing pass/fail/blocked; a line counts as evidenced when the features the operator exercised ran through it and behaved as asserted, whether or not it was a separate step. Results go in a per-line table in the release record (line, result, owner, time, evidence), filled in during the checks and complete before go/no-go, so a record no longer has to reconstruct them from logs as v2.2.4's did. §XI.A: no deliberate cross-scope attempt is made on a host serving live classes, even against the operator's own classes; the positive half of a "cannot" line comes from normal use and the negative half from the release suite's class-isolation tests. Registered inSOP-DOC-0013.29. The v2.2.4 deployed full-suite artifacts are now preserved underdocs/ops/audits/evidence/2026-10-15_pytest-full_388ffdb91/, as §XV requires.- Two tests depended on timing rather than behaviour (test-only, no app change).
test_DOM_PROD_001__automatic_payroll_waits_for_a_closed_sessionfailed whenever it ran in the first 20 minutes after class-local midnight: its open session began on the previous class day, and since every active session closes at the day boundary (FEAT-PROD-001; SPEC-TIME-001[00:00, 24:00)), paying that interval is correct. The test now shifts the resolver clock to class-local noon, and passes with the clock at 00:05.test_paid_mobile_confirmation_recovers_once_after_response_losswaited on the correction modal while the success path'swindow.location.reload()could leave the new document without it (Cannot read properties of null); it now waits for the reload and reads the modal null-safely. That removes a race; the failure was not reproduced.
Deployment record: DEPLOY_2026-10-22_339c775cd.md · Release run: 39723426818
Includes 03a6feed2, released untagged on 2026-10-16 at 04:29 UTC by release run 38850886428 (record): #1592 (premium helper monthly rent).