docs(super): design the-system
5c99033b3a9fd65d660715698f5e32a6f3692220
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: c1a5d3fc5f28
bugabingas pi extensions
5c99033b3a9fd65d660715698f5e32a6f3692220
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+595 / −0 text lines
new file mode 100644+167 / −0 text lines
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Nugu semantic dossier</title><style>:root { color-scheme: light dark; --fg: #121212; --page: #ededed; --panel: #dbdbdb; --accent: #ae2eae; --ui-accent: #922792; --minor: #3b3b3b; --focus: #184e5b; --important: #4f3c69; --error: #bd172e; --warning: #6e6c10; --info: #116477; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--fg); background: var(--page);}@media (prefers-color-scheme: dark) { :root { --fg: #ededed; --page: #121212; --panel: #242424; --accent: #d151d1; --ui-accent: #d86dd8; --minor: #8b8b8b; --focus: #7ba1aa; --important: #dfd3f3; --error: #ec6376; --warning: #f0ee69; --info: #3ec5e3; }}* { box-sizing: border-box; }body { margin: 0; padding: 1rem; }.doc { background: var(--page); border: 3px solid var(--fg); box-shadow: 9px 9px 0 var(--ui-accent); max-width: 780px; margin: 0 auto;}.mast { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: clamp(.85rem, 3vw, 1.3rem); border-bottom: 3px solid var(--fg); background: var(--panel);}.k { font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);}.mast h1 { margin: .2rem 0 0; font: 900 clamp(1.35rem, 5vw, 2.25rem)/.96 system-ui; text-transform: uppercase; overflow-wrap: anywhere;}.id { border: 2px solid var(--fg); padding: .45rem; font-weight: 900; align-self: start; background: var(--page);}.grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }.section { padding: clamp(.8rem, 2vw, 1.1rem); border-bottom: 2px solid var(--fg); min-width: 0;}.section:nth-child(odd) { border-right: 2px solid var(--fg); }.section h2 { font: 900 .76rem/1 system-ui; text-transform: uppercase; letter-spacing: .11em; margin: 0 0 .75rem; color: var(--accent);}.section p, .section li { font-size: .82rem; line-height: 1.55; }.contract { background: var(--panel); color: var(--fg); padding: .8rem; border: 2px solid var(--fg); border-left: 7px solid var(--ui-accent); font-weight: 800;}.flow { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }.node { border: 2px solid var(--fg); padding: .35rem .5rem; background: var(--panel); font-weight: 900;}.arrow { font-size: 1.2rem; color: var(--accent); }.note { border: 2px dashed var(--focus); padding: .65rem; color: var(--focus); background: var(--panel);}@media (max-width: 560px) { body { padding: .5rem; } .doc { box-shadow: 5px 5px 0 var(--ui-accent); } .mast { grid-template-columns: 1fr; } .id { justify-self: start; } .grid { grid-template-columns: 1fr; } .section:nth-child(odd) { border-right: 0; } .flow { align-items: stretch; } .node { flex: 1; text-align: center; } .arrow { align-self: center; }}</style></head><body><article class="doc"><header class="mast"><div><div class="k">The System · Spec 012</div><h1>Trusted document graph</h1></div><div class="id">OPEN<br>2026-07-11</div></header><div class="grid"><section class="section"><h2>Problem</h2><p>Project truth is scattered. Agents infer ownership, drift state, and bury decisions in prose.</p></section><section class="section"><h2>Decision</h2><div class="contract">One owner per fact.<br>Invalid state fails loud.</div></section><section class="section"><h2>Behavior contracts</h2><ol><li>Specs remain human-owned.</li><li>Issues point to specs.</li><li>Tests prove contracts.</li></ol></section><section class="section"><h2>Flow</h2><div class="flow"><span class="node">MISSION</span><b class="arrow">→</b><span class="node">RULES</span><b class="arrow">→</b><span class="node">SPEC</span></div><p class="note">At narrow widths, sections stack and diagrams wrap without horizontal page scroll.</p></section></div></article></body></html>new file mode 100644+428 / −0 text lines
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>The System design</title><style>:root { color-scheme: light dark; --fg: #121212; --page: #ededed; --panel: #dbdbdb; --accent: #ae2eae; --ui-accent: #922792; --focus: #184e5b;}@media (prefers-color-scheme: dark) { :root { --fg: #ededed; --page: #121212; --panel: #242424; --accent: #d151d1; --ui-accent: #d86dd8; --focus: #7ba1aa; }}* { box-sizing: border-box; }body { margin: 0; background: var(--page); color: var(--fg); font: 15px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;}article { width: min(100% - 2rem, 980px); margin: 1rem auto 3rem; border: 3px solid var(--fg); box-shadow: 9px 9px 0 var(--ui-accent);}header, section { padding: clamp(1rem, 3vw, 1.6rem); }header { background: var(--panel); border-bottom: 3px solid var(--fg); }h1 { margin: .2rem 0 0; font: 900 clamp(2rem, 7vw, 4rem)/.92 system-ui; text-transform: uppercase; }h2 { margin: 0 0 1rem; color: var(--accent); font: 900 1rem/1 system-ui; letter-spacing: .12em; text-transform: uppercase; }h3 { margin: 1.5rem 0 .5rem; font-size: 1rem; }p, li { max-width: 78ch; }section { border-bottom: 2px solid var(--fg); }code, pre { background: var(--panel); }code { padding: .12rem .3rem; }pre { overflow: auto; padding: 1rem; border-left: 6px solid var(--ui-accent); }table { width: 100%; border-collapse: collapse; }th, td { padding: .6rem; border: 2px solid var(--fg); text-align: left; vertical-align: top; }th { background: var(--panel); }a { color: var(--focus); font-weight: 800; }.contract { border: 2px solid var(--fg); border-left: 8px solid var(--ui-accent); background: var(--panel); padding: 1rem; }@media (max-width: 600px) { article { width: calc(100% - 1rem); margin: .5rem; box-shadow: 5px 5px 0 var(--ui-accent); } th, td { display: block; width: 100%; } th { border-bottom: 0; }}</style></head><body><article><header><p><strong>Bootstrap design spec · 2026-07-11</strong></p><h1>The System</h1><p>General-purpose, spec-driven project governance and agent workflow for Pi.</p></header><main><section><h2>Goal</h2><p>Replace the <code>super</code> extension with <code>the-system</code>.</p><p>Combine its task branches, browser mockups, and workflow skills with a project-local source-of-truth system, guarded ownership, rich authored documents, and thin lifecycle prompts.</p><div class="contract"><strong>Outcome:</strong> agents know why a project exists, how work must be done, what behavior is approved, which implementation unit is active, and where defects are remembered—without duplicating authority.</div></section><section><h2>Non-goals</h2><ul><li>No compatibility alias for <code>super</code>.</li><li>No project-specific product, provider, database, media, or deployment rules.</li><li>No generic research prompt.</li><li>No Git sync prompt.</li><li>No automatic generation of project laws without human dialogue.</li><li>No automatic browser or editor opening.</li><li>No document build pipeline, frontend framework, diagram dependency, or remote runtime asset.</li></ul></section><section><h2>Principles</h2><ul><li>One owner per fact.</li><li>Mission defines why. Rules define how. Specs define what.</li><li>Specs are leaf truth. Other system documents and tests point toward specs.</li><li>Spec-owned mockups are constituent assets, not external dependencies.</li><li>Simple data, direct flow, low complexity, and fail-fast errors are defaults.</li><li>Human-owned truth changes only through explicit human decisions.</li><li>Agent-owned memory remains structured, validated, terse, and disposable when superseded.</li><li>Tests prove behavioral and documentation contracts.</li><li>Invalid state is blocked or reported; it is never silently normalized.</li></ul></section><section><h2>Rename</h2><table><tr><th>Before</th><th>After</th></tr><tr><td><code>extensions/super</code></td><td><code>extensions/the-system</code></td></tr><tr><td><code>@bugabinga/pi-ext-super</code></td><td><code>@bugabinga/pi-ext-the-system</code></td></tr><tr><td>super branding</td><td>The System branding</td></tr></table><p>Retain existing task commands, <code>push-task</code>, <code>mockup</code>, message rendering, and workflow skill names.</p><p>Update live package manifests, lockfile entries, static checks, TypeScript configuration, tests, README content, and current examples.</p><p>Leave historical <code>docs/super/**</code> documents unchanged.</p></section><section><h2>Project root</h2><p>The extension resolves one project root for injection, validation, and paths.</p><ol><li>Walk from <code>ctx.cwd</code> toward the filesystem root.</li><li>Recognize a JJ workspace by its nearest <code>.jj</code> marker.</li><li>Recognize a Git repository or worktree by its nearest <code>.git</code> directory or file.</li><li>Use a colocated JJ/Git root when both markers resolve to the same directory.</li><li>Fail when JJ and Git roots differ.</li><li>Use <code>ctx.cwd</code> when no VCS marker exists.</li></ol><p>A simple Git repository stores <code>.system</code> at its repository root.</p><p>A Git worktree stores and versions <code>.system</code> inside that worktree; shared Git metadata is never treated as project content.</p><p>A JJ workspace stores <code>.system</code> at its workspace root.</p></section><section><h2>Filesystem</h2><pre><code>.system/├── config.json├── system.css├── SYSTEM.md├── MISSION.md├── RULES.md├── specs/├── roadmaps/├── plans/├── issues/└── research/</code></pre><table><tr><th>Path</th><th>Owner</th><th>Format</th><th>Purpose</th></tr><tr><td><code>SYSTEM.md</code></td><td>Human</td><td>Markdown</td><td>Document topology, ownership, and reference law.</td></tr><tr><td><code>MISSION.md</code></td><td>Human</td><td>Markdown</td><td>Project purpose, audience, outcomes, and boundaries.</td></tr><tr><td><code>RULES.md</code></td><td>Human</td><td>Markdown</td><td>Project-specific engineering and operating constraints.</td></tr><tr><td><code>specs/*.html</code></td><td>Human</td><td>HTML</td><td>Approved behavior and design truth.</td></tr><tr><td><code>roadmaps/*.html</code></td><td>Agent with human review</td><td>HTML</td><td>Ordered phases for oversized specs.</td></tr><tr><td><code>plans/*.html</code></td><td>Agent with human review</td><td>HTML</td><td>Executable implementation steps for one spec or roadmap phase.</td></tr><tr><td><code>issues/*.html</code></td><td>Agent</td><td>HTML</td><td>Defect memory: repro, cause, evidence, and intended fix.</td></tr><tr><td><code>research/*.html</code></td><td>Agent</td><td>HTML</td><td>Fetched or experimental knowledge cache.</td></tr><tr><td><code>config.json</code></td><td>The System</td><td>JSON</td><td>Prefix and schema/style versions.</td></tr><tr><td><code>system.css</code></td><td>The System</td><td>CSS</td><td>Shared visual language.</td></tr></table></section><section><h2>Configuration</h2><pre><code>{ "prefix": "PX", "schemaVersion": 1, "styleVersion": 1}</code></pre><p>The project prefix is required after initialization.</p><p>It must match <code>[A-Z][A-Z0-9]{1,7}</code>.</p><p>Initialization proposes a prefix from repository or project naming, then asks the human to approve or replace it.</p><p>Slugs must match <code>[a-z0-9]+(?:-[a-z0-9]+)*</code>.</p><p>IDs use independent sequences per type.</p><p>The numeric segment starts at three digits and grows naturally beyond 999.</p><p>Deleted IDs are never reused.</p><pre><code>PX-SPEC-001-slug.htmlPX-ROADMAP-001-slug.htmlPX-PLAN-001-slug.htmlPX-ISSUE-001-slug.htmlPX-RESEARCH-001-slug.html</code></pre></section><section><h2>Core injection and ownership</h2><p>Before each agent turn, append existing <code>SYSTEM.md</code>, <code>MISSION.md</code>, and <code>RULES.md</code> to the system prompt under explicit headings.</p><p>Missing core files do not receive invented defaults.</p><p>Existing core files are read-only to agent <code>write</code>, <code>edit</code>, and recognizable shell-write paths.</p><p>Missing core files may be created once by the initialization workflow after the user approves their drafts.</p><p>New specs and new spec-owned mockup assets may be created after conversational approval without a redundant UI gate.</p><p>Edits to existing specs or existing spec-owned mockup assets require interactive UI approval.</p><p>The gate is a safety net, not a security boundary.</p></section><section><h2>Initialization</h2><p><code>/system-init [PROJECT-PREFIX]</code> is a thin prompt that requires the <code>the-system-init</code> skill.</p><p>The skill:</p><ol><li>Resolves and reports the project root.</li><li>Inspects existing README, agent instructions, build files, tests, and project structure.</li><li>Reads existing <code>.system</code> files without overwriting human-owned content.</li><li>Asks one focused question at a time about purpose, audience, non-goals, engineering constraints, security, data, tests, and release expectations.</li><li>Proposes the project prefix when absent.</li><li>Drafts minimal <code>MISSION.md</code>, <code>RULES.md</code>, and canonical <code>SYSTEM.md</code>.</li><li>Gets explicit human approval before writing each missing core file.</li><li>Creates missing directories and <code>config.json</code>.</li><li>Copies the current bundled <code>system.css</code>.</li><li>Validates the completed system.</li></ol><p>Rerunning initialization is idempotent.</p><p>It never overwrites existing core files.</p><p>It upgrades machine-owned config and CSS only after reporting the changes.</p><p>Startup compares installed schema/style versions with project config.</p><p>Outdated or incomplete projects receive one concise notification directing the user to <code>/system-init</code>.</p></section><section><h2>Document graph</h2><table><tr><th>Artifact</th><th>Role</th><th>Relationship</th></tr><tr><td><strong>MISSION</strong></td><td>Why the project exists.</td><td>Independent core law.</td></tr><tr><td><strong>RULES</strong></td><td>How work must be done.</td><td>Independent core law.</td></tr><tr><td><strong>SPEC</strong></td><td>What behavior is approved.</td><td>Leaf truth; references no other system document.</td></tr><tr><td><strong>ROADMAP</strong></td><td>Sequences delivery of one oversized spec.</td><td>Names its single parent spec.</td></tr><tr><td><strong>PLAN</strong></td><td>Defines executable implementation steps.</td><td>Names one spec and, when applicable, one phase in that spec’s roadmap.</td></tr><tr><td><strong>ISSUE</strong></td><td>Records a defect.</td><td>Names the specs whose contracts are violated.</td></tr><tr><td><strong>TEST</strong></td><td>Proves behavior.</td><td>Names the specs whose contracts it verifies.</td></tr></table><p>Specs do not reference roadmaps, plans, issues, research, or tests.</p><p>A spec may link adjacent mockup files that are owned as part of that spec.</p><p>Deleting, renaming, or editing a spec therefore exposes every dependent reference without creating cycles.</p></section><section><h2>HTML source contract</h2><ul><li>Documents are complete HTML files with doctype, language, UTF-8 charset, viewport metadata, title, and <code>../system.css</code>.</li><li>Source uses semantic elements: <code>header</code>, <code>main</code>, <code>section</code>, headings, paragraphs, lists, tables, <code>aside</code>, <code>figure</code>, and <code>details</code>.</li><li>Generic wrappers exist only when a layout cannot be expressed semantically.</li><li>Source is formatted, unminified, and directly editable.</li><li>One sentence per line remains preferred for prose.</li><li>Inline CSS may implement document-specific layouts or visual explanations.</li><li>Inline CSS cannot redefine Nugu colors, shared typography, shared breakpoints, or core components.</li><li>Compact hand-authored inline SVG is allowed when relationships cannot be explained clearly with HTML boxes, lists, tables, or text.</li><li>Generated SVG sludge and diagram libraries are forbidden.</li><li>Inline JavaScript is optional, dependency-free, and limited to progressive disclosure, filtering, or tiny interactive explanations.</li><li>Documents remain complete and readable with JavaScript disabled.</li><li>JavaScript cannot use network requests, external dependencies, browser storage, or remote executable resources.</li><li>External script sources, iframes, objects, embeds, meta refresh, remote CSS imports, event-handler attributes, and executable URL schemes are rejected.</li><li>Remote HTTPS anchors are navigation, not runtime resources, and remain allowed.</li><li>The validator accepts the deliberately narrow authored subset described here and rejects ambiguous active markup.</li></ul></section><section><h2>Shared CSS</h2><p>The bundled stylesheet owns the visual language and is copied to <code>.system/system.css</code>.</p><p>It uses the Nugu semantic palette.</p><p><code>prefers-color-scheme</code> selects coherent light or dark surfaces; one mode never mixes inverted surfaces from the other.</p><p>It provides brutal borders, shadows, semantic dossier hierarchy, tables, contracts, callouts, flows, metadata, code, status, and document navigation.</p><p>It is mobile-first, avoids page-level horizontal scrolling, stacks sections at narrow widths, wraps diagrams, and preserves readable touch targets.</p><p>The accepted visual direction is a spec-owned asset:</p><p><a href="./2026-07-11-the-system-design-mockup-nugu-unified-dossier.html">Nugu semantic dossier mockup</a></p></section><section><h2>Document metadata</h2><p>Every authored document contains exactly one readable JSON block:</p><pre><code><script type="application/json" id="system-meta">{ "id": "PX-ISSUE-001", "type": "issue", "status": "open", "specs": ["PX-SPEC-003"]}</script></code></pre><p>Metadata keys are exact; unknown keys fail validation.</p><table><tr><th>Type</th><th>Required metadata</th></tr><tr><td>Spec</td><td><code>id</code>, <code>type: "spec"</code></td></tr><tr><td>Roadmap</td><td><code>id</code>, <code>type: "roadmap"</code>, one <code>spec</code> ID</td></tr><tr><td>Plan</td><td><code>id</code>, <code>type: "plan"</code>, one <code>spec</code> ID, optional <code>roadmap</code> ID and positive integer <code>phase</code></td></tr><tr><td>Issue</td><td><code>id</code>, <code>type: "issue"</code>, <code>open|fixed</code> status, unique <code>specs</code> array; the array may be empty while the violated contract is unknown</td></tr><tr><td>Research</td><td><code>id</code>, <code>type: "research"</code>, ISO capture date, optional unique HTTPS source URLs</td></tr></table><p>Specs contain no status and no outgoing system-document metadata.</p><p>Metadata is the reference authority; validators never infer references from prose.</p><p>Normal HTTPS anchor links are allowed for human navigation and research citations.</p><p>Validators reject malformed or duplicate metadata blocks, duplicate JSON keys, duplicate IDs, filename/ID mismatch, invalid statuses, and unsupported types.</p><p>Dangling metadata references are reported by system diagnostics.</p><p>Tests reference specs with a language-appropriate comment containing <code>SYSTEM-SPEC: PX-SPEC-001</code>.</p><p>Doctor reports discovered test references when test roots are conventional, but missing test references remain a review contract rather than a universal filesystem rule.</p></section><section><h2>Lifecycle prompts and skills</h2><table><tr><th>Prompt</th><th>Skill</th><th>Contract</th></tr><tr><td><code>/system-init [PREFIX]</code></td><td><code>the-system-init</code></td><td>Guided project-system creation or machine-asset upgrade.</td></tr><tr><td><code>/system-doctor</code></td><td><code>system-doctor</code></td><td>Run deterministic validation and explain findings.</td></tr><tr><td><code>/system-spec <idea></code></td><td><code>brainstorming</code></td><td>Design, review, approve, and write one HTML spec.</td></tr><tr><td><code>/system-roadmap <SPEC-ID></code></td><td><code>writing-roadmaps</code></td><td>Split an oversized approved spec into ordered phases.</td></tr><tr><td><code>/system-plan <SPEC-ID|ROADMAP-PHASE></code></td><td><code>writing-plans</code></td><td>Write one executable HTML implementation plan.</td></tr><tr><td><code>/system-impl <PLAN-ID></code></td><td><code>executing-plans</code></td><td>Execute an approved plan with tests and review checkpoints.</td></tr><tr><td><code>/system-issue <report></code></td><td><code>system-issues</code></td><td>Triage, deduplicate, and record a defect without fixing unless asked.</td></tr></table><p>Prompt templates remain thin.</p><p>Workflow logic lives in skills.</p><p>A shared <code>system-documents</code> skill owns HTML, metadata, ID, reference, mockup, and browser-review rules.</p><p>The issue skill is general-purpose: inspect relevant logs, tests, runtime state, and existing issues; sanitize evidence; record repro, cause or unknowns, smallest next check, and intended fix.</p><p>No provider-specific research or Git sync prompt is included.</p></section><section><h2>Browser review</h2><p>After writing or materially editing an authored HTML document, the agent prints its exact path and asks whether to open it in the browser.</p><p>It does not open the browser or editor automatically.</p><p>If approved, a bundled cross-platform Node helper converts the local path to a file URL and tries the platform opener without a shell.</p><p>The helper is a skill script, not an always-visible tool.</p><p>The source path remains the editing interface.</p></section><section><h2>System doctor</h2><p><code>/system-doctor</code> invokes a focused skill and deterministic validator script.</p><p>It reports:</p><ul><li>missing core files or directories;</li><li>invalid or outdated config and CSS versions;</li><li>invalid HTML document shells;</li><li>metadata and filename mismatches;</li><li>duplicate IDs;</li><li>dangling references;</li><li>specs with forbidden outgoing system-document references;</li><li>orphaned spec-owned mockups;</li><li>forbidden external executable resources;</li><li>wrong stylesheet paths.</li></ul><p>Doctor never mutates files.</p><p>Blocking write validation and doctor use the same validation module.</p></section><section><h2>Extension structure</h2><pre><code>extensions/the-system/├── index.ts├── mockup.ts├── system.ts├── documents.ts├── assets/system.css├── prompts/│ ├── system-init.md│ ├── system-doctor.md│ ├── system-spec.md│ ├── system-roadmap.md│ ├── system-plan.md│ ├── system-impl.md│ └── system-issue.md├── scripts/open-document.mjs├── scripts/doctor.mjs├── skills/│ ├── the-system-init/│ ├── system-documents/│ ├── system-doctor/│ ├── system-issues/│ └── existing workflow skills...└── __tests__/</code></pre><p><code>index.ts</code> registers existing tasks/mockups and delegates governance registration to <code>system.ts</code>.</p><p><code>documents.ts</code> contains pure root, metadata, ID, reference, and narrow authored-HTML validation logic shared by extension hooks and scripts.</p><p>Validation is structural lint for trusted project documents, not a browser sandbox or proof about arbitrary JavaScript.</p><p>Node standard library remains sufficient.</p></section><section><h2>Behavioral contracts</h2><table><tr><th>Contract</th><th>Proof</th></tr><tr><td>Simple Git, Git worktree, JJ, colocated, conflict, and no-VCS roots resolve correctly.</td><td><code>extensions/the-system/__tests__/documents.test.ts</code></td></tr><tr><td>Core Markdown injects in stable SYSTEM/MISSION/RULES order.</td><td><code>extensions/the-system/__tests__/system.test.ts</code></td></tr><tr><td>Existing core edits block; missing-core creation passes.</td><td><code>extensions/the-system/__tests__/system.test.ts</code></td></tr><tr><td>New specs/assets pass; edits to existing specs/assets require UI approval.</td><td><code>extensions/the-system/__tests__/system.test.ts</code></td></tr><tr><td>Metadata, IDs, filenames, references, HTML shell, CSS link, and forbidden resources validate.</td><td><code>extensions/the-system/__tests__/documents.test.ts</code></td></tr><tr><td>Doctor reports without mutation.</td><td><code>extensions/the-system/__tests__/doctor.test.ts</code></td></tr><tr><td>Initialization is guided, approval-bound, root-aware, idempotent, and core-preserving.</td><td><code>extensions/the-system/__tests__/workflow-skills.test.ts</code></td></tr><tr><td>Lifecycle prompts are exported and delegate to the named skills.</td><td><code>extensions/the-system/__tests__/workflow-skills.test.ts</code></td></tr><tr><td>Shared CSS contains exact Nugu light/dark tokens and responsive contracts.</td><td><code>extensions/the-system/__tests__/documents.test.ts</code></td></tr><tr><td>Existing task branch and mockup behavior survives the hard rename.</td><td><code>extensions/the-system/__tests__/super.test.ts</code> and <code>mockup.test.ts</code></td></tr><tr><td>Package manifests and static tooling contain no live <code>extensions/super</code> references.</td><td><code>scripts/test_extensions_static_check.mjs</code></td></tr></table></section><section><h2>Migration</h2><ol><li>Rename the extension directory and package.</li><li>Keep task/mockup implementation behavior stable.</li><li>Add governance, document validation, Nugu CSS, scripts, skills, and prompts.</li><li>Convert workflow outputs from Markdown paths to project-local HTML paths.</li><li>Update accepted mockup persistence to produce spec-owned adjacent HTML assets and HTML links.</li><li>Export prompts and renamed skills from root package resources.</li><li>Update live references and regenerate the lockfile through the existing mise/npm workflow.</li><li>Run focused tests, real extension loading, static checks, and <code>mise run ci</code>.</li></ol><p>Existing user filters or paths naming <code>extensions/super</code> break intentionally.</p><p>No migration shim, alias, duplicate package, or deprecated path remains.</p></section><section><h2>Security and failure policy</h2><ul><li>Resolve and normalize every governed path before ownership checks.</li><li>Reject traversal outside the resolved project root.</li><li>Treat approval hooks and active-markup lint as advisory safeguards, not sandboxing.</li><li>Project core files are privileged instructions; initialization must explain this trust boundary before writing them.</li><li>Never execute authored document JavaScript during validation.</li><li>Never fetch document resources during validation or doctor runs.</li><li>Never place secrets, raw private data, or binary asset bytes in system documents.</li><li>Fail on ambiguous roots, malformed machine state, duplicate IDs, and invalid required metadata.</li><li>Report dangling references and upgrade availability without silent repair.</li><li>Preserve unrelated dirty work.</li></ul></section></main></article></body></html>