@hippo-digital/hippocampus 2.7.2 → 2.8.1

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +5 -4
  3. package/agents/knowledge-builder.md +2 -0
  4. package/agents/workflow-orchestrator.md +2 -0
  5. package/assets/dist/hippocampus.css +1 -1
  6. package/assets/hippocampus.scss +124 -0
  7. package/bin/hippocampus.js +1 -0
  8. package/docs/add-project-context.md +8 -2
  9. package/docs/ask-whats-already-known.md +6 -2
  10. package/docs/check-for-unintended-consequences.md +7 -2
  11. package/docs/data-and-governance.md +6 -2
  12. package/docs/describe-the-context-of-use.md +134 -0
  13. package/docs/design-actions-and-decisions.md +8 -3
  14. package/docs/hippocampus-for-designers-and-researchers.md +98 -220
  15. package/docs/hippocampus-technical.md +16 -0
  16. package/docs/human-centred-design.md +165 -0
  17. package/docs/import-a-research-round.md +9 -2
  18. package/docs/link-insights-to-needs.md +6 -2
  19. package/docs/record-a-usability-test.md +118 -0
  20. package/docs/record-design-principles.md +76 -0
  21. package/docs/research-knowledge-graph.md +25 -6
  22. package/docs/review-and-promote-a-draft.md +7 -2
  23. package/docs/set-quality-objectives.md +87 -0
  24. package/docs/source-model.md +104 -23
  25. package/docs/start-here.md +67 -34
  26. package/docs/turn-personas-into-users-and-needs.md +9 -2
  27. package/docs/weigh-options-against-requirements.md +96 -0
  28. package/docs/write-requirements.md +161 -0
  29. package/lib/breadcrumb.js +67 -14
  30. package/lib/create-router.js +125 -2
  31. package/lib/docs.js +28 -4
  32. package/lib/flow-map.js +15 -4
  33. package/lib/hcd-views.js +362 -0
  34. package/lib/known.js +5 -2
  35. package/lib/lint-knowledge.js +170 -1
  36. package/lib/load-knowledge.js +128 -5
  37. package/lib/record-links.js +11 -2
  38. package/lib/schema.js +190 -4
  39. package/lib/tidy-principles.js +112 -0
  40. package/package.json +1 -1
  41. package/scripts/import-design-actions.js +11 -2
  42. package/scripts/init.js +19 -0
  43. package/scripts/migrate-knowledge.js +9 -1
  44. package/scripts/smoke-routes.js +12 -1
  45. package/scripts/tidy-principles.js +68 -0
  46. package/skills/COVERAGE-MATRIX.md +2 -0
  47. package/skills/README.md +5 -0
  48. package/skills/SKILL-FORMAT.md +1 -1
  49. package/skills/add-scenario/SKILL.md +5 -1
  50. package/skills/add-user-needs/SKILL.md +11 -1
  51. package/skills/create-journey-from-scenario/SKILL.md +5 -2
  52. package/skills/ingest-research-round/SKILL.md +3 -3
  53. package/skills/ingest-user-personas/SKILL.md +24 -7
  54. package/skills/map-research-to-graph/SKILL.md +7 -5
  55. package/skills/record-design-decision/SKILL.md +1 -0
  56. package/skills/review-research-import-draft/SKILL.md +7 -1
  57. package/skills/skills.json +54 -1
  58. package/skills/structure-research-draft/SKILL.md +12 -2
  59. package/skills/weigh-options-against-requirements/SKILL.md +60 -0
  60. package/skills/write-requirements/SKILL.md +69 -0
  61. package/views/hippocampus/_layout.html +15 -12
  62. package/views/hippocampus/components/_activity.njk +36 -0
  63. package/views/hippocampus/components/_journey-step.njk +30 -0
  64. package/views/hippocampus/context.html +197 -0
  65. package/views/hippocampus/design.html +128 -0
  66. package/views/hippocampus/evaluation.html +119 -0
  67. package/views/hippocampus/index.html +57 -11
  68. package/views/hippocampus/journey.html +25 -1
  69. package/views/hippocampus/journeys.html +3 -0
  70. package/views/hippocampus/plan.html +64 -0
  71. package/views/hippocampus/requirements.html +94 -0
  72. package/views/hippocampus/research.html +20 -1
  73. package/views/hippocampus/scenarios.html +3 -0
  74. package/views/hippocampus/user.html +43 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,84 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.8.1
4
+
5
+ - **The viewer works with nhsuk-prototype-kit 8.5.2.** That kit renders through
6
+ a view class that puts `views/` in front of every template name, so every
7
+ viewer page was a 500 ("template not found: views/hippocampus/index...") and
8
+ `hippocampus doctor` reported that the prototype never started. The viewer
9
+ now asks the kit's view class how it names templates and passes names that
10
+ resolve either way. Nothing to change in a host.
11
+ - **`import design-actions` works again.** A message edit shipped in 1.0.0 put backticks
12
+ inside a template literal, so the script stopped parsing and every
13
+ `npx hippocampus import design-actions` failed with a SyntaxError. Once it
14
+ loaded, it also refused to write on a newly initialised project, because its
15
+ pre-write check read the source files directly instead of the way `validate`
16
+ does. Both are fixed, and a test now checks that every CLI script parses.
17
+ - **Skill descriptions say what each skill is not for.** `create-journey-from-scenario`
18
+ and `add-scenario` claimed "build, draft or map a user journey" and "write a
19
+ scenario", the same words a project's own journey and scenario skills use, so an
20
+ agent could pick either. Both now say they write knowledge-base records and name
21
+ what they are not for. `SKILL-FORMAT.md` asks for the same wherever two skills
22
+ could fire on the same words. Run `npx hippocampus skills install` after upgrading
23
+ to pick up the new descriptions.
24
+
25
+ ## 2.8.0
26
+
27
+ The knowledge model and the viewer follow the human-centred design cycle
28
+ (ISO 9241-210, as the UXQB CPUX-F curriculum teaches it): plan, context of use,
29
+ requirements, design, evaluation. Every schema change is additive within
30
+ schemaVersion 1 - new fields are optional and new collections default to empty -
31
+ so a 2.7 knowledge base loads unchanged. Old viewer URLs are unchanged.
32
+
33
+ - **Requirements.** `requirements.json`: user-qualitative ("must be able to
34
+ recognise / select / input"), user-quantitative (with a `measure` whose numbers
35
+ are a `placeholder` until `agreed`), organisational and market. Validate
36
+ checks each kind carries what it needs.
37
+ - **Quality objectives, goals and principles** as collections. Principles are
38
+ kept apart from evidence; `hippocampus tidy principles` moves ones filed as
39
+ evidence, showing the plan unless given `--apply`.
40
+ - **The context of use.** Users carry `userType` (primary, secondary,
41
+ indirect), `kind` (user group or persona), `environment` (physical, social,
42
+ technical) and `resources`. Scenarios and journeys carry `state` (as-is or
43
+ to-be). Journey steps carry `opportunities`, `sentiment`, `requirementIds` and
44
+ `principleIds`.
45
+ - **Evaluation.** Research rounds carry `methods`. Insights carry `polarity`,
46
+ a CPUX-F `rating` and `signedOffBy`. Participants carry the `userId` they were
47
+ recruited as.
48
+ - **Eight relationship types** for the requirements layer (`derives-from`,
49
+ `based-on-insight`, `constrained-by`, `refines-objective`, `verified-by`,
50
+ `weighed-against`, `applies-principle`, `observed-on`), with an optional
51
+ `outcome` and `note`. Validate checks which way they run.
52
+ - **The viewer's navigation is the cycle.** Plan, Context of use,
53
+ Requirements, Design and Evaluation each have a landing page; every section
54
+ sits under one, and the breadcrumb names it. Design lays the options for each
55
+ design action against the requirements and marks any requirement no option
56
+ meets on its own. Evaluation sets each requirement against what testing found.
57
+ Record pages for requirements, principles, decisions, goals and objectives.
58
+ Research can be filtered by method.
59
+ - **Lint.** Coverage notes for needs that name a solution or have no goal,
60
+ unclassified users, rounds with no method, unrated usability findings,
61
+ placeholder measures, needs with no requirement and requirements nobody has
62
+ evaluated; warnings for principles filed as evidence and catastrophic findings
63
+ nobody signed off.
64
+ - **Skills.** New `write-requirements` and `weigh-options-against-requirements`.
65
+ `ingest-user-personas` records kind, goals, conditions and resources where a
66
+ persona states them, and leaves `userType` to the team; `add-user-needs`
67
+ keeps solutions out of needs and asks for a reason. The research skills set a
68
+ round's methods and a usability finding's polarity and rating, never rate a
69
+ finding catastrophic, and record which requirements a test evaluated.
70
+ `map-research-to-graph` no longer suggests the backwards `leads-to-action`.
71
+ - **After upgrading, run `npx hippocampus init`, then
72
+ `npx hippocampus skills install` if your team uses an AI agent.** `init` adds
73
+ the four new collections as empty files to an existing knowledge base,
74
+ because the skills check that the files they read exist; existing files are
75
+ not touched. `skills install` brings in the two new skills and the updated
76
+ ones, leaving alone any your team has edited and naming them. Then
77
+ `npx hippocampus validate` confirms the knowledge base loads.
78
+ - **The guide is grouped by activity**, with new pages on the cycle, quality
79
+ objectives, the context of use, requirements, weighing options, principles and
80
+ usability tests, and the existing recipes placed under the activity they serve.
81
+
3
82
  ## 2.7.2
4
83
 
5
84
  - **adm-zip 0.6.1.** The importers read PowerPoint, Word and Excel files with
package/README.md CHANGED
@@ -196,13 +196,14 @@ describe the version you have installed. Nothing is copied into your repo -
196
196
  a copied guide goes stale within a release, and the stale one is the copy people
197
197
  read, because it is the one sitting in their editor.
198
198
 
199
- The list is grouped into sections - Start here, Task recipes, Data and
200
- governance, Reference, For contributors - by front matter at the top of each
201
- guide:
199
+ The list is grouped into sections - Start here, then the five activities of
200
+ human-centred design (Plan, Context of use, Requirements, Design, Evaluation),
201
+ then Data and governance, Reference and For contributors - by front matter at
202
+ the top of each guide:
202
203
 
