Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions compliance/FORMAT.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ results are shown over time, and fixes the contract so that **a different plan n
The page at `/compliance/` contains no project name, no goal, no firm, no rule and no milestone. It reads all of
them from one file. A VIM Flex page, or any other screen, can read the same file and follow the same rules.

- Format name: `openbep-compliance-series`, version `0.4` (draft). 0.2 added three optional counts per role; 0.3 the plan's escalation steps and the owner of a failing rule; 0.4 an icon per check. All optional. Older files still load.
- Format name: `openbep-compliance-series`, version `0.6` (draft). 0.2 added three optional counts per role; 0.3 the plan's escalation steps and the owner of a failing rule; 0.4 an icon per check; 0.5 the roles that use each check's data; 0.6 a plain-words sentence per check. All optional. Older files still load.
- Example: [example-school.json](example-school.json), simulated, written by `build_example.py`.
- Validator: [series.js](series.js), `validateSeries(doc)` returns a list of problems in plain words. The page
runs it on every file and refuses a file that fails, with the reasons.
Expand Down Expand Up @@ -42,8 +42,10 @@ plan
roles[] { code, role, firm, document, from } from = null, or the date the role joins
escalation[] the plan's steps when a firm misses milestones in a row, in order (optional, 0.3)
model { server, project, source, schedule, cadenceDays (7 when absent) }
valueChecks[] { id, goal, label, icon }
rules[] { id, goal, label, limit, unit, limitText, direction, icon }
valueChecks[] { id, goal, label, icon, usedBy }
rules[] { id, goal, label, limit, unit, limitText, direction, icon, usedBy }
usedBy (optional, 0.5): role codes that need this data to do their own work.
help (optional, 0.6): one plain sentence saying why this check matters, for readers who do not know BIM.
icon (optional, 0.4): one of value, code, material, fire, asset, room, workset, name, level,
clash, warning, duplicate. Anything else, or none, shows the icon of the kind of check.
direction: lowerIsBetter | higherIsBetter
Expand Down Expand Up @@ -90,11 +92,23 @@ versions[] in order
| Urgency | Overdue: open through a milestone it should have met. Will miss: closes after the milestone, or never. On course: closes in time. |
| Severity | Required values: points below the target. Critical 15 or more, major 5 to 15, minor under 5. A rule in %: the same, in points from its limit. A counted rule: critical at half its limit or more beyond it, major from a tenth; with a limit of 0, critical from 10, major from 3. |
| Payment check | Per firm, four conditions: its model was uploaded and checked in the latest working period; its own compliance is at the target; no model rule fails on its elements; nothing of its own is overdue. A rule not split by firm holds no single firm. The contract decides payment. |
| Late or ahead | values short of the target ÷ (values fixed − values broken per working period), against the working periods left |
| Firm verdict | Badly behind: 4 working periods or more late, or never reaches the target at its pace, or 2 milestones missed in a row. Behind: late by less, or an item overdue or going to miss. Otherwise on track. |
| Holds back | a firm holds back each other role named in `usedBy` of one of its open deficiencies |
| Share of what is missing | the firm's values short of the target ÷ all firms' values short |
| Step set by the plan | milestones a firm missed in a row on its own elements, read against `plan.escalation` |
| New elements arrive filled | newMet ÷ newRequired over the last four working periods |

## What every screen shows the same way

Three levels, from the owner to the investigator. The address keeps the level (`firm`, `item`).

- **Project.** The gate, who needs attention first and who is doing well, one card per firm (verdict, compliance and trend, late or ahead, share of what is missing, who it holds back, milestones missed in a row, open items, payment claim), the five biggest problems, the milestone track, compliance over time.
- **Firm.** Its verdict and facts, its compliance over time, its deficiencies, its accountability row, its payment check.
- **Item.** One check of one firm: severity and urgency, the numbers now, the chart over every version, the timeline, the result at each milestone, and every version's numbers.

The parts, in the order they were added:

