CIT Operational Management System

Architecture & data model — working prototype

Browser app over SQLite. AI is an Audit Inspection. ERI travels with an AI visit. Click any table to see stored columns and example rows from this loaded database. Source of truth remains docs/.

As built · August 2026 Single-file poster · 27 stored tables
Chrome → application layer → SQLite

Who uses it

EO(CIT)Plans, publishes / unpublishes, reports.
HI-9–12Roster; conduct visits. Shared screens.
MDRoster. Routine days need MD available AM.
Clerical staffRegistry, extensions, CMS Excel.

How a fact is stored

Staff never open the .sqlite file. Pages read and write through the application.

Dates stored as yyyy-mm-dd. Clock times are Hong Kong (UTC+8).

Active/Expired, Scheduled, and Sample are derived when a page loads.

Snapshot in this database

August 2026 plan is Draft (25 placed, 51 not placed). Figures illustrate this file, not a live feed. Click a count to open that table.

Built pages

HomeContract Registry Advanced searchMonthly ERI plan Monthly draftInspection records GA queueCMS Excel Outstanding reportsRoster StaffImport log

Working pipeline — click a table to open examples

01

Contract facts

, , offices.

02

AI windows

System writes from dates.

03

Roster

only stores unavailability.

04

ERI plan ticks

Live on the month’s assignment / unplaced rows after Save.

05

Monthly draft

or .

06

Publish

Same rows; status becomes Published.

07

Inspection records

+ .

08

Reports & GA

Read stored rows. GA is .

Follow one contract. See how FEHD S C/21/21 is stored across tables (windows, Excel inspections, ERI on visit iii).

All stored tables

Click a card. Empty tables still open: they show columns and why this file has no rows yet. Example rows may include a joined label (file reference, district code) so the row is readable.

Group

Esc closes the panel. ← → steps through the visible cards.

Typical month

Keep the Roster → Monthly ERI plan (ticks, visit district) → Open monthly draft → EO places leftovers → Publish → confirm on Inspection records → Unpublish only if no conducted visit has been recorded against that plan.