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
29 changes: 20 additions & 9 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.1` (draft).
- Format name: `openbep-compliance-series`, version `0.2` (draft). 0.2 adds three optional counts per role; a 0.1 file still loads.
- 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 @@ -48,16 +48,21 @@ versions[] in order
order, label, tag, created, milestone (the one in force), uploadedBy[] (role codes)
state checked | notChecked (then: reason)
elementCount
byRole { CODE: { elements, required, met, uploaded, elementsAdded, valuesFixed, valuesBroken } }
byRole { CODE: { elements, required, met, uploaded, elementsAdded, valuesFixed, valuesBroken,
wrong, newRequired, newMet } } the last three are optional (0.2)
valueChecks { checkId: { CODE: [required, met] } } adds up to byRole
rules { ruleId: { value, pass } }
```

- **required** = the number of values the plan asks for at the milestone in force (elements × the parameters
required for their element type). **met** = how many hold a real value, by the requirement file's own
definition of a real value.
- **valuesFixed** = values that did not meet the plan in the previous version and do now. **valuesBroken** = the
reverse. Elements are matched between versions by document name + Revit element id.
- **valuesFixed** = required values that meet the plan now and did not in the previous version, including
values on elements added since. **valuesBroken** = values that met the plan and no longer do. Elements are matched between versions by document name + Revit element id.
- **wrong** = required values that hold something that is not a real value (a placeholder, a value outside
the allowed list). The rest of required − met is empty.
- **newRequired**, **newMet** = the values required on elements added since the previous version, and how many
of them are already filled.
- A role that uploaded nothing keeps its previous numbers, with `uploaded: false` and zeros for the three
change counts.
- A version that could not be checked has no numbers and a `reason`. A gap is never a zero.
Expand All @@ -73,12 +78,18 @@ versions[] in order
| Pace | valuesFixed over the last four working periods ÷ 4. Holiday periods are skipped. No upload counts as zero. |
| Needed pace | (target × required − met) ÷ working periods left to the milestone |
| Model rules | pass or fail as the checker says; never averaged into a percentage |
| Gate | passes when overall compliance ≥ target and every model rule passes |
| Gap | per value check and role: target × required − met, largest first |
| New elements arrive filled | newMet ÷ newRequired over the last four working periods |

## What every screen shows the same way

1. Summary: overall compliance, model rules met, forecast at the milestone, versions checked.
2. Overall compliance over time, with the stepped target, milestones, holidays and unchecked versions.
3. One row per role: compliance, pace, needed pace, uploads. One square per role per week.
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 the largest gaps, by check and by firm.
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.
One square per role per week. A firm filter narrows the whole page to one role.
4. One card per goal: compliance over time, each role's share, its value checks, its model rules.
5. What changed between two versions, by role, then rules, then value checks.
6. Every check by every version. The arrow is the direction of the value; the colour is better or worse.
Expand All @@ -105,8 +116,8 @@ from a real project without someone filling the gaps by hand:
(known fault 7 in `docs/model-check-screen`).
5. **Per-document counts in the result.** The result file gives counts per element type for the whole model,
not per Revit document, so a firm's share cannot be worked out.
6. **Fixed and broken counts.** The result file lists failing elements per model rule only, not per required
value.
6. **Fixed, broken, wrong and new-element counts.** The result file lists failing elements per model rule
only, not per required value, and does not tell a wrong value from an empty one.

Items 1 to 4 are an addition to the requirement file (Builder). Items 5 and 6 are an addition to the result
file (checker). With both, a small script turns a folder of results into this series, with no judgment calls.
23 changes: 23 additions & 0 deletions compliance/RESEARCH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# What similar dashboards do, and what this page took from them

Read on 2026-11-23. Public pages only. Each row names what the source says and what changed on
`/compliance/` because of it. Nothing here is a claim about how good those products are.

