@theronap/agnoclast-mcp 0.9.348 → 0.9.349
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/lib/closeout_wiki.mjs +7 -0
- package/package.json +1 -1
package/lib/closeout_wiki.mjs
CHANGED
|
@@ -171,6 +171,7 @@ export function explorePrompt({ segments, read, facts, asOf }) {
|
|
|
171
171
|
First list what the session established that a wiki reader needs: for each workstream, every status that changed, every result, and every rule, preference or decision a person stated ("never list connectors in public copy" is one). Then find the page each item belongs on.
|
|
172
172
|
Use grep to find every existing page this session's work made wrong, out of date or incomplete: the feature, system, decision, project, status, bug-list and person pages it touched. Search for names, identifiers, PR numbers and phrases from the work, follow [[links]] on the pages you read, and read each page before proposing an edit to it. Run at least one search for every workstream, even when you already know a page for it: the pages a session made stale are mostly ones it never opened. Pages it opened: ${seen.join(', ') || 'none'}.
|
|
173
173
|
Bring each page fully current: every item that belongs on it, not only the first. Several edits to one page are normal. A stated rule or decision goes on the page it governs, with who stated it and the date.
|
|
174
|
+
${USER_PAGE}
|
|
174
175
|
${RULES(segments, asOf)}
|
|
175
176
|
Finish with JSON only: {"items": [{"item": one short phrase, "page": the page it went on, or null}], "edits": [at most ${MAX_EXPLORED_EDITS} objects ${EDIT_SHAPE}]}.
|
|
176
177
|
|
|
@@ -199,6 +200,12 @@ FACT NOTES:
|
|
|
199
200
|
${facts.slice(-40_000)}`
|
|
200
201
|
}
|
|
201
202
|
|
|
203
|
+
// ADR-0112 follow-up (Theron, 2026-11-17): a session learns more about the person running it than any record does, and
|
|
204
|
+
// nothing put it on their own page; Theron's Personal user page went three months without an edit. The close-out
|
|
205
|
+
// already reads the whole session, so it is the place to do it. Its reason starts "user page:" so page history shows
|
|
206
|
+
// at a glance when this starts working.
|
|
207
|
+
export const USER_PAGE = `The person who ran this session has their own user page in each of their brains, titled with their name (the session record and fact notes name them; grep for it). Treat it like any other page this session made stale: if the session showed something lasting about that person (a project they started, ended or reprioritised, their role, a stated preference or rule for how they work, someone they now work with), propose an edit to their user page in the brain where it fits, dated, with a reason starting "user page:". Their passing mood, today's logistics and what they asked for in this one session are not lasting. Never contact details.`
|
|
208
|
+
|
|
202
209
|
const EDIT_SHAPE = '{"page": exact page name, "heading": the section heading, "old_string": text copied exactly from what read_page printed, appearing once on the page, "new_string": the replacement, "reason": one short phrase}'
|
|
203
210
|
const RULES = (segments, asOf) => `Only pages in these brains: ${segments.map((s) => s.brain).join(', ')}. Never a confidential page.
|
|
204
211
|
State a status only as it stood when the session ended: the fact notes run in order and later ones win, so a thing first described as not done and later done is done. Promised or still owed is not done. Propose an edit only for something this session established first-hand.
|
package/package.json
CHANGED