@hippo-digital/hippocampus 2.4.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +128 -0
- package/README.md +19 -0
- package/assets/dist/hippocampus.css +1 -1
- package/assets/hippocampus.scss +34 -1
- package/bin/hippocampus.js +1 -1
- package/docs/add-project-context.md +225 -0
- package/docs/agent-roadmap.md +6 -1
- package/docs/agent-workflow.md +6 -1
- package/docs/ask-whats-already-known.md +159 -0
- package/docs/check-for-unintended-consequences.md +191 -0
- package/docs/colour-pairings.md +6 -0
- package/docs/components.md +7 -1
- package/docs/custom-agents-usage.md +6 -1
- package/docs/data-and-governance.md +188 -0
- package/docs/design-actions-and-decisions.md +5 -0
- package/docs/diagrams/README.md +44 -0
- package/docs/diagrams/evidence-flow.mmd +56 -0
- package/docs/diagrams/mermaid.config.json +20 -0
- package/docs/hippocampus-for-designers-and-researchers.md +9 -3
- package/docs/hippocampus-technical.md +7 -1
- package/docs/images/evidence-flow.svg +1 -0
- package/docs/import-a-research-round.md +233 -0
- package/docs/link-insights-to-needs.md +225 -0
- package/docs/prompt-architecture-guardrails.md +6 -1
- package/docs/repeatable-research-round-ingestion.md +9 -3
- package/docs/research-knowledge-graph.md +12 -4
- package/docs/research-source-file-conventions.md +7 -2
- package/docs/review-and-promote-a-draft.md +212 -0
- package/docs/source-model.md +7 -1
- package/docs/start-here.md +223 -0
- package/docs/turn-personas-into-users-and-needs.md +207 -0
- package/lib/create-router.js +26 -3
- package/lib/docs.js +288 -30
- package/lib/templates.js +1 -1
- package/package.json +1 -1
- package/scripts/consequences.js +7 -5
- package/scripts/import-project-context.js +17 -5
- package/scripts/import-research-deck.js +31 -6
- package/scripts/known.js +2 -2
- package/scripts/link-insights-to-needs.js +38 -13
- package/scripts/promote-project-context-draft.js +66 -15
- package/scripts/promote-research-draft.js +99 -12
- package/scripts/smoke-routes.js +8 -1
- package/scripts/sync-project-context.js +90 -12
- package/skills/ingest-project-context/SKILL.md +1 -1
- package/skills/skills.json +2 -2
- package/skills/structure-project-context-draft/SKILL.md +1 -1
- package/templates/project-context.xlsx +0 -0
- package/views/hippocampus/doc.html +15 -0
- package/views/hippocampus/docs.html +42 -13
- package/views/hippocampus/research.html +9 -4
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
---
|
|
2
|
+
section: recipes
|
|
3
|
+
order: 10
|
|
4
|
+
audience: [viewer, cli]
|
|
5
|
+
summary: Before you plan research, design a screen or write a story, find out what the team already knows about it, and what nobody has asked yet.
|
|
6
|
+
---
|
|
7
|
+
# Ask what's already known
|
|
8
|
+
|
|
9
|
+
Before you plan research, design a screen or write a story, check what the
|
|
10
|
+
knowledge base already holds on the topic. It stops the team finding the same
|
|
11
|
+
thing out twice, and it tells you plainly when nobody has looked at a topic
|
|
12
|
+
yet.
|
|
13
|
+
|
|
14
|
+
## Who this is for
|
|
15
|
+
|
|
16
|
+
Anyone on the team. With the command line you get the whole answer from one
|
|
17
|
+
command. If you only use the viewer, you can follow most of the same trail by
|
|
18
|
+
browsing: see [In the viewer](#in-the-viewer).
|
|
19
|
+
|
|
20
|
+
## Before you start
|
|
21
|
+
|
|
22
|
+
- At least one research round needs to have been imported and promoted. If
|
|
23
|
+
none has, the answer will always be that nobody has asked, and the command
|
|
24
|
+
says so. See [Import a research round](import-a-research-round.md).
|
|
25
|
+
- Choose a topic in a word or two, such as `fasting` or `carer`. Short words
|
|
26
|
+
find more than long phrases.
|
|
27
|
+
|
|
28
|
+
## At the command line
|
|
29
|
+
|
|
30
|
+
1. From your prototype's folder, run:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx hippocampus known fasting
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
To search for a phrase, put it in quotes: `npx hippocampus known "home visit"`.
|
|
37
|
+
Words without quotes are each searched for separately.
|
|
38
|
+
|
|
39
|
+
2. Read the **Coverage** section at the bottom first. It says how many research
|
|
40
|
+
rounds have a finding on the topic. `0 of 6` means none do. That is an
|
|
41
|
+
answer, not an error.
|
|
42
|
+
|
|
43
|
+
3. Then read the rest from the top:
|
|
44
|
+
|
|
45
|
+
- **Findings**: insights and evidence that mention the topic, oldest round
|
|
46
|
+
first. Each shows its confidence, how many participants it came from, and
|
|
47
|
+
the round and its date. Treat each one as a separate claim. Two rounds
|
|
48
|
+
agreeing is stronger than either on its own.
|
|
49
|
+
- **Assumptions**: beliefs the design rests on that nobody has tested. They
|
|
50
|
+
are listed apart from findings so they are never mistaken for research.
|
|
51
|
+
- **Needs that name it** and **Needs these findings support**.
|
|
52
|
+
- **Design work that names it** and **Already built on these**: design
|
|
53
|
+
actions, decisions, journeys and screens that already exist because of
|
|
54
|
+
these records. Check these before building anything new.
|
|
55
|
+
|
|
56
|
+
4. Search again using the words the research would use, not only the ones you
|
|
57
|
+
would say. A researcher may have written "fasting" where you would say
|
|
58
|
+
"not eating". A miss on one word is not proof that nobody asked.
|
|
59
|
+
|
|
60
|
+
Lists stop at 25 items. Add `--all` to see everything, or `--json` to get the
|
|
61
|
+
result in a form another tool can read.
|
|
62
|
+
|
|
63
|
+
### Keep the answer
|
|
64
|
+
|
|
65
|
+
An answer that only exists in a terminal or a chat window will be lost, and
|
|
66
|
+
someone will ask the same question next month. Save it, named with today's
|
|
67
|
+
date:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
mkdir -p artefacts/knowledge-answers
|
|
71
|
+
npx hippocampus known fasting > artefacts/knowledge-answers/$(date +%F)-fasting.txt
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## What it looks like
|
|
75
|
+
|
|
76
|
+
This example is made up.
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
$ npx hippocampus known fasting
|
|
80
|
+
What the knowledge base holds on: fasting
|
|
81
|
+
(/Users/sam/blood-test-prototype, 1 research round)
|
|
82
|
+
|
|
83
|
+
Findings (1) - oldest round first; each is a separate claim
|
|
84
|
+
insight playback-2026-09-15-insight-2 [medium, 1 participant, Round 1 – Booking a blood test, 2026-09-15]
|
|
85
|
+
Receptionists rebook about a third of fasting appointments by phone because the form gives no fasting guidanc…
|
|
86
|
+
|
|
87
|
+
Design work that names it (1)
|
|
88
|
+
designActions playback-2026-09-15-action-2 [proposed]
|
|
89
|
+
Add fasting instructions to the confirmation message for every test that needs them.
|
|
90
|
+
|
|
91
|
+
Coverage
|
|
92
|
+
Rounds with a finding on this: 1 of 1 - Round 1 – Booking a blood test (2026-09-15)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
When nothing matches:
|
|
96
|
+
|
|
97
|
+
```text
|
|
98
|
+
$ npx hippocampus known "home visit"
|
|
99
|
+
What the knowledge base holds on: home visit
|
|
100
|
+
(/Users/sam/blood-test-prototype, 1 research round)
|
|
101
|
+
|
|
102
|
+
No record names this.
|
|
103
|
+
|
|
104
|
+
Coverage
|
|
105
|
+
Rounds with a finding on this: 0 of 1
|
|
106
|
+
No round covered this. That is the finding.
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## In the viewer
|
|
110
|
+
|
|
111
|
+
The viewer has no single "what do we know" page, but you can follow the same
|
|
112
|
+
trail. The pages below are under `/hippocampus` by default.
|
|
113
|
+
|
|
114
|
+
1. Open `/hippocampus/user-needs` and search for the topic. Each need shows
|
|
115
|
+
the evidence behind it.
|
|
116
|
+
2. Open `/hippocampus/research`. Rounds are listed newest first, each with its
|
|
117
|
+
participants, insights and design actions. Select an insight to see its
|
|
118
|
+
round, its confidence and the participants it came from.
|
|
119
|
+
3. Select any evidence link on a need or user page to see everything that
|
|
120
|
+
depends on that piece of research.
|
|
121
|
+
4. Use `/hippocampus/trace` to follow a record forwards to what was built from
|
|
122
|
+
it, or backwards to the research behind it.
|
|
123
|
+
|
|
124
|
+
Browsing can show you what is there. It cannot tell you for certain that
|
|
125
|
+
nothing is. For that, ask someone to run the command and save the answer.
|
|
126
|
+
|
|
127
|
+
## How to check it worked
|
|
128
|
+
|
|
129
|
+
The command always ends with a **Coverage** section. If you do not see one,
|
|
130
|
+
the command did not find your knowledge base.
|
|
131
|
+
|
|
132
|
+
## If it goes wrong
|
|
133
|
+
|
|
134
|
+
- **"No Hippocampus knowledge base found in ..."**: you ran the command
|
|
135
|
+
outside your prototype. Move into your prototype's folder, or add
|
|
136
|
+
`--root <folder>`.
|
|
137
|
+
- **"Usage: hippocampus known ..."**: you did not give a topic.
|
|
138
|
+
- **"This knowledge base has no research rounds yet"**: nothing has been
|
|
139
|
+
imported, so nothing can say whether anyone asked. Start with
|
|
140
|
+
[Import a research round](import-a-research-round.md).
|
|
141
|
+
- **Too many findings that are not about your topic**: words without quotes
|
|
142
|
+
are searched for separately. Put a phrase in quotes to keep it together.
|
|
143
|
+
- **Every finding says "medium"**: imported insights start at medium
|
|
144
|
+
confidence until someone reviews them. Treat them as unchecked, and see
|
|
145
|
+
[Review a draft and promote it](review-and-promote-a-draft.md).
|
|
146
|
+
|
|
147
|
+
## Related skills
|
|
148
|
+
|
|
149
|
+
- `whats-known-about`: an AI agent runs this command, searches with more than
|
|
150
|
+
one wording, and writes a dated answer to `artefacts/knowledge-answers/` that
|
|
151
|
+
anyone can read later. It ends by naming the question someone would need to
|
|
152
|
+
ask to fill the gap. Whatever the agent reads is sent to the agent's service:
|
|
153
|
+
see [Start here](start-here.md#when-anything-leaves-your-machine).
|
|
154
|
+
- `find-unintended-consequences`: the next step when you are about to change a
|
|
155
|
+
journey, to find who else it could affect.
|
|
156
|
+
- `onboard-team-member`: uses the same search to brief someone new.
|
|
157
|
+
|
|
158
|
+
Agents connected to `hippocampus mcp` can ask the same question through its
|
|
159
|
+
`design_brain_known` tool.
|
|
@@ -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).
|
package/docs/colour-pairings.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
section: reference
|
|
3
|
+
order: 60
|
|
4
|
+
audience: [viewer, cli]
|
|
5
|
+
summary: The NHS colour pairs blueprints use to tell lanes and record types apart: a post-it colour and the pale tint that goes behind it.
|
|
6
|
+
---
|
|
1
7
|
# Service blueprint colour pairs
|
|
2
8
|
|
|
3
9
|
Reference palette for colour-coding categories in service blueprint style
|
package/docs/components.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
section: reference
|
|
3
|
+
order: 50
|
|
4
|
+
audience: [cli]
|
|
5
|
+
summary: The Nunjucks macros the viewer is built from - cards, lists, journey steps, blueprint cells - and the rules for changing them.
|
|
6
|
+
---
|
|
7
|
+
# Knowledge base components
|
|
2
8
|
|
|
3
9
|
Reusable Nunjucks macros live in `node_modules/@hippo-digital/hippocampus/views/hippocampus/components`.
|
|
4
10
|
|
|
@@ -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)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Diagrams
|
|
2
|
+
|
|
3
|
+
Mermaid source for the diagrams in the guide. The viewer does not render
|
|
4
|
+
Mermaid, so each diagram is rendered to SVG once and the SVG is committed to
|
|
5
|
+
`docs/images/`. Nothing builds them at install or publish time: a build step
|
|
6
|
+
that needs a headless browser is not worth it for a handful of pictures.
|
|
7
|
+
|
|
8
|
+
| Source | Rendered | Used in |
|
|
9
|
+
| --- | --- | --- |
|
|
10
|
+
| `evidence-flow.mmd` | `images/evidence-flow.svg` | `start-here.md` |
|
|
11
|
+
|
|
12
|
+
## Changing a diagram
|
|
13
|
+
|
|
14
|
+
1. Edit the `.mmd` file.
|
|
15
|
+
2. Re-render it, from `packages/hippocampus/docs`:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx -y @mermaid-js/mermaid-cli@11 \
|
|
19
|
+
-i diagrams/evidence-flow.mmd \
|
|
20
|
+
-o images/evidence-flow.svg \
|
|
21
|
+
-c diagrams/mermaid.config.json \
|
|
22
|
+
-b white
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
3. Update the text description beside the image in the guide that uses it.
|
|
26
|
+
The description is how a screen reader user, and anyone reading the
|
|
27
|
+
markdown in an editor, gets the diagram - a diagram whose picture changed
|
|
28
|
+
and whose words did not is wrong for exactly the people least able to
|
|
29
|
+
notice.
|
|
30
|
+
4. Commit the `.mmd`, the `.svg` and the guide together.
|
|
31
|
+
|
|
32
|
+
## Rules the config enforces
|
|
33
|
+
|
|
34
|
+
- **Labels are SVG text, not HTML** (`htmlLabels: false`). Mermaid's default
|
|
35
|
+
puts labels in `foreignObject`, which some browsers drop when an SVG is
|
|
36
|
+
shown through an `<img>` tag - the boxes render and the words do not.
|
|
37
|
+
- **Arial at 17px.** The doc page scales a diagram down to its 76ch measure;
|
|
38
|
+
17px keeps labels at roughly 14px once it has.
|
|
39
|
+
- **Colours come from `colour-pairings.md`**: a post-it colour for the border
|
|
40
|
+
and its tint for the fill, with text in `#212b32`. Every text colour on every
|
|
41
|
+
fill used is above 12:1.
|
|
42
|
+
- **`accTitle` and `accDescr` in every diagram.** Mermaid writes them into the
|
|
43
|
+
SVG as `<title>` and `<desc>`, so the file describes itself when opened on
|
|
44
|
+
its own. They do not replace the description in the guide.
|