Cogneris
Environmental Compliance & Inspection

Intent · Every environmental obligation current and evidenced — zero reportable exceedances at Woodbine (UTS).

Operating tolerance: issues closed in ≤ 5 days · no repeat findings · every permit condition met.

← Documentsdocs/FRD-lifecycle-all-phases.md3,256 words

Functional Requirements — the whole ESG project lifecycle

Status: draft for review. Date: 2026-08-04. Revision A. Written by Claude Opus 5 (Claude Code). The functional half of BRD-lifecycle-all-phases.md.

This document does not replace FRD-field-processes.md. That document specifies the four field processes and remains authoritative for them. This one specifies the phases around them and the state model for every aggregate in the system.

New, additive identifier families: FR-LC, FR-ST, FR-REG, FR-BID, FR-CST, FR-MOB, FR-CLO. Nothing existing is renumbered.

Status column. ✅ built · 🟡 partial · ❌ absent. Almost everything here is ❌, and that is the honest position — §2 of the BRD sets out the evidence.


1. Domain model additions

1.1 New aggregates

AggregateIdentityOwnsNotes
BidbidIdenvironmental scope, risk premium, conditions, outcomeRetained won or lost (BR-LC-5)
EnvironmentalBudgetbudgetIdcost lines, basis, signatureOne signed budget per project version
ConstraintconstraintIdkind, dates, authority, stateIssued to the planner; outlives issue
MobilisationGateprojectIdthe readiness items and their statesOne per project; reportable while incomplete
ObligationInstanceobligationInstanceIdlibrary ref, project ref, origin, stateThe register spine (BR-REG-1)
HandoverRegisterprojectIdcarried-forward obligations, owners, cadencesCreated at closeout

1.2 The project aggregate

IDRequirementPriorityStatus
FR-LC-1Project MUST carry an explicit lifecycleState from the closed set in §3.1MUST❌ canonical Project is id · name · client · contractRef
FR-LC-2Project.phase as free prose MUST NOT be used for control flow; it is a labelMUST❌ app/lib/projects.ts uses prose
FR-LC-3Where phases 1–3 live in a separate pre-award aggregate (CG-7), a won bid MUST resolve to a project without re-keying any environmental scopeMUST❌
FR-LC-4Every record MUST carry the lifecycleState in force when it was createdMUST❌

1.3 Structural rules

IDRequirementPriority
FR-LC-5A phase transition is an event, never a field update. Rationale: the sequence of phases and who moved them is itself evidenceMUST
FR-LC-6A phase may be re-entered; re-entry creates a new phase episode and never mutates the prior oneMUST
FR-LC-7Terminal states (lost, closed) remain fully readable and are never deletedMUST

2. The register spine (FR-REG)

IDRequirementPriorityStatus
FR-REG-1An ObligationInstance MUST bind a library obligation to exactly one projectMUST❌ no applicability model
FR-REG-2It MUST carry origin ∈ bid-commitment · permit-condition · statutory · client-instruction · internally-raisedMUST❌
FR-REG-3Origin MUST NOT be inferred. Where unknown, the value is unknown and reportable as a data gapMUST❌
FR-REG-4The system MUST report bid commitments not carried into the live projectMUST❌ — the BO-11 report
FR-REG-5A library obligation MUST be reusable across bids; instances reference it rather than copying its textMUST❌
FR-REG-6A variation MUST append with its authority; original text remains readableMUST❌
FR-REG-7The register MUST answer, for any live obligation, which phase it originated inMUST❌
FR-REG-8Obligation and permit registers MUST support per-project scoping without duplicating rowsMUST🟡 registers exist; scoping does not

3. THE STATE MODEL

The core of this document. Every aggregate, its states, its legal transitions and the guard on each. A transition with no guard listed is unconditional.

3.1 Project

prospect ──▶ bidding ──▶ bid-submitted ──┬──▶ lost        (terminal, retained)
                                          └──▶ won ──▶ planning ──▶ mobilising
                                                          ──▶ operating ──▶ closing ──▶ closed
