Review sandbox: made-up data. Nothing is emailed or charged, and HeadGate’s real records are never touched.

HeadGate

Reviewer guide

For reviewers of HeadGate, the records and compliance office for volunteer secretaries of Utah canal, ditch, irrigation and small drinking water companies. Start on the sandbox page; everything below can be checked there.

How it is built

Utah rules register

Each Utah rule HeadGate uses, with its citation, source, effective date, trigger, how the app counts it, exceptions, when it was last checked, and the automated tests that cover it. After you start, open Compliance, Rules register, or the CSV at /rules/register.csv.

Testing

Every change runs the full automated test suite (Vitest, against a real local D1 database) plus type, format and lint checks, and a secrets scan, before it can be merged. The suite covers each page's rules and refusals, the company walls, every role, exports, imports, the deadline counts in the rules register, and this sandbox. The test files are not public.

Every page

People & shares

Who owns shares, the certificates they hold, and changes of ownership.

Meetings

Shareholder meetings, voting lists and proxies, the notices you mail, and the board: officers and action items.

Money

Assessments, each shareholder’s account and statement, and payments you record by hand.

Compliance

Utah deadlines, water right change applications, records requests, analytics and reminders.

Company settings

Your company profile, canal safety plan, the handoff packet, document vault, members and invites, a copy of your records, the activity log, name and cancelling.

Known gaps

Database tables

50 tables, read from this sandbox's database just now. Every table that holds a company's records has company_id, and every page reads through it, so one company never sees another's rows. Shareholders, certificates, transfers, change applications and the activity log can't be deleted (database triggers): they are ended, cancelled or corrected with a reason instead. A company's rows are deleted only 30 days after it cancels.

assessment_charges (8 columns)
assessment_payments (14 columns)
assessments (15 columns)
audit_log (9 columns)
auth_challenges (14 columns)
board_actions (17 columns)
canal_contacts (15 columns)
canal_hazards (12 columns)
canal_plan_reviews (8 columns)
canal_sections (14 columns)
canal_walks (13 columns)
certificates (14 columns)
change_applications (15 columns)
checklist_marks (7 columns)
companies (11 columns)
company_dates (13 columns)
company_features (7 columns)
company_logos (7 columns)
company_officers (15 columns)
company_profiles (16 columns)
document_links (9 columns)
documents (19 columns)
email_log (5 columns)
feedback (10 columns)
import_rows (8 columns)
imports (12 columns)
insurance_policies (12 columns)
invites (9 columns)
lost_certificate_reports (20 columns)
mailing_followups (10 columns)
mailing_recipients (16 columns)
mailings (15 columns)
meeting_motions (17 columns)
meeting_proxies (13 columns)
meeting_voters (10 columns)
meetings (22 columns)
memberships (4 columns)
password_resets (5 columns)
rate_limits (4 columns)
records_requests (13 columns)
reminder_sends (5 columns)
reminder_settings (4 columns)
reviewer_links (11 columns)
sessions (6 columns)
shareholder_notes (6 columns)
shareholders (20 columns)
transfer_certificates (6 columns)
transfers (10 columns)
users (10 columns)
water_rights (14 columns)