@hippo-digital/hippocampus 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.
Files changed (35) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/README.md +19 -0
  3. package/assets/dist/hippocampus.css +1 -1
  4. package/assets/hippocampus.scss +34 -1
  5. package/docs/agent-roadmap.md +6 -1
  6. package/docs/agent-workflow.md +6 -1
  7. package/docs/ask-whats-already-known.md +159 -0
  8. package/docs/colour-pairings.md +6 -0
  9. package/docs/components.md +7 -1
  10. package/docs/custom-agents-usage.md +6 -1
  11. package/docs/design-actions-and-decisions.md +5 -0
  12. package/docs/diagrams/README.md +44 -0
  13. package/docs/diagrams/evidence-flow.mmd +56 -0
  14. package/docs/diagrams/mermaid.config.json +20 -0
  15. package/docs/hippocampus-for-designers-and-researchers.md +7 -1
  16. package/docs/hippocampus-technical.md +7 -1
  17. package/docs/images/evidence-flow.svg +1 -0
  18. package/docs/import-a-research-round.md +229 -0
  19. package/docs/prompt-architecture-guardrails.md +6 -1
  20. package/docs/repeatable-research-round-ingestion.md +6 -1
  21. package/docs/research-knowledge-graph.md +7 -1
  22. package/docs/research-source-file-conventions.md +7 -2
  23. package/docs/review-and-promote-a-draft.md +203 -0
  24. package/docs/source-model.md +7 -1
  25. package/docs/start-here.md +206 -0
  26. package/lib/create-router.js +26 -3
  27. package/lib/docs.js +288 -30
  28. package/package.json +1 -1
  29. package/scripts/import-research-deck.js +31 -6
  30. package/scripts/known.js +2 -2
  31. package/scripts/promote-research-draft.js +76 -6
  32. package/scripts/smoke-routes.js +8 -1
  33. package/views/hippocampus/doc.html +15 -0
  34. package/views/hippocampus/docs.html +42 -13
  35. package/views/hippocampus/research.html +9 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,79 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.5.0
4
+
5
+ The start of a user guide for people outside the team that built Hippocampus:
6
+ designers, researchers, delivery teams, and reviewers who only ever open the
7
+ viewer. This release gives the documentation a structure to grow into, and
8
+ writes Start here and the three recipes for bringing research in and asking
9
+ what is already known. The data and governance page and the remaining recipes
10
+ follow.
11
+
12
+ - **The docs list is grouped into sections**: Start here, Task recipes, Data
13
+ and governance, Reference, For contributors. Each guide says where it belongs
14
+ in front matter at its top (`section`, `order`, `audience`, and optionally
15
+ `title` and `summary`). Every key is optional and defaults to what the list
16
+ did before, so a guide without front matter still appears, in Reference.
17
+ `TITLE_OVERRIDES` is gone.
18
+ - **Who a guide is for**, shown as tags on the list: Viewer, Command line, or
19
+ both. They label and never filter.
20
+ - **Previous and next links** on every guide, in reading order across
21
+ sections, and the guide's section in the breadcrumb.
22
+ - **Start here**: what Hippocampus is and is not, how research moves from the
23
+ inbox to the viewer, a reading path for people who only use the viewer,
24
+ setting it up with `init` and `doctor`, and exactly when anything leaves your
25
+ machine.
26
+ - **Diagrams.** `{basePath}/docs/images/:file` serves SVG and PNG files from
27
+ `docs/images`, only by a plain name that is in that directory, with a
28
+ content security policy that stops an SVG running script. The first is the
29
+ evidence flow on Start here. Mermaid sources are in `docs/diagrams`, with how
30
+ to re-render them; `doctor` checks every image serves.
31
+ - **Headings have ids again.** `headerIds: true` had been passed to marked
32
+ since this file was written, and ignored since marked v8 dropped it, so no
33
+ link to part of a guide could work. Ids follow GitHub's rule, so one link
34
+ works in the viewer and on GitHub.
35
+ - **Links between guides work in the viewer.** `[Source model](source-model.md)`
36
+ is right on GitHub and was a 404 in the viewer; a bare sibling `.md` link now
37
+ points at the guide's page.
38
+ - **Guide headings are in sentence case**, matching NHS style and the rest of
39
+ the viewer.
40
+ - **Wide card grids no longer run off a phone screen.** A 380px minimum column
41
+ on a 390px screen, less the gutters, pushed every wide grid sideways.
42
+ - **The first three task recipes**: Ask what's already known, Import a
43
+ research round, and Review a draft and promote it. Each says what you see in
44
+ the viewer and what someone runs, uses a short made-up example, and lists the
45
+ failures a team actually meets. They are written for a team importing its own
46
+ research; no example files ship.
47
+ - **A test that every link between guides resolves**, down to the heading it
48
+ names.
49
+
50
+ Writing the recipes meant running every step they describe, which found these:
51
+
52
+ - **Imported insights are linked to the participants they cite again.** The
53
+ link used an id format left over from when participants were per round, so
54
+ every link was quietly dropped and every insight imported with no
55
+ participants, while the import fit said "good". Insights promoted before this
56
+ release keep their empty lists.
57
+ - **A file with a design action before any insight now imports.** The action
58
+ was kept with no insight, the whole file failed validation, and `research
59
+ sync` then skipped the file on every later run. The action is now left out
60
+ with a warning saying where to find it.
61
+ - **Notes written as lists import.** `- Insight: ...` was not read; a prefix
62
+ now counts after a bullet. A prefixed insight also keeps the participant codes
63
+ it cites.
64
+ - **`promote research`** finds a draft path from the project root when run
65
+ from a subfolder; prints a message rather than a stack trace when something is
66
+ wrong, listing the drafts there are when the path is wrong; marks the draft
67
+ promoted, so `research sync` stops offering it again; and says "Already
68
+ promoted" for a draft whose records are all in source, which also puts right
69
+ manifests left behind by earlier versions.
70
+ - **The empty Research page gives commands that exist in a team's prototype.**
71
+ It named `npm run` scripts that only this repository had.
72
+ - **Dating a round:** a full date in the round folder's name is used for every
73
+ file in it. `research-source-file-conventions.md` now says to date the
74
+ folder: two files in one round with different dates in their names cannot
75
+ both be promoted.
76
+
3
77
  ## 2.4.0
