@hippo-digital/hippocampus 1.0.0-rc.1
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 +55 -0
- package/LICENSE +21 -0
- package/README.md +153 -0
- package/assets/dist/hippocampus.css +1 -0
- package/assets/hippocampus.scss +896 -0
- package/assets/javascript/blueprint.js +123 -0
- package/bin/hippocampus.js +106 -0
- package/docs/agent-roadmap.md +217 -0
- package/docs/agent-workflow.md +56 -0
- package/docs/agentic-patterns-to-port.md +273 -0
- package/docs/colour-pairings.md +41 -0
- package/docs/components.md +52 -0
- package/docs/copilot-ncrs-research-curator-agent.md +298 -0
- package/docs/custom-agents-usage.md +95 -0
- package/docs/design-actions-and-decisions.md +95 -0
- package/docs/gp-connect-real-data-to-production.md +66 -0
- package/docs/hippocampus-for-designers-and-researchers.md +261 -0
- package/docs/hippocampus-technical.md +373 -0
- package/docs/prompt-architecture-guardrails.md +39 -0
- package/docs/repeatable-research-round-ingestion.md +239 -0
- package/docs/research-knowledge-graph.md +552 -0
- package/docs/research-source-file-conventions.md +121 -0
- package/docs/source-model.md +252 -0
- package/index.js +47 -0
- package/lib/config.js +46 -0
- package/lib/context.js +59 -0
- package/lib/create-router.js +187 -0
- package/lib/discover-projects.js +45 -0
- package/lib/docs.js +72 -0
- package/lib/host-edit.js +151 -0
- package/lib/lint-knowledge.js +133 -0
- package/lib/load-knowledge.js +629 -0
- package/lib/package-paths.js +32 -0
- package/lib/paths.js +33 -0
- package/lib/resolve-root.js +84 -0
- package/lib/schema-version.js +96 -0
- package/lib/schema.js +346 -0
- package/package.json +70 -0
- package/scripts/audit-provenance.js +147 -0
- package/scripts/doctor.js +114 -0
- package/scripts/eject.js +51 -0
- package/scripts/import-blueprint-spreadsheet.js +242 -0
- package/scripts/import-design-actions.js +230 -0
- package/scripts/import-project-context.js +427 -0
- package/scripts/import-research-batch.js +160 -0
- package/scripts/import-research-deck.js +448 -0
- package/scripts/index-source-artefacts.js +261 -0
- package/scripts/init.js +232 -0
- package/scripts/install-skills.js +160 -0
- package/scripts/lib/artefact-text.js +347 -0
- package/scripts/lib/xlsx-grid.js +114 -0
- package/scripts/link-insights-to-needs.js +209 -0
- package/scripts/migrate-knowledge.js +73 -0
- package/scripts/promote-project-context-draft.js +125 -0
- package/scripts/promote-research-draft.js +236 -0
- package/scripts/smoke-routes.js +157 -0
- package/scripts/sync-project-context.js +236 -0
- package/scripts/sync-research-artefacts.js +294 -0
- package/scripts/triage-research-corpus.js +274 -0
- package/scripts/validate-knowledge.js +49 -0
- package/scripts/validate-skills.js +247 -0
- package/skills/COVERAGE-MATRIX.md +39 -0
- package/skills/README.md +77 -0
- package/skills/SKILL-FORMAT.md +100 -0
- package/skills/add-prototype-screen.skill.md +54 -0
- package/skills/add-scenario.skill.md +47 -0
- package/skills/add-user-needs.skill.md +51 -0
- package/skills/audit-knowledge-source.skill.md +47 -0
- package/skills/capture-route-review-pack.skill.md +52 -0
- package/skills/create-journey-from-scenario.skill.md +50 -0
- package/skills/deliver-service-slice.skill.md +65 -0
- package/skills/examples/README.md +15 -0
- package/skills/examples/non-copilot-research-ingestion.md +68 -0
- package/skills/examples/non-copilot-service-slice.md +64 -0
- package/skills/generate-service-slice.skill.md +57 -0
- package/skills/ingest-project-context.skill.md +58 -0
- package/skills/ingest-research-round.skill.md +60 -0
- package/skills/map-research-to-graph.skill.md +58 -0
- package/skills/record-accessibility-review.skill.md +52 -0
- package/skills/record-design-decision.skill.md +53 -0
- package/skills/review-research-import-draft.skill.md +45 -0
- package/skills/skills.json +464 -0
- package/skills/skills.schema.json +111 -0
- package/skills/structure-project-context-draft.skill.md +51 -0
- package/skills/structure-research-draft.skill.md +51 -0
- package/skills/triage-research-corpus.skill.md +51 -0
- package/skills/write-delivery-summary.skill.md +51 -0
- package/skills/write-route-review-summary.skill.md +55 -0
- package/views/hippocampus/_layout.html +45 -0
- package/views/hippocampus/blueprint-classic.html +39 -0
- package/views/hippocampus/blueprint.html +52 -0
- package/views/hippocampus/components/_blueprint-cell.njk +42 -0
- package/views/hippocampus/components/_blueprint-controls.njk +20 -0
- package/views/hippocampus/components/_blueprint-minimap.njk +14 -0
- package/views/hippocampus/components/_empty-state.njk +12 -0
- package/views/hippocampus/components/_journey-step.njk +21 -0
- package/views/hippocampus/components/_list.njk +23 -0
- package/views/hippocampus/components/_summary-card.njk +15 -0
- package/views/hippocampus/doc.html +11 -0
- package/views/hippocampus/docs.html +19 -0
- package/views/hippocampus/evidence-impact.html +53 -0
- package/views/hippocampus/graph.html +48 -0
- package/views/hippocampus/handover-empty.html +12 -0
- package/views/hippocampus/handover.html +56 -0
- package/views/hippocampus/index.html +46 -0
- package/views/hippocampus/journey-flow.html +31 -0
- package/views/hippocampus/journey.html +23 -0
- package/views/hippocampus/not-found.html +10 -0
- package/views/hippocampus/project.html +102 -0
- package/views/hippocampus/research.html +68 -0
- package/views/hippocampus/route-review.html +83 -0
- package/views/hippocampus/scenarios.html +56 -0
- package/views/hippocampus/trace.html +113 -0
- package/views/hippocampus/user-needs.html +32 -0
- package/views/hippocampus/user.html +157 -0
- package/views/hippocampus/users.html +32 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Worked example: non-Copilot service slice delivery
|
|
2
|
+
|
|
3
|
+
This example shows how another agent runtime can use the portable catalog to drive a source-first feature slice.
|
|
4
|
+
|
|
5
|
+
## 1. Resolve the workflow
|
|
6
|
+
|
|
7
|
+
Open `.github/skills/skills.json` and find:
|
|
8
|
+
|
|
9
|
+
- `id`: `deliver-service-slice`
|
|
10
|
+
- `purpose`: end-to-end fictional service slice delivery
|
|
11
|
+
|
|
12
|
+
Load the referenced file:
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
.github/skills/deliver-service-slice.skill.md
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## 2. Use the catalog for planning
|
|
19
|
+
|
|
20
|
+
The catalog entry already tells the agent:
|
|
21
|
+
|
|
22
|
+
- which role agents normally own the work via `owners`
|
|
23
|
+
- which lower-level skills are chained via `composes`
|
|
24
|
+
- which commands complete the workflow via `runs`
|
|
25
|
+
- what outputs and acceptance criteria define success
|
|
26
|
+
|
|
27
|
+
## 3. Use the skill card for execution
|
|
28
|
+
|
|
29
|
+
Read the skill card front matter and body, then work through:
|
|
30
|
+
|
|
31
|
+
1. source-model authoring with:
|
|
32
|
+
- `generate-service-slice`
|
|
33
|
+
- `add-user-needs`
|
|
34
|
+
- `add-scenario`
|
|
35
|
+
- `create-journey-from-scenario`
|
|
36
|
+
2. route/view work with `add-prototype-screen` only if needed
|
|
37
|
+
3. review with `audit-knowledge-source`
|
|
38
|
+
4. handover with a dated note under `artefacts/delivery-summaries/`
|
|
39
|
+
|
|
40
|
+
## 4. Run the required checks
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npx hippocampus validate
|
|
44
|
+
npx hippocampus doctor
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## 5. Stop conditions
|
|
48
|
+
|
|
49
|
+
A non-Copilot agent should treat the workflow as complete only when:
|
|
50
|
+
|
|
51
|
+
- the source records are linked in dependency order
|
|
52
|
+
- any visible route work passes smoke testing
|
|
53
|
+
- the delivery summary records what changed and any unresolved risks
|
|
54
|
+
|
|
55
|
+
## 6. Why this is portable
|
|
56
|
+
|
|
57
|
+
The workflow depends on:
|
|
58
|
+
|
|
59
|
+
- `skills.json` for discovery
|
|
60
|
+
- Markdown skill cards for execution details
|
|
61
|
+
- repo scripts and docs for validation
|
|
62
|
+
|
|
63
|
+
It does not require product-specific agent syntax beyond being able to read files, edit files, and run commands.
|
|
64
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: generate-service-slice
|
|
3
|
+
title: Generate service slice
|
|
4
|
+
purpose: Create a coherent fictional Hippocampus slice across linked source records.
|
|
5
|
+
owners:
|
|
6
|
+
- knowledge-builder
|
|
7
|
+
- workflow-orchestrator
|
|
8
|
+
reads:
|
|
9
|
+
- node_modules/@hippo-digital/hippocampus/docs/source-model.md
|
|
10
|
+
- node_modules/@hippo-digital/hippocampus/docs/source-model.md
|
|
11
|
+
- hippocampus/source/
|
|
12
|
+
edits:
|
|
13
|
+
- hippocampus/source/users.json
|
|
14
|
+
- hippocampus/source/needs.json
|
|
15
|
+
- hippocampus/source/scenarios.json
|
|
16
|
+
- hippocampus/source/journeys.json
|
|
17
|
+
- hippocampus/source/screens.json
|
|
18
|
+
- hippocampus/source/evidence.json
|
|
19
|
+
- hippocampus/source/decisions.json
|
|
20
|
+
- hippocampus/source/assumptions.json
|
|
21
|
+
runs:
|
|
22
|
+
- npx hippocampus validate
|
|
23
|
+
outputs:
|
|
24
|
+
- Linked source records in hippocampus/source/
|
|
25
|
+
- A validation-ready slice for Hippocampus views
|
|
26
|
+
guardrails:
|
|
27
|
+
- Preserve existing IDs unless the request is a true replacement.
|
|
28
|
+
- Keep all data fictional.
|
|
29
|
+
- Keep prototype facts in source JSON, not only in Nunjucks.
|
|
30
|
+
acceptance:
|
|
31
|
+
- Users, needs, scenario, journey, screens, and decisions are linked in dependency order.
|
|
32
|
+
- Evidence gaps are captured in assumptions.json.
|
|
33
|
+
- npx hippocampus validate passes.
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
# Generate service slice
|
|
37
|
+
|
|
38
|
+
## Use when
|
|
39
|
+
- A new service area needs its first coherent Hippocampus slice.
|
|
40
|
+
- You need users, needs, scenario, journey, screens and evidence to line up in one pass.
|
|
41
|
+
|
|
42
|
+
## Workflow
|
|
43
|
+
1. Read the current source collections before adding records.
|
|
44
|
+
2. Add or update records in dependency order: users → needs → evidence or assumptions → scenarios → journeys → screens → decisions.
|
|
45
|
+
3. Create a small linked slice: at least 1 user, 3 to 6 needs, 1 scenario, 1 journey with 4 to 7 steps, 2 to 4 screens, and at least 1 decision.
|
|
46
|
+
4. Link every need to a user and evidence, every scenario to needs, every journey to a scenario, and every screen to at least one need.
|
|
47
|
+
5. Put unsupported claims in `hippocampus/source/assumptions.json`, not in evidence.
|
|
48
|
+
|
|
49
|
+
## Guardrails
|
|
50
|
+
- Preserve existing IDs unless the request is a true replacement.
|
|
51
|
+
- Keep all data fictional.
|
|
52
|
+
- Keep prototype facts in source JSON, not only in Nunjucks.
|
|
53
|
+
|
|
54
|
+
## Finish
|
|
55
|
+
- Run `npx hippocampus validate`.
|
|
56
|
+
- Report records created or updated, validation result, and assumptions added for missing evidence.
|
|
57
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ingest-project-context
|
|
3
|
+
title: Ingest project context
|
|
4
|
+
purpose: Run the no-promote project-context ingestion workflow from inbox artefact to review-ready draft.
|
|
5
|
+
owners:
|
|
6
|
+
- ingestion-curator
|
|
7
|
+
- workflow-orchestrator
|
|
8
|
+
composes:
|
|
9
|
+
- structure-project-context-draft
|
|
10
|
+
reads:
|
|
11
|
+
- node_modules/@hippo-digital/hippocampus/docs/repeatable-research-round-ingestion.md
|
|
12
|
+
- node_modules/@hippo-digital/hippocampus/docs/hippocampus-technical.md
|
|
13
|
+
- node_modules/@hippo-digital/hippocampus/docs/source-model.md
|
|
14
|
+
- node_modules/@hippo-digital/hippocampus/docs/source-model.md
|
|
15
|
+
- hippocampus/inbox/project/
|
|
16
|
+
- hippocampus/imports/project/[draft-id].review.md
|
|
17
|
+
- hippocampus/imports/project/[draft-id].json
|
|
18
|
+
edits:
|
|
19
|
+
- hippocampus/imports/project/[draft-id].json
|
|
20
|
+
- artefacts/delivery-summaries/
|
|
21
|
+
runs:
|
|
22
|
+
- npx hippocampus import project-context -- --no-promote
|
|
23
|
+
- npx hippocampus promote project-context -- --draft hippocampus/imports/project/[draft-id].json --dry-run
|
|
24
|
+
outputs:
|
|
25
|
+
- Structured project-context draft ready for human review
|
|
26
|
+
- Dry-run-ready handoff with gaps and warnings
|
|
27
|
+
guardrails:
|
|
28
|
+
- Do not edit hippocampus/source/ during this workflow.
|
|
29
|
+
- Do not promote the draft.
|
|
30
|
+
- Do not add generic policy, risk, or milestone claims unless the source names them.
|
|
31
|
+
acceptance:
|
|
32
|
+
- Sync and structuring steps complete without canonical source edits.
|
|
33
|
+
- Unsupported overview claims are omitted or flagged as gaps.
|
|
34
|
+
- npx hippocampus promote project-context -- --dry-run passes.
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
# Ingest project context
|
|
38
|
+
|
|
39
|
+
## Use when
|
|
40
|
+
- A project overview deck or PDF needs to become a review-ready project-context draft.
|
|
41
|
+
- You want one entrypoint for the no-promote import, draft structuring, and dry-run validation flow.
|
|
42
|
+
|
|
43
|
+
## Workflow
|
|
44
|
+
1. Put the artefact in `hippocampus/inbox/project/` and run the sync command if a draft does not exist yet.
|
|
45
|
+
2. Improve only the generated draft JSON with `structure-project-context-draft`, using the matching review Markdown as evidence.
|
|
46
|
+
3. Strengthen source-backed purpose, proposition, users, channels, policies, constraints, risks, milestones, facts, and source artefacts.
|
|
47
|
+
4. Re-run the dry-run promotion command and keep weak or unsupported material out of the draft.
|
|
48
|
+
5. Hand off for human review and real promotion only after the draft is clearly useful at `/hippocampus/project`.
|
|
49
|
+
|
|
50
|
+
## Guardrails
|
|
51
|
+
- Do not edit `hippocampus/source/` during this workflow.
|
|
52
|
+
- Do not promote the draft.
|
|
53
|
+
- Do not add generic policy, risk, or milestone claims unless the source names them.
|
|
54
|
+
|
|
55
|
+
## Finish
|
|
56
|
+
- Run the dry-run promotion command.
|
|
57
|
+
- Report the draft path, fields improved, gaps deliberately left out, remaining warnings, and whether the draft is ready for human promotion.
|
|
58
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ingest-research-round
|
|
3
|
+
title: Ingest research round
|
|
4
|
+
purpose: Run the no-promote research ingestion workflow from inbox artefact to review-ready draft.
|
|
5
|
+
owners:
|
|
6
|
+
- ingestion-curator
|
|
7
|
+
- workflow-orchestrator
|
|
8
|
+
composes:
|
|
9
|
+
- structure-research-draft
|
|
10
|
+
- review-research-import-draft
|
|
11
|
+
- map-research-to-graph
|
|
12
|
+
reads:
|
|
13
|
+
- node_modules/@hippo-digital/hippocampus/docs/repeatable-research-round-ingestion.md
|
|
14
|
+
- node_modules/@hippo-digital/hippocampus/docs/research-knowledge-graph.md
|
|
15
|
+
- node_modules/@hippo-digital/hippocampus/docs/source-model.md
|
|
16
|
+
- hippocampus/inbox/research/
|
|
17
|
+
- hippocampus/imports/research/[draft-id].review.md
|
|
18
|
+
- hippocampus/imports/research/[draft-id].json
|
|
19
|
+
edits:
|
|
20
|
+
- hippocampus/imports/research/[draft-id].json
|
|
21
|
+
- artefacts/delivery-summaries/
|
|
22
|
+
runs:
|
|
23
|
+
- npx hippocampus research sync -- --no-promote
|
|
24
|
+
- npx hippocampus promote research -- --draft hippocampus/imports/research/[draft-id].json --dry-run
|
|
25
|
+
outputs:
|
|
26
|
+
- Structured research draft ready for human review
|
|
27
|
+
- Dry-run-ready handoff with counts, warnings, and supported links
|
|
28
|
+
guardrails:
|
|
29
|
+
- Do not edit hippocampus/source/ during this workflow.
|
|
30
|
+
- Do not promote the draft.
|
|
31
|
+
- Preserve extracted text, source metadata, and warnings unless the underlying issue is actually resolved.
|
|
32
|
+
acceptance:
|
|
33
|
+
- Sync, structuring, review, and graph-linking steps are completed without promotion.
|
|
34
|
+
- The draft remains source-backed and warnings stay visible until resolved.
|
|
35
|
+
- npx hippocampus promote research -- --dry-run passes.
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
# Ingest research round
|
|
39
|
+
|
|
40
|
+
## Use when
|
|
41
|
+
- A research deck or report needs to move from inbox artefact to a review-ready Hippocampus draft.
|
|
42
|
+
- You want one entrypoint that chains structuring, review, and graph-linking without promoting source data.
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
1. Put the artefact in `hippocampus/inbox/research/` and run the sync command if a draft does not exist yet.
|
|
46
|
+
2. Improve the generated draft with `structure-research-draft` using only the extracted review Markdown and draft JSON.
|
|
47
|
+
3. Review the draft with `review-research-import-draft` and treat dry-run failures or unsupported claims as blockers.
|
|
48
|
+
4. Add only supported links to existing needs, screens, evidence, journeys, or decisions with `map-research-to-graph`.
|
|
49
|
+
5. Repeat structuring and review until the draft has credible participants, real insights, concrete actions, and a clean dry-run result.
|
|
50
|
+
6. Hand off for human approval before any real promotion command.
|
|
51
|
+
|
|
52
|
+
## Guardrails
|
|
53
|
+
- Do not edit `hippocampus/source/` during this workflow.
|
|
54
|
+
- Do not promote the draft.
|
|
55
|
+
- Preserve extracted text, source metadata, and warnings unless the underlying issue is actually resolved.
|
|
56
|
+
|
|
57
|
+
## Finish
|
|
58
|
+
- Run the dry-run promotion command.
|
|
59
|
+
- Report the draft path, counts improved, remaining warnings or blockers, supported graph links added, and whether the draft is ready for human promotion.
|
|
60
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: map-research-to-graph
|
|
3
|
+
title: Map research to graph
|
|
4
|
+
purpose: Add only supported links between a reviewed research draft and existing Hippocampus entities.
|
|
5
|
+
owners:
|
|
6
|
+
- ingestion-curator
|
|
7
|
+
- knowledge-builder
|
|
8
|
+
- workflow-orchestrator
|
|
9
|
+
reads:
|
|
10
|
+
- node_modules/@hippo-digital/hippocampus/docs/research-knowledge-graph.md
|
|
11
|
+
- node_modules/@hippo-digital/hippocampus/docs/source-model.md
|
|
12
|
+
- node_modules/@hippo-digital/hippocampus/docs/source-model.md
|
|
13
|
+
- hippocampus/source/users.json
|
|
14
|
+
- hippocampus/source/needs.json
|
|
15
|
+
- hippocampus/source/scenarios.json
|
|
16
|
+
- hippocampus/source/journeys.json
|
|
17
|
+
- hippocampus/source/screens.json
|
|
18
|
+
- hippocampus/source/evidence.json
|
|
19
|
+
- hippocampus/source/decisions.json
|
|
20
|
+
- hippocampus/source/relationships.json
|
|
21
|
+
- hippocampus/imports/research/[draft-id].json
|
|
22
|
+
edits:
|
|
23
|
+
- hippocampus/imports/research/[draft-id].json
|
|
24
|
+
runs:
|
|
25
|
+
- npx hippocampus promote research -- --draft hippocampus/imports/research/[draft-id].json --dry-run
|
|
26
|
+
outputs:
|
|
27
|
+
- Updated research draft relationships
|
|
28
|
+
- Recommendations for plausible but unsupported links
|
|
29
|
+
guardrails:
|
|
30
|
+
- Do not promote the draft.
|
|
31
|
+
- Do not create new needs, scenarios, journeys, screens, or decisions unless the user explicitly asks.
|
|
32
|
+
- Respect relationship direction so dependents point to what they rely on.
|
|
33
|
+
acceptance:
|
|
34
|
+
- New links reference existing canonical entities or valid draft entities.
|
|
35
|
+
- Relationship direction follows dependent-to-supporting links.
|
|
36
|
+
- npx hippocampus promote research -- --dry-run passes.
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
# Map research to graph
|
|
40
|
+
|
|
41
|
+
## Use when
|
|
42
|
+
- A reviewed research draft needs explicit links to existing Hippocampus entities.
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
1. Read the reviewed draft and current canonical entities together.
|
|
46
|
+
2. Add only supported links such as `has-participant`, `produced-insight`, `contributed-to`, `supports-insight`, `leads-to-action`, `addresses-need`, `renders-screen`, and `records-decision`.
|
|
47
|
+
3. Prefer adding relationships inside the draft where the schema allows it.
|
|
48
|
+
4. Report plausible but unsupported links as recommendations rather than writing them.
|
|
49
|
+
|
|
50
|
+
## Guardrails
|
|
51
|
+
- Do not promote the draft.
|
|
52
|
+
- Do not create new needs, scenarios, journeys, screens, or decisions unless the user explicitly asks.
|
|
53
|
+
- Respect relationship direction so dependents point to what they rely on.
|
|
54
|
+
|
|
55
|
+
## Finish
|
|
56
|
+
- Run the dry-run promotion command.
|
|
57
|
+
- Report links added, links recommended but not written, missing canonical entities, evidence gaps, and the dry-run result.
|
|
58
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: record-accessibility-review
|
|
3
|
+
title: Record accessibility review
|
|
4
|
+
purpose: Record a dated accessibility review for changed routes or templates.
|
|
5
|
+
owners:
|
|
6
|
+
- accessibility-tester
|
|
7
|
+
- workflow-orchestrator
|
|
8
|
+
reads:
|
|
9
|
+
- node_modules/@hippo-digital/hippocampus/docs/agent-workflow.md
|
|
10
|
+
- node_modules/@hippo-digital/hippocampus/docs/custom-agents-usage.md
|
|
11
|
+
- node_modules/@hippo-digital/hippocampus/docs/components.md
|
|
12
|
+
- artefacts/accessibility/README.md
|
|
13
|
+
- app/views/
|
|
14
|
+
edits:
|
|
15
|
+
- artefacts/accessibility/[yyyy-mm-dd-topic].md
|
|
16
|
+
runs:
|
|
17
|
+
- npx hippocampus doctor
|
|
18
|
+
outputs:
|
|
19
|
+
- Accessibility note under artefacts/accessibility/
|
|
20
|
+
- Blockers and improvements separated by scope
|
|
21
|
+
guardrails:
|
|
22
|
+
- Do not claim an automated audit ran unless it actually did.
|
|
23
|
+
- Separate blockers from improvements.
|
|
24
|
+
- Cite the route, template, or component involved in every important finding.
|
|
25
|
+
acceptance:
|
|
26
|
+
- Routes or templates reviewed and the review method are stated.
|
|
27
|
+
- Findings cite the route, template, or component involved.
|
|
28
|
+
- The smoke-test result and remaining manual follow-up are reported.
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Record accessibility review
|
|
32
|
+
|
|
33
|
+
## Use when
|
|
34
|
+
- Changed routes or templates need a documented accessibility pass.
|
|
35
|
+
- A review needs blockers separated from follow-up improvements.
|
|
36
|
+
|
|
37
|
+
## Workflow
|
|
38
|
+
1. Confirm the affected routes and templates, then run `npx hippocampus doctor` if route availability is part of the change.
|
|
39
|
+
2. Review the changed pages or templates for heading order, labels, link text, focus flow, keyboard reachability, error-state clarity, and NHS component usage.
|
|
40
|
+
3. Where runtime inspection is available, note what was checked manually. Where it is not, be explicit that the review is code- and structure-based.
|
|
41
|
+
4. Write findings to `artefacts/accessibility/<YYYY-MM-DD>-<topic>.md` with sections for scope, blockers, improvements, unanswered questions, and routes reviewed.
|
|
42
|
+
5. Link to any matching screenshot pack or delivery summary when it helps explain the issue.
|
|
43
|
+
|
|
44
|
+
## Guardrails
|
|
45
|
+
- Do not claim an automated audit ran unless it actually did.
|
|
46
|
+
- Separate blockers from improvements.
|
|
47
|
+
- Cite the route, template, or component involved in every important finding.
|
|
48
|
+
|
|
49
|
+
## Finish
|
|
50
|
+
- Run `npx hippocampus doctor`.
|
|
51
|
+
- Report the accessibility-note path, routes reviewed, blockers, improvements, and any manual follow-up still needed.
|
|
52
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: record-design-decision
|
|
3
|
+
title: Record design decision
|
|
4
|
+
purpose: Turn agreed design actions and the options weighed against them into source records.
|
|
5
|
+
owners:
|
|
6
|
+
- ingestion-curator
|
|
7
|
+
- knowledge-builder
|
|
8
|
+
reads:
|
|
9
|
+
- node_modules/@hippo-digital/hippocampus/docs/design-actions-and-decisions.md
|
|
10
|
+
- node_modules/@hippo-digital/hippocampus/docs/source-model.md
|
|
11
|
+
- hippocampus/templates/ncrs-insight-design-action-tracker.xlsx
|
|
12
|
+
edits:
|
|
13
|
+
- hippocampus/source/design-actions.json
|
|
14
|
+
- hippocampus/source/decisions.json
|
|
15
|
+
- hippocampus/source/relationships.json
|
|
16
|
+
runs:
|
|
17
|
+
- npx hippocampus import design-actions -- --workbook [path] --dry-run
|
|
18
|
+
- npx hippocampus import design-actions -- --workbook [path]
|
|
19
|
+
- npx hippocampus validate
|
|
20
|
+
outputs:
|
|
21
|
+
- Design actions linked to the insights that prompted them
|
|
22
|
+
- Decisions recording every option weighed, and which one was accepted
|
|
23
|
+
guardrails:
|
|
24
|
+
- Write a design action once and list every insight ID against it.
|
|
25
|
+
- Record rejected options, not only the accepted one.
|
|
26
|
+
- Do not invent options or decisions the team has not agreed.
|
|
27
|
+
acceptance:
|
|
28
|
+
- Every design action links to at least one existing insight.
|
|
29
|
+
- At most one accepted decision per design action.
|
|
30
|
+
- npx hippocampus validate passes.
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
# Record design decision
|
|
34
|
+
|
|
35
|
+
## Use when
|
|
36
|
+
- The team has agreed design actions from a round's insights.
|
|
37
|
+
- Options have been weighed against an action and one has been chosen.
|
|
38
|
+
|
|
39
|
+
## Workflow
|
|
40
|
+
1. Take a copy of `hippocampus/templates/ncrs-insight-design-action-tracker.xlsx` for the round.
|
|
41
|
+
2. Fill the Design Actions sheet: one row per direction, listing the insight IDs that prompted it. An action is an open brief, not a solution.
|
|
42
|
+
3. Fill the Decisions sheet: one row per option, all `proposed` while the team decides.
|
|
43
|
+
4. When the team decides, set one option to `accepted` and the rest to `rejected`, and write the `consequence` of the accepted one.
|
|
44
|
+
5. Dry-run the import and fix anything it names.
|
|
45
|
+
6. Import, then run `npx hippocampus validate`.
|
|
46
|
+
|
|
47
|
+
## Guardrails
|
|
48
|
+
- An action answered by eleven insights is one row with eleven insight IDs, never eleven rows.
|
|
49
|
+
- Rejected options are the point. Record them.
|
|
50
|
+
- Do not invent options or decisions the team has not agreed. An empty Decisions sheet is a truthful record of a decision not yet made.
|
|
51
|
+
|
|
52
|
+
## Finish
|
|
53
|
+
- Report the actions and decisions imported, which option was accepted for each action, and any action still carrying only proposed options.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: review-research-import-draft
|
|
3
|
+
title: Review research import draft
|
|
4
|
+
purpose: Assess whether a research draft is ready for human promotion.
|
|
5
|
+
owners:
|
|
6
|
+
- ingestion-curator
|
|
7
|
+
- workflow-orchestrator
|
|
8
|
+
reads:
|
|
9
|
+
- node_modules/@hippo-digital/hippocampus/docs/research-knowledge-graph.md
|
|
10
|
+
- node_modules/@hippo-digital/hippocampus/docs/source-model.md
|
|
11
|
+
- hippocampus/imports/research/[draft-id].review.md
|
|
12
|
+
- hippocampus/imports/research/[draft-id].json
|
|
13
|
+
edits:
|
|
14
|
+
- none by default
|
|
15
|
+
runs:
|
|
16
|
+
- npx hippocampus promote research -- --draft hippocampus/imports/research/[draft-id].json --dry-run
|
|
17
|
+
outputs:
|
|
18
|
+
- Promotion-readiness review with blockers and suggested fixes
|
|
19
|
+
- Dry-run result
|
|
20
|
+
guardrails:
|
|
21
|
+
- Do not promote the draft.
|
|
22
|
+
- Do not edit the draft unless the user explicitly asks for fixes.
|
|
23
|
+
acceptance:
|
|
24
|
+
- Unsupported claims, weak insights, and vague actions are called out.
|
|
25
|
+
- No promotion occurs automatically.
|
|
26
|
+
- The dry-run result is reported.
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# Review research import draft
|
|
30
|
+
|
|
31
|
+
## Use when
|
|
32
|
+
- A research draft exists and the team needs a promotion-readiness review before touching canonical source.
|
|
33
|
+
|
|
34
|
+
## Workflow
|
|
35
|
+
1. Run the dry-run promotion command first.
|
|
36
|
+
2. Check whether participants are real, insights are actual findings, actions are concrete, relationship endpoints exist, confidence levels are credible, and every structured item is supported by extracted text.
|
|
37
|
+
3. Check for duplicate or conflicting canonical IDs before promotion.
|
|
38
|
+
|
|
39
|
+
## Guardrails
|
|
40
|
+
- Do not promote the draft.
|
|
41
|
+
- Do not edit the draft unless the user explicitly asks for fixes.
|
|
42
|
+
|
|
43
|
+
## Finish
|
|
44
|
+
- Report promotion blockers, unsupported claims, weak insights or vague actions, relationship issues, suggested edits, and the dry-run result.
|
|
45
|
+
|