@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
|
@@ -141,7 +141,7 @@ Use this for overview boards, service maps, policy summaries and other generic p
|
|
|
141
141
|
|
|
142
142
|
This is separate from research. A project overview may contain useful facts, but it is not the same thing as a research round, participant insight or design action.
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
A filled-in copy of the project context template, or project overview PDFs or decks, can be dropped into:
|
|
145
145
|
|
|
146
146
|
```text
|
|
147
147
|
hippocampus/inbox/project/
|
|
@@ -153,7 +153,7 @@ Then the team can run:
|
|
|
153
153
|
npx hippocampus import project-context
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
The importer creates a review draft first. After review, promotion adds the material to `hippocampus/source/project-context.json`.
|
|
156
|
+
The importer creates a review draft first. After review, promotion adds the material to `hippocampus/source/project-context.json`. [Add project context](add-project-context.md) walks through it.
|
|
157
157
|
|
|
158
158
|
## Relationship Graph
|
|
159
159
|
|
|
@@ -22,15 +22,18 @@ happens on your machine and sends nothing anywhere.
|
|
|
22
22
|
### Agree what can go in
|
|
23
23
|
|
|
24
24
|
Research files hold personal data: transcripts, quotes and descriptions of
|
|
25
|
-
participants. Before the first file goes in, agree
|
|
26
|
-
governance
|
|
25
|
+
participants. Before the first file goes in, agree the points in
|
|
26
|
+
[Data and governance](data-and-governance.md#agree-these-before-your-first-import)
|
|
27
|
+
with your information governance lead. In particular:
|
|
27
28
|
|
|
28
|
-
-
|
|
29
|
-
|
|
29
|
+
- keep the inbox and the drafts out of git, by adding the lines in
|
|
30
|
+
[Keep research files and drafts out of git](data-and-governance.md#keep-research-files-and-drafts-out-of-git)
|
|
31
|
+
to your `.gitignore`
|
|
32
|
+
- agree which AI agents, if any, may read research files and drafts
|
|
30
33
|
|
|
31
34
|
Importing itself sends nothing anywhere, but the skills that tidy and review
|
|
32
35
|
drafts are carried out by an AI agent, and what the agent reads goes to its
|
|
33
|
-
service. See [When anything leaves your machine](
|
|
36
|
+
service. See [When anything leaves your machine](data-and-governance.md#when-anything-leaves-your-machine).
|
|
34
37
|
|
|
35
38
|
### Check your files can be read
|
|
36
39
|
|
|
@@ -89,8 +92,9 @@ hippocampus/inbox/research/
|
|
|
89
92
|
|
|
90
93
|
Every file in the folder joins `round-1` and takes the folder's date. If the
|
|
91
94
|
folder has no date, each file takes the date in its own name, or today's date
|
|
92
|
-
if it has none
|
|
93
|
-
|
|
95
|
+
if it has none, and the round keeps the date of whichever file is promoted
|
|
96
|
+
first. Dating the folder means you choose the date rather than leaving it to
|
|
97
|
+
the order of promotion.
|
|
94
98
|
|
|
95
99
|
## At the command line
|
|
96
100
|
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
---
|
|
2
|
+
section: recipes
|
|
3
|
+
order: 60
|
|
4
|
+
audience: [viewer, cli]
|
|
5
|
+
summary: Connect each research insight to the user needs it is evidence about, then check every proposed link before it stays.
|
|
6
|
+
---
|
|
7
|
+
# Link insights to needs
|
|
8
|
+
|
|
9
|
+
An insight tests a need when it is evidence about it: it shows the need is
|
|
10
|
+
real, or unmet, or met. Those links are what put the research under a need's
|
|
11
|
+
page, what [Check for unintended consequences](check-for-unintended-consequences.md)
|
|
12
|
+
follows, and what the front page counts as **Insights not linked to a need**.
|
|
13
|
+
|
|
14
|
+
`npx hippocampus link insight-needs` proposes them by comparing the words in
|
|
15
|
+
each insight with the words in each need. It is a first pass, not a judgement.
|
|
16
|
+
Every link it writes is listed in a review pack for a person to check.
|
|
17
|
+
|
|
18
|
+
Like the personas step, this writes straight into `hippocampus/source/`, with
|
|
19
|
+
no draft. Review the change with git before you commit it.
|
|
20
|
+
|
|
21
|
+
## Who this is for
|
|
22
|
+
|
|
23
|
+
Researchers who know the findings, working with whoever runs commands in the
|
|
24
|
+
prototype. Anyone can see the links in the viewer.
|
|
25
|
+
|
|
26
|
+
## Before you start
|
|
27
|
+
|
|
28
|
+
### Have something to link
|
|
29
|
+
|
|
30
|
+
You need promoted research rounds with insights in them
|
|
31
|
+
([Review a draft and promote it](review-and-promote-a-draft.md)), and users
|
|
32
|
+
with needs ([Turn personas into users and needs](turn-personas-into-users-and-needs.md)).
|
|
33
|
+
|
|
34
|
+
### Say which roles are which users
|
|
35
|
+
|
|
36
|
+
An insight is only compared with the needs of the users it concerns. That stops
|
|
37
|
+
a finding about receptionists attaching itself to a patient's need because
|
|
38
|
+
both mention "appointment".
|
|
39
|
+
|
|
40
|
+
The users an insight concerns come from the roles of the participants in its
|
|
41
|
+
round, such as `P1 - Practice receptionist`. Participants have roles; the
|
|
42
|
+
knowledge base has users. Which role is which user is something only your team
|
|
43
|
+
knows, so you write it down once in `hippocampus.config.json`, in your
|
|
44
|
+
prototype's folder:
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"linkInsights": {
|
|
49
|
+
"userGroups": [
|
|
50
|
+
{ "match": "receptionist", "users": ["receptionist"] },
|
|
51
|
+
{ "match": "carer", "users": ["carer"] },
|
|
52
|
+
{ "match": "patient", "users": ["patient"] }
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Add `linkInsights` alongside what is already in the file. Each `match` is
|
|
59
|
+
checked against every participant's role, ignoring capitals. `users` is the
|
|
60
|
+
list of user ids, from `users.json`, whose needs that role's insights may test.
|
|
61
|
+
A `match` is a pattern, so `"nurse|midwife"` matches either word.
|
|
62
|
+
|
|
63
|
+
If an insight's summary names the groups it affects in a sentence such as
|
|
64
|
+
`Affects receptionists and carers.`, those groups are used instead of the
|
|
65
|
+
round's participants.
|
|
66
|
+
|
|
67
|
+
Without this mapping nothing is linked, and the command says so.
|
|
68
|
+
|
|
69
|
+
### Start from a clean record
|
|
70
|
+
|
|
71
|
+
Commit or set aside other changes in `hippocampus/source/` first, so that
|
|
72
|
+
`git diff` shows only the new links.
|
|
73
|
+
|
|
74
|
+
## At the command line
|
|
75
|
+
|
|
76
|
+
1. See what it would do, without writing anything:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
npx hippocampus link insight-needs --dry-run
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
It prints how many links there are now and would be, how many insights it
|
|
83
|
+
linked, the insights it could not link and why, and the weakest link it kept
|
|
84
|
+
for each insight.
|
|
85
|
+
|
|
86
|
+
2. Write the links:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
npx hippocampus link insight-needs
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
This updates `hippocampus/source/relationships.json` and writes a review
|
|
93
|
+
pack to `artefacts/research-triage/`, named with today's date.
|
|
94
|
+
|
|
95
|
+
3. Read the review pack. Each insight is listed with the needs it was linked
|
|
96
|
+
to and a score. Scores compare the links under one insight, not one insight
|
|
97
|
+
with another. The lowest-scoring link under each insight is the one most
|
|
98
|
+
worth checking.
|
|
99
|
+
|
|
100
|
+
4. Correct the links in `hippocampus/source/relationships.json`:
|
|
101
|
+
|
|
102
|
+
- **To remove a link that does not hold**, delete its entry. Its id is
|
|
103
|
+
`rel-<insight id>-tests-<need id>`.
|
|
104
|
+
- **To add a link it missed**, add an entry like this one:
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{ "id": "rel-playback-insight-1-tests-need-plain-test-name", "from": "playback-insight-1", "type": "tests-need", "to": "need-plain-test-name" }
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
5. Run `npx hippocampus validate`, review with `git diff hippocampus/source`,
|
|
111
|
+
and commit.
|
|
112
|
+
|
|
113
|
+
### Link one round
|
|
114
|
+
|
|
115
|
+
After a new round is promoted, link only its insights:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
npx hippocampus link insight-needs --round round-2
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Only that round's insights are compared, and only their links are replaced.
|
|
122
|
+
Every other round's links are left as they are.
|
|
123
|
+
|
|
124
|
+
### Before you run it again
|
|
125
|
+
|
|
126
|
+
Each run replaces every insight-to-need link for the insights it compares.
|
|
127
|
+
**Links you added by hand are removed, and links you deleted come back**,
|
|
128
|
+
unless the matcher reaches the same answer. So:
|
|
129
|
+
|
|
130
|
+
- after correcting links by hand, use `--round` for new rounds rather than
|
|
131
|
+
linking everything again
|
|
132
|
+
- always check `git diff` before committing a run. To undo one, run
|
|
133
|
+
`git checkout -- hippocampus/source/relationships.json`
|
|
134
|
+
|
|
135
|
+
Links from scenarios and screens to needs are never touched.
|
|
136
|
+
|
|
137
|
+
## What it looks like
|
|
138
|
+
|
|
139
|
+
This example is made up.
|
|
140
|
+
|
|
141
|
+
```text
|
|
142
|
+
$ npx hippocampus link insight-needs --dry-run
|
|
143
|
+
insight tests-need links: 0 -> 4
|
|
144
|
+
insights linked: 4 of 5
|
|
145
|
+
distinct needs reached: 3 of 4
|
|
146
|
+
|
|
147
|
+
unlinked insights (1):
|
|
148
|
+
no need scored: Patients book the wrong test because the letter only names it in clinical terms (P2, P4).
|
|
149
|
+
|
|
150
|
+
Dry run. Source files were not changed.
|
|
151
|
+
|
|
152
|
+
weakest kept link per insight (precision check):
|
|
153
|
+
1.56 [receptionist ] I need fewer fasting appointments rebooked by phone, so that the phone line is f
|
|
154
|
+
for: Receptionists rebook about a third of fasting appointments by phone because th
|
|
155
|
+
2.69 [carer ] I need to see which appointments are already booked for the person I look after,
|
|
156
|
+
for: Carers booking for someone else cannot see which appointments are already book
|
|
157
|
+
1.02 [patient ] I need to know before the day whether I must stop eating before my blood test, s
|
|
158
|
+
for: P2 - “I had no idea I was not supposed to eat beforehand, so I had to come bac
|
|
159
|
+
2.43 [patient ] I need to know before the day whether I must stop eating before my blood test, s
|
|
160
|
+
for: Patients ignore text reminders that do not say whether they need to stop eatin
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
It also prints a sample of the links, which is left out here.
|
|
164
|
+
|
|
165
|
+
The unlinked insight is about the need "I need to know in plain English which
|
|
166
|
+
blood test I am booking", but "clinical terms" and "plain English" share no
|
|
167
|
+
words, so the matcher cannot see it. That is a link to add by hand.
|
|
168
|
+
|
|
169
|
+
A page of the review pack:
|
|
170
|
+
|
|
171
|
+
```text
|
|
172
|
+
## Patients ignore text reminders that do not say whether they need to stop eating before the test (P7).
|
|
173
|
+
|
|
174
|
+
| Score | User | Need |
|
|
175
|
+
| ---: | --- | --- |
|
|
176
|
+
| 2.43 | `patient` | I need to know before the day whether I must stop eating before my blood test, so that I do not have to come back. |
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## In the viewer
|
|
180
|
+
|
|
181
|
+
- An insight's page lists the needs it tests under **Needs this tests**.
|
|
182
|
+
- A need's page lists the insights that test it under **Tested by**.
|
|
183
|
+
- The front page's **Insights not linked to a need** count goes down. An
|
|
184
|
+
insight left over is usually a sign of a need nobody has written yet, not a
|
|
185
|
+
bad insight.
|
|
186
|
+
|
|
187
|
+
## How to check it worked
|
|
188
|
+
|
|
189
|
+
- `insights linked:` shows most of your insights.
|
|
190
|
+
- The review pack is in `artefacts/research-triage/`.
|
|
191
|
+
- `git diff hippocampus/source` shows only `relationships.json` changing.
|
|
192
|
+
- `npx hippocampus validate` no longer reports insights that link to no need,
|
|
193
|
+
or reports fewer.
|
|
194
|
+
|
|
195
|
+
## If it goes wrong
|
|
196
|
+
|
|
197
|
+
- **"No linkInsights.userGroups mapping in ..."**: add the mapping described in
|
|
198
|
+
[Say which roles are which users](#say-which-roles-are-which-users).
|
|
199
|
+
- **"linkInsights.userGroups[0] ... needs a "match" pattern and a "users" array
|
|
200
|
+
of user ids"**: an entry in the mapping is missing one of the two. The number
|
|
201
|
+
is the entry's position, counting from 0.
|
|
202
|
+
- **"no user groups recorded and no participants in this round"** next to an
|
|
203
|
+
insight: no participant in its round has a role that any `match` covers, and
|
|
204
|
+
its summary names no groups. Add a `match` for those roles.
|
|
205
|
+
- **"no need scored"** next to an insight: no need of the right users shares at
|
|
206
|
+
least two uncommon words with it. Either the need is worded differently, so
|
|
207
|
+
add the link by hand, or the need has not been written yet.
|
|
208
|
+
- **Too many weak links**: words that are common in your service but not in
|
|
209
|
+
everyday English can make unrelated things look alike. List them in
|
|
210
|
+
`linkInsights.stopwords` in `hippocampus.config.json`, for example
|
|
211
|
+
`"stopwords": ["appointment", "practice"]`, and run it again.
|
|
212
|
+
- **Fewer links than before**, such as `insight tests-need links: 12 -> 9`:
|
|
213
|
+
links added by hand have been replaced. See
|
|
214
|
+
[Before you run it again](#before-you-run-it-again).
|
|
215
|
+
|
|
216
|
+
## Related skills
|
|
217
|
+
|
|
218
|
+
- `map-research-to-graph`: an agent adds only the links a reviewed research
|
|
219
|
+
draft supports, between insights, needs, users and screens. Use it for
|
|
220
|
+
judgement the word matching cannot make.
|
|
221
|
+
- `whats-known-about`: once linked, ask what the team knows about a need. See
|
|
222
|
+
[Ask what's already known](ask-whats-already-known.md).
|
|
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).
|
|
@@ -49,8 +49,9 @@ in two artefacts is one person.
|
|
|
49
49
|
|
|
50
50
|
Promotion is idempotent for the records a round shares. Promoting a second artefact
|
|
51
51
|
from the same round reuses the existing round record and merges participants rather
|
|
52
|
-
than failing on duplicate IDs
|
|
53
|
-
|
|
52
|
+
than failing on duplicate IDs. If the second artefact carries a different date, the
|
|
53
|
+
round keeps the one it was first promoted with and says so. It still fails if the
|
|
54
|
+
round exists with a different title, which means two rounds have been given the same ID.
|
|
54
55
|
|
|
55
56
|
Dates come from a `YYYY-MM-DD`, `YYYYMMDD` or `YYYY-MM` in the file or folder name.
|
|
56
57
|
Where none is found the draft carries today's date and a warning saying so, because
|
|
@@ -129,7 +129,7 @@ The default project context workflow is:
|
|
|
129
129
|
npx hippocampus import project-context
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
-
This scans `hippocampus/inbox/project`, fingerprints supported files, imports only new files, updates `hippocampus/manifests/project.json`, and asks before promoting unpromoted drafts.
|
|
132
|
+
This scans `hippocampus/inbox/project`, fingerprints supported files (a filled-in `templates/project-context.xlsx`, `.pptx` and `.pdf`), imports only new files, updates `hippocampus/manifests/project.json`, and asks before promoting unpromoted drafts.
|
|
133
133
|
|
|
134
134
|
Use flags when needed:
|
|
135
135
|
|
|
@@ -140,12 +140,14 @@ npx hippocampus import project-context -- --yes
|
|
|
140
140
|
npx hippocampus import project-context -- --source path/to/folder
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
To import one file from anywhere, name it. It is recorded in the same manifest:
|
|
144
144
|
|
|
145
145
|
```bash
|
|
146
|
-
|
|
146
|
+
npx hippocampus import project-context path/to/overview.pdf --context-id overview-id --title "Project overview"
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
+
`--context-id` and `--title` are optional and apply when one file is named. `--context-id` names the draft; `--title` titles a deck or PDF's context. Both default to the file name. A filled-in template takes its id and title from its Overview tab.
|
|
150
|
+
|
|
149
151
|
Review generated drafts in:
|
|
150
152
|
|
|
151
153
|
```text
|
|
@@ -36,7 +36,7 @@ findings under generic headings imports as nothing at all.
|
|
|
36
36
|
| --- | --- |
|
|
37
37
|
| Keep the `01 Planning / 02 Doing / 03 Analysing / 04 Sharing / 05 Design Actions` folder pattern | It is read as research-stage provenance. It already works well across rounds 4 to 16 — keep it. |
|
|
38
38
|
| Put the round number in the folder name (`Round 12 - ...`) | The round is derived from the path, so every artefact inherits the right `roundId`. |
|
|
39
|
-
| Put the date the round started in the round folder's name, as a full `YYYY-MM-DD` | Copying files off SharePoint resets every modification date. On this corpus, all 599 files carried the copy date, so file dates cannot be trusted as evidence dates. The name is the only surviving provenance. A full date on the folder is used for every file in it; without one, each file takes the date in its own name, and
|
|
39
|
+
| Put the date the round started in the round folder's name, as a full `YYYY-MM-DD` | Copying files off SharePoint resets every modification date. On this corpus, all 599 files carried the copy date, so file dates cannot be trusted as evidence dates. The name is the only surviving provenance. A full date on the folder is used for every file in it; without one, each file takes the date in its own name, and the round keeps the date of whichever file is promoted first. |
|
|
40
40
|
| Keep one canonical version, not `- Copy`, `(1)`, `OLD`, `Archive` siblings | Near-identical duplicates each generate their own draft and their own IDs. |
|
|
41
41
|
| Use participant codes (`P27`, `P104`) rather than names | Codes are safe to store, and they are what links a quote to a participant record. |
|
|
42
42
|
|
|
@@ -52,6 +52,10 @@ that:
|
|
|
52
52
|
- **Each design action points at the right insight.** The importer links every
|
|
53
53
|
design action to the last insight above it in the file, which is often not
|
|
54
54
|
the one it responds to.
|
|
55
|
+
- **Nothing identifies a participant.** Promoted records are committed to
|
|
56
|
+
git and stay in its history. Take out names, places, employers, rare
|
|
57
|
+
conditions and anything else that could identify someone, including from
|
|
58
|
+
quotes. See [Personal data in the record](data-and-governance.md#personal-data-in-the-record).
|
|
55
59
|
- **Confidence is honest.** Every imported insight starts at `medium`. Make it
|
|
56
60
|
`high` where several participants or sources agree, and `low` where it rests
|
|
57
61
|
on one person saying it once.
|
|
@@ -160,12 +164,17 @@ what you approved.
|
|
|
160
164
|
are.
|
|
161
165
|
- **"Already promoted"**: every insight and design action in this draft is
|
|
162
166
|
already in the knowledge base. Nothing was written.
|
|
163
|
-
- **"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
`
|
|
168
|
-
|
|
167
|
+
- **"Research round round-1 already exists with a different title"**: two
|
|
168
|
+
rounds have been given the same number, usually two folders both starting
|
|
169
|
+
"Round 1". If this is a different round, give it a new number in the draft:
|
|
170
|
+
replace `round-1` with the new id, such as `round-2`, everywhere it appears
|
|
171
|
+
in the `.json` file, and change the round's `title` to match. If it is the
|
|
172
|
+
same round, make the title in the draft match
|
|
173
|
+
`hippocampus/source/research-rounds.json`. Either way, promote again.
|
|
174
|
+
- **"Round round-1 keeps its date"**: not an error. This file has a different
|
|
175
|
+
date from the one already promoted into the round, and the round keeps the
|
|
176
|
+
first. To change it, edit the date in `hippocampus/source/research-rounds.json`.
|
|
177
|
+
See [Name the round and its date](import-a-research-round.md#name-the-round-and-its-date).
|
|
169
178
|
- **"insights: ... already exists in source data"**: part of this draft has been
|
|
170
179
|
promoted before, often because a changed file was imported a second time.
|
|
171
180
|
Remove the records that are already there from the draft, or delete the
|
package/docs/start-here.md
CHANGED
|
@@ -143,6 +143,11 @@ one in `app.js`, so the viewer appears inside it. Both are marked, and
|
|
|
143
143
|
`npx hippocampus eject` takes them back out without touching your knowledge
|
|
144
144
|
base.
|
|
145
145
|
|
|
146
|
+
Before anyone imports research, add the lines in
|
|
147
|
+
[Keep research files and drafts out of git](data-and-governance.md#keep-research-files-and-drafts-out-of-git)
|
|
148
|
+
to your `.gitignore`. Research files and drafts hold participants' words, and
|
|
149
|
+
anything committed stays in the repository's history.
|
|
150
|
+
|
|
146
151
|
### Check it worked
|
|
147
152
|
|
|
148
153
|
```bash
|
|
@@ -190,13 +195,25 @@ you which.
|
|
|
190
195
|
off unless someone sets `GEMINI_API_KEY` and `DESIGN_BRAIN_MODEL` and
|
|
191
196
|
installs `@google/genai`. The rest of `hippocampus mcp` uses no model.
|
|
192
197
|
|
|
198
|
+
[Data and governance](data-and-governance.md) covers this in more detail,
|
|
199
|
+
along with who can see the knowledge base and what to keep out of git.
|
|
200
|
+
|
|
193
201
|
## What to read next
|
|
194
202
|
|
|
203
|
+
- [Data and governance](data-and-governance.md): what to agree with your
|
|
204
|
+
information governance lead before the first research file goes in
|
|
195
205
|
- [Ask what's already known](ask-whats-already-known.md): check what the team
|
|
196
206
|
already knows before you research or design something
|
|
197
207
|
- [Import a research round](import-a-research-round.md) and
|
|
198
208
|
[Review a draft and promote it](review-and-promote-a-draft.md): bring a
|
|
199
209
|
round of research in, steps 1 to 6 above
|
|
210
|
+
- [Add project context](add-project-context.md) and
|
|
211
|
+
[Turn personas into users and needs](turn-personas-into-users-and-needs.md):
|
|
212
|
+
the briefing material and the users everything else hangs off
|
|
213
|
+
- [Link insights to needs](link-insights-to-needs.md) and
|
|
214
|
+
[Check for unintended consequences](check-for-unintended-consequences.md):
|
|
215
|
+
connect the research to the needs, then use those links before designing a
|
|
216
|
+
new journey
|
|
200
217
|
- [Hippocampus for designers and researchers](hippocampus-for-designers-and-researchers.md):
|
|
201
218
|
the record types and viewer pages in more detail
|
|
202
219
|
- [Research source file conventions](research-source-file-conventions.md):
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
---
|
|
2
|
+
section: recipes
|
|
3
|
+
order: 50
|
|
4
|
+
audience: [viewer, cli]
|
|
5
|
+
summary: Turn persona documents into the users and needs everything else hangs off. There is no draft for this, so git is where you review it.
|
|
6
|
+
---
|
|
7
|
+
# Turn personas into users and needs
|
|
8
|
+
|
|
9
|
+
Users and their needs are what the rest of the knowledge base points at.
|
|
10
|
+
Scenarios, journeys, screens and research insights all name the user and the
|
|
11
|
+
needs they are about, so users usually come first. They come from your persona
|
|
12
|
+
documents.
|
|
13
|
+
|
|
14
|
+
This works differently from importing research. There is no import command
|
|
15
|
+
and no draft. Either an AI agent reads the persona documents and writes users,
|
|
16
|
+
needs and the evidence behind them straight into `hippocampus/source/`, or you
|
|
17
|
+
add them by hand. Either way, **you review the change with git before you
|
|
18
|
+
commit it**.
|
|
19
|
+
|
|
20
|
+
## Who this is for
|
|
21
|
+
|
|
22
|
+
Researchers and designers who own the personas. You need to be able to run
|
|
23
|
+
commands in the prototype, and either have an AI agent set up or be happy
|
|
24
|
+
editing JSON files.
|
|
25
|
+
|
|
26
|
+
## Before you start
|
|
27
|
+
|
|
28
|
+
### Agree whether an agent may read the personas
|
|
29
|
+
|
|
30
|
+
Personas are research. If your team uses the agent route, what the agent reads
|
|
31
|
+
is sent to its service. Agree this first; see
|
|
32
|
+
[Data and governance](data-and-governance.md#agree-these-before-your-first-import).
|
|
33
|
+
If an agent may not read them, add the records by hand, described in
|
|
34
|
+
[By hand](#by-hand).
|
|
35
|
+
|
|
36
|
+
### Start from a clean record
|
|
37
|
+
|
|
38
|
+
Commit or set aside any other changes in `hippocampus/source/` first, so that
|
|
39
|
+
`git diff` shows only what this step adds, and throwing it away throws away
|
|
40
|
+
nothing else.
|
|
41
|
+
|
|
42
|
+
### Check the documents say enough
|
|
43
|
+
|
|
44
|
+
Each persona becomes one user. The more the document states in its own words,
|
|
45
|
+
the more the record holds:
|
|
46
|
+
|
|
47
|
+
- who the group is
|
|
48
|
+
- what they are responsible for
|
|
49
|
+
- what they need, and why
|
|
50
|
+
- their access needs, if the research covered them
|
|
51
|
+
|
|
52
|
+
Nothing is filled in from judgement. A persona that states two needs gives a
|
|
53
|
+
user with two needs, which is the honest result.
|
|
54
|
+
|
|
55
|
+
## At the command line
|
|
56
|
+
|
|
57
|
+
1. Copy the persona documents into `hippocampus/inbox/personas/`. The
|
|
58
|
+
`.gitignore` lines in
|
|
59
|
+
[Keep research files and drafts out of git](data-and-governance.md#keep-research-files-and-drafts-out-of-git)
|
|
60
|
+
keep them out of the repository.
|
|
61
|
+
|
|
62
|
+
2. Ask your agent to use the `ingest-user-personas` skill on them, for
|
|
63
|
+
example: "Use the ingest-user-personas skill on the documents in
|
|
64
|
+
hippocampus/inbox/personas."
|
|
65
|
+
|
|
66
|
+
For each document, the agent adds:
|
|
67
|
+
|
|
68
|
+
- one **evidence** record for the document, with its file name as
|
|
69
|
+
`sourcePath`, so anyone can find the original
|
|
70
|
+
- one **user**, with the description and responsibilities from the document
|
|
71
|
+
- the **needs** the document states, in its own words, each citing that
|
|
72
|
+
evidence
|
|
73
|
+
- an **assumption** for every field it had to fill that the document did
|
|
74
|
+
not state
|
|
75
|
+
|
|
76
|
+
Two fields cannot be left empty, so they are where a guess could hide. When
|
|
77
|
+
the document does not rank needs, each need's priority is `medium` and an
|
|
78
|
+
assumption says so. When it does not cover access needs, the user's access
|
|
79
|
+
needs are exactly `Not yet researched`, and an assumption says that too.
|
|
80
|
+
|
|
81
|
+
3. Check it:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
npx hippocampus validate
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
4. Review the change:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
git diff hippocampus/source
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Check that:
|
|
94
|
+
|
|
95
|
+
- there is one user per persona, and none merges two personas
|
|
96
|
+
- every need is one the document states, in its words, and belongs to the
|
|
97
|
+
right user
|
|
98
|
+
- every need cites the persona's evidence record
|
|
99
|
+
- nothing is invented: no responsibility, need or access need that is not in
|
|
100
|
+
the document
|
|
101
|
+
- the assumptions name what the documents left out
|
|
102
|
+
- nothing identifies a real person
|
|
103
|
+
|
|
104
|
+
5. Commit `hippocampus/source/` if it is right. To throw the whole change away
|
|
105
|
+
instead, run `git checkout -- hippocampus/source`. That puts back every file
|
|
106
|
+
in it as last committed, which is why you started from a clean record.
|
|
107
|
+
|
|
108
|
+
### By hand
|
|
109
|
+
|
|
110
|
+
[Source model](source-model.md#users) describes each field. For each persona,
|
|
111
|
+
add to these files in `hippocampus/source/`:
|
|
112
|
+
|
|
113
|
+
- `evidence.json`: one record with `sourceType: "user persona"` and the
|
|
114
|
+
document's file name as `sourcePath`
|
|
115
|
+
- `users.json`: the user
|
|
116
|
+
- `needs.json`: each need, with the user's id as `userId` and the evidence
|
|
117
|
+
record's id in `evidenceIds`
|
|
118
|
+
- `relationships.json`: a `has-need` link from the user to each need
|
|
119
|
+
- `assumptions.json`: anything you had to fill in that the document did not
|
|
120
|
+
say
|
|
121
|
+
|
|
122
|
+
Then run `npx hippocampus validate`, and review with `git diff` as above.
|
|
123
|
+
|
|
124
|
+
## What it looks like
|
|
125
|
+
|
|
126
|
+
This example is made up. A user and one of their needs, as they appear in the
|
|
127
|
+
diff:
|
|
128
|
+
|
|
129
|
+
```json
|
|
130
|
+
{
|
|
131
|
+
"id": "carer",
|
|
132
|
+
"label": "Carer",
|
|
133
|
+
"description": "Someone booking blood tests for a person they look after.",
|
|
134
|
+
"responsibilities": ["Book and keep track of tests for someone else"],
|
|
135
|
+
"accessNeeds": ["Not yet researched"]
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
```json
|
|
140
|
+
{
|
|
141
|
+
"id": "need-see-booked-appointments",
|
|
142
|
+
"userId": "carer",
|
|
143
|
+
"statement": "I need to see the appointments I have booked for my parent, so that I do not book the same test twice.",
|
|
144
|
+
"priority": "medium",
|
|
145
|
+
"evidenceIds": ["evidence-carer-persona"]
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
`validate` then reports the gaps the import left on purpose:
|
|
150
|
+
|
|
151
|
+
```text
|
|
152
|
+
$ npx hippocampus validate
|
|
153
|
+
hippocampus: knowledge data is valid
|
|
154
|
+
info 3 of 3 users have access needs not yet researched
|
|
155
|
+
info 4 of 6 needs (67%) sit at priority "medium" - likely the import default rather than a decision, so priority cannot sequence design work yet
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Those two lines are not errors. They are the gaps the personas left, kept
|
|
159
|
+
visible until research or a team decision fills them.
|
|
160
|
+
|
|
161
|
+
## In the viewer
|
|
162
|
+
|
|
163
|
+
- **Users** (`/hippocampus/users`) lists every user with how many needs and
|
|
164
|
+
scenarios they have.
|
|
165
|
+
- A user's page shows their responsibilities and access needs, then each need
|
|
166
|
+
with the evidence behind it. `Not yet researched` shows there as it is.
|
|
167
|
+
- **User needs** (`/hippocampus/user-needs`) lists every need. Filter it by
|
|
168
|
+
user or by priority.
|
|
169
|
+
- The front page's **Needs with no screen** count goes up: every new need is
|
|
170
|
+
design work nobody has started.
|
|
171
|
+
|
|
172
|
+
## How to check it worked
|
|
173
|
+
|
|
174
|
+
- `npx hippocampus validate` says `knowledge data is valid`.
|
|
175
|
+
- Each persona is on the Users page, with the number of needs its document
|
|
176
|
+
states.
|
|
177
|
+
- Each need's page lists the persona's evidence under it.
|
|
178
|
+
|
|
179
|
+
## If it goes wrong
|
|
180
|
+
|
|
181
|
+
- **"users.0.accessNeeds: Too small: expected array to have >=1 items"**: a
|
|
182
|
+
user has no access needs at all. If nobody has researched them, write
|
|
183
|
+
`Not yet researched`.
|
|
184
|
+
- **"needs.5.evidenceIds: Too small: expected array to have >=1 items"**: a
|
|
185
|
+
need cites no evidence. Every need from a persona cites the persona's
|
|
186
|
+
evidence record. The number is the need's position in the file, counting
|
|
187
|
+
from 0.
|
|
188
|
+
- **"need need-reminder-text: userId references missing id patients"**: the
|
|
189
|
+
need names a user that does not exist, here because of a typing mistake.
|
|
190
|
+
Use the id from `users.json`.
|
|
191
|
+
- **A need you did not expect**: if it is not in the document, take it out. A
|
|
192
|
+
need that came from somewhere else needs its own evidence.
|
|
193
|
+
- **The diff shows changes you did not make**: something else in
|
|
194
|
+
`hippocampus/source/` had changed before you started. Sort those out
|
|
195
|
+
separately before committing.
|
|
196
|
+
|
|
197
|
+
## Related skills
|
|
198
|
+
|
|
199
|
+
- `ingest-user-personas`: the agent route described above.
|
|
200
|
+
- `add-user-needs`: adds needs to a user who already exists, or sharpens vague
|
|
201
|
+
ones, each linked to the evidence behind it.
|
|
202
|
+
- `find-unintended-consequences`: when a new kind of user arrives, checks what
|
|
203
|
+
their journeys could break for the users already here. See
|
|
204
|
+
[Check for unintended consequences](check-for-unintended-consequences.md).
|
|
205
|
+
|
|
206
|
+
Whatever an agent reads is sent to the agent's service. See
|
|
207
|
+
[When anything leaves your machine](data-and-governance.md#when-anything-leaves-your-machine).
|
package/lib/templates.js
CHANGED
|
@@ -24,7 +24,7 @@ const DESCRIBED = {
|
|
|
24
24
|
'Purpose, vision, policy context, channels, constraints, risks, milestones ' +
|
|
25
25
|
'and source facts. One sheet per kind, one row per record.',
|
|
26
26
|
command: 'hippocampus import project-context <file>',
|
|
27
|
-
then: 'hippocampus promote project-context'
|
|
27
|
+
then: 'hippocampus promote project-context --draft <the draft it names>'
|
|
28
28
|
},
|
|
29
29
|
'service-blueprint.xlsx': {
|
|
30
30
|
title: 'Service blueprint',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hippo-digital/hippocampus",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "A design-knowledge base for NHS Prototype Kit projects: research, insights, needs, journeys and screens, traceable end to end.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|