4
78
 
5
79
  Room for what a team's insight workbook already holds. Promoting the NCRS
package/README.md CHANGED
@@ -189,6 +189,25 @@ describe the version you have installed. Nothing is copied into your repo -
189
189
  a copied guide goes stale within a release, and the stale one is the copy people
190
190
  read, because it is the one sitting in their editor.
191
191
 
192
+ The list is grouped into sections - Start here, Task recipes, Data and
193
+ governance, Reference, For contributors - by front matter at the top of each
194
+ guide:
195
+
196
+ ```yaml
197
+ ---
198
+ section: recipes # start, recipes, governance, reference or contributors
199
+ order: 20 # within the section; leave gaps of 10
200
+ audience: [viewer, cli]
201
+ summary: One sentence for the card on the list.
202
+ ---
203
+ ```
204
+
205
+ All of it is optional. A guide without it is listed in Reference, titled by
206
+ its first heading. Diagrams go in `docs/images` (SVG or PNG, lower-case
207
+ hyphenated names) and are linked relatively, `![...](images/name.svg)`, so the
208
+ same markdown works in the viewer and on GitHub; their Mermaid sources are in
209
+ `docs/diagrams`.
210
+
192
211
  `skills install` is the deliberate exception: an agent reads skills, agent
193
212
  definitions and instructions as repo files, so those are copied, with hashes so
194
213
  an upgrade can tell a stale copy from one your team has edited. Everything they
@@ -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 .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 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-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(var(--card-min), 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 .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}
@@ -948,6 +948,13 @@
948
948
  font-size: 15px;
949
949
  }
950
950
 
951
+ // A path in a sentence - hippocampus/imports/research/<name>.review.md - is
952
+ // one unbreakable word, and on a phone it pushed the whole page sideways. In
953
+ // running text it may break anywhere; in a code block it scrolls instead.
954
+ .knowledge-admin-theme .knowledge-doc :not(pre) > code {
955
+ overflow-wrap: anywhere;
956
+ }
957
+
951
958
  .knowledge-admin-theme .knowledge-doc table {
952
959
  width: 100%;
953
960
  margin-bottom: 24px;
@@ -962,6 +969,29 @@
962
969
  border-bottom: 1px solid #d8dde0;
963
970
  }
964
971
 
