@hippo-digital/hippocampus 2.5.0 → 2.7.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 +77 -0
- package/README.md +7 -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 +212 -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 +19 -1
- package/docs/turn-personas-into-users-and-needs.md +206 -0
- package/lib/research-in-git.js +69 -0
- package/lib/templates.js +1 -1
- package/package.json +1 -1
- package/scripts/consequences.js +7 -5
- package/scripts/doctor.js +55 -1
- package/scripts/import-project-context.js +17 -5
- package/scripts/init.js +56 -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 +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
|
@@ -0,0 +1,212 @@
|
|
|
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. `npx hippocampus init` adds these lines to your
|
|
62
|
+
prototype's `.gitignore`:
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
hippocampus/inbox/**
|
|
66
|
+
!hippocampus/inbox/**/
|
|
67
|
+
!hippocampus/inbox/**/.gitkeep
|
|
68
|
+
hippocampus/imports/**
|
|
69
|
+
!hippocampus/imports/**/
|
|
70
|
+
!hippocampus/imports/**/.gitkeep
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
The two lines after each rule keep the empty folders in the repository, so
|
|
74
|
+
they are there for everyone.
|
|
75
|
+
|
|
76
|
+
Running `init` again in an existing prototype adds them too, apart from two
|
|
77
|
+
cases where it leaves `.gitignore` alone and says why:
|
|
78
|
+
|
|
79
|
+
- **`.gitignore` already names the folder**, in a rule or a comment. That is
|
|
80
|
+
taken as your team's decision, either way.
|
|
81
|
+
- **Files in the folder are already committed.** A rule now would ignore new
|
|
82
|
+
drafts while the old ones stayed tracked. `init` prints the lines to add and
|
|
83
|
+
how to stop tracking the files.
|
|
84
|
+
|
|
85
|
+
To stop tracking files that are already committed (they stay on your
|
|
86
|
+
machine):
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
git rm -r --cached hippocampus/inbox hippocampus/imports
|
|
90
|
+
git add .gitignore hippocampus/inbox hippocampus/imports
|
|
91
|
+
git commit -m "Stop tracking research files and import drafts"
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
That removes them from now on. Earlier commits still hold them, so talk to
|
|
95
|
+
your information governance lead about whether the history needs rewriting.
|
|
96
|
+
|
|
97
|
+
`npx hippocampus doctor` warns whenever research files or drafts are
|
|
98
|
+
committed, until they are untracked or your team records the decision.
|
|
99
|
+
|
|
100
|
+
Because drafts are not shared, **whoever imports a round reviews and promotes
|
|
101
|
+
it**, or works alongside the person who does. Someone else cannot import the
|
|
102
|
+
same file again on their own machine: the manifest is shared, and it remembers
|
|
103
|
+
the file was imported.
|
|
104
|
+
|
|
105
|
+
### If your team decides to commit drafts
|
|
106
|
+
|
|
107
|
+
Agree it with your information governance lead first. Then record the
|
|
108
|
+
decision in `.gitignore` as a comment that names the folder, in place of that
|
|
109
|
+
folder's lines if `init` wrote them:
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
# hippocampus/imports is committed on purpose: agreed with IG, October 2026.
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
`init` then leaves the folder alone, and `doctor` lists the committed files as
|
|
116
|
+
a note rather than a warning.
|
|
117
|
+
|
|
118
|
+
## Nothing joins the record without a person
|
|
119
|
+
|
|
120
|
+
- Importing writes drafts. It never writes to `hippocampus/source/`.
|
|
121
|
+
- Promotion is a command a person runs: `npx hippocampus promote research`,
|
|
122
|
+
or `npx hippocampus promote project-context`. Nothing runs it on its own.
|
|
123
|
+
- `npx hippocampus research sync` and `npx hippocampus import project-context`
|
|
124
|
+
ask whether to promote straight after importing. The answer defaults to no.
|
|
125
|
+
Say no until someone has reviewed the drafts, and do not use `--yes`, which
|
|
126
|
+
promotes without asking.
|
|
127
|
+
|
|
128
|
+
Two things write to `hippocampus/source/` without a draft:
|
|
129
|
+
|
|
130
|
+
- **The `ingest-user-personas` skill.** An AI agent writes users, needs,
|
|
131
|
+
evidence and assumptions from persona documents straight into the record.
|
|
132
|
+
See [Turn personas into users and needs](turn-personas-into-users-and-needs.md).
|
|
133
|
+
- **`npx hippocampus link insight-needs`.** It writes links between insights
|
|
134
|
+
and needs, and replaces the earlier links for the insights it compares. See
|
|
135
|
+
[Link insights to needs](link-insights-to-needs.md).
|
|
136
|
+
|
|
137
|
+
For both, git is the review. Start with nothing else changed in
|
|
138
|
+
`hippocampus/source/`, read `git diff hippocampus/source` afterwards, and
|
|
139
|
+
commit only what holds.
|
|
140
|
+
|
|
141
|
+
**Promotion is when research enters the repository's history for good.**
|
|
142
|
+
Review the draft for personal data before it is promoted, as well as for
|
|
143
|
+
accuracy.
|
|
144
|
+
|
|
145
|
+
## Personal data in the record
|
|
146
|
+
|
|
147
|
+
- **Participants are codes, never names.** A participant record holds a code
|
|
148
|
+
such as `P4`, a role, optionally an organisation, and the rounds they took
|
|
149
|
+
part in. The list that links codes to real people stays with your research
|
|
150
|
+
records, not in the prototype. Check that a role and organisation together
|
|
151
|
+
do not identify someone.
|
|
152
|
+
- **Quotes go into the record with the insight they are part of.** Before
|
|
153
|
+
promoting, take out anything that could identify a person: names, places,
|
|
154
|
+
employers, rare conditions, distinctive events.
|
|
155
|
+
- **Consent.** Check that what participants agreed to covers storing findings
|
|
156
|
+
this way, and the people who will be able to see them.
|
|
157
|
+
- **Removing something later.** Deleting a record from `hippocampus/source/`
|
|
158
|
+
and committing removes it from now on. It is still in the history. See
|
|
159
|
+
[Keep research files and drafts out of git](#keep-research-files-and-drafts-out-of-git).
|
|
160
|
+
|
|
161
|
+
## Who can see it
|
|
162
|
+
|
|
163
|
+
- **The repository.** Anyone with access to it can read
|
|
164
|
+
`hippocampus/source/` and the manifests. If the repository is public, that
|
|
165
|
+
is everyone.
|
|
166
|
+
- **The published prototype.** The knowledge base pages at `/hippocampus` are
|
|
167
|
+
part of your prototype, so they are published with it. When the NHS
|
|
168
|
+
Prototype Kit runs in production, every page asks for the prototype's
|
|
169
|
+
password, the knowledge base included. If no password has been set, every
|
|
170
|
+
page shows an error instead.
|
|
171
|
+
- **Anyone with that password can open `/hippocampus`**, including people you
|
|
172
|
+
give it to for usability testing. Hippocampus has no setting to hide its
|
|
173
|
+
pages on their own. If people outside the team will have the password, agree
|
|
174
|
+
with your information governance lead what they may see before you publish.
|
|
175
|
+
|
|
176
|
+
## When anything leaves your machine
|
|
177
|
+
|
|
178
|
+
- **The `hippocampus` commands send nothing anywhere.** Importing reads files
|
|
179
|
+
on your machine. The only network request any command makes is `doctor`
|
|
180
|
+
opening your own prototype's pages, apart from the optional Gemini tool
|
|
181
|
+
below.
|
|
182
|
+
- **The viewer sends no knowledge base content anywhere.** It is served by
|
|
183
|
+
your prototype. One page loads something from another site: a journey's
|
|
184
|
+
flow diagram (`/hippocampus/journeys/<id>/flow`) fetches the Mermaid
|
|
185
|
+
drawing library from `cdn.jsdelivr.net` in the reader's browser. The
|
|
186
|
+
diagram is drawn in the browser, so no content is sent, but the request
|
|
187
|
+
itself reaches that site.
|
|
188
|
+
- **Skills are carried out by an AI agent, and whatever the agent reads goes to
|
|
189
|
+
its service.** `npx hippocampus skills install` puts the skills where GitHub
|
|
190
|
+
Copilot reads them. These skills read research files or drafts:
|
|
191
|
+
`ingest-research-round`, `structure-research-draft`,
|
|
192
|
+
`review-research-import-draft`, `map-research-to-graph`,
|
|
193
|
+
`ingest-user-personas`, `ingest-project-context` and
|
|
194
|
+
`structure-project-context-draft`. Check which service your organisation
|
|
195
|
+
has approved, and what it does with what it is sent: whether it keeps it,
|
|
196
|
+
and whether it is used to train models.
|
|
197
|
+
- **`npx hippocampus mcp` hands the knowledge base to any agent connected to
|
|
198
|
+
it.** Its `design_brain_read` tool can open any file in the project apart
|
|
199
|
+
from `.env` files, `.git`, `.npmrc` and `node_modules`, so that includes the
|
|
200
|
+
inbox and the drafts.
|
|
201
|
+
- **One optional tool sends content to Google Gemini.** `design_brain_ask`, in
|
|
202
|
+
`hippocampus mcp`, sends the question and whatever it looks up, which can
|
|
203
|
+
include any of the files above. It is off unless someone sets
|
|
204
|
+
`GEMINI_API_KEY` and `DESIGN_BRAIN_MODEL` and installs `@google/genai`.
|
|
205
|
+
|
|
206
|
+
## Related
|
|
207
|
+
|
|
208
|
+
- [Start here](start-here.md)
|
|
209
|
+
- [Import a research round](import-a-research-round.md)
|
|
210
|
+
- [Review a draft and promote it](review-and-promote-a-draft.md)
|
|
211
|
+
- [Add project context](add-project-context.md)
|
|
212
|
+
- [Research source file conventions](research-source-file-conventions.md)
|
|
@@ -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. `npx hippocampus init` adds the
|
|
30
|
+
lines to your `.gitignore`; check they are there, as described in
|
|
31
|
+
[Keep research files and drafts out of git](data-and-governance.md#keep-research-files-and-drafts-out-of-git)
|
|
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
|
@@ -137,6 +137,11 @@ This writes:
|
|
|
137
137
|
- `hippocampus/`, with an empty knowledge base and its `inbox/`, `imports/`
|
|
138
138
|
and `source/` folders
|
|
139
139
|
- `artefacts/`, with a short README in each folder
|
|
140
|
+
- lines in `.gitignore` that keep `hippocampus/inbox/` and
|
|
141
|
+
`hippocampus/imports/` out of git. Research files and import drafts hold
|
|
142
|
+
participants' words, and anything committed stays in the repository's
|
|
143
|
+
history. See
|
|
144
|
+
[Keep research files and drafts out of git](data-and-governance.md#keep-research-files-and-drafts-out-of-git).
|
|
140
145
|
|
|
141
146
|
It also adds two short blocks to your prototype, one in `app/routes.js` and
|
|
142
147
|
one in `app.js`, so the viewer appears inside it. Both are marked, and
|
|
@@ -154,7 +159,8 @@ after it will be right: run the command from inside your prototype, or pass
|
|
|
154
159
|
`--root <folder>`.
|
|
155
160
|
|
|
156
161
|
After that, `doctor` checks the config, the knowledge base, the two blocks in
|
|
157
|
-
your prototype and whether the records link up.
|
|
162
|
+
your prototype and whether the records link up. It warns if research files or
|
|
163
|
+
drafts have been committed to git. Then it starts the prototype
|
|
158
164
|
and opens every page to make sure each one loads. A failed check says what went
|
|
159
165
|
wrong, and usually what to run next.
|
|
160
166
|
|
|
@@ -190,13 +196,25 @@ you which.
|
|
|
190
196
|
off unless someone sets `GEMINI_API_KEY` and `DESIGN_BRAIN_MODEL` and
|
|
191
197
|
installs `@google/genai`. The rest of `hippocampus mcp` uses no model.
|
|
192
198
|
|
|
199
|
+
[Data and governance](data-and-governance.md) covers this in more detail,
|
|
200
|
+
along with who can see the knowledge base and what to keep out of git.
|
|
201
|
+
|
|
193
202
|
## What to read next
|
|
194
203
|
|
|
204
|
+
- [Data and governance](data-and-governance.md): what to agree with your
|
|
205
|
+
information governance lead before the first research file goes in
|
|
195
206
|
- [Ask what's already known](ask-whats-already-known.md): check what the team
|
|
196
207
|
already knows before you research or design something
|
|
197
208
|
- [Import a research round](import-a-research-round.md) and
|
|
198
209
|
[Review a draft and promote it](review-and-promote-a-draft.md): bring a
|
|
199
210
|
round of research in, steps 1 to 6 above
|
|
211
|
+
- [Add project context](add-project-context.md) and
|
|
212
|
+
[Turn personas into users and needs](turn-personas-into-users-and-needs.md):
|
|
213
|
+
the briefing material and the users everything else hangs off
|
|
214
|
+
- [Link insights to needs](link-insights-to-needs.md) and
|
|
215
|
+
[Check for unintended consequences](check-for-unintended-consequences.md):
|
|
216
|
+
connect the research to the needs, then use those links before designing a
|
|
217
|
+
new journey
|
|
200
218
|
- [Hippocampus for designers and researchers](hippocampus-for-designers-and-researchers.md):
|
|
201
219
|
the record types and viewer pages in more detail
|
|
202
220
|
- [Research source file conventions](research-source-file-conventions.md):
|