diff --git a/compliance/FORMAT.md b/compliance/FORMAT.md
index 6f1aef1..b941ca1 100644
--- a/compliance/FORMAT.md
+++ b/compliance/FORMAT.md
@@ -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.
@@ -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)
@@ -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 |
@@ -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.
diff --git a/compliance/build_example.py b/compliance/build_example.py
index 85d0593..ae63516 100644
--- a/compliance/build_example.py
+++ b/compliance/build_example.py
@@ -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
@@ -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,
}
diff --git a/compliance/example-school.json b/compliance/example-school.json
index ffce241..8f3bc69 100644
--- a/compliance/example-school.json
+++ b/compliance/example-school.json
@@ -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": {
@@ -118,41 +118,49 @@
"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"
}
@@ -160,6 +168,7 @@
"rules": [
{
"id": "on-level",
+ "icon": "level",
"goal": "cost",
"label": "Elements on a level",
"limit": 95,
@@ -169,6 +178,7 @@
},
{
"id": "clashes",
+ "icon": "clash",
"goal": "change",
"label": "Clashes open for more than one coordination cycle",
"limit": 25,
@@ -178,6 +188,7 @@
},
{
"id": "warnings",
+ "icon": "warning",
"goal": "change",
"label": "Revit warnings",
"limit": 1500,
@@ -187,6 +198,7 @@
},
{
"id": "dup-mark",
+ "icon": "duplicate",
"goal": "handover",
"label": "No duplicate Mark",
"limit": 0,
@@ -196,6 +208,7 @@
},
{
"id": "worksets-exist",
+ "icon": "workset",
"goal": "basics",
"label": "The named worksets exist",
"limit": 0,
@@ -205,6 +218,7 @@
},
{
"id": "dup-levels",
+ "icon": "level",
"goal": "basics",
"label": "Duplicate levels",
"limit": 0,
diff --git a/compliance/index.html b/compliance/index.html
index 139af67..af917d2 100644
--- a/compliance/index.html
+++ b/compliance/index.html
@@ -167,13 +167,37 @@
.msgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}
.msc{background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--line2);border-radius:var(--r-md);padding:12px 14px;display:flex;flex-direction:column;gap:6px;min-width:0}
.msc.pass{border-top-color:var(--good)}.msc.miss{border-top-color:var(--bad)}.msc.now{border-top-color:var(--accent)}
-.msc .mn{display:flex;gap:8px;align-items:baseline}.msc .mn i{font-style:normal;font-family:var(--mono);font-size:12px;border:1px solid var(--line2);border-radius:50%;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:none}
+.msc .mn{display:flex;gap:8px;align-items:baseline}.msc .mn>i{font-style:normal;font-family:var(--mono);font-size:12px;border:1px solid var(--line2);border-radius:50%;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.msc .md{font-size:12px;color:var(--muted)}
.msc .mv{font-size:22px;font-weight:700}.msc .mv small{font-size:13px;font-weight:400;color:var(--muted)}
.msc ul{list-style:none;margin:0;padding:0;font-size:12px;display:flex;flex-direction:column;gap:3px}
.msc .who{display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-size:12px}
.msc .btn{align-self:flex-start;margin-top:auto}
.fblock{margin-bottom:14px;min-width:0}.fh{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;justify-content:space-between;padding:8px 2px}.fh .md{color:var(--muted);font-size:12px}.fs{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;font-size:13px}
+.ico{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
+.ib{width:28px;height:28px;border-radius:var(--r-md);background:var(--sunk);display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--muted)}
+.ib.ok{background:var(--good-soft);color:var(--good)}.ib.no{background:var(--bad-soft);color:var(--bad)}
+.dl{display:flex;gap:8px;align-items:flex-start;min-width:180px}
+.sev{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;white-space:nowrap}
+.sev svg{flex:none}.sev rect{fill:var(--line2)}.sev.s0 rect.on{fill:var(--bad)}.sev.s1 rect.on{fill:var(--warn)}.sev.s2 rect.on{fill:var(--faint)}
+.tl{display:block;width:220px;max-width:100%;height:auto}
+.tl .base{stroke:var(--line2);stroke-width:2}.tl .age{stroke-width:6}.tl .u0{stroke:var(--bad)}.tl .u1{stroke:var(--warn)}.tl .u2{stroke:var(--good)}
+.tl .proj{stroke-width:2;stroke-dasharray:3 3}.tl .today{stroke:var(--ink);stroke-width:1.5}.tl .msd{fill:var(--surface);stroke:var(--ink);stroke-width:1.5}
+.trend{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12px}
+.segs{display:flex;gap:3px}.segs i{flex:1;height:6px;border-radius:2px;max-width:60px}.segs .u0{background:var(--bad)}.segs .u1{background:var(--warn)}.segs .u2{background:var(--good)}
+.msdots{display:inline-flex;gap:3px;vertical-align:middle}.msdots i{font-style:normal;width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--surface)}.msdots .ok{background:var(--good)}.msdots .no{background:var(--bad)}
+.steplad{display:inline-flex;align-items:flex-end;gap:2px;margin-right:6px;vertical-align:middle}.steplad i{width:6px;background:var(--line2);border-radius:1px}.steplad i.on{background:var(--bad)}.steplad i:nth-child(1){height:6px}.steplad i:nth-child(2){height:10px}.steplad i:nth-child(3){height:14px}.steplad i:nth-child(n+4){height:18px}
+.msc ul.cond{font-size:13px;gap:8px}.cond li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:start}.cond b{font-weight:500}.cond small{display:block;color:var(--muted);font-size:12px}
+.steps{list-style:none;margin:0;padding:34px 28px 10px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(124px,1fr)}
+.steps li{position:relative;text-align:center;font-size:12px;color:var(--muted);padding:0 6px;display:flex;flex-direction:column;align-items:center;gap:1px}
+.steps li:before{content:'';position:absolute;top:10px;left:-50%;width:100%;height:3px;background:var(--line2)}
+.steps li:first-child:before{left:0;width:50%}
+.steps li.pass:before,.steps li.miss:before{background:var(--faint)}
+.steps li.now:before{background:linear-gradient(90deg,var(--faint) var(--p),var(--line2) var(--p))}
+.steps .nd{position:relative;z-index:1;width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;background:var(--surface);border:2px solid var(--line2);margin-bottom:3px}
+.steps .pass .nd{background:var(--good);border-color:var(--good);color:var(--surface)}.steps .miss .nd{background:var(--bad);border-color:var(--bad);color:var(--surface)}.steps .now .nd{border-color:var(--accent);color:var(--accent-ink)}
+.steps b{color:var(--ink);font-weight:500}
+.steps .td{position:absolute;top:-28px;transform:translateX(-50%);font-size:10px;color:var(--ink);white-space:nowrap;line-height:1.15;z-index:2}
.rules{margin:8px 0 0;padding-left:18px;font-size:13px;color:var(--muted);max-width:100ch}.rules li{margin:2px 0}.rules b{color:var(--ink)}
td small.sm{display:block;color:var(--muted);font-size:12px}
.seg{display:inline-flex}.seg .btn{border-radius:0;margin-left:-1px}.seg .btn:first-child{border-radius:var(--r-sm) 0 0 var(--r-sm);margin-left:0}.seg .btn:last-child{border-radius:0 var(--r-sm) var(--r-sm) 0}
@@ -207,7 +231,7 @@
.pace thead{display:none}.pace table,.pace tbody{display:block}
.pace tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;padding:12px;border-bottom:1px solid var(--line)}
.pace td{display:block;border:0;padding:0;text-align:left!important;min-width:0}
- .pace td:first-child{grid-column:1/-1}
+ .pace td:first-child,.pace td.full{grid-column:1/-1}
.pace td[data-l]:before{content:attr(data-l);display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:2px}
.mx .rh{min-width:170px;max-width:200px}
}
@@ -253,6 +277,7 @@
Major milestones
What the model had to reach at each milestone, and what it reached. Seen from the version selected above.
Nothing open: every check of ${F?esc(F):'every firm'} meets the ${m.targetPercent} % target and every model rule passes at this version.
`; if(!ds.length) $('#gaps').innerHTML=none; else if(group==='u') $('#gaps').innerHTML=tbl(ds,8); else{ // one block per firm, the firm with the most urgent load first; a rule owned by two firms shows under both - const blocks=ROLES.filter(r=>v.byRole[r.code]&&(!F||r.code===F)).map(ro=>{const c=ro.code,mine=ds.filter(d=>d.owners.includes(c)).map(d=>d.by?{...d,owners:[c]}:d),k=[0,1,2].map(q=>mine.filter(d=>d.urg===q).length);return {ro,c,mine,k,p:roleP(v,c)}}) + const j=back(sel,4); + const blocks=ROLES.filter(r=>v.byRole[r.code]&&(!F||r.code===F)).map(ro=>{const c=ro.code,mine=ds.filter(d=>d.owners.includes(c)).map(d=>d.by?{...d,owners:[c]}:d),k=[0,1,2].map(q=>mine.filter(d=>d.urg===q).length); + const h=[];for(let i=sel;i>=0&&h.length<12;i--) if(checked(V[i])&&V[i].byRole[c]) h.unshift(roleP(V[i],c)); + return {ro,c,mine,k,p:roleP(v,c),h,dl:j>=0&&V[j].byRole[c]?roleP(v,c)-roleP(V[j],c):null}}) .sort((a,b)=>b.k[0]-a.k[0]||b.k[1]-a.k[1]||b.mine.length-a.mine.length); const whole=ds.filter(d=>!d.owners.length); - $('#gaps').innerHTML=blocks.map(b=>`Nothing open for this firm at this version.
'}Nothing open for this firm at this version.
'}| Firm | Milestones met | Missed in a row | ${esc2.length?'Step set by the plan | ':''}Open now | Oldest open |
|---|