From 9cfc150f2c4557640b687a28a02f9b034269d566 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Wed, 14 Oct 2026 23:02:50 -0500 Subject: [PATCH] docs(capsite): UX map and checklist after first use on bldbox The map predates search (1d) and showed no way to the public page once the created page is gone; add both, and private search, which has no home yet. 1h tracks the alignment work the map was input to. Goal 5 now records the bldbox deployment instead of wrangler deploy. Co-Authored-By: Claude Opus 5.5 (1M context) --- capsite-checklist.md | 18 ++++++++++-------- capsite-notes.md | 10 ++++++++++ 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/capsite-checklist.md b/capsite-checklist.md index df65dd6..ce9415b 100644 --- a/capsite-checklist.md +++ b/capsite-checklist.md @@ -89,6 +89,12 @@ narrative. [the issues sketch](potluck/issues-sketch.md))? If the policy changes, stripping stored rows is a durable-state migration. + - [ ] **1h. Align the UX with the RPC interface: every action findable, under the authority it needs.** Map and misalignments: [the UX map](capsite-notes.md#diigo-cache-ux-map-2026-10-07). First use on bldbox (2026-10-14) found search but no way there. + - [ ] 1h-i. Home links each public page in the username index. + - [ ] 1h-ii. The webkey page links its public companion's page. + - [ ] 1h-iii. Search private bookmarks from the webkey page: the 1d filters over the private cache's `items`, by RPC held by the cache key. + - [ ] 1h-iv. Publish and dump move from HTTP form routes to the webkey page's RPC. + - [ ] **2. potluck reads the public cache**: public data, so no capability, no cookie, no secret on potluck's side. The [diigo-week](diigo-week/README.md) plugin reads `GET /public/dckc-madmode?in=&by=created` as microformats (an `h-feed` of `h-entry` bookmarks). Working in dev 2026-10-09; 2-iii postponed. - [x] 2-i. Transport: the `DIIGO_CACHE` service binding in potluck's `wrangler.jsonc`, in dev too: the plugin's `ctx.http.fetch` refuses localhost (EmDash's SSRF guard), and a binding names one worker, not a host. - [x] 2-ii. The page's microformats are the contract: diigo-cache's tests parse it with microformats-parser; diigo-week's tests read fixtures in the same markup. @@ -99,14 +105,10 @@ narrative. - [ ] **4b. Consider scruffier tags.** EmDash tags are taxonomy terms (rows that must exist before use); diigo-week auto-creates them, so drafting feels scruffy, but the model is neat. Alternative: the inline `/tag/` links in issue bodies *are* the tags (matching the microformats `p-category` reading), and potluck's `/tag/` page finds issues by scanning bodies. Cost: no EmDash tag field or index; a scan over a few dozen issues a year is cheap. Open: does the admin's tag field let you type a new tag inline? - - [ ] **5. Deployed end-to-end** (order matters): - - [ ] 5-i. webapp: `cd webapp && npx wrangler deploy` - - [ ] 5-ii. diigo-cache: rate-limit `/api` (and `/public/*`) first - (diigo-cache CONTRIBUTING, "Deployment concern"); deploy; create - against prod (ids → password manager; no worker secret); - run the fill job. - - [ ] 5-iii. madmode: deploy with the service binding; the - weekly page renders against prod. + - [ ] **5. Deployed end-to-end**: on bldbox, tailnet only, not Cloudflare: diigo binds the cookie to the IP it was issued to ([operator docs](diigo-cache/doc/README.md)). + - [x] 5-i. webapp and diigo-cache in one workerd under systemd, via [the flake](diigo-cache/flake.nix); behind `tailscale serve` at `https://bldbox.tail09e44.ts.net/`. 2026-10-14. + - [x] 5-ii. Create against prod: cookie from a browser on bldbox, wired public, filled 168 pages. 2026-10-14. Rate limiting `/api` waits while only the tailnet reaches it ([open issue 4](diigo-cache/doc/open-issues.md)). + - [ ] 5-iii. madmode/potluck reads the public page from prod: no service binding off Cloudflare ([open issue 5](diigo-cache/doc/open-issues.md)). - [ ] **6. Cookie expiry**: when diigo's session ends, head refreshes fail; the public page keeps serving what's stored (say so on the page, don't fail silently). Rotation is manual: re-mint via diff --git a/capsite-notes.md b/capsite-notes.md index e70c3c1..8b44b02 100644 --- a/capsite-notes.md +++ b/capsite-notes.md @@ -47,6 +47,7 @@ flowchart LR login["/cache/ login
(password manager)"] admin["webkey page
/cache/ + key in fragment"] public["/public/username
(anyone)"] + search["/public/username?q=…&in=…
search, date windows"] home -->|create| connect connect -->|"POST /_mint (cookie)"| wire @@ -59,8 +60,12 @@ flowchart LR home -->|"dump: POST / (cache id + page)"| home admin -->|"api.cache(key) …"| admin created -->|"link (public mode)"| public + public -->|"GET form"| search + search -->|"GET form"| search ``` +Updated 2026-10-14. There's no edge from home to public: once the created page is gone, you reach your public page only by typing its URL. + | action | where | transport | authority | |---|---|---|---| | mint the diigo session | `/_connect` | HTTP `POST /_mint` (relays webapp's form) | the cookie | @@ -73,6 +78,9 @@ flowchart LR | …of the public companion | webkey page | RPC `publicCache().…` | cache key | | invalidate the last N days | webkey page | RPC `invalidateRecent(days)` | cache key | | read public bookmarks | `/public/` | HTTP GET (HTML or JSON) ⚠ | none | +| search, date windows (1d) | `/public/` | HTTP GET `q`, `days`, `in`, `after`, `before`, `by` | none | +| find your public page | — ⚠ | — | none (the username index knows it) | +| search private bookmarks | — ⚠ | — | cache key | | bulk dump for another worker | — | service binding `DiigoBridge.dumpNdjson` | worker config | ⚠ misalignments: @@ -81,6 +89,8 @@ flowchart LR - ~~the public page can write~~ — resolved: it reads only through the read-only `viewer()` facet; unfetched pages say so - the webkey page has no dump or publish; the home page has no fill +- (2026-10-14, first use on bldbox) nothing links to `/public/`: home doesn't list the username index, and the webkey page doesn't link its public companion's page +- search exists only on the public page; the private cache, which holds every item, has the raw page dump and nothing else. Private search belongs on the webkey page, held by the cache key (an RPC over the same `items` query `viewer()` runs) ## Native-plugin wiring (the part that took a while)