commit da5b492a064a23249e0e98a4ce145dfa83f693a6
parent f883c93a0e0fbde96edf72ad4582ab05b3afe1fc
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 10 Oct 2026 17:28:55 -0400
plans: release 24 H6 — pnpm ops site-config, as shipped
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/plans/release-24.md b/plans/release-24.md
@@ -153,6 +153,29 @@ the page itself once its result has landed, so the confirmation never waits on a
reducer: `server-action-reducer.js` resolves the action early, and React holds the state for the entangled
navigation.
+### H6, as shipped — `pnpm ops site-config` (added by the orchestrator)
+
+`POST /api/ops/site-config` (`editor/app/api/ops/site-config/route.ts`, behind the worker token through `ops()`, like
+`channel-config`) and the ops action `site-config`. The body is `{"siteId", "citedChannels"?: [slug…], "publishAuto"?:
+"off" | "build" | "preview" | "production"}` and needs at least one of the two. Only those keys for now.
+
+- **Written through `patchSite`** (`common/lib/site.ts`), so through `writeSite`, the validation the site form's save
+ gets:
+ - A slug the pool already holds is dropped from `citedChannels` (`siteToDisk` re-parses).
+ - `[]` clears the scope; the key is not written.
+ - A deploying policy on a site with no `cloudflareProject` is refused in `sitePublishProblem`'s words.
+ - A private site's policy is clamped to `build`.
+ - `"off"` removes the `publish` key.
+- **Refused before anything is written**, each as a 400 naming the problem:
+ - an unknown key (the allow-list);
+ - an invalid or unknown site id;
+ - a slug that is not a valid channel slug, or not a channel (`channelExists`);
+ - a policy outside the four;
+ - a body with neither key.
+- **Answer:** `{ok, siteId, citedChannels, publishAuto}`, as saved.
+- **Docs:** the CLI's `usage()` paragraph and two header examples. COMMANDS.md is regenerated (`archilyzer docs cli`;
+ `--check` clean). OPERATING.md "Publish" gains the recipe line, and the editor changelog gains a bullet.
+
### Commits
| Commit | What |
@@ -163,7 +186,9 @@ the page itself once its result has landed, so the confirmation never waits on a
| — | H4: no commit (release 19 B5 `10042c2d` fixed it; verified above) |
| `c2840cf1` | `plans:` this record; `editor/CHANGELOG.md` (two bullets at the start of `[Unreleased]`) |
| `0e887173` | `editor:` H5 — the four `/sites` writers save without revalidating (`seedAfterSave`, `useRefreshAfterSave`); the sites-crud test; a changelog bullet |
-| this commit | `plans:` the H5 record |
+| `3cb4ad5f` | `plans:` the H5 record |
+| `d81b8aff` | `editor, scripts:` H6 — `POST /api/ops/site-config` + test, the ops action, COMMANDS.md, OPERATING.md, the changelog |
+| this commit | `plans:` the H6 record |
### Gates
@@ -182,4 +207,6 @@ the page itself once its result has landed, so the confirmation never waits on a
| H5: `pnpm e2e sites-crud.spec.ts --repeat-each=3` (start mode) before the fix | 53 passed, 4 failed (a first, wrong fix); then 56 + 1 failed (`:588`); then 56 + 1 failed (`:126`): the same stall each time |
| H5: the same, after `0e887173` | 57/57 (58.6 s), and again 57/57 (55.3 s) |
| H5: the untracked diagnostic spec, 30 hub saves on the fixed build | 30 under 400 ms (before: 1 in 18 at ~5.9 s) |
+| H6: `site-config/route.test.ts` | 3/3. Covered: setting the cited scope, dropping a pooled slug, deduping and clearing with `[]`; `publishAuto` round-tripping all four policies; a deploying policy with no Pages project refused, nothing written; a private site clamped to build; both keys in one call; ten refusals with nothing written; 401 without the token |
+| H6: tsc; editor unit; `node --test scripts/archilyzer-ops.test.mjs`; `docs cli --check` | clean; 250/250; 63/63; clean |
| counts-only privacy greps over `72c44159..` (home paths, the operator's names and email, session links and trailers) | 0 each |