1. The gate: would this version pass the milestone, and which conditions fail. Then the summary: overall
compliance, model rules met, forecast, versions checked.
Then one card per milestone: date, target, result, failing rules, firms below the target.
Expand Down
36 changes: 18 additions & 18 deletions compliance/build_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
{'id': 'basics', 'name': 'Basics every plan requires', 'uses': ['Design in BIM, all disciplines']},
]
MILESTONES = [
{'id': 'prelim100', 'name': 'Preliminary design 100%', 'date': '2027-03-26', 'targetPercent': 70},
{'id': 'final90', 'name': 'Final design 90%', 'date': '2027-06-25', 'targetPercent': 85},
{'id': 'prelim100', 'name': 'Preliminary design', 'date': '2027-03-26', 'targetPercent': 70},
{'id': 'final90', 'name': 'Final design', 'date': '2027-06-25', 'targetPercent': 85},
{'id': 'ifc', 'name': 'Issued for construction', 'date': '2027-09-10', 'targetPercent': 95},
{'id': 'constr', 'name': 'Construction, first coordination cycle', 'date': '2027-11-26', 'targetPercent': 95},
]
Expand All @@ -39,22 +39,22 @@
# Value checks: required values that must be filled with a real value. k = required values per element, by role.
# lag < 1 means the role fills this check later than its other work.
VALUE_CHECKS = [
{'id': 'assembly-code', 'icon': 'code', 'goal': 'cost', 'label': 'Assembly Code filled', 'k': {'ARCH': 1, 'STRUCT': 1, 'MECH': 1, 'CON': .2}, 'lag': {'MECH': .85}},
{'id': 'real-material', 'icon': 'material', 'goal': 'cost', 'label': 'Elements with a real material', 'k': {'ARCH': 1, 'STRUCT': 1}, 'lag': {'ARCH': .9}},
{'id': 'lod-params', 'icon': 'value', 'goal': 'change', 'label': 'Parameters required by the LOD matrix at this milestone', 'k': {'ARCH': 2.2, 'STRUCT': 2.6, 'MECH': 2.0, 'CON': .5}, 'lag': {}},
{'id': 'fire-rating', 'icon': 'fire', 'goal': 'change', 'label': 'Fire rating on walls, doors and floors', 'k': {'ARCH': .35, 'STRUCT': .2}, 'lag': {'ARCH': 1.05}},
{'id': 'asset-data', 'icon': 'asset', 'goal': 'handover', 'label': 'Equipment asset data (OB_ asset parameters)', 'k': {'MECH': 1.6, 'ARCH': .15, 'CON': 3.0}, 'lag': {'MECH': .55, 'ARCH': .7, 'CON': .8}},
{'id': 'rooms', 'icon': 'room', 'goal': 'handover', 'label': 'Rooms numbered and named by the plan', 'k': {'ARCH': .12}, 'lag': {'ARCH': 1.1}},
{'id': 'worksets', 'icon': 'workset', 'goal': 'basics', 'label': 'Elements on a named workset', 'k': {'ARCH': 1, 'STRUCT': 1, 'MECH': 1, 'CON': 1}, 'lag': {'ARCH': 1.15, 'STRUCT': 1.2, 'MECH': 1.1, 'CON': 1.2}},
{'id': 'view-names', 'icon': 'name', 'goal': 'basics', 'label': 'Views named by the naming rules', 'k': {'ARCH': .06, 'STRUCT': .05, 'MECH': .05, 'CON': .03}, 'lag': {'MECH': .8}},
{'id': 'assembly-code', 'help': 'Every element needs its cost code so quantities can be priced.', 'usedBy': ['CON'], 'icon': 'code', 'goal': 'cost', 'label': 'Assembly Code filled', 'k': {'ARCH': 1, 'STRUCT': 1, 'MECH': 1, 'CON': .2}, 'lag': {'MECH': .85}},
{'id': 'real-material', 'help': 'An element with a placeholder material cannot be measured or priced.', 'icon': 'material', 'goal': 'cost', 'label': 'Elements with a real material', 'k': {'ARCH': 1, 'STRUCT': 1}, 'lag': {'ARCH': .9}},
{'id': 'lod-params', 'help': 'The information the plan asks for on each element at this stage of the project.', 'icon': 'value', 'goal': 'change', 'label': 'Parameters required by the LOD matrix at this milestone', 'k': {'ARCH': 2.2, 'STRUCT': 2.6, 'MECH': 2.0, 'CON': .5}, 'lag': {}},
{'id': 'fire-rating', 'help': 'Walls, doors and floors must carry their fire rating so the other trades can coordinate with them.', 'usedBy': ['MECH'], 'icon': 'fire', 'goal': 'change', 'label': 'Fire rating on walls, doors and floors', 'k': {'ARCH': .35, 'STRUCT': .2}, 'lag': {'ARCH': 1.05}},
{'id': 'asset-data', 'help': 'Each piece of equipment needs its maintenance data so the owner can run the building after handover.', 'usedBy': ['CON'], 'icon': 'asset', 'goal': 'handover', 'label': 'Equipment asset data (OB_ asset parameters)', 'k': {'MECH': 1.6, 'ARCH': .15, 'CON': 3.0}, 'lag': {'MECH': .55, 'ARCH': .7, 'CON': .8}},
{'id': 'rooms', 'help': 'Rooms need a number and a name so equipment and finishes can be tied to a place.', 'usedBy': ['MECH'], 'icon': 'room', 'goal': 'handover', 'label': 'Rooms numbered and named by the plan', 'k': {'ARCH': .12}, 'lag': {'ARCH': 1.1}},
{'id': 'worksets', 'help': 'Elements must sit on a named workset so each team can find and control its own work.', 'icon': 'workset', 'goal': 'basics', 'label': 'Elements on a named workset', 'k': {'ARCH': 1, 'STRUCT': 1, 'MECH': 1, 'CON': 1}, 'lag': {'ARCH': 1.15, 'STRUCT': 1.2, 'MECH': 1.1, 'CON': 1.2}},
{'id': 'view-names', 'help': 'Views named by the rules can be found by everyone on the project.', 'icon': 'name', 'goal': 'basics', 'label': 'Views named by the naming rules', 'k': {'ARCH': .06, 'STRUCT': .05, 'MECH': .05, 'CON': .03}, 'lag': {'MECH': .8}},
]
RULES = [
{'id': 'on-level', 'icon': 'level', 'goal': 'cost', 'label': 'Elements on a level', 'limit': 95, 'unit': '%', 'limitText': 'at least 95 %', 'direction': 'higherIsBetter'},
{'id': 'clashes', 'icon': 'clash', 'goal': 'change', 'label': 'Clashes open for more than one coordination cycle', 'limit': 25, 'unit': '', 'limitText': 'at most 25', 'direction': 'lowerIsBetter'},
{'id': 'warnings', 'icon': 'warning', 'goal': 'change', 'label': 'Revit warnings', 'limit': 1500, 'unit': '', 'limitText': 'at most 1,500', 'direction': 'lowerIsBetter'},
{'id': 'dup-mark', 'icon': 'duplicate', 'goal': 'handover', 'label': 'No duplicate Mark', 'limit': 0, 'unit': '', 'limitText': 'limit 0', 'direction': 'lowerIsBetter'},
{'id': 'worksets-exist', 'icon': 'workset', 'goal': 'basics', 'label': 'The named worksets exist', 'limit': 0, 'unit': '', 'limitText': 'limit 0 missing', 'direction': 'lowerIsBetter'},
{'id': 'dup-levels', 'icon': 'level', 'goal': 'basics', 'label': 'Duplicate levels', 'limit': 0, 'unit': '', 'limitText': 'limit 0', 'direction': 'lowerIsBetter'},
{'id': 'on-level', 'help': 'An element that is not tied to a level cannot be counted by floor.', 'usedBy': ['CON'], 'icon': 'level', 'goal': 'cost', 'label': 'Elements on a level', 'limit': 95, 'unit': '%', 'limitText': 'at least 95 %', 'direction': 'higherIsBetter'},
{'id': 'clashes', 'help': 'Places where elements of two firms occupy the same space and nobody has resolved it.', 'usedBy': ['ARCH', 'STRUCT', 'MECH', 'CON'], 'icon': 'clash', 'goal': 'change', 'label': 'Clashes open for more than one coordination cycle', 'limit': 25, 'unit': '', 'limitText': 'at most 25', 'direction': 'lowerIsBetter'},
{'id': 'warnings', 'help': 'Revit warnings point to modelling errors that make quantities unreliable.', 'icon': 'warning', 'goal': 'change', 'label': 'Revit warnings', 'limit': 1500, 'unit': '', 'limitText': 'at most 1,500', 'direction': 'lowerIsBetter'},
{'id': 'dup-mark', 'help': 'Two pieces of equipment with the same Mark cannot be told apart at handover.', 'icon': 'duplicate', 'goal': 'handover', 'label': 'No duplicate Mark', 'limit': 0, 'unit': '', 'limitText': 'limit 0', 'direction': 'lowerIsBetter'},
{'id': 'worksets-exist', 'help': 'The worksets named in the plan must exist in every model.', 'icon': 'workset', 'goal': 'basics', 'label': 'The named worksets exist', 'limit': 0, 'unit': '', 'limitText': 'limit 0 missing', 'direction': 'lowerIsBetter'},
{'id': 'dup-levels', 'help': 'Two levels at the same height make elements land on the wrong floor.', 'icon': 'level', 'goal': 'basics', 'label': 'Duplicate levels', 'limit': 0, 'unit': '', 'limitText': 'limit 0', 'direction': 'lowerIsBetter'},
]

