1.1 KiB
1.1 KiB
Discovered Rules — Finalized
Hard constraints surfaced from the project description, the empirical research, and the interview. Promoted to
memory/project.mdat the affirmation gate.
Mandated
- ALWAYS generate pure HTML5 + CSS with no build step and no external dependencies, so the result runs entirely from the local filesystem (never beyond localhost).
- ALWAYS make the rendered page printable cleanly to A4 from the browser's print dialog.
- ALWAYS fetch or read content only through user-granted means (native file
picker / drag-and-drop) when the page runs from
file://— never rely onfetch()of sibling local files, because the opaque-origin policy blocks it in stock browsers (empirically verified: plain Chromium blocksfetch('article.txt')from afile://page, while the native file picker works). - ALWAYS make the page work with zero network requests (no CDN fonts, no
remote
<script>/<style>), so it is fully functional offline fromfile://.
Forbidden
- NEVER reference content, fonts, or assets by remote URL; everything ships with the page.