@skedulo/memory-hub-mcp 0.2.16 → 0.2.17

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.
@@ -60,7 +60,7 @@ nothing else, and tell the developer to update it:
60
60
  6. Hold back outcomes: an outcome an open question affects, one that relies on a declined or
61
61
  unapplied `core` change or on a Knowledge change that did not become an entry, one that names a
62
62
  rule ID found on no page, one with a `<ID> (pending)` dependency whose ticket is now `canceled`, or
63
- is not `completed` and no longer decided by the project-knowledge decision rule 1 (its outcome was
63
+ is not `completed` and no longer decided by the decision rule 1 (project-knowledge `references/decision-rules.md`) (its outcome was
64
64
  planned toward a decision that is gone; a `completed` one is a finished dependency), and every
65
65
  outcome
66
66
  that depends on a held-back one, directly or through others. Create no sub-issue for them. List each
@@ -78,7 +78,7 @@ For each outcome that is not held back:
78
78
  - A retired entry, or one with a `Conflict:` note: use the entry that replaced it, and say so. A
79
79
  retired entry with no replacement is left out, and noted in your report. When the replacement is
80
80
  marked `Pending <ID>` and `<ID>` is neither the parent nor one of its sub-issues: if `<ID>` is
81
- still decided by the project-knowledge decision rule 1, the outcome now waits for that ticket:
81
+ still decided by the decision rule 1 (project-knowledge `references/decision-rules.md`), the outcome now waits for that ticket:
82
82
  add `<ID> (pending)` to its dependencies (a derived dependency, set in step 4.3 like the plan's
83
83
  own). If `<ID>` is `completed`, nothing waits: copy the entry under "Unverified entries" as it
84
84
  is. If `<ID>` is `canceled`, or not `completed` and no longer decided, never copy that entry as
@@ -45,8 +45,9 @@ nothing else, and tell the developer to update it:
45
45
  plan-ticket step 1 does. Load the pages the findings touch, and every Rules and Don't build page that has
46
46
  a `Pending` entry naming this sub-issue, its parent, or a ticket the PR closes
47
47
  (`memory_list type=Wiki repo=<delivery repo uid> titlePrefix="<Project> ›"`, then
48
- `memory_get type=Wiki uid=<uid>` on every part of a split page); for new IDs, read every Rules and
49
- Don't build page. `memory_list` returns `total` and one page of items; call it again with `offset`
48
+ `memory_get type=Wiki uid=<uid>` on every part of a split page). New entries take their IDs from
49
+ the feature map's `Next IDs` line in the targeted update, so no other page is needed for numbering.
50
+ `memory_list` returns `total` and one page of items; call it again with `offset`
50
51
  until you have all of them. The entry format and the confidentiality rules are in the
51
52
  project-knowledge skill's `references/page-format.md`.
52
53
  2. Drop each finding that is already folded, judged per finding, never per page: a change-log line that
@@ -85,7 +86,9 @@ nothing else, and tell the developer to update it:
85
86
 
86
87
  1. Page changes: run the project-knowledge skill's targeted update
87
88
  (`memory-hub:project-knowledge` when installed as a plugin) with the change list, the delivery repo
88
- uid and project, and the reason "findings from <SUB-ID> (<PR url>)". It applies them with
89
+ uid and project, the PR's changed files, its merge sha and the commit just before it (`<merge sha>^1`) on its repo
90
+ (`gh api repos/<owner>/<name>/pulls/<n>/files --paginate` gives each file's status, previous name,
91
+ number of changes and patch) so the touch update catches what the Findings do not mention, and the reason "findings from <SUB-ID> (<PR url>)". It applies them with
89
92
  `expectedLastModified`, writes the change-log lines with that reason, and asks once about any
90
93
  change to a `core` entry. If it ends without applying them (no project pages on that repo), stop
91
94
  before step 3.3 and report it: the sub-issue is not folded. A nested
@@ -122,6 +122,12 @@ with the reason and the source. These are the project-knowledge skill's decision
122
122
  - Any other `unverified` entry the work depends on: check it in the code. If the code confirms it,
123
123
  say so. If not, plan from what the code does and list the entry under "Knowledge changes", marked
124
124
  "from code".
125
+ - A `verified` entry that cites code the work depends on: check only whether its file changed since
126
+ the cited commit (`git -C <checkout> diff --quiet <sha> origin/<default> -- <path>`, or
127
+ `gh api repos/<owner>/<name>/compare/<sha>...<default> --jq '.files[].filename'`). Unchanged: use it
128
+ as it is, without reading the file. Changed: read the file at `origin/<default>`. When it still does
129
+ what the entry says, list a "from code" Knowledge change that moves the citation to that commit;
130
+ when it does something else, the code wins: plan from what it does and list a "from code" change.
125
131
 
126
132
  ## 5. Write the plan
127
133
 
@@ -11,9 +11,29 @@ the project's delivery repo. Read `references/page-format.md` in this skill's fo
11
11
  writing any page: it defines the titles, the entry line format, IDs, tiers, statuses, the change log,
12
12
  the Sources page, the team-safe editing steps and the confidentiality rules. Follow it exactly.
13
13
 
14
+ ## Which file to read, and when
15
+
16
+ The rules live in this skill's `references/` folder. Read each file before the step that needs it,
17
+ and never skip one:
18
+
19
+ - `page-format.md`: every run, before reading or writing any page.
20
+ - `decision-rules.md`: before deciding which source wins, what becomes an entry, or a tier or status.
21
+ - `checker.md`: before anything is saved ("Check the work").
22
+ - `create-refresh.md`: create, resuming a create, and refresh from sources. It also holds
23
+ "Discover sources" and "Discover features".
24
+ - `targeted-update.md`: a change list handed over by another skill, or a change asked for by entry ID.
25
+ - `touch.md`: keeping the pages in step with the code from a commit range, used by fold-findings and
26
+ by refresh, or when the developer asks to catch up with the code.
27
+ - `import.md`: import, and resuming an import.
28
+
29
+ A section named in quotes is in: this file for "Before any mode", "Core changes" and "Summary";
30
+ `decision-rules.md` for "Decision rules"; `checker.md` for "Check the work"; `create-refresh.md`
31
+ for "Discover sources", "Discover features", "Create" and "Refresh from sources";
32
+ `targeted-update.md` for "Update" and "Targeted update"; `touch.md` for "Touch update"; `import.md` for "Import" and "Import step <n>".
33
+
14
34
  ## How this skill works with the developer
15
35
 
16
- Decide, then report. Work out every answer yourself with the decision rules below, write your
36
+ Decide, then report. Work out every answer yourself with the decision rules, write your
17
37
  reasoning into the entries (sources, `Conflict:` notes, troubleshooting) and into the final summary,
18
38
  and keep going. Do not ask the developer to choose between options, confirm entries, pick tiers,
19
39
  resolve flags or approve saves.
@@ -33,10 +53,10 @@ can be read. Say what is missing and how to fix it.
33
53
 
34
54
  Before anything is saved, a second AI checks the work (see "Check the work"). Everything else goes
35
55
  into the summary at the end (see "Summary"). The developer reviews it once and can change anything by
36
- saying so, for example "R117 isn't core" or "drop D2"; apply such a request with update mode.
56
+ saying so, for example "R117 isn't core" or "drop D2"; apply such a request as a targeted update.
37
57
 
38
- For a large project, draft each feature in its own subagent, giving it the decision rules and the
39
- entry format, then check and number every draft yourself before saving. Keep progress notes in
58
+ For a large project, draft each feature in its own subagent, giving it `decision-rules.md` and the
59
+ entry-line part of `page-format.md` only, then check and number every draft yourself before saving. Keep progress notes in
40
60
  `$TMPDIR/memory-hub-knowledge/<PREFIX>/`, never in a repo checkout, so a long run can continue after
41
61
  an interruption. Never quote sources or write amounts or personal names there. After the summary,
42
62
  run `git -C <checkout> worktree remove --force <path>` for each worktree you added (see "Discover
@@ -73,9 +93,11 @@ nothing else, and tell the developer to update it:
73
93
  through with `offset` until you reach `total`). Read the ID prefix from existing entries. With no
74
94
  pages yet, choose the prefix yourself (page-format.md) and say which in the summary.
75
95
  4. Pick the mode:
76
- - a change list handed over by plan-ticket, delegate-ticket or fold-findings, or a change the
77
- developer asks for by entry ID: the targeted update (see "Update"), whatever else the bullets
78
- below would pick;
96
+ - a change list, a commit range or a PR's changed files handed over by plan-ticket, delegate-ticket or fold-findings, or
97
+ a change the developer asks for by entry ID: the targeted update (see "Update"), whatever else
98
+ the bullets below would pick;
99
+ - the developer asks to catch up with the code, and pages and a Sources page exist: the touch update
100
+ over every repo on the Sources page, as one run (see "Touch update");
79
101
  - an unfinished import: the plan file `$TMPDIR/memory-hub-import/<PREFIX>.json` exists, has pages
80
102
  or facts with neither `savedUid` nor `skip`, and every existing `<Project> ›` page is one whose
81
103
  uid the plan records as a `savedUid`. If any item has a `savedUid`, apply was interrupted: re-run
@@ -94,278 +116,9 @@ nothing else, and tell the developer to update it:
94
116
  plan file is gone; rebuild the plan (see "Import", "Resuming an import without its plan file");
95
117
  - pages but no `<Project> › Sources` page otherwise: an earlier create stopped partway; resume it
96
118
  (see "Create");
