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/revised-end-to-end-2026-07-29/FRD-revised-end-to-end.md2,249 words

Functional Requirements Document — ESG End-to-End Evidence-to-Action

Version: 1.0
Date: 2026-07-29
Status: Proposed baseline

1. System outcome

The system shall implement one traceable record across field and portal:

CaptureSession → EvidenceItems → AcceptedRecord → Finding → NCR → SignedSubmission → DeliveryReceipt → PortalProjection → Report

Every object has a stable identifier. Links are explicit. AI-derived values do not overwrite source evidence.

The architecture shall keep AI assistance outside the authoritative compliance path. Transcription, vision observations, and structured summaries are draft artifacts; deterministic rules, signatures, submission acceptance, and NCR transitions remain model-free.

2. Core state models

2.1 Submission state

draft → ready-to-sign → signed-local → queued → sending → received

Error paths:

  • sending → failed → queued
  • received → returned-for-correction → revised → signed-local

The UI shall not collapse these states into a single “submitted” state.

2.2 NCR state

open → assigned → remediation-recorded → verified → closed-corrected

Alternate paths:

  • open|assigned → closed-not-a-non-conformance
  • closed-* → reopened

2.3 AI artifact state

not-requested → processing → draft → accepted|edited|discarded|failed

3. Field application requirements

3.1 Today and entry

IDRequirementAcceptance
FR-FLD-001The field app shall open on TodayAssigned and locally saved work is visible without navigation
FR-FLD-002The primary action shall be Capture/ContinueOnly one dominant action is presented
FR-FLD-003The user shall be able to start Inspection, Issue/NCR, or Incident from a short chooserChoice uses domain nouns and fits on one screen
FR-FLD-004The app shall show project, site, form, and connectivity before captureIncorrect context can be changed without losing work

3.2 Camera and pictures

IDRequirementAcceptance
FR-CAP-001Capture shall support device camera and photo libraryBoth paths attach to the same draft
FR-CAP-002Each image shall retain original bytes or an approved evidentiary derivativeHash, capture time, source, and uploader are stored
FR-CAP-003Location and address, when available and permitted, shall be bound to capture metadataMissing location is explicit, not fabricated
FR-CAP-004The user shall preview, annotate with a caption, retake, or remove before commitmentRemoving from a draft does not imply deletion of committed evidence
FR-CAP-005The system shall support multiple photos per findingOrder and captions persist
FR-CAP-006AI image analysis shall return draft observations onlySource photo remains visible beside the draft

3.3 Voice and text

IDRequirementAcceptance
FR-VOI-001Capture shall support tap-to-record with a visible recording stateStart, pause/stop, duration, and cancel are obvious
FR-VOI-002Audio shall be stored locally before transcription is attemptedNetwork or AI failure cannot lose the recording
FR-VOI-003The system shall produce a timestamped transcript when service is availableTranscript status and errors are visible
FR-VOI-004The user shall edit the transcript without altering the original audioBoth audio and accepted text remain attributable
FR-VOI-005Typed notes shall be available as an equal fallbackNo voice permission or service is required
FR-VOI-006Domain vocabulary hints may improve transcriptionHints are project/template scoped and versioned

3.4 AI draft and review

IDRequirementAcceptance
FR-AI-001The system shall combine accepted transcript/text and selected images into a draft summaryDraft cites which evidence items informed it
FR-AI-002Structured extraction shall produce schema-validated draft fieldsInvalid output is rejected, not partially committed
FR-AI-003The UI shall label generated content “AI draft”Label remains until accepted or edited
FR-AI-004The user shall accept, edit, or discard each consequential draftThere is no automatic ticket, severity, or submission
FR-AI-005AI shall not infer missing time, location, identity, signature, or checklist coverageUnknown remains unknown
FR-AI-006AI failure shall leave the manual workflow fully functionalUser can proceed from the same screen
FR-AI-007Prompts, model identifier, output schema, and acceptance action shall be auditablePortal history exposes provenance to authorized users