D = date.fromisoformat
Expand Down Expand Up @@ -201,13 +201,13 @@ def rule_values(day, i):
versions.append(v)

doc = {
'format': 'openbep-compliance-series', 'formatVersion': '0.4', 'example': True,
'format': 'openbep-compliance-series', 'formatVersion': '0.6', 'example': True,
'note': 'SIMULATED. Invented numbers for a made-up school project. No real model, firm or VIM Server was measured. Written by compliance/build_example.py.',
'plan': {'name': 'Example: Primary school renovation and extension', 'owner': 'School service centre (example)', 'delivery': 'Design-bid-build',
'goals': GOALS, 'milestones': MILESTONES, 'holidays': HOLIDAYS, 'roles': ROLES, 'escalation': ESCALATION},
'model': {'server': 'VIM Server (simulated)', 'project': 'Primary school (example)', 'source': 'SCH-FEDERATED.vim',
'schedule': 'One version every Friday, built from the Revit models each firm uploaded that week.'},
'valueChecks': [{k: v for k, v in vc.items() if k in ('id', 'goal', 'label', 'icon')} for vc in VALUE_CHECKS],
'valueChecks': [{k: v for k, v in vc.items() if k in ('id', 'goal', 'label', 'icon', 'usedBy', 'help')} for vc in VALUE_CHECKS],
'rules': RULES,
'versions': versions,
}
Expand Down
41 changes: 38 additions & 3 deletions compliance/example-school.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"format": "openbep-compliance-series",
"formatVersion": "0.4",
"formatVersion": "0.6",
"example": true,
"note": "SIMULATED. Invented numbers for a made-up school project. No real model, firm or VIM Server was measured. Written by compliance/build_example.py.",
"plan": {
Expand Down Expand Up @@ -43,13 +43,13 @@
"milestones": [
{
"id": "prelim100",
"name": "Preliminary design 100%",
"name": "Preliminary design",
"date": "2027-03-26",
"targetPercent": 70
},
{
"id": "final90",
"name": "Final design 90%",
"name": "Final design",
"date": "2027-06-25",
"targetPercent": 85
},
Expand Down Expand Up @@ -118,48 +118,68 @@
"valueChecks": [
{
"id": "assembly-code",
"help": "Every element needs its cost code so quantities can be priced.",
"usedBy": [
"CON"
],
"icon": "code",
"goal": "cost",
"label": "Assembly Code filled"
},
{
"id": "real-material",
"help": "An element with a placeholder material cannot be measured or priced.",
"icon": "material",
"goal": "cost",
"label": "Elements with a real material"
},
{
"id": "lod-params",
"help": "The information the plan asks for on each element at this stage of the project.",
"icon": "value",
"goal": "change",
"label": "Parameters required by the LOD matrix at this milestone"
},
{
"id": "fire-rating",
"help": "Walls, doors and floors must carry their fire rating so the other trades can coordinate with them.",
"usedBy": [
"MECH"
],
"icon": "fire",
"goal": "change",
"label": "Fire rating on walls, doors and floors"
},
{
"id": "asset-data",
"help": "Each piece of equipment needs its maintenance data so the owner can run the building after handover.",
"usedBy": [
"CON"
],
"icon": "asset",
"goal": "handover",
"label": "Equipment asset data (OB_ asset parameters)"
},
{
"id": "rooms",
"help": "Rooms need a number and a name so equipment and finishes can be tied to a place.",
"usedBy": [
"MECH"
],
"icon": "room",
"goal": "handover",
"label": "Rooms numbered and named by the plan"
},
{
"id": "worksets",
"help": "Elements must sit on a named workset so each team can find and control its own work.",
"icon": "workset",
"goal": "basics",
"label": "Elements on a named workset"
},
{
"id": "view-names",
"help": "Views named by the rules can be found by everyone on the project.",
"icon": "name",
"goal": "basics",
"label": "Views named by the naming rules"
Expand All @@ -168,6 +188,10 @@
"rules": [
{
"id": "on-level",
"help": "An element that is not tied to a level cannot be counted by floor.",
"usedBy": [
"CON"
],
"icon": "level",
"goal": "cost",
"label": "Elements on a level",
Expand All @@ -178,6 +202,13 @@
},
{
"id": "clashes",
"help": "Places where elements of two firms occupy the same space and nobody has resolved it.",
"usedBy": [
"ARCH",
"STRUCT",
"MECH",
"CON"
],
"icon": "clash",
"goal": "change",
"label": "Clashes open for more than one coordination cycle",
Expand All @@ -188,6 +219,7 @@
},
{
"id": "warnings",
"help": "Revit warnings point to modelling errors that make quantities unreliable.",
"icon": "warning",
"goal": "change",
"label": "Revit warnings",
Expand All @@ -198,6 +230,7 @@
},
{
"id": "dup-mark",
"help": "Two pieces of equipment with the same Mark cannot be told apart at handover.",
"icon": "duplicate",
"goal": "handover",
"label": "No duplicate Mark",
Expand All @@ -208,6 +241,7 @@
},
{
"id": "worksets-exist",
"help": "The worksets named in the plan must exist in every model.",
"icon": "workset",
"goal": "basics",
"label": "The named worksets exist",
Expand All @@ -218,6 +252,7 @@
},
{
"id": "dup-levels",
"help": "Two levels at the same height make elements land on the wrong floor.",
"icon": "level",
"goal": "basics",
"label": "Duplicate levels",
Expand Down
Loading
Loading