@hippo-digital/hippocampus 2.4.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +128 -0
- package/README.md +19 -0
- package/assets/dist/hippocampus.css +1 -1
- package/assets/hippocampus.scss +34 -1
- package/bin/hippocampus.js +1 -1
- package/docs/add-project-context.md +225 -0
- package/docs/agent-roadmap.md +6 -1
- package/docs/agent-workflow.md +6 -1
- package/docs/ask-whats-already-known.md +159 -0
- package/docs/check-for-unintended-consequences.md +191 -0
- package/docs/colour-pairings.md +6 -0
- package/docs/components.md +7 -1
- package/docs/custom-agents-usage.md +6 -1
- package/docs/data-and-governance.md +188 -0
- package/docs/design-actions-and-decisions.md +5 -0
- package/docs/diagrams/README.md +44 -0
- package/docs/diagrams/evidence-flow.mmd +56 -0
- package/docs/diagrams/mermaid.config.json +20 -0
- package/docs/hippocampus-for-designers-and-researchers.md +9 -3
- package/docs/hippocampus-technical.md +7 -1
- package/docs/images/evidence-flow.svg +1 -0
- package/docs/import-a-research-round.md +233 -0
- package/docs/link-insights-to-needs.md +225 -0
- package/docs/prompt-architecture-guardrails.md +6 -1
- package/docs/repeatable-research-round-ingestion.md +9 -3
- package/docs/research-knowledge-graph.md +12 -4
- package/docs/research-source-file-conventions.md +7 -2
- package/docs/review-and-promote-a-draft.md +212 -0
- package/docs/source-model.md +7 -1
- package/docs/start-here.md +223 -0
- package/docs/turn-personas-into-users-and-needs.md +207 -0
- package/lib/create-router.js +26 -3
- package/lib/docs.js +288 -30
- package/lib/templates.js +1 -1
- package/package.json +1 -1
- package/scripts/consequences.js +7 -5
- package/scripts/import-project-context.js +17 -5
- package/scripts/import-research-deck.js +31 -6
- package/scripts/known.js +2 -2
- package/scripts/link-insights-to-needs.js +38 -13
- package/scripts/promote-project-context-draft.js +66 -15
- package/scripts/promote-research-draft.js +99 -12
- package/scripts/smoke-routes.js +8 -1
- package/scripts/sync-project-context.js +90 -12
- package/skills/ingest-project-context/SKILL.md +1 -1
- package/skills/skills.json +2 -2
- package/skills/structure-project-context-draft/SKILL.md +1 -1
- package/templates/project-context.xlsx +0 -0
- package/views/hippocampus/doc.html +15 -0
- package/views/hippocampus/docs.html +42 -13
- package/views/hippocampus/research.html +9 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,133 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.6.0
|
|
4
|
+
|
|
5
|
+
The user guide's data and governance page and four more task recipes, and the
|
|
6
|
+
fixes found by running every command in them against a fresh project.
|
|
7
|
+
`import project-context` now does what the documentation always said it did,
|
|
8
|
+
and `link insight-needs` works on a knowledge base the size a new project has.
|
|
9
|
+
No schema change.
|
|
10
|
+
|
|
11
|
+
- **Data and governance**, the user guide's phase 3 page: what to agree with
|
|
12
|
+
your information governance lead before the first import; where research
|
|
13
|
+
data lives and what to commit; the `.gitignore` lines that keep research
|
|
14
|
+
files and import drafts out of git, and how to stop tracking them if they
|
|
15
|
+
are already committed; personal data in promoted records; who can see the
|
|
16
|
+
knowledge base, including anyone with the published prototype's password;
|
|
17
|
+
and exactly when anything leaves the machine. Start here and the recipes
|
|
18
|
+
link to it, and the review checklist now asks whether anything in a draft
|
|
19
|
+
could identify a participant.
|
|
20
|
+
- **A later file from the same round keeps the round's date.** When a round
|
|
21
|
+
folder has no date, each file is dated from its own name, and fieldwork runs
|
|
22
|
+
over days, so the files of one round routinely disagree. `promote research`
|
|
23
|
+
refused the second file outright. The round now keeps the date it was first
|
|
24
|
+
promoted with, and the run says so. A different title under the same round
|
|
25
|
+
id still refuses, with a message saying two rounds have been given the same
|
|
26
|
+
number.
|
|
27
|
+
- **Four more recipes**: Add project context, Turn personas into users and
|
|
28
|
+
needs, Link insights to needs, and Check for unintended consequences. The
|
|
29
|
+
data and governance page now names the two things that write to
|
|
30
|
+
`hippocampus/source/` without a draft, the `ingest-user-personas` skill and
|
|
31
|
+
`link insight-needs`, and says to review both with `git diff`.
|
|
32
|
+
- **`import project-context` works as documented.** It ran the single-file
|
|
33
|
+
importer, which needs `--document`, `--context-id` and `--title`, so every
|
|
34
|
+
documented way of running it stopped at a usage message. It now imports
|
|
35
|
+
every new file in `hippocampus/inbox/project`, or the files you name. A
|
|
36
|
+
filled-in copy of `templates/project-context.xlsx` is read (only decks and
|
|
37
|
+
PDFs were), a flag before a file name no longer swallows it, `--help`
|
|
38
|
+
prints the usage, a file whose import failed is tried again, and a run that
|
|
39
|
+
does not promote prints the command that would.
|
|
40
|
+
- **`promote project-context`** takes the draft path the import prints from
|
|
41
|
+
any folder in the project, lists the drafts there are when the path is
|
|
42
|
+
missing or wrong, reports errors without a stack trace, says how many
|
|
43
|
+
records a corrected draft updates, and records the promotion so the next
|
|
44
|
+
import does not offer it again. The template card on the docs page names
|
|
45
|
+
the `--draft` it needs.
|
|
46
|
+
- **`link insight-needs` links on a small knowledge base.** A term counted as
|
|
47
|
+
distinctive at a weight of 2, which no term could reach with fewer than six
|
|
48
|
+
needs, so a new project's first run linked nothing. It is now a term in at
|
|
49
|
+
most about a third of the needs.
|
|
50
|
+
- **`link insight-needs --round` keeps the other rounds' links.** It replaced
|
|
51
|
+
every insight's links with the matched round's, deleting the rest.
|
|
52
|
+
- The PDF parser loads only for PDFs, so a spreadsheet or deck imports on a
|
|
53
|
+
Node version the parser dislikes. `consequences` no longer says "1 roles"
|
|
54
|
+
or "participant(s)", and the template's summary guidance no longer says
|
|
55
|
+
REQUIRED twice.
|
|
56
|
+
|
|
57
|
+
## 2.5.0
|
|
58
|
+
|
|
59
|
+
The start of a user guide for people outside the team that built Hippocampus:
|
|
60
|
+
designers, researchers, delivery teams, and reviewers who only ever open the
|
|
61
|
+
viewer. This release gives the documentation a structure to grow into, and
|
|
62
|
+
writes Start here and the three recipes for bringing research in and asking
|
|
63
|
+
what is already known. The data and governance page and the remaining recipes
|
|
64
|
+
follow.
|
|
65
|
+
|
|
66
|
+
- **The docs list is grouped into sections**: Start here, Task recipes, Data
|
|
67
|
+
and governance, Reference, For contributors. Each guide says where it belongs
|
|
68
|
+
in front matter at its top (`section`, `order`, `audience`, and optionally
|
|
69
|
+
`title` and `summary`). Every key is optional and defaults to what the list
|
|
70
|
+
did before, so a guide without front matter still appears, in Reference.
|
|
71
|
+
`TITLE_OVERRIDES` is gone.
|
|
72
|
+
- **Who a guide is for**, shown as tags on the list: Viewer, Command line, or
|
|
73
|
+
both. They label and never filter.
|
|
74
|
+
- **Previous and next links** on every guide, in reading order across
|
|
75
|
+
sections, and the guide's section in the breadcrumb.
|
|
76
|
+
- **Start here**: what Hippocampus is and is not, how research moves from the
|
|
77
|
+
inbox to the viewer, a reading path for people who only use the viewer,
|
|
78
|
+
setting it up with `init` and `doctor`, and exactly when anything leaves your
|
|
79
|
+
machine.
|
|
80
|
+
- **Diagrams.** `{basePath}/docs/images/:file` serves SVG and PNG files from
|
|
81
|
+
`docs/images`, only by a plain name that is in that directory, with a
|
|
82
|
+
content security policy that stops an SVG running script. The first is the
|
|
83
|
+
evidence flow on Start here. Mermaid sources are in `docs/diagrams`, with how
|
|
84
|
+
to re-render them; `doctor` checks every image serves.
|
|
85
|
+
- **Headings have ids again.** `headerIds: true` had been passed to marked
|
|
86
|
+
since this file was written, and ignored since marked v8 dropped it, so no
|
|
87
|
+
link to part of a guide could work. Ids follow GitHub's rule, so one link
|
|
88
|
+
works in the viewer and on GitHub.
|
|
89
|
+
- **Links between guides work in the viewer.** `[Source model](source-model.md)`
|
|
90
|
+
is right on GitHub and was a 404 in the viewer; a bare sibling `.md` link now
|
|
91
|
+
points at the guide's page.
|
|
92
|
+
- **Guide headings are in sentence case**, matching NHS style and the rest of
|
|
93
|
+
the viewer.
|
|
94
|
+
- **Wide card grids no longer run off a phone screen.** A 380px minimum column
|
|
95
|
+
on a 390px screen, less the gutters, pushed every wide grid sideways.
|
|
96
|
+
- **The first three task recipes**: Ask what's already known, Import a
|
|
97
|
+
research round, and Review a draft and promote it. Each says what you see in
|
|
98
|
+
the viewer and what someone runs, uses a short made-up example, and lists the
|
|
99
|
+
failures a team actually meets. They are written for a team importing its own
|
|
100
|
+
research; no example files ship.
|
|
101
|
+
- **A test that every link between guides resolves**, down to the heading it
|
|
102
|
+
names.
|
|
103
|
+
|
|
104
|
+
Writing the recipes meant running every step they describe, which found these:
|
|
105
|
+
|
|
106
|
+
- **Imported insights are linked to the participants they cite again.** The
|
|
107
|
+
link used an id format left over from when participants were per round, so
|
|
108
|
+
every link was quietly dropped and every insight imported with no
|
|
109
|
+
participants, while the import fit said "good". Insights promoted before this
|
|
110
|
+
release keep their empty lists.
|
|
111
|
+
- **A file with a design action before any insight now imports.** The action
|
|
112
|
+
was kept with no insight, the whole file failed validation, and `research
|
|
113
|
+
sync` then skipped the file on every later run. The action is now left out
|
|
114
|
+
with a warning saying where to find it.
|
|
115
|
+
- **Notes written as lists import.** `- Insight: ...` was not read; a prefix
|
|
116
|
+
now counts after a bullet. A prefixed insight also keeps the participant codes
|
|
117
|
+
it cites.
|
|
118
|
+
- **`promote research`** finds a draft path from the project root when run
|
|
119
|
+
from a subfolder; prints a message rather than a stack trace when something is
|
|
120
|
+
wrong, listing the drafts there are when the path is wrong; marks the draft
|
|
121
|
+
promoted, so `research sync` stops offering it again; and says "Already
|
|
122
|
+
promoted" for a draft whose records are all in source, which also puts right
|
|
123
|
+
manifests left behind by earlier versions.
|
|
124
|
+
- **The empty Research page gives commands that exist in a team's prototype.**
|
|
125
|
+
It named `npm run` scripts that only this repository had.
|
|
126
|
+
- **Dating a round:** a full date in the round folder's name is used for every
|
|
127
|
+
file in it. `research-source-file-conventions.md` now says to date the
|
|
128
|
+
folder: two files in one round with different dates in their names cannot
|
|
129
|
+
both be promoted.
|
|
130
|
+
|
|
3
131
|
## 2.4.0
|
|
4
132
|
|
|
5
133
|
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, ``, 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}
|
package/assets/hippocampus.scss
CHANGED
|
@@ -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
|
-
|
|
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
|
|
package/bin/hippocampus.js
CHANGED
|
@@ -26,7 +26,7 @@ const COMMANDS = {
|
|
|
26
26
|
'research batch': 'import-research-batch.js',
|
|
27
27
|
'import research-deck': 'import-research-deck.js',
|
|
28
28
|
'import blueprint': 'import-blueprint-spreadsheet.js',
|
|
29
|
-
'import project-context': '
|
|
29
|
+
'import project-context': 'sync-project-context.js',
|
|
30
30
|
'import design-actions': 'import-design-actions.js',
|
|
31
31
|
'promote research': 'promote-research-draft.js',
|
|
32
32
|
'promote project-context': 'promote-project-context-draft.js',
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
---
|
|
2
|
+
section: recipes
|
|
3
|
+
order: 40
|
|
4
|
+
audience: [viewer, cli]
|
|
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
|
+
---
|
|
7
|
+
# Add project context
|
|
8
|
+
|
|
9
|
+
Project context is the briefing material around the research: why the service
|
|
10
|
+
exists, who it is for, how people reach it, the policies and constraints it
|
|
11
|
+
works within, its risks and milestones, and facts such as volumes and dates.
|
|
12
|
+
It is not research, so it does not go into a research round. It has its own
|
|
13
|
+
page in the viewer.
|
|
14
|
+
|
|
15
|
+
Like research, it comes in as a draft. Someone checks the draft, then promotes
|
|
16
|
+
it into the record.
|
|
17
|
+
|
|
18
|
+
## Who this is for
|
|
19
|
+
|
|
20
|
+
Delivery managers, product managers and designers who hold the project's
|
|
21
|
+
briefing material, and whoever runs commands in the prototype. Anyone can read
|
|
22
|
+
the result in the viewer.
|
|
23
|
+
|
|
24
|
+
## Before you start
|
|
25
|
+
|
|
26
|
+
### Use the template
|
|
27
|
+
|
|
28
|
+
The reliable way in is the project context spreadsheet. Its columns are the
|
|
29
|
+
fields the record has, so nothing has to be guessed. Download it from the
|
|
30
|
+
guide's home page, `/hippocampus/docs`, under **Templates to fill in**, or copy
|
|
31
|
+
`node_modules/@hippo-digital/hippocampus/templates/project-context.xlsx`.
|
|
32
|
+
|
|
33
|
+
You can import a PowerPoint deck (`.pptx`) or a PDF instead, but expect a
|
|
34
|
+
partial draft. The importer guesses which lines are risks, milestones and
|
|
35
|
+
constraints, misses most of the rest, and can turn a heading such as "Risks"
|
|
36
|
+
into a record of its own. Filling in the template from the deck is usually
|
|
37
|
+
quicker than correcting that draft.
|
|
38
|
+
|
|
39
|
+
### Fill it in
|
|
40
|
+
|
|
41
|
+
- **Overview**: fill in the **value** column. `id`, `title` and `summary` are
|
|
42
|
+
required. Leave the others blank if nobody has written them down. A blank
|
|
43
|
+
cell is honest; an invented one reads as fact.
|
|
44
|
+
- **Every other tab**: one row per record, starting with an `id` in lowercase
|
|
45
|
+
words joined by hyphens, such as `fasting-instructions-by-letter`. Each id
|
|
46
|
+
must be different from the others on that tab.
|
|
47
|
+
- Leave the guidance row (in brackets) and the example row (its id starts
|
|
48
|
+
`example-`) where they are. The importer skips them.
|
|
49
|
+
|
|
50
|
+
The **Users** tab lists the groups the project serves, as background. It does
|
|
51
|
+
not add users to the knowledge base. Those come from personas: see
|
|
52
|
+
[Turn personas into users and needs](turn-personas-into-users-and-needs.md).
|
|
53
|
+
|
|
54
|
+
Project context is committed to git and published with the prototype, like the
|
|
55
|
+
rest of the record, so keep personal data out of it. See
|
|
56
|
+
[Data and governance](data-and-governance.md).
|
|
57
|
+
|
|
58
|
+
## At the command line
|
|
59
|
+
|
|
60
|
+
1. Save the filled-in spreadsheet in `hippocampus/inbox/project/`.
|
|
61
|
+
|
|
62
|
+
2. From your prototype's folder, run:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
npx hippocampus import project-context --no-promote
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
With no file named, it imports every new file in `hippocampus/inbox/project/`.
|
|
69
|
+
To import one file from anywhere, name it:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
npx hippocampus import project-context --no-promote "path/to/Project context.xlsx"
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
If you leave off `--no-promote`, it asks whether to promote straight away,
|
|
76
|
+
and the answer defaults to no. Say no until someone has read the draft.
|
|
77
|
+
|
|
78
|
+
3. Open the review file it names:
|
|
79
|
+
`hippocampus/imports/project/<name>.review.md`. It lists the warnings, how
|
|
80
|
+
many records of each kind were found, and the text that was read from each
|
|
81
|
+
tab.
|
|
82
|
+
|
|
83
|
+
4. Check the draft, `hippocampus/imports/project/<name>.json`, against the
|
|
84
|
+
spreadsheet. Fix anything wrong in the spreadsheet and import it again, or
|
|
85
|
+
correct the draft itself.
|
|
86
|
+
|
|
87
|
+
5. Try the promotion without writing anything:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
npx hippocampus promote project-context --draft hippocampus/imports/project/<name>.json --dry-run
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
6. Promote it:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npx hippocampus promote project-context --draft hippocampus/imports/project/<name>.json
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
This writes `hippocampus/source/project-context.json`, then checks the whole
|
|
100
|
+
knowledge base.
|
|
101
|
+
|
|
102
|
+
7. Commit `hippocampus/source/project-context.json` and
|
|
103
|
+
`hippocampus/manifests/`.
|
|
104
|
+
|
|
105
|
+
### Changing it later
|
|
106
|
+
|
|
107
|
+
Edit the same spreadsheet and import it again. Because its contents have
|
|
108
|
+
changed, it is imported as a new draft whose name ends in `-2`. Promote that
|
|
109
|
+
one.
|
|
110
|
+
|
|
111
|
+
Promotion merges by id:
|
|
112
|
+
|
|
113
|
+
- a row whose id is already in the record replaces it
|
|
114
|
+
- a row with a new id is added
|
|
115
|
+
- an Overview field filled in on the draft replaces the one in the record
|
|
116
|
+
- **a row you deleted from the spreadsheet stays in the record**. Remove it
|
|
117
|
+
from `hippocampus/source/project-context.json` by hand.
|
|
118
|
+
|
|
119
|
+
## What it looks like
|
|
120
|
+
|
|
121
|
+
This example is made up.
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
$ npx hippocampus import project-context --no-promote
|
|
125
|
+
Read 9 tabs
|
|
126
|
+
Import fit: needs review
|
|
127
|
+
Import warnings:
|
|
128
|
+
- Overview left blank: problemStatement, serviceProposition. Blank is fine if nobody has written it down - say so rather than inventing it.
|
|
129
|
+
- Policies is empty.
|
|
130
|
+
Draft written to hippocampus/imports/project/project-context-2026-10.json
|
|
131
|
+
Review written to hippocampus/imports/project/project-context-2026-10.review.md
|
|
132
|
+
Project context inbox: hippocampus/inbox/project
|
|
133
|
+
Files found: 1
|
|
134
|
+
Supported files: 1
|
|
135
|
+
New imports created: 1
|
|
136
|
+
Already known: 0
|
|
137
|
+
Unsupported files: 0
|
|
138
|
+
Unpromoted drafts: 1
|
|
139
|
+
New project context drafts:
|
|
140
|
+
- project-context-2026-10: hippocampus/imports/project/project-context-2026-10.review.md
|
|
141
|
+
Promotable drafts:
|
|
142
|
+
- project-context-2026-10: hippocampus/imports/project/project-context-2026-10.json
|
|
143
|
+
|
|
144
|
+
Next: read each review file, correct the draft if it needs it, then promote it:
|
|
145
|
+
npx hippocampus promote project-context --draft hippocampus/imports/project/project-context-2026-10.json
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
`needs review` here only means some tabs were left empty. Read the warnings:
|
|
149
|
+
each one is either something to fill in or something nobody has written down.
|
|
150
|
+
|
|
151
|
+
Promoting it:
|
|
152
|
+
|
|
153
|
+
```text
|
|
154
|
+
$ npx hippocampus promote project-context --draft hippocampus/imports/project/project-context-2026-10.json
|
|
155
|
+
users: +3, channels: +2, policies: +0, constraints: +1, risks: +2, milestones: +2, facts: +1, sourceArtefacts: +1
|
|
156
|
+
hippocampus: knowledge data is valid
|
|
157
|
+
Project context draft promoted and knowledge validation passed.
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
On a later promotion, `+0 (2 updated)` means two records already in the
|
|
161
|
+
record were replaced by the draft's versions.
|
|
162
|
+
|
|
163
|
+
## In the viewer
|
|
164
|
+
|
|
165
|
+
Open **Project** in the viewer's menu, or `/hippocampus/project`. The page
|
|
166
|
+
shows the overview, then a section for each tab: users, channels, policies,
|
|
167
|
+
constraints, risks, milestones, facts and sources. An empty section says
|
|
168
|
+
nothing has been added yet.
|
|
169
|
+
|
|
170
|
+
Nothing shows until a draft is promoted.
|
|
171
|
+
|
|
172
|
+
## How to check it worked
|
|
173
|
+
|
|
174
|
+
- The promotion ends with `Project context draft promoted and knowledge
|
|
175
|
+
validation passed.`
|
|
176
|
+
- The Project page shows what you filled in.
|
|
177
|
+
- Running `npx hippocampus import project-context` again says
|
|
178
|
+
`Unpromoted drafts: 0`.
|
|
179
|
+
|
|
180
|
+
## If it goes wrong
|
|
181
|
+
|
|
182
|
+
- **"No file at ..."**: check the path. A path is read from the folder you are
|
|
183
|
+
in, then from the prototype's folder.
|
|
184
|
+
- **"... is not a file project context can be imported from"**: only `.xlsx`,
|
|
185
|
+
`.pptx` and `.pdf` are read. Older formats such as `.xls` and `.ppt` are not.
|
|
186
|
+
- **"The Users tab has no "id" column header"**: a tab's header row has been
|
|
187
|
+
changed or deleted. Copy that tab's header from a fresh template.
|
|
188
|
+
- **"The Risks tab uses the id ... more than once"**: two rows on that tab share
|
|
189
|
+
an id. Give one of them a different id.
|
|
190
|
+
- **"Imported draft does not match ProjectContextImportDraftSchema"**, then a
|
|
191
|
+
list, then **"Import failed for ..."**: each line of the list names a cell
|
|
192
|
+
that is missing or in the wrong form. `projectContext.risks.0.severity` is
|
|
193
|
+
the severity in the first risk row, which must be `high`, `medium` or `low`;
|
|
194
|
+
`milestones.0.date` must be a date written `2026-12-18`. Fix the spreadsheet
|
|
195
|
+
and import it again. A file that failed is tried again; it is not skipped as
|
|
196
|
+
already imported.
|
|
197
|
+
- **"Project context draft does not match ProjectContextImportDraftSchema"**
|
|
198
|
+
when promoting: the same check, on a draft that has been edited by hand.
|
|
199
|
+
Fix the field it names in the draft.
|
|
200
|
+
- **"was imported before, as ..."**: that exact file has been imported already.
|
|
201
|
+
Files are recognised by their contents, so renaming one does not make it new.
|
|
202
|
+
- **"No draft at ..."**: the message lists the drafts there are. Copy the path
|
|
203
|
+
from that list.
|
|
204
|
+
- **The promotion says "No users yet"**: that is about the knowledge base's
|
|
205
|
+
users, which come from personas, not about the Users tab. See
|
|
206
|
+
[Turn personas into users and needs](turn-personas-into-users-and-needs.md).
|
|
207
|
+
- **"Promotion wrote project context, but knowledge validation failed"**: the
|
|
208
|
+
record was written, but something in the knowledge base breaks the rules.
|
|
209
|
+
The lines above the message say what. If the problem is in what you just
|
|
210
|
+
promoted, fix it in `hippocampus/source/project-context.json`, or undo the
|
|
211
|
+
promotion: `git checkout -- hippocampus/source/project-context.json` puts
|
|
212
|
+
back the last committed version, and if this was the first promotion,
|
|
213
|
+
delete the file.
|
|
214
|
+
|
|
215
|
+
## Related skills
|
|
216
|
+
|
|
217
|
+
- `ingest-project-context`: an AI agent imports the inbox without promoting,
|
|
218
|
+
structures the draft from the text it extracted, and checks it with a dry
|
|
219
|
+
run. It never promotes.
|
|
220
|
+
- `structure-project-context-draft`: an agent improves a draft, usually one
|
|
221
|
+
from a deck or PDF, using only the extracted text, and leaves out any policy,
|
|
222
|
+
risk or milestone the source does not name.
|
|
223
|
+
|
|
224
|
+
Whatever an agent reads is sent to the agent's service. See
|
|
225
|
+
[When anything leaves your machine](data-and-governance.md#when-anything-leaves-your-machine).
|
package/docs/agent-roadmap.md
CHANGED