Data model benchmark v1 (2 Nov 2026). This page and the source-of-truth demo define the standard every new feature is measured against: one approved text, outputs that carry its fingerprint, a tamper-evident hash-chained log. It is a hash-chained log, not a blockchain. Gaps still open: output fingerprints in the database, an outside checkpoint of the chain.

← Back to PlaybookBunny

How one procedure is structured, step by step

This is the planned structure (schema) behind the product, shown with your real example: the Lafarge Richmond Plant lock-out procedures (September 2008). It is a design illustration, not a live system.

Illustrative. Facts below were read from the uploaded document; where text or pictures could not be read, that is stated. Regulation section numbers are placeholders until the rules reviewer confirms them.

1. The sequence: from uploaded file to signed-off worker

AI machine does itPerson a named human decidesSystem automatic, no judgment

1

Receive System

Customer uploads Lafarge Lockout – Richmond Plant.doc. The file is stored encrypted and its fingerprint (hash) is recorded.

Creates: Document v1 · first ledger entry
2

Read and split AI

Text and pictures are pulled out. The file turns out to hold about 17 separate machine-specific procedures (conveyors, bin gates, flyash auger, dust collector, silo shakers, compressor, reclaim pump), one per page, so it is split into separate Procedures.

Creates: 1 Procedure per machine (draft)
3

Extract the facts AI

For each procedure: the machine, the energy sources (electrical, compressed air), where each isolation point is, each step in order, and the verification step. Every fact keeps a pointer to the exact passage it came from.

Creates: Equipment · EnergySource · Step (each with source page and quote)
4

Raise questions AI

Anything missing or doubtful is flagged rather than guessed. Examples from this file: the procedures are dated September 2008 (review overdue?); "refer to picture in step 1" depends on images that must be re-attached; a protective-equipment checklist whose tick marks cannot be read from the text, and no named roles or hazards.

Creates: Flags
5

Human check Person

The safety manager sees the original beside the extracted version, fixes errors and answers flags. Nothing moves on until they sign off the extraction.

Creates: Review record (who, when)
6

Match to the rules AI then Person

Each step is compared with WorkSafeBC OHS Regulation Part 10 (De-energization and Lockout) and relevant federal rules. Results are "meets", "gap" or "unclear", each citing the rule text. The named rules reviewer confirms.

Creates: RuleMapping (rule text, status, reviewer)
7

Approve Person

A named approver approves the procedure. High-risk procedures like lockout go to a credentialled reviewer first. Approval locks that version.

Creates: Approval · Procedure version "approved"
8

Publish System

From the one approved record, a PDF is produced. Narrated audio and a short video are planned and will come from the same record, so they cannot disagree.

Creates: Publication (PDF, audio, video)
9

Deliver and acknowledge System

Each worker on the roster gets a secure link or QR code at the machine, with no password. They read the procedure, then confirm.

Creates: Acknowledgement (worker, version, time, device)
10

Record System

Every step above adds a linked, tamper-evident entry to the audit log. When a rule or the procedure changes, the process returns to step 4 and workers re-acknowledge.

Creates: LedgerEntry (links to the one before)

2. The records and how they connect

Each box is one table in the database. Pink-headed boxes are the heart of the system.

Company

  • name
  • plan
  • worker limit
has many Sites, Users, Workers

Site

  • name (Richmond Plant)
  • address
belongs to Company · has many Procedures

Document

  • file, type
  • version
  • fingerprint (hash)
  • received at / by
has many Procedures

Procedure

  • title (No. 2 Conveyor)
  • category (Lockout)
  • status draft / in review / approved / retired
  • version
  • source date (Sept 2008)
  • next review due
belongs to Document, Site · has many Steps, Flags, RuleMappings, Approvals

Step

  • order
  • action
  • location
  • is verification step
  • source page + quote
belongs to Procedure · may use EnergySource

Equipment

  • name
  • location
  • photo
