System Health
Auto-refreshes every 30 s. KPIs cover the last hour. Calls / hr is total /api dispatches.
Error rate turns yellow at 1 % and red at 5 %.
p50 / p95 is response-time median and 95th percentile (ms) — if p95 climbs while p50 stays flat, the slow tail is getting worse.
Pool wait shows pg connections (idle / total / waiting). Anything w > 0 means the pool is jammed — that was the 2026-04-20 incident shape.
Top methods by p95 (last hour)
Slowest endpoints, ordered by 95th-percentile latency. If a method users hit a lot (getProfile, getSched) lands here, they'll feel it. New arrivals often mean a recently shipped query without a matching index.
| Method | Calls | p50 | p95 | Max | Errors |
|---|
Recent errors (last hour)
Every 4xx + 5xx response. 401s on protected methods are fine (unauthenticated probes). 5xx anywhere = a bug to investigate; the firm/user columns tell you whose flow hit it.
| When | Method | Firm | User | Status | ms |
|---|
Per-firm activity (last 24 h)
"Total ms" is wall-clock time the API spent on that firm's requests. A firm whose total ms grows wildly faster than its call count is the noisy-neighbor pattern — usually a runaway loop or a hammering integration.
| Firm | Calls | Total ms |
|---|
Connection pool
pg pool snapshot at the last cron tick (every 5 min). Healthy: total ≤ max, waiting = 0. waiting > 0 means requests are stuck queueing for a connection; this preceded the 2026-04-20 schedule pool jam.
Hot tables
Postgres' own scan + analyze stats for the tables we hit most. Last autoanalyze > 24 h is yellow, > 7 d is red — stale stats are what made the 2026-04-20 query plan flip to a seq scan. Big Dead counts mean autovacuum is behind on cleanup.
| Table | Seq | Idx | Live | Dead | Last autoanalyze |
|---|
Top queries (pg_stat_statements)
Heaviest SQL queries by total exec time since last reset. A line with high Calls × moderate Mean ms is what to optimize first — it's run a lot. A new entry near the top usually means a missing index on a recently shipped feature.
| Calls | Mean ms | Total ms | Sample |
|---|
Live activity
Queries actually running on Postgres at the last 5-min cron tick (idle sessions filtered out). Anything > 30 s is yellow and worth a look; > 5 min is probably stuck. Almost always empty when things are healthy.
| PID | State | Wait | Sec | Sample |
|---|
Schema validation health
Zod request-validation telemetry (from audit_events) cross-referenced with call traffic — the "why" behind 400s, plus which .passthrough() schemas are clean enough to tighten to .strict(). Mirrors npm run check:zod-drift.
Validation failures — methods rejecting real traffic (the "why" behind 400s)
| Method | Fails | Calls/14d | Top reasons (field=code) |
|---|
Promotion candidates — clean ≥14d + confirmed traffic → reviewed flip to .strict()
| Method | Calls/14d | Schema file |
|---|
Undocumented fields — keys the schema doesn't model (add to schema + api-reference)
| Method | Rows | Fields (name:type) |
|---|
Plans & Billing
Firms list with tier, billing status, seat usage, and a 30-day jobs-created drift signal.
Click a row to manage that firm's tier, status, add-ons, and overrides.
Source of truth for prices/caps/policy is docs/references/tenant-policy.md.
Platform Settings
Applied to new firms at signup (Flow A Connect card charges). Changing this has no retroactive effect — already-signed-up firms keep their existing value unless adjusted individually on their firm-detail page.
Cancelled — purge pending
Firms in cancelled status. 90 days after cancellation,
the "Purge" action becomes available — hard-deletes the firm and
all firm-scoped data. Dry-run first to see row counts.
| # | Firm | Cancelled | Days left | Teardown | Actions |
|---|
Firms
| # | Firm | Tier | Status | Processor | Seats (O/A/PM) | Add-ons | MRR | Jobs 30d | Last seen |
|---|
Onboarding
Where each firm is in signup and setup, and whether it is moving its work into Digital Arborist. Activity is the last eight weeks of jobs created here (not imported from QuickBooks), inspection reports, crew sessions (a production-role person using the app on a day) and customer portal logins. Drift: new under 14 days · flat nothing in four weeks (at 60+ days, the firm to stop investing in) · slowing under half the four weeks before · ok. Click a firm for its weeks.
| # | Firm | Stage | Signed up | Setup | Required steps | Done on | Jobs here | Activity (8 wk) | Apps (30 d) | Drift |
|---|
Signup invites
While public signup is off, a firm can sign up only with an invite code. The code is shown once, here, when you create it — copy the link and send it. Revoking every code closes signup again.
| Code | For | Uses left | Expires | Firms | State |
|---|
Firm
Summary
Tier
Billing processor
Switching requires no outstanding past-due anchor. Founding-tier firms never bill, so their billing processor cannot be switched.
Connect application fee
Per-firm override on Flow A Connect card charges (the platform's commission,
application_fee_amount). Independent of the platform default —
changing the default never touches an already-set firm value. Stored as basis
points; ACH charges never carry an application fee regardless of this setting.
Status
Automated transitions (trialing → past_due → soft_blocked) happen via the QB poller. Use this for manual hard_block, cancel, or reactivate.
Add-ons
| Code | Name | Price | Started | Cancelled |
|---|
Plan overrides
Keys: seat_overage.<role>, seat_cap.<role>,
comp_addon.<code>, fee_pct.direct_mail. Value is JSON (integer for seat counts, true for comp, a percent 0–100 for a fee).
| Key | Value | Reason | Expires | Added |
|---|
QuickBooks import profile
A read-only count of this firm's QuickBooks: how it uses sub-customers, ship-to addresses, classes, estimates and so on, per year. Numbers only, no names or addresses are stored. It tunes the import before any firm is asked a question (qb-import-profiler.md, P0). Runs on the import tick (once a minute), one QuickBooks page at a time. This panel follows it while it runs.
Full profile (JSON)
DMARC
Aggregate DMARC reports parsed from keith@austintreeexperts.com daily at 01:30 UTC
(daily-dmarc-ingest in Cloud Scheduler).
% aligned is the share of messages whose DKIM or SPF lines up with the From: domain
— anything below ~99 % over a 30-day window warrants a look at the top source IPs.
% enforced is what receivers actually applied (quarantine + reject); it should track
the published policy after a flip from p=none to p=quarantine or p=reject.
Recent reports
Most recent 100 reports in the window, newest first. Policy is what your DNS
_dmarc record was advertising at the time the receiver sampled. Unaligned
> 0 means at least some mail from that submitter failed both DKIM and SPF alignment — drill
into the source-IP table below to see who.
| Submitter | Domain | Window | Policy | Total | Aligned | Unaligned |
|---|
Top source IPs
Source IPs sending mail on your behalf, ranked by message volume in the window. Aligned-only rows are the happy path (your own mail flows, plus aligned relays). Unaligned > 0 is the watch list — usually forwarded mail or a relay that hasn't been signed correctly; occasionally a real spoof.
| Source IP | Total | Aligned | Unaligned | Last seen |
|---|
Help Tickets
Bug reports and feature requests every firm's staff filed through the in-app help chat. Firm owners see their own firm's tickets read-only (More › Support › Help Tickets); the status and notes you set here are what they see.
| # | Firm | Type | Priority | Status | Reporter | Created | Summary |
|---|
Ticket
Site Plan AI prompts
The instructions Claude receives when it reads a construction site plan. Each firm runs on the
defaults in code (PROMPT_DEFAULTS, src/routes/sitePlan.js) unless it
has an override here. The JSON output format and parsing rules are appended
automatically and can't be edited. Revert deletes the override so the default applies again.
Plans
Existing firms are never moved by this form (grandfathered); migrate a firm on the Firm entitlements screen. If the service has been rolled back to a revision without version-aware billing, the server will refuse with READERS_NOT_MIGRATED — don't retry until it is rolled forward.
New version
Features
Add-ons
Existing subscribers keep their current price (grandfathered); a change here only applies to new subscriptions. If the service has been rolled back to a revision without version-aware billing, the server will refuse with READERS_NOT_MIGRATED — don't retry until it is rolled forward.
| Code | Name | Monthly | Metered quota | Status |
|---|
Edit add-on
Effective-dated: existing subscribers keep their current price. There is no preview for add-ons.
Firm entitlements
Features
Switch is the firm's own on/off (Settings › Feature Toggles) — changing it here overrides the owner and is audited. State is what the firm actually gets: a switch can be on while setup is unfinished. Add-ons are granted with a comp below, never by the switch alone. Platform flags are further down.
| Feature | Kind | Switch | State | Reason / missing |
|---|
Setup checklist
Computed live from the firm's data; reading it here changes nothing for the firm.
| Step | Phase | Required | State | Done | On | Note |
|---|
Set tier
Migrate to plan version
Moves only this firm's bill. Other firms on its version stay there (grandfathered); new signups already get the tier's current version. Preview first, then type the firm name to confirm.
Comped add-ons
Seat overage
Platform flags
Membership only — the global kill switch is not changed here.
Feature copy
Copy only. A feature's gates and dependencies stay in code (E6) and cannot be edited here. A blank field uses the code default shown beside it.
| Key | Kind | Title | Override |
|---|