97
- - pages and a Sources page: update.
98
-
99
- ## Discover sources, in order of authority
100
-
101
- Find the sources yourself; never ask which to use. Use any the developer names too. Look in every
102
- place listed below. A place you cannot reach (a connector that is not connected, a repo you cannot
103
- read) is listed in the summary as not read; carry on with the rest.
104
-
105
- 1. **Code and configuration**: the delivery repo, other repos linked to the same team, and repos the
106
- code calls. Read each at its default branch as it is on the remote, never a feature branch or
107
- uncommitted work: run `git -C <checkout> fetch -q origin`, find the default branch with
108
- `gh api repos/<owner>/<name> --jq .default_branch`, and read the checkout in place only when it is
109
- on that branch, `git status --porcelain` is empty and HEAD equals `origin/<default>`; otherwise add
110
- a worktree for that repo (`git -C <checkout> worktree add --detach
111
- "$TMPDIR/memory-hub-knowledge/<PREFIX>/<repo>" origin/<default>`) and read that.
112
- Configuration that defines behaviour counts as code: the object model, triggered actions, Horizon
113
- pages and list configs, config-variable definitions. Cite `code: <owner/name>@<short sha> <path>`.
114
- 2. **Tickets**: Linear issues, projects and epics for this project, found by the team, the repo label
115
- (`repo/skedulo/<repo>`) and the project name. Record each one's status, its workflow state type
116
- (`triage`, `backlog`, `unstarted`, `started`, `completed`, `canceled`), its labels and any linked PR.
117
- For each ticket a `Pending` entry names, and each ticket that is not `started`, `completed` or
118
- `canceled` whose content differs from the code, also read its comments: a
119
- `Delivery plan (approved <date>)` comment on it makes it decided (see "Decision rules").
120
- 3. **Technical documents**: TDDs and design notes, and in-house docs: as-built docs, ADRs, READMEs
121
- and `docs/` folders in the repos, `CLAUDE.md` or `AGENTS.md`, runbooks and release notes. Search
122
- Confluence (Atlassian connector) and Google Drive by the project name together with words such as
123
- "TDD", "technical design", "as-built", "architecture", "runbook". Cite a repo file as
124
- `doc: <owner/name>@<short sha> <path>`.
125
- 4. **Business documents**: SOWs, work orders and change requests; business requirements; process and
126
- workflow descriptions; the business context in user stories; training material and customer
127
- guides (the Knowledge Hub corpus, `customers/<slug>/` in Skedulo/se-knowledge-corpus, when you can
128
- read it); glossaries. Search the same places with words such as "SOW", "work order",
129
- "change request", "requirements", "process", "user guide", "glossary".
130
- 5. **Slack**: the project's internal channels. Find them by name with `slack_search_channels` on its
131
- default public type; never use the search that includes private channels, and read a private
132
- channel only when the developer names it. Skip a channel whose permalink is not on
133
- skedulo.slack.com. Before using any other channel, look up every distinct human author, including
134
- the authors of thread replies you read, with `slack_read_user_profile`. Treat an author as Skedulo
135
- staff only when the profile shows a skedulo.com email and is not restricted. If any author is not,
136
- or a lookup fails, skip the whole channel and list it under "Left out".
137
-
138
- A document marked as a draft, or not approved, is a lead, never an authority: confirm it in another
139
- source before it becomes an entry, and never let it create a `core` or don't-build entry on its own.
140
-
141
- **Existing hub knowledge** for this project is a set of leads, not an authority. Use only items the
142
- whole project team can read: `memory_list` with each of the project's repos and `visibility=Team`,
143
- and `memory_recall scope=team` results whose visibility is Org, or Team on one of the project's
144
- repos. Never use or cite Private or Restricted items. Confirm each lead in the sources above before it
145
- becomes an entry, cite the source that confirms it, and never copy a hub item as it is.
146
-
147
- Record every source you read on the Sources page.
148
-
149
- ## Discover features
150
-
151
- Build the feature map before drafting any entry, and refresh it whenever update mode refreshes from
152
- sources. A feature is a part of the system a ticket can be about: one business capability with its
153
- own code.
154
-
155
- 1. Collect candidates from four signals: code areas, the section headings of the technical documents,
156
- Linear projects, epics and labels, and the process names in the business documents. A code area
157
- is a function handler, a group of triggered actions, a Horizon page or component, a custom object
158
- with its fields, or an integration or scheduled job. Ignore tests, generated files, vendored code
159
- and build configuration.
160
- 2. Merge candidates that point at the same code or the same process. Aim for 5 to 15 features. Merge,
161
- split and fold only candidates that have no key yet: an existing key keeps its section, its code
162
- paths and its Rules page. When an existing feature's code now spans unrelated areas, suggest the
163
- split under "Worth a look" instead of moving code paths.
164
- 3. Give each new feature a stable kebab-case key (`ride-automation`, `region-rollout`). Reuse the keys
165
- already in the feature map or in the Rules page titles, and never rename one.
166
- 4. Write `<Project> › Reference › feature-map` (format in page-format.md): for each feature, a one-line
167
- purpose and the code paths, document sections, ticket labels or epics, business processes and
168
- Slack channels it covers.
169
- 5. Check coverage both ways. Every code area belongs to a feature. Every feature has code: a feature
170
- without code is either not built yet (list it under "Worth a look") or a business concept that
171
- belongs on a reference page. Report what does not fit under "Coverage" in the summary.
172
-
173
- ## Decision rules
174
-
175
- Apply these instead of asking. Every decision must be visible in the entry it affects.
176
-
177
- **Which source wins when they disagree:**
178
-
179
- 1. A **decided ticket** wins over the code: one whose workflow state type is `started` (whatever its
180
- name: In Progress, In Review, In QA, Ready for Prod), one with a linked open PR, or a confirmed bug
181
- report (a Bug label and a state type of `unstarted` or `started`). Keep its rule as `unverified`
182
- with `Pending SOL-1234 (PR #452)` after the source, and add the current built behaviour to the
183
- troubleshooting page as a known gap. A ticket whose delivery plan was approved (plan-ticket posted
184
- `Delivery plan (approved <date>)` on it) is decided too, whatever its state, until it is
185
- `completed` or `canceled`. Other tickets in `triage`, `backlog` or `unstarted`, and `canceled` or
186
- duplicate tickets, are ideas, not decisions: they never override the code; note
187
- relevant ones on the troubleshooting page. For `completed` tickets the code wins, because it
188
- already reflects them.
189
- 2. Otherwise the **code** wins: it is what the system does.
190
- 3. Among documents, after a newer ticket decision: on whether something is in or out of scope, SOWs,
191
- work orders and change requests win over technical documents, and among them the newer one wins (a
192
- change request amends the SOW). On how the system works, technical documents win over business
193
- documents, and between two technical documents the newer one wins. Slack comes last.
194
- 4. The losing claim is never rewritten silently. Keep its line with
195
- `Conflict: overridden by <PREFIX>-R<n> (<rule>: <one-line reason>)`, for example
196
- `(code over TDD: the code uses travel time, capped at 60 min)`, and add the winning entry with its
197
- own ID and source.
198
-
199
- **Pending entries:** when a refresh finds that the ticket behind a `Pending` entry is now `completed`,
200
- confirm the behaviour in the code: if the code has it, drop the `Pending` note, make the entry
201
- `verified` citing the code, and remove its known-gap line from the troubleshooting page; if not, the
202
- code wins (rule 1): replace the `Pending` note with `(not found in code)`, keep it `unverified`, and
203
- keep the gap on the troubleshooting page.
204
- When the ticket is `canceled`, the code wins: add a `Conflict:` note pointing at the built behaviour,
205
- or retire the entry when nothing replaces it, and remove its known-gap line from the troubleshooting
206
- page.
207
-
208
- **What becomes an entry:**
209
-
210
- - Built behaviour with no rule in any document becomes a rule, `verified`, citing the code, with its
211
- tier set by the tier rule below.
212
- - A document rule the code should show but does not stays a rule, `unverified`, with
213
- `(not found in code)` after the source, however many documents state it. The summary lists these as
214
- gaps.
215
- - A business rule that the code implements becomes a rule citing both the business document and the
216
- code, with the business reason in its text, and is `verified`.
217
- - Work a SOW, work order, change request or completed ticket explicitly descopes becomes a don't-build
218
- entry, `verified` unless a newer source brings it back into scope. A descope from a decided ticket
219
- that is still pending is `unverified` with `Pending <ticket>`; one that only Slack or a ticket that
220
- is not decided states is `unverified`, and never `core`. A draft alone never creates a don't-build
221
- entry: note its descope on the troubleshooting page.
222
- - Business processes, terms and the reasons behind rules go on the reference pages (workflows,
223
- glossary, overview), each citing its source.
224
- - Ambiguous wording, inconsistent code and open questions go to the
225
- `<Project> › Reference › troubleshooting` page, never to a question for the developer.
226
-
227
- **Tier:** `core` when breaking the entry would lose or corrupt data; change something another system
228
- relies on (an external sync, an integration, a locked record); bypass a permission, role, region or
229
- tenant guard; or break contracted scope. Never demote an entry that meets these criteria to `standard`
230
- to keep the count low. `detail` for wording,
231
- labels, defaults and configuration values. `standard` for everything else.
232
-
233
- **Status:** `verified` when the code shows it; for a don't-build entry, when a SOW, work order, change
234
- request or completed ticket that is not a draft descopes it and no newer source brings it back; for
235
- another entry the code
236
- cannot show (a scope limit, an external constraint, a manual process), when two independent documents
237
- agree.
238
- Two documents are independent only if neither was written from the other or from the hub. Knowledge
239
- Hub corpus files are compiled from the other sources: cite them for business context, but never count
240
- one toward `verified`. `unverified` in every other case, including when only Slack says it or a
241
- decided ticket is still pending.
242
-
243
- **Feature keys:** come from the feature map (see "Discover features"). Every Rules page belongs to one
244
- feature in it.
245
-
246
- **Slack:** use it to find leads, then confirm them in code or tickets. Never quote Slack. A claim only
247
- Slack makes is `unverified`.
248
-
249
- ## Check the work
119
+ - pages and a Sources page: refresh from sources (see "Refresh from sources").
250
120
 
