Repository navigation
relay: purge fixture vendors and refuse them at the door - #1167
Merged
Merged
Conversation
The purge test drives a fake KV holding six sheet keys — two whose model vendor is `crew`, one whose judge vendor is `other`, three clean — and checks that a dry run lists exactly the three and a delete run removes exactly them, leaving the clean keys and the day's `seen/` and quota keys; a publish over the purged store then carries no `other/judge` judge. The schema test checks that an allowed-vendor set refuses a model or judge vendor it does not name, naming the field, and that with no set configured every vendor passes. Both fail on this branch: the purge module does not exist yet, and validateRow takes no vendor set. Co-Authored-By: codeaf <[email protected]>
`relay/src/purge.js` lists the `sheet/` keys whose model or judge vendor is in a given set and deletes them, reading the same key shape the publish path folds and answering the same list/delete calls the Worker's binding and the fake KV both provide; `relay/tools/purge.js` is a thin wrapper that drives `wrangler kv key list` and `wrangler kv key delete` through it, printing the keys under `--dry-run` and the count otherwise. `validateRow` gains a third argument, an allowed-vendor set applied to the model and the judge vendors, each refusal naming its field; a null set leaves the rule off. `worker.js` reads the set from `ALLOWED_VENDORS` through a new `listVar` beside `intVar`, so an unset or blank variable refuses nothing. Co-Authored-By: codeaf <[email protected]>
`wrangler.toml` comments `ALLOWED_VENDORS` into `[vars]` beside the other relay variables, and `docs/design/model-pool/RUNBOOK.md` gains one step for the variable (set it, unset it, and where to read the vendors from since nothing in `relay/` names them) and one for the purge (dry run, then delete, then trigger a publish). The change note carries the placeholder pull-request number until the pull request exists. Co-Authored-By: codeaf <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This was referenced Sep 18, 2026
AbirAbbas
added a commit
that referenced
this pull request
Sep 18, 2026
… custom connections (#1194) Lands the integration branch santos/dev (#1108, head 6db5125, 152 commits over dev) on dev as one squash, plus two fixes that kept its touched-packages job red: the pool start-up test empties the CI word it is not about (649bb4b), and a zombie leader no longer keeps a job's process group alive on Linux, which had delayed every finished background job by the two-second termination grace since #1155 (053e6a9). #1108 carries the full account; the 94 change entries under docs/changes/unreleased/ are the per-change record. The commits folded in, oldest first: 5c413ef Keep archived evidence readable while tasks finish 3705a0c Document recovery evidence retrieval change 7834cc7 tui3, manual: a question's own answer box answers to the whole caret vocabulary 99d66e9 task: Add open/all source toggle to crew config c1e4cb5 docs: the change entry for the crew model family toggle e63b439 crew: round-1 review fixes 304a5a2 crew: round-2 review fix 65477c0 task: Add open/all selector to /crew TUI picker 9189ef7 Merge branch 'task/add-open-all-selector-to-crew-tu-9e8cc0' into feat/crew-open-all-toggle ba9c12d crew: reconcile the picker onto config's source helpers ea05bc0 crew: a chosen family counts as an answered crew e1a037e Merge remote-tracking branch 'origin/dev' into feat/crew-open-all-toggle f6c2924 crew: the open table takes the picks we landed on eff44b5 docs: the change entry carries the open-table move and the family gate 71ce9be crew: the family reaches the fallback, the settings skin, and the row's line b8ca5f5 crew: round-1 review fixes on the new table 8db5708 crew: round-2 review fixes ce9759e crew: round-3 review fixes 956e1f5 crew: round-4 review fixes 37ad27f crew: fixes from the first Opus round 6ffb958 crew: the fixes from the Opus confirmation round 72b0274 crew: the comments the atomic write left behind 70d0e20 crew: round-four fixes from the Opus review 234300e Merge branch 'dev' into feat/crew-open-all-toggle 894292f crew: round-five fixes from the Opus review fba77f9 An answered landing carries its answer's fate when it is raised again, and an in-flight settle holds the question down (#1077) e694450 Changelog entry for the landing-answer fate (#1086) 64ab7ea crew: round-six fixes from the Opus review 0700164 crew: round-seven fixes from the Opus review af09aa8 The review round's four findings: claim ownership, decider changes, recordable answers, plain words c24af02 crew: round-eight fixes from the Opus review 289d372 The tests the landing's answer carries: fate, hold-down, redraw, claim doors 7e38346 The take-down comes before every mint, and the tui3 walk reads the newest card dbe1be0 The review rounds' last word: the release owns its claim, and the docs say what the code does 4cc4945 The Opus review: a release owns its generation, and every failed round still says its word a5cce0d The done card says who is deciding, so the clause is a duplication, not the fact 6bd276e Merge fix/1077-landing-reraise into santos/dev 2710169 Merge feat/crew-open-all-toggle into santos/dev b459399 Merge fix/question-answer-box-caret-keys into santos/dev a384920 Merge codex/recovery-evidence into santos/dev dc22e64 cmd/codeaf: the role-door tests read the shipped mastermind instead of a copy of it 39f528f release: the pin-example check reads the guide the examples moved to 6439d3c session, tui3: gofmt the three files santos/dev merged unformatted 8540379 tui3: a question's answer box kills to the end of the line on ctrl+k d93ec61 session: the late-attach proposal test holds the work until the replay is read a81ead4 session: the landing-fate tests read today's clock instead of a fixed date 8fe4fff provider: the retry-avoid list rides the call's context into the knobs a266da3 provider: the retry-avoid veto narrows the wire through one field law 197d893 exec: a node retry asks the router to avoid the lanes that failed it 2d02cc0 provider: the set-servable law's doc comment keeps its paragraph break e1d0e75 exec: the retry test names its helper and spells its wall in time units e7d65a5 docs: the change note for the retry that avoids the failed upstream 11decbd Merge fix/provider-failover into santos/dev c099a51 Merge dev into santos/dev e47d92b provider, exec: the lane a failure names is a wire fact provider reads (#1105) 396be97 Merge dev into santos/dev 3b97f50 Merge dev into santos/dev ea3b5c9 telemetry: the send path drops events that cannot name their version 573b288 cmd/codeaf: keep smoke runs from sending usage counts e8d627c docs: the change note for the usage-count audit fixes 11bec8d chat: a hosted session's usage counts are read off the events it receives b9d75b3 chat: the hosted-count tee is tested against the tally it must produce 39fa08d telemetry: stamp a version in the lifecycle tests 681e2ad chat: count the hosted boot agent once, and conversations opened beside 825ef2c connect, settings: named, multiple, switchable custom connections (#1092) f4d3f9a Merge branch 'dev' into fix/telemetry-audit 76fec37 ci: the Model Pool mirror workflow and the signature check it runs 2fb296b crew: Pareto crewing, the learned picker and the Model Pool (#1093) a065ebb Merge remote-tracking branch 'origin/dev' into santos/dev 80ac250 Merge remote-tracking branch 'origin/feat/pool-mirror-workflow' into santos/dev 6092393 Merge remote-tracking branch 'origin/fix/telemetry-audit' into santos/dev ef808dd session: a decision card under --yolo takes its default (#1117) 70a9e1f session: a task's thread stops its parts before it closes, and a machinery cut says so (#1118) c4df8f3 crew: an auto seat's rung names the pick that ran, once, for both doors (#1119) a9fcf9b crew: a bare auto row under picked from = catalog reads the catalog's figures alone (#1120) 13be0dc relay: accept the exec and run doors, not only task and do (#1121) 90f29ae changes: name the #1120 note by its PR and stamp the pr field 0b77926 do: seat from the settings the run will use (#1122) 32148d8 changes: stamp pr: 1120 on the #1120 note 113ed62 pool: a launch's start-up errands stop when the process closes (#1124) 6c98ddc verify, codeaf: a launch compiles fewer patterns and a surface holds fewer Ps (#1125) 50fe6a3 pool: the min_installs floor counts installs on the client (#1127) 076cde8 relay: fold a resubmitted row once by its nonce (#1128) 8339ae7 relay: carry the acceptable metric beside role_quality (#1129) 0367c44 outbox: a refused row leaves the outbox and the rest of its batch is sent (#1130) 09aecd2 relay: the index holds only the cells that meet the min_installs floor (#1131) ae7c05d outbox: a Send compacts the file to the rows it still holds (#1133) 9e24f72 pool: the errand tracker's critical sections unlock from a defer (#1134) 358a569 relay: fold a submit batch with one read and one write per distinct cell and day (#1136) a1d2eb1 pool: judge landed-but-unjudged runs on the next chat start (#1132) 3c67228 verify: take the finished-tree check at a project cloned into a subdirectory (#1135) 263625b exec: a headless run leaves a pending judge record at its tail (#1137) 8be373d run: the headless task door leaves a pending judge record (#1138) a336b24 do: leave a pending landing for the Model Pool's judge (#1139) 8820a56 cmd/codeaf: one readPendingRows test helper, not two (#1140) 49760fb pool: show and verify print both metrics the index carries (#1141) 6eaeb25 pool: status shows the pending judge records and the last sweep (#1142) 7c00b5f codeaf: a test's crash fixture stays in a profile the test owns (#1145) fc2eb35 manual: the status row's ledger is the tree's, not the conversation's (#1143) a06b53a test: pin the delivery gate over a grown job root (#1147) 7231347 resident: the wall refuses a first replan round it cannot hold (#1144) 5e25755 cmd/codeaf: the package's test floor clears a profile the environment named 4dd1c56 Revert "cmd/codeaf: the package's test floor clears a profile the environment named" 9075f86 pool: the seed index is regenerated from the relay by seedgen (#1148) a5c44f3 pool: show --cells lists the held index's cells with installs and dims (#1149) 8259967 cmd/codeaf: the package test floor clears a profile the environment named (#1150) 81568aa session: report gitignored build products a run leaves, without gating on them (#1152) da49105 internal/tui3: the opening hint test owns its profile and pins both doors 72de3bc docs/changes: #1151 — the opening hint test owns its profile 499083d Revert "docs/changes: #1151 — the opening hint test owns its profile" beb31ec Revert "internal/tui3: the opening hint test owns its profile and pins both doors" 25b8b7d version: an unstamped binary names the condition, not a Makefile target (#1151) c833b42 pool: a dropped row keeps the relay's reason and status shows it (#1154) cbb7d6d processgroup: verify a job group's identity before signalling it (#1155) efe498e internal/tui3: the opening hint test owns its profile and pins both doors (#1153) 17b3b0e do: a continuation continues the plan it has instead of re-planning (#1156) 22cf3ce changes: correct the #1155 and #1156 notes' pr fields (#1157) 8e85b0f cmd/codeaf: a surface runs under a soft memory limit drawn from the machine (#1158) ef1e927 task: status row accounting (#1159) 44f572e pool: status's index line says what this run's fetch did to the cache (#1161) 3600fc9 pool: the pool's copy of a seat's id is the bare vendor/id (#1163) a2ebd13 cmd/codeaf: no test can push pool rows to the default relay (#1164) 4fb7f05 docs: the road a chat door bash push took under --yolo (#1160) 69219a1 cmd/codeaf: the soft memory limit is the smallest real bound, not the host s memory (#1162) 2b155b4 relay: bound judge severity, clamp adjusted scores, publish mean and sd on one scale (#1165) 2fb5532 relay: purge fixture vendors and refuse them at the door (#1167) 5750418 exec: a job's shell cannot reach the tmux server hosting codeaf (#1166) eb7b465 internal/session: an unattended run may not move a branch it did not create (#1168) 80f7706 pool: status says the identity, the judged total and that nothing has landed (#1169) 1cb7333 exec: an exec run's worker spend reaches the usage ledger (#1170) 96bb940 changes: the #1169 note's title parses and reads as one line (#1172) 627236d config: the task door honors a stored crew word, and a pin survives the learned pick (#1171) 593092b internal/tui3: a test may not read a profile it did not create (#1173) ad8be1e session: a landing card under --yolo takes its default instead of parking the run (#1174) 03d49a6 gitignore: the .furrow ids the engine writes into a workspace (#1175) 46edbdd internal/tui3: gofmt the profile-law helpers from #1173 (#1176) 3179e36 relay: ALLOWED_VENDORS names the catalog's vendors and codeaf (#1177) 397a145 docs: why a settled /task leaves commits on task/<slug>, not the worktree branch (#1178) 915ff3a pool: regenerate the seed index from the relay's first clean publish (#1180) d9b4243 cmd/codeaf: the model warm stops when the process closes (#1179) bd2dcf3 session: the auditor's calls say they are the auditor's and which node they check (#1181) c6ed47c task: json unverified branch (#1182) 360352a session: a settle turn runs under the checker's own bound, not the run's wall (#1183) 814e1af session: the tasks text and record line name a failed/unverified node's kept branch and verdict (#1184) 7c25a26 internal/session: the identical-effects test stops riding the turn guard (#1185) 6e7d0ed cmd/codeaf: exec and run envelopes name a non-verified node's kept branch and verdict (#1186) f4079d7 session: bound a worker's park on a promoted command (#1187) 994689f docs: the model pool runbook names the Workers Paid plan and what it costs (#1188) c315be1 docs: the runbook's plan line says metered, not capped, and nothing more (#1189) 2e80c60 internal/tui3: the status word says working while a task subtree turns (#1191) 99363ca session: bound a job subtree's CPU and process count (#1190) 6db5125 docs: what the audit check seat can execute, and where that boundary is set (#1192) 649bb4b cmd/codeaf: the pool start-up test empties the CI word it is not about 053e6a9 processgroup: a zombie leader does not keep a job's group alive b4e66f5 docs/changes: the entry for #1194 Co-Authored-By: Santosh kumar <[email protected]> Co-Authored-By: Claude Fable 5.1 <[email protected]>
santoshkumarradha
added a commit
that referenced
this pull request
Oct 25, 2026
* tui3, config: the gate row lands on the conversation you are in, and /status names the gate (#1063) The three Safety rows — `ask before running`, the tool exceptions and the shell command rules — wrote the profile and left the running gate alone, while the YOLO badge read that profile live. So the badge and the gate disagreed in both directions: `allow` lit the badge over a gate that kept asking, and `prompt` put it out over a gate that was still wide open, which is the false-safety claim #322 and #325 exist to prevent. `applySetting` now pushes those three rows through `ApplyApprovals` — the seam /permissions already drops a banked rule through — and refreshes the badge on the same keystroke, on the branch where the push landed. A rebuild that could not be done is said out loud on the panel's foot line in /permissions' own words, `saved · from the next session`, and the badge stays with the gate in force rather than following the file. And /status carries the posture it never carried: `approvals prompt`, `allow` or `deny`, in the `ask before runn
What
Two things under
relay/:relay/src/purge.jsselects thesheet/<install>/<day>/<cellKey>keys whose model or judge vendor is in a named set (both cellKey shapes read) and lists or deletes them through the two calls the Worker's KV binding and the tests' fake KV both answer.relay/tools/purge.jsis the thin wrapper overwrangler kv key list/wrangler kv key delete(--vendorrepeatable,--dry-runprints the keys, otherwise deletes and prints the count;--binding,--prefix,--local).seen/and quota keys are untouched. The publishedjudgeslist is derived from stored keys, so a purge followed by a publish drops the judge.validateRow(line, now, vendors)refuses a row whose model or judge vendor is not in the set, naming the field;worker.jsreads the set fromALLOWED_VENDORS(comma/space-separated, lowercased) through alistVarbesideintVar. Unset or blank, the rule is off and every vendor passes as before.RUNBOOK: two operator steps (set the variable from the vendors the published index already carries; dry-run, delete, publish).
wrangler.toml: a commentedALLOWED_VENDORS.Why
Fixture rows (model vendor
crew, judge vendorother) reached the public pool from a package test and keep refolding into every publish; nothing in the relay could refuse them or remove them short of onewrangler kv key deleteper key.Testing
On the Spark host, fresh clone of
task/c209-relay-purgeatafd9a0d07(on santos/dev 2b155b4), log~/src/trees/check-afd9a0d07.log:New tests: the purge lists and deletes only the sheet keys carrying a fixture vendor and a publish drops the judge; with
ALLOWED_VENDORSset the relay refuses a row whose vendor is not named;validateRowwith and without an allowed set.🤖 Generated with Claude Code