pki.sgit.ai / packs / map-your-case / architecture

04 — Architecture

PackMap Your Case: The Grant–Mandate Delta, Mapped By Its Owner RoleWeb components without shadow DOM, one state owner, and storage that treats its own absence as a case Date21 August 2026 · draft-1 + change control OriginSite agent, this repo Sourceraw markdown · on GitHub

Summary

The page as engineering: seven JS files with one-line jobs, six custom elements that are seams rather than boundaries (no shadow DOM — the site's stylesheet should reach in), bubbling CustomEvents up and state down through a single owner in app.js, and a hand-rolled SVG renderer because a chart library is a third-party request. store.js handles storage's three failure modes explicitly, including the opaque-origin case a downloaded copy hits. The v1 lesson stands behind the layout: one large HTML page with everything inline was named in the correction memo, and the v2 split is what made design changes reviewable as diffs of one file.

Key concepts

Key ideas

Read the document

📄 Pack document · 04__architecture.md · rendered from the raw markdown (the source of truth)