251
- Before saving anything, have the drafts checked by a fresh subagent that did not write them: AI checks
252
- AI, so the developer does not have to.
253
-
254
- 1. Give it:
255
- - the entries to check: every `core` entry; every entry with a `Conflict:` note; every entry about a
256
- permission, role, region or tenant guard, data deletion or loss, an external sync or integration,
257
- or contracted scope; and a random tenth of the rest, at least three per feature;
258
- - the location of every source each entry cites (URL, Confluence page or Drive file ID, absolute
259
- path, or `owner/name@sha`), and each feature's code paths from the feature map;
260
- - the Tier and Status rules above, and nothing about how each entry was decided;
261
- - the instruction that any corrected text restates the source as function: it never quotes a SOW,
262
- work order, change request or Slack, and never includes names, contact details, amounts or
263
- record IDs.
264
- 2. For each entry it opens the cited sources and answers one of: **confirmed**; **corrected** (the
265
- source says something else, or the tier or status breaks the rules: it returns the corrected line
266
- and the evidence location); **not confirmed** (the sources do not say it); **could not open**
267
- (with the reason). For an entry that cites only a document or a ticket and is not `Pending`,
268
- including one marked `(not found in code)`, it also looks in the feature's code paths: when the code
269
- does something else, the answer is **code differs**, with the code's behaviour and its location.
270
- An entry that cites both a document and the code, where the document supports the line but the
271
- code does something else, is code differs too, never corrected.
272
- Leave out of this code look every entry with a `Conflict:` note and every retired entry: their
273
- override is already recorded, so for those the checker confirms only that the cited source says
274
- what the entry says and that the entry the note names exists.
275
- 3. Apply the results. Keep confirmed entries. Apply the confidentiality rules to each corrected line
276
- before it replaces the entry, and list what you removed under "Left out". A code-differs answer
277
- never replaces the entry: apply decision rule 4, because the code wins. Keep the line, drop its
278
- `(not found in code)` and any code citation that does not support it, add
279
- `Conflict: overridden by <PREFIX>-R<n> (code over <source>: <reason>)`, and add a new entry citing
280
- the code with the next free ID, after the confidentiality rules. When the overridden entry is an
281
- existing `core` entry, that is a core change (see "Core changes"). Mark not-confirmed entries
282
- `unverified` with `(checker: not confirmed)` after the source, or move them to troubleshooting when
283
- nothing supports them. Could-not-open entries keep their drafted status and are listed under
284
- "Checked".
285
- 4. Accuracy is confirmed divided by the entries the checker could open. Below 90%, check every entry
286
- of the features where the misses were, once, and apply those results the same way. Then stop:
287
- report the checked count and the final accuracy under "Checked".
288
-
289
- ## Create
290
-
291
- 1. Discover and read the sources in order of authority, and note each one's version for the Sources
292
- page.
293
- 2. Discover the features and draft the feature map.
294
- 3. Draft per feature: rules (`R`) and constraints (`C`), the don't-build list (`D`), and the reference
295
- topics worth a page (data model, APIs, workflows, glossary, troubleshooting, overview).
296
- 4. Apply the decision rules to every entry: winner, `Conflict:` notes, tier, status, gaps.
297
- 5. Apply the confidentiality rules. Remove anything they forbid and list what you removed.
298
- 6. Check the work.
299
- 7. Number the entries with the next free IDs and save each page with
300
- `memory_save type=Wiki repo=<delivery repo uid> title=... content=...`, with
301
- `tags=["ProjectRules"]` on rules and don't-build pages. Every page ends with a change-log line
302
- (`<date> · <developer> via project-knowledge · Created · from <sources>`). Check each result
303
- reports `visibility: "Team"`; if one does not, stop and tell the developer. Save the feature map
304
- with them.
305
- 8. Save the Sources page last, then give the summary.
306
-
307
- **Resuming a create that stopped partway** (pages but no Sources page): leave the saved pages and
308
- their IDs as they are and do not re-draft them. Run discovery and the feature map, reusing the feature
309
- keys from the saved Rules page titles. Draft, check and save only the pages that are missing, numbered
310
- from the highest existing ID, then save the Sources page.
311
-
312
- ## Update
313
-
314
- Update has two paths.
315
-
316
- **Targeted update**: a change list handed over by plan-ticket, delegate-ticket or fold-findings, or a
317
- change the developer asks for by entry ID. Do not re-read sources, rediscover or touch the Sources
318
- page or the feature map, except for feature-map changes the list itself carries. When the handed-over
319
- delivery repo has no `<Project> ›` pages or no Sources page, end the run and say so, naming the
320
- changes not applied: a targeted update never creates, resumes or imports. A change marked
321
- "from ticket" by plan-ticket becomes a new entry, `unverified` with `Pending <PARENT-ID>`, and the entry
322
- it overrides gets a `Conflict:` note; a change marked "from code" cites the code.
323
-
324
- 1. Apply the confidentiality rules to the listed changes, then check them (see "Check the work",
325
- limited to the listed entries).
326
- 2. Apply every change that does not touch an existing `core` entry, with the team-safe editing steps
327
- in page-format.md. Before numbering a new entry, re-read the highest IDs; after saving, if another
328
- entry has the same ID, renumber yours to the next free one. Each change-log line gives the
329
- caller's reason word for word as its why (fold-findings puts the PR URL in it), so a later run can
330
- tell the change is already made.
331
- 3. Handle core changes (see "Core changes").
332
- 4. Give the summary, including the entry ID each listed change was given or changed, so the caller can
333
- use the real IDs, and each listed change that was not saved as an entry (declined, or moved to
334
- troubleshooting because the checker found nothing that supports it) with the reason.
335
-
336
- **Refresh from sources**: the developer asks to refresh, or no change list was handed over.
337
-
338
- 1. Read the Sources page. For each source, read its current version (page-format.md lists how) and
339
- compare it with the recorded one. A source you cannot reach is listed as not checked, not as
340
- unchanged. Discover new sources in the order of authority too, and refresh the feature map: new
341
- code areas join an existing feature or become a new one.
342
- 2. For each changed or new source, re-read it and compare with the pages it feeds. Work out, per
343
- feature: new entries (next free IDs), changed text, tier changes, entries a newer decision
344
- overrides (a `Conflict:` note plus a new entry), entries to retire, `Pending` entries to resolve,
345
- and status changes the Status rule now supports, using the decision rules.
346
-
347
- A `pack` source has moved when its recorded commit differs from the checkout's HEAD or
348
- `memory_checkSources` reports its pages behind. Re-read it by running `import convert` again with
349
- the same `--project` and `--prefix` and `--out "$TMPDIR/memory-hub-import/<PREFIX>-refresh.json"`
350
- (it saves nothing, and nothing is written in the checkout). Compare that plan's pages with the hub
351
- pages entry by entry, matched by ID (an entry moved to Don't build cites its old ID as
352
- `(was <PREFIX>-C<n>)`), on rule text and source only: a fresh convert marks every entry `standard`
353
- and `unverified`, so never revert a hub entry's tier, status, `Conflict:` note or retirement, and
354
- never remove an entry the pack does not have. If a pack entry's ID is already used by a different
355
- hub entry, give the pack entry the next free ID and say so in the summary. Never run
356
- `import apply` for a project that already has pages; the CLI refuses it. Delete the new plan and
357
- review files when you are done: they may hold flagged values.
358
- 3. Apply the confidentiality rules to every change, then check the changed and new entries (see
359
- "Check the work").
360
- 4. Apply every change that does not touch an existing `core` entry, with the team-safe editing steps
361
- in page-format.md, renumbering a new entry if its ID turns out to be taken.
362
- 5. Handle core changes (see "Core changes").
363
- 6. Update the Sources page with the versions you read, through the same editing steps, then give the
364
- summary. For each pack source, also set the pages it feeds to the new commit
365
- (`memory_update ... source={repo: "<owner/name>", commit: "<sha>"}` with `expectedLastModified`),
366
- so `memory_checkSources` stops reporting them.
367
-
368
- ### Core changes
121
+ ## Core changes
369
122
 
370
123
  A core change is a change to or from `core`, or any edit, `Conflict:` note or retirement of an
371
124
  existing `core` entry. A new entry you mark `core` while creating it is not a core change, unless it
@@ -374,6 +127,8 @@ change, held back together.
374
127
 
375
128
  A core change the developer asked for, or accepted by entry ID, earlier in this conversation is
376
129
  already confirmed (for example "R117 isn't core", or an answer naming the ID). Apply it without asking.
130
+ Moving an entry's code citation to a newer commit, or adding `checked <date>`, with its text, tier,
131
+ status and notes unchanged, is not a core change: apply it directly.
377
132
  Approving a plan or a change list as a whole is not that.
378
133
 
379
134
  Collect the rest and ask once, in a single question that lists each change with its ID, the current
@@ -384,94 +139,6 @@ the summary as declined.
384
139
  When the caller says not to ask (fold-findings folding a blocker inside another run), apply none of
385
140
  them, write nothing about them to the pages, and list them in the summary as waiting.
386
141
 