From → ToGuard
prospect → biddinga bid record exists
bidding → bid-submittedenvironmental scope complete AND director go/no-go recorded (BR-BID-6)
bid-submitted → won / lostoutcome recorded with a date
won → planningunconditional
planning → mobilisingenvironmental budget signed (BR-CST-3) AND constraints issued (BR-CST-7)
mobilising → operatingmobilisation gate signed or waived-in-part (BR-MOB-10)
operating → closingpractical completion recorded
closing → closedevery obligation discharged, transferred or carried forward (BR-CLO-1)
any → operating (exception)recorded exception naming who accepted the risk (BR-LC-7)
IDRequirementPriority
FR-ST-1The system MUST refuse planning → mobilising where no signed budget exists, and state that as the reasonMUST
FR-ST-2The system MUST refuse mobilising → operating where the gate is refusedMUST
FR-ST-3The system MUST permit → operating without a signed gate ONLY via a recorded exception naming a personMUST
FR-ST-4The system MUST refuse closing → closed while any obligation is active or overdueMUST

3.2 Bid

drafting → scoped → conditioned → submitted → won | lost | withdrawn

From → ToGuard
drafting → scopedenvironmental scope drawn from the library (BR-BID-2)
scoped → conditionedrisk premium stated (BR-BID-3) AND capacity checked (BR-BID-4)
conditioned → submitteddirector go/no-go with conditions (BR-BID-6)
submitted → won/lost/withdrawnoutcome recorded

3.3 EnvironmentalBudget

draft → proposed → signed → superseded

From → ToGuard
proposed → signedsigner holds the authority (PORTAL-ROLES)
signed → supersededa later budget is signed; the superseded one remains readable

3.4 Constraint

identified → issued → active → met | breached | waived

From → ToGuard
identified → issuedissued to the planner as a dated item (BR-CST-7)
issued → activeits window opens
active → metevidence recorded
active → breachedwindow closed with no evidence — recorded, never silent (BR-CST-9)
active → waivedauthority recorded

3.5 MobilisationGate

open → items-outstanding → signed | waived-in-part | refused

Items: boundary · control areas · asset register · applicability · permits · template & cadence · named inspector & device · baseline · team & roles (BR-MOB-1..9). Each item is outstanding | satisfied | waived.

IDRequirementPriority
FR-MOB-1The gate MUST be readable while incomplete, itemised (BR-MOB-11)MUST
FR-MOB-2A waived item MUST name who accepted it and whyMUST
FR-MOB-3signed MUST require every item satisfied or waivedMUST

3.6 ObligationInstance

identified → applicable → active → met | overdue → discharged | transferred | carried-forward

From → ToGuard
identified → applicablebound to a project (FR-REG-1)
applicable → activeproject is operating, or the obligation binds earlier by its own terms
active → overduederived for display from its due date — not a stored state (BR-ST-5)
active → metevidence recorded
any → discharged / transferred / carried-forwardan explicit closeout decision, never expiry (BR-CLO-1, BR-ST-4)

3.7 Permit

required → applied → issued → active → expiring → expired | renewed | surrendered

expiring is derived from the configured window (60 days today), not stored.

IDRequirementPriorityStatus
FR-ST-5Permit status MUST be derived from dates, not stored, so it cannot go staleMUST✅ app/lib/permits.ts
FR-ST-6required and applied MUST exist so a site can report operating against an unissued permit (BR-MOB-5)MUST❌ register starts at active

3.8 Field aggregates

Specified in the field FRD; restated here so §3 is the complete state model.

AggregateStatesKey guard
NCRopen → assigned → actioned → verified → closed, reopenableMUST refuse closed/corrected unless the latest corrective action is verified effective (FR-NCR-10)
Inspectionscheduled → in-progress → signed → delivereddelivered MUST require observed delivery (BR-X5)
Auditscheduled → in-progress → findings-graded → concludedmajor/minor MUST have raised an NCR; observation/OFI MUST NOT (BR-AU4/5)
Incidentreported → investigating → contained → closed → verifiedoccurrence time and report time are separate facts (BR-I2/I3)
Investigationopened → evidence-gathered → cause-determined → actions-raised → concludedconclusion MUST state the method used (BR-I7)

3.9 Universal state rules

