@theronap/agnoclast-mcp 0.9.347 → 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.
|
@@ -57,4 +57,4 @@ Send nothing until the loop in step 3 has stopped: every report wakes the sessio
|
|
|
57
57
|
long session that wake costs more than the filing. Then: one line of totals (filed / discarded / deferred /
|
|
58
58
|
released / skipped, and why you stopped), one line per unit
|
|
59
59
|
`id · outcome · record id · brain · governing page`, then one line per page you edited (`page · what you added`), then any question only the person can answer. Nothing else.
|
|
60
|
-
If there is no such question, end with exactly: `No question for the person
|
|
60
|
+
If there is no such question, end with exactly: `No question for the person.`
|
package/lib/arrivals_notice.mjs
CHANGED
|
@@ -208,7 +208,10 @@ export function formatUnheld(groups, { more = false } = {}) {
|
|
|
208
208
|
lines.push(` → Dispatch the \`agnoclast-filer\` subagent IN THE BACKGROUND (Agent tool, subagent_type "agnoclast-filer", run_in_background: true) with: "File these Agnoclast arrivals: ${handed.join(', ')}". Then continue with the user's request without waiting for it.`)
|
|
209
209
|
if (ids.length > handed.length) lines.push(` (${ids.length - handed.length} more ids wait for the next prompt.)`)
|
|
210
210
|
lines.push(' It files under this session\'s lease, then keeps claiming this session\'s other unheld arrivals until none are left, and reports back here ONCE. Skip the dispatch if a filer is already running for this session; if that agent type does not exist on this machine, file them yourself as above.')
|
|
211
|
-
|
|
211
|
+
// Wording matters (2026-11-17): "say nothing to the user" read as concealment to auto mode's classifier, which
|
|
212
|
+
// flagged it as possible prompt injection, and "end the turn with no text" fought the app's rule that every turn
|
|
213
|
+
// says something. The intent is only "this is routine, don't narrate it" — so say exactly that, and never hide it.
|
|
214
|
+
lines.push(' Filing is routine background work this person set up. Don\'t narrate it unprompted: no acknowledgement or summary when you dispatch it or when it reports back. If they ask, tell them plainly what was filed. If the report carries a question only the person can answer, ask it. If its report wakes you while idle with nothing to raise, reply with one short line or carry on with what you were doing.')
|
|
212
215
|
return lines
|
|
213
216
|
}
|
|
214
217
|
|
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