3.5 Inspection and coverage

IDRequirementAcceptance
FR-INS-001An inspection shall present sections in template orderProgress reflects answered/attested sections
FR-INS-002Checklist items shall support satisfactory, deficient, N/A, and unansweredUnanswered is visually and semantically distinct
FR-INS-003Each section shall require explicit coverage attestationOpening a section does not mark it covered
FR-INS-004A deficient item shall offer Capture finding as the next actionContext is prefilled
FR-INS-005A report preview shall reflect unanswered items honestlyNo default-pass rendering

3.6 Finding and ticket

IDRequirementAcceptance
FR-NCR-001A finding shall have its own identifier and source linksOrigin section, inspection, evidence, time, and reporter are visible
FR-NCR-002The user shall confirm whether a finding requires an NCRRequired business rules may preselect but not conceal the outcome
FR-NCR-003NCR creation shall prefill title, description, evidence, project, site, and originUser need not re-enter captured facts
FR-NCR-004Priority, owner, and due date shall be visible before final creation or clearly marked for supervisor triageNo ownerless “complete” ticket
FR-NCR-005Ticket events shall be append-only and idempotentRetry does not duplicate the ticket
FR-NCR-006Closure as corrected shall require remediation evidence and verificationState transition is enforced server-side

3.7 Review, signature, submit, and receipt

IDRequirementAcceptance
FR-SUB-001Review shall summarize missing requirements, evidence, findings, and ticketsUser can jump directly to an incomplete item
FR-SUB-002Signature shall record signer, role, time, and signature methodConsent text is visible before signing
FR-SUB-003Submit shall first create a durable signed-local recordApp can close safely after the action
FR-SUB-004Sync shall use an idempotency key per submission revisionRepeat delivery yields one portal record
FR-SUB-005The app shall show Queued, Sending, Received, or FailedState persists across restart
FR-SUB-006Received shall include server receipt ID and timestampReceipt can be copied and reconciled in portal
FR-SUB-007Failed delivery shall show a plain-language reason and RetryDraft/evidence remains available

4. Portal requirements

4.1 Information architecture

The portal shall expose four primary destinations:

  1. Overview — operational attention and recent receipts.
  2. Submissions — inspections, audits, and incidents in one filterable inbox.
  3. Issues — NCR and corrective-action work.
  4. Register — obligations, permits, and compliance reference data.

Administration is a role-gated utility, not primary navigation.

4.2 Submissions inbox

IDRequirementAcceptance
FR-POR-001The inbox shall show received submissions by defaultNew field receipt appears without manual data seeding
FR-POR-002Filters shall include process, project/site, date, status, submitter, and open-issue stateFilters are shareable in the URL
FR-POR-003Each row shall show process, site, submitter, received time, report state, and ticket countStatus can be understood without opening
FR-POR-004Demo records shall carry a persistent Demo labelDemo and live records cannot be confused

4.3 Submission detail

IDRequirementAcceptance
FR-POR-010Detail shall have a clear summary header and one current statusID and receipt are copyable
FR-POR-011Detail shall group Overview, Evidence, Findings & tickets, Activity, and ReportTabs or anchored sections preserve context
FR-POR-012Evidence shall support photo view, audio playback, transcript, metadata, and provenanceOriginal and accepted text are distinguishable
FR-POR-013AI drafts and accepted values shall be distinguishable in historyReviewer can see who accepted or edited output
FR-POR-014Linked NCRs shall open without losing the submission contextBack navigation returns to the same section
FR-POR-015The report shall be previewable and downloadableFile version and generation time are shown

4.4 Issues

IDRequirementAcceptance
FR-POR-020Issues shall provide an NCR inbox grouped by attentionOverdue, unassigned, awaiting verification, and recently closed are distinct
FR-POR-021Ticket detail shall show owner, due date, state, evidence, origin, and full historyNo lifecycle fact exists only in a hidden audit log
FR-POR-022Assignment, remediation, verification, closure, and reopen shall enforce role and transition rulesInvalid transition is rejected with explanation