IDRequirementPriority
FR-ST-7Every aggregate MUST be in exactly one state from a closed set; no null, unknown or inferred stateMUST
FR-ST-8Every transition MUST be an appended event with actor, timestamp and groundsMUST
FR-ST-9A forbidden transition MUST be refused with a machine-readable reason code and a human sentenceMUST
FR-ST-10Terminal states MUST be reachable only by decision, never by elapsed timeMUST
FR-ST-11Derived states (overdue, expiring) MUST be labelled as derived and MUST show the facts they derive fromMUST
FR-ST-12The system MUST expose the legal transitions from any current state, so a UI never offers an action that will be refusedSHOULD

4. Phase 1 — Bidding (FR-BID)

IDRequirementPriorityStatus
FR-BID-1Create a bid against a prospect, capturing client, contract reference and decision dateMUST❌
FR-BID-2Assemble environmental scope by selecting from the obligation libraryMUST❌
FR-BID-3Record risk premium factors: receptors, watercourses, species-at-risk, contaminated ground, residential receptors, heritageMUST❌
FR-BID-4Compute committed inspector capacity across live projects and compare with this bid's demandMUST❌
FR-BID-5Produce a comparable-history pack: NCRs per inspection, median days to close, repeat-finding rate, regulator interactions, environmental delay — for projects matched on kind and scaleMUST❌
FR-BID-6Where no comparable exists, state that explicitly rather than presenting an estimate as measuredMUST❌
FR-BID-7Record a go/no-go decision with attached conditions, naming the directorMUST❌
FR-BID-8Carry conditions forward on win, as obligation instances with origin = bid-commitmentMUST❌
FR-BID-9Produce a prequalification pack from the register on demandSHOULD❌
FR-BID-10Retain lost bids with outcome and reasonMUST❌
FR-BID-11Restrict bid visibility to a commercial audienceMUST❌

5. Phase 2 — Costing and planning (FR-CST)

IDRequirementPriorityStatus
FR-CST-1Compose a budget from lines: inspection labour, monitoring programmes, equipment, subconsultants, permit fees, remediation contingencyMUST❌
FR-CST-2Derive inspection labour from cadence × duration × sites × rateMUST❌
FR-CST-3Price remediation contingency from measured history where available, recording the basis either wayMUST❌
FR-CST-4Sign the budget; record signer and date; supersede rather than editMUST❌
FR-CST-5Report consumed against signed, per project and portfolioSHOULD❌
FR-CST-6Capture permit lead times as dated constraints on the construction sequenceMUST❌
FR-CST-7Capture environmental windows (in-water, nesting, spawning, SAR) as dated constraints with authorityMUST❌
FR-CST-8Issue constraints to the planner as a dated list; record the issue as an eventMUST❌
FR-CST-9Identify baseline monitoring that must precede commencementMUST❌
FR-CST-10Record a breached or waived constraint with the authority that permitted itMUST❌
FR-CST-11Surface forthcoming constraints on the operating dashboard (Q6)MUST🟡 panel exists, honestly empty

6. Phase 3 — Onboarding (FR-MOB)

IDRequirementPriorityStatus
FR-MOB-4Create a project: identity, client, contract, kindMUST❌ no create path at all
FR-MOB-5Capture a boundary — paste GeoJSON or import from OSM by bounding box are the recommended first twoMUST❌ alignments are hand-authored TS literals
FR-MOB-6Define control areas, each with a categoryMUST❌
FR-MOB-7Register assets, or record that there are noneMUST❌
FR-MOB-8Establish applicability: bind obligations and permits to the projectMUST❌
FR-MOB-9Reconcile bid commitments against bound obligations and report the difference (FR-REG-4)MUST❌
FR-MOB-10Record permits as required / applied / issued, with datesMUST🟡 register has no pre-issue states
FR-MOB-11Assign inspection template and cadenceMUST❌ one hardcoded template
FR-MOB-12Assign a named inspector and a deviceMUST❌ actors are strings
FR-MOB-13Capture baseline, or record its absence with a reasonMUST❌
FR-MOB-14Assign team and roles including sign-off authorityMUST❌ no role model implemented
FR-MOB-15Present the gate itemised, with outstanding items visibleMUST❌
FR-MOB-16Record the mobilisation sign-off, naming the directorMUST❌