972
+ // Diagrams. Drawn wider than the measure is sometimes tempting; scaled down to
973
+ // it is always readable, where a diagram that pushes the page sideways is not.
974
+ .knowledge-admin-theme .knowledge-doc img {
975
+ display: block;
976
+ max-width: 100%;
977
+ height: auto;
978
+ margin: 24px 0 16px;
979
+ }
980
+
981
+ // The contents box at the top of the docs list.
982
+ .knowledge-admin-theme .knowledge-doc-contents {
983
+ max-width: 76ch;
984
+ margin-bottom: 32px;
985
+ padding: 16px 24px 8px;
986
+ background: #ffffff;
987
+ border-left: 4px solid #00726b;
988
+ }
989
+
990
+ // Who a guide is for. Tags in a row, close under the summary they qualify.
991
+ .knowledge-doc-audience .nhsuk-tag {
992
+ margin-right: 4px;
993
+ }
994
+
965
995
  // The find bar on list pages.
966
996
  //
967
997
  // Laid out in a row on wide screens because the controls belong together as
@@ -1390,7 +1420,10 @@
1390
1420
 
1391
1421
  display: grid;
1392
1422
  gap: 16px;
1393
- grid-template-columns: repeat(var(--card-fit), minmax(var(--card-min), 1fr));
1423
+ // min() so a column never asks for more than the screen has: a 380px
1424
+ // minimum on a 390px phone, less the page gutters, pushed every wide card
1425
+ // grid off the right edge.
1426
+ grid-template-columns: repeat(var(--card-fit), minmax(min(var(--card-min), 100%), 1fr));
1394
1427
  margin-bottom: 32px;
1395
1428
  }
1396
1429
 
@@ -1,4 +1,9 @@
1
- # Agent Roadmap
1
+ ---
2
+ section: contributors
3
+ order: 90
4
+ audience: [cli]
5
+ ---
6
+ # Agent roadmap
2
7
 
3
8
  This roadmap keeps future AI-workflow improvements aligned with the project's original intent.
4
9
 
@@ -1,4 +1,9 @@
1
- # Agent Workflow
1
+ ---
2
+ section: contributors
3
+ order: 30
4
+ audience: [cli]
5
+ ---
6
+ # Agent workflow
2
7
 
3
8
  Use this workflow when making material changes to the knowledge base.
4
9
 
