4 Commits

Author SHA1 Message Date
mute 20e06448d0 the domain-401 fix: a probe's auth refusal no longer ends the session -- the client's global 401 interceptor learns the opt-out. The production bug (the box deployment's first claim, 2026-11-29): the add route deliberately answers 401/403 when the discovery probe meets an auth refusal (the ruled design -- the failure carries its status for the SPA's password branch), but the client's one fetch choke point treated every 401 as a rejected token: clearToken, state.me null, render to the claim view. The op was kicked mid-add and locked out (the token is returned once, the server stores hashes only -- recovery was the db drop and re-bootstrap, the op's ruling). The fix: ApiOpts gains domain401, the interceptor skips the session teardown when the call site sets it, and all four provider call sites do -- the o/f add (its 401 is upstream breakage, still not session death), the custom add, the form's send-key, the card's send-key. Verified: typecheck green both programs, and a browser pass on --mock --debug driving the whole machine -- mock-auth added, the 401 lands, the banner and the key field open, the token survives, the claim view stays hidden, the key lands through the auth route, the card reads mock-auth 3 scraped unrefined; the only console line is the expected 401 resource entry. The smoke does not cover the client and the server behavior is unchanged; the pass is the verification. 2026-11-29 00:06:34 +00:00
mute 8d4a6b91df jsdoc typing round, phases 3-4: the clerk (tool/memory.mjs) and the SPA (web/) typed under strict -- row shapes local to their owners (the clerk's five tables in its header; the SPA's response envelopes in the new web/shapes.mjs, the server's shared shapes imported at their use sites: User, LogEvent, JobState, HttpError); the db boundary cast at every .get()/.all(), fail as @returns {never} so guard-narrowing works; web via a second tsconfig (tsconfig.web.json: DOM libs in their own program, node types riding along because shapes.mjs's Provider typedef pulls provider.mjs in), npm run typecheck runs both; every non-annotation delta audited onto a small intended list (COUNT(*) Number() wraps, impossible-path guards, ?? ''/?? undefined null-absorbers, the RewordOp reason fix -- the validator demands it, the reminder-find naming its tag); smoke 110/110 + restart + reminder + repo checks + a zero-console-error browser pass green; the typing round is complete 2026-11-15 19:57:07 +00:00
mute fa3f23b474 variant round: roll retired, chance is variant literature (strict parse, crypto pick on reception, picked-only rendering, /story variance metric); entity round: /story the whole deliverable, /table the play projection, the slidwin carry (smart contwin cutoff, whole exchanges, housekeeper reads session-minus-tail); dormant-session rework: universal session lifecycle (dormant->live->finished, sessions/<n> storage), move-at-stop, start lint + auto-send rule, rebaseable housekeeping, turn-0 -> carryover.jsonl, seed -> memory.json, draft-only save-package; format house rules enforced by the nine-rule check-repo (ascii bytes, no text-mutating css); smoke 105/105 + restart + reminder + browser pass green, irene hand-migrated to the new layout 2026-11-15 14:36:50 +00:00
mute c51d31078e spa modules and terminology: app.mjs split into flat es modules (router lifecycle, shared widgets, views own their state), mock smoke in test/; DICTIONARY.md rules the terms, four renames swept clean through the machinery - paper->status (run summary command is report now), window->session, wrap->housekeeping, context window->contwin; no dual-accepts by ruling, old data migrates once in the clerk (restore self-heals old dumps) 2026-11-14 23:48:27 +00:00