387
- ## Import
388
-
389
- Imports a knowledge pack, `domains/<name>/` in a checkout of the shared memory repo, through the
390
- `memory-hub-mcp import` CLI, which saves through the same path as `memory_save`, so every page is
391
- embedded. Each imported page records the pack's repo and commit as its source. Never edit the shared
392
- memory repo from this skill: it changes only through its own publish tool.
393
-
394
- 1. If pages already exist for the project, do not import: importing again would duplicate titles or
395
- start a second ID prefix, and `import apply` refuses it. To pick up a pack that has moved, use
396
- update mode.
397
- 2. Find the shared memory repo checkout: a git repo beside the delivery repo's checkout or in its
398
- parent folder that has `domains/*/rules.json` or `domains/*/memory/`. Ask for its path only when the
399
- developer asked to import and you cannot find one. The pack is the `domains/<name>` whose name
400
- equals the delivery repo's name, or else contains the team's name without punctuation; when several
401
- contain it, take the one with the most recent commit
402
- (`git -C <checkout> log -1 --format=%ct -- domains/<name>`) and name the choice in the summary.
403
- Also settle the project name, the ID prefix and the delivery repo as `owner/name`.
404
- 3. The CLI needs `MEMORY_HUB_MCP_TOKEN` in the environment. `memory-hub-mcp setup` stores it in
405
- `~/.claude/settings.json`, which Claude Code passes to commands. If it is missing, stop and tell the
406
- developer how to provide it. A plugin install whose token was entered only in the plugin's token
407
- option gives it to the memory-hub server alone: add `"env": {"MEMORY_HUB_MCP_TOKEN": "<token>"}` to
408
- `~/.claude/settings.json` and restart Claude Code, or export it in this shell; do not re-run setup,
409
- which would add a second memory-hub server. Any other install: run
410
- `npx -y @skedulo/memory-hub-mcp@latest setup --code`, or export the token in this shell.
411
- 4. Convert. This saves nothing:
412
-
413
- ```bash
414
- npx -y @skedulo/memory-hub-mcp@latest import convert "<checkout>/domains/<name>" --project "<Project>" --prefix <PREFIX> --by "<developer name>"
415
- ```
416
-
417
- It prints the plan file (JSON) and the review file (Markdown) beside it.
418
- 5. Resolve every flag yourself, one by one, using the confidentiality rules, including those listed
419
- under "Probably project terms"; never resolve that group as a block. Look at every occurrence the
420
- flag lists, not only the first. Never resolve a `uuid`, `salesforce-id`, `phone` or `currency` flag,
421
- nor an `email` flag unless the address is at skedulo.com: remove those values. Mark a `person-name`
422
- flag `"resolved": true` only for a Skedulo staff name (a Slack or Linear profile shows a skedulo.com
423
- email), the customer's organisation name, or a term that names a thing in the code or the technical
424
- documents. Remove every other flagged value from the content of every item the flag lists in the
425
- plan JSON, and skip an item (`"skip": true`) only when nothing useful is left. List what you removed
426
- in the summary.
427
- 6. Every imported entry arrives `standard` and `unverified`. Set tiers with the decision rules, and set
428
- an entry `verified` when the delivery repo's code, read at its default branch on the remote (see
429
- "Discover sources"), shows it. Move each constraint whose category is
430
- `scope` to a planned `<Project> › Don't build` page (tagged `ProjectRules`, with the change-log
431
- footer) as a new `<PREFIX>-D<n>` entry with the next free D number, citing `(was <PREFIX>-C<n>)`;
432
- move the C line under `## Retired` on its Rules page with `Retired <date>: moved to <PREFIX>-D<n>`.
433
- Put that page in the plan's `pages` before the Sources page, so the Sources page is always saved
434
- last. Then check the work, with the code as the source to check against. Edit all results into the
435
- plan JSON. Step 5 and this step are safe to redo on a plan that is already partly edited.
436
- 7. Save:
437
-
438
- ```bash
439
- npx -y @skedulo/memory-hub-mcp@latest import apply "<plan.json>" --repo <owner/name>
440
- ```
441
-
442
- It refuses while a flagged value is unresolved, when the repo has no team, or when the embedding
443
- model does not load. It writes each saved uid into the plan file, so if it stops partway, run the
444
- same command again and it resumes.
445
- 8. When apply has finished without errors, delete the plan and review files: they still hold the
446
- flagged values. Keep them while an apply is unfinished: the plan file is what it resumes from.
447
- 9. Run a refresh from sources in the same run: it discovers the other sources and the features, checks
448
- the imported entries against them, and writes the feature map. Then give the summary.
449
-
450
- **Resuming an import without its plan file** (pages whose change logs say
451
- `Imported every entry as unverified · knowledge pack <name>`, but no Sources page and no plan file, for
452
- example on another machine): `import apply` refuses pages its plan did not record, so rebuild the
453
- plan.
454
-
455
- 1. Take the pack from the saved pages, never by Import step 2's matching: its name from the change-log
456
- line (`knowledge pack <name>`), its repo and commit from the pages' `source` (`memory_get`). Find a
457
- checkout of that repo as Import step 2 does. If there is none, end the run: save nothing, and say
458
- the import must be finished where the shared memory repo is checked out. Run Import steps 3 and 4
459
- on `domains/<name>` at that commit: when the checkout's HEAD differs, convert from a worktree of it
460
- at that commit under `$TMPDIR/memory-hub-import/`, removed afterwards with `git worktree remove`.
461
- 2. For each plan page whose title matches an existing `<Project> ›` page, write that page's uid into
462
- its `savedUid`. An existing `<Project> › Don't build` page has no plan page yet: add one before
463
- the Sources page with its uid as `savedUid`. For each plan fact whose content matches a Fact
464
- already on the delivery repo (`memory_list type=Fact repo=<delivery repo uid> titlePrefix="<its
465
- first words>"`), write that Fact's uid into its `savedUid`, so apply does not save it twice. If any
466
- other existing page has no matching title in the plan, stop the import and resume it as a create
467
- (see "Create") instead.
468
- 3. Run Import step 5 on the new plan, and step 6 only on the pages without a `savedUid`. Number every
469
- new R or D entry above the highest IDs on the saved pages, and take each moved constraint's D
470
- number from the saved Rules pages' `Retired <date>: moved to <PREFIX>-D<n>` lines. When the Don't
471
- build page is already saved, add its new D entries to it now, before step 7, with the team-safe
472
- editing steps in page-format.md, so an interruption still finds no Sources page and resumes here.
473
- 4. Continue with Import steps 7 to 9.
474
-
475
142
  ## Summary
476
143
 
477
144
  End every run with one short summary in plain language, the only thing the developer has to read.
