History opens a seat's conversation from the Waiting card, table row and inspector. It pages the whole branch through the CHAT-02 board routes, renders untrusted text inert, polls with the follow cursor, and marks every switch (branch, newer, reconcile, gone). The WebUI proxy passes only the two conversation routes' queries upstream. Dewey authored it. Filbert asked for changes on r1 (24b046af) and approved r2 (d06de6a7) in review 160dd68d. A relaunch shows 'newer', not 'reconcile', a deviation from brief 2.3 item 6 that Filbert accepted. Co-Authored-By: Claude Opus 5.5 <[email protected]>
12 lines
800 B
Python
12 lines
800 B
Python
# Mutants for the REFUSAL_STATUS test (Darkwing's R2 notes). Run from a full
|
|
# scratch copy of the checkout (/tmp/dewey-chat02/scratch-board), never the served tree.
|
|
import subprocess
|
|
M=[("unavailable becomes 422","packages/control-board/src/serve.mjs"," unavailable: 404,\n"," unavailable: 422,\n"),
|
|
("new refusal in parts.mjs","packages/conversation/src/parts.mjs","export ",'const _probe = () => new Refusal("probe-code", "x");\nexport ')]
|
|
for n,f,a,b in M:
|
|
o=open(f).read(); assert a in o,n
|
|
open(f,"w").write(o.replace(a,b,1))
|
|
r=subprocess.run(["node","--test","--test-name-pattern=every refusal code","tests/serve.test.mjs"],cwd="packages/control-board",capture_output=True,text=True,timeout=600)
|
|
print(("CAUGHT " if r.returncode else "MISSED ")+n)
|
|
open(f,"w").write(o)
|