docs: apply copy pass to static Markdown twins section
Move the claims file to docs/superpowers/notes/census-static-markdown-twins-claims.tsv and update its review-brief reference.
docs/site/cli.md+12 −15testdata/static-markdown-twins-claims.tsv => docs/superpowers/notes/census-static-markdown-twins-claims.tsv+0 −0docs/superpowers/reviews/OPUS-REVIEW-BRIEF-static-markdown-twins.md+1 −1
Intent
<task-notification> <task-id>a46d4063b7141e079</task-id> <tool-use-id>toolu_01J3YMrkoQ8Ym98z3vCSwZmc</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/fadfb62a-03f5-4192-bd2b-e123c5e6663f/tasks/a46d4063b7141e079.output</output-file> <status>completed</status> <summary>Agent "Whole-branch + census review" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**READY**: no P1 and no P2. **P1 / P2:** none. I ran the focused tests and they pass: the five `TestStaticMarkdown*` tests, the existing static-header, proxied-static and tag-cache tests, and `TestPlan14RootReadCensus`. **Census verdicts (tip 70cab1d6):** - `staticSite.serveFile` (body): **approve.** It does the same Open and open-file Stat as before. The only new input is a content type chosen in memory. No new read and no root decision. - `staticSite.serveTree` (body): **approve.** It picks the Markdown file only after all the existing lookups, redirects and guard checks. It adds a hard-tier check on the file actually sent, which is stricter, and a `Vary` header. The existing Stat sites are unchanged. - New `selectStaticRepresentation` (+file:Lstat, legacy accepted-legacy): **approve.** It does one Lstat of the `.md` file beside an HTML file already found inside the tree, and refuses links and anything that is not a regular file. The edge could already serve that same file to anyone who asks for `/x.md`. - Envelope `internal/edge`: **approve.** The changed tag-cache functions still read only the file that is already open, and the Accept parsing is pure. Nothing new is read, run, queried or followed. **Deferred Task 1 P3s: none must be fixed before merge.** One correction to the ledger: the empty-parameter note is wrong to say it "can only cost Markdown a win". It can also give Markdown a win. With `text/markdown;q=0.5, text/html;;q=0.9`, the HTML range is dropped and Markdown is served against the client's stated preference. RFC 9110 allows empty parameters, so the range is valid. No real client sends `;;`, so it stays P3. The fix is two lines plus two test rows, and can ride the branch if it is touched anyway. The other two deferred P3s are fine as they are: the hard-tier re-check changes no behaviour, and swapping the global tag cache in a test is not a race. **New P3s (follow-up only):** - `_headers` would erase `Vary: Accept` if `Vary` were ever allowed there. It is refused today. - The docs don't say that a Markdown range with other parameters (for example `variant=GFM`) is ignored, so such a request gets HTML. Every other fact in the docs section matches the code. - The CLAIMS file in repo-root `testdata/` makes no functional difference, but it breaks the `docs/superpowers/notes/` convention. Moving it is optional. The full review is in `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/static-markdown-twins/.superpowers/sdd/2026-11-04-static-markdown-twins/branch-review-r1.md`. Tracked files are unchanged.</result> <usage><subagent_tokens>135859</subagent_tokens><tool_uses>34</tool_uses><duration_ms>394179</duration_ms></usage> </task-notification>
diff --git a/docs/site/cli.md b/docs/site/cli.md| index 57f116931..57f8da9d1 100644 |
| --- a/docs/site/cli.md |
| +++ b/docs/site/cli.md |
| @@ -403,14 +403,11 @@ app is served only at its own platform address, so `--host` and |
| carlos deploy --temporary --ttl 3d ./dist |
| ``` |
| -#### Markdown variants for a static site (draft) |
| +#### Markdown variants for a static site |
| -<!-- DRAFT. Pending a separate copy pass. --> |
| - |
| -Ship `shop/index.html` beside `shop/index.md` to offer HTML and Markdown at |
| -`/shop/`. For a page at `/page.html`, ship `page.html` beside `page.md`. |
| -You write and ship both files. No application server or configuration switch |
| -is needed. |
| +Put `shop/index.html` beside `shop/index.md` to offer HTML and Markdown at |
| +`/shop/`. For a page at `/page.html`, put `page.html` beside `page.md`. |
| +Ship both files. No application server or configuration switch is needed. |
| The edge serves the Markdown file when the request's `Accept` header gives |
| `text/markdown` a positive quality value (`q`) strictly higher than |
| @@ -420,20 +417,20 @@ The edge serves the Markdown file when the request's `Accept` header gives |
| curl -H 'Accept: text/markdown;q=1, text/html;q=0.5' https://example.com/shop/ |
| ``` |
| -Quality defaults to 1 when `q` is omitted. A more specific media range takes |
| -precedence over a wildcard when determining each type's quality. Equal |
| -qualities, a missing `Accept` header, or neither type being acceptable all |
| -fall back to HTML. A page without a Markdown twin also keeps serving HTML. |
| -A Markdown file on its own does not create an HTML page or a directory index. |
| +If `q` is omitted, its quality is 1. A more specific media range takes |
| +precedence over a wildcard when determining each type's quality. If |
| +qualities are equal, `Accept` is missing, or neither type is acceptable, the |
| +edge serves HTML. A page without a Markdown twin continues to serve HTML. A |
| +Markdown file alone does not create a page or a directory index. |
| -Negotiated Markdown has the content type `text/markdown; charset=utf-8`. |
| -Both representations of a page with a twin include `Vary: Accept`, including |
| +The served Markdown has the content type `text/markdown; charset=utf-8`. For |
| +a page with a twin, both representations include `Vary: Accept`, including |
| HEAD, conditional and range responses. Existing `Vary` values are preserved, |
| with `Accept-Encoding` included when the response is compressed. |
| The existing slash redirects and `_redirects` rules apply before selecting |
| a representation. For example, `/shop` still redirects to `/shop/` unless |
| -your redirect rules override that behaviour. You can also request |
| +your redirect rules override that behaviour. You can request |
| `/shop/index.md` or `/page.md` directly as ordinary files. |
| #### Redirects for a static site |
diff --git a/testdata/static-markdown-twins-claims.tsv b/docs/superpowers/notes/census-static-markdown-twins-claims.tsv| similarity index 100% |
| rename from testdata/static-markdown-twins-claims.tsv |
| rename to docs/superpowers/notes/census-static-markdown-twins-claims.tsv |
diff --git a/docs/superpowers/reviews/OPUS-REVIEW-BRIEF-static-markdown-twins.md b/docs/superpowers/reviews/OPUS-REVIEW-BRIEF-static-markdown-twins.md| index 84b4ac65f..fc0fcb6ff 100644 |
| --- a/docs/superpowers/reviews/OPUS-REVIEW-BRIEF-static-markdown-twins.md |
| +++ b/docs/superpowers/reviews/OPUS-REVIEW-BRIEF-static-markdown-twins.md |
| @@ -18,7 +18,7 @@ You are an independent reviewer from the other model family than the author. Rea |
| 2. Interaction across tasks: compression wrapper order, `_headers` Vary coexistence, tunnel-served static routes still bypass the shared cache. |
| 3. Docs facts in `docs/site/cli.md` match the code. |
| 4. Census: give a verdict (approve / reject, citing the lines you read) for each unit and the envelope in `docs/superpowers/notes/census-proposal-static-markdown-twins.md`: `staticSite.serveFile` (body), `staticSite.serveTree` (body), new `selectStaticRepresentation` (+file:Lstat, legacy accepted-legacy), envelope `internal/edge`. Apply AGENTS.md's rejection rules: reject if the change lets root (or the edge) open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name, if it weakens a check, or if the diff cannot settle it. Note the edge runs as user carlos and serves tenant-shipped trees: the `.md` sibling is tenant-named content inside an extracted tree; judge whether the Lstat + regular-file check + hard-tier guard keeps it inside the existing boundary. |
| -5. The CLAIMS file sits at `testdata/static-markdown-twins-claims.tsv` (repo root); other branches keep theirs under `docs/superpowers/notes/`. Say if that matters. |
| +5. The CLAIMS file sits at `docs/superpowers/notes/census-static-markdown-twins-claims.tsv` (repo root); other branches keep theirs under `docs/superpowers/notes/`. Say if that matters. |
| ## Severity |