has many EnergySources

EnergySource

  • type electrical / air / gravity…
  • isolation point
  • location
  • how verified
belongs to Equipment

Hazard / PPE / Role

  • name
  • description
  • source quote
linked to Procedure or Step

Flag

  • kind missing / out of date / unclear
  • message
  • resolved by / when
belongs to Procedure

Rule

  • source (WorkSafeBC / federal)
  • section
  • text
  • effective date
versioned copy of the rules

RuleMapping

  • status meets / gap / unclear
  • note
  • confirmed by
links Step or Procedure to Rule

Approval

  • approver
  • decision
  • comment
  • time
belongs to Procedure version

Publication

  • kind PDF / audio / video
  • language
  • file
made from an approved Procedure version

Worker

  • name
  • language
  • contact
  • role
belongs to Company

Acknowledgement

  • worker
  • procedure version
  • time, device
  • signature fingerprint
links Worker to Procedure version

LedgerEntry

  • event (received, approved, acknowledged…)
  • who / what
  • previous entry's hash
  • own hash
append-only; records every event

3. The Lafarge example, filled in

Procedure: No. 2 Conveyor (Barge Unloading area). Source: Lafarge Lockout – Richmond Plant, Sept 2008.

#ActionWhereType
1Shut the No. 2 Conveyor down at its local stopOn the conveyor, behind the Barge Unloading MCC RoomShut-down
2Lock out the conveyor at its main disconnectBarge Unloading MCC RoomIsolation · Electrical
3Verify lock-out: try to start the conveyor; it must not startAt the conveyor (picture referenced in the source)Verification
4When work is complete, check safeguards are in place and workers are clear, then remove locks and start up—Restore

Source: steps and locations read from the uploaded file. The exact name of the local control in step 1 was not readable in the extraction, so it would appear as a flag for the safety manager to fill in.

FlagWhy
Out of date?Source is dated September 2008. Proposed: confirm review date.
Picture neededStep 3 refers to a picture; images must be attached to the step.
Not statedEach page has an energy-source and protective-equipment checklist, but tick marks cannot be read from the text, so the safety manager must confirm which items apply. No named hazards, no statement of who may apply locks, and no group-lockout rule were found.
Rule checkCompare against WorkSafeBC OHSR Part 10; section numbers to be confirmed by the rules reviewer.

4. The same record as data

This is what the system would store (shortened). Programmers will recognize it; you can skim it.

{
  "procedure": {
    "title": "No. 2 Conveyor lock-out",
    "category": "lockout",
    "site": "Richmond Plant",
    "source": { "file": "Lafarge Lockout - Richmond Plant.doc", "date": "2008-09", "hash": "sha256:…" },
    "status": "draft",
    "equipment": { "name": "No. 2 Conveyor" },
    "energy_sources": [
      { "type": "electrical", "isolation_point": "Main disconnect",
        "location": "Barge Unloading MCC Room",
        "verification": "Attempt to start conveyor; must not start" }
    ],
    "steps": [
      { "order": 1, "action": "Shut conveyor down at local control", "location": "Behind Barge Unloading MCC Room", "source": {"quote": "Shut the No. 2 Conveyor down at its local …"} },
      { "order": 2, "action": "Lock out at main disconnect", "location": "Barge Unloading MCC Room" },
      { "order": 3, "action": "Verify lock-out", "is_verification": true, "needs_picture": true },
      { "order": 4, "action": "Check safeguards and clear workers, remove locks, restart" }
    ],
    "hazards": [], "ppe": [], "roles": [],
    "flags": [
      { "kind": "out_of_date", "message": "Source dated September 2008" },
      { "kind": "missing", "message": "PPE checklist present, ticks unreadable; no roles or hazards stated" }
    ],
    "rule_mappings": [ { "rule": "WorkSafeBC OHSR Part 10 (section to be confirmed)", "status": "unclear" } ]
  }
}