recallium 1.2.6 → 2.0.8
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/.claude-plugin/plugin.json +20 -0
- package/LICENSE +56 -0
- package/README.md +36 -52
- package/bin/manifest.json +8 -0
- package/bin/opencode-plugin-manifest.json +8 -0
- package/bin/recallium-hooks.cjs +111 -0
- package/bin/recallium-opencode-plugin.cjs +1 -0
- package/bin/skills/antigravity/capture/SKILL.md +61 -0
- package/bin/skills/antigravity/curate/SKILL.md +64 -0
- package/bin/skills/antigravity/decide/SKILL.md +62 -0
- package/bin/skills/antigravity/design/SKILL.md +61 -0
- package/bin/skills/antigravity/finish/SKILL.md +82 -0
- package/bin/skills/antigravity/handoff/SKILL.md +63 -0
- package/bin/skills/antigravity/investigate/SKILL.md +84 -0
- package/bin/skills/antigravity/project/SKILL.md +60 -0
- package/bin/skills/antigravity/recall/SKILL.md +107 -0
- package/bin/skills/antigravity/recallium-guidance/SKILL.md +141 -0
- package/bin/skills/antigravity/recallium-guidance/reference.md +117 -0
- package/bin/skills/antigravity/recallium-tools/SKILL.md +64 -0
- package/bin/skills/antigravity/resume/SKILL.md +64 -0
- package/bin/skills/antigravity/rule/SKILL.md +64 -0
- package/bin/skills/antigravity/start-work/SKILL.md +78 -0
- package/bin/skills/antigravity/team/SKILL.md +57 -0
- package/bin/skills/antigravity/verdict/SKILL.md +63 -0
- package/bin/skills/claude-code/capture/SKILL.md +61 -0
- package/bin/skills/claude-code/curate/SKILL.md +64 -0
- package/bin/skills/claude-code/decide/SKILL.md +62 -0
- package/bin/skills/claude-code/design/SKILL.md +61 -0
- package/bin/skills/claude-code/finish/SKILL.md +82 -0
- package/bin/skills/claude-code/handoff/SKILL.md +63 -0
- package/bin/skills/claude-code/investigate/SKILL.md +84 -0
- package/bin/skills/claude-code/project/SKILL.md +60 -0
- package/bin/skills/claude-code/recall/SKILL.md +107 -0
- package/bin/skills/claude-code/recallium-guidance/SKILL.md +141 -0
- package/bin/skills/claude-code/recallium-guidance/reference.md +117 -0
- package/bin/skills/claude-code/recallium-tools/SKILL.md +64 -0
- package/bin/skills/claude-code/resume/SKILL.md +64 -0
- package/bin/skills/claude-code/rule/SKILL.md +64 -0
- package/bin/skills/claude-code/start-work/SKILL.md +78 -0
- package/bin/skills/claude-code/team/SKILL.md +57 -0
- package/bin/skills/claude-code/verdict/SKILL.md +63 -0
- package/bin/skills/codex/capture/SKILL.md +61 -0
- package/bin/skills/codex/curate/SKILL.md +64 -0
- package/bin/skills/codex/decide/SKILL.md +62 -0
- package/bin/skills/codex/design/SKILL.md +61 -0
- package/bin/skills/codex/finish/SKILL.md +82 -0
- package/bin/skills/codex/handoff/SKILL.md +63 -0
- package/bin/skills/codex/investigate/SKILL.md +84 -0
- package/bin/skills/codex/project/SKILL.md +60 -0
- package/bin/skills/codex/recall/SKILL.md +107 -0
- package/bin/skills/codex/recallium-guidance/SKILL.md +141 -0
- package/bin/skills/codex/recallium-guidance/reference.md +117 -0
- package/bin/skills/codex/recallium-tools/SKILL.md +64 -0
- package/bin/skills/codex/resume/SKILL.md +64 -0
- package/bin/skills/codex/rule/SKILL.md +64 -0
- package/bin/skills/codex/start-work/SKILL.md +78 -0
- package/bin/skills/codex/team/SKILL.md +57 -0
- package/bin/skills/codex/verdict/SKILL.md +63 -0
- package/bin/skills/cursor/capture/SKILL.md +61 -0
- package/bin/skills/cursor/curate/SKILL.md +64 -0
- package/bin/skills/cursor/decide/SKILL.md +62 -0
- package/bin/skills/cursor/design/SKILL.md +61 -0
- package/bin/skills/cursor/finish/SKILL.md +82 -0
- package/bin/skills/cursor/handoff/SKILL.md +63 -0
- package/bin/skills/cursor/investigate/SKILL.md +84 -0
- package/bin/skills/cursor/project/SKILL.md +60 -0
- package/bin/skills/cursor/recall/SKILL.md +107 -0
- package/bin/skills/cursor/recallium-guidance/SKILL.md +141 -0
- package/bin/skills/cursor/recallium-guidance/reference.md +117 -0
- package/bin/skills/cursor/recallium-tools/SKILL.md +64 -0
- package/bin/skills/cursor/resume/SKILL.md +64 -0
- package/bin/skills/cursor/rule/SKILL.md +64 -0
- package/bin/skills/cursor/start-work/SKILL.md +78 -0
- package/bin/skills/cursor/team/SKILL.md +57 -0
- package/bin/skills/cursor/verdict/SKILL.md +63 -0
- package/commands/doctor.md +15 -0
- package/commands/login.md +17 -0
- package/commands/status.md +11 -0
- package/hooks/hooks.json +88 -0
- package/package.json +26 -29
- package/plugin-manifest.json +128 -0
- package/skills/capture/SKILL.md +61 -0
- package/skills/curate/SKILL.md +64 -0
- package/skills/decide/SKILL.md +62 -0
- package/skills/design/SKILL.md +61 -0
- package/skills/finish/SKILL.md +82 -0
- package/skills/handoff/SKILL.md +63 -0
- package/skills/investigate/SKILL.md +84 -0
- package/skills/project/SKILL.md +60 -0
- package/skills/recall/SKILL.md +107 -0
- package/skills/recallium-guidance/SKILL.md +141 -0
- package/skills/recallium-guidance/reference.md +117 -0
- package/skills/recallium-tools/SKILL.md +64 -0
- package/skills/resume/SKILL.md +64 -0
- package/skills/rule/SKILL.md +64 -0
- package/skills/start-work/SKILL.md +78 -0
- package/skills/team/SKILL.md +57 -0
- package/skills/verdict/SKILL.md +63 -0
- package/bin/recallium +0 -2
- package/src/index.js +0 -179
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: team
|
|
3
|
+
description: Answers questions about the people and the shared work on an enterprise Recallium deployment - who is on which team, what the team has been doing across the projects it owns, what is pending there, and which teammate wrote what. Use when the user asks "who's on my team", "what has the team been working on", "what's pending across our projects", "what did a teammate do last week", or before filtering a search by author; on a community deployment these tools are absent by design, not broken.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Team
|
|
7
|
+
|
|
8
|
+
## Quick start
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
list_team_members() # every team you belong to; team_name="core" narrows
|
|
12
|
+
team_recap(days_back=7) # all projects your team owns; project_name="my-api" narrows
|
|
13
|
+
team_recap(project_name="my-api", include_tasks=True)
|
|
14
|
+
search_memories(query="...", project_name="__all__", author_email="<exact email from list_team_members>")
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Why
|
|
18
|
+
|
|
19
|
+
Team tools are the only view that crosses projects and people. `team_recap`
|
|
20
|
+
aggregates recent memories and pending tasks over the projects the team OWNS
|
|
21
|
+
and carries no per-user working state; `session_recap` is the personal view.
|
|
22
|
+
The author filter on `search_memories` is an exact match, so the email must
|
|
23
|
+
come from `list_team_members`, never from recollection.
|
|
24
|
+
|
|
25
|
+
## Workflow
|
|
26
|
+
|
|
27
|
+
1. **Gate:** enterprise. If the tool is not in the tool list, say so and fall
|
|
28
|
+
back to `session_recap` / `search_memories`; do not report it as broken.
|
|
29
|
+
2. "Who is on the team" -> `list_team_members`. Takes no `project_name`;
|
|
30
|
+
`team_name` is a case-insensitive substring filter.
|
|
31
|
+
3. "What has the team done" -> `team_recap`, 1-30 days back; narrow with
|
|
32
|
+
`project_name` when one project is meant.
|
|
33
|
+
4. "What did X do" -> `list_team_members` for the exact email, then
|
|
34
|
+
`search_memories(author_email=..., project_name="__all__")`, because a
|
|
35
|
+
teammate's memories span projects.
|
|
36
|
+
5. Patterns rather than activity ("what keeps going wrong across the team")
|
|
37
|
+
-> `get_insights` (see `resume`).
|
|
38
|
+
6. **Gate:** report; store nothing. Someone's activity is not a new finding.
|
|
39
|
+
|
|
40
|
+
## Anti-patterns
|
|
41
|
+
|
|
42
|
+
WRONG: guessing a teammate's email for `author_email`.
|
|
43
|
+
RIGHT: `list_team_members` first; the filter is exact.
|
|
44
|
+
|
|
45
|
+
WRONG: `team_recap` for "where did I leave off".
|
|
46
|
+
RIGHT: `resume`; the team view has no working state.
|
|
47
|
+
|
|
48
|
+
## Checklist
|
|
49
|
+
|
|
50
|
+
- [ ] Enterprise confirmed, or the fallback used
|
|
51
|
+
- [ ] Right scope: every team project, or one
|
|
52
|
+
- [ ] Author email taken from the tool, not recalled
|
|
53
|
+
|
|
54
|
+
## See also
|
|
55
|
+
|
|
56
|
+
`resume` (the personal view), `recall` (search by author), `project` (links
|
|
57
|
+
between projects), `recallium-tools` (edition gates).
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verdict
|
|
3
|
+
description: Records one agent's judgment of another agent's output - a design, decision, answer, or memory - as a Recallium verdict on that target, so a parent agent can trust it without re-verifying. Use when you are acting as reviewer, critic, or judge of a specific memory and have reached a position on it; a verdict always names its target and is never stored as progress or a note.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Verdict
|
|
8
|
+
|
|
9
|
+
## Quick start
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
expand_memories(memory_ids=["<target-uuid>"])
|
|
13
|
+
store_verdict(target_memory_id="<target-uuid>",
|
|
14
|
+
decision="accept", # accept | refute | revise
|
|
15
|
+
confidence=0.8, # your certainty IN THIS JUDGMENT
|
|
16
|
+
reasoning="<self-contained evidence>",
|
|
17
|
+
project_name="my-api", workstream_slug="auth-hardening")
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Why
|
|
21
|
+
|
|
22
|
+
A verdict is the convergence primitive: it is how a subtree of agents collapses
|
|
23
|
+
to one trusted result. A false `accept` propagates unverified up the tree and
|
|
24
|
+
poisons every ancestor that trusts it; a false `refute` costs one more round.
|
|
25
|
+
So when in doubt, prefer a low-confidence `refute`. `confidence` is your
|
|
26
|
+
certainty in the judgment, not the quality of the target: a confident refute is
|
|
27
|
+
confidence 0.9 with decision `refute`.
|
|
28
|
+
|
|
29
|
+
## Workflow
|
|
30
|
+
|
|
31
|
+
1. **Gate:** `target_memory_id` is required and must be a real memory you can
|
|
32
|
+
see. Expand it first; judge what it says, not what you remember of it.
|
|
33
|
+
2. Reach a position: `accept` (stands, build on it), `refute` (wrong or
|
|
34
|
+
unsound, do not build on it), `revise` (close; the changes are named in
|
|
35
|
+
your reasoning).
|
|
36
|
+
3. Put the full evidence in `reasoning`. A parent may act on it without
|
|
37
|
+
re-checking, so it must be self-contained and must not present unverified
|
|
38
|
+
claims as established.
|
|
39
|
+
4. One verdict per (you, target). A changed position is a new verdict that
|
|
40
|
+
supersedes your earlier reasoning; never edit the old one.
|
|
41
|
+
5. Anchor it to the same `workstream_slug` as the target.
|
|
42
|
+
|
|
43
|
+
## Anti-patterns
|
|
44
|
+
|
|
45
|
+
WRONG: a review stored as `progress` or `note`.
|
|
46
|
+
RIGHT: `store_verdict`; progress is a state timeline, not a judgment.
|
|
47
|
+
|
|
48
|
+
WRONG: a verdict with no target, "the approach is fine".
|
|
49
|
+
RIGHT: a verdict OF a specific memory UUID.
|
|
50
|
+
|
|
51
|
+
WRONG: `accept` at confidence 0.5 because nothing looked wrong.
|
|
52
|
+
RIGHT: if you are not sure, a low-confidence `refute` and the reason.
|
|
53
|
+
|
|
54
|
+
## Checklist
|
|
55
|
+
|
|
56
|
+
- [ ] Target UUID real and expanded
|
|
57
|
+
- [ ] Decision and confidence set independently
|
|
58
|
+
- [ ] Reasoning self-contained; no unverified claims as fact
|
|
59
|
+
- [ ] Anchored to the target's workstream
|
|
60
|
+
|
|
61
|
+
## See also
|
|
62
|
+
|
|
63
|
+
`design` (what usually gets judged), `decide`, `capture`.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: capture
|
|
3
|
+
description: Stores one durable why in Recallium - a learning from research or from a user correction, a constraint you hit, an experiment's numbers, a reusable snippet or runbook - behind the value gate, with its files and edges. Use when you found something out that a teammate could not reconstruct from the code and git log alone, or the user corrected you on how the system works; and use it to decide NOT to store when nothing new is being added - zero writes in a turn is valid.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Capture
|
|
7
|
+
|
|
8
|
+
## Quick start
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
store_memory(content="## Learned: <title>\n**Claim:** ...\n**Evidence:** ...\n**Consequence:** what to do differently",
|
|
12
|
+
project_name="my-api", workstream_slug="auth-hardening",
|
|
13
|
+
memory_type="learning", related_files=["src/auth/token-manager.ts"],
|
|
14
|
+
relationships=[{"target": "<design-uuid it bears on>", "type": "related"}])
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Why
|
|
18
|
+
|
|
19
|
+
Two questions get confused, so separate them. **Cadence** asks when a real
|
|
20
|
+
finding is written: one memory per finding as it lands, never batched. **The
|
|
21
|
+
value gate** asks whether there is a finding at all: what NEW durable
|
|
22
|
+
information does this add beyond the workstream already loaded? If none, skip.
|
|
23
|
+
A second copy of the same state competes with the first in every future search,
|
|
24
|
+
so storing it twice makes the original harder to find.
|
|
25
|
+
|
|
26
|
+
## Workflow
|
|
27
|
+
|
|
28
|
+
1. Gate it. Restated state, anything reproducible from a command, a paraphrase
|
|
29
|
+
of the diff, what you are about to do next: not a memory. The last one is
|
|
30
|
+
`set_working_state`.
|
|
31
|
+
2. Type, first match wins: chose X over Y -> `decision` (`decide`) | imposed
|
|
32
|
+
bound -> `constraint` | ran a method, have numbers -> `experiment` | defect
|
|
33
|
+
-> `bugfix` (`investigate`) | architecture -> `design` (`design`) | reusable
|
|
34
|
+
code or command -> `code-snippet` | how to operate or roll back -> `runbook`
|
|
35
|
+
| durable claim about behaviour, incl. a user correction -> `learning` |
|
|
36
|
+
else -> `note`. `task`, `rule`, `verdict` have their own tools.
|
|
37
|
+
3. **Gate:** `workstream_slug` is mandatory; none yet -> `start-work`.
|
|
38
|
+
4. Search the workstream for what this builds on, replaces, bounds or
|
|
39
|
+
contradicts; attach those UUIDs. `supersedes` means the target is now WRONG.
|
|
40
|
+
`expand_memories` a hit before you cite it: an edge to a memory you have
|
|
41
|
+
not read is a guess.
|
|
42
|
+
5. `related_files`: every file read or written. In a chat with no repository,
|
|
43
|
+
leave it empty; never invent paths.
|
|
44
|
+
6. Read the store response: "unanchored" -> repair now with `modify_memory`;
|
|
45
|
+
a suggested file or edge -> take it.
|
|
46
|
+
7. `importance_score` 0.9 / 0.7 / 0.5 / 0.3, auto-scored if omitted.
|
|
47
|
+
|
|
48
|
+
## Anti-patterns
|
|
49
|
+
|
|
50
|
+
WRONG: a code-related memory with empty `related_files`.
|
|
51
|
+
RIGHT: every file touched, so `search_memories(file_path=...)` finds it later.
|
|
52
|
+
|
|
53
|
+
## Checklist
|
|
54
|
+
|
|
55
|
+
- [ ] Value gate applied; could this have been zero writes?
|
|
56
|
+
- [ ] Canonical type, slug, files, at least one edge
|
|
57
|
+
- [ ] Store response read; anchor and suggestions acted on
|
|
58
|
+
|
|
59
|
+
## See also
|
|
60
|
+
|
|
61
|
+
`investigate`, `finish` (the checkpoint half), `decide`, `design`, `curate`, `rule`.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: curate
|
|
3
|
+
description: Corrects, retires, or closes what Recallium already holds - a wrong memory superseded, a duplicate or mistaken memory inactivated, a stale task inactivated, a workstream marked shipped or abandoned when the effort ends. Use when the user says "that's wrong", "forget that", "we dropped that approach", when a PR merges or a branch is abandoned, or when a search returns two memories saying the same thing; never delete, and store nothing new unless the correction itself is a finding.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Curate
|
|
7
|
+
|
|
8
|
+
## Quick start
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
expand_memories(memory_ids=["<uuid>"]) # read before touching
|
|
12
|
+
modify_memory(memory_id="<uuid>", action="update", content="...", related_files=[...])
|
|
13
|
+
modify_memory(memory_id="<uuid>", action="inactivate", reason="duplicate of <uuid>")
|
|
14
|
+
modify_memory(memory_id="<workstream-uuid>", action="update", status="shipped") # or "abandoned"
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
A content edit gives the memory a new id; use the id the response names.
|
|
18
|
+
|
|
19
|
+
## Why
|
|
20
|
+
|
|
21
|
+
The value gate has two halves. Storing only new durable information is one; keeping
|
|
22
|
+
what is stored true is the other. A wrong memory that stays visible is worse than
|
|
23
|
+
none: the next agent acts on it. A duplicate competes with the original in every
|
|
24
|
+
future search, so cleanup restores findability the gate was protecting. Nothing is
|
|
25
|
+
ever deleted: `inactivate` keeps the row for undo, `supersedes` keeps the chain,
|
|
26
|
+
and an abandoned workstream is information about a dead end.
|
|
27
|
+
|
|
28
|
+
## Workflow
|
|
29
|
+
|
|
30
|
+
1. `expand_memories` the target first; judge what it says.
|
|
31
|
+
2. Pick the operation by what is wrong:
|
|
32
|
+
- factually wrong, but the shape is right -> `modify_memory(action="update")`
|
|
33
|
+
with new `content`; additive for `tags`, `related_files`, `relationships`.
|
|
34
|
+
- superseded by a better decision, design, learning or runbook -> a NEW
|
|
35
|
+
memory with a `supersedes` edge; the old one drops out of search and
|
|
36
|
+
stays in the chain. **Gate:** never supersede `progress`.
|
|
37
|
+
- duplicate or mistaken -> `modify_memory(action="inactivate", reason=...)`.
|
|
38
|
+
`reason` is required. `reactivate` undoes it.
|
|
39
|
+
- unanchored -> `modify_memory(..., workstream_slug=...)`.
|
|
40
|
+
3. Effort over: `modify_memory(memory_id="<workstream-uuid>", action="update",
|
|
41
|
+
status="shipped")` on merge, `"abandoned"` on a dead end. Close its tasks:
|
|
42
|
+
`update_task(status="completed")` for done, `update_task(status="inactive",
|
|
43
|
+
reason=...)` for stale or duplicate; `task_id` takes a list.
|
|
44
|
+
4. A user correction is a `rule` (preference) or a `learning` (fact); either
|
|
45
|
+
may also mean a wrong memory to fix here.
|
|
46
|
+
|
|
47
|
+
## Anti-patterns
|
|
48
|
+
|
|
49
|
+
WRONG: editing a decision in place when the choice changed.
|
|
50
|
+
RIGHT: a new decision with `supersedes`; the chain is the history.
|
|
51
|
+
|
|
52
|
+
WRONG: leaving a shipped effort `active`.
|
|
53
|
+
RIGHT: status `shipped` at merge; the roster stays honest.
|
|
54
|
+
|
|
55
|
+
## Checklist
|
|
56
|
+
|
|
57
|
+
- [ ] Target expanded before any change
|
|
58
|
+
- [ ] Right operation: update, supersede, inactivate, re-anchor
|
|
59
|
+
- [ ] Nothing deleted; every inactivation has a reason
|
|
60
|
+
- [ ] Workstream status and its tasks closed when the effort ended
|
|
61
|
+
|
|
62
|
+
## See also
|
|
63
|
+
|
|
64
|
+
`capture`, `decide`, `finish`, `rule`, `recall`.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: decide
|
|
3
|
+
description: "Compare implementation alternatives and recommend a choice with its rationale. Use when the user asks which option to choose, including a small or previously settled choice; the workflow determines whether new reasoning or storage is needed. Use design to form an architecture or approach, and recall to retrieve an earlier decision without reconsidering it."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Decide
|
|
7
|
+
|
|
8
|
+
## Quick start
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
r = start_thinking(goal="Choose the auth strategy for the mobile app",
|
|
12
|
+
project_name="my-api", workstream_slug="auth-hardening")
|
|
13
|
+
add_thought(sequence_id=r.sequence_id, thought="...", thought_type="hypothesis")
|
|
14
|
+
add_thought(sequence_id=r.sequence_id, thought="...", thought_type="reasoning")
|
|
15
|
+
add_thought(sequence_id=r.sequence_id, thought="...", thought_type="conclusion")
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Why
|
|
19
|
+
|
|
20
|
+
A `conclusion` thought auto-stores a `decision` memory, born anchored to the
|
|
21
|
+
workstream passed at `start_thinking`, so the rationale is captured with the
|
|
22
|
+
choice instead of reconstructed from the diff later. The sequence is the audit
|
|
23
|
+
trail: the rejected options and why they lost are the reusable half. A sequence
|
|
24
|
+
left open stores nothing; the Stop hook will say so.
|
|
25
|
+
|
|
26
|
+
## Workflow
|
|
27
|
+
|
|
28
|
+
1. **Gate:** is there a real alternative? No trade-off -> not a decision; use
|
|
29
|
+
`capture` with the right type, or store nothing.
|
|
30
|
+
2. Retrieve prior decisions and constraints. If an applicable decision already settles the request, explain it and stop without starting a sequence or storing a duplicate. A constraint may have removed an option.
|
|
31
|
+
For a routine choice with no durable project consequence, answer with the relevant trade-off and store nothing. Use a thinking sequence for a new consequential choice.
|
|
32
|
+
3. `start_thinking(goal=..., project_name=..., workstream_slug=...)`.
|
|
33
|
+
**Gate:** pass `workstream_slug` here; the auto-stored decision inherits
|
|
34
|
+
it. The server warns if you omit it; pass it now rather than backfilling.
|
|
35
|
+
4. `add_thought` per step: `observation`, `hypothesis` (the options),
|
|
36
|
+
`question`, `reasoning` (what rules options out), `analysis`, `branch`,
|
|
37
|
+
`conclusion` (closes and stores; nothing can be added afterwards).
|
|
38
|
+
5. The conclusion states Context / Options / Chosen and why / Consequences.
|
|
39
|
+
6. Take its UUID. Edge it to the constraint that bounded it; put it in the
|
|
40
|
+
`Recallium-Memory:` trailer of the commit that implements it (`finish`).
|
|
41
|
+
7. A later, better choice does not edit this one: a new `decision` with
|
|
42
|
+
`supersedes` pointing at it.
|
|
43
|
+
|
|
44
|
+
## Anti-patterns
|
|
45
|
+
|
|
46
|
+
WRONG: `start_thinking` without `workstream_slug`, then backfilling.
|
|
47
|
+
RIGHT: pass the slug at `start_thinking`; the conclusion is born anchored.
|
|
48
|
+
|
|
49
|
+
WRONG: recording only the option you picked.
|
|
50
|
+
RIGHT: the rejected options and why they lost.
|
|
51
|
+
|
|
52
|
+
## Checklist
|
|
53
|
+
|
|
54
|
+
- [ ] A real alternative existed
|
|
55
|
+
- [ ] Prior decisions and constraints searched
|
|
56
|
+
- [ ] `workstream_slug` passed at `start_thinking`
|
|
57
|
+
- [ ] Conclusion names options, choice, rationale, consequences
|
|
58
|
+
- [ ] UUID captured for edges and the commit trailer
|
|
59
|
+
|
|
60
|
+
## See also
|
|
61
|
+
|
|
62
|
+
`recall`, `design`, `capture`, `finish`, `verdict`.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design
|
|
3
|
+
description: "Form or review an architecture, API, data model, module structure, or implementation approach, using the project's recorded constraints. Use when asked to propose how a system should be organized or built, even before a plan exists. Use decide for choosing between specific alternatives; store a design only when a new durable proposal has formed."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Design
|
|
7
|
+
|
|
8
|
+
## Quick start
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
store_memory(content="## Design: <title>\n**Problem:** ...\n**Shape:** ...\n**Why this shape:** ...\n**Files it will touch:** ...\n**Open questions:** ...",
|
|
12
|
+
project_name="my-api", workstream_slug="auth-hardening",
|
|
13
|
+
memory_type="design",
|
|
14
|
+
related_files=["src/auth/token.ts", "src/auth/refresh.ts"],
|
|
15
|
+
relationships=[{"target": "<constraint-uuid>", "type": "related"},
|
|
16
|
+
{"target": "<old-design-uuid>", "type": "supersedes"}])
|
|
17
|
+
search_memories(query="<design title>", project_name="my-api", memory_type="verdict")
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Why
|
|
21
|
+
|
|
22
|
+
A design stored before the edits, with the files about to change as
|
|
23
|
+
`related_files`, preserves the rationale the edits will implement. Every file in
|
|
24
|
+
that list becomes a door back to the design: the next agent to open one meets
|
|
25
|
+
the plan before diverging from it. A `.md` brief cannot do this, and the hook
|
|
26
|
+
layer nudges you the moment you write one.
|
|
27
|
+
|
|
28
|
+
## Workflow
|
|
29
|
+
|
|
30
|
+
1. Form or review the requested design: identify the requirements and constraints, then explain the proposed responsibilities, interfaces, and trade-offs. A design request can begin before any plan exists.
|
|
31
|
+
**Storage gate:** record the shape chosen and why only when it adds a new durable proposal beyond the loaded workstream; a restatement or description of the diff stores nothing.
|
|
32
|
+
2. `recall` first: an earlier design or decision may cover this, and a
|
|
33
|
+
`constraint` may bound it. `expand_memories` them and read them before
|
|
34
|
+
reading the code they describe: a summary line is not the memory. Keep
|
|
35
|
+
their UUIDs.
|
|
36
|
+
3. Store one `design` with `workstream_slug`, `related_files` (every file it
|
|
37
|
+
will touch, not only those touched so far) and edges: `related` to what it
|
|
38
|
+
builds on and to the constraint that bounds it, `supersedes` only if the
|
|
39
|
+
earlier design is now wrong.
|
|
40
|
+
4. Capture the full UUID; cite it in `create_task` and the commit trailer.
|
|
41
|
+
5. Briefing a subagent? Pass that full UUID and the slug in its prompt and tell
|
|
42
|
+
it to `expand_memories` the UUID first. Never a file.
|
|
43
|
+
6. Reviewers judge it with `store_verdict` on the design's UUID (`verdict`).
|
|
44
|
+
Before building on a reviewed design, read its verdicts: a `refute` or
|
|
45
|
+
`revise` means a new `design` with `supersedes`, not an edit in place.
|
|
46
|
+
|
|
47
|
+
## Anti-patterns
|
|
48
|
+
|
|
49
|
+
WRONG: `Write("DESIGN.md", ...)` then start editing.
|
|
50
|
+
RIGHT: `store_memory(memory_type="design", ...)`; the memory is the artifact.
|
|
51
|
+
|
|
52
|
+
## Checklist
|
|
53
|
+
|
|
54
|
+
- [ ] Real design, not a diff summary
|
|
55
|
+
- [ ] Prior designs, decisions, constraints searched, read in full, and edged
|
|
56
|
+
- [ ] Files it will touch listed; full UUID captured
|
|
57
|
+
- [ ] Verdicts read before building on a reviewed design
|
|
58
|
+
|
|
59
|
+
## See also
|
|
60
|
+
|
|
61
|
+
`decide`, `verdict`, `start-work`, `capture`, `curate`, `handoff`.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: finish
|
|
3
|
+
description: "Assess or close a piece of work when the user requests completion, a tracked task reaches its endpoint, or a commit needs its checkpoint and memory links. Verify the actual state before recording closure. Completing a routine edit or running a check alone does not trigger this workflow. Already-closed work needs no duplicate checkpoint."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Finish
|
|
7
|
+
|
|
8
|
+
## Quick start
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
git commit -F <body-file> --trailer "Recallium-Memory: <uuid>, <uuid>" # why-UUIDs only
|
|
12
|
+
|
|
13
|
+
# the commit CLOSES a tracked task → the task close is the checkpoint, no progress:
|
|
14
|
+
update_task(task_id="<uuid>", memory_ids=["<why-uuid>", ...], status="completed")
|
|
15
|
+
|
|
16
|
+
# no task closes → ONE progress carries the SHA back:
|
|
17
|
+
store_memory(content="## Landed: <title>\n**SHA:** <full>\n**What it achieved:** ...\n**Verified by:** ...\n**Next:** ...",
|
|
18
|
+
project_name="my-api", workstream_slug="auth-hardening",
|
|
19
|
+
memory_type="progress", tags=["commit:e436e0a4"],
|
|
20
|
+
related_files=["<files in the commit>"],
|
|
21
|
+
relationships=[{"target": "<why-uuid>", "type": "related"}])
|
|
22
|
+
|
|
23
|
+
set_working_state(project_name="my-api", content="<only what is still open — never the checkpoint>")
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Why
|
|
27
|
+
|
|
28
|
+
`git log` records what changed; Recallium records why. The trailer carries the
|
|
29
|
+
why-UUIDs forward from the commit; the `commit:`-tagged progress carries the SHA
|
|
30
|
+
back, so a blame line reaches the decision and a decision reaches the code.
|
|
31
|
+
Progress is a timeline, not a chain: one memory per state worth resuming from,
|
|
32
|
+
never superseded, never restated. The task link, not a tag, anchors task
|
|
33
|
+
progress — and when a commit closes a task, that link IS the checkpoint:
|
|
34
|
+
a progress memory on top of it says the same thing twice. Working state is
|
|
35
|
+
not a checkpoint either: it holds what is left, never what was just stored.
|
|
36
|
+
|
|
37
|
+
## Workflow
|
|
38
|
+
|
|
39
|
+
1. Verify the requested completion against the code, checks, and recorded scope. If work remains, report it as incomplete; do not mark it shipped or infer abandonment from a failed completion check. Use abandoned only when the user explicitly ends or drops the effort. Already-closed work needs no duplicate checkpoint. If an approval blocks a status change, report the actual unchanged state.
|
|
40
|
+
2. Before committing, the why-memories must exist (see `capture`, `decide`,
|
|
41
|
+
`design`). Missing one? Store it now. Collect the UUIDs.
|
|
42
|
+
3. `git commit --trailer "Recallium-Memory: ..."`. **Gate:** use `--trailer`,
|
|
43
|
+
not hand-typing; one blank line inside the trailer block demotes it to body
|
|
44
|
+
text. Verify with `git interpret-trailers --parse`. Trivial change? Say so
|
|
45
|
+
in the body and skip the trailer. The `prepare-commit-msg` hook from
|
|
46
|
+
`recallium --install-git-hook` self-heals an orphaned trailer where installed.
|
|
47
|
+
4. **Gate — one checkpoint, not two.** Does this commit close a tracked
|
|
48
|
+
task? Then close it in one call, `update_task(task_id=..., memory_ids=[the
|
|
49
|
+
why-UUIDs], status="completed")` (`task_id` takes one UUID or a list), and
|
|
50
|
+
store NO progress: the completed task, linked to the why-memories, is the
|
|
51
|
+
checkpoint. No task closes? Then ONE `progress`: full SHA in content, tag
|
|
52
|
+
`commit:<short-sha>`, `related_files` = `git diff-tree --no-commit-id
|
|
53
|
+
--name-only -r <sha>`, `related` edges to the trailer UUIDs; verification
|
|
54
|
+
evidence lives here. Not a commit? Still one progress if the state changed.
|
|
55
|
+
5. `set_working_state` with ONLY what is left over after that last store or
|
|
56
|
+
task close — what is mid-way, what is next, which writes are pending or
|
|
57
|
+
unknown. Never restate the checkpoint (its SHA, files or evidence): the
|
|
58
|
+
working state is a resume note, not a second copy of the memory.
|
|
59
|
+
|
|
60
|
+
## Anti-patterns
|
|
61
|
+
|
|
62
|
+
WRONG: UUIDs mentioned in the progress memory's prose.
|
|
63
|
+
RIGHT: real `relationships` edges; prose is not traversable.
|
|
64
|
+
|
|
65
|
+
WRONG: `supersedes` on an older progress memory.
|
|
66
|
+
RIGHT: never; an old checkpoint is history, not an error.
|
|
67
|
+
|
|
68
|
+
WRONG: a task closed with `memory_ids` AND a `progress` for the same commit.
|
|
69
|
+
RIGHT: one checkpoint — the task close when a task closes, the progress otherwise.
|
|
70
|
+
|
|
71
|
+
WRONG: `set_working_state` repeating the SHAs and evidence just stored.
|
|
72
|
+
RIGHT: the working state names only what is still open.
|
|
73
|
+
|
|
74
|
+
## Checklist
|
|
75
|
+
|
|
76
|
+
- [ ] Why-memories exist; trailer parse-verified
|
|
77
|
+
- [ ] ONE checkpoint: the task closed with `memory_ids` when a task closes, else one progress (full SHA, `commit:` tag, commit's files, edges)
|
|
78
|
+
- [ ] Working state holds only what is left open — not the checkpoint
|
|
79
|
+
|
|
80
|
+
## See also
|
|
81
|
+
|
|
82
|
+
`capture`, `decide`, `design`, `start-work`, `handoff`.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: handoff
|
|
3
|
+
description: "Preserve a continuation point when unfinished work is explicitly paused, parked, or transferred to another session or agent, or when compaction or /clear is imminent. Use working state for the immediate continuation and a memory for a durable brief. Finishing a routine response or updating working state alone does not trigger this workflow."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Handoff
|
|
7
|
+
|
|
8
|
+
## Quick start
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
set_working_state(project_name="my-api",
|
|
12
|
+
content="branch / workstream / in flight / parked / next action / open questions")
|
|
13
|
+
|
|
14
|
+
# Subagent brief: a memory, never a file
|
|
15
|
+
store_memory(memory_type="design", content="<the full brief>",
|
|
16
|
+
project_name="my-api", workstream_slug="auth-hardening",
|
|
17
|
+
related_files=[...])
|
|
18
|
+
# then in the subagent prompt: "expand_memories(['<FULL uuid>']) first"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Why
|
|
22
|
+
|
|
23
|
+
Working state is the note to your next turn: temporary, plaintext, overwritten
|
|
24
|
+
on every call, not searchable and not a memory. A brief is the opposite:
|
|
25
|
+
durable, workstream-anchored, surfaced at session start. A `HANDOFF.md` feels
|
|
26
|
+
faster than an MCP round-trip and is permanently lossy: a repo file is invisible
|
|
27
|
+
to the next session unless someone recalls its path, and the hook layer nudges
|
|
28
|
+
you the moment such a file is written.
|
|
29
|
+
|
|
30
|
+
## Workflow
|
|
31
|
+
|
|
32
|
+
1. Confirm an actual pause, compaction, or transfer of unfinished work. A routine scratch update after an edit uses `set_working_state` directly and does not require this workflow.
|
|
33
|
+
For a handoff, immediate continuation context goes in working state; analysis, design, scope, and exclusions the receiver must act on go in a memory.
|
|
34
|
+
2. `set_working_state(project_name=..., content=...)`. **Gate:** the parameter
|
|
35
|
+
is `content`; the call overwrites, so write the whole note. Write it after
|
|
36
|
+
each step that changes "resume here", before compaction or `/clear`, and at
|
|
37
|
+
session end. The Stop hook asks for it when the context is filling.
|
|
38
|
+
3. Shape: branch, workstream slug, in flight, parked, next action, open
|
|
39
|
+
questions.
|
|
40
|
+
4. For a subagent: `store_memory(memory_type="design", ...)` with the slug and
|
|
41
|
+
`related_files`; capture the FULL UUID. **Gate:** prefixes collide and do
|
|
42
|
+
not survive compaction.
|
|
43
|
+
5. In the subagent's prompt, pass that UUID and the slug, and instruct it to
|
|
44
|
+
`expand_memories` it first. Have it hand results back the same way.
|
|
45
|
+
6. Session end: every memory this session has a slug, files and an edge; every
|
|
46
|
+
commit has its trailer and its checkpoint (a `commit:`-tagged progress, or the task it closed); every worked task
|
|
47
|
+
is linked. Then `session_recap` if the user wants a summary.
|
|
48
|
+
|
|
49
|
+
## Anti-patterns
|
|
50
|
+
|
|
51
|
+
WRONG: `Write("HANDOFF.md", brief)` then `Task(prompt="read HANDOFF.md")`.
|
|
52
|
+
RIGHT: `store_memory(...)` then pass the UUID with "expand_memories it first".
|
|
53
|
+
|
|
54
|
+
## Checklist
|
|
55
|
+
|
|
56
|
+
- [ ] Working state written (branch, slug, in flight, next action)
|
|
57
|
+
- [ ] Brief stored as a memory; no `.md` authored
|
|
58
|
+
- [ ] Full UUID passed with an expand-first instruction
|
|
59
|
+
- [ ] Session-end hygiene check done
|
|
60
|
+
|
|
61
|
+
## See also
|
|
62
|
+
|
|
63
|
+
`resume` (the other end), `finish`, `design`, `capture`.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: investigate
|
|
3
|
+
description: Runs a bug report, failing test, or unexplained behaviour to its root cause with Recallium's trail - searches for a prior fix by symptom and by file, reasons through the cause as a thinking sequence when it is not obvious, and stores the root cause as a bugfix BEFORE the fix is written. Use when the user says "this is broken", "why does this fail", pastes a stack trace or error, or a test goes red — even when the cause looks obvious, invoke this and search for the prior fix first; if the cause is already stored, fix it and store nothing new. Applies to code you wrote this session, uncommitted or not — fresh code is where a standing ruling is most likely to have been missed, and "I know why" is not a reason to skip the search.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Investigate
|
|
7
|
+
|
|
8
|
+
## Quick start
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
search_memories(query="<the symptom in a sentence>", project_name="my-api",
|
|
12
|
+
file_path="%token-manager.ts%") # by symptom AND by file
|
|
13
|
+
r = start_thinking(goal="Why does refresh fail after 24h", project_name="my-api",
|
|
14
|
+
workstream_slug="auth-hardening") # only when the cause is not obvious
|
|
15
|
+
add_thought(sequence_id=r.sequence_id, thought="...", thought_type="conclusion")
|
|
16
|
+
store_memory(memory_type="bugfix", content="## Fixed: <title>\n**Problem:** ...\n**Root cause:** ...\n**Solution:** ...\n**Testing:** ...", ...)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Why
|
|
20
|
+
|
|
21
|
+
Debugging is the most frequent moment a coding agent has, and it is where memory
|
|
22
|
+
pays most: a bug that looks new is often one that was fixed before, in a file a
|
|
23
|
+
teammate touched, for a reason a stored bugfix already names. The root cause is stored before the fix because the fix
|
|
24
|
+
rewrites the evidence: once the code changes, the diagnosis can only be
|
|
25
|
+
reconstructed from the diff, which is the failure this whole system exists to
|
|
26
|
+
prevent.
|
|
27
|
+
|
|
28
|
+
## Workflow
|
|
29
|
+
|
|
30
|
+
1. **Gate:** `recall` first, by symptom and by `file_path`. A prior `bugfix`
|
|
31
|
+
or `constraint` may already explain it. If it does, apply it and skip to
|
|
32
|
+
`finish`; a second copy of a stored cause is noise.
|
|
33
|
+
`expand_memories` the hits and read them before reading code: the
|
|
34
|
+
`design` says how the thing is meant to behave, the `bugfix` what broke
|
|
35
|
+
before. A summary line is not the memory.
|
|
36
|
+
Search a third time by the thing the failing test asserts — a key
|
|
37
|
+
binding, a path, a flag, a constant — not only the symptom. If a hit says
|
|
38
|
+
the current behaviour was a deliberate ruling, the fix must honour the
|
|
39
|
+
ruling, and that reversal is a `bugfix` however small the code change.
|
|
40
|
+
A batch of failures is triaged, not skipped: routine ones store nothing;
|
|
41
|
+
any fix that reverses a choice you made earlier this session, or that an
|
|
42
|
+
existing test's comment predicted, gets its own `bugfix`.
|
|
43
|
+
2. Reproduce and narrow. Cause obvious? Go to step 4. Not obvious? Open a
|
|
44
|
+
thinking sequence with `workstream_slug`; `observation` for facts,
|
|
45
|
+
`hypothesis` per candidate cause, `reasoning` for what rules each out,
|
|
46
|
+
`conclusion` when one stands (it auto-stores a `decision`).
|
|
47
|
+
3. Long investigation? `set_working_state` with what was ruled out so far.
|
|
48
|
+
4. **Gate:** store the `bugfix` with the root cause BEFORE editing: Problem,
|
|
49
|
+
Root cause, Solution and why this approach, Testing; `related_files` where
|
|
50
|
+
the defect lived; a `related` edge to the design it exposed a gap in.
|
|
51
|
+
**Quota warning or not.** A store that comes back refused is reported as
|
|
52
|
+
refused; a store never attempted because a warning made it look
|
|
53
|
+
pointless is the anti-pattern below.
|
|
54
|
+
5. Fix, verify, then `finish`: the bugfix UUID goes in the commit trailer.
|
|
55
|
+
6. An imposed limit is a `constraint`; a claim about behaviour is a `learning`.
|
|
56
|
+
|
|
57
|
+
## Anti-patterns
|
|
58
|
+
|
|
59
|
+
WRONG: the search returns the design of the feature; the code is read first
|
|
60
|
+
to find out how it is meant to behave.
|
|
61
|
+
RIGHT: `expand_memories` the design; the code is opened to confirm it, or to
|
|
62
|
+
find where it departs from it.
|
|
63
|
+
|
|
64
|
+
WRONG: editing until the test passes, then writing "fixed X" as the memory.
|
|
65
|
+
RIGHT: the root cause stored first; the memory says why it broke, not that it passes.
|
|
66
|
+
|
|
67
|
+
WRONG: "these are my own red tests from an hour ago, I know the causes" — fixing
|
|
68
|
+
all eight inline, storing nothing, and only an old test's comment catching the
|
|
69
|
+
ruling you reversed.
|
|
70
|
+
RIGHT: the same eight triaged; seven store nothing; the one that reversed a
|
|
71
|
+
ruling is a `bugfix` stored before its edit, quota warning or not.
|
|
72
|
+
|
|
73
|
+
## Checklist
|
|
74
|
+
|
|
75
|
+
- [ ] Searched by symptom, by file, and by what the failing test asserts
|
|
76
|
+
- [ ] Hits expanded and read before any source file was opened
|
|
77
|
+
- [ ] A batch triaged: every reversal of a ruling or of your own earlier choice has its own bugfix
|
|
78
|
+
- [ ] Thinking sequence concluded, or never opened
|
|
79
|
+
- [ ] Root cause stored before the fix, with files and an edge
|
|
80
|
+
- [ ] Bugfix UUID in the commit trailer
|
|
81
|
+
|
|
82
|
+
## See also
|
|
83
|
+
|
|
84
|
+
`recall`, `decide`, `capture`, `finish`, `handoff`.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: project
|
|
3
|
+
description: Creates, inspects, retires, or links Recallium projects - the metadata containers that scope memories - and keeps project administration out of memories. Use when the user says "set up a project for this repo", "which projects do we have", "link this repo to the API project", "unlink those", "retire that old project", "restore it", or when a summon reports an unknown project; goals, roadmaps and decisions never go on a project, they are memories under a workstream.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Project
|
|
7
|
+
|
|
8
|
+
## Quick start
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
list_projects(include_inactive=False) # paginated; True shows retired ones
|
|
12
|
+
get_project(project_name="my-api") # name, UUID, description, counts, status, links
|
|
13
|
+
create_project(project_name="my-api", description="...") # idempotent: an existing project is returned unchanged
|
|
14
|
+
update_project(project_name="my-api", description="...") # or status="inactive" (+ reason) / status="active"
|
|
15
|
+
link_projects(project_name="my-api", target_project_name="my-web", relationship="sibling")
|
|
16
|
+
unlink_projects(project_name="my-api", target_project_name="my-web")
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Why
|
|
20
|
+
|
|
21
|
+
A project is grouping and scope, nothing more: a kebab-case name, a one-line
|
|
22
|
+
description, a lifecycle status, and links. Everything that describes the work
|
|
23
|
+
(goals, roadmap, decisions, learnings) is a memory under a workstream, where
|
|
24
|
+
search finds it; a project holds no document. A link is search visibility:
|
|
25
|
+
each project's memories become reachable one hop from the other.
|
|
26
|
+
|
|
27
|
+
## Workflow
|
|
28
|
+
|
|
29
|
+
1. `list_projects` before creating: names are lowercase kebab-case and the
|
|
30
|
+
workspace root is the default name, so the project may exist already.
|
|
31
|
+
2. Create with a description worth reading later. `create_project` never
|
|
32
|
+
modifies an existing project; `update_project` does.
|
|
33
|
+
3. Two repos, one effort? `link_projects` ONCE per pair. `sibling` is
|
|
34
|
+
order-agnostic; `parent` / `child` read source -> target. Re-linking the
|
|
35
|
+
same pair overwrites it. There is no narrower link, so do not link
|
|
36
|
+
projects that should stay separate.
|
|
37
|
+
4. Retire: `update_project(status="inactive", reason=...)`. The row, its
|
|
38
|
+
memories and links are kept; `status="active"` restores. There is no
|
|
39
|
+
delete. A shipped workstream is `curate`'s job, not a project change.
|
|
40
|
+
5. **Gate:** store nothing; administration is not a finding.
|
|
41
|
+
|
|
42
|
+
## Anti-patterns
|
|
43
|
+
|
|
44
|
+
WRONG: `create_project(description="Goals: ... Roadmap: ...")`.
|
|
45
|
+
RIGHT: a `design` or `decision` memory under a workstream; one line here.
|
|
46
|
+
|
|
47
|
+
WRONG: linking two projects so a teammate can see the other's memories.
|
|
48
|
+
RIGHT: links are project-to-project visibility; people are `team`'s matter.
|
|
49
|
+
|
|
50
|
+
## Checklist
|
|
51
|
+
|
|
52
|
+
- [ ] Listed before creating; name is kebab-case
|
|
53
|
+
- [ ] One link per pair; direction right for parent / child
|
|
54
|
+
- [ ] Retired with a reason, never deleted
|
|
55
|
+
- [ ] Nothing stored as a memory
|
|
56
|
+
|
|
57
|
+
## See also
|
|
58
|
+
|
|
59
|
+
`start-work` (the workstream inside it), `resume` (switching project), `curate`,
|
|
60
|
+
`team`, `recallium-tools`.
|