@@ -0,0 +1,51 @@
1
+ # Check the work
2
+
3
+ Before saving anything, have the drafts checked by a fresh subagent that did not write them: AI checks
4
+ AI, so the developer does not have to.
5
+
6
+ Never re-check an entry that was already on a saved page before this run, is not new, edited or
7
+ overridden in this run, and whose sources have not changed since it was last confirmed: a code citation
8
+ whose path is unchanged since the cited commit (`git -C <checkout> diff --quiet <sha> origin/<default>
9
+ -- <path>`), or an entry marked `checked <date>` whose documents have no newer version on the Sources
10
+ page. Leave those out of everything below.
11
+
12
+ 1. Give it:
13
+ - the entries to check. Every `core` entry; every entry with a `Conflict:` note; every don't-build
14
+ entry; every entry about a permission, role, region or tenant guard, data deletion or loss, an
15
+ external sync or integration, or contracted scope. In a create or a refresh, also a random tenth
16
+ of the rest, at least three per feature. In a targeted update, nothing else: check each other
17
+ listed entry yourself instead, by opening its cited source and confirming it says the line;
18
+ - the location of every source each entry cites (URL, Confluence page or Drive file ID, absolute
19
+ path, or `owner/name@sha`), with a line range where you have one, and each feature's code paths
20
+ from the feature map. It opens a whole file only for the entries named in the first group;
21
+ - the Tier and Status rules from `decision-rules.md`, and nothing about how each entry was decided;
22
+ - the instruction that any corrected text restates the source as function: it never quotes a SOW,
23
+ work order, change request or Slack, and never includes names, contact details, amounts or
24
+ record IDs.
25
+ 2. For each entry it opens the cited sources and answers one of: **confirmed**; **corrected** (the
26
+ source says something else, or the tier or status breaks the rules: it returns the corrected line
27
+ and the evidence location); **not confirmed** (the sources do not say it); **could not open**
28
+ (with the reason). For an entry that cites only a document or a ticket and is not `Pending`,
29
+ including one marked `(not found in code)`, it also looks in the feature's code paths: when the code
30
+ does something else, the answer is **code differs**, with the code's behaviour and its location.
31
+ An entry that cites both a document and the code, where the document supports the line but the
32
+ code does something else, is code differs too, never corrected.
33
+ Leave out of this code look every entry with a `Conflict:` note and every retired entry: their
34
+ override is already recorded, so for those the checker confirms only that the cited source says
35
+ what the entry says and that the entry the note names exists.
36
+ 3. Apply the results. Keep confirmed entries. Apply the confidentiality rules to each corrected line
37
+ before it replaces the entry, and list what you removed under "Left out". A code-differs answer
38
+ never replaces the entry: apply decision rule 4, because the code wins. Keep the line, drop its
39
+ `(not found in code)` and any code citation that does not support it, add
40
+ `Conflict: overridden by <PREFIX>-R<n> (code over <source>: <reason>)`, and add a new entry citing
41
+ the code with the next free ID, after the confidentiality rules. When the overridden entry is an
42
+ existing `core` entry, that is a core change (see "Core changes"). Mark not-confirmed entries
43
+ `unverified` with `(checker: not confirmed)` after the source, or move them to troubleshooting when
44
+ nothing supports them. Could-not-open entries keep their drafted status and are listed under
45
+ "Checked". On a confirmed entry, set its code citation to the commit the checker read, or add
46
+ `checked <date>` after the source of an entry backed only by documents, so it is not checked
47
+ again until its sources change.
48
+ 4. Accuracy is confirmed divided by the entries the checker could open. Below 90%, check, once, the
49
+ rest of the entries like the missed ones: the same feature and the same kind of source (code,
50
+ ticket, technical document, business document, Slack). Apply those results the same way. Then stop:
51
+ report the checked count and the final accuracy under "Checked".
@@ -0,0 +1,179 @@
1
+ # Create and refresh
2
+
3
+ ## Discover sources, in order of authority
4
+
5
+ Find the sources yourself; never ask which to use. Use any the developer names too. Look in every
6
+ place listed below. A place you cannot reach (a connector that is not connected, a repo you cannot
7
+ read) is listed in the summary as not read; carry on with the rest.
8
+
9
+ 1. **Code and configuration**: the delivery repo, other repos linked to the same team, and repos the
10
+ code calls. Read each at its default branch as it is on the remote, never a feature branch or
11
+ uncommitted work: run `git -C <checkout> fetch -q origin`, find the default branch with
12
+ `gh api repos/<owner>/<name> --jq .default_branch`, and read the checkout in place only when it is
13
+ on that branch, `git status --porcelain` is empty and HEAD equals `origin/<default>`; otherwise add
14
+ a worktree for that repo (`git -C <checkout> worktree add --detach
15
+ "$TMPDIR/memory-hub-knowledge/<PREFIX>/<repo>" origin/<default>`) and read that.
16
+ Configuration that defines behaviour counts as code: the object model, triggered actions, Horizon
17
+ pages and list configs, config-variable definitions. Cite `code: <owner/name>@<short sha> <path>`.
18
+ 2. **Tickets**: Linear issues, projects and epics for this project, found by the team, the repo label
19
+ (`repo/skedulo/<repo>`) and the project name. List them with their status, workflow state type
20
+ (`triage`, `backlog`, `unstarted`, `started`, `completed`, `canceled`), title, labels and any linked
21
+ PR; listing is cheap, reading every ticket is not. Read the description and comments only of the
22
+ tickets that can change knowledge: decided ones (decision rule 1), `canceled` ones, ones in any
23
+ state whose title or labels suggest scope (descope, out of scope, remove, won't do), and the ones a
24
+ `Pending` entry names. After reading the business documents, also read every ticket a SOW, work
25
+ order or change request cites that you have not read yet. The rest stay as titles: the
26
+ code already reflects completed work, and ideas never override it. For each ticket a `Pending` entry names, and each ticket that is not `started`, `completed` or
27
+ `canceled` whose content differs from the code, also read its comments: a
28
+ `Delivery plan (approved <date>)` comment on it makes it decided (see "Decision rules").
29
+ 3. **Technical documents**: TDDs and design notes, and in-house docs: as-built docs, ADRs, READMEs
30
+ and `docs/` folders in the repos, `CLAUDE.md` or `AGENTS.md`, runbooks and release notes. Search
31
+ Confluence (Atlassian connector) and Google Drive by the project name together with words such as
32
+ "TDD", "technical design", "as-built", "architecture", "runbook". Cite a repo file as
33
+ `doc: <owner/name>@<short sha> <path>`.
34
+ 4. **Business documents**: SOWs, work orders and change requests; business requirements; process and
35
+ workflow descriptions; the business context in user stories; training material and customer
36
+ guides (the Knowledge Hub corpus, `customers/<slug>/` in Skedulo/se-knowledge-corpus, when you can
37
+ read it); glossaries. Search the same places with words such as "SOW", "work order",
38
+ "change request", "requirements", "process", "user guide", "glossary".
39
+ 5. **Slack**: the project's internal channels. Find them by name with `slack_search_channels` on its
40
+ default public type; never use the search that includes private channels, and read a private
41
+ channel only when the developer names it. Skip a channel whose permalink is not on
42
+ skedulo.slack.com. Before using any other channel, look up every distinct human author, including
43
+ the authors of thread replies you read, with `slack_read_user_profile`. Treat an author as Skedulo
44
+ staff only when the profile shows a skedulo.com email and is not restricted. If any author is not,
45
+ or a lookup fails, skip the whole channel and list it under "Left out".
46
+
47
+ A document marked as a draft, or not approved, is a lead, never an authority: confirm it in another
48
+ source before it becomes an entry, and never let it create a `core` or don't-build entry on its own.
49
+
50
+ **Existing hub knowledge** for this project is a set of leads, not an authority. Use only items the
51
+ whole project team can read: `memory_list` with each of the project's repos and `visibility=Team`,
52
+ and `memory_recall scope=team` results whose visibility is Org, or Team on one of the project's
53
+ repos. Never use or cite Private or Restricted items. Confirm each lead in the sources above before it
54
+ becomes an entry, cite the source that confirms it, and never copy a hub item as it is.
55
+
56
+ Record every source you read on the Sources page.
57
+
58
+ ## Discover features
59
+
60
+ Build the feature map before drafting any entry, and refresh it whenever update mode refreshes from
61
+ sources. A feature is a part of the system a ticket can be about: one business capability with its
62
+ own code.
63
+
64
+ 1. Collect candidates from four signals: code areas, the section headings of the technical documents,
65
+ Linear projects, epics and labels, and the process names in the business documents. A code area
66
+ is a function handler, a group of triggered actions, a Horizon page or component, a custom object
67
+ with its fields, or an integration or scheduled job. Ignore tests, generated files, vendored code
68
+ and build configuration.
69
+ 2. Merge candidates that point at the same code or the same process. Aim for 5 to 15 features. Merge,
70
+ split and fold only candidates that have no key yet: an existing key keeps its section, its code
71
+ paths and its Rules page. When an existing feature's code now spans unrelated areas, suggest the
72
+ split under "Worth a look" instead of moving code paths.
73
+ 3. Give each new feature a stable kebab-case key (`ride-automation`, `region-rollout`). Reuse the keys
74
+ already in the feature map or in the Rules page titles, and never rename one.
75
+ 4. Write `<Project> › Reference › feature-map` (format in page-format.md): for each feature, a one-line
76
+ purpose and the code paths, document sections, ticket labels or epics, business processes and
77
+ Slack channels it covers.
78
+ 5. Check coverage both ways. Every code area belongs to a feature. Every feature has code: a feature
79
+ without code is either not built yet (list it under "Worth a look") or a business concept that
80
+ belongs on a reference page. Report what does not fit under "Coverage" in the summary.
81
+
82
+ ## Create
83
+
84
+ 1. Discover and read the sources in order of authority, and note each one's version for the Sources
85
+ page.
86
+ 2. Discover the features and draft the feature map.
87
+ 3. Draft per feature: rules (`R`) and constraints (`C`), the don't-build list (`D`), and the reference
88
+ topics worth a page (data model, APIs, workflows, glossary, troubleshooting, overview).
89
+ 4. Apply the decision rules to every entry: winner, `Conflict:` notes, tier, status, gaps.
90
+ 5. Apply the confidentiality rules. Remove anything they forbid and list what you removed.
91
+ 6. Check the work.
92
+ 7. Number the entries from the first ID of each kind, and start the feature map with the
93
+ `Next IDs` line. Save each page with
94
+ `memory_save type=Wiki repo=<delivery repo uid> title=... content=... source={repo, commit}`
95
+ (page-format.md, "Page source"), with `tags=["ProjectRules"]` on rules and don't-build pages. Every page ends with a change-log line
96
+ (`<date> · <developer> via project-knowledge · Created · from <sources>`). Check each result
97
+ reports `visibility: "Team"`; if one does not, stop and tell the developer. Save the feature map
98
+ with them.
99
+ 8. Save the Sources page last, then give the summary.
100
+
101
+ **Resuming a create that stopped partway** (pages but no Sources page): leave the saved pages and
102
+ their IDs as they are and do not re-draft them. Run discovery and the feature map, reusing the feature
103
+ keys from the saved Rules page titles. Draft, check and save only the pages that are missing, numbered
104
+ from the `Next IDs` line (or from the highest existing IDs when it is missing), then save the Sources
105
+ page.
106
+
107
+ ## Refresh from sources
108
+
109
+ **Refresh from sources**: the developer asks to refresh, or no change list was handed over.
110
+
111
+ Read only what changed since the last run, and build on the pages as they are: never rebuild what is
112
+ already there.
113
+
114
+ 1. Read the Sources page. For each source, read its current version (see "Source versions" below) and
115
+ compare it with the recorded one. A source you cannot reach is listed as not checked, not as
116
+ unchanged. Then, by kind:
117
+ - `repo` whose commit moved: run the touch update (`touch.md`) for `<recorded commit>..origin/<default>`.
118
+ Never reread the repo. Its changes join this refresh's steps 3 to 5, so the run checks, asks
119
+ about core changes and summarises once.
120
+ - `linear`: never read a version per ticket. List the team's tickets updated after the watermark,
121
+ and read only those that can change knowledge (Discover sources, step 2). Find approved plans in
122
+ one call, `memory_list type=Scenario repo=<delivery repo uid> titlePrefix="# Delivery plan:"`,
123
+ not from Linear. Move the watermark to the newest `updatedAt` you processed.
124
+ - `slack`: read only messages after the recorded latest one, with the same author checks.
125
+ - a document with a new version: reread that document only and compare it with the entries that
126
+ cite it and the feature map's `Docs:` lines. A changed SOW, work order or change request changes
127
+ scope: send only its scope and don't-build changes to the checker. Then read the tickets it cites
128
+ that you have not read yet.
129
+ - unchanged sources: nothing.
130
+ Look for new sources only where they can appear since the last run: repos newly linked to the team,
131
+ and documents created or modified after the last `read` date.
132
+ 2. For each changed or new source other than a `repo`, compare what changed with the pages it feeds. Work out, per
133
+ feature: new entries (next free IDs), changed text, tier changes, entries a newer decision
134
+ overrides (a `Conflict:` note plus a new entry), entries to retire, `Pending` entries to resolve,
135
+ and status changes the Status rule now supports, using the decision rules.
136
+
137
+ A `pack` source has moved when its recorded commit differs from the checkout's HEAD or
138
+ `memory_checkSources` reports its pages behind. Re-read it by running `import convert` again with
139
+ the same `--project` and `--prefix` and `--out "$TMPDIR/memory-hub-import/<PREFIX>-refresh.json"`
140
+ (it saves nothing, and nothing is written in the checkout). Compare that plan's pages with the hub
141
+ pages entry by entry, matched by ID (an entry moved to Don't build cites its old ID as
142
+ `(was <PREFIX>-C<n>)`), on rule text and source only: a fresh convert marks every entry `standard`
143
+ and `unverified`, so never revert a hub entry's tier, status, `Conflict:` note or retirement, and
144
+ never remove an entry the pack does not have. If a pack entry's ID is already used by a different
145
+ hub entry, give the pack entry the next free ID and say so in the summary. Never run
146
+ `import apply` for a project that already has pages; the CLI refuses it. Delete the new plan and
147
+ review files when you are done: they may hold flagged values.
148
+ 3. Apply the confidentiality rules to every change, then check the changed and new entries (see
149
+ "Check the work").
150
+ 4. Apply every change that does not touch an existing `core` entry, with the team-safe editing steps
151
+ in page-format.md, numbering new entries from the `Next IDs` line. Set each page you checked to the
152
+ commit you checked it against ("Page source" in page-format.md), except a page fed by a pack.
153
+ 5. Handle core changes (see "Core changes").
154
+ 6. Update the Sources page with the versions you read, through the same editing steps, then give the
155
+ summary. For each pack source, also set the pages it feeds to the new commit
156
+ (`memory_update ... source={repo: "<owner/name>", commit: "<sha>"}` with `expectedLastModified`),
157
+ so `memory_checkSources` stops reporting them.
158
+
159
+ ## Source versions
160
+
161
+ How to read each source's current version for the Sources page:
162
+
163
+ - `repo`: the default branch on the remote, never the checkout's HEAD: `git -C <checkout> fetch -q origin`
164
+ then `git -C <checkout> rev-parse origin/<default>` (find the default branch with
165
+ `gh api repos/<owner>/<name> --jq .default_branch`), or `gh api repos/<owner>/<name>/commits/<default> --jq .sha`.
166
+ - `linear`: one watermark line per team and project, `linear · team <name> · project <name> ·
167
+ updated through <ISO time>`: the newest `updatedAt` among the tickets processed. A Sources page from
168
+ before this release has one line per ticket: on the next refresh, read none of them; set the
169
+ watermark to the newest `updatedAt` they recorded, then list the tickets updated after it.
170
+ - `confluence`: the Atlassian connector's get-page call; use the page's `version.number`.
171
+ - `local`: `shasum -a 256 "<path>"`.
172
+ - `gdrive`: the Google Drive connector's file-metadata call; use `modifiedTime` (or `version`).
173
+ - `slack`: the Slack connector's read-channel call; use the newest message's time.
174
+ - `hub`: `memory_get` on the item; use its `lastModifiedDate`. Record only Team or Org items, by type
175
+ and uid, never by title. Hub items are leads: a changed one is re-checked against the sources it
176
+ points to.
177
+ - Documents kept in a repo are covered by that repo's `repo` line.
178
+ - `pack`: `git -C <checkout> rev-parse HEAD` in an up-to-date checkout of the shared memory repo, or
179
+ `memory_checkSources` run in that checkout, which lists imported pages whose commit is behind.
@@ -0,0 +1,75 @@
1
+ # Decision rules
2
+
3
+ Apply these instead of asking. Every decision must be visible in the entry it affects.
4
+
5
+ **Which source wins when they disagree:**
6
+
7
+ 1. A **decided ticket** wins over the code: one whose workflow state type is `started` (whatever its
8
+ name: In Progress, In Review, In QA, Ready for Prod), one with a linked open PR, or a confirmed bug
9
+ report (a Bug label and a state type of `unstarted` or `started`). Keep its rule as `unverified`
10
+ with `Pending SOL-1234 (PR #452)` after the source, and add the current built behaviour to the
11
+ troubleshooting page as a known gap. A ticket whose delivery plan was approved (plan-ticket posted
12
+ `Delivery plan (approved <date>)` on it) is decided too, whatever its state, until it is
13
+ `completed` or `canceled`. Other tickets in `triage`, `backlog` or `unstarted`, and `canceled` or
14
+ duplicate tickets, are ideas, not decisions: they never override the code; note
15
+ relevant ones on the troubleshooting page. For `completed` tickets the code wins, because it
16
+ already reflects them.
17
+ 2. Otherwise the **code** wins: it is what the system does.
18
+ 3. Among documents, after a newer ticket decision: on whether something is in or out of scope, SOWs,
19
+ work orders and change requests win over technical documents, and among them the newer one wins (a
20
+ change request amends the SOW). On how the system works, technical documents win over business
21
+ documents, and between two technical documents the newer one wins. Slack comes last.
22
+ 4. The losing claim is never rewritten silently. Keep its line with
23
+ `Conflict: overridden by <PREFIX>-R<n> (<rule>: <one-line reason>)`, for example
24
+ `(code over TDD: the code uses travel time, capped at 60 min)`, and add the winning entry with its
25
+ own ID and source.
26
+
27
+ **Pending entries:** when a refresh finds that the ticket behind a `Pending` entry is now `completed`,
28
+ confirm the behaviour in the code: if the code has it, drop the `Pending` note, make the entry
29
+ `verified` citing the code, and remove its known-gap line from the troubleshooting page; if not, the
30
+ code wins (rule 1): replace the `Pending` note with `(not found in code)`, keep it `unverified`, and
31
+ keep the gap on the troubleshooting page.
32
+ When the ticket is `canceled`, the code wins: add a `Conflict:` note pointing at the built behaviour,
33
+ or retire the entry when nothing replaces it, and remove its known-gap line from the troubleshooting
34
+ page.
35
+
36
+ **What becomes an entry:**
37
+
38
+ - Built behaviour with no rule in any document becomes a rule, `verified`, citing the code, with its
39
+ tier set by the tier rule below.
40
+ - A document rule the code should show but does not stays a rule, `unverified`, with
41
+ `(not found in code)` after the source, however many documents state it. The summary lists these as
42
+ gaps.
43
+ - A business rule that the code implements becomes a rule citing both the business document and the
44
+ code, with the business reason in its text, and is `verified`.
45
+ - Work a SOW, work order, change request or completed ticket explicitly descopes becomes a don't-build
46
+ entry, `verified` unless a newer source brings it back into scope. A descope from a decided ticket
47
+ that is still pending is `unverified` with `Pending <ticket>`; one that only Slack or a ticket that
48
+ is not decided states is `unverified`, and never `core`. A draft alone never creates a don't-build
49
+ entry: note its descope on the troubleshooting page.
50
+ - Business processes, terms and the reasons behind rules go on the reference pages (workflows,
51
+ glossary, overview), each citing its source.
52
+ - Ambiguous wording, inconsistent code and open questions go to the
53
+ `<Project> › Reference › troubleshooting` page, never to a question for the developer.
54
+
55
+ **Tier:** `core` when breaking the entry would lose or corrupt data; change something another system
56
+ relies on (an external sync, an integration, a locked record); bypass a permission, role, region or
57
+ tenant guard; or break contracted scope. Never demote an entry that meets these criteria to `standard`
58
+ to keep the count low. `detail` for wording,
59
+ labels, defaults and configuration values. `standard` for everything else.
60
+
61
+ **Status:** `verified` when the code shows it; for a don't-build entry, when a SOW, work order, change
62
+ request or completed ticket that is not a draft descopes it and no newer source brings it back; for
63
+ another entry the code
64
+ cannot show (a scope limit, an external constraint, a manual process), when two independent documents
65
+ agree.
66
+ Two documents are independent only if neither was written from the other or from the hub. Knowledge
67
+ Hub corpus files are compiled from the other sources: cite them for business context, but never count
68
+ one toward `verified`. `unverified` in every other case, including when only Slack says it or a
69
+ decided ticket is still pending.
70
+
71
+ **Feature keys:** come from the feature map (see "Discover features"). Every Rules page belongs to one
72
+ feature in it.
73
+
74
+ **Slack:** use it to find leads, then confirm them in code or tickets. Never quote Slack. A claim only
75
+ Slack makes is `unverified`.
@@ -0,0 +1,87 @@
1
+ # Import
2
+
3
+ Imports a knowledge pack, `domains/<name>/` in a checkout of the shared memory repo, through the
4
+ `memory-hub-mcp import` CLI, which saves through the same path as `memory_save`, so every page is
5
+ embedded. Each imported page records the pack's repo and commit as its source. Never edit the shared
6
+ memory repo from this skill: it changes only through its own publish tool.
7
+
8
+ 1. If pages already exist for the project, do not import: importing again would duplicate titles or
9
+ start a second ID prefix, and `import apply` refuses it. To pick up a pack that has moved, use
10
+ a refresh from sources.
11
+ 2. Find the shared memory repo checkout: a git repo beside the delivery repo's checkout or in its
12
+ parent folder that has `domains/*/rules.json` or `domains/*/memory/`. Ask for its path only when the
13
+ developer asked to import and you cannot find one. The pack is the `domains/<name>` whose name
14
+ equals the delivery repo's name, or else contains the team's name without punctuation; when several
15
+ contain it, take the one with the most recent commit
16
+ (`git -C <checkout> log -1 --format=%ct -- domains/<name>`) and name the choice in the summary.
17
+ Also settle the project name, the ID prefix and the delivery repo as `owner/name`.
18
+ 3. The CLI needs `MEMORY_HUB_MCP_TOKEN` in the environment. `memory-hub-mcp setup` stores it in
19
+ `~/.claude/settings.json`, which Claude Code passes to commands. If it is missing, stop and tell the
20
+ developer how to provide it. A plugin install whose token was entered only in the plugin's token
21
+ option gives it to the memory-hub server alone: add `"env": {"MEMORY_HUB_MCP_TOKEN": "<token>"}` to
22
+ `~/.claude/settings.json` and restart Claude Code, or export it in this shell; do not re-run setup,
23
+ which would add a second memory-hub server. Any other install: run
24
+ `npx -y @skedulo/memory-hub-mcp@latest setup --code`, or export the token in this shell.
25
+ 4. Convert. This saves nothing:
26
+
27
+ ```bash
28
+ npx -y @skedulo/memory-hub-mcp@latest import convert "<checkout>/domains/<name>" --project "<Project>" --prefix <PREFIX> --by "<developer name>"
29
+ ```
30
+
31
+ It prints the plan file (JSON) and the review file (Markdown) beside it.
32
+ 5. Resolve every flag yourself, one by one, using the confidentiality rules, including those listed
33
+ under "Probably project terms"; never resolve that group as a block. Look at every occurrence the
34
+ flag lists, not only the first. Never resolve a `uuid`, `salesforce-id`, `phone` or `currency` flag,
35
+ nor an `email` flag unless the address is at skedulo.com: remove those values. Mark a `person-name`
36
+ flag `"resolved": true` only for a Skedulo staff name (a Slack or Linear profile shows a skedulo.com
37
+ email), the customer's organisation name, or a term that names a thing in the code or the technical
38
+ documents. Remove every other flagged value from the content of every item the flag lists in the
39
+ plan JSON, and skip an item (`"skip": true`) only when nothing useful is left. List what you removed
40
+ in the summary.
41
+ 6. Every imported entry arrives `standard` and `unverified`. Set tiers with the decision rules, and set
42
+ an entry `verified` when the delivery repo's code, read at its default branch on the remote (see
43
+ "Discover sources"), shows it. Move each constraint whose category is
44
+ `scope` to a planned `<Project> › Don't build` page (tagged `ProjectRules`, with the change-log
45
+ footer) as a new `<PREFIX>-D<n>` entry with the next free D number, citing `(was <PREFIX>-C<n>)`;
46
+ move the C line under `## Retired` on its Rules page with `Retired <date>: moved to <PREFIX>-D<n>`.
47
+ Put that page in the plan's `pages` before the Sources page, so the Sources page is always saved
48
+ last. Then check the work, with the code as the source to check against. Edit all results into the
49
+ plan JSON. Step 5 and this step are safe to redo on a plan that is already partly edited.
50
+ 7. Save:
51
+
52
+ ```bash
53
+ npx -y @skedulo/memory-hub-mcp@latest import apply "<plan.json>" --repo <owner/name>
54
+ ```
55
+
56
+ It refuses while a flagged value is unresolved, when the repo has no team, or when the embedding
57
+ model does not load. It writes each saved uid into the plan file, so if it stops partway, run the
58
+ same command again and it resumes.
59
+ 8. When apply has finished without errors, delete the plan and review files: they still hold the
60
+ flagged values. Keep them while an apply is unfinished: the plan file is what it resumes from.
61
+ 9. Run a refresh from sources in the same run: it discovers the other sources and the features, checks
62
+ the imported entries against them, and writes the feature map. Then give the summary.
63
+
64
+ **Resuming an import without its plan file** (pages whose change logs say
65
+ `Imported every entry as unverified · knowledge pack <name>`, but no Sources page and no plan file, for
66
+ example on another machine): `import apply` refuses pages its plan did not record, so rebuild the
67
+ plan.
68
+
69
+ 1. Take the pack from the saved pages, never by Import step 2's matching: its name from the change-log
70
+ line (`knowledge pack <name>`), its repo and commit from the pages' `source` (`memory_get`). Find a
71
+ checkout of that repo as Import step 2 does. If there is none, end the run: save nothing, and say
72
+ the import must be finished where the shared memory repo is checked out. Run Import steps 3 and 4
73
+ on `domains/<name>` at that commit: when the checkout's HEAD differs, convert from a worktree of it
74
+ at that commit under `$TMPDIR/memory-hub-import/`, removed afterwards with `git worktree remove`.
75
+ 2. For each plan page whose title matches an existing `<Project> ›` page, write that page's uid into
76
+ its `savedUid`. An existing `<Project> › Don't build` page has no plan page yet: add one before
77
+ the Sources page with its uid as `savedUid`. For each plan fact whose content matches a Fact
78
+ already on the delivery repo (`memory_list type=Fact repo=<delivery repo uid> titlePrefix="<its
79
+ first words>"`), write that Fact's uid into its `savedUid`, so apply does not save it twice. If any
80
+ other existing page has no matching title in the plan, stop the import and resume it as a create
81
+ (see "Create") instead.
82
+ 3. Run Import step 5 on the new plan, and step 6 only on the pages without a `savedUid`. Number every
83
+ new R or D entry above the highest IDs on the saved pages, and take each moved constraint's D
84
+ number from the saved Rules pages' `Retired <date>: moved to <PREFIX>-D<n>` lines. When the Don't
85
+ build page is already saved, add its new D entries to it now, before step 7, with the team-safe
86
+ editing steps in page-format.md, so an interruption still finds no Sources page and resumes here.
87
+ 4. Continue with Import steps 7 to 9.
@@ -28,9 +28,11 @@ all to the same team; the pages attach to the delivery repo only.
28
28
  area name later, so never derive it from a ticket key or a date, and never rename one. Every key on a