| Source | What it does | Taken into round two |
|---|---|---|
| SonarQube, quality gates ([docs](https://docs.sonarsource.com/sonarqube-server/9.8/user-guide/clean-as-you-code)) | One gate, "a set of conditions that tells you whether or not your project is ready for release". | **The gate** at the top of the page: would this version pass the milestone, and which of the plan's conditions fail. |
| SonarQube, new code (same page) | Standards are enforced on new code: "New code is the part of the codebase you can act on most efficiently." | **New elements arrive filled**: of the values required on elements a firm just added, the share already filled. |
| Codecov, patch and project coverage ([docs](https://docs.codecov.com/docs/commit-status), [FAQ](https://docs.codecov.com/docs/frequently-asked-questions)) | Two numbers: coverage of the whole project, and coverage "ONLY of the code that has been changed". | Same split: overall compliance beside the compliance of what was added this period. |
| Plannerly Verify ([page](https://plannerly.com/verify/)) | "every value on every model is marked correct, incorrect or missing". | **Wrong or empty**: values that do not meet the plan are split into wrong (a placeholder, a value not allowed) and empty. |
| Plannerly Verify (same page) | "Filter it by milestone, team, team member, status or work package, so each person sees the part they're accountable for." | **Firm filter**: the whole page narrowed to one firm. |
| Plannerly Verify (same page) | "shows what passes, what fails and who owns the fix"; a PDF report that can "go out every week". | **Where the gap is**: the largest shortfalls by check and by firm. **Print this version**, and an address that reopens the same version and firm. |
| Autodesk Model Checker for Revit with Power BI ([support article](https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/How-to-create-Power-BI-Dashboard-for-model-checker-results-of-Autodesk-Interoperability-Tools.html), [AU class](https://www.autodesk.com/autodesk-university/class/Automatic-Checking-Your-BIM-360-Models-2020)) | Check results ("pass/fail, counts, or lists") exported to a Power BI template that the team loads and refreshes. | Nothing copied. It confirms the reason for one fixed data format: a template that must be rebuilt or re-pointed for each project is the thing to avoid. |
| Own addition, no source | Draw what is required and what is filled as two lines, so that a plan asking for more is not mistaken for lost progress. | **Values: required and filled** view of the main chart. It shows why the percentage drops after a milestone: the plan asks for more. |

## Not taken, and why

- **A single letter grade (A to E).** It hides which condition failed. The gate lists the conditions instead.
- **3D colouring of elements.** That belongs in the checker (VIM Flex shows failing elements in 3D). OpenBEP
writes the plan and does not check or display models.
- **Per-person breakdown.** The plan names firms and roles. Ranking individuals is not a use the plan asks for.
- **Issue boards.** Assigning and tracking issues is the common data environment's job.
22 changes: 17 additions & 5 deletions compliance/build_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ def lerp(points, x):
# Each milestone asks for more values per element than the one before (the LOD matrix steps up),
# so the share filled drops the day after a milestone even though nothing was lost.
GROWTH = {'prelim100': 1.0, 'final90': 1.18, 'ifc': 1.30, 'constr': 1.33}
# Of the values that do not meet the plan, the share that holds something wrong (a placeholder, a value
# outside the allowed list) rather than nothing. MECH fills many placeholders.
WRONG = {'ARCH': .14, 'STRUCT': .08, 'MECH': .38, 'CON': .2}
# Of the values required on elements added this week, the share that arrives filled. A firm that models
# clean keeps this high; a firm that models first and fills later does not.
CLEAN = {'ARCH': .82, 'STRUCT': .93, 'MECH': .44, 'CON': .66}
# Weeks a role uploaded nothing new. The federated version keeps that role's previous model.
NO_UPLOAD = {
'ARCH': {'2027-04-16', '2027-04-30', '2027-05-07'},
Expand Down Expand Up @@ -129,12 +135,12 @@ def rule_values(day, i):
continue
n += 1
ms = next((m for m in MILESTONES if day <= D(m['date'])), MILESTONES[-1])
uploaded, fixed, broken, added = [], {}, {}, {}
uploaded, fixed, broken, added, newq, newm = [], {}, {}, {}, {}, {}
for r in ROLES:
c = r['code']
if not active(c, day): continue
if iso in NO_UPLOAD.get(c, ()) and state[c] is not None:
fixed[c] = broken[c] = added[c] = 0
fixed[c] = broken[c] = added[c] = newq[c] = newm[c] = 0
st = state[c]
if st['ms'] != ms['id']: # same model, but the plan now asks for more values
g = GROWTH[ms['id']] / GROWTH[st['ms']]
Expand All @@ -157,7 +163,11 @@ def rule_values(day, i):
fixed[c] = max(0, met_new - met_old + b) if old else 0
broken[c] = b if old else 0
added[c] = el - old['elements'] if old else el
state[c] = {'elements': el, 'checks': checks, 'ms': ms['id']}
req_all = sum(x[0] for x in checks.values())
newq[c] = round(max(0, added[c]) * req_all / el) if old else 0
newm[c] = min(fixed[c], round(newq[c] * min(.99, CLEAN[c] + R.uniform(-.06, .06))))
wrong = round((req_all - met_new) * min(.95, WRONG[c] + R.uniform(-.03, .03)))
state[c] = {'elements': el, 'checks': checks, 'ms': ms['id'], 'wrong': wrong}
v = {
'order': n, 'label': f'Version {n}', 'tag': f'v{n}', 'created': iso + 'T16:00:00-05:00',
'milestone': ms['id'], 'uploadedBy': uploaded,
Expand All @@ -168,7 +178,9 @@ def rule_values(day, i):
else:
v['elementCount'] = sum(s['elements'] for s in state.values() if s)
v['byRole'] = {c: {'elements': s['elements'], 'required': sum(x[0] for x in s['checks'].values()), 'met': sum(x[1] for x in s['checks'].values()),
'uploaded': c in uploaded, 'elementsAdded': added[c], 'valuesFixed': fixed[c], 'valuesBroken': broken[c]}
'wrong': s['wrong'],
'uploaded': c in uploaded, 'elementsAdded': added[c], 'valuesFixed': fixed[c], 'valuesBroken': broken[c],
'newRequired': newq[c], 'newMet': newm[c]}
for c, s in state.items() if s}
v['valueChecks'] = {vc['id']: {c: s['checks'][vc['id']] for c, s in state.items() if s and vc['id'] in s['checks']} for vc in VALUE_CHECKS}
rv = rule_values(day, n)
Expand All @@ -179,7 +191,7 @@ def rule_values(day, i):
versions.append(v)

doc = {
'format': 'openbep-compliance-series', 'formatVersion': '0.1', 'example': True,
'format': 'openbep-compliance-series', 'formatVersion': '0.2', '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},
Expand Down
Loading
Loading