gunk-dev/the-valley
the-valley:bd-db6aaa2bugclosed

The web docs call the publisher unbuilt and keep its mechanisms in the reference

State
done
Created
2026-10-26 by contributor
Source
2026-10-26, review of the web UI on main at ac8c5f17

Body

The docs on the web UI lag and misplace what landed:
- `docs/architecture.md`'s status table says the publisher, upload handler and service are not built, and its parts list says nothing deploys. `valley-web-publish`, `nixosModules.webui-publisher` and `webui-publisher-e2e` are on main. As built: valley-web serves an export; `services.valley.webPublisher` runs `valley-web-publish` on a timer, off by default; the receiver's HTTP handlers and a valley-web service are not built.
- `docs/reference.md` carries mechanisms: the publisher's pass, the one-instance reasoning, the sandbox, consistent reads, one generation per request, read workers, admission and response budgets. They belong in `docs/architecture.md`; flags, routes and limits stay in the reference.
- `docs/security.md` says nothing of the web's trust model: the `<instance>/web-export` key, the receiver pinning its verifier line, the anonymous read surface, the publisher's sandbox.
- The reference says the publisher checks `--max-storage` twice; the code also checks before cache staging and around each CLI command.
- The reference's table marks `project.visibility` optional; `schema/web.cue` requires it once `project` is present.
- Duplicated facts: the visibility rule appears twice in the reference; approval reuse is explained in five places.
- Prose: "A failure to read is not a private project"; curly apostrophes in the reference's publisher section.
- Messages in `valley-web-publish`: "--recheck is not negative" says the opposite of the problem; `upload.go` says "the pass waits for the clock" on the branch that fails without waiting; a broken line wrap in `--help`.

The publisher's and server's open bugs change some of these mechanisms, so the move into the architecture can follow those fixes; the status table and the messages need not wait.

Fixed when the docs describe what is built, mechanisms are in the architecture, the trust model is in the security doc, and the messages say what happens.

Source: 2026-10-26, review of the web UI and the docs pass as landed on main at `ac8c5f17`.

Comments

  1. contributor2026-10-27 20:36 UTC
    Fixed with change ozww v5 (85752272, oc-eee7823) on 2026-10-27. The status table and parts list were already current; ozww moved the one-instance and consistent-reads mechanisms into the architecture, added the web publisher's trust model to the security doc, corrected the --max-storage description and the curly apostrophes, and rewrote the three publisher messages. Approval reuse is still explained in the guide and the architecture, each in its own context, which is outside the web docs.