the debug round: server.json deleted, the bind hardcoded to loopback (RP_PORT for the port), the debug superuser token-gated behind a printed, persisted token, and the context meter reading the discovered per-model contwin
The rulings (developer, 2026-11-19, in conversation): a deployment basically always needs a fronting proxy, so the listen address is code -- loopback, no override (an op who wants otherwise owns their own socat); the port rides the RP_PORT env var (the RP_BASE twin the test scripts use, default 7350, garbage refused loud); server.json is deleted entirely, file and reader both, because it held no meaningful configuration once the bind died -- only the dead bind and the declared contwin; and contwin is provider/model dependent, never a deployment global, so the meter must DISCOVER it, not read a declaration.
The meter: the run detail's context block now derives its window from the registry -- modelState's resolved player spec, findModel, the model's input ceiling -- null when the provider states none or no pick stands, pct computed against that. A dividend named in review: pct is uncapped, so a mid-run re-pick onto a smaller model shows the meter over 100% BEFORE the first send refuses (the endpoint's own context-length 400 is the designed refusal -- no pre-request check, nothing truncates, the failed call lands its req event, the composer keeps the line per the standing rule).
Debug mode reworked around its real purpose (skip the invite dance on a fresh server, mocks in particular): the old shape -- every request the superuser, no auth at all -- left any debug server that somehow reached a network fully open. Now one fixed superuser behind a real bearer token: minted into state/debug-token.txt (the bootstrap-invite precedent -- a raw secret on disk so a restart never invalidates what the tester already pasted; the developer ruled persist), printed at every boot, and the claim screen gains the paste path ("or paste a token": store it, verify through the public /session, land or banner). The paste path is generic surface, not debug-only: tokens are returned once and never listed, so a pasted saved token is the only browser-migration path that existed to build. The public /session carries a debug flag so the claim hint says "paste the token the server printed at boot" instead of pointing at the bootstrap file debug never mints. Debug browser passes now exercise the real auth path (the 401, the u: attribution line) instead of bypassing it.
En-route mock fidelity fix the smoke earned: the mock path never set s.usage (no provider call happens), so every usage and context surface was null under the smoke -- the first cut of the new gauge assertion failed on exactly that. The mock now carries a synthetic usage (the assembled view's chars over 4), riding the msg events like the real path's, so the detail's usage and the context gauge are smoke-assertable: contwin 524288 straight from the mock's registry input ceiling, pct computed.
Verified: typecheck green both programs; smoke ALL PASS (+1, the discovered-gauge assertion); restart + reminder checks green (5 runs again); a browser pass on --mock --debug end to end -- the wrong token banners "token rejected" and stays on claim, the printed token lands as Debug the op, the stored token survives a server restart (the persistence proof), zero console errors; check-repo clean (it caught the round's own "window" in the new README passage -- contwin is the word); the dev machine's server.json deleted and the debug server restarted on the real state (Chloe and Irene rebuilt, the token minted into the real state/). Docs: README's deployment and debug passages, the config passage, and the layout tree (the server.example.json lines gone with the file); DICTIONARY's meter and contwin entries (the config key died with the file -- the dated rename record keeps its day's words); AGENTS's server entry and the two server.json gotchas; HANDOFF's round record and the push-queue count (now eight). The developer's operator-queue line ("revisit the debug mode, hardcode loopback") is struck by them in the same commit. packages/detention stays untracked WIP, untouched.
This commit is contained in:
+52
-2
@@ -9,6 +9,56 @@ file is the "where did we leave off" map.
|
||||
|
||||
## Where we are
|
||||
|
||||
- **The debug round is BUILT and verified (2026-11-19, developer-designed
|
||||
in conversation): server.json is deleted, the bind is code, the
|
||||
debug superuser is token-gated, and the context meter reads the
|
||||
discovered contwin.** The rulings: a deployment always fronts the
|
||||
server with a proxy, so the listen address is hardcoded loopback
|
||||
with no override (an op who wants otherwise owns their own socat);
|
||||
the port rides the RP_PORT env var (the RP_BASE twin the test
|
||||
scripts use, default 7350, garbage refused loud); server.json is
|
||||
gone entirely -- it held only the dead bind and the declared
|
||||
contwin, no meaningful configuration (the developer's call,
|
||||
striking their own operator-queue line); and contwin is
|
||||
provider/model dependent, never global -- the meter derives it
|
||||
from the registry: the run's player model's input ceiling, null
|
||||
when the provider states none or no pick stands. Debug mode
|
||||
reworked around its real purpose (skip the invite dance on a fresh
|
||||
server, mocks in particular): the old shape -- every request the
|
||||
superuser, no auth at all -- left any debug server that reached a
|
||||
network fully open; now one fixed superuser behind a real bearer
|
||||
token, minted into state/debug-token.txt (the bootstrap-invite
|
||||
precedent: a raw secret on disk so a restart never invalidates
|
||||
what the tester pasted -- the developer ruled persist), printed at
|
||||
every boot, and the claim screen gains the paste path (store the
|
||||
token, verify through the public /session, land or banner) --
|
||||
generic surface, not debug-only: tokens are returned once and
|
||||
never listed, so a pasted saved token is the only
|
||||
browser-migration path that existed to build. The public /session
|
||||
carries a debug flag so the claim hint says "paste the token the
|
||||
server printed at boot" instead of pointing at the bootstrap file
|
||||
debug never mints. Debug browser passes now exercise the real
|
||||
auth path (the 401, the u: attribution line) instead of bypassing
|
||||
it. En-route mock fidelity fix the smoke earned: the mock path
|
||||
never set s.usage (no provider call happens), so every
|
||||
usage/context surface was null under the smoke -- the mock now
|
||||
carries a synthetic usage (the assembled view's chars over 4),
|
||||
riding the msg events like the real path's, so the detail's usage
|
||||
and the context gauge are smoke-assertable (+1: contwin 524288
|
||||
from the registry, pct computed). Verified: typecheck green both
|
||||
programs, smoke ALL PASS, restart + reminder checks green, a
|
||||
browser pass on --mock --debug (the wrong token banners and stays
|
||||
on claim, the printed token lands as Debug the op, the stored
|
||||
token survives a server restart, zero console errors), check-repo
|
||||
clean (it caught the round's own "window" in README -- contwin is
|
||||
the word), and the debug server restarted on the real state (2
|
||||
sessions rebuilt, the token minted into the real state/). Docs:
|
||||
README's deployment and debug passages, the config passage, the
|
||||
layout tree (the server.example.json lines gone); DICTIONARY's
|
||||
meter and contwin entries (the config key died with the file);
|
||||
AGENTS's server entry and the two server.json gotchas;
|
||||
server.example.json and the dev machine's server.json deleted.
|
||||
|
||||
- **The roles inventory is BUILT (2026-11-19, GM-designed in
|
||||
conversation): every human and LLM seat named, the repo swept to
|
||||
it.** DICTIONARY's "The people and the models" section is now the
|
||||
@@ -377,9 +427,9 @@ makes the parked short-list rule suddenly relevant).
|
||||
temp pid file; sessions rebuilt for Chloe and Irene at boot).
|
||||
state/ holds the refined registry (per-provider shape on disk,
|
||||
migrated in the no-legacy pass) and the provider config
|
||||
('llm-exan-tech', default glm-5.3 at max). Seven commits await
|
||||
('llm-exan-tech', default glm-5.3 at max). Eight commits await
|
||||
the developer's push (`bbaf336`, `5279dd3`, `eefb721`, `53f992a`,
|
||||
`14b9b01`, `e60fd63`, and this round -- the ssh key takes a
|
||||
`14b9b01`, `e60fd63`, `ccdd9ea`, and this round -- the ssh key takes a
|
||||
passphrase, pushes are the developer's).
|
||||
|
||||
## Immediate next steps, in order
|
||||
|
||||
Reference in New Issue
Block a user