203
204
  ```yaml
204
205
  ---
205
- section: recipes # start, recipes, governance, reference or contributors
206
+ section: context # start, plan, context, requirements, design, evaluation, governance, reference or contributors
206
207
  order: 20 # within the section; leave gaps of 10
207
208
  audience: [viewer, cli]
208
209
  summary: One sentence for the card on the list.
@@ -23,6 +23,8 @@ Maintains the Hippocampus source model.
23
23
  - `.github/skills/ingest-user-personas/SKILL.md`
24
24
  - `.github/skills/record-design-decision/SKILL.md`
25
25
  - `.github/skills/onboard-team-member/SKILL.md`
26
+ - `.github/skills/write-requirements/SKILL.md`
27
+ - `.github/skills/weigh-options-against-requirements/SKILL.md`
26
28
 
27
29
  ## Read First
28
30
 
@@ -30,6 +30,8 @@ Coordinates larger Hippocampus delivery work.
30
30
  - `.github/skills/find-unintended-consequences/SKILL.md`
31
31
  - `.github/skills/triage-research-corpus/SKILL.md`
32
32
  - `.github/skills/onboard-team-member/SKILL.md`
33
+ - `.github/skills/write-requirements/SKILL.md`
34
+ - `.github/skills/weigh-options-against-requirements/SKILL.md`
33
35
 
34
36
  ## Required Finish
35
37
 
@@ -1 +1 @@
1
- .knowledge-admin-theme{background:#f6f5f2;font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif}.knowledge-admin-theme .nhsuk-header{background:#1c1c1a}.knowledge-admin-theme .nhsuk-header__service-logo,.knowledge-admin-theme .nhsuk-header__service-logo:hover,.knowledge-admin-theme .nhsuk-header__service-logo:visited{color:#fff}.knowledge-admin-theme .nhsuk-header__logo{fill:currentcolor}.knowledge-admin-theme .nhsuk-header__service-name{color:#fff}.knowledge-admin-theme .nhsuk-header__service-logo:focus{color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32}.knowledge-admin-theme .nhsuk-header__container{max-width:none;margin-left:16px;margin-right:16px}@media(min-width: 48.0625em){.knowledge-admin-theme .nhsuk-header__container{margin-left:32px;margin-right:32px}}.knowledge-admin-theme h1,.knowledge-admin-theme h2,.knowledge-admin-theme h3,.knowledge-admin-theme h4{font-weight:600;letter-spacing:-0.01em}.knowledge-admin-theme .nhsuk-caption-l{color:#706f68;font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.knowledge-admin-theme a{color:#00726b}.knowledge-admin-theme .nhsuk-back-link,.knowledge-admin-theme .nhsuk-back-link__icon{color:#00726b}.knowledge-admin-theme .nhsuk-breadcrumb__link:visited:not(:hover):not(:focus):not(:active){color:#00726b}.knowledge-admin-theme .knowledge-card,.knowledge-admin-theme .knowledge-section,.knowledge-admin-theme .knowledge-blueprint-step,.knowledge-admin-theme .knowledge-linked-block{background:#fff;border-color:#e3e1d9;border-radius:3px;box-shadow:none}.knowledge-admin-theme .knowledge-card__meta,.knowledge-admin-theme .knowledge-muted{color:#8c8a80;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px;letter-spacing:.03em;text-transform:uppercase}.knowledge-admin-theme .knowledge-note{color:#626058;font-size:15px;line-height:1.4;margin-bottom:8px}.knowledge-admin-theme .nhsuk-button{background:#1c1c1a;border-radius:2px}.knowledge-admin-theme .nhsuk-button--secondary{background:rgba(0,0,0,0);border-color:#1c1c1a;color:#1c1c1a}.knowledge-admin-theme .nhsuk-tag{border-radius:2px}.knowledge-admin-theme code{background:#e6f6f5;font-family:ui-monospace,"SF Mono",Consolas,monospace}.knowledge-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));gap:16px;margin-top:32px}.knowledge-list{display:grid;gap:16px}.knowledge-card,.knowledge-section,.knowledge-blueprint-step{border:1px solid #d8dde0;padding:24px;margin-bottom:24px;background:#fff}.knowledge-card,.knowledge-linked-block,.knowledge-timeline__item,.knowledge-admin-theme .nhsuk-lede-text{max-width:70ch}.knowledge-section>p,.knowledge-admin-theme .nhsuk-list--bullet,.knowledge-admin-theme .nhsuk-list--number{max-width:70ch}.knowledge-card__meta{color:#4c6272;font-size:16px;margin-bottom:8px}.knowledge-timeline{list-style:none;padding-left:0}.knowledge-timeline__item{border-left:4px solid #005eb8;padding-left:24px;margin-bottom:32px}.knowledge-admin-theme .knowledge-timeline__item{border-left-color:#00726b}.knowledge-blueprint-step__header{align-items:flex-start;display:flex;justify-content:space-between;gap:16px}.knowledge-lane{border-top:1px solid #d8dde0;display:grid;grid-template-columns:220px minmax(0, 1fr);gap:24px;padding:16px 0}.knowledge-lane[hidden]{display:none}.knowledge-lane__label h3{font-size:16px;margin:0}.knowledge-lane__content{max-width:70ch}.knowledge-lane__content>:last-child{margin-bottom:0}.knowledge-boundary{border-top:2px dashed #005eb8;color:#005eb8;font-size:14px;font-weight:700;letter-spacing:.04em;padding-top:8px;text-transform:uppercase}.knowledge-admin-theme .knowledge-boundary{border-top-color:#00726b;color:#00726b}.knowledge-tagged-item{border-left:4px solid #768692;margin-bottom:8px;padding:8px 12px;background:#f0f4f5}.knowledge-tagged-item strong{display:block;font-size:14px}.knowledge-tagged-item--high{border-left-color:#d5281b;background:#fbeae5}.knowledge-tagged-item--medium{border-left-color:#ffb81c;background:#fff9e6}.knowledge-admin-theme .knowledge-tagged-item--high{border-left-color:#8e5300;background:#fdf3e6}.knowledge-admin-theme .knowledge-tagged-item--medium{border-left-color:#ed8b00;background:#fdf3e6}.knowledge-linked-block{border-top:1px solid #d8dde0;padding-top:24px;margin-top:24px}.knowledge-linked-block:first-of-type{border-top:0;padding-top:0;margin-top:0}.knowledge-linked-block__detail{background:#f0f4f5;margin:24px 0;padding:16px}.knowledge-graph-summary{display:grid;grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));gap:12px;margin:24px 0}.knowledge-graph-summary div{background:#f0f4f5;border-left:4px solid #005eb8;padding:12px}.knowledge-admin-theme .knowledge-graph-summary div{background:#e6f6f5;border-left-color:#00726b}.knowledge-graph-summary strong,.knowledge-graph-summary span{display:block}.knowledge-graph-summary strong{font-size:28px;line-height:1}.knowledge-graph-summary span{color:#4c6272;font-size:14px;margin-top:4px}.knowledge-graph{display:grid;grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));gap:12px;margin-top:24px}.knowledge-graph__node{border:1px solid #d8dde0;border-top:4px solid #768692;padding:12px}.knowledge-graph__node strong,.knowledge-graph__node span{display:block}.knowledge-graph__node strong{color:#4c6272;font-size:14px;margin-bottom:4px}.knowledge-graph__node span{font-size:16px}.knowledge-graph__node--user{border-top-color:#005eb8}.knowledge-graph__node--scenario{border-top-color:#d5281b}.knowledge-graph__node--need{border-top-color:#007f3b}.knowledge-graph__node--evidence{border-top-color:#7c2855}.knowledge-admin-theme .knowledge-graph__node--scenario{border-top-color:#330072}.knowledge-admin-theme .knowledge-graph__node--need{border-top-color:#006747}.knowledge-graph__node--journey,.knowledge-graph__node--screen,.knowledge-graph__node--decision{border-top-color:#ffb81c}.knowledge-edge-list{display:grid;gap:8px}.knowledge-edge-list li{background:#f0f4f5;display:grid;grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);gap:12px;padding:12px}.knowledge-edge-list span{color:#4c6272;font-size:14px;font-weight:700;text-transform:uppercase}.knowledge-trace-timeline,.knowledge-trace-children{list-style:none;margin:0;padding-left:0}.knowledge-trace-timeline{position:relative}.knowledge-trace-timeline::before{background:#e3e1d9;bottom:0;content:"";left:14px;position:absolute;top:8px;width:2px}.knowledge-trace-group,.knowledge-trace-item{position:relative}.knowledge-trace-group{padding-left:48px}.knowledge-trace-group__content{margin-bottom:24px}.knowledge-trace-group__content h3{margin-bottom:16px}.knowledge-trace-children{border-left:2px solid #e3e1d9;display:grid;gap:12px;margin-top:12px;padding-left:22px}.knowledge-trace-group__content>.knowledge-trace-children{margin-top:0}.knowledge-trace-item{padding-left:0}.knowledge-trace-item__marker{background:#fff;border:2px solid #00726b;border-radius:50%;height:11px;left:-28.5px;position:absolute;top:16px;width:11px}.knowledge-trace-children .knowledge-trace-children .knowledge-trace-item__marker{border-color:#adb4b8}.knowledge-trace-item__content{background:#fff;border:1px solid #e3e1d9;border-radius:3px;max-width:70ch;padding:12px 16px}.knowledge-trace-item--selected{padding-left:48px}.knowledge-trace-item--selected .knowledge-trace-item__marker{background:#00726b;border-color:#00726b;height:16px;left:7px;top:18px;width:16px}.knowledge-trace-item--selected .knowledge-trace-item__content{border-color:#00726b;border-left-width:4px;margin:8px 0 32px;max-width:none}.knowledge-trace-item__heading{font-size:18px;margin:0 0 4px}.knowledge-trace-item__heading a{text-decoration:none}.knowledge-trace-item__heading a:hover,.knowledge-trace-item__heading a:focus{text-decoration:underline}.knowledge-trace-item--selected .knowledge-trace-item__heading{font-size:20px}.knowledge-trace-item__type{color:#706f68;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px;letter-spacing:.03em;margin:0;text-transform:uppercase}.knowledge-trace-item__relationship{color:#4c6272;font-size:14px;margin:0 0 2px}.knowledge-muted{color:#4c6272}.knowledge-confidence-tag{display:inline-block;padding:2px 8px;font-size:13px;font-weight:700;border-radius:10px}.knowledge-confidence-tag--high{color:#00726b;background:#e6f6f5}.knowledge-confidence-tag--medium{color:#00758f;background:#e6f6fa}.knowledge-confidence-tag--low{color:#4c6272;background:#f0f4f5}.knowledge-matrix-wrap{overflow-x:auto}.knowledge-matrix{border-collapse:collapse;min-width:1200px;width:100%}.knowledge-matrix th,.knowledge-matrix td{border:1px solid #e3e1d9;padding:12px;text-align:left;vertical-align:top}.knowledge-matrix thead th,.knowledge-matrix tbody th{background:#fff}.knowledge-matrix thead th{border-bottom:2px solid #adb4b8}.knowledge-matrix tbody th{border-right:2px solid #adb4b8}.knowledge-matrix__boundary td{border-top:2px dashed #005eb8;color:#005eb8;font-weight:700;text-transform:uppercase}.knowledge-admin-theme .knowledge-matrix__boundary td{border-top-color:#00726b;color:#00726b}.knowledge-blueprint-controls{align-items:flex-start;background:#fff;border:1px solid #e3e1d9;border-radius:3px;display:flex;flex-wrap:wrap;gap:16px 24px;margin-bottom:24px;padding:12px 24px;position:sticky;top:0;z-index:2}.knowledge-blueprint-controls__lenses{display:flex;flex-wrap:wrap;gap:8px}.knowledge-blueprint-controls__legend{font-size:14px;font-weight:700;margin:0 0 6px;width:100%}.knowledge-lens-btn{padding:6px 14px;font:inherit;color:#005eb8;background:#fff;border:2px solid #005eb8;border-radius:20px;cursor:pointer}.knowledge-lens-btn[aria-pressed=true]{color:#fff;background:#005eb8}.knowledge-admin-theme .knowledge-lens-btn{color:#00726b;border-color:#00726b}.knowledge-admin-theme .knowledge-lens-btn[aria-pressed=true]{background:#00726b;color:#fff}.knowledge-blueprint-controls__lanes{display:flex;flex-wrap:wrap;gap:8px 16px;padding:0;margin:0;border:0}.knowledge-blueprint-controls__lanes legend{font-size:14px;font-weight:700;margin-bottom:6px;width:100%}.knowledge-lane-toggle{display:inline-flex;align-items:center;gap:4px;font-size:14px}.knowledge-blueprint-layout{display:grid;grid-template-columns:72px 1fr;gap:24px}.knowledge-blueprint-minimap{position:sticky;top:calc(var(--blueprint-controls-height, 137px) + 16px);align-self:start}.knowledge-blueprint-minimap ul{position:relative;padding:0;margin:0;list-style:none}.knowledge-blueprint-minimap ul::before{position:absolute;top:16px;bottom:16px;left:15px;width:2px;content:"";background:#d8dde0}.knowledge-blueprint-minimap li{position:relative;margin-bottom:16px}.knowledge-blueprint-minimap a{position:relative;display:block}.knowledge-blueprint-minimap__marker{display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-weight:700;color:#005eb8;background:#fff;border:2px solid #005eb8;border-radius:50%}.knowledge-blueprint-minimap a.is-active .knowledge-blueprint-minimap__marker{color:#fff;background:#005eb8}.knowledge-admin-theme .knowledge-blueprint-minimap__marker{color:#00726b;border-color:#00726b}.knowledge-admin-theme .knowledge-blueprint-minimap a.is-active .knowledge-blueprint-minimap__marker{background:#00726b}.knowledge-blueprint-step{scroll-margin-top:88px}.knowledge-flow-diagram{overflow-x:auto;padding:24px;margin-bottom:24px;background:#fff;border:1px solid #d8dde0}.knowledge-flow-source{overflow-x:auto;white-space:pre}.knowledge-admin-theme .knowledge-flow-diagram{border-color:#e3e1d9;border-radius:3px}@media(max-width: 48.0525em){.knowledge-blueprint-layout{display:block}.knowledge-blueprint-minimap{position:static;margin-bottom:16px}.knowledge-blueprint-minimap ul{display:flex;flex-wrap:wrap;gap:8px}.knowledge-blueprint-minimap ul::before{display:none}.knowledge-blueprint-minimap li{margin-bottom:0}.knowledge-lane{grid-template-columns:1fr;gap:8px}.knowledge-edge-list li{grid-template-columns:1fr}.knowledge-trace-timeline::before{left:9px}.knowledge-trace-group,.knowledge-trace-item{padding-left:36px}.knowledge-trace-item__marker{height:16px;left:1px;width:16px}}.knowledge-admin-theme .knowledge-empty-state{max-width:70ch;padding:24px;margin-bottom:24px;background:#fff;border-left:4px solid #aeb7bd}.knowledge-admin-theme .knowledge-empty-state h2{margin-top:0}.knowledge-admin-theme .knowledge-empty-state p:last-child{margin-bottom:0}.knowledge-admin-theme .knowledge-doc{max-width:76ch;padding:24px 32px;background:#fff}.knowledge-admin-theme .knowledge-doc h1{margin-top:0}.knowledge-admin-theme .knowledge-doc h2,.knowledge-admin-theme .knowledge-doc h3{margin-top:32px}.knowledge-admin-theme .knowledge-doc pre{padding:16px;overflow-x:auto;background:#f6f5f2;border-left:4px solid #aeb7bd}.knowledge-admin-theme .knowledge-doc code{font-size:15px}.knowledge-admin-theme .knowledge-doc :not(pre)>code{overflow-wrap:anywhere}.knowledge-admin-theme .knowledge-doc table{width:100%;margin-bottom:24px;border-collapse:collapse}.knowledge-admin-theme .knowledge-doc th,.knowledge-admin-theme .knowledge-doc td{padding:8px 12px;text-align:left;vertical-align:top;border-bottom:1px solid #d8dde0}.knowledge-admin-theme .knowledge-doc img{display:block;max-width:100%;height:auto;margin:24px 0 16px}.knowledge-admin-theme .knowledge-doc-contents{max-width:76ch;margin-bottom:32px;padding:16px 24px 8px;background:#fff;border-left:4px solid #00726b}.knowledge-doc-audience .nhsuk-tag{margin-right:4px}.knowledge-find{align-items:flex-end;background:#fff;border:1px solid #e3e1d9;border-radius:3px;display:flex;flex-wrap:wrap;gap:0 24px;margin-bottom:8px;padding:24px 24px 8px}.knowledge-find .nhsuk-form-group{flex:1 1 14rem;margin-bottom:16px;min-width:0}.knowledge-find .nhsuk-form-group:first-child{flex:2 1 20rem}.knowledge-find .nhsuk-form-group .nhsuk-label{margin-bottom:4px}.knowledge-find .nhsuk-select,.knowledge-find .nhsuk-input{max-width:100%;width:100%}.knowledge-find .nhsuk-button{flex:0 0 auto;margin-bottom:16px}.knowledge-find--compact .nhsuk-form-group,.knowledge-find--compact .nhsuk-form-group:first-child{flex:1 1 16rem;max-width:26rem}.knowledge-find__count{margin-bottom:24px;color:#4c6272}@media(max-width: 48em){.knowledge-find{display:block}}.knowledge-nav{background-color:#fff;border-bottom:1px solid #d8dde0;margin-bottom:24px}.knowledge-nav__list{display:flex;gap:4px;margin:0;padding:0;list-style:none;overflow-x:auto;-webkit-overflow-scrolling:touch}.knowledge-nav__item{margin:0;flex:0 0 auto}.knowledge-nav__link{display:block;padding:12px 12px;text-decoration:none;color:#4c6272;font-weight:600;white-space:nowrap;border-bottom:4px solid rgba(0,0,0,0)}.knowledge-nav__link:hover{color:#00726b;background-color:#f0f4f5}.knowledge-nav__link:focus{outline:3px solid rgba(0,0,0,0);color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32;text-decoration:none}.knowledge-nav__link--current{color:#00726b;border-bottom-color:#00726b}.knowledge-round-status{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin-bottom:8px}.knowledge-status{margin-bottom:32px}.knowledge-status__grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(13rem, 1fr));gap:16px}.knowledge-stat{display:flex;flex-direction:column;gap:4px;padding:16px 20px;background-color:#fff;border:1px solid #d8dde0;border-left:4px solid #768692;border-radius:4px;text-decoration:none}.knowledge-stat:hover{border-color:#00726b;border-left-color:#00726b;background-color:#f0f4f5}.knowledge-stat:focus{outline:3px solid rgba(0,0,0,0);background-color:#ffeb3b;box-shadow:0 0 0 4px #212b32;text-decoration:none}.knowledge-stat--waiting{border-left-color:#ed8b00}.knowledge-stat--done{border-left-color:#007f3b}.knowledge-stat--neutral{border-left-color:#005eb8}.knowledge-stat__value{font-size:2rem;line-height:1.1;font-weight:700;color:#212b32}.knowledge-stat__label{font-weight:600;color:#00726b;text-decoration:underline}.knowledge-stat__detail{font-size:.875rem;color:#4c6272}.knowledge-nav__inner{display:flex;align-items:stretch;gap:16px}.knowledge-nav__wordmark{display:flex;align-items:center;flex:0 0 auto;padding-right:24px;border-right:1px solid #d8dde0;color:#212b32;font-weight:700;text-decoration:none;white-space:nowrap}.knowledge-nav__wordmark:hover{color:#00726b}.knowledge-nav__wordmark:focus{outline:3px solid rgba(0,0,0,0);color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32}@media(max-width: 40em){.knowledge-nav__wordmark{display:none}}.knowledge-breadcrumb{margin-top:12px;margin-bottom:0;padding:0;background:none}.knowledge-breadcrumb .nhsuk-breadcrumb__list{margin-bottom:0}.knowledge-breadcrumb [aria-current=page]{color:#4c6272}.knowledge-breadcrumb:not(.knowledge-breadcrumb--quiet)+.nhsuk-main-wrapper{padding-top:12px}@media(min-width: 40.0625em){.knowledge-breadcrumb:not(.knowledge-breadcrumb--quiet)+.nhsuk-main-wrapper{padding-top:16px}}.knowledge-integrity{align-items:center;color:#d8dde0;display:flex;gap:8px;margin-bottom:0}.knowledge-integrity__icon{fill:#4caf7d;flex-shrink:0;height:20px;width:20px}.knowledge-integrity--failed{color:#ff8f85}.knowledge-admin-theme .nhsuk-footer{background-color:#1c1c1a;border-top:4px solid #007f3b;color:#fff}.knowledge-admin-theme .nhsuk-footer .nhsuk-width-container{max-width:none;margin-left:16px;margin-right:16px}@media(min-width: 48.0625em){.knowledge-admin-theme .nhsuk-footer .nhsuk-width-container{margin-left:32px;margin-right:32px}}.knowledge-admin-theme .nhsuk-footer__list-item-link,.knowledge-admin-theme .nhsuk-footer__list-item-link:visited,.knowledge-admin-theme .nhsuk-footer__list-item-link:hover{color:#fff}.knowledge-admin-theme .nhsuk-footer__list-item-link:focus{color:#212b32}.knowledge-admin-theme .nhsuk-footer__list{margin-bottom:16px}.knowledge-view-list{list-style:none;margin:0 0 24px;padding:0}.knowledge-view-list-heading{margin-top:24px;margin-bottom:4px}.knowledge-view-list li{border-top:1px solid #e3e1d9;padding:8px 0}.knowledge-view-list li:last-child{border-bottom:1px solid #e3e1d9}.knowledge-view-list .knowledge-note{display:block;margin:2px 0 0}.knowledge-card-grid{--card-min: 260px;--card-fit: auto-fit;display:grid;gap:16px;grid-template-columns:repeat(var(--card-fit), minmax(min(var(--card-min), 100%), 1fr));margin-bottom:32px}.knowledge-card-grid .knowledge-card{margin-bottom:0;max-width:none}.knowledge-card--compact{display:flex;flex-direction:column;padding:16px}.knowledge-card--compact .knowledge-card__meta:last-child{margin-top:auto;padding-top:8px}.knowledge-admin-theme .knowledge-card__label{color:#626058;font-size:13px;font-weight:600;letter-spacing:.01em;line-height:1.3;margin:12px 0 4px}.knowledge-linked-list{font-size:.875rem;list-style:none;margin:0;padding:0}.knowledge-linked-list li{align-items:baseline;display:flex;gap:8px;margin-bottom:6px;padding-left:14px;position:relative}.knowledge-linked-list li::before{background:#8c8a80;border-radius:50%;content:"";height:4px;left:2px;position:absolute;top:.5em;width:4px}.knowledge-linked-list li>a{flex:1 1 auto;min-width:0}.knowledge-linked-list .knowledge-confidence-tag{flex:0 0 auto}.knowledge-linked-list li:last-child{margin-bottom:0}.knowledge-linked-list a{text-decoration:none}.knowledge-linked-list a:hover,.knowledge-linked-list a:focus{text-decoration:underline}.knowledge-admin-theme .knowledge-card__statement{font-size:1rem;font-weight:400;line-height:1.4;margin:0 0 12px}.knowledge-admin-theme .knowledge-card__statement a{text-decoration:none}.knowledge-admin-theme .knowledge-card__statement a:hover,.knowledge-admin-theme .knowledge-card__statement a:focus{text-decoration:underline}.knowledge-card-grid--wide{--card-min: 380px}.knowledge-card__tags{margin-bottom:8px}.knowledge-card__details{margin-bottom:12px}.knowledge-card__details .nhsuk-details__text{font-size:.875rem}.knowledge-connection-list a{text-decoration:none}.knowledge-connection-list a:hover,.knowledge-connection-list a:focus{text-decoration:underline}.knowledge-connection-list li{margin-bottom:8px}.knowledge-flowmap{margin:0 0 32px;overflow-x:auto}.knowledge-flowmap__svg{display:block;min-width:860px;width:100%;height:auto}.knowledge-flowmap__flow{fill:none;stroke:#00726b;stroke-opacity:.22;stroke-linecap:round}.knowledge-flowmap__flow--aside{stroke-dasharray:3 5;stroke-opacity:.4;stroke-width:2 !important}.knowledge-flowmap__flow:hover{stroke-opacity:.55}.knowledge-flowmap__box{fill:#fff;stroke:#adb4b8}.knowledge-flowmap__label{fill:#1c1c1a;font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;font-weight:600}.knowledge-flowmap__count{fill:#4c6272;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px}.knowledge-flowlist{list-style:none;margin:0;padding:0}.knowledge-flowlist__row{align-items:center;border-top:1px solid #e3e1d9;display:grid;gap:16px;grid-template-columns:minmax(220px, 20rem) 1fr 3rem;padding:6px 0}.knowledge-flowlist__row:last-child{border-bottom:1px solid #e3e1d9}.knowledge-flowlist__phrase{color:#706f68;font-style:italic}.knowledge-flowlist__bar{background:#f0efe9;display:block;height:10px}.knowledge-flowlist__bar span{background:#00726b;border-radius:0 4px 4px 0;display:block;height:100%;min-width:2px}.knowledge-flowlist__count{font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:14px;text-align:right}@media(max-width: 40em){.knowledge-flowlist__row{grid-template-columns:1fr 3rem}.knowledge-flowlist__bar{display:none}}.knowledge-orphan-heading{margin-bottom:8px}.knowledge-orphan-heading+.knowledge-card-grid{margin-bottom:24px}.knowledge-admin-theme .knowledge-card__statement--only{margin-bottom:0}.knowledge-card-grid--fill{--card-fit: auto-fill}.knowledge-screen-preview{--preview-width: 1280px;--preview-height: 820px;--preview-scale: 0.28;margin:0 0 12px}.knowledge-screen-preview__frame{background:#fff;border:1px solid #e3e1d9;border-radius:3px;height:calc(var(--preview-height)*var(--preview-scale));overflow:hidden;position:relative;width:calc(var(--preview-width)*var(--preview-scale));max-width:100%}.knowledge-screen-preview__frame iframe{border:0;height:var(--preview-height);left:0;pointer-events:none;position:absolute;top:0;transform:scale(var(--preview-scale));transform-origin:0 0;width:var(--preview-width)}.knowledge-screen-preview figcaption{align-items:baseline;display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px}.knowledge-screen-preview figcaption code{color:#706f68;font-size:12px}.knowledge-screen-preview--detail{--preview-scale: 0.5}.knowledge-screen-preview--inline{--preview-scale: 0.18}.knowledge-screen-preview--absent{background:#f6f5f2;border:1px dashed #d8dde0;border-radius:3px;padding:12px}@media print{.knowledge-screen-preview__frame{display:none}}.knowledge-screen-preview-row{display:flex;flex-wrap:wrap;gap:16px}.knowledge-template__command{background:#f6f5f2;border:1px solid #e3e1d9;border-radius:3px;display:block;font-size:13px;margin-top:4px;overflow-x:auto;padding:6px 8px;white-space:nowrap}
1
+ .knowledge-admin-theme{background:#f6f5f2;font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif}.knowledge-admin-theme .nhsuk-header{background:#1c1c1a}.knowledge-admin-theme .nhsuk-header__service-logo,.knowledge-admin-theme .nhsuk-header__service-logo:hover,.knowledge-admin-theme .nhsuk-header__service-logo:visited{color:#fff}.knowledge-admin-theme .nhsuk-header__logo{fill:currentcolor}.knowledge-admin-theme .nhsuk-header__service-name{color:#fff}.knowledge-admin-theme .nhsuk-header__service-logo:focus{color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32}.knowledge-admin-theme .nhsuk-header__container{max-width:none;margin-left:16px;margin-right:16px}@media(min-width: 48.0625em){.knowledge-admin-theme .nhsuk-header__container{margin-left:32px;margin-right:32px}}.knowledge-admin-theme h1,.knowledge-admin-theme h2,.knowledge-admin-theme h3,.knowledge-admin-theme h4{font-weight:600;letter-spacing:-0.01em}.knowledge-admin-theme .nhsuk-caption-l{color:#706f68;font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.knowledge-admin-theme a{color:#00726b}.knowledge-admin-theme .nhsuk-back-link,.knowledge-admin-theme .nhsuk-back-link__icon{color:#00726b}.knowledge-admin-theme .nhsuk-breadcrumb__link:visited:not(:hover):not(:focus):not(:active){color:#00726b}.knowledge-admin-theme .knowledge-card,.knowledge-admin-theme .knowledge-section,.knowledge-admin-theme .knowledge-blueprint-step,.knowledge-admin-theme .knowledge-linked-block{background:#fff;border-color:#e3e1d9;border-radius:3px;box-shadow:none}.knowledge-admin-theme .knowledge-card__meta,.knowledge-admin-theme .knowledge-muted{color:#8c8a80;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px;letter-spacing:.03em;text-transform:uppercase}.knowledge-admin-theme .knowledge-note{color:#626058;font-size:15px;line-height:1.4;margin-bottom:8px}.knowledge-admin-theme .nhsuk-button{background:#1c1c1a;border-radius:2px}.knowledge-admin-theme .nhsuk-button--secondary{background:rgba(0,0,0,0);border-color:#1c1c1a;color:#1c1c1a}.knowledge-admin-theme .nhsuk-tag{border-radius:2px}.knowledge-admin-theme code{background:#e6f6f5;font-family:ui-monospace,"SF Mono",Consolas,monospace}.knowledge-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));gap:16px;margin-top:32px}.knowledge-list{display:grid;gap:16px}.knowledge-card,.knowledge-section,.knowledge-blueprint-step{border:1px solid #d8dde0;padding:24px;margin-bottom:24px;background:#fff}.knowledge-card,.knowledge-linked-block,.knowledge-timeline__item,.knowledge-admin-theme .nhsuk-lede-text{max-width:70ch}.knowledge-section>p,.knowledge-admin-theme .nhsuk-list--bullet,.knowledge-admin-theme .nhsuk-list--number{max-width:70ch}.knowledge-card__meta{color:#4c6272;font-size:16px;margin-bottom:8px}.knowledge-timeline{list-style:none;padding-left:0}.knowledge-timeline__item{border-left:4px solid #005eb8;padding-left:24px;margin-bottom:32px}.knowledge-admin-theme .knowledge-timeline__item{border-left-color:#00726b}.knowledge-blueprint-step__header{align-items:flex-start;display:flex;justify-content:space-between;gap:16px}.knowledge-lane{border-top:1px solid #d8dde0;display:grid;grid-template-columns:220px minmax(0, 1fr);gap:24px;padding:16px 0}.knowledge-lane[hidden]{display:none}.knowledge-lane__label h3{font-size:16px;margin:0}.knowledge-lane__content{max-width:70ch}.knowledge-lane__content>:last-child{margin-bottom:0}.knowledge-boundary{border-top:2px dashed #005eb8;color:#005eb8;font-size:14px;font-weight:700;letter-spacing:.04em;padding-top:8px;text-transform:uppercase}.knowledge-admin-theme .knowledge-boundary{border-top-color:#00726b;color:#00726b}.knowledge-tagged-item{border-left:4px solid #768692;margin-bottom:8px;padding:8px 12px;background:#f0f4f5}.knowledge-tagged-item strong{display:block;font-size:14px}.knowledge-tagged-item--high{border-left-color:#d5281b;background:#fbeae5}.knowledge-tagged-item--medium{border-left-color:#ffb81c;background:#fff9e6}.knowledge-admin-theme .knowledge-tagged-item--high{border-left-color:#8e5300;background:#fdf3e6}.knowledge-admin-theme .knowledge-tagged-item--medium{border-left-color:#ed8b00;background:#fdf3e6}.knowledge-linked-block{border-top:1px solid #d8dde0;padding-top:24px;margin-top:24px}.knowledge-linked-block:first-of-type{border-top:0;padding-top:0;margin-top:0}.knowledge-linked-block__detail{background:#f0f4f5;margin:24px 0;padding:16px}.knowledge-graph-summary{display:grid;grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));gap:12px;margin:24px 0}.knowledge-graph-summary div{background:#f0f4f5;border-left:4px solid #005eb8;padding:12px}.knowledge-admin-theme .knowledge-graph-summary div{background:#e6f6f5;border-left-color:#00726b}.knowledge-graph-summary strong,.knowledge-graph-summary span{display:block}.knowledge-graph-summary strong{font-size:28px;line-height:1}.knowledge-graph-summary span{color:#4c6272;font-size:14px;margin-top:4px}.knowledge-graph{display:grid;grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));gap:12px;margin-top:24px}.knowledge-graph__node{border:1px solid #d8dde0;border-top:4px solid #768692;padding:12px}.knowledge-graph__node strong,.knowledge-graph__node span{display:block}.knowledge-graph__node strong{color:#4c6272;font-size:14px;margin-bottom:4px}.knowledge-graph__node span{font-size:16px}.knowledge-graph__node--user{border-top-color:#005eb8}.knowledge-graph__node--scenario{border-top-color:#d5281b}.knowledge-graph__node--need{border-top-color:#007f3b}.knowledge-graph__node--evidence{border-top-color:#7c2855}.knowledge-admin-theme .knowledge-graph__node--scenario{border-top-color:#330072}.knowledge-admin-theme .knowledge-graph__node--need{border-top-color:#006747}.knowledge-graph__node--journey,.knowledge-graph__node--screen,.knowledge-graph__node--decision{border-top-color:#ffb81c}.knowledge-edge-list{display:grid;gap:8px}.knowledge-edge-list li{background:#f0f4f5;display:grid;grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);gap:12px;padding:12px}.knowledge-edge-list span{color:#4c6272;font-size:14px;font-weight:700;text-transform:uppercase}.knowledge-trace-timeline,.knowledge-trace-children{list-style:none;margin:0;padding-left:0}.knowledge-trace-timeline{position:relative}.knowledge-trace-timeline::before{background:#e3e1d9;bottom:0;content:"";left:14px;position:absolute;top:8px;width:2px}.knowledge-trace-group,.knowledge-trace-item{position:relative}.knowledge-trace-group{padding-left:48px}.knowledge-trace-group__content{margin-bottom:24px}.knowledge-trace-group__content h3{margin-bottom:16px}.knowledge-trace-children{border-left:2px solid #e3e1d9;display:grid;gap:12px;margin-top:12px;padding-left:22px}.knowledge-trace-group__content>.knowledge-trace-children{margin-top:0}.knowledge-trace-item{padding-left:0}.knowledge-trace-item__marker{background:#fff;border:2px solid #00726b;border-radius:50%;height:11px;left:-28.5px;position:absolute;top:16px;width:11px}.knowledge-trace-children .knowledge-trace-children .knowledge-trace-item__marker{border-color:#adb4b8}.knowledge-trace-item__content{background:#fff;border:1px solid #e3e1d9;border-radius:3px;max-width:70ch;padding:12px 16px}.knowledge-trace-item--selected{padding-left:48px}.knowledge-trace-item--selected .knowledge-trace-item__marker{background:#00726b;border-color:#00726b;height:16px;left:7px;top:18px;width:16px}.knowledge-trace-item--selected .knowledge-trace-item__content{border-color:#00726b;border-left-width:4px;margin:8px 0 32px;max-width:none}.knowledge-trace-item__heading{font-size:18px;margin:0 0 4px}.knowledge-trace-item__heading a{text-decoration:none}.knowledge-trace-item__heading a:hover,.knowledge-trace-item__heading a:focus{text-decoration:underline}.knowledge-trace-item--selected .knowledge-trace-item__heading{font-size:20px}.knowledge-trace-item__type{color:#706f68;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px;letter-spacing:.03em;margin:0;text-transform:uppercase}.knowledge-trace-item__relationship{color:#4c6272;font-size:14px;margin:0 0 2px}.knowledge-muted{color:#4c6272}.knowledge-confidence-tag{display:inline-block;padding:2px 8px;font-size:13px;font-weight:700;border-radius:10px}.knowledge-confidence-tag--high{color:#00726b;background:#e6f6f5}.knowledge-confidence-tag--medium{color:#00758f;background:#e6f6fa}.knowledge-confidence-tag--low{color:#4c6272;background:#f0f4f5}.knowledge-matrix-wrap{overflow-x:auto}.knowledge-matrix{border-collapse:collapse;min-width:1200px;width:100%}.knowledge-matrix th,.knowledge-matrix td{border:1px solid #e3e1d9;padding:12px;text-align:left;vertical-align:top}.knowledge-matrix thead th,.knowledge-matrix tbody th{background:#fff}.knowledge-matrix thead th{border-bottom:2px solid #adb4b8}.knowledge-matrix tbody th{border-right:2px solid #adb4b8}.knowledge-matrix__boundary td{border-top:2px dashed #005eb8;color:#005eb8;font-weight:700;text-transform:uppercase}.knowledge-admin-theme .knowledge-matrix__boundary td{border-top-color:#00726b;color:#00726b}.knowledge-blueprint-controls{align-items:flex-start;background:#fff;border:1px solid #e3e1d9;border-radius:3px;display:flex;flex-wrap:wrap;gap:16px 24px;margin-bottom:24px;padding:12px 24px;position:sticky;top:0;z-index:2}.knowledge-blueprint-controls__lenses{display:flex;flex-wrap:wrap;gap:8px}.knowledge-blueprint-controls__legend{font-size:14px;font-weight:700;margin:0 0 6px;width:100%}.knowledge-lens-btn{padding:6px 14px;font:inherit;color:#005eb8;background:#fff;border:2px solid #005eb8;border-radius:20px;cursor:pointer}.knowledge-lens-btn[aria-pressed=true]{color:#fff;background:#005eb8}.knowledge-admin-theme .knowledge-lens-btn{color:#00726b;border-color:#00726b}.knowledge-admin-theme .knowledge-lens-btn[aria-pressed=true]{background:#00726b;color:#fff}.knowledge-blueprint-controls__lanes{display:flex;flex-wrap:wrap;gap:8px 16px;padding:0;margin:0;border:0}.knowledge-blueprint-controls__lanes legend{font-size:14px;font-weight:700;margin-bottom:6px;width:100%}.knowledge-lane-toggle{display:inline-flex;align-items:center;gap:4px;font-size:14px}.knowledge-blueprint-layout{display:grid;grid-template-columns:72px 1fr;gap:24px}.knowledge-blueprint-minimap{position:sticky;top:calc(var(--blueprint-controls-height, 137px) + 16px);align-self:start}.knowledge-blueprint-minimap ul{position:relative;padding:0;margin:0;list-style:none}.knowledge-blueprint-minimap ul::before{position:absolute;top:16px;bottom:16px;left:15px;width:2px;content:"";background:#d8dde0}.knowledge-blueprint-minimap li{position:relative;margin-bottom:16px}.knowledge-blueprint-minimap a{position:relative;display:block}.knowledge-blueprint-minimap__marker{display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-weight:700;color:#005eb8;background:#fff;border:2px solid #005eb8;border-radius:50%}.knowledge-blueprint-minimap a.is-active .knowledge-blueprint-minimap__marker{color:#fff;background:#005eb8}.knowledge-admin-theme .knowledge-blueprint-minimap__marker{color:#00726b;border-color:#00726b}.knowledge-admin-theme .knowledge-blueprint-minimap a.is-active .knowledge-blueprint-minimap__marker{background:#00726b}.knowledge-blueprint-step{scroll-margin-top:88px}.knowledge-flow-diagram{overflow-x:auto;padding:24px;margin-bottom:24px;background:#fff;border:1px solid #d8dde0}.knowledge-flow-source{overflow-x:auto;white-space:pre}.knowledge-admin-theme .knowledge-flow-diagram{border-color:#e3e1d9;border-radius:3px}@media(max-width: 48.0525em){.knowledge-blueprint-layout{display:block}.knowledge-blueprint-minimap{position:static;margin-bottom:16px}.knowledge-blueprint-minimap ul{display:flex;flex-wrap:wrap;gap:8px}.knowledge-blueprint-minimap ul::before{display:none}.knowledge-blueprint-minimap li{margin-bottom:0}.knowledge-lane{grid-template-columns:1fr;gap:8px}.knowledge-edge-list li{grid-template-columns:1fr}.knowledge-trace-timeline::before{left:9px}.knowledge-trace-group,.knowledge-trace-item{padding-left:36px}.knowledge-trace-item__marker{height:16px;left:1px;width:16px}}.knowledge-admin-theme .knowledge-empty-state{max-width:70ch;padding:24px;margin-bottom:24px;background:#fff;border-left:4px solid #aeb7bd}.knowledge-admin-theme .knowledge-empty-state h2{margin-top:0}.knowledge-admin-theme .knowledge-empty-state p:last-child{margin-bottom:0}.knowledge-admin-theme .knowledge-doc{max-width:76ch;padding:24px 32px;background:#fff}.knowledge-admin-theme .knowledge-doc h1{margin-top:0}.knowledge-admin-theme .knowledge-doc h2,.knowledge-admin-theme .knowledge-doc h3{margin-top:32px}.knowledge-admin-theme .knowledge-doc pre{padding:16px;overflow-x:auto;background:#f6f5f2;border-left:4px solid #aeb7bd}.knowledge-admin-theme .knowledge-doc code{font-size:15px}.knowledge-admin-theme .knowledge-doc :not(pre)>code{overflow-wrap:anywhere}.knowledge-admin-theme .knowledge-doc table{width:100%;margin-bottom:24px;border-collapse:collapse}.knowledge-admin-theme .knowledge-doc th,.knowledge-admin-theme .knowledge-doc td{padding:8px 12px;text-align:left;vertical-align:top;border-bottom:1px solid #d8dde0}.knowledge-admin-theme .knowledge-doc img{display:block;max-width:100%;height:auto;margin:24px 0 16px}.knowledge-admin-theme .knowledge-doc-contents{max-width:76ch;margin-bottom:32px;padding:16px 24px 8px;background:#fff;border-left:4px solid #00726b}.knowledge-doc-audience .nhsuk-tag{margin-right:4px}.knowledge-find{align-items:flex-end;background:#fff;border:1px solid #e3e1d9;border-radius:3px;display:flex;flex-wrap:wrap;gap:0 24px;margin-bottom:8px;padding:24px 24px 8px}.knowledge-find .nhsuk-form-group{flex:1 1 14rem;margin-bottom:16px;min-width:0}.knowledge-find .nhsuk-form-group:first-child{flex:2 1 20rem}.knowledge-find .nhsuk-form-group .nhsuk-label{margin-bottom:4px}.knowledge-find .nhsuk-select,.knowledge-find .nhsuk-input{max-width:100%;width:100%}.knowledge-find .nhsuk-button{flex:0 0 auto;margin-bottom:16px}.knowledge-find--compact .nhsuk-form-group,.knowledge-find--compact .nhsuk-form-group:first-child{flex:1 1 16rem;max-width:26rem}.knowledge-find__count{margin-bottom:24px;color:#4c6272}@media(max-width: 48em){.knowledge-find{display:block}}.knowledge-nav{background-color:#fff;border-bottom:1px solid #d8dde0;margin-bottom:24px}.knowledge-nav__list{display:flex;gap:4px;margin:0;padding:0;list-style:none;overflow-x:auto;-webkit-overflow-scrolling:touch}.knowledge-nav__item{margin:0;flex:0 0 auto}.knowledge-nav__link{display:block;padding:12px 12px;text-decoration:none;color:#4c6272;font-weight:600;white-space:nowrap;border-bottom:4px solid rgba(0,0,0,0)}.knowledge-nav__link:hover{color:#00726b;background-color:#f0f4f5}.knowledge-nav__link:focus{outline:3px solid rgba(0,0,0,0);color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32;text-decoration:none}.knowledge-nav__link--current{color:#00726b;border-bottom-color:#00726b}.knowledge-round-status{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin-bottom:8px}.knowledge-status{margin-bottom:32px}.knowledge-status__grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(13rem, 1fr));gap:16px}.knowledge-stat{display:flex;flex-direction:column;gap:4px;padding:16px 20px;background-color:#fff;border:1px solid #d8dde0;border-left:4px solid #768692;border-radius:4px;text-decoration:none}.knowledge-stat:hover{border-color:#00726b;border-left-color:#00726b;background-color:#f0f4f5}.knowledge-stat:focus{outline:3px solid rgba(0,0,0,0);background-color:#ffeb3b;box-shadow:0 0 0 4px #212b32;text-decoration:none}.knowledge-stat--waiting{border-left-color:#ed8b00}.knowledge-stat--done{border-left-color:#007f3b}.knowledge-stat--neutral{border-left-color:#005eb8}.knowledge-stat__value{font-size:2rem;line-height:1.1;font-weight:700;color:#212b32}.knowledge-stat__label{font-weight:600;color:#00726b;text-decoration:underline}.knowledge-stat__detail{font-size:.875rem;color:#4c6272}.knowledge-nav__inner{display:flex;align-items:stretch;gap:16px}.knowledge-nav__wordmark{display:flex;align-items:center;flex:0 0 auto;padding-right:24px;border-right:1px solid #d8dde0;color:#212b32;font-weight:700;text-decoration:none;white-space:nowrap}.knowledge-nav__wordmark:hover{color:#00726b}.knowledge-nav__wordmark:focus{outline:3px solid rgba(0,0,0,0);color:#212b32;background-color:#ffeb3b;box-shadow:0 -2px #ffeb3b,0 4px #212b32}@media(max-width: 40em){.knowledge-nav__wordmark{display:none}}.knowledge-breadcrumb{margin-top:12px;margin-bottom:0;padding:0;background:none}.knowledge-breadcrumb .nhsuk-breadcrumb__list{margin-bottom:0}.knowledge-breadcrumb [aria-current=page]{color:#4c6272}.knowledge-breadcrumb:not(.knowledge-breadcrumb--quiet)+.nhsuk-main-wrapper{padding-top:12px}@media(min-width: 40.0625em){.knowledge-breadcrumb:not(.knowledge-breadcrumb--quiet)+.nhsuk-main-wrapper{padding-top:16px}}.knowledge-integrity{align-items:center;color:#d8dde0;display:flex;gap:8px;margin-bottom:0}.knowledge-integrity__icon{fill:#4caf7d;flex-shrink:0;height:20px;width:20px}.knowledge-integrity--failed{color:#ff8f85}.knowledge-admin-theme .nhsuk-footer{background-color:#1c1c1a;border-top:4px solid #007f3b;color:#fff}.knowledge-admin-theme .nhsuk-footer .nhsuk-width-container{max-width:none;margin-left:16px;margin-right:16px}@media(min-width: 48.0625em){.knowledge-admin-theme .nhsuk-footer .nhsuk-width-container{margin-left:32px;margin-right:32px}}.knowledge-admin-theme .nhsuk-footer__list-item-link,.knowledge-admin-theme .nhsuk-footer__list-item-link:visited,.knowledge-admin-theme .nhsuk-footer__list-item-link:hover{color:#fff}.knowledge-admin-theme .nhsuk-footer__list-item-link:focus{color:#212b32}.knowledge-admin-theme .nhsuk-footer__list{margin-bottom:16px}.knowledge-view-list{list-style:none;margin:0 0 24px;padding:0}.knowledge-view-list-heading{margin-top:24px;margin-bottom:4px}.knowledge-view-list li{border-top:1px solid #e3e1d9;padding:8px 0}.knowledge-view-list li:last-child{border-bottom:1px solid #e3e1d9}.knowledge-view-list .knowledge-note{display:block;margin:2px 0 0}.knowledge-card-grid{--card-min: 260px;--card-fit: auto-fit;display:grid;gap:16px;grid-template-columns:repeat(var(--card-fit), minmax(min(var(--card-min), 100%), 1fr));margin-bottom:32px}.knowledge-card-grid .knowledge-card{margin-bottom:0;max-width:none}.knowledge-card--compact{display:flex;flex-direction:column;padding:16px}.knowledge-card--compact .knowledge-card__meta:last-child{margin-top:auto;padding-top:8px}.knowledge-admin-theme .knowledge-card__label{color:#626058;font-size:13px;font-weight:600;letter-spacing:.01em;line-height:1.3;margin:12px 0 4px}.knowledge-linked-list{font-size:.875rem;list-style:none;margin:0;padding:0}.knowledge-linked-list li{align-items:baseline;display:flex;gap:8px;margin-bottom:6px;padding-left:14px;position:relative}.knowledge-linked-list li::before{background:#8c8a80;border-radius:50%;content:"";height:4px;left:2px;position:absolute;top:.5em;width:4px}.knowledge-linked-list li>a{flex:1 1 auto;min-width:0}.knowledge-linked-list .knowledge-confidence-tag{flex:0 0 auto}.knowledge-linked-list li:last-child{margin-bottom:0}.knowledge-linked-list a{text-decoration:none}.knowledge-linked-list a:hover,.knowledge-linked-list a:focus{text-decoration:underline}.knowledge-admin-theme .knowledge-card__statement{font-size:1rem;font-weight:400;line-height:1.4;margin:0 0 12px}.knowledge-admin-theme .knowledge-card__statement a{text-decoration:none}.knowledge-admin-theme .knowledge-card__statement a:hover,.knowledge-admin-theme .knowledge-card__statement a:focus{text-decoration:underline}.knowledge-card-grid--wide{--card-min: 380px}.knowledge-card__tags{margin-bottom:8px}.knowledge-card__details{margin-bottom:12px}.knowledge-card__details .nhsuk-details__text{font-size:.875rem}.knowledge-connection-list a{text-decoration:none}.knowledge-connection-list a:hover,.knowledge-connection-list a:focus{text-decoration:underline}.knowledge-connection-list li{margin-bottom:8px}.knowledge-flowmap{margin:0 0 32px;overflow-x:auto}.knowledge-flowmap__svg{display:block;min-width:860px;width:100%;height:auto}.knowledge-flowmap__flow{fill:none;stroke:#00726b;stroke-opacity:.22;stroke-linecap:round}.knowledge-flowmap__flow--aside{stroke-dasharray:3 5;stroke-opacity:.4;stroke-width:2 !important}.knowledge-flowmap__flow:hover{stroke-opacity:.55}.knowledge-flowmap__box{fill:#fff;stroke:#adb4b8}.knowledge-flowmap__label{fill:#1c1c1a;font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;font-weight:600}.knowledge-flowmap__count{fill:#4c6272;font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:12px}.knowledge-flowlist{list-style:none;margin:0;padding:0}.knowledge-flowlist__row{align-items:center;border-top:1px solid #e3e1d9;display:grid;gap:16px;grid-template-columns:minmax(220px, 20rem) 1fr 3rem;padding:6px 0}.knowledge-flowlist__row:last-child{border-bottom:1px solid #e3e1d9}.knowledge-flowlist__phrase{color:#706f68;font-style:italic}.knowledge-flowlist__bar{background:#f0efe9;display:block;height:10px}.knowledge-flowlist__bar span{background:#00726b;border-radius:0 4px 4px 0;display:block;height:100%;min-width:2px}.knowledge-flowlist__count{font-family:ui-monospace,"SF Mono",Consolas,monospace;font-size:14px;text-align:right}@media(max-width: 40em){.knowledge-flowlist__row{grid-template-columns:1fr 3rem}.knowledge-flowlist__bar{display:none}}.knowledge-orphan-heading{margin-bottom:8px}.knowledge-orphan-heading+.knowledge-card-grid{margin-bottom:24px}.knowledge-admin-theme .knowledge-card__statement--only{margin-bottom:0}.knowledge-card-grid--fill{--card-fit: auto-fill}.knowledge-screen-preview{--preview-width: 1280px;--preview-height: 820px;--preview-scale: 0.28;margin:0 0 12px}.knowledge-screen-preview__frame{background:#fff;border:1px solid #e3e1d9;border-radius:3px;height:calc(var(--preview-height)*var(--preview-scale));overflow:hidden;position:relative;width:calc(var(--preview-width)*var(--preview-scale));max-width:100%}.knowledge-screen-preview__frame iframe{border:0;height:var(--preview-height);left:0;pointer-events:none;position:absolute;top:0;transform:scale(var(--preview-scale));transform-origin:0 0;width:var(--preview-width)}.knowledge-screen-preview figcaption{align-items:baseline;display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px}.knowledge-screen-preview figcaption code{color:#706f68;font-size:12px}.knowledge-screen-preview--detail{--preview-scale: 0.5}.knowledge-screen-preview--inline{--preview-scale: 0.18}.knowledge-screen-preview--absent{background:#f6f5f2;border:1px dashed #d8dde0;border-radius:3px;padding:12px}@media print{.knowledge-screen-preview__frame{display:none}}.knowledge-screen-preview-row{display:flex;flex-wrap:wrap;gap:16px}.knowledge-template__command{background:#f6f5f2;border:1px solid #e3e1d9;border-radius:3px;display:block;font-size:13px;margin-top:4px;overflow-x:auto;padding:6px 8px;white-space:nowrap}.knowledge-nav__item--secondary .knowledge-nav__link{font-weight:400}.knowledge-nav__item:not(.knowledge-nav__item--secondary)+.knowledge-nav__item--secondary{margin-left:auto;border-left:1px solid #d8dde0;padding-left:4px}.knowledge-cycle{display:grid;grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));gap:16px;margin:0;padding:0;list-style:none;counter-reset:none}.knowledge-cycle__step{position:relative;padding:16px 20px 16px 56px;background-color:#fff;border:1px solid #d8dde0;border-top:4px solid #00726b;border-radius:4px}.knowledge-cycle__number{position:absolute;top:16px;left:16px;width:28px;height:28px;border-radius:50%;background-color:#00726b;color:#fff;font-weight:700;line-height:28px;text-align:center}.knowledge-matrix--options{min-width:720px}.knowledge-matrix--options thead th{min-width:160px}.knowledge-matrix--options th span{display:block;margin-top:4px}.knowledge-matrix__unmet th[scope=row]{border-left:4px solid #d5281b;background-color:#fff8f7}.knowledge-method-tag{text-decoration:none;margin-right:4px;margin-bottom:4px}.knowledge-method-tag:hover{text-decoration:underline}.knowledge-sentiment{margin:0 0 32px}.knowledge-sentiment svg{display:block;width:100%;max-width:960px;height:auto;background-color:#fff;border:1px solid #d8dde0;border-radius:4px}.knowledge-sentiment__axis{stroke:#d8dde0;stroke-dasharray:4 4}.knowledge-sentiment__line{stroke:#00726b;stroke-width:3}.knowledge-sentiment__point{fill:#00726b}.knowledge-sentiment__step{fill:#626058;font-size:12px}.knowledge-admin-theme .knowledge-source{color:#626058;font-size:14px}
@@ -1845,3 +1845,127 @@
1845
1845
  padding: 6px 8px;
1846
1846
  white-space: nowrap;
1847
1847
  }
1848
+
1849
+ // ── The human-centred design layer ──────────────────────────────────────
1850
+
1851
+ // The views that cut across the five activities sit apart from them, at the
1852
+ // end of the bar, with a rule between. The bar is the cycle first and the
1853
+ // tools second, and it should look it.
1854
+ .knowledge-nav__item--secondary {
1855
+ .knowledge-nav__link {
1856
+ font-weight: 400;
1857
+ }
1858
+ }
1859
+
1860
+ .knowledge-nav__item:not(.knowledge-nav__item--secondary) + .knowledge-nav__item--secondary {
1861
+ margin-left: auto;
1862
+ border-left: 1px solid #d8dde0;
1863
+ padding-left: 4px;
1864
+ }
1865
+
1866
+ // The cycle on the landing page. Five cards in a row that wrap, each numbered
1867
+ // for its place in the cycle, with an arrow to the next - and from the last
1868
+ // back to the first, which is the point of drawing it as a cycle at all.
1869
+ .knowledge-cycle {
1870
+ display: grid;
1871
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
1872
+ gap: 16px;
1873
+ margin: 0;
1874
+ padding: 0;
1875
+ list-style: none;
1876
+ counter-reset: none;
1877
+ }
1878
+
1879
+ .knowledge-cycle__step {
1880
+ position: relative;
1881
+ padding: 16px 20px 16px 56px;
1882
+ background-color: #ffffff;
1883
+ border: 1px solid #d8dde0;
1884
+ border-top: 4px solid #00726b;
1885
+ border-radius: 4px;
1886
+ }
1887
+
1888
+ .knowledge-cycle__number {
1889
+ position: absolute;
1890
+ top: 16px;
1891
+ left: 16px;
1892
+ width: 28px;
1893
+ height: 28px;
1894
+ border-radius: 50%;
1895
+ background-color: #00726b;
1896
+ color: #ffffff;
1897
+ font-weight: 700;
1898
+ line-height: 28px;
1899
+ text-align: center;
1900
+ }
1901
+
1902
+ // Grid outcome tags and the row no option meets. The row is marked by a rule
1903
+ // and a label as well as a tint, so it is not carried by colour alone.
1904
+ .knowledge-matrix--options {
1905
+ min-width: 720px;
1906
+
1907
+ thead th {
1908
+ min-width: 160px;
1909
+ }
1910
+
1911
+ th span {
1912
+ display: block;
1913
+ margin-top: 4px;
1914
+ }
1915
+ }
1916
+
1917
+ .knowledge-matrix__unmet th[scope='row'] {
1918
+ border-left: 4px solid #d5281b;
1919
+ background-color: #fff8f7;
1920
+ }
1921
+
1922
+ .knowledge-method-tag {
1923
+ text-decoration: none;
1924
+ margin-right: 4px;
1925
+ margin-bottom: 4px;
1926
+
1927
+ &:hover {
1928
+ text-decoration: underline;
1929
+ }
1930
+ }
1931
+
1932
+ // The journey map's sentiment line.
1933
+ .knowledge-sentiment {
1934
+ margin: 0 0 32px;
1935
+
1936
+ svg {
1937
+ display: block;
1938
+ width: 100%;
1939
+ max-width: 960px;
1940
+ height: auto;
1941
+ background-color: #ffffff;
1942
+ border: 1px solid #d8dde0;
1943
+ border-radius: 4px;
1944
+ }
1945
+ }
1946
+
1947
+ .knowledge-sentiment__axis {
1948
+ stroke: #d8dde0;
1949
+ stroke-dasharray: 4 4;
1950
+ }
1951
+
1952
+ .knowledge-sentiment__line {
1953
+ stroke: #00726b;
1954
+ stroke-width: 3;
1955
+ }
1956
+
1957
+ .knowledge-sentiment__point {
1958
+ fill: #00726b;
1959
+ }
1960
+
1961
+ .knowledge-sentiment__step {
1962
+ fill: #626058;
1963
+ font-size: 12px;
1964
+ }
1965
+
1966
+ // Where a condition or resource was recorded. A sentence-sized aside, so it
1967
+ // reads as prose rather than as the monospaced label style.
1968
+ .knowledge-admin-theme .knowledge-source {
1969
+ color: #626058;
1970
+ font-size: 14px;
1971
+ }
@@ -21,6 +21,7 @@ const COMMANDS = {
21
21
  consequences: 'consequences.js',
22
22
  mcp: 'mcp.js',
23
23
  migrate: 'migrate-knowledge.js',
24
+ 'tidy principles': 'tidy-principles.js',
24
25
  'research sync': 'sync-research-artefacts.js',
25
26
  'research triage': 'triage-research-corpus.js',
26
27
  'research batch': 'import-research-batch.js',
@@ -1,6 +1,6 @@
1
1
  ---
2
- section: recipes
3
- order: 40
2
+ section: plan
3
+ order: 10
4
4
  audience: [viewer, cli]
5
5
  summary: Record why the service exists, who it serves, and the policies, constraints, risks and milestones around it, from a filled-in spreadsheet.
6
6
  ---
@@ -15,6 +15,12 @@ page in the viewer.
15
15
  Like research, it comes in as a draft. Someone checks the draft, then promotes
16
16
  it into the record.
17
17
 
18
+ This is part of **Plan**, the first activity. The policies and constraints it
19
+ records are where organisational requirements come from: a rule nobody has
20
+ turned into a requirement is one no design is being checked against. See
21
+ [Write requirements](write-requirements.md#organisational) and, for what the
22
+ service must achieve for its users, [Set quality objectives](set-quality-objectives.md).
23
+
18
24
  ## Who this is for
19
25
 
20
26
  Delivery managers, product managers and designers who hold the project's
@@ -1,6 +1,6 @@
1
1
  ---
2
- section: recipes
3
- order: 10
2
+ section: start
3
+ order: 40
4
4
  audience: [viewer, cli]
5
5
  summary: Before you plan research, design a screen or write a story, find out what the team already knows about it, and what nobody has asked yet.
6
6
  ---
@@ -11,6 +11,10 @@ knowledge base already holds on the topic. It stops the team finding the same
11
11
  thing out twice, and it tells you plainly when nobody has looked at a topic
12
12
  yet.
13
13
 
14
+ It searches every activity: goals, needs and requirements, design actions,
15
+ decisions and principles, as well as the research. A requirement or principle
16
+ that already covers the topic is design work somebody would otherwise do twice.
17
+
14
18
  ## Who this is for
15
19
 
16
20
  Anyone on the team. With the command line you get the whole answer from one
@@ -1,6 +1,6 @@
1
1
  ---
2
- section: recipes
3
- order: 70
2
+ section: design
3
+ order: 40
4
4
  audience: [viewer, cli]
5
5
  summary: Before designing a journey for a new kind of user, or changing one other people rely on, find what it could break for the users you already know.
6
6
  ---
@@ -17,6 +17,11 @@ then to the other users whose needs rest on the same ground. It lists what it
17
17
  finds. It does not decide what matters. That is a judgement for the team, and
18
18
  the `find-unintended-consequences` skill can help an agent make it with you.
19
19
 
20
+ This is part of **Design**, the fourth activity. It complements
21
+ [Weigh options against requirements](weigh-options-against-requirements.md):
22
+ that checks an option against the requirements you have written down, and this
23
+ looks for the users and decisions the requirements do not mention yet.
24
+
20
25
  ## Who this is for
21
26
 
22
27
  Designers and researchers about to design a journey, and product managers
@@ -125,7 +125,7 @@ a note rather than a warning.
125
125
  Say no until someone has reviewed the drafts, and do not use `--yes`, which
126
126
  promotes without asking.
127
127
 
128
- Two things write to `hippocampus/source/` without a draft:
128
+ Three things write to `hippocampus/source/` without a draft:
129
129
 
130
130
  - **The `ingest-user-personas` skill.** An AI agent writes users, needs,
131
131
  evidence and assumptions from persona documents straight into the record.
@@ -133,8 +133,12 @@ Two things write to `hippocampus/source/` without a draft:
133
133
  - **`npx hippocampus link insight-needs`.** It writes links between insights
134
134
  and needs, and replaces the earlier links for the insights it compares. See
135
135
  [Link insights to needs](link-insights-to-needs.md).
136
+ - **`npx hippocampus tidy principles --apply`.** It moves evidence records that
137
+ are really principles into `principles.json` and rewrites what cited them.
138
+ Without `--apply` it only shows the plan. See
139
+ [Record design principles](record-design-principles.md).
136
140
 
137
- For both, git is the review. Start with nothing else changed in
141
+ For all three, git is the review. Start with nothing else changed in
138
142
  `hippocampus/source/`, read `git diff hippocampus/source` afterwards, and
139
143
  commit only what holds.
140
144
 
@@ -0,0 +1,134 @@
1
+ ---
2
+ section: context
3
+ order: 10
4
+ audience: [viewer, cli]
5
+ summary: Record who uses the service and how - user types, goals, tasks, the physical, social and technical conditions, and resources - so every need has somewhere to come from.
6
+ ---
7
+ # Describe the context of use
8
+
9
+ The context of use is everything a design has to fit: the users, what they are
10
+ trying to achieve, the tasks they do, the conditions they work in and what they
11
+ have to hand. Every need comes from it, so a need without it has nothing to
12
+ stand on.
13
+
14
+ This is the second activity. The viewer brings it together at
15
+ `/hippocampus/context`.
16
+
17
+ ## The five parts, and where each lives
18
+
19
+ | Part | Recorded as | Field or file |
20
+ | --- | --- | --- |
21
+ | Users | Users, marked primary, secondary or indirect | `users.json`: `userType`, `kind`, `userGroupId` |
22
+ | Goals | Goals, one per thing a user is trying to achieve | `goals.json` |
23
+ | Tasks | As-is scenarios: what starts the task and its subtasks | `scenarios.json`: `state: "as-is"`, `trigger`, `happyPath` |
24
+ | Environment | Physical, social and technical conditions | `environment` on a user or a scenario |
25
+ | Resources | What users need to have to hand | `resources` on a user or a scenario |
26
+
27
+ User journey maps describe all five at once, step by step. They are journeys
28
+ with `state: "as-is"`.
29
+
30
+ ## In the viewer
31
+
32
+ `/hippocampus/context` shows:
33
+
34
+ - **users grouped as primary, secondary and indirect**, with anyone not yet
35
+ classified listed separately so the gap is visible
36
+ - **goals** for each user
37
+ - **tasks**: the as-is scenarios, each with its goal, what starts it and its
38
+ subtasks
39
+ - **environment**: every condition recorded, grouped as physical, social and
40
+ technical, with the users and scenarios it came from
41
+ - **resources**
42
+ - **a table of what describes the context of use**, with how many of each this
43
+ knowledge base holds. A zero is a gap, not a failure.
44
+ - **the research behind it**: rounds run as interviews, observation, focus
45
+ groups, surveys or desk research
46
+
47
+ Each user's own page shows their goals, conditions and resources under
48
+ **Context of use**.
49
+
50
+ ## Classify the users
51
+
52
+ Mark every user with `userType`:
53
+
54
+ - `primary`: uses the service for what it is for
55
+ - `secondary`: supports it - configures access, trains people, maintains it.
56
+ A registration authority manager setting up access is a secondary user.
57
+ - `indirect`: never touches it but lives with what it produces. In a records
58
+ service this is the patient, and it is the group teams most often forget to
59
+ write down.
60
+
61
+ Indirect users rarely appear in research, because nobody recruits them. Writing
62
+ them down is how their interests get into the requirements.
63
+
64
+ Mark `kind` as `user-group` or `persona`. A persona is one fictitious member of
65
+ a group; give it `userGroupId` naming its group.
66
+
67
+ ## Write goals
68
+
69
+ A goal is the intended outcome, not the steps to it:
70
+
71
+ ```json
72
+ { "id": "goal-nobody-at-risk-missed", "userId": "clinical-safeguarding", "statement": "Nobody at risk in the household is missed" }
73
+ ```
74
+
75
+ Then point needs and scenarios at it with `goalId`. A need whose "so that" says
76
+ the same as a goal can name the goal instead of repeating it.
77
+
78
+ ## Record the conditions
79
+
80
+ On a user, or on a scenario where the conditions are particular to it:
81
+
82
+ ```json
83
+ "environment": {
84
+ "physical": ["At scene or in the vehicle"],
85
+ "social": ["Caldicott rules on what can be viewed", "Talking to the patient while searching"],
86
+ "technical": ["Variable connectivity", "Tablet in split screen"]
87
+ },
88
+ "resources": ["Smartcard", "The address from the 999 call"]
89
+ ```
90
+
91
+ Leave out a kind nobody has researched. An empty list fails validation on
92
+ purpose: it would claim there is nothing, when the truth is nobody asked.
93
+
94
+ A need that reads "I need NCRS to work on a small screen" is usually a
95
+ technical condition written as a need. Record the condition here, and write the
96
+ need as what the user is trying to get done.
97
+
98
+ ## Mark scenarios and journeys as-is
99
+
100
+ Set `state: "as-is"` on scenarios and journeys that describe how the work is
101
+ done today. A record with no state is read as as-is. Ones that describe the
102
+ work with the new design are `to-be`, and appear under Design instead.
103
+
104
+ Journey steps can carry the journey map's last two lanes:
105
+
106
+ - `opportunities`: what could be better at this step
107
+ - `sentiment`: how the step feels, from `-2` to `2`. When two or more steps
108
+ have one, the journey page draws a sentiment line.
109
+
110
+ ## Record how research was run
111
+
112
+ Each research round can say which methods it used:
113
+
114
+ ```json
115
+ "methods": ["interview", "usability-test"]
116
+ ```
117
+
118
+ Most rounds mix two. The method decides what the round's findings can claim,
119
+ and which activity page lists the round. See
120
+ [Record a usability test](record-a-usability-test.md) for the evaluation
121
+ methods.
122
+
123
+ When participants are recruited as a particular user group, record it with
124
+ `userId` on the participant. That is more reliable than working the group out
125
+ from job titles later.
126
+
127
+ ## Check it
128
+
129
+ ```bash
130
+ npx hippocampus validate
131
+ ```
132
+
133
+ The coverage notes say how many users are not classified and how many rounds
134
+ do not say how they were run.
@@ -1,7 +1,8 @@
1
1
  ---
2
- section: reference
3
- order: 20
2
+ section: design
3
+ order: 30
4
4
  audience: [viewer, cli]
5
+ summary: How design actions, the options weighed for each, and the decision taken are recorded and imported from the tracker workbook.
5
6
  ---
6
7
  # Design actions and decisions
7
8
 
@@ -13,7 +14,7 @@ research that shaped it, and to the options that were considered and turned down
13
14
  ```text
14
15
  findings and insights
15
16
  -> design actions agreed with the team (open: several directions possible)
16
- -> options weighed against each action
17
+ -> options weighed against each action, and against the requirements
17
18
  -> one decision accepted
18
19
  -> into production
19
20
  ```
@@ -27,6 +28,10 @@ A **decision** is one option weighed against an action. All the options sit as
27
28
  `rejected`. `superseded` is for a later round overturning an earlier call — use it
28
29
  rather than editing the original, so the reversal is visible.
29
30
 
31
+ This is part of **Design**, the fourth activity. To compare the options
32
+ against the requirements rather than against each other, see
33
+ [Weigh options against requirements](weigh-options-against-requirements.md).
34
+
30
35
  This needs no record type the knowledge base did not already have.
31
36
  `DecisionSchema` has carried `proposed / accepted / rejected / superseded` all
32
37
  along; it was only ever used for five notes about the prototype spike.