@hippo-digital/hippocampus 2.5.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 +54 -0
- package/bin/hippocampus.js +1 -1
- package/docs/add-project-context.md +225 -0
- package/docs/check-for-unintended-consequences.md +191 -0
- package/docs/data-and-governance.md +188 -0
- package/docs/hippocampus-for-designers-and-researchers.md +2 -2
- package/docs/import-a-research-round.md +11 -7
- package/docs/link-insights-to-needs.md +225 -0
- package/docs/repeatable-research-round-ingestion.md +3 -2
- package/docs/research-knowledge-graph.md +5 -3
- package/docs/research-source-file-conventions.md +1 -1
- package/docs/review-and-promote-a-draft.md +15 -6
- package/docs/start-here.md +17 -0
- package/docs/turn-personas-into-users-and-needs.md +207 -0
- 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/link-insights-to-needs.js +38 -13
- package/scripts/promote-project-context-draft.js +66 -15
- package/scripts/promote-research-draft.js +23 -6
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
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
|
+
|
|
3
57
|
## 2.5.0
|
|
4
58
|
|
|
5
59
|
The start of a user guide for people outside the team that built Hippocampus:
|
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).
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
---
|
|
2
|
+
section: recipes
|
|
3
|
+
order: 70
|
|
4
|
+
audience: [viewer, cli]
|
|
5
|
+
summary: Before designing a journey for a new kind of user, or changing one other people rely on, find what it could break for the users you already know.
|
|
6
|
+
---
|
|
7
|
+
# Check for unintended consequences
|
|
8
|
+
|
|
9
|
+
A new journey rarely stands on its own. It rests on the same evidence as other
|
|
10
|
+
users' needs, it runs into decisions the team has already taken, and a new
|
|
11
|
+
kind of user raises questions nobody may have asked. This check finds those in
|
|
12
|
+
the knowledge base, before they turn up in testing or in live service.
|
|
13
|
+
|
|
14
|
+
`npx hippocampus consequences` starts from a scenario and follows the record
|
|
15
|
+
outwards: from the scenario's needs to the evidence and insights under them,
|
|
16
|
+
then to the other users whose needs rest on the same ground. It lists what it
|
|
17
|
+
finds. It does not decide what matters. That is a judgement for the team, and
|
|
18
|
+
the `find-unintended-consequences` skill can help an agent make it with you.
|
|
19
|
+
|
|
20
|
+
## Who this is for
|
|
21
|
+
|
|
22
|
+
Designers and researchers about to design a journey, and product managers
|
|
23
|
+
deciding whether a change is safe. You need to run one command, or ask someone
|
|
24
|
+
who can.
|
|
25
|
+
|
|
26
|
+
## Before you start
|
|
27
|
+
|
|
28
|
+
### Put the journey in as a scenario
|
|
29
|
+
|
|
30
|
+
The check reads a scenario: who it is for, what triggers it, and the needs it
|
|
31
|
+
serves. If the journey is new, add it first with the `add-scenario` skill, or
|
|
32
|
+
by hand in `hippocampus/source/scenarios.json`; see
|
|
33
|
+
[Source model](source-model.md#scenarios). The `needIds` matter most: they are
|
|
34
|
+
where the check starts.
|
|
35
|
+
|
|
36
|
+
If the journey is for a new kind of user, add the user and their needs first:
|
|
37
|
+
see [Turn personas into users and needs](turn-personas-into-users-and-needs.md).
|
|
38
|
+
If no research has included this kind of user, do not borrow another user's
|
|
39
|
+
evidence to support their needs. Record an assumption instead. The check will
|
|
40
|
+
say that nobody has researched them, and that is the first thing to know.
|
|
41
|
+
|
|
42
|
+
### The more is linked, the more it finds
|
|
43
|
+
|
|
44
|
+
The check only follows links that are in the record:
|
|
45
|
+
|
|
46
|
+
- needs cite their evidence
|
|
47
|
+
- insights are linked to the needs they test: see
|
|
48
|
+
[Link insights to needs](link-insights-to-needs.md)
|
|
49
|
+
- design actions and the decisions that resolve them have been imported: see
|
|
50
|
+
[Design actions and decisions](design-actions-and-decisions.md)
|
|
51
|
+
|
|
52
|
+
A thin record gives a short list. That is not the same as a safe journey.
|
|
53
|
+
|
|
54
|
+
## At the command line
|
|
55
|
+
|
|
56
|
+
1. List the scenarios, by running it with no scenario id:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npx hippocampus consequences
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
2. Run it for yours:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
npx hippocampus consequences scenario-carer-books-for-parent
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
3. Read **This user in the research** first. If no round has included this
|
|
69
|
+
kind of user, everything after it rests on evidence from other people.
|
|
70
|
+
|
|
71
|
+
4. Go through every item in the other sections and sort it into one of four
|
|
72
|
+
kinds:
|
|
73
|
+
|
|
74
|
+
- **Collides with a decision**: the journey runs into something already
|
|
75
|
+
decided. Check the decision's status: `accepted` is settled, `proposed`
|
|
76
|
+
is not, and `rejected` means the journey may be asking for something the
|
|
77
|
+
team already turned down.
|
|
78
|
+
- **Rests on weak ground**: an assumption, or a finding not held at high
|
|
79
|
+
confidence.
|
|
80
|
+
- **Already handled**: a design action or decision covers it. Say so: a
|
|
81
|
+
review that flags everything gets ignored.
|
|
82
|
+
- **Nobody asked**: one of the standing questions no record answers. That
|
|
83
|
+
is a research question, or a decision someone has to own, not something
|
|
84
|
+
to guess.
|
|
85
|
+
|
|
86
|
+
5. Write the review down where the team will see it, naming for each item the
|
|
87
|
+
user, the need and the record id behind it. The `find-unintended-consequences`
|
|
88
|
+
skill writes one to `artefacts/consequence-reviews/`.
|
|
89
|
+
|
|
90
|
+
Lists stop at 25 items. Add `--all` to see every item, or `--json` for a
|
|
91
|
+
version another tool can read.
|
|
92
|
+
|
|
93
|
+
## What it looks like
|
|
94
|
+
|
|
95
|
+
This example is made up. A carer is booking a fasting blood test for their
|
|
96
|
+
parent:
|
|
97
|
+
|
|
98
|
+
```text
|
|
99
|
+
$ npx hippocampus consequences scenario-carer-books-for-parent
|
|
100
|
+
Checking a journey against the users we already know
|
|
101
|
+
A carer books a fasting blood test for their parent
|
|
102
|
+
scenario-carer-books-for-parent · Carer (carer)
|
|
103
|
+
(/Users/sam/blood-test-prototype, 2 research rounds)
|
|
104
|
+
|
|
105
|
+
This user in the research
|
|
106
|
+
1 participant whose role matches "carer", in 1 round: Round 1 – Booking a blood test 2026-09-12 (2026-09-12)
|
|
107
|
+
|
|
108
|
+
Users we already know who stand on the same ground (1 role, 2 needs)
|
|
109
|
+
Patient (patient)
|
|
110
|
+
need-fasting-guidance [high]
|
|
111
|
+
I need to know before the day whether I must stop eating before my blood test, so that I do not hav…
|
|
112
|
+
via evidence-patient-persona, notes-insight-1, playback-insight-4
|
|
113
|
+
|
|
114
|
+
Decisions already taken on this ground (1) - check the journey against each one
|
|
115
|
+
[accepted] decision-fasting-in-confirmation
|
|
116
|
+
Fasting instructions go in the confirmation message
|
|
117
|
+
via playback-action-2
|
|
118
|
+
|
|
119
|
+
Questions every new kind of user raises
|
|
120
|
+
disclosure What this user may see, and what they must not
|
|
121
|
+
Nobody has asked. No record in 2 rounds names it. That is the finding.
|
|
122
|
+
writes Whether this user writes to the record, and how it is attributed
|
|
123
|
+
Nobody has asked. No record in 2 rounds names it. That is the finding.
|
|
124
|
+
bulk-access Whether this user looks at one record or at many
|
|
125
|
+
Nobody has asked. No record in 2 rounds names it. That is the finding.
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
The real output has more sections: what the journey stands on, the design
|
|
129
|
+
actions already responding to it, and weak ground. They are left out here.
|
|
130
|
+
|
|
131
|
+
Reading it:
|
|
132
|
+
|
|
133
|
+
- **A collision.** The accepted decision sends fasting instructions to whoever
|
|
134
|
+
booked. In this journey that is the carer, not the parent who has to fast.
|
|
135
|
+
The patient's need to know about fasting is now at risk. Someone needs to
|
|
136
|
+
own a new decision, or revisit this one.
|
|
137
|
+
- **Nobody asked.** No round has asked what a carer may see of their parent's
|
|
138
|
+
bookings. That is a research question for the next round, not something to
|
|
139
|
+
settle in the design.
|
|
140
|
+
|
|
141
|
+
## In the viewer
|
|
142
|
+
|
|
143
|
+
No viewer page runs this check, but you can walk the same ground by hand:
|
|
144
|
+
|
|
145
|
+
1. **Scenarios** (`/hippocampus/scenarios`): find the scenario and its needs.
|
|
146
|
+
2. Open each need. Its page lists the evidence it rests on, and the insights
|
|
147
|
+
that test it under **Tested by**.
|
|
148
|
+
3. Open each piece of evidence's impact page. **What cites this** and **What
|
|
149
|
+
was built on those** show which other users' needs rest on it.
|
|
150
|
+
4. A journey's handover page lists the decisions taken for it, with the
|
|
151
|
+
consequence the team recorded for each.
|
|
152
|
+
|
|
153
|
+
This is slower than the command, and easy to stop early. Use it to check a
|
|
154
|
+
review someone else wrote.
|
|
155
|
+
|
|
156
|
+
## How to check it worked
|
|
157
|
+
|
|
158
|
+
- The output names your scenario and its user at the top.
|
|
159
|
+
- **This user in the research** says either how many participants matched,
|
|
160
|
+
or plainly that none did.
|
|
161
|
+
- Every item in the output appears in the review, sorted into one of the four
|
|
162
|
+
kinds.
|
|
163
|
+
|
|
164
|
+
## If it goes wrong
|
|
165
|
+
|
|
166
|
+
- **"Usage: hippocampus consequences <scenario-id>"** followed by a list:
|
|
167
|
+
you ran it without a scenario id, or with more than one. Pick one from the
|
|
168
|
+
list.
|
|
169
|
+
- **"No scenario with id ..."**: check the spelling against the scenario ids
|
|
170
|
+
the message lists.
|
|
171
|
+
- **"No participant's role matches ..."**: no research round has included this
|
|
172
|
+
kind of user. Every need under the journey rests on evidence from other
|
|
173
|
+
people. Put that at the top of the review.
|
|
174
|
+
- **Hardly anything listed**: the record is thin rather than the journey safe.
|
|
175
|
+
Check its needs cite evidence and that insights are linked to needs; see
|
|
176
|
+
[The more is linked, the more it finds](#the-more-is-linked-the-more-it-finds).
|
|
177
|
+
- **"Unknown option: ..."**: only `--all`, `--json` and `--root` are accepted.
|
|
178
|
+
|
|
179
|
+
## Related skills
|
|
180
|
+
|
|
181
|
+
- `find-unintended-consequences`: an agent runs the check, sorts every item
|
|
182
|
+
into the four kinds, names the user, need and record behind each, and writes
|
|
183
|
+
the review. It does not guess answers to questions nobody has asked.
|
|
184
|
+
- `add-scenario`: puts a new journey in as a scenario.
|
|
185
|
+
- `record-design-decision`: records a decision someone has taken in response.
|
|
186
|
+
- `whats-known-about`: what the team already knows about a topic. See
|
|
187
|
+
[Ask what's already known](ask-whats-already-known.md).
|
|
188
|
+
|
|
189
|
+
An agent connected through `npx hippocampus mcp` can run the same check.
|
|
190
|
+
Whatever an agent reads is sent to the agent's service. See
|
|
191
|
+
[When anything leaves your machine](data-and-governance.md#when-anything-leaves-your-machine).
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
---
|
|
2
|
+
section: governance
|
|
3
|
+
order: 10
|
|
4
|
+
audience: [viewer, cli]
|
|
5
|
+
summary: Where research data goes, who decides it becomes part of the record, who can see it, and exactly when anything leaves your machine.
|
|
6
|
+
---
|
|
7
|
+
# Data and governance
|
|
8
|
+
|
|
9
|
+
User research holds personal data: what participants said, how they work, and
|
|
10
|
+
sometimes their health. This page describes where that data goes in
|
|
11
|
+
Hippocampus, who decides when it becomes part of the record, who can see it,
|
|
12
|
+
and exactly when anything leaves your machine.
|
|
13
|
+
|
|
14
|
+
Use it to agree how your team will work with your information governance lead
|
|
15
|
+
before the first research file is imported. It describes how the tool behaves.
|
|
16
|
+
It is not legal advice, and it does not replace your organisation's policies.
|
|
17
|
+
|
|
18
|
+
## Agree these before your first import
|
|
19
|
+
|
|
20
|
+
1. **What goes in the repository.** Promoted records are committed to git, so
|
|
21
|
+
anyone with access to the repository can read them. Agree what is
|
|
22
|
+
acceptable in them.
|
|
23
|
+
2. **Which AI agents may read research, if any**, and which service runs them.
|
|
24
|
+
See [When anything leaves your machine](#when-anything-leaves-your-machine).
|
|
25
|
+
3. **Who reviews and promotes drafts.** Promotion is the step that adds
|
|
26
|
+
research to the record. See [Review a draft and promote it](review-and-promote-a-draft.md).
|
|
27
|
+
4. **Who can open the prototype** once it is published, because the
|
|
28
|
+
knowledge base is part of it. See [Who can see it](#who-can-see-it).
|
|
29
|
+
5. **Where the original research files are kept**, and for how long. Usually
|
|
30
|
+
that is your shared drive, not the prototype.
|
|
31
|
+
|
|
32
|
+
## Where data lives
|
|
33
|
+
|
|
34
|
+
- **`hippocampus/inbox/`**: copies of research files you are importing, with
|
|
35
|
+
their transcripts, quotes and notes. **Do not commit.**
|
|
36
|
+
- **`hippocampus/imports/`**: drafts, holding what the importer found and all
|
|
37
|
+
the text it extracted, so the same personal data as the files.
|
|
38
|
+
**Do not commit.**
|
|
39
|
+
- **`hippocampus/manifests/`**: a list of imported files, with their names,
|
|
40
|
+
sizes, fingerprints and whether each was promoted. File names, not contents.
|
|
41
|
+
**Commit**, so everyone knows what has been imported.
|
|
42
|
+
- **`hippocampus/source/`**: the record, holding rounds, participants,
|
|
43
|
+
insights, needs, journeys, screens and decisions. It includes participant
|
|
44
|
+
codes and roles, and any quotes kept in insights. **Commit.** This is what
|
|
45
|
+
the team shares.
|
|
46
|
+
- **`hippocampus/source-artefacts/`**: copies of research files kept as
|
|
47
|
+
evidence, if your team chooses to keep them. **Commit only if agreed.**
|
|
48
|
+
`npx hippocampus init --private-artefacts` keeps it out of git.
|
|
49
|
+
- **`artefacts/`**: review outputs, such as screenshots, accessibility
|
|
50
|
+
reviews, handover notes and saved answers. Usually **commit**, unless a
|
|
51
|
+
screenshot shows personal data.
|
|
52
|
+
|
|
53
|
+
## Keep research files and drafts out of git
|
|
54
|
+
|
|
55
|
+
Anything committed to git stays in the repository's history, even after the
|
|
56
|
+
file is deleted. Getting it out again means rewriting that history, replacing
|
|
57
|
+
every copy of the repository, and on GitHub asking GitHub Support to clear
|
|
58
|
+
what it has cached. Plan as if anything committed is permanent.
|
|
59
|
+
|
|
60
|
+
The inbox and the drafts are working copies of research. Keep them on the
|
|
61
|
+
machine that imported them. Add these lines to your prototype's `.gitignore`:
|
|
62
|
+
|
|
63
|
+
```text
|
|
64
|
+
# Research files and import drafts: copies of research with participants'
|
|
65
|
+
# words in them. They stay on the machine that imported them.
|
|
66
|
+
hippocampus/inbox/**
|
|
67
|
+
hippocampus/imports/**
|
|
68
|
+
!hippocampus/inbox/**/
|
|
69
|
+
!hippocampus/imports/**/
|
|
70
|
+
!hippocampus/inbox/**/.gitkeep
|
|
71
|
+
!hippocampus/imports/**/.gitkeep
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The last four lines keep the empty folders in the repository, so they are
|
|
75
|
+
there for everyone.
|
|
76
|
+
|
|
77
|
+
If any of these files are already committed, stop tracking them. The files
|
|
78
|
+
stay on your machine:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
git rm -r --cached hippocampus/inbox hippocampus/imports
|
|
82
|
+
git add .gitignore hippocampus/inbox hippocampus/imports
|
|
83
|
+
git commit -m "Stop tracking research files and import drafts"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
That removes them from now on. Earlier commits still hold them, so talk to
|
|
87
|
+
your information governance lead about whether the history needs rewriting.
|
|
88
|
+
|
|
89
|
+
Because drafts are not shared, **whoever imports a round reviews and promotes
|
|
90
|
+
it**, or works alongside the person who does. Someone else cannot import the
|
|
91
|
+
same file again on their own machine: the manifest is shared, and it remembers
|
|
92
|
+
the file was imported.
|
|
93
|
+
|
|
94
|
+
## Nothing joins the record without a person
|
|
95
|
+
|
|
96
|
+
- Importing writes drafts. It never writes to `hippocampus/source/`.
|
|
97
|
+
- Promotion is a command a person runs: `npx hippocampus promote research`,
|
|
98
|
+
or `npx hippocampus promote project-context`. Nothing runs it on its own.
|
|
99
|
+
- `npx hippocampus research sync` and `npx hippocampus import project-context`
|
|
100
|
+
ask whether to promote straight after importing. The answer defaults to no.
|
|
101
|
+
Say no until someone has reviewed the drafts, and do not use `--yes`, which
|
|
102
|
+
promotes without asking.
|
|
103
|
+
|
|
104
|
+
Two things write to `hippocampus/source/` without a draft:
|
|
105
|
+
|
|
106
|
+
- **The `ingest-user-personas` skill.** An AI agent writes users, needs,
|
|
107
|
+
evidence and assumptions from persona documents straight into the record.
|
|
108
|
+
See [Turn personas into users and needs](turn-personas-into-users-and-needs.md).
|
|
109
|
+
- **`npx hippocampus link insight-needs`.** It writes links between insights
|
|
110
|
+
and needs, and replaces the earlier links for the insights it compares. See
|
|
111
|
+
[Link insights to needs](link-insights-to-needs.md).
|
|
112
|
+
|
|
113
|
+
For both, git is the review. Start with nothing else changed in
|
|
114
|
+
`hippocampus/source/`, read `git diff hippocampus/source` afterwards, and
|
|
115
|
+
commit only what holds.
|
|
116
|
+
|
|
117
|
+
**Promotion is when research enters the repository's history for good.**
|
|
118
|
+
Review the draft for personal data before it is promoted, as well as for
|
|
119
|
+
accuracy.
|
|
120
|
+
|
|
121
|
+
## Personal data in the record
|
|
122
|
+
|
|
123
|
+
- **Participants are codes, never names.** A participant record holds a code
|
|
124
|
+
such as `P4`, a role, optionally an organisation, and the rounds they took
|
|
125
|
+
part in. The list that links codes to real people stays with your research
|
|
126
|
+
records, not in the prototype. Check that a role and organisation together
|
|
127
|
+
do not identify someone.
|
|
128
|
+
- **Quotes go into the record with the insight they are part of.** Before
|
|
129
|
+
promoting, take out anything that could identify a person: names, places,
|
|
130
|
+
employers, rare conditions, distinctive events.
|
|
131
|
+
- **Consent.** Check that what participants agreed to covers storing findings
|
|
132
|
+
this way, and the people who will be able to see them.
|
|
133
|
+
- **Removing something later.** Deleting a record from `hippocampus/source/`
|
|
134
|
+
and committing removes it from now on. It is still in the history. See
|
|
135
|
+
[Keep research files and drafts out of git](#keep-research-files-and-drafts-out-of-git).
|
|
136
|
+
|
|
137
|
+
## Who can see it
|
|
138
|
+
|
|
139
|
+
- **The repository.** Anyone with access to it can read
|
|
140
|
+
`hippocampus/source/` and the manifests. If the repository is public, that
|
|
141
|
+
is everyone.
|
|
142
|
+
- **The published prototype.** The knowledge base pages at `/hippocampus` are
|
|
143
|
+
part of your prototype, so they are published with it. When the NHS
|
|
144
|
+
Prototype Kit runs in production, every page asks for the prototype's
|
|
145
|
+
password, the knowledge base included. If no password has been set, every
|
|
146
|
+
page shows an error instead.
|
|
147
|
+
- **Anyone with that password can open `/hippocampus`**, including people you
|
|
148
|
+
give it to for usability testing. Hippocampus has no setting to hide its
|
|
149
|
+
pages on their own. If people outside the team will have the password, agree
|
|
150
|
+
with your information governance lead what they may see before you publish.
|
|
151
|
+
|
|
152
|
+
## When anything leaves your machine
|
|
153
|
+
|
|
154
|
+
- **The `hippocampus` commands send nothing anywhere.** Importing reads files
|
|
155
|
+
on your machine. The only network request any command makes is `doctor`
|
|
156
|
+
opening your own prototype's pages, apart from the optional Gemini tool
|
|
157
|
+
below.
|
|
158
|
+
- **The viewer sends no knowledge base content anywhere.** It is served by
|
|
159
|
+
your prototype. One page loads something from another site: a journey's
|
|
160
|
+
flow diagram (`/hippocampus/journeys/<id>/flow`) fetches the Mermaid
|
|
161
|
+
drawing library from `cdn.jsdelivr.net` in the reader's browser. The
|
|
162
|
+
diagram is drawn in the browser, so no content is sent, but the request
|
|
163
|
+
itself reaches that site.
|
|
164
|
+
- **Skills are carried out by an AI agent, and whatever the agent reads goes to
|
|
165
|
+
its service.** `npx hippocampus skills install` puts the skills where GitHub
|
|
166
|
+
Copilot reads them. These skills read research files or drafts:
|
|
167
|
+
`ingest-research-round`, `structure-research-draft`,
|
|
168
|
+
`review-research-import-draft`, `map-research-to-graph`,
|
|
169
|
+
`ingest-user-personas`, `ingest-project-context` and
|
|
170
|
+
`structure-project-context-draft`. Check which service your organisation
|
|
171
|
+
has approved, and what it does with what it is sent: whether it keeps it,
|
|
172
|
+
and whether it is used to train models.
|
|
173
|
+
- **`npx hippocampus mcp` hands the knowledge base to any agent connected to
|
|
174
|
+
it.** Its `design_brain_read` tool can open any file in the project apart
|
|
175
|
+
from `.env` files, `.git`, `.npmrc` and `node_modules`, so that includes the
|
|
176
|
+
inbox and the drafts.
|
|
177
|
+
- **One optional tool sends content to Google Gemini.** `design_brain_ask`, in
|
|
178
|
+
`hippocampus mcp`, sends the question and whatever it looks up, which can
|
|
179
|
+
include any of the files above. It is off unless someone sets
|
|
180
|
+
`GEMINI_API_KEY` and `DESIGN_BRAIN_MODEL` and installs `@google/genai`.
|
|
181
|
+
|
|
182
|
+
## Related
|
|
183
|
+
|
|
184
|
+
- [Start here](start-here.md)
|
|
185
|
+
- [Import a research round](import-a-research-round.md)
|
|
186
|
+
- [Review a draft and promote it](review-and-promote-a-draft.md)
|
|
187
|
+
- [Add project context](add-project-context.md)
|
|
188
|
+
- [Research source file conventions](research-source-file-conventions.md)
|