feat: every Operational requirement verified by a Check; eval spread and report
The operating model is refused while an Operational requirement is verified by no Check, from it or from a Condition it comes from; the architect is told so, and the operating-chain Skill lists it. Six of nine earlier runs left a requirement unverified. The evaluation checks it too, runs each case N times (--repeat), reports the spread of people, cost, Roles, Checks and Capabilities (spread.json), and writes report.md to publish. Result folders are relative to the run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,8 @@
|
||||
The Capabilities are the capability model's, by id. A submission is refused while
|
||||
the graph does not hold together, so what the customer approves is complete: every
|
||||
Capability has one Role answerable for it and someone to do it at the hours it is
|
||||
needed, and everything the customer said must be kept true is carried by a Check.
|
||||
needed, everything the customer said must be kept true is carried by a Check, and
|
||||
every Operational requirement is verified by one.
|
||||
|
||||
The responsibility matrix, the organisation chart and the staffing and cost are
|
||||
written from the graph by code, as views of it.
|
||||
@@ -301,6 +302,21 @@ def check(card: RateCard, frameworks: Collection[str] = ()) -> chain.DataCheck:
|
||||
for identifier in conditions
|
||||
if identifier not in carried
|
||||
]
|
||||
# Every Operational requirement is verified: by a Check from it, or from a
|
||||
# Condition it comes from. Serving it with a Capability says who does the
|
||||
# work; a Check says how anyone would know it is done.
|
||||
for requirement in chain.requirements(upstream):
|
||||
identifier = str(requirement["id"])
|
||||
named = requirement.get("source") or []
|
||||
named = [named] if isinstance(named, str) else named
|
||||
if identifier not in carried and not any(
|
||||
str(source) in carried and str(source) in conditions for source in named
|
||||
):
|
||||
problems.append(
|
||||
f"{name}: Operational requirement {identifier} is verified by no "
|
||||
"Check: give it one, from the requirement or from a Condition "
|
||||
"it comes from"
|
||||
)
|
||||
problems += check_measures(
|
||||
graph, scope, capabilities, by_capability, roles, frameworks, name
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user