Skip to content

docs(spec): record review item 12, PDFs keep the sandbox - #77

Merged
bketelsen merged 1 commit into
mainfrom
docs/pdf-review-item-12
Nov 13, 2026
Merged

bketelsen merged 1 commit into
mainfrom
docs/pdf-review-item-12

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

lodge-http.md still said Verify review item 12 in Phase 2: does Chrome's viewer show a PDF that lodge-content serves with sandbox? That check is answered in frostnotes' plan 0006, Open questions (frostyard/frostnotes#231, 2026-11-13): a 1-page PDF served with this spec's content headers, sandbox included, opened as a top-level page in Chromium 156 on Linux, and the viewer drew it as it does without the headers (only the page thumbnail stayed blank).

Checked against main at 99263d2: lodge's content policy does not depend on the Content-Type. ContentPolicy in internal/gateway/headers.go takes only contentLinks, and contentHeaders adds it to every content response, so a PDF gets sandbox like any other file. TestContentProxy and TestContentLinksPolicy pin the policy string.

This PR:

  • docs/specs/lodge-http.md: the PDF line now states the fact (no exception; the policy is the same for every type), links the code and the frostnotes record, and keeps the check's limits (loopback, not through lodge, not the user's Chrome). The download link becomes an option ("may"), as notes offers it. The contract itself does not change.
  • docs/plans/0001-roadmap.md (Phase 2's device checks) and docs/design/overview.md (status) say the PDF part is answered. Images and media in a new tab stay open in the roadmap.

ADR-0010 is Accepted and stays as written; it already defers the decision to this spec.

Risk tier

Risk tier: 1 — docs only (1 spec, 1 plan, 1 design doc); no path in .github/risk-paths.json at L1 or L2.

Docs housekeeping

  • Cross-links added in both directions: the roadmap and the overview link lodge-http.md#content-routes, which the spec already reaches from ADR-0010 and the overview.

Verification

  • make check green (host), at 9e60961.

Cross-review

  • Reviewer openai/gpt-6.1-sol, coder anthropic/claude-opus-5-5.
  • Review 1 at 9e60961 (base 99263d2, all 3 files): Ready, Blocking: none, findings: none. It confirmed that ContentPolicy and contentHeaders do not read Content-Type, that the text matches frostnotes plan 0006 (at c3194a7) with its limits, that the links and anchors resolve, and that no other current doc contradicts the change (ADR-0010's pending wording is historical in an Accepted ADR).
  • Revert test: exempt (docs only, no new behavior).

Chromium's viewer draws a PDF served with lodge-content's headers,
sandbox included (frostnotes plan 0006, 2026-11-13). lodge's content
policy does not depend on the Content-Type, so no PDF exception is
pinned. The roadmap and the overview say the same.
@github-actions github-actions Bot added the level:L3 Skim label Nov 13, 2026
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 13, 2026
@bketelsen
bketelsen merged commit 8929f4d into main Nov 13, 2026
11 checks passed
@bketelsen
bketelsen deleted the docs/pdf-review-item-12 branch November 13, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L3 Skim ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants