Development progress, recorded on the walk and read by management
What this is. The plan for making a site inspection carry PROGRESS as well as compliance, end to end: captured on the handset, delivered, and read on the console. Written 2026-08-05 by Claude Opus 5 (Claude Code, session d44cfa8b) from Pete's direction — *"site inspection is not just about NCRs, it is about project progress… we want management to understand how the project is progressing and to determine if there is anything unforeseen arising."*
Status. Plan. Execution tracked in WORKLIST P1–P14.
1. Why this is a gap, stated plainly
Everything the inspection records today is exception-shaped: tri-state checks, NCRs, coverage of places. That answers what is wrong. It cannot answer where the job has got to.
There is no progress model anywhere in the repository. Project.phase is a prose
string ("Corridor · tunnel and surface"). SPATIAL-MODEL-purpose-and-views.md
§8 already admits it: "Stages of work has no data anywhere in this repo."
2. The two things management asks
- How is it progressing? Where has each part of the site got to, and is it moving.
- Is anything unforeseen arising? The early-warning half — and the harder, more valuable one. A percentage cannot answer it. A dated series of observations per place can.
3. The move: a work stage per place, observed on the walk
The area-by-area walk already visits every registered location in order. Asking "what stage is this place at" costs one tap per location and produces a dated series that nothing else in the system can produce.
WorkStage not-started → establishment → excavation → structure
→ backfill → reinstatement → complete
Linear and ordinal on purpose: order is what makes regressed and *out of sequence* computable rather than a matter of opinion.
Each observation is an event carrying the stage the inspector observed AND the stage previously on record, so a movement is a fact on the log rather than a diff someone recomputes later and may recompute differently.
4. Stage drives which checks apply — this is the important half
Applicability today is (location) → checks, static. It should be
(location × stage) → checks:
- a portal in excavation needs dewatering, sediment control, groundwater
- the same portal in backfill needs dust, haul routes, material tracking
- the same portal at complete needs the controls REMOVED and closed out
This makes progress an input to the inspection, not a report bolted on after it. It also stops the walk asking questions that do not apply to what is happening on the ground today, which is the single biggest source of inspectors answering N/A out of habit.
Sequencing note: the stage-conditioned map is landed LAST, behind the plain one, because it changes what gets asked and must not go in before the bindings are approved.
5. "Anything unforeseen" — the signals, and what each one means
All four fall out of a dated series of stage observations. None are expressible today.
| Signal | Rule | What it tells management |
|---|---|---|
| Stalled | no stage movement at a place across N consecutive walks | the work has stopped somewhere and nobody has said so |
| Regressed | observed stage is EARLIER than the stage on record | rework, or a failed inspection nobody escalated |
| Out of sequence | a stage observed with an intermediate stage never recorded | the site skipped a step, or a walk missed it — either is worth knowing |
| Repeatedly not reached | same location LocationNotReached on N consecutive walks | a blind spot forming; the record cannot say what is happening there |
A signal is a QUESTION, never a verdict. Each names the place, the walks it was derived from, and what would clear it.
6. What is captured, delivered and read
handset delivery console
─────── ──────── ───────
LocationStageObserved ──┐
LocationInspected ──┼─▶ append-only log ─▶ outbox ─▶ /api/submissions ─▶ inspectionStore
LocationNotReached ──┘ (existing) (existing) (existing) (existing)
│
progress block in the payload
│
▼
per-project progress + signals
The transport is not being built — it already exists, from the concurrent
session's work: lib/sync/outbox.ts → app/api/submissions → lib/inspectionStore.ts,
with deviceAuth in front and insert-once receipts behind. DeliveredInspection
already carries an opaque payload, so progress rides in it with no table change.
7. Task list
Phases land in order; each is releasable on its own.
A · The model on the device
- P1
workStages.ts— the ordinal vocabulary, plus the per-location stage register seeded for the pilot site. Governed, versioned, import-free. - P2
LocationStageObservedevent + runtime decode. Additive;SCHEMA_VERSIONunchanged. - P3 Progress fold — current stage per place, movement history, and the four signals of §5.
- P4 Tests: fold, signals, and each signal's boundary.
B · Capture and read it on the handset
- P5 The walk asks the stage FIRST at each location, before its checks.
- P6 A progress view on the device — per place, what moved, what is stalled.
- P7 Tests: the walk records a stage; a regression is surfaced.
C · Delivery
- P8 Carry a
progressblock in the submission payload (additive to the existingInspectionSubmission). - P9 Test the round trip through the real store.
D · The console
- P10 Read delivered progress; a per-project progress surface with the signals at the top, because the exceptions are the reason to open it.
- P11 Stage on the site plan — each zone tinted by the stage last observed.
- P12 Tests.
E · Carried over, still open
- P13 Raise an NCR from inside the walk, linked to inspection + place + check.
NcrOrigin.locationIdexists; nothing reachesCaptureFlowfrom the walk yet. - P14
(location × stage) → checks— the stage-conditioned applicability of §4. LAST, and only after the bindings are approved.
8. What this plan does NOT claim
- The stage register is seeded, not surveyed. Where each place has "got to" is authored data for a demo, not a report from the field.
- Nothing here is approved by anyone who has stood on the ground, including the existing check bindings.
- The signals are heuristics over a short series. With two walks on record, "stalled" means very little; the surface says how many walks a signal is derived from rather than presenting it as a finding.
- The console still has no store on the deployed host (WORKLIST E11): D1 binding absent,
node:sqliteonly where there is a filesystem. This works locally and on any host with a binding; it does not make esg.cogneris.com work.
Related
- WORKLIST.md — P1–P14, and E16 for the area-by-area walk this builds on
- INSPECTION-AREA-FIRST-proposal.md — the walk that made a per-place record possible