# Content Visualization & Exposure Foundation Packet

**Related GitHub Issue**: jgwill/Miadi#388 (View System Refactoring)  
**Related RISE Spec**: `rispecs/view-system/view-system.spec.md`  
**Date Created**: 2026-06-01  
**Packet Status**: 🌱 Initial — three academic fields grounding the refactoring

---

## Purpose

This packet provides academic grounding for the view system refactoring (SiteChrome, ViewFilePage, raw API). The refactoring enables **three-mode content exposure** (rendered HTML, rendered Markdown, raw API) with **audience-aware UI** (distraction-free reading). This packet names the research traditions that justify these choices and explains engineering implications.

---

## Quick Reference: Fields Covered

| Field | Why It Matters | Key Concept |
|-------|---|---|
| **Information Visualization** | How to present file content to humans effectively | Progressive disclosure + visual hierarchy |
| **Content Format Negotiation** | Serving the same content in multiple formats to different consumers | Content negotiation (HTTP Accept header pattern) + API-first design |
| **Reading Interfaces & Cognitive Load** | How distraction-free UI supports comprehension and retention | Minimize extraneous load; hide chrome when reading |

---

## Packet Contents

**Full Fields**:
- **`context-layer.md`** — Shared framing, MECE field decomposition, canonical terms
- **`intent-understanding.md`** — Why the view system refactoring exists, desired outcomes, structural tension
- **`information-visualization.md`** — Progressive disclosure, visual hierarchy, Shneiderman's mantra
- **`source-ledger.yaml`** — Complete source list with DOIs, URLs, verification status

**Stub Fields** (tensions identified, sources scoped, future resolution deferred):
- **`content-format-negotiation.stub.md`** — REST patterns, HTTP content negotiation, multi-format serving
- **`reading-interfaces.stub.md`** — Cognitive load theory, distraction-free design, validation gaps

**Strategic Connector** (bridges micro-level and macro-level):
- **`intent-representation-strategies.md`** — Links view system's three modes to `miaco decompose run`'s three strategies

---

## For Quick Implementation Reference

Engineers implementing the view system should focus on:
1. **Distraction-free chrome** (SiteChrome hiding navbar on `/v` routes) — supported by cognitive load research
2. **Three rendering modes** (HTML iframe, Markdown component, raw API) — content negotiation pattern
3. **Safe path handling** — extension whitelist as a security gate
4. **Audience awareness** — different UI for different consumption contexts

See `intent-understanding.md` and field documents for full reasoning.

---

## Design Notes

**Stub Fields**: Rather than resolve all tensions immediately, stub fields (`.stub.md`) identify tensions, reference sources, and defer resolution. This keeps the foundations packet lean while remaining grounded in recognized fields.

**Strategic Connector**: `intent-representation-strategies.md` bridges this micro-level work (view system) to the macro-level CLI (`miaco decompose run`), showing how the same principle—**intent → multiple representations → audience selection**—manifests across contexts.

## Next Steps

- [ ] Live-verify sources (URLs, DOIs) in `source-ledger.yaml` — currently training-knowledge
- [ ] Resolve `content-format-negotiation.stub.md` if REST evolution becomes critical
- [ ] Resolve `reading-interfaces.stub.md` if user testing reveals comprehension gaps
- [ ] Explore unification: Can intent representation strategies become a unified language across view system and decomposition tools?
- [ ] Cross-index with `foundations/knowledge-organization-archives-and-provenance/` if archival becomes relevant
