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
14 changes: 11 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.3` (draft). 0.2 added three optional counts per role; 0.3 adds the plan's escalation steps and the owner of a failing rule, both optional. Older files still load.
- 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.
- 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 }
rules[] { id, goal, label, limit, unit, limitText, direction }
valueChecks[] { id, goal, label, icon }
rules[] { id, goal, label, limit, unit, limitText, direction, icon }
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
versions[] in order
order, label, tag, created, milestone (the one in force), uploadedBy[] (role codes)
Expand Down Expand Up @@ -86,6 +88,8 @@ versions[] in order
| Open since | first version of the current unbroken run of that deficiency |
| Closes at this pace | size ÷ pace of the last four working periods, counted forward skipping holidays |
| 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. |
| 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 |

Expand All @@ -97,6 +101,10 @@ versions[] in order
Then the active deficiencies, grouped by firm or all together, most urgent first, each with its owner,
size, age, pace and closing date. Then one accountability row per firm: milestones met and missed,
missed in a row, the plan's step, what is open now.
Then one payment card per firm: the four conditions, met or missing.
Every deficiency carries the same graphics: severity bars, the icon of its check, a bar of size against
the target or limit, a trend line with an arrow, and a timeline (opened, this version, milestone, closing date).
The milestones are also drawn as one track.
2. Overall compliance over time, with the stepped target, milestones, holidays and unchecked versions; the
same chart in values shows what the plan requires against what is filled.
3. One row per role: compliance, wrong and empty, pace, how clean new elements arrive, needed pace, uploads.
Expand Down
32 changes: 16 additions & 16 deletions compliance/build_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', 'goal': 'cost', 'label': 'Assembly Code filled', 'k': {'ARCH': 1, 'STRUCT': 1, 'MECH': 1, 'CON': .2}, 'lag': {'MECH': .85}},
{'id': 'real-material', 'goal': 'cost', 'label': 'Elements with a real material', 'k': {'ARCH': 1, 'STRUCT': 1}, 'lag': {'ARCH': .9}},
{'id': 'lod-params', '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', 'goal': 'change', 'label': 'Fire rating on walls, doors and floors', 'k': {'ARCH': .35, 'STRUCT': .2}, 'lag': {'ARCH': 1.05}},
{'id': 'asset-data', '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', 'goal': 'handover', 'label': 'Rooms numbered and named by the plan', 'k': {'ARCH': .12}, 'lag': {'ARCH': 1.1}},
{'id': 'worksets', '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', 'goal': 'basics', 'label': 'Views named by the naming rules', 'k': {'ARCH': .06, 'STRUCT': .05, 'MECH': .05, 'CON': .03}, 'lag': {'MECH': .8}},
{'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}},
]
RULES = [
{'id': 'on-level', 'goal': 'cost', 'label': 'Elements on a level', 'limit': 95, 'unit': '%', 'limitText': 'at least 95 %', 'direction': 'higherIsBetter'},
{'id': 'clashes', 'goal': 'change', 'label': 'Clashes open for more than one coordination cycle', 'limit': 25, 'unit': '', 'limitText': 'at most 25', 'direction': 'lowerIsBetter'},
{'id': 'warnings', 'goal': 'change', 'label': 'Revit warnings', 'limit': 1500, 'unit': '', 'limitText': 'at most 1,500', 'direction': 'lowerIsBetter'},
{'id': 'dup-mark', 'goal': 'handover', 'label': 'No duplicate Mark', 'limit': 0, 'unit': '', 'limitText': 'limit 0', 'direction': 'lowerIsBetter'},
{'id': 'worksets-exist', 'goal': 'basics', 'label': 'The named worksets exist', 'limit': 0, 'unit': '', 'limitText': 'limit 0 missing', 'direction': 'lowerIsBetter'},
{'id': 'dup-levels', 'goal': 'basics', 'label': 'Duplicate levels', 'limit': 0, 'unit': '', 'limitText': 'limit 0', 'direction': 'lowerIsBetter'},
{'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'},
]

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.3', 'example': True,
'format': 'openbep-compliance-series', 'formatVersion': '0.4', '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')} for vc in VALUE_CHECKS],
'valueChecks': [{k: v for k, v in vc.items() if k in ('id', 'goal', 'label', 'icon')} for vc in VALUE_CHECKS],
'rules': RULES,
'versions': versions,
}
Expand Down
16 changes: 15 additions & 1 deletion compliance/example-school.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"format": "openbep-compliance-series",
"formatVersion": "0.3",
"formatVersion": "0.4",
"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 @@ -118,48 +118,57 @@
"valueChecks": [
{
"id": "assembly-code",
"icon": "code",
"goal": "cost",
"label": "Assembly Code filled"
},
{
"id": "real-material",
"icon": "material",
"goal": "cost",
"label": "Elements with a real material"
},
{
"id": "lod-params",
"icon": "value",
"goal": "change",
"label": "Parameters required by the LOD matrix at this milestone"
},
{
"id": "fire-rating",
"icon": "fire",
"goal": "change",
"label": "Fire rating on walls, doors and floors"
},
{
"id": "asset-data",
"icon": "asset",
"goal": "handover",
"label": "Equipment asset data (OB_ asset parameters)"
},
{
"id": "rooms",
"icon": "room",
"goal": "handover",
"label": "Rooms numbered and named by the plan"
},
{
"id": "worksets",
"icon": "workset",
"goal": "basics",
"label": "Elements on a named workset"
},
{
"id": "view-names",
"icon": "name",
"goal": "basics",
"label": "Views named by the naming rules"
}
],
"rules": [
{
"id": "on-level",
"icon": "level",
"goal": "cost",
"label": "Elements on a level",
"limit": 95,
Expand All @@ -169,6 +178,7 @@
},
{
"id": "clashes",
"icon": "clash",
"goal": "change",
"label": "Clashes open for more than one coordination cycle",
"limit": 25,
Expand All @@ -178,6 +188,7 @@
},
{
"id": "warnings",
"icon": "warning",
"goal": "change",
"label": "Revit warnings",
"limit": 1500,
Expand All @@ -187,6 +198,7 @@
},
{
"id": "dup-mark",
"icon": "duplicate",
"goal": "handover",
"label": "No duplicate Mark",
"limit": 0,
Expand All @@ -196,6 +208,7 @@
},
{
"id": "worksets-exist",
"icon": "workset",
"goal": "basics",
"label": "The named worksets exist",
"limit": 0,
Expand All @@ -205,6 +218,7 @@
},
{
"id": "dup-levels",
"icon": "level",
"goal": "basics",
"label": "Duplicate levels",
"limit": 0,
Expand Down
Loading
Loading