7. Phase 5 — Closeout (FR-CLO)

IDRequirementPriorityStatus
FR-CLO-1At practical completion, list every obligation with a required decision: discharge, transfer or carry forwardMUST❌
FR-CLO-2Produce a handover register of carried-forward obligations with owners and cadencesMUST❌
FR-CLO-3Retain monitoring cadence and reporting route for surviving obligationsMUST❌
FR-CLO-4Record the retention period per project; refuse disposal before it elapsesMUST❌
FR-CLO-5Produce a closeout report reconciling phase-1 promise against phase-4 record (BO-11)MUST❌
FR-CLO-6A closed project is read-only for capture and fully readable for challengeMUST❌

8. Cross-cutting

IDRequirementPriorityStatus
FR-LC-8Every phase gate MUST be an approval carrying approver and grounds — the same decision primitive as every other approvalMUST❌ no approval vocabulary in any layer
FR-LC-9Phase-scoped visibility MUST follow the role model; bid data is not operating dataMUST❌
FR-LC-10The portfolio view MUST show projects in every phase, not only operatingMUST🟡 /v2/director shows a phase strip whose pre-award columns are labelled fixtures
FR-LC-11No figure derived from a phase that does not exist may be presented as measuredMUST✅ BasisTag grades derived / fixture / not-captured
FR-LC-12Where the record cannot answer, the surface MUST say so rather than render zeroMUST✅ AbsentPanel

9. Interfaces

IDRequirementPriorityStatus
FR-IF-10Constraints MUST be exportable to the scheduling tool that owns the programmeSHOULD❌
FR-IF-11The budget MUST be exportable to the commercial system of recordSHOULD❌
FR-IF-12The handover register MUST be exportable to whoever owns the asset after closeoutSHOULD❌
FR-IF-13The obligation library SHOULD be importable from a regulatory source rather than hand-typedCOULD❌

10. Gap register

Ordered by what blocks the most.

#GapBlocksNote
1Project has no lifecycle stateevery phase requirementCG-7. Decide widened aggregate vs pre-award aggregate
2No approval vocabularyevery phase gateSame primitive the field processes need
3No identityevery signatureActors are strings
4No applicability modelFR-REG-1..8, FR-MOB-8/9Registers bind to nothing
5No write store in the consoleall of §4–§7Partly resolved on the working branch
6project singular in the signed claimany portfolio-phase viewRD-1
7No obligation libraryFR-BID-2, FR-REG-5Registers are per-instance today
8No comparable-history queryFR-BID-5The data exists; the query does not
9The TSD is cited by code and absenttraceabilityDP-14
  1. Decide CG-7, then add lifecycle state — nothing else in this document is buildable first
  2. Approval vocabulary + identity — shared with the field processes, so it pays twice
  3. Applicability, which makes the registers mean something per project
  4. Phase 3 mobilisation — the first phase to build, because it is the first write and it forces 1–3
  5. Phase 2 constraints before phase 2 costing — the constraints are the part that cannot be recovered with money
  6. Phase 1 once history is queryable
  7. Phase 5 last; it is the least urgent and the best understood

11. Verification

RequirementHow it is proven
FR-ST-7..11A state-machine conformance test per aggregate: every legal transition succeeds, every illegal one is refused with a reason code, and no aggregate reaches a state off the closed set
FR-ST-3, FR-ST-4Seeded fixtures attempting the forbidden transition; the test asserts refusal, not absence of crash
FR-REG-4A fixture where a bid commitment is dropped at mobilisation; the reconciliation report must name it
FR-BID-5A fixture with no comparable project; the pack must say so rather than emit an estimate
FR-CST-10A window that closes with no evidence must produce breached, not silence
FR-MOB-3A gate with one outstanding item must refuse signed
FR-LC-11/12A surface fed a phase with no data must render "not captured" and must not render 0
FR-CLO-4Disposal attempted inside the retention period must be refused

The verification bar is the same as the golden gate's: a test that asserts a targeted violation per seeded mutation, not a test that passes because nothing happened.