5. Report requirements

IDRequirement
FR-RPT-001Inspection reports shall follow the golden section order and stable form identity
FR-RPT-002Reports shall include checklist outcomes, notes, embedded photos, signatures, page numbering, and required evidence metadata
FR-RPT-003Unanswered and not-recorded states shall print explicitly
FR-RPT-004Reports shall link to the source submission/revision and list report generation time
FR-RPT-005On-device preview and server-generated output shall be structurally equivalent
FR-RPT-006A report generation failure shall not change submission receipt state

6. Integration and API requirements

IDRequirement
FR-INT-001A field-specific authentication mechanism shall mint short-lived ingest credentials without embedding server secrets
FR-INT-002Media upload shall support resumable or retry-safe delivery
FR-INT-002AEvent reconciliation and media transfer shall expose separate progress/failure states while sharing the submission idempotency boundary
FR-INT-003Ingest shall validate schema version, tenant, project, actor, hash, and idempotency key
FR-INT-004Accepted events shall project into submissions, evidence, ticket, and report read models
FR-INT-005The receipt response shall be durable and queryable by field submission ID
FR-INT-006Sync conflicts shall preserve both versions and require explicit resolution when automatic reconciliation is unsafe
FR-INT-007Observability shall correlate device record, request, event, projection, ticket, and report IDs
FR-INT-008A versioned wire contract shall be compatibility-tested on field and server even when each runtime keeps a local implementation

7. OpenAI-assisted processing

The recommended pattern is asynchronous, reviewable assistance rather than an always-on conversational layer:

  1. store audio/photo locally;
  2. transcribe audio;
  3. analyze selected images and accepted text;
  4. request schema-constrained draft fields and summary;
  5. validate output;
  6. show the draft beside its sources;
  7. commit only the user-accepted result.

Current official OpenAI documentation supports image inputs in the Responses API, transcription models for audio, and structured model outputs. Realtime voice is available, but the core workflow shall not depend on a persistent realtime connection. Model selection is configuration, not a business requirement; production shall use an approved current model and a tested fallback.

8. Security, privacy, and governance

  • Enforce tenant and project scoping on every read and write.
  • Encrypt media and records in transit and at rest.
  • Use least-privilege service credentials and short-lived device credentials.
  • Record consent for audio, location, signature, and AI processing as required.
  • Apply retention and legal-hold policy by artifact type.
  • Never include secrets or unrelated personal data in model input.
  • Define whether API data may be processed regionally before production.
  • Maintain audit events for access, export, acceptance, correction, and deletion.
  • Redact sensitive display fields by role while preserving authorized evidence.

9. Non-functional requirements

AreaRequirement
OfflineFull capture, review, signature, report preview, and queueing without network
PerformanceField screens interactive within 1 second after local load; portal detail useful within 2 seconds at p75
DurabilityNo acknowledged local action is lost across crash or restart
AccessibilityWCAG 2.2 AA target; keyboard, screen reader, focus, contrast, reduced motion
Field ergonomics56 pt primary targets; 44 pt minimum secondary targets; daylight contrast; glove testing
ReliabilityRetry-safe sync and deterministic state rebuild from accepted events
ObservabilityUser-facing receipt plus operational traces and dead-letter visibility
CompatibilitySupported modern portal browsers and approved iOS/Android devices

10. Golden-journey acceptance test

Given an assigned inspection and an intermittently connected phone:

  1. start the inspection;
  2. explicitly attest one satisfactory section;
  3. mark one item deficient;
  4. record a voice note and attach two photos;
  5. view transcript and AI draft;
  6. edit the draft and accept it;
  7. create a prefilled NCR;
  8. sign while offline;
  9. observe Queued;
  10. restore connectivity and observe Received with receipt;
  11. find that receipt in the portal;
  12. play audio, view images and metadata, inspect the accepted text and AI provenance;
  13. open the linked NCR;
  14. preview and download the report.

The test fails if any step uses seeded portal data, hidden developer intervention, or a manual database change.