auditor grounding — a prescribed, bounded exploration procedure + born-in find pointers
Observed live: the auditor looped find for a very long time, never touching list_sessions/list_propositions. Root cause was the prompt: its only procedure text was 'For each proposition, search the graph (its key words, its synonyms, its phrasings)' — a per-proposition find loop with no starting point, no sense of the space's extent, and no termination rule. And find returned id+name+statement with no session pointer, so results never composed with the listing tools (owner diagnosis, 2026-09-29). - AUDITOR_INSTRUCTIONS now prescribes the process: (1) list_sessions ONCE — the graph is small and finite, this shows its entire extent; (2) read plausibly-related sessions with list_propositions (full text) — every realistic candidate seen in a few calls; (3) find as the targeted sweep; (4) SUBMIT once related sessions are read — never re-search seen ground - find hits now carry 'born in: <session id>' — results point at sessions the auditor can read whole (legacy no-provenance nodes name none) - identity doctrine untouched: equivalence bias, linkTo mechanics, verdicts-only deliverable
This commit is contained in:
@@ -188,12 +188,14 @@ describe("auditor graph tools", () => {
|
||||
];
|
||||
const { chatStore, graphStore } = fakeStores(nodes);
|
||||
|
||||
it("find: glob over names + statements + aliases, returning id + name + statement", async () => {
|
||||
it("find: glob over names + statements + aliases, returning id + name + statement + BIRTH SESSION (owner, 2026-09-29)", async () => {
|
||||
const tools = auditorGraphTools({ chatStore, graphStore });
|
||||
const out = (await tools.find!.execute!("tc", { query: "*will to power*" })).details as string;
|
||||
assert.match(out, /1 match\(es\):/);
|
||||
assert.match(out, /- n1 :: Will to power/);
|
||||
assert.match(out, /statement: The will to power is Nietzsche's central drive\./);
|
||||
// The born-in pointer: hits compose with list_propositions.
|
||||
assert.match(out, /born in: c1/);
|
||||
// Statements and aliases hit too — and a bare term gets implicit stars.
|
||||
const byStatement = (await tools.find!.execute!("tc", { query: "living again" })).details as string;
|
||||
assert.match(byStatement, /n2 :: Eternal recurrence/);
|
||||
|
||||
Reference in New Issue
Block a user