G A-17 (corrected): mesh-sdk names no seat; WriterConfig.Asked and the TypeScript writer's asked are the subject of findings-asked, given from the seat's generated contract

views.FindingsAskedSubject, views.FindingsAskedEvent and FINDINGS_ASKED_EVENT are gone; the stdio writer subscribes the seat event
the given subject names.

Builds: design 47 G A-17, A-13, §461
Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ
This commit is contained in:
2026-11-11 21:58:38 +01:00
parent 948cc1b34e
commit 24f876a348
7 changed files with 59 additions and 37 deletions
+3 -2
View File
@@ -860,6 +860,7 @@ test("the finding writer writes, clears and states findings as the Go writer doe
const logs: string[] = [];
const w = new Writer({
module: "m",
asked: "s.findings-asked",
state: st,
observe: async () => {
@@ -870,7 +871,7 @@ test("the finding writer writes, clears and states findings as the Go writer doe
if (refuse > 0) { refuse--; throw new Error("no ack"); }
sent.push({ subject, body });
},
listen: async (s, h) => { assert.equal(s, "mesh-conditions.findings-asked"); consumers++; ask = h; return () => {}; },
listen: async (s, h) => { assert.equal(s, "s.findings-asked"); consumers++; ask = h; return () => {}; },
log: (l) => logs.push(l),
now: () => new Date(clock),
wait: async (ms) => { waits.push(ms); clock += ms; return true; },
@@ -945,7 +946,7 @@ test("the finding writer owns its kinds, keeps a views reader's findings in its
};
const sent: { subject: string; body: any }[] = [];
const w = new Writer({
module: "m", state: st, kinds: ["k"],
module: "m", asked: "s.findings-asked", state: st, kinds: ["k"],
observe: async () => ({ findings: [], pending: [] }),
publish: async (subject, body) => void sent.push({ subject, body }),
listen: async () => () => {},