@@ -0,0 +1,159 @@
1
+ ---
2
+ section: recipes
3
+ order: 10
4
+ audience: [viewer, cli]
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
+ ---
7
+ # Ask what's already known
8
+
9
+ Before you plan research, design a screen or write a story, check what the
10
+ knowledge base already holds on the topic. It stops the team finding the same
11
+ thing out twice, and it tells you plainly when nobody has looked at a topic
12
+ yet.
13
+
14
+ ## Who this is for
15
+
16
+ Anyone on the team. With the command line you get the whole answer from one
17
+ command. If you only use the viewer, you can follow most of the same trail by
18
+ browsing: see [In the viewer](#in-the-viewer).
19
+
20
+ ## Before you start
21
+
22
+ - At least one research round needs to have been imported and promoted. If
23
+ none has, the answer will always be that nobody has asked, and the command
24
+ says so. See [Import a research round](import-a-research-round.md).
25
+ - Choose a topic in a word or two, such as `fasting` or `carer`. Short words
26
+ find more than long phrases.
27
+
28
+ ## At the command line
29
+
30
+ 1. From your prototype's folder, run:
31
+
32
+ ```bash
33
+ npx hippocampus known fasting
34
+ ```
35
+
36
+ To search for a phrase, put it in quotes: `npx hippocampus known "home visit"`.
37
+ Words without quotes are each searched for separately.
38
+
39
+ 2. Read the **Coverage** section at the bottom first. It says how many research
40
+ rounds have a finding on the topic. `0 of 6` means none do. That is an
41
+ answer, not an error.
42
+
43
+ 3. Then read the rest from the top:
44
+
45
+ - **Findings**: insights and evidence that mention the topic, oldest round
46
+ first. Each shows its confidence, how many participants it came from, and
47
+ the round and its date. Treat each one as a separate claim. Two rounds
48
+ agreeing is stronger than either on its own.
49
+ - **Assumptions**: beliefs the design rests on that nobody has tested. They
50
+ are listed apart from findings so they are never mistaken for research.
51
+ - **Needs that name it** and **Needs these findings support**.
52
+ - **Design work that names it** and **Already built on these**: design
53
+ actions, decisions, journeys and screens that already exist because of
54
+ these records. Check these before building anything new.
55
+
56
+ 4. Search again using the words the research would use, not only the ones you
57
+ would say. A researcher may have written "fasting" where you would say
58
+ "not eating". A miss on one word is not proof that nobody asked.
59
+
60
+ Lists stop at 25 items. Add `--all` to see everything, or `--json` to get the
61
+ result in a form another tool can read.
62
+
63
+ ### Keep the answer
64
+
65
+ An answer that only exists in a terminal or a chat window will be lost, and
66
+ someone will ask the same question next month. Save it, named with today's
67
+ date:
68
+
69
+ ```bash
70
+ mkdir -p artefacts/knowledge-answers
71
+ npx hippocampus known fasting > artefacts/knowledge-answers/$(date +%F)-fasting.txt
72
+ ```
73
+
74
+ ## What it looks like
75
+
76
+ This example is made up.
77
+
78
+ ```text
79
+ $ npx hippocampus known fasting
80
+ What the knowledge base holds on: fasting
81
+ (/Users/sam/blood-test-prototype, 1 research round)
82
+
83
+ Findings (1) - oldest round first; each is a separate claim
84
+ insight playback-2026-09-15-insight-2 [medium, 1 participant, Round 1 – Booking a blood test, 2026-09-15]
85
+ Receptionists rebook about a third of fasting appointments by phone because the form gives no fasting guidanc…
86
+
87
+ Design work that names it (1)
88
+ designActions playback-2026-09-15-action-2 [proposed]
89
+ Add fasting instructions to the confirmation message for every test that needs them.
90
+
91
+ Coverage
92
+ Rounds with a finding on this: 1 of 1 - Round 1 – Booking a blood test (2026-09-15)
93
+ ```
94
+
95
+ When nothing matches:
96
+
97
+ ```text
98
+ $ npx hippocampus known "home visit"
99
+ What the knowledge base holds on: home visit
100
+ (/Users/sam/blood-test-prototype, 1 research round)
101
+
102
+ No record names this.
103
+
104
+ Coverage
105
+ Rounds with a finding on this: 0 of 1
106
+ No round covered this. That is the finding.
107
+ ```
108
+
109
+ ## In the viewer
110
+
111
+ The viewer has no single "what do we know" page, but you can follow the same
112
+ trail. The pages below are under `/hippocampus` by default.
113
+
114
+ 1. Open `/hippocampus/user-needs` and search for the topic. Each need shows
115
+ the evidence behind it.
116
+ 2. Open `/hippocampus/research`. Rounds are listed newest first, each with its
117
+ participants, insights and design actions. Select an insight to see its
118
+ round, its confidence and the participants it came from.
119
+ 3. Select any evidence link on a need or user page to see everything that
120
+ depends on that piece of research.
121
+ 4. Use `/hippocampus/trace` to follow a record forwards to what was built from
122
+ it, or backwards to the research behind it.
123
+
124
+ Browsing can show you what is there. It cannot tell you for certain that
125
+ nothing is. For that, ask someone to run the command and save the answer.
126
+
127
+ ## How to check it worked
128
+
129
+ The command always ends with a **Coverage** section. If you do not see one,
130
+ the command did not find your knowledge base.
131
+
132
+ ## If it goes wrong
133
+
134
+ - **"No Hippocampus knowledge base found in ..."**: you ran the command
135
+ outside your prototype. Move into your prototype's folder, or add
136
+ `--root <folder>`.
137
+ - **"Usage: hippocampus known ..."**: you did not give a topic.
138
+ - **"This knowledge base has no research rounds yet"**: nothing has been
139
+ imported, so nothing can say whether anyone asked. Start with
140
+ [Import a research round](import-a-research-round.md).
141
+ - **Too many findings that are not about your topic**: words without quotes
142
+ are searched for separately. Put a phrase in quotes to keep it together.
143
+ - **Every finding says "medium"**: imported insights start at medium
144
+ confidence until someone reviews them. Treat them as unchecked, and see
145
+ [Review a draft and promote it](review-and-promote-a-draft.md).
146
+
147
+ ## Related skills
148
+
149
+ - `whats-known-about`: an AI agent runs this command, searches with more than
150
+ one wording, and writes a dated answer to `artefacts/knowledge-answers/` that
151
+ anyone can read later. It ends by naming the question someone would need to
152
+ ask to fill the gap. Whatever the agent reads is sent to the agent's service:
153
+ see [Start here](start-here.md#when-anything-leaves-your-machine).
154
+ - `find-unintended-consequences`: the next step when you are about to change a
155
+ journey, to find who else it could affect.
156
+ - `onboard-team-member`: uses the same search to brief someone new.
157
+
158
+ Agents connected to `hippocampus mcp` can ask the same question through its
159
+ `design_brain_known` tool.
@@ -1,3 +1,9 @@
1
+ ---
2
+ section: reference
3
+ order: 60
4
+ audience: [viewer, cli]
5
+ summary: The NHS colour pairs blueprints use to tell lanes and record types apart: a post-it colour and the pale tint that goes behind it.
6
+ ---
1
7
  # Service blueprint colour pairs
2
8
 
3
9
  Reference palette for colour-coding categories in service blueprint style
@@ -1,4 +1,10 @@
1
- # Knowledge Base Components
1
+ ---
2
+ section: reference
3
+ order: 50
4
+ audience: [cli]
5
+ summary: The Nunjucks macros the viewer is built from - cards, lists, journey steps, blueprint cells - and the rules for changing them.
6
+ ---
7
+ # Knowledge base components
2
8
 
3
9
  Reusable Nunjucks macros live in `node_modules/@hippo-digital/hippocampus/views/hippocampus/components`.
4
10
 
@@ -1,4 +1,9 @@
1
- # Custom Agents Usage
1
+ ---
2
+ section: contributors
3
+ order: 40
4
+ audience: [cli]
5
+ ---
6
+ # Custom agents usage
2
7
 
3
8
  Custom agents should be used for focused review loops. The source model remains the shared contract between them.
4
9
 
@@ -1,3 +1,8 @@
1
+ ---
2
+ section: reference
3
+ order: 20
4
+ audience: [viewer, cli]
5
+ ---
1
6
  # Design actions and decisions
2
7
 
3
8
  How the design process is recorded so that a screen can be traced back to the
@@ -0,0 +1,44 @@
1
+ # Diagrams
2
+
3
+ Mermaid source for the diagrams in the guide. The viewer does not render
4
+ Mermaid, so each diagram is rendered to SVG once and the SVG is committed to
5
+ `docs/images/`. Nothing builds them at install or publish time: a build step
6
+ that needs a headless browser is not worth it for a handful of pictures.
7
+
8
+ | Source | Rendered | Used in |
9
+ | --- | --- | --- |
10
+ | `evidence-flow.mmd` | `images/evidence-flow.svg` | `start-here.md` |
11
+
12
+ ## Changing a diagram
13
+
14
+ 1. Edit the `.mmd` file.
15
+ 2. Re-render it, from `packages/hippocampus/docs`:
16
+
17
+ ```bash
18
+ npx -y @mermaid-js/mermaid-cli@11 \
19
+ -i diagrams/evidence-flow.mmd \
20
+ -o images/evidence-flow.svg \
21
+ -c diagrams/mermaid.config.json \
22
+ -b white
23
+ ```
24
+
25
+ 3. Update the text description beside the image in the guide that uses it.
26
+ The description is how a screen reader user, and anyone reading the
27
+ markdown in an editor, gets the diagram - a diagram whose picture changed
28
+ and whose words did not is wrong for exactly the people least able to
29
+ notice.
30
+ 4. Commit the `.mmd`, the `.svg` and the guide together.
31
+
32
+ ## Rules the config enforces
33
+
34
+ - **Labels are SVG text, not HTML** (`htmlLabels: false`). Mermaid's default
35
+ puts labels in `foreignObject`, which some browsers drop when an SVG is
36
+ shown through an `<img>` tag - the boxes render and the words do not.
37
+ - **Arial at 17px.** The doc page scales a diagram down to its 76ch measure;
38
+ 17px keeps labels at roughly 14px once it has.
39
+ - **Colours come from `colour-pairings.md`**: a post-it colour for the border
40
+ and its tint for the fill, with text in `#212b32`. Every text colour on every
41
+ fill used is above 12:1.
42
+ - **`accTitle` and `accDescr` in every diagram.** Mermaid writes them into the
43
+ SVG as `<title>` and `<desc>`, so the file describes itself when opened on
44
+ its own. They do not replace the description in the guide.
@@ -0,0 +1,56 @@
1
+ %% Source for docs/images/evidence-flow.svg. The SVG is committed rather than
2
+ %% built, because the viewer does not render Mermaid. Change this file, then
3
+ %% re-render with the command in docs/diagrams/README.md and commit both.
4
+ %% start-here.md describes the same steps in words; change it to match.
5
+ flowchart TD
6
+ accTitle: How evidence moves through Hippocampus
7
+ accDescr: Research files go into the inbox. The import command reads each one on your machine and writes a draft into imports. An AI agent can tidy the draft, and what it reads is sent to the agent's service. A person reviews the draft and sends it back if it is not ready. Only a person running promote moves it into source, the record everything else is built from. The viewer shows source as pages. Reviews and handovers built on it are written to artefacts, which is safe to delete.
8
+
9
+ inbox["`**1. Inbox**
10
+ hippocampus/inbox/
11
+ You drop research files in`"]
12
+ import["`**2. Import**
13
+ Automatic, on your machine
14
+ npx hippocampus research sync`"]
15
+ draft["`**3. Draft**
16
+ hippocampus/imports/
17
+ Not trusted yet`"]
18
+ agent["`**Optional: an AI agent tidies the draft**
19
+ What it reads is sent
20
+ to the agent's service`"]
21
+ review["`**4. Review**
22
+ A person reads the draft`"]
23
+ promote["`**5. Promote**
24
+ A person runs
25
+ npx hippocampus promote research`"]
26
+ source["`**6. Source**
27
+ hippocampus/source/
28
+ The record everything is built from`"]
29
+ viewer["`**7. Viewer**
30
+ /hippocampus
31
+ Pages built from source`"]
32
+ artefacts["`**Artefacts**
33
+ artefacts/
34
+ Reviews and handovers,
35
+ safe to delete`"]
36
+
37
+ inbox --> import --> draft --> review
38
+ agent -.-> draft
39
+ review -->|Ready| promote
40
+ review -.->|Not ready| draft
41
+ promote --> source --> viewer
42
+ source -.-> artefacts
43
+
44
+ classDef neutral fill:#ffffff,stroke:#4c6272,stroke-width:2px,color:#212b32
45
+ classDef machine fill:#e6f6fa,stroke:#00758f,stroke-width:2px,color:#212b32
46
+ classDef human fill:#e6eff8,stroke:#005eb8,stroke-width:2px,color:#212b32
47
+ classDef record fill:#e6f6f5,stroke:#00726b,stroke-width:4px,color:#212b32
48
+ classDef leaves fill:#fdf3e6,stroke:#8e5300,stroke-width:2px,stroke-dasharray:6 4,color:#212b32
49
+ classDef generated fill:#ffffff,stroke:#768692,stroke-width:2px,stroke-dasharray:6 4,color:#212b32
50
+
51
+ class inbox,viewer neutral
52
+ class import,draft machine
53
+ class review,promote human
54
+ class source record
55
+ class agent leaves
56
+ class artefacts generated
@@ -0,0 +1,20 @@
1
+ {
2
+ "theme": "base",
3
+ "htmlLabels": false,
4
+ "themeVariables": {
5
+ "fontFamily": "Arial, Helvetica, sans-serif",
6
+ "fontSize": "17px",
7
+ "primaryTextColor": "#212b32",
8
+ "lineColor": "#4c6272",
9
+ "edgeLabelBackground": "#ffffff"
10
+ },
11
+ "flowchart": {
12
+ "htmlLabels": false,
13
+ "curve": "basis",
14
+ "nodeSpacing": 40,
15
+ "rankSpacing": 46,
16
+ "wrappingWidth": 320,
17
+ "padding": 14,
18
+ "useMaxWidth": true
19
+ }
20
+ }
@@ -1,4 +1,10 @@
1
- # Hippocampus for Designers and Researchers
1
+ ---
2
+ section: start
3
+ order: 20
4
+ audience: [viewer, cli]
5
+ summary: What Hippocampus keeps, how the pieces link up, and the viewer pages that answer the questions a team keeps asking.
6
+ ---
7
+ # Hippocampus for designers and researchers
2
8
 
3
9
  Hippocampus is a place to keep design knowledge in a structured way.
4
10
 
@@ -1,4 +1,10 @@
1
- # Hippocampus Technical Model
1
+ ---
2
+ section: contributors
3
+ order: 20
4
+ audience: [cli]
5
+ summary: How the viewer loads the source, builds its indexes and two graph models, and where its current limits are.
6
+ ---
7
+ # Hippocampus technical model
2
8
 
3
9
  Hippocampus is a structured design knowledge store for NHS Prototype Kit projects.
4
10