Repository navigation
docs(spec): record review item 12, PDFs keep the sandbox - #77
Merged
Merged
Conversation
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.
bketelsen
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lodge-http.md still said Verify review item 12 in Phase 2: does Chrome's viewer show a PDF that
lodge-contentserves withsandbox? 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,sandboxincluded, 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
mainat 99263d2: lodge's content policy does not depend on theContent-Type.ContentPolicyininternal/gateway/headers.gotakes onlycontentLinks, andcontentHeadersadds it to every content response, so a PDF getssandboxlike any other file.TestContentProxyandTestContentLinksPolicypin 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) anddocs/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.jsonat L1 or L2.Docs housekeeping
lodge-http.md#content-routes, which the spec already reaches from ADR-0010 and the overview.Verification
make checkgreen (host), at 9e60961.Cross-review
openai/gpt-6.1-sol, coderanthropic/claude-opus-5-5.ContentPolicyandcontentHeadersdo not readContent-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).