29
29
  Rules page is listed in the feature map.
30
30
 
31
- The feature map has one section per feature:
31
+ The feature map starts with the ID ledger, then one section per feature:
32
32
 
33
33
  ```
34
+ Next IDs: WELBE-R142 · WELBE-C38 · WELBE-D12
35
+
34
36
  ## ride-automation
35
37
  Creates, times and allocates Ride jobs for appointments, and keeps them in step with changes.
36
38
  - Code: Skedulo/CX-Welbe_Transporation src/core/object-services/rides-management/**, src/triggered-actions/*-adjust-rides.triggered-action.json
@@ -63,8 +65,14 @@ One entry per bullet, so a skill can copy it verbatim into a sub-issue:
63
65
  ```
64
66
 
65
67
  - ID: `<PREFIX>-R<n>` for a rule, `<PREFIX>-C<n>` for a constraint, `<PREFIX>-D<n>` for a don't-build
66
- item. IDs are unique within the project and never reused. The next ID is one more than the highest
67
- existing number of that kind across all the project's pages. Imported entries keep their number.
68
+ item. IDs are unique within the project and never reused. Imported entries keep their number.
69
+ The next free IDs are on the feature map's `Next IDs` line. Reserve before you write: count the
70
+ new entries of each kind, raise the line by that many in one team-safe edit, and only after that
71
+ edit succeeds write the entries, `Conflict:` notes and change-log lines with the reserved IDs. On a
72
+ `Conflict:`, read the line again and reserve again before writing anything. When the line is
73
+ missing (pages made before it existed, or a fresh import), set it once to the highest number of
74
+ each kind across all the project's pages, plus one. A project with no feature-map page yet numbers
75
+ from those highest numbers, and the run that creates the feature map writes the line.
68
76
  - Tier: `core` (changing it later needs the developer's confirmation of that entry), `standard`, or
69
77
  `detail` (wording, labels, defaults, configuration values). An entry is `core` when breaking it would
70
78
  lose or corrupt data, change something another system relies on, bypass a permission, role, region
@@ -80,7 +88,9 @@ One entry per bullet, so a skill can copy it verbatim into a sub-issue:
80
88
  pending.
81
89
  - Source: the document and section, the Linear issue, `code: <owner/name>@<short sha> <path>`, or
82
90
  `doc: <owner/name>@<short sha> <path>` for a document kept in a repo. Cite the source that
83
- confirmed an entry, never a hub item on its own.
91
+ confirmed an entry, never a hub item on its own. An entry's code citation names the commit it was
92
+ last confirmed at. An entry backed only by documents gets `checked <date>` after its source when the
93
+ checker confirms it.
84
94
  Add `(not found in code)` when a document rule has no match in the code, or when the ticket behind
85
95
  a `Pending` note completed without the behaviour reaching the code (it replaces the `Pending` note),
86
96
  and `Pending SOL-1234 (PR #452)` when a decided ticket changes it: workflow state type `started`, a
@@ -121,7 +131,7 @@ One line per source:
121
131
 
122
132
  ```
123
133
  - `repo` · Skedulo/cx-lindamood-bell@main · commit 4be1c0d · read 2026-10-21
124
- - `linear` · SOL-1234 · updatedAt 2026-10-20T03:00:00.000Z · read 2026-10-21
134
+ - `linear` · team Lindamood Bell · project LMB Delivery · updated through 2026-10-20T03:00:00.000Z · read 2026-10-21
125
135
  - `confluence` · page 123456789 "LC Technical Design" · version 14 · read 2026-10-21
126
136
  - `local` · docs/TDD For Schools.pdf · sha256 `9f2c…` · read 2026-10-21
127
137
  - `gdrive` · file 1AbCdEf "LC Statement of Work" · modifiedTime 2026-10-19T22:10:00.000Z · read 2026-10-21
@@ -130,22 +140,7 @@ One line per source:
130
140
  - `pack` · <owner/name of the shared memory repo> domains/cx-lindamood-bell · commit 7a3e9b1 · read 2026-10-21
131
141
  ```
132
142
 
133
- How to read each version now:
134
-
135
- - `repo`: the default branch on the remote, never the checkout's HEAD: `git -C <checkout> fetch -q origin`
136
- then `git -C <checkout> rev-parse origin/<default>` (find the default branch with
137
- `gh api repos/<owner>/<name> --jq .default_branch`), or `gh api repos/<owner>/<name>/commits/<default> --jq .sha`.
138
- - `linear`: the Linear connector's get-issue (or get-project/get-document) call; use `updatedAt`.
139
- - `confluence`: the Atlassian connector's get-page call; use the page's `version.number`.
140
- - `local`: `shasum -a 256 "<path>"`.
141
- - `gdrive`: the Google Drive connector's file-metadata call; use `modifiedTime` (or `version`).
142
- - `slack`: the Slack connector's read-channel call; use the newest message's time.
143
- - `hub`: `memory_get` on the item; use its `lastModifiedDate`. Record only Team or Org items, by type
144
- and uid, never by title. Hub items are leads: a changed one is re-checked against the sources it
145
- points to.
146
- - Documents kept in a repo are covered by that repo's `repo` line.
147
- - `pack`: `git -C <checkout> rev-parse HEAD` in an up-to-date checkout of the shared memory repo, or
148
- `memory_checkSources` run in that checkout, which lists imported pages whose commit is behind.
143
+ How to read each version is in `create-refresh.md`, "Source versions".
149
144
 
150
145
  ## Editing a page (team-safe)
151
146
 
@@ -154,11 +149,20 @@ Any member of the project team can edit these pages; two developers must not ove
154
149
  1. `memory_get type=Wiki uid=<uid>`; keep its `content` and `lastModifiedDate`.
155
150
  2. Apply the change to the full text. Keep every other line exactly as it was.
156
151
  3. Append the change-log line.
157
- 4. `memory_update type=Wiki uid=<uid> content=<full new text> expectedLastModified=<lastModifiedDate>`.
152
+ 4. `memory_update type=Wiki uid=<uid> content=<full new text> expectedLastModified=<lastModifiedDate>`,
153
+ adding `source={repo: "<owner/name>", commit: "<full sha>"}` when you checked the page's entries
154
+ against that commit (see "Page source" below).
158
155
  5. If it fails with `Conflict:`, someone else changed the page. Go back to step 1 and re-apply the
159
156
  change to the new text. Keep their edit; if it changed the same entry, keep their version, record
160
157
  your change as a new entry or a `Conflict:` note instead, and mention it in the summary.
161
158
 
159
+ **Page source.** Every Rules, Don't build and reference page records, as its `source`, the repo most
160
+ of its code citations point at and the commit its entries were last checked against. Set it when you
161
+ save a page and whenever you check its entries against a newer commit; never set it to a commit you
162
+ did not check against. A page fed by a knowledge pack keeps the pack's repo and commit as its
163
+ `source` instead, because `memory_checkSources` uses it to report pack changes. It lets `memory_list verifiedBefore=<date>` find pages nobody has checked for
164
+ a while.
165
+
162
166
  Teammates can change a page's title, content and tags. Only the page's author can move it to another
163
167
  repo or change its links. Deleting a page is author-only too; prefer retiring entries over deleting
164
168
  pages.
@@ -0,0 +1,24 @@
1
+ # Targeted update
2
+
3
+ **Targeted update**: a change list handed over by plan-ticket, delegate-ticket or fold-findings, or a
4
+ change the developer asks for by entry ID. Do not re-read sources, rediscover or touch the Sources
5
+ page or the feature map, except for feature-map changes the list itself carries the `Next IDs` line, and the touch update's feature-map changes. When the handed-over
6
+ delivery repo has no `<Project> ›` pages or no Sources page, end the run and say so, naming the
7
+ changes not applied: a targeted update never creates, resumes or imports. A change marked
8
+ "from ticket" by plan-ticket becomes a new entry, `unverified` with `Pending <PARENT-ID>`, and the entry
9
+ it overrides gets a `Conflict:` note; a change marked "from code" cites the code.
10
+
11
+ 1. Apply the confidentiality rules to the listed changes, then check them (see "Check the work",
12
+ which says which of them need the checker).
13
+ 2. Apply every change that does not touch an existing `core` entry, with the team-safe editing steps
14
+ in page-format.md, numbering new entries from the `Next IDs` line. Each change-log line gives the
15
+ caller's reason word for word as its why (fold-findings puts the PR URL in it), so a later run can
16
+ tell the change is already made.
17
+ 3. When the caller also handed over a commit range or a PR's changed files, run the touch update for
18
+ it (`touch.md`), so code changes the change list does not mention are caught too. It skips the
19
+ entries steps 1 and 2 changed. Put its changes through steps 1 and 2 as well (confidentiality,
20
+ check, apply); they join this run's core question and summary.
21
+ 4. Handle core changes (see "Core changes").
22
+ 5. Give the summary, including the entry ID each listed change was given or changed, so the caller can
23
+ use the real IDs, and each listed change that was not saved as an entry (declined, or moved to
24
+ troubleshooting because the checker found nothing that supports it) with the reason.
@@ -0,0 +1,65 @@
1
+ # Touch update
2
+
3
+ Keeps the pages in step with the code from what changed, reading only that. It never rereads
4
+ unchanged code and never rebuilds the project. Callers:
5
+
6
+ - fold-findings, with a merged PR's changed files (status, previous name, number of changes and patch
7
+ for each), its merge sha `<B>`, and the commit just before it on the default branch (`<B>^1`);
8
+ - a refresh from sources, for each `repo` source whose recorded commit moved (range
9
+ `<recorded commit>..origin/<default>`);
10
+ - the developer, for example "catch up the ACH knowledge with the code": the same as a refresh, for
11
+ the code only.
12
+
13
+ 1. Get the changed files. From fold-findings, use the PR's file list and read each path's change from
14
+ its `patch`. Otherwise run `git -C <checkout> fetch -q origin`, then
15
+ `git -C <checkout> diff -M --name-status <A> <B>` (or
16
+ `gh api repos/<owner>/<name>/compare/<A>...<B> --jq '.files[] | [.status, .filename, .previous_filename, .changes] | @tsv'`).
17
+ A pure rename is `R100`, or `renamed` with 0 changes; any other rename was also edited. Ignore
18
+ tests, generated files, vendored code and build configuration.
19
+ 2. Map each changed path to features with the feature map's `Code:` globs, using the previous path for
20
+ a rename. A path in a shared module (utilities, the object model, config variables,
21
+ triggered-action definitions) also touches every feature whose code imports or uses it; follow the
22
+ architecture map's edges for calls between repos. A new path no glob covers is a new code area:
23
+ add it to the feature it sits beside or that imports it, or, when it is a capability of its own,
24
+ start a new feature (step 7).
25
+ 3. For each touched feature, read its Rules page, its don't-build entries, and the reference pages
26
+ whose lines cite a changed path. Look only at entries that cite a changed path (by its previous
27
+ name for a rename) and whose path changed between their cited commit and `<B>`. Leave out retired
28
+ entries, entries with a `Conflict:` note, entries already changed earlier in this run, and entries
29
+ marked `Pending`: a Pending note is resolved by its ticket's state (decision rules, "Pending
30
+ entries"), never by a diff. For each remaining entry:
31
+ - pure rename: rewrite the cited path and the feature map's glob, keep the ID;
32
+ - edited rename, or modified: rewrite the path and the glob if it moved, then read the change (the patch, or
33
+ `git -C <checkout> diff -M <A> <B> -- <old path> <new path>`), and the file at `<B>` only when the
34
+ change is not enough to decide. Same behaviour: keep the line. Different behaviour: apply
35
+ decision rule 4, because the code wins: keep the line with a `Conflict:` note and add the new
36
+ entry;
37
+ - deleted with nothing replacing it: retire the entry with the reason.
38
+ Behaviour the change adds that no entry covers becomes a new entry, by the decision rules.
39
+ 4. Move an entry's cited commit to `<B>` only when its path is known unchanged in between. In a
40
+ refresh or a catch-up, always. From fold-findings, only when
41
+ `git -C <checkout> diff --quiet <cited commit> <B>^1 -- <path>` passes; otherwise keep the old
42
+ commit (with the new path), so the next refresh checks the merges in between.
43
+ 5. Keep what people corrected. An entry was edited by a teammate when the newest change-log line that
44
+ names its ID has no `via project-knowledge` and is not the import line
45
+ (`Imported every entry as unverified`). Never rewrite such an entry's text from the code; when the
46
+ code contradicts it, add a `Conflict:` note and a new entry. Path and commit moves are fine.
47
+ 6. Large change: when more than half of a feature's cited paths changed or were deleted, not counting
48
+ renames whose change does not alter behaviour (imports, paths, formatting), rebuild that feature
49
+ only. Draft it from the code at `<B>` (Create steps 3 to 5, for
50
+ this feature), match each draft to an existing entry by meaning, keep the IDs and lines of the
51
+ entries that still hold, add new entries, and retire or override the rest with a reason. Never
52
+ rebuild the whole project.
53
+ 7. New feature: draft it as in Create steps 3 to 5, for this feature only, giving the drafter the
54
+ project overview and one neighbouring Rules page as examples of tier and wording. Only a new
55
+ feature's entries get the full checker sample.
56
+ 8. Finish:
57
+ - inside a targeted update or a refresh: hand the changes, including feature-map changes, to the
58
+ caller, which checks, applies, asks about core changes and gives the summary once for the run;
59
+ - a catch-up: run steps 1 to 7 for every repo on the Sources page first, then, once for all of
60
+ them, check the new and changed entries ("Check the work"), apply them with the team-safe editing
61
+ steps, numbering from the `Next IDs` line, handle "Core changes", and give the summary, with the
62
+ ranges under "Sources read". Only after applying, set each touched page's `source` and each
63
+ repo's line on the Sources page to its `<B>` (except a page fed by a pack).
64
+ A refresh sets those after it applies the changes (its step 6). From fold-findings, leave both as
65
+ they are: other merges may lie between them and `<B>`, and the next refresh covers them.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/memory-hub-mcp",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "MCP server for the SE AI Memory Hub: recall and save developer memory from Claude Code and Claude Desktop.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {