qfai 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -16
- package/assets/defaults/workflows/apply-settled.yml +2 -0
- package/assets/defaults/workflows/decide-design.yml +1 -6
- package/assets/defaults/workflows/decompose-epic.yml +1 -1
- package/assets/init/.claude/settings.json +1 -1
- package/assets/init/.qfai/assistant/agent/architecture-reviewer.md +1 -0
- package/assets/init/.qfai/assistant/agent/fullstack-engineer.md +6 -9
- package/assets/init/.qfai/assistant/agent/implementation-reviewer.md +9 -1
- package/assets/init/.qfai/assistant/agent/product-surface-reviewer.md +70 -4
- package/assets/init/.qfai/assistant/agent/requirements-reviewer.md +1 -0
- package/assets/init/.qfai/assistant/rule/constitution.md +3 -2
- package/assets/init/.qfai/assistant/rule/drift-protocol.md +5 -5
- package/assets/init/.qfai/assistant/rule/references/deliberation-record-template.md +23 -0
- package/assets/init/.qfai/assistant/rule/references/deliberation-record.md +36 -0
- package/assets/init/.qfai/assistant/rule/references/griller-recommendations.md +3 -3
- package/assets/init/.qfai/assistant/rule/references/launcher-preflight.md +27 -0
- package/assets/init/.qfai/assistant/rule/references/reviewer-findings.md +9 -0
- package/assets/init/.qfai/assistant/rule/references/reviewer-remit.md +23 -15
- package/assets/init/.qfai/assistant/rule/references/visual-reference-survey.md +146 -0
- package/assets/init/.qfai/assistant/rule/references/worker-edit-boundary.md +2 -0
- package/assets/init/.qfai/assistant/rule/research-first-protocol.md +49 -11
- package/assets/init/.qfai/assistant/rule/review-convergence.md +15 -16
- package/assets/init/.qfai/assistant/rule/shared-skill-delegation-baseline.md +3 -0
- package/assets/init/.qfai/assistant/rule/shared-skill-operating-baseline.md +13 -25
- package/assets/init/.qfai/assistant/rule/test-layers.md +8 -0
- package/assets/init/.qfai/assistant/rule/thinking.md +10 -5
- package/assets/init/.qfai/assistant/rule/ui-definition-protocol.md +4 -4
- package/assets/init/.qfai/assistant/rule/ui-procurement.md +50 -10
- package/assets/init/.qfai/assistant/rule/workflow.md +4 -3
- package/assets/init/.qfai/assistant/skill/qfai-configure/SKILL.md +3 -1
- package/assets/init/.qfai/assistant/skill/qfai-discussion/SKILL.md +22 -56
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/design-dna-intake.md +11 -14
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-coverage-checklist.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-grilling/SKILL.md +6 -4
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/discussion-delegation.md +46 -0
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/glossary-check.md +23 -0
- package/assets/init/.qfai/assistant/skill/qfai-grilling/references/session-check.md +25 -0
- package/assets/init/.qfai/assistant/skill/qfai-implement/SKILL.md +12 -1
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/parallelization-policy.md +2 -3
- package/assets/init/.qfai/assistant/skill/qfai-implement/references/ui-affecting.md +47 -8
- package/assets/init/.qfai/assistant/skill/qfai-maintain/SKILL.md +2 -0
- package/assets/init/.qfai/assistant/skill/qfai-migration-v1-to-v2/SKILL.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/SKILL.md +6 -2
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/generator-prompt.md +6 -9
- package/assets/init/.qfai/assistant/skill/qfai-prototyping/references/reviewer-prompt.md +24 -15
- package/assets/init/.qfai/assistant/skill/qfai-run/SKILL.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-run/references/extraction.md +2 -1
- package/assets/init/.qfai/assistant/skill/qfai-run/references/operator-screens.md +7 -3
- package/assets/init/.qfai/assistant/skill/qfai-run/references/stage-points.md +4 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/business-ui-patterns.md +180 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/contract-artifact-rules.md +14 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-anti-patterns.md +14 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-md-authoring.md +39 -24
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/design-md-brand-catalog.md +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/marketing-ui-patterns.md +194 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/requirements-decomposition.md +27 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-execution-playbook.md +29 -22
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-phase-checklists.md +3 -3
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-pre-draft-grilling.md +4 -4
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-quality-gate.md +1 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/sdd-triage.md +4 -2
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/spec-traceability-rules.md +6 -6
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md +87 -4
- package/assets/init/.qfai/assistant/skill/qfai-sdd/references/ui-design-contract-normalization.md +6 -7
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/api-contract.sample.yaml +3 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/db-contract.sample.sql +3 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/contracts/ui-contract.sample.yaml +40 -1
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/report/preflight_summary.md +10 -16
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/01_policy/constraint.md +10 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/01_policy/initiative.md +5 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/03_contract/tech.md +1 -0
- package/assets/init/.qfai/assistant/skill/qfai-sdd/templates/spec/decisions.md +8 -2
- package/assets/init/.qfai/assistant/skill/qfai-triage/SKILL.md +4 -0
- package/assets/init/.qfai/assistant/skill/qfai-verify/SKILL.md +4 -2
- package/assets/init/.qfai/assistant/skill/qfai-verify/references/context-load.md +2 -1
- package/assets/init/.qfai/assistant/skill/qfai-verify/references/verify-output-contract.md +4 -1
- package/assets/init/.qfai/assistant/step/common-design-md/STEP.md +11 -8
- package/assets/init/.qfai/assistant/step/common-gate-run/STEP.md +1 -1
- package/assets/init/.qfai/assistant/step/common-grilling-record/STEP.md +25 -60
- package/assets/init/.qfai/assistant/step/common-review-cycle/STEP.md +18 -6
- package/assets/init/.qfai/assistant/step/discussion-interview/STEP.md +45 -95
- package/assets/init/.qfai/assistant/step/discussion-research/STEP.md +11 -13
- package/assets/init/.qfai/assistant/step/implement-diagnose/STEP.md +2 -2
- package/assets/init/.qfai/assistant/step/implement-scaffold/STEP.md +52 -8
- package/assets/init/.qfai/assistant/step/implement-settled-edit/STEP.md +78 -0
- package/assets/init/.qfai/assistant/step/implement-sweep/STEP.md +3 -3
- package/assets/init/.qfai/assistant/step/implement-tdd/STEP.md +20 -2
- package/assets/init/.qfai/assistant/step/prototyping-grill/STEP.md +4 -0
- package/assets/init/.qfai/assistant/step/prototyping-handoff/STEP.md +3 -2
- package/assets/init/.qfai/assistant/step/prototyping-loop/STEP.md +6 -1
- package/assets/init/.qfai/assistant/step/sdd-contract/STEP.md +58 -11
- package/assets/init/.qfai/assistant/step/sdd-flow/STEP.md +41 -27
- package/assets/init/.qfai/assistant/step/sdd-story/STEP.md +2 -1
- package/assets/init/.qfai/assistant/step/sdd-triage/STEP.md +43 -26
- package/assets/init/.qfai/assistant/step/triage-answer/STEP.md +8 -3
- package/assets/init/.qfai/assistant/step/triage-close/STEP.md +12 -6
- package/assets/init/.qfai/assistant/step/triage-decompose/STEP.md +2 -1
- package/assets/init/.qfai/assistant/step/triage-operate/STEP.md +36 -6
- package/assets/init/.qfai/assistant/step/triage-security-intake/STEP.md +2 -0
- package/assets/init/.qfai/assistant/step/verify-commit/STEP.md +3 -1
- package/assets/init/.qfai/assistant/step/verify-context/STEP.md +3 -3
- package/assets/init/.qfai/assistant/step/verify-release-notes/STEP.md +11 -3
- package/assets/init/.qfai/assistant/step/verify-repo-gate/STEP.md +22 -0
- package/assets/init/root/.agents/rules/delegation-steering.md +4 -2
- package/assets/init/root/.agents/rules/distributed-surface.md +1 -1
- package/assets/init/root/.agents/rules/grilling.md +28 -76
- package/assets/init/root/.agents/rules/interface-clarity.md +98 -6
- package/assets/init/root/.gitattributes +7 -5
- package/assets/init/root/.github/workflows/qfai-docs.yml +1 -1
- package/assets/init/root/qfai.config.yaml +1 -1
- package/assets/mdschema/story/01_policy/constraint.mdschema.yml +46 -2
- package/assets/mdschema/story/01_policy/initiative.mdschema.yml +18 -0
- package/assets/mdschema/story/03_contract/tech.mdschema.yml +5 -2
- package/assets/uix-rev/strategy-review.md +1 -1
- package/dist/cli/index.cjs +3787 -7097
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.mjs +3647 -6970
- package/dist/cli/index.mjs.map +1 -1
- package/dist/graph/cli.cjs +966 -222
- package/dist/graph/cli.cjs.map +1 -1
- package/dist/graph/cli.mjs +942 -198
- package/dist/graph/cli.mjs.map +1 -1
- package/dist/graph/hook.cjs +999 -88
- package/dist/graph/hook.cjs.map +1 -1
- package/dist/graph/hook.mjs +996 -85
- package/dist/graph/hook.mjs.map +1 -1
- package/dist/hook/turn-end.cjs +15 -45
- package/dist/hook/turn-end.cjs.map +1 -1
- package/dist/hook/turn-end.mjs +15 -45
- package/dist/hook/turn-end.mjs.map +1 -1
- package/dist/index.cjs +15398 -18327
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -41
- package/dist/index.d.ts +32 -41
- package/dist/index.mjs +19276 -22214
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-artifact-rules.md +0 -53
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/discussion-completion-matrix.md +0 -133
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/example-mapping-guide.md +0 -18
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/oq-and-deferred-rules.md +0 -84
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui-bearing-playbook.md +0 -95
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/platform_baselines.md +0 -118
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/review_audit_playbook.md +0 -115
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux/trend_scan_playbook.md +0 -81
- package/assets/init/.qfai/assistant/skill/qfai-discussion/references/ui_ux_best_practices.md +0 -184
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/01_Context.md +0 -143
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/03_Story-Workshop.md +0 -104
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/04_Sources.md +0 -276
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/05_Scope.md +0 -36
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/06_REQ.md +0 -26
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/07_NFR.md +0 -24
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/08_Glossary.md +0 -23
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/09_Constraints.md +0 -60
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/11_OQ-Register.md +0 -38
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/prototyping.yaml +0 -8
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/00_index.md +0 -35
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/40_screen_contracts.md +0 -62
- package/assets/init/.qfai/assistant/skill/qfai-discussion/templates/uiux/50_review_input_bundle.md +0 -38
- package/assets/init/.qfai/assistant/step/discussion-oq/STEP.md +0 -70
- package/assets/init/.qfai/assistant/step/discussion-pack/STEP.md +0 -199
- package/assets/init/.qfai/assistant/step/discussion-uiux/STEP.md +0 -82
- package/assets/uix-rev/contracts-review.md +0 -27
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: triage-operate
|
|
3
3
|
owner: qfai-triage
|
|
4
|
-
purpose: "Carry out an operation the user named on work that is already done, observe its result, and change no tracked file."
|
|
4
|
+
purpose: "Carry out an operation the user named on work that is already done, observe its result, and change no tracked file except the run's deliberation record and the `open-questions.md` rows the run wrote."
|
|
5
5
|
requires: []
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -101,9 +101,30 @@ request, or the version edit alone.
|
|
|
101
101
|
`needs-change` with an extraction of it as an `order` naming the `release`
|
|
102
102
|
artifact and the `release-notes` signal, and carry the quoted instruction
|
|
103
103
|
and the named version into that extraction's request, so the next plan
|
|
104
|
-
makes the edit under the same instruction.
|
|
105
|
-
|
|
106
|
-
report
|
|
104
|
+
makes the edit under the same instruction. A version edit the documents
|
|
105
|
+
make by hand, such as a version bump the preparation does not make, is a
|
|
106
|
+
tracked change too: report `needs-change` with an extraction of it as an
|
|
107
|
+
`order` naming the `release` artifact and the `release-delegated`
|
|
108
|
+
qualifier. Its request carries the quoted instruction with its source, the
|
|
109
|
+
approval row `qfai-run` wrote in `decisions.md` before this step, the named
|
|
110
|
+
version, and each file and field the documents name for the edit, as they
|
|
111
|
+
name them, so the next plan's `implement-settled-edit` makes exactly that
|
|
112
|
+
edit. Any other hand-made release edit is reported the same way, its
|
|
113
|
+
request naming each file, field and value the documents give for it.
|
|
114
|
+
Before the report, collect every value the documents need for the edit:
|
|
115
|
+
- A value the documents fix by a stated rule, such as "increment
|
|
116
|
+
versionCode by 1", is computed by that rule and named with the rule
|
|
117
|
+
quoted.
|
|
118
|
+
- A value the documents leave to judgement is asked of the user before the
|
|
119
|
+
report, and the request names the answer. Under a no-question mode, write
|
|
120
|
+
it as an `open-questions.md` row instead and stop before the report, as
|
|
121
|
+
for a release point.
|
|
122
|
+
|
|
123
|
+
A version edit has landed when each field the documents name already
|
|
124
|
+
holds the named version, and each value a rule computes already holds the
|
|
125
|
+
value the rule gave for that version. Then report no `needs-change` for
|
|
126
|
+
it, compute no rule value again, and continue with the preparation.
|
|
127
|
+
|
|
107
128
|
3. Review the release pull request as the project's review rules say, and
|
|
108
129
|
merge it only when they allow, waiting for its checks as above. Where the
|
|
109
130
|
release documents make the merge the instruction for the tag, such as a
|
|
@@ -120,16 +141,25 @@ request, or the version edit alone.
|
|
|
120
141
|
the user has not said they will approve it in this session, stop waiting and
|
|
121
142
|
report the approval as pending.
|
|
122
143
|
5. Report each operation and its result, including an approval still pending.
|
|
144
|
+
After a `needs-change` report for a hand-made release edit, under an
|
|
145
|
+
instruction that delegates more than the version edit, list as the user's
|
|
146
|
+
follow-up: run the release again with the same quoted instruction once the
|
|
147
|
+
edit lands. An instruction that covers only the version edit is complete
|
|
148
|
+
once the edit lands.
|
|
123
149
|
|
|
124
150
|
## What it writes
|
|
125
151
|
|
|
126
152
|
- No file git tracks, apart from the base changes a merge of the base brings
|
|
127
|
-
in.
|
|
153
|
+
in, the run's deliberation record and its `open-questions.md` rows.
|
|
154
|
+
- As the route's last step, after the operation, commit locally only the run's deliberation record
|
|
155
|
+
and the `open-questions.md` rows the run wrote, and push nothing. A run that
|
|
156
|
+
wrote neither commits nothing.
|
|
128
157
|
- The operation, its result and any `needs-change` outcome, in the report.
|
|
129
158
|
|
|
130
159
|
## Gate
|
|
131
160
|
|
|
132
161
|
The stage worker confirms the operation was one the user named, its result is
|
|
133
|
-
recorded as observed, and no tracked file changed beyond a merge of the base
|
|
162
|
+
recorded as observed, and no tracked file changed beyond a merge of the base,
|
|
163
|
+
the run's deliberation record and its `open-questions.md` rows. For a release, it also
|
|
134
164
|
confirms the delegation is quoted with its source, and that no tag, publication
|
|
135
165
|
or publication approval came from the agent.
|
|
@@ -29,6 +29,8 @@ of public view.
|
|
|
29
29
|
|
|
30
30
|
Setting the severity is this step's decision point. Where the run stops there
|
|
31
31
|
for the operator, put the severity and its reason to them before recording it.
|
|
32
|
+
The severity and its reason stay in the private report: they are never a row
|
|
33
|
+
of the deliberation record, which git tracks.
|
|
32
34
|
|
|
33
35
|
## What it writes
|
|
34
36
|
|
|
@@ -19,7 +19,9 @@ The last step of a change route. It records the run's work as a local commit.
|
|
|
19
19
|
|
|
20
20
|
## Writes
|
|
21
21
|
|
|
22
|
-
- One commit on the current branch holding the run's changes
|
|
22
|
+
- One commit on the current branch holding the run's changes and, where the run
|
|
23
|
+
wrote one, its deliberation record. No step edits the record's content after
|
|
24
|
+
that commit.
|
|
23
25
|
- In the final report: the commit, and the files it holds. In the
|
|
24
26
|
`resolve-conflicts` route, also each renumber the merge holds, as old → new.
|
|
25
27
|
|
|
@@ -26,8 +26,8 @@ The file-by-file list is
|
|
|
26
26
|
principles every run keeps are
|
|
27
27
|
`.qfai/assistant/skill/qfai-verify/references/articles.md`.
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
Verify reads normalized specs, contracts and evidence only. It opens no deliberation record: no file under
|
|
30
|
+
`paths.deliberationDir` is read.
|
|
31
31
|
|
|
32
32
|
## Writes
|
|
33
33
|
|
|
@@ -109,7 +109,7 @@ and still missing.
|
|
|
109
109
|
|
|
110
110
|
The step is done when:
|
|
111
111
|
|
|
112
|
-
- the inputs are read and
|
|
112
|
+
- the inputs are read and no deliberation record is among them;
|
|
113
113
|
- the scope is fixed, matches its profile and is stated in the stage
|
|
114
114
|
report;
|
|
115
115
|
- every input the scope needs is resolved;
|
|
@@ -20,7 +20,12 @@ Drafts what a user reads about a release. It releases nothing.
|
|
|
20
20
|
## Writes
|
|
21
21
|
|
|
22
22
|
Only the release-notes files the work order's scope names, or, invoked by
|
|
23
|
-
name, the file the request names
|
|
23
|
+
name, the file the request names, and the run's deliberation record and its
|
|
24
|
+
`open-questions.md` rows.
|
|
25
|
+
|
|
26
|
+
Where this step ends the route, it commits locally only the run's deliberation
|
|
27
|
+
record and the `open-questions.md` rows the run wrote, and pushes nothing. The
|
|
28
|
+
release-notes draft stays uncommitted for the user.
|
|
24
29
|
|
|
25
30
|
## Procedure
|
|
26
31
|
|
|
@@ -39,5 +44,8 @@ changelog's unreleased section each need the user's own instruction, as
|
|
|
39
44
|
|
|
40
45
|
- Every change a user sees since the last release appears in the draft.
|
|
41
46
|
- Every breaking change names its migration step.
|
|
42
|
-
- Only the named files
|
|
43
|
-
|
|
47
|
+
- Only the named files, the run's deliberation record and its
|
|
48
|
+
`open-questions.md` rows were written, and no tag, publication or version
|
|
49
|
+
edit was made.
|
|
50
|
+
- A local commit made here holds only the record and those rows, and nothing
|
|
51
|
+
was pushed.
|
|
@@ -59,6 +59,26 @@ delegates a gate on its own judgment. Retain observed FAIL or
|
|
|
59
59
|
UNRUN results. Where the environment cannot run any other command, ask the user
|
|
60
60
|
to run it and provide the output. Never assume PASS without evidence.
|
|
61
61
|
|
|
62
|
+
### Visual check of a UI change
|
|
63
|
+
|
|
64
|
+
A change that touches a path `uiux.surfacePaths` selects has one more gate in
|
|
65
|
+
scope, recorded in `gates` as `visual check`. It has no command: passing tests
|
|
66
|
+
and a clean validation say nothing about what a user sees. Its `command` lists
|
|
67
|
+
the captures it read, as `verify-output-contract.md` says.
|
|
68
|
+
|
|
69
|
+
1. Take the captures of each changed screen from the screen review the change
|
|
70
|
+
went through, as
|
|
71
|
+
`.qfai/assistant/skill/qfai-implement/references/ui-affecting.md` says.
|
|
72
|
+
2. Check each capture against the screen's UI contract and against the parts
|
|
73
|
+
`.qfai/assistant/skill/qfai-sdd/references/ui-contract-guide.md` requires of
|
|
74
|
+
every screen.
|
|
75
|
+
3. Record the result:
|
|
76
|
+
- PASS only when every changed screen has a capture at the revision under
|
|
77
|
+
verification that matches its contract and lacks no required part;
|
|
78
|
+
- FAIL, naming the screen and what differs, when a capture contradicts its
|
|
79
|
+
contract or a required part is missing;
|
|
80
|
+
- UNRUN, never PASS, when a changed screen has no capture.
|
|
81
|
+
|
|
62
82
|
## Fix loop
|
|
63
83
|
|
|
64
84
|
Quality gates are the decision mechanism. Fix until PASS.
|
|
@@ -305,6 +325,8 @@ The step is done when:
|
|
|
305
325
|
- every gate in scope ran and is recorded, or is recorded UNRUN with the
|
|
306
326
|
reason, or is recorded DELEGATED with its CI check;
|
|
307
327
|
- every gate passes, or each failure has an actionable fix list and an owner;
|
|
328
|
+
- a change under `uiux.surfacePaths` has its `visual check` recorded, and it
|
|
329
|
+
is not PASS without a capture of every changed screen;
|
|
308
330
|
- `verify.json` exists, its `status` matches the gate results and its `scope`
|
|
309
331
|
matches the required validate profile. A delegated validation check must cover
|
|
310
332
|
that same profile and scan; a whole-repository scope still requires a full
|
|
@@ -22,8 +22,10 @@ less than a third correction.
|
|
|
22
22
|
Where the host shows a delegated agent's progress, read its first actions as
|
|
23
23
|
they appear: the files it opens, the commands it runs, its first edit. They show
|
|
24
24
|
whether it read the brief as meant: the right paths, the right step, nothing
|
|
25
|
-
outside what it was given.
|
|
26
|
-
|
|
25
|
+
outside what it was given. Hold them against the work order's `Local checks`
|
|
26
|
+
and `Push` lines: a check the brief did not list, or a push or pull request it
|
|
27
|
+
did not allow, is off course. Where the host shows nothing before the result,
|
|
28
|
+
the result is the first check.
|
|
27
29
|
|
|
28
30
|
## 2. Interrupt early
|
|
29
31
|
|
|
@@ -52,7 +52,7 @@ numbers destroys the information.
|
|
|
52
52
|
## Where internal IDs are fine
|
|
53
53
|
|
|
54
54
|
Traceability inside the repository still needs internal IDs. Use them in
|
|
55
|
-
`.qfai/spec/`, `.qfai/
|
|
55
|
+
`.qfai/spec/`, `.qfai/deliberation/`, `CHANGELOG.md`,
|
|
56
56
|
developer documentation that is not packaged, commit messages, and pull
|
|
57
57
|
request descriptions. Keep them out of doc comments in shipped source: type
|
|
58
58
|
declarations generated from those comments are usually packaged.
|
|
@@ -64,39 +64,15 @@ conditions below determine whether an applicable authorization already exists.
|
|
|
64
64
|
|
|
65
65
|
Discussion is a user session by default. It may run as a delegated session only
|
|
66
66
|
when an actual user instruction explicitly delegates judgment for its requested
|
|
67
|
-
scope.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
This session ends `adopted` only when no node remains open, the frontier is empty,
|
|
77
|
-
no lookup is in flight, and every hard-required consumed input exists in actual
|
|
78
|
-
user data or read evidence. Each critical or document-reserved human decision
|
|
79
|
-
needs an actual human answer or a recorded applicable human authorization:
|
|
80
|
-
an actual user instruction whose scope explicitly covers that decision. Explicit
|
|
81
|
-
user delegation of reversible requested spec, contract or issue judgment takes
|
|
82
|
-
priority over lower-priority document requests for an individual approval.
|
|
83
|
-
Record the instruction as authority and the adopted option as the agents'
|
|
84
|
-
decision, never as a fictional individual human answer. A release, version,
|
|
85
|
-
spending, legal, credential or destructive operation requires actual authority
|
|
86
|
-
covering that operation; an unrelated or general scope does not supply it.
|
|
87
|
-
No-question mode, agent agreement and round exhaustion supply no authority.
|
|
88
|
-
Delegation supplies no unknown fact. Keep a decision outside that authority open;
|
|
89
|
-
use the ordinary no-question path when asking is forbidden, and stop for a
|
|
90
|
-
missing undefaultable input.
|
|
91
|
-
|
|
92
|
-
Record the ending as `adopted`, never as `confirmed`, `user-closed` or
|
|
93
|
-
`no-question` merely to pass a gate. Authoring permission does not waive pack,
|
|
94
|
-
research, OQ, UI, schema, validation or independent-review requirements. In
|
|
95
|
-
particular, a theme not actually chosen by the user remains
|
|
96
|
-
`chosen_by: assumption`, never `user`. Keep its OQ open unless an actual
|
|
97
|
-
specifically applicable user instruction overrides the human-choice requirement;
|
|
98
|
-
record that authority and the agents' choice without changing the schema.
|
|
99
|
-
General delegation does not by itself waive a genuinely reserved human input.
|
|
67
|
+
scope. No-question mode, agent agreement and round exhaustion supply no
|
|
68
|
+
authority. Such a session ends `adopted` only when no node remains open and
|
|
69
|
+
each critical or document-reserved human decision has an actual human answer or
|
|
70
|
+
a recorded applicable authorization.
|
|
71
|
+
|
|
72
|
+
Read `.qfai/assistant/skill/qfai-grilling/references/discussion-delegation.md`
|
|
73
|
+
before declaring a discussion delegated: it holds what to record, the authority
|
|
74
|
+
an instruction supplies and never supplies, and how the session ends. Not
|
|
75
|
+
needed for a discussion held as a user session.
|
|
100
76
|
|
|
101
77
|
### Critical decisions
|
|
102
78
|
|
|
@@ -108,7 +84,7 @@ explicit-delegation conditions, put it to the user when asking is permitted.
|
|
|
108
84
|
| -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
|
|
109
85
|
| It contradicts a spec, a contract or a recorded decision | Changing settled input is the user's decision |
|
|
110
86
|
| Its effect cannot be taken back: a security exposure, lost or corrupted data, a broken released contract, spending, a legal commitment, a public release | A wrong recommendation here is not repaired by the next run |
|
|
111
|
-
| It rests on product or business intent that the request, the
|
|
87
|
+
| It rests on product or business intent that the request, the specs and the contracts all leave unstated | The agents would be inventing what the user wants |
|
|
112
88
|
|
|
113
89
|
Two more nodes reach the user in every session, and neither is a decision the
|
|
114
90
|
agents could recommend: a decision some document requires the user to make and
|
|
@@ -119,10 +95,11 @@ rounds are where the agents weigh it, and the record lets the user overturn it.
|
|
|
119
95
|
|
|
120
96
|
### What an adopted decision owes
|
|
121
97
|
|
|
122
|
-
- **
|
|
123
|
-
the agent that made it, and why. A
|
|
124
|
-
|
|
125
|
-
|
|
98
|
+
- **An Agent decisions row** of the run's deliberation record: at least three
|
|
99
|
+
options, the recommendation taken, the agent that made it, and why. A
|
|
100
|
+
position that disagreed stays in its Background.
|
|
101
|
+
- **The record's path in the final report**, so the user can read every
|
|
102
|
+
adopted decision without being stopped for any.
|
|
126
103
|
|
|
127
104
|
The report does not wait for an answer. A user who disagrees overturns the
|
|
128
105
|
decision the ordinary way: a specification change, or a rerun with the
|
|
@@ -313,26 +290,15 @@ and never takes a critical decision without the recorded user authority above.
|
|
|
313
290
|
## Terms against the glossary
|
|
314
291
|
|
|
315
292
|
Every session, user or delegated and at every stage, checks the terms it hears
|
|
316
|
-
against `<specsDir>/01_policy/glossary.md
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
decision node.
|
|
326
|
-
- A matching term raises nothing. A term in neither glossary is asked about only
|
|
327
|
-
when a decision on the tree turns on its meaning.
|
|
328
|
-
- **A settled term is written at once**, not at the end of the session: to the
|
|
329
|
-
pack's `08_Glossary.md` in discussion, a new term to the project glossary
|
|
330
|
-
where the stage writes the policy layer, otherwise to the stage's evidence,
|
|
331
|
-
beside its adopted decisions, with a line in its final report, and with no
|
|
332
|
-
invoking stage to the session record the user reads. A changed pack term
|
|
333
|
-
rewrites its row and adds no second one.
|
|
334
|
-
- **Changing what the project glossary already defines contradicts a spec.** It is a critical decision, and its row is rewritten only after the user approves it.
|
|
335
|
-
- A definition says what the term is. A rule, a value set or a procedure belongs in the spec, not in the row.
|
|
293
|
+
against `<specsDir>/01_policy/glossary.md`. A word read two ways is a decision nobody saw being made.
|
|
294
|
+
A clash is raised in the round it appears in, with the glossary's term proposed,
|
|
295
|
+
and a settled term is written at once.
|
|
296
|
+
**Changing what the project glossary already defines contradicts a spec.** It is a critical decision, and its row is rewritten only after the user approves it.
|
|
297
|
+
|
|
298
|
+
Read `.qfai/assistant/skill/qfai-grilling/references/glossary-check.md` when a
|
|
299
|
+
term clashes with the glossary, is missing from it, or is settled in a round: it
|
|
300
|
+
holds when a clash is raised, what is corrected without asking, and where a
|
|
301
|
+
settled term is written. Not needed while every term matches the glossary.
|
|
336
302
|
|
|
337
303
|
## When a session ends
|
|
338
304
|
|
|
@@ -468,24 +434,10 @@ every round avoiding.
|
|
|
468
434
|
|
|
469
435
|
## It is working when
|
|
470
436
|
|
|
471
|
-
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
- In a delegated session, every critical decision has actual recorded user
|
|
476
|
-
authority; an uncovered one was asked when permitted or remains open. Every
|
|
477
|
-
adopted decision is in the record and the final report.
|
|
478
|
-
- Nothing entered the tree that the request did not need.
|
|
479
|
-
- No griller started for a step with no open design decision.
|
|
480
|
-
- Later rounds ask what the first round could not have asked.
|
|
481
|
-
- Facts were looked up rather than asked for.
|
|
482
|
-
- Work running in the background did not stall the round — only the questions
|
|
483
|
-
downstream of it waited.
|
|
484
|
-
- The session reached one of the five endings on purpose. `confirmed` is the
|
|
485
|
-
one that asks for confirmation rather than starting work; the other four are
|
|
486
|
-
reached when the user closes the asking, when a delegated session adopts, when
|
|
487
|
-
a no-question mode forbids asking, and when the user stops — and a run that
|
|
488
|
-
could not have asked is not failing this list by not asking.
|
|
437
|
+
Read `.qfai/assistant/skill/qfai-grilling/references/session-check.md` before
|
|
438
|
+
reporting a session finished: it lists what a session that followed this rule
|
|
439
|
+
shows, for each kind of session and each ending. Not needed while the session
|
|
440
|
+
is still asking.
|
|
489
441
|
|
|
490
442
|
## Related
|
|
491
443
|
|
|
@@ -9,7 +9,9 @@ field, a tooltip on a button whose label already says what it does, and every
|
|
|
9
9
|
parameter the thing underneath happens to expose.
|
|
10
10
|
|
|
11
11
|
The user arrived to do one task and has read nothing about the product. Leave
|
|
12
|
-
what that person needs, and nothing else.
|
|
12
|
+
what that person needs, and nothing else. What that person needs includes the
|
|
13
|
+
standard parts of a business or a marketing screen, listed near the end of this
|
|
14
|
+
rule.
|
|
13
15
|
|
|
14
16
|
## Scope
|
|
15
17
|
|
|
@@ -55,12 +57,23 @@ Longer than a sentence means the question needs clarifying or splitting, not
|
|
|
55
57
|
explaining.
|
|
56
58
|
|
|
57
59
|
An introductory paragraph, a tour on first run and an empty state that says the
|
|
58
|
-
list is empty are the same clause. An empty state says what to do next
|
|
60
|
+
list is empty are the same clause. An empty state says what to do next: the
|
|
61
|
+
action, or a short sentence naming it, that leads out of it, such as widening
|
|
62
|
+
the search or adding the first item.
|
|
63
|
+
|
|
64
|
+
A marketing page's copy is not interface explanation. On a screen whose UI
|
|
65
|
+
contract declares `surface: marketing`, a part of its section's marketing
|
|
66
|
+
pattern entry that its UI contract names, such as a hero's supporting sentence,
|
|
67
|
+
a feature's short description or an FAQ answer, is content the page needs, not
|
|
68
|
+
excess. Its wording is still judged: a sentence that only restates its heading
|
|
69
|
+
adds no meaning. It carries its `qfai-text` or `qfai-text-file` reason.
|
|
59
70
|
|
|
60
71
|
## 3. Cut
|
|
61
72
|
|
|
62
73
|
- A label that restates the control beside it.
|
|
63
|
-
- A control nobody asked for, and every state it brings with it.
|
|
74
|
+
- A control nobody asked for, and every state it brings with it. A part listed
|
|
75
|
+
in `## What a business screen always has` counts as asked for, and so does a
|
|
76
|
+
part of a marketing screen's pattern entry that its UI contract names.
|
|
64
77
|
- Decoration that displaces signal.
|
|
65
78
|
- The second place the same thing is said.
|
|
66
79
|
|
|
@@ -70,6 +83,9 @@ the user is worse off. If not, it goes.
|
|
|
70
83
|
## 4. Use the conventional pattern
|
|
71
84
|
|
|
72
85
|
- One primary purpose per view. A view answering two questions is two views.
|
|
86
|
+
The home has one purpose, "see what needs attention", even though its parts
|
|
87
|
+
answer several questions, as a dashboard's do. Each part links to the view that
|
|
88
|
+
does the work rather than doing it in place.
|
|
73
89
|
- The pattern the platform already has, in the place users look for it.
|
|
74
90
|
- One word per concept — the user's word — everywhere it appears.
|
|
75
91
|
|
|
@@ -87,9 +103,22 @@ Order and grouping carry what a sentence would otherwise have to state.
|
|
|
87
103
|
|
|
88
104
|
## 6. Walk it
|
|
89
105
|
|
|
90
|
-
Before calling a surface done,
|
|
91
|
-
as someone who does not know how it is built
|
|
92
|
-
|
|
106
|
+
Before calling a surface done, walk the user's job across screens, start to
|
|
107
|
+
finish, as someone who does not know how it is built: enter from where the user
|
|
108
|
+
starts, find the record, act on it, see the result, and get back. Walk every task
|
|
109
|
+
the surface declares this way, and the jobs it serves that no contract names, such
|
|
110
|
+
as reaching a record from the home screen, finding one record among many, or
|
|
111
|
+
recovering after an error. Walk it with a realistic volume of data and, on a
|
|
112
|
+
screen, at phone and desktop widths. A command-line surface is walked the same
|
|
113
|
+
way, from the first command to the result.
|
|
114
|
+
|
|
115
|
+
Anything you have to read twice is a defect in the control it sits under. A step
|
|
116
|
+
you cannot reach, a record you cannot find or an action whose result you cannot
|
|
117
|
+
tell is a gap in the surface. A gap that a part listed in `## What a business
|
|
118
|
+
screen always has` or `## What a marketing screen always has` closes is a
|
|
119
|
+
defect to fix. Raise any other gap on a job no
|
|
120
|
+
contract names with the owner of the spec, rather than building what the spec
|
|
121
|
+
does not ask for.
|
|
93
122
|
|
|
94
123
|
## What this rule never removes
|
|
95
124
|
|
|
@@ -102,9 +131,68 @@ Cutting stops here. None of these is excess at any size.
|
|
|
102
131
|
- Accessible names, roles and states, and a focus order that follows the reading
|
|
103
132
|
order.
|
|
104
133
|
- Error text that says what went wrong and what to do about it.
|
|
134
|
+
- The next step an empty state offers: the action, or a short sentence naming
|
|
135
|
+
it, that leads out of it.
|
|
105
136
|
- A confirmation before anything the user cannot undo.
|
|
106
137
|
- Anything the spec asks for.
|
|
107
138
|
|
|
139
|
+
## What a business screen always has
|
|
140
|
+
|
|
141
|
+
The cutting above removes excess. It never decides what a screen is missing. A
|
|
142
|
+
business application has these parts whether or not a UI contract names them.
|
|
143
|
+
|
|
144
|
+
Once per application:
|
|
145
|
+
|
|
146
|
+
- An app shell with navigation that shows where the user is, and a way back.
|
|
147
|
+
- A home whose one question is what needs the user's attention now.
|
|
148
|
+
- One shared component per repeated pattern.
|
|
149
|
+
|
|
150
|
+
On every screen it applies to:
|
|
151
|
+
|
|
152
|
+
- For a list that can outgrow one screen: search or filter, sort, a count and
|
|
153
|
+
pagination.
|
|
154
|
+
- Empty, loading, error and success states. The empty state says what to do
|
|
155
|
+
next.
|
|
156
|
+
- Feedback after every change.
|
|
157
|
+
|
|
158
|
+
Leaving one of these out needs a reason recorded in the UI contract of the
|
|
159
|
+
screen it is missing from. A part left out without one is a defect, not a cut.
|
|
160
|
+
|
|
161
|
+
These parts apply to application screens: a screen whose UI contract declares
|
|
162
|
+
no `surface`, or `surface: application`. A marketing screen, one a visitor sees
|
|
163
|
+
before signing in that exists to explain, persuade or inform, declares
|
|
164
|
+
`surface: marketing`. It is checked against its entries in
|
|
165
|
+
`.qfai/assistant/skill/qfai-sdd/references/marketing-ui-patterns.md` and the
|
|
166
|
+
section below instead, and a part of this list missing from it is not a defect.
|
|
167
|
+
|
|
168
|
+
## What a marketing screen always has
|
|
169
|
+
|
|
170
|
+
A screen whose UI contract declares `surface: marketing` has these whether or
|
|
171
|
+
not its UI contract names them.
|
|
172
|
+
|
|
173
|
+
- **No invented proof.** A figure, customer count, testimonial, quote or logo
|
|
174
|
+
the page shows is read from the product or confirmed by the project's owner,
|
|
175
|
+
and a figure shows the time it was counted. An agent never writes one. A
|
|
176
|
+
claim already on the page, or in material the user supplied, that nothing
|
|
177
|
+
confirms is put to the user as
|
|
178
|
+
`.qfai/assistant/skill/qfai-sdd/references/design-anti-patterns.md#claims-nobody-has-confirmed`
|
|
179
|
+
says, not deleted or rewritten.
|
|
180
|
+
- **Examples labelled.** A product image or mock-up that shows made-up data, or
|
|
181
|
+
a screen the product does not have yet, is labelled as an example where it is
|
|
182
|
+
shown.
|
|
183
|
+
- **Images sourced.** Each image records where it came from and the licence it
|
|
184
|
+
is used under. A new image with neither is not used. One already on the page
|
|
185
|
+
with neither is put to the user, not removed.
|
|
186
|
+
- **States of what it sends or reads.** A section that sends something, such as
|
|
187
|
+
a contact form, or reads data when the page is viewed, such as live figures
|
|
188
|
+
or prices, has its loading, error and success states.
|
|
189
|
+
- **Required notices.** The legal notices the jurisdiction requires are linked
|
|
190
|
+
from every page and from the point of sign-up or payment.
|
|
191
|
+
|
|
192
|
+
Leaving out a state or a notice needs a reason recorded in the screen's UI
|
|
193
|
+
contract. Invented proof, an unlabelled example and a new unsourced image have
|
|
194
|
+
no such reason.
|
|
195
|
+
|
|
108
196
|
## Related
|
|
109
197
|
|
|
110
198
|
- The same standard for prose: `documentation-clarity.md`
|
|
@@ -113,3 +201,7 @@ Cutting stops here. None of these is excess at any size.
|
|
|
113
201
|
`.qfai/assistant/rule/ui-definition-protocol.md`
|
|
114
202
|
- Where a screen's components and layouts come from:
|
|
115
203
|
`.qfai/assistant/rule/ui-procurement.md`
|
|
204
|
+
- What each type of business screen contains:
|
|
205
|
+
`.qfai/assistant/skill/qfai-sdd/references/business-ui-patterns.md`
|
|
206
|
+
- What each section of a marketing page contains:
|
|
207
|
+
`.qfai/assistant/skill/qfai-sdd/references/marketing-ui-patterns.md`
|
|
@@ -44,11 +44,13 @@
|
|
|
44
44
|
/.github/workflows/qfai-tests.yml text=auto eol=lf
|
|
45
45
|
/.github/workflows/qfai-docs.yml text=auto eol=lf
|
|
46
46
|
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
47
|
+
# New register rows are appended and a row keeps its ID, so Git union merging
|
|
48
|
+
# keeps both branches' rows. A decision row's wording may be restated; when both
|
|
49
|
+
# branches restate one row, the union merge keeps both versions. When a host
|
|
50
|
+
# shows a conflict in these files, merge the base branch locally and push,
|
|
51
|
+
# changing no row in the merge. Validation still reports two rows left with one
|
|
52
|
+
# ID. These paths assume the default paths.specsDir; update them if the project
|
|
53
|
+
# moves its spec tree.
|
|
52
54
|
/.qfai/spec/decisions.md merge=union
|
|
53
55
|
# Preserve reviewed page bytes; schema and duplicate checks still apply.
|
|
54
56
|
/.qfai/spec/decisions/page-*.md -text merge=union
|
|
@@ -611,7 +611,7 @@ jobs:
|
|
|
611
611
|
# because a second `--no-save` install into the same prefix removes
|
|
612
612
|
# what the first one added.
|
|
613
613
|
if [ -d node_modules/qfai ]; then
|
|
614
|
-
npm install --no-save --no-audit --no-fund --ignore-scripts --include=optional --registry=https://registry.npmjs.org/ --prefix=tmp/qfai-docs-tools @jackchuka/mdschema@0.15.
|
|
614
|
+
npm install --no-save --no-audit --no-fund --ignore-scripts --include=optional --registry=https://registry.npmjs.org/ --prefix=tmp/qfai-docs-tools @jackchuka/mdschema@0.15.7 mermaid@11.17.2 jsdom@29.1.1
|
|
615
615
|
else
|
|
616
616
|
npm install --no-save --no-audit --no-fund --ignore-scripts --include=optional --registry=https://registry.npmjs.org/ --prefix=tmp/qfai-docs-tools mermaid@11.17.2 jsdom@29.1.1 qfai
|
|
617
617
|
fi
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# words. A file name, a command or a configuration key is concrete, so a
|
|
5
5
|
# backtick is refused, and so is a business rule, example, acceptance criterion
|
|
6
6
|
# or contract ID: policy is read by the documents below it and cites none of
|
|
7
|
-
# them. Each section's IDs run from 01 in table
|
|
8
|
-
# that, since this schema cannot count rows.
|
|
7
|
+
# them. Each section's IDs (TC, OC, BC, QT and LC) run from 01 in table
|
|
8
|
+
# order; `qfai validate` checks that, since this schema cannot count rows.
|
|
9
9
|
heading_rules:
|
|
10
10
|
no_skip_levels: true
|
|
11
11
|
max_depth: 2
|
|
@@ -87,3 +87,47 @@ structure:
|
|
|
87
87
|
regex: true
|
|
88
88
|
- pattern: "(?:^|[^A-Za-z0-9_-])(?:BR-[0-9]{4}|EX-[0-9]{4}-|AC-[0-9]{4}-|(?:CLI|API|DB|UI)-[0-9]{4})"
|
|
89
89
|
regex: true
|
|
90
|
+
- heading:
|
|
91
|
+
pattern: "^## Quality targets$"
|
|
92
|
+
regex: true
|
|
93
|
+
description: Product-wide quality targets, such as response time or availability. One row per target, ID QT-NN from QT-01 in table order; the table may have no rows.
|
|
94
|
+
allow_additional: false
|
|
95
|
+
tables:
|
|
96
|
+
- min: 1
|
|
97
|
+
max: 1
|
|
98
|
+
required_headers: [ID, Constraint, Rationale]
|
|
99
|
+
forbidden_text:
|
|
100
|
+
- pattern: '(?m)^[ \t]*[^|\s#]'
|
|
101
|
+
regex: true
|
|
102
|
+
- pattern: '\S[^\n]*\n[ \t]*\n[ \t]*\|'
|
|
103
|
+
regex: true
|
|
104
|
+
- pattern: '(?m)^[ \t]*\|(?:[ \t]*:?-+:?[ \t]*\|){3}[ \t]*:?-'
|
|
105
|
+
regex: true
|
|
106
|
+
- pattern: '\A\s*\|[^\n]*\n[ \t]*\|[^\n]*[^|:\s-]'
|
|
107
|
+
regex: true
|
|
108
|
+
- pattern: "`"
|
|
109
|
+
regex: true
|
|
110
|
+
- pattern: "(?:^|[^A-Za-z0-9_-])(?:BR-[0-9]{4}|EX-[0-9]{4}-|AC-[0-9]{4}-|(?:CLI|API|DB|UI)-[0-9]{4})"
|
|
111
|
+
regex: true
|
|
112
|
+
- heading:
|
|
113
|
+
pattern: "^## Legal and Compliance Constraints$"
|
|
114
|
+
regex: true
|
|
115
|
+
description: Legal, regulatory and compliance limits. One row per constraint, ID LC-NN from LC-01 in table order; the table may have no rows.
|
|
116
|
+
allow_additional: false
|
|
117
|
+
tables:
|
|
118
|
+
- min: 1
|
|
119
|
+
max: 1
|
|
120
|
+
required_headers: [ID, Constraint, Rationale]
|
|
121
|
+
forbidden_text:
|
|
122
|
+
- pattern: '(?m)^[ \t]*[^|\s#]'
|
|
123
|
+
regex: true
|
|
124
|
+
- pattern: '\S[^\n]*\n[ \t]*\n[ \t]*\|'
|
|
125
|
+
regex: true
|
|
126
|
+
- pattern: '(?m)^[ \t]*\|(?:[ \t]*:?-+:?[ \t]*\|){3}[ \t]*:?-'
|
|
127
|
+
regex: true
|
|
128
|
+
- pattern: '\A\s*\|[^\n]*\n[ \t]*\|[^\n]*[^|:\s-]'
|
|
129
|
+
regex: true
|
|
130
|
+
- pattern: "`"
|
|
131
|
+
regex: true
|
|
132
|
+
- pattern: "(?:^|[^A-Za-z0-9_-])(?:BR-[0-9]{4}|EX-[0-9]{4}-|AC-[0-9]{4}-|(?:CLI|API|DB|UI)-[0-9]{4})"
|
|
133
|
+
regex: true
|
|
@@ -81,3 +81,21 @@ structure:
|
|
|
81
81
|
regex: true
|
|
82
82
|
- pattern: '\A\s*\|[^\n]*\n[ \t]*\|[^\n]*[^|:\s-]'
|
|
83
83
|
regex: true
|
|
84
|
+
- heading:
|
|
85
|
+
pattern: "^## Risks$"
|
|
86
|
+
regex: true
|
|
87
|
+
description: What could stop the initiative reaching its objective, and how each risk is reduced. One row per risk; the table may have no rows.
|
|
88
|
+
allow_additional: false
|
|
89
|
+
tables:
|
|
90
|
+
- min: 1
|
|
91
|
+
max: 1
|
|
92
|
+
required_headers: [Risk, Mitigation]
|
|
93
|
+
forbidden_text:
|
|
94
|
+
- pattern: '(?m)^[ \t]*[^|\s#]'
|
|
95
|
+
regex: true
|
|
96
|
+
- pattern: '\S[^\n]*\n[ \t]*\n[ \t]*\|'
|
|
97
|
+
regex: true
|
|
98
|
+
- pattern: '(?m)^[ \t]*\|(?:[ \t]*:?-+:?[ \t]*\|){2}[ \t]*:?-'
|
|
99
|
+
regex: true
|
|
100
|
+
- pattern: '\A\s*\|[^\n]*\n[ \t]*\|[^\n]*[^|:\s-]'
|
|
101
|
+
regex: true
|