Skip to content

Classroom Token Hub v2.2.1

Choose a tag to compare

@timwonderer timwonderer released this 10 Oct 20:30
Immutable release. Only release title and notes can be modified.

Deployed to production 2026-10-10 20:27 UTC as f98d8a206 (release workflow run 38083783000). One migration, 35a9a0d3ab93 (EXPAND only). Release record: docs/ops/audits/DEPLOY_2026-10-10_f98d8a206.md.

Released as f98d8a206 on 2026-10-10 at 20:27 UTC (record). It ships #1530 on top of v2.2.0, plus AGENTS.md, which changes no application behavior. One migration, 35a9a0d3ab93 (EXPAND only).

Fixed

  • A purchased hall pass can be reversed (owner ruling 2026-10-08). Reversing a purchase removes every item it paid for (SPEC-OPS-001 §3.3), hall passes included; DOM-STORE-001's direct-grant rule governs removing a pass on its own, not a reversed purchase. v2.2.0 wrongly excluded hall passes, so a 1,000-pass purchase made on 2026-10-08 without the money could not be reversed. The reversal stays all-or-nothing: a purchase with any pass already used is refused, with nothing changed.

Changed

  • Using a hall pass writes nothing to the entitlement history (owner ruling 2026-10-09). The hall-pass log is the only consumption record: approval names the pass's entitlement_id in hall_pass_logs.hall_pass_id, as FEAT-PROD-002 §III and DOM-STORE-001 §VIII.E.6 require, and no longer also writes a Store CONSUMED event. One rule now decides whether a pass is spent (a terminal event, or a log naming it), and every reader uses it: the balance, which pass is used next, teacher removal, rent-perk expiry, item status, the store's held count, rent privileges, insurance's claim basis and the reversal check. Historical hall passes carry both records and read the same. consume_hall_pass is removed and registered as a deprecated symbol (SOP-DB-002 2.4).

  • An item with a request still waiting can't be reversed (owner ruling 2026-10-09), for every item type: a hall-pass request or a delayed-use redemption. The teacher first resolves the request without using the item: Return a redemption, or reject a hall-pass request (or the student cancels it). The item is then neither pending nor used, so it can be reversed or refunded (DOM-SUP-001 §IX, SPEC-OPS-001 §3.1A). Accepting uses it, and denying a redemption revokes it. The Reverse button, the reverse action and issue resolution all apply it.

  • A hall pass with a request waiting is reserved for it (owner ruling 2026-10-09). The lifecycle is:

    1. Available: usable, reversible or refundable under its rules.
    2. Pending request: a request names one particular pass, and its availability is decided when it is submitted (DOM-STORE-001 §IX). While it waits, nothing ends that pass: reversal and refund refuse; teacher removal, rent-perk expiry and a direct use skip it.
    3. Rejected (or cancelled by the student): the reservation is released and the pass is usable again.
    4. Approved: approval uses exactly the named pass, consuming it whether or not the student leaves.
    5. Expired: terminal. Expiry never happens while a pass is reserved.

    Hall-pass requests are resolved on the Hall Passes page (FEAT-PROD-002 §III.A), not in the Store's redemption dialog, and the Reverse refusal says so.

  • Ending a hall pass is serialized. A pass ends by use (a hall-pass log) or by a REVOKED or EXPIRED event, and those live in different tables, so no index can stop an approval and a reversal, removal or rent-perk expiry from both ending the same pass. Every one of those writers now takes the same lock on the holder's seat row (lock_hall_pass_holder) before deciding whether the pass is spent; reversal takes it before its eligibility read.

  • A hall pass can be spent only once, enforced by the database. Migration 35a9a0d3ab93 adds the partial unique index uq_hall_pass_logs_hall_pass_id (DOM-CORE-002 1.17). It replaces the protection the one-terminal-event index gave while use also wrote CONSUMED. Approval also locks the student's seat, so two approvals at once take two different passes instead of colliding. The migration refuses, changing nothing, if any pass is already logged twice; production had 17 logs on 17 distinct passes. EXPAND only and reversible.

  • The teacher guide's student-detail page describes Reverse as it works today (it still described a Void button), including which entries can be reversed.