<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=MindAttic.Deploy%2FBIBLE</id>
	<title>MindAttic.Deploy/BIBLE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=MindAttic.Deploy%2FBIBLE"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=MindAttic.Deploy/BIBLE&amp;action=history"/>
	<updated>2026-12-06T22:51:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=MindAttic.Deploy/BIBLE&amp;diff=564&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=MindAttic.Deploy/BIBLE&amp;diff=564&amp;oldid=prev"/>
		<updated>2026-11-29T20:26:04Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= MindAttic.Deploy — Project Bible =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
Single source of truth for what MindAttic.Deploy IS, is NOT, and the rules that keep it coherent. README.md says how to build/run; this says how to think about the system.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 1. The one sentence &amp;lt;span id=&amp;quot;M.DPLY-1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
One pipeline that FTPS-deploys the MindAttic root sites (the MindAttic.Web sites and the &amp;lt;code&amp;gt;MindAttic.Components&amp;lt;/code&amp;gt; asset package they load, as one linked group) and fires the GitHub-Actions deploys of the Blazor apps — from a single registry (&amp;lt;code&amp;gt;projects.json&amp;lt;/code&amp;gt;) and a single FTP credential, with zero per-project deploy machinery.&lt;br /&gt;
&lt;br /&gt;
== 2. The product promise &amp;lt;span id=&amp;quot;M.DPLY-2&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;One repo, one install, one credential.&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;npm install&amp;lt;/code&amp;gt; once; one FTP credential, resolved per M.DPLY-LAW-3. No per-project &amp;lt;code&amp;gt;deploy.ps1&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;deploy.settings.json&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;node_modules/&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;strong&amp;gt;One registry edits everything.&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;projects.json&amp;lt;/code&amp;gt; has two target arrays — &amp;lt;code&amp;gt;sites[]&amp;lt;/code&amp;gt; (verbatim root sites) and &amp;lt;code&amp;gt;apps[]&amp;lt;/code&amp;gt; (Blazor/CI apps) — plus &amp;lt;code&amp;gt;linkedGroups&amp;lt;/code&amp;gt;. Add/retag a target by editing only this file.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Two pipelines.&amp;lt;/strong&amp;gt; Root sites (including the linked group) and apps. A run names one with a mode flag (&amp;lt;code&amp;gt;--site&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--sites&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--uiux&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--app&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--apps&amp;lt;/code&amp;gt;); there is no default pipeline.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Two front doors, one engine.&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;npm run deploy&amp;lt;/code&amp;gt; (Node) and &amp;lt;code&amp;gt;MindAttic.Deploy.Cli&amp;lt;/code&amp;gt; (C#) both drive the &amp;lt;em&amp;gt;same&amp;lt;/em&amp;gt; &amp;lt;code&amp;gt;src/deploy.js&amp;lt;/code&amp;gt; pipeline — the CLI shells into node. See M.DPLY-LAW-1.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Linked deploy.&amp;lt;/strong&amp;gt; The MindAttic.Components repo holds the shared jsDelivr asset package (its &amp;lt;code&amp;gt;web/&amp;lt;/code&amp;gt; folder); the four sites that load assets from it (&amp;lt;code&amp;gt;ryandebraal.com&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;mindatticcares.com&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;Hyperspace&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;mindattic.com&amp;lt;/code&amp;gt;) live together in the MindAttic.Web repo; they are a permanent &amp;lt;strong&amp;gt;linked group&amp;lt;/strong&amp;gt; (&amp;lt;code&amp;gt;linkedGroups&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;projects.json&amp;lt;/code&amp;gt;): deploying any one deploys all of them — next tag pinned in the pages, hooks and stamps, one &amp;lt;code&amp;gt;Pin MindAttic.Components V&amp;amp;lt;n&amp;gt;&amp;lt;/code&amp;gt; commit, tag + push, CDN verified byte-exact, then FTP — and aborts before any upload if a gate fails. The flow is specified in §4.3; the code is &amp;lt;code&amp;gt;src/linked.js&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Project pages live on GitHub.&amp;lt;/strong&amp;gt; Each MindAttic repo&amp;#039;s GitHub README is its project page; this repo renders and uploads nothing per project.&lt;br /&gt;
&lt;br /&gt;
== 3. What it is NOT &amp;lt;span id=&amp;quot;M.DPLY-3&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT a component library.&amp;lt;/strong&amp;gt; It does not own fonts, the Cyberspace effects, or theme CSS — those live in &amp;lt;code&amp;gt;MindAttic.Components&amp;lt;/code&amp;gt; and are loaded at runtime via jsDelivr or spliced by its sync scripts. This repo only &amp;lt;em&amp;gt;invokes&amp;lt;/em&amp;gt; those scripts as &amp;lt;code&amp;gt;preDeploy&amp;lt;/code&amp;gt; hooks.&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT a project-page generator.&amp;lt;/strong&amp;gt; Each repo&amp;#039;s GitHub README is its project page; adding a README renderer here is a regression.&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT a remote cleaner.&amp;lt;/strong&amp;gt; It never deletes files on the FTP host; stale remote files are removed by hand.&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT the editor of component sources.&amp;lt;/strong&amp;gt; For the linked group it rewrites the tag pins and stamps in the sites&amp;#039; pages, commits and pushes them in MindAttic.Web, and tags and pushes MindAttic.Components; it never edits files inside &amp;lt;code&amp;gt;MindAttic.Components/web&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;components/&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;assets/&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;themes/&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT the host of per-project deploy state.&amp;lt;/strong&amp;gt; Projects carry no &amp;lt;code&amp;gt;scripts/cli/&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;deploy.bat&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;deploy.settings.json&amp;lt;/code&amp;gt; or marker-block deploy files of their own; adding them is a regression.&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT the actual app deployer for Blazor apps.&amp;lt;/strong&amp;gt; For &amp;lt;code&amp;gt;apps[]&amp;lt;/code&amp;gt; entries it commits + pushes a branch; the project&amp;#039;s &amp;lt;em&amp;gt;own&amp;lt;/em&amp;gt; GitHub Actions workflow does the real Azure push.&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT a SemVer project.&amp;lt;/strong&amp;gt; Whole-number versioning only (HOUSE-LAW-1), including the MindAttic.Components release tags the linked deploy publishes and pins (&amp;lt;code&amp;gt;V1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;V2&amp;lt;/code&amp;gt;, … never &amp;lt;code&amp;gt;v1.1.1&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT a renderer.&amp;lt;/strong&amp;gt; &amp;lt;code&amp;gt;sites[]&amp;lt;/code&amp;gt; files are uploaded verbatim (only the Last-Updated stamp and the linked group&amp;#039;s tag pins are rewritten); nothing is templated.&lt;br /&gt;
* &amp;lt;strong&amp;gt;NOT a committer of anyone&amp;#039;s work.&amp;lt;/strong&amp;gt; The linked deploy commits only its own pin, splice and stamp changes inside the group&amp;#039;s site folders; any other uncommitted change aborts the run, and a hook that touches a file outside those folders aborts it too.&lt;br /&gt;
&lt;br /&gt;
== 4. Architecture canon &amp;lt;span id=&amp;quot;M.DPLY-4&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;                    projects.json  (THE registry)&lt;br /&gt;
                    ┌──────────────────────────┬──────────────┐&lt;br /&gt;
                    │ sites[] + linkedGroups   │    apps[]    │&lt;br /&gt;
                    │ MindAttic.Web root sites │  Blazor / CI │&lt;br /&gt;
                    └────────────┬─────────────┴──────┬───────┘&lt;br /&gt;
                                 │                    │&lt;br /&gt;
                                 ▼                    ▼&lt;br /&gt;
              ┌──────────────── src/deploy.js ─────────────────┐&lt;br /&gt;
              │ site:   preDeploy hooks → stamp → FTPS         │&lt;br /&gt;
              │ linked: src/linked.js — pin → hooks → stamp →  │&lt;br /&gt;
              │         commit → tag → push → CDN gate → FTPS  │&lt;br /&gt;
              │ app:    preDeploy hooks → git commit/push      │&lt;br /&gt;
              │ (no mode flag → usage, exit 2)                 │&lt;br /&gt;
              └────────────────────┬───────────────────────────┘&lt;br /&gt;
                                   │ shells into&lt;br /&gt;
     MindAttic.Deploy.Cli (C#)  ───┘  (node --use-system-ca src/deploy.js …)&lt;br /&gt;
                                   │&lt;br /&gt;
     creds: [CLI only] MindAttic.Vault → MINDATTIC_FTP_JSON env → secrets/ftp.json  (basic-ftp, FTPS)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 4.1 Projects / components ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;MindAttic.Deploy.Cli/&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; — C# console app (&amp;lt;code&amp;gt;net10.0&amp;lt;/code&amp;gt;, Spectre.Console.Cli, assembly name &amp;lt;code&amp;gt;MindAttic.Deploy&amp;lt;/code&amp;gt;). A thin front door that shells into the node pipeline (see [https://github.com/mindattic/MindAttic.Deploy/blob/main/MindAttic.Deploy.Cli/Services/DeployRunner.cs &amp;lt;code&amp;gt;Services/DeployRunner.cs&amp;lt;/code&amp;gt;] and [https://github.com/mindattic/MindAttic.Deploy/blob/main/MindAttic.Deploy.Cli/Services/ProjectRoster.cs &amp;lt;code&amp;gt;Services/ProjectRoster.cs&amp;lt;/code&amp;gt;]). Solution: [https://github.com/mindattic/MindAttic.Deploy/blob/main/MindAttic.Deploy.slnx &amp;lt;code&amp;gt;MindAttic.Deploy.slnx&amp;lt;/code&amp;gt;].&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;src/deploy.js&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; — the pipeline (site / app modes; the linked group runs through &amp;lt;code&amp;gt;src/linked.js&amp;lt;/code&amp;gt;); FTPS via &amp;lt;code&amp;gt;basic-ftp&amp;lt;/code&amp;gt;; preDeploy hook runner. A run with no mode flag prints usage and exits 2.&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;src/linked.js&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; — the linked deploy (§4.3).&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;projects.json&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; — the registry (&amp;lt;code&amp;gt;sites[]&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;apps[]&amp;lt;/code&amp;gt; + &amp;lt;code&amp;gt;linkedGroups&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;package.json&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; — &amp;lt;code&amp;gt;npm test&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;npm run deploy&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;npm run all&amp;lt;/code&amp;gt; (all sites, then all apps); one runtime dependency, &amp;lt;code&amp;gt;basic-ftp&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;.github/workflows/cli-ci.yml&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; — builds the C# CLI and smoke-tests &amp;lt;code&amp;gt;--version&amp;lt;/code&amp;gt;. There is no CI deploy workflow; deploys run from the dev box.&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;test/linked.test.js&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; — the node:test suite (&amp;lt;code&amp;gt;npm test&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;scripts/publish.ps1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;scripts/ensure-fresh.ps1&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; — CLI publish + freshness helpers.&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;tools/codex.ps1&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; — Codex doctor + digest CLI; &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;tools/build-readme.ps1&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; — regenerates &amp;lt;code&amp;gt;README.htm&amp;lt;/code&amp;gt; from &amp;lt;code&amp;gt;README.md&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== 4.2 Domain model (NOUNS) ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;SiteProfile&amp;lt;/strong&amp;gt; — a verbatim root site (&amp;lt;code&amp;gt;slug&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;sourceDir&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ftpRemotePath&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;files[]&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;uploadDir: true&amp;lt;/code&amp;gt; (recursive, non-destructive tree upload), &amp;lt;code&amp;gt;stampFile&amp;lt;/code&amp;gt;, optional &amp;lt;code&amp;gt;pinFiles[]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;preDeploy[]&amp;lt;/code&amp;gt;). Uploaded as-is. Each linked-group site uploads only its &amp;lt;code&amp;gt;index.htm&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;strong&amp;gt;AppProfile&amp;lt;/strong&amp;gt; — a Blazor / GitHub-Actions deploy target (&amp;lt;code&amp;gt;slug&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;repo&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;branch&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;workflow&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;disabled&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;disabledNote&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;stageOnly[]&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;commitMessage&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;preDeploy[]&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;lt;strong&amp;gt;HookProfile&amp;lt;/strong&amp;gt; — a &amp;lt;code&amp;gt;preDeploy&amp;lt;/code&amp;gt; step: &amp;lt;code&amp;gt;kind&amp;lt;/code&amp;gt; ∈ {&amp;lt;code&amp;gt;package-pull&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;powershell&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dotnet-build&amp;lt;/code&amp;gt;}, plus &amp;lt;code&amp;gt;required&amp;lt;/code&amp;gt;; a powershell hook may declare &amp;lt;code&amp;gt;tagArg&amp;lt;/code&amp;gt;, the flag that receives the linked release tag (mindattic.com&amp;#039;s component splice, &amp;lt;code&amp;gt;MindAttic.Components/web/build/build-sites.ps1&amp;lt;/code&amp;gt;, takes no tag: it pins the MindAttic.Components release named in that repo&amp;#039;s &amp;lt;code&amp;gt;web/sites.json&amp;lt;/code&amp;gt;). &amp;lt;code&amp;gt;package-pull&amp;lt;/code&amp;gt; runs &amp;lt;code&amp;gt;git pull&amp;lt;/code&amp;gt; in the linked package&amp;#039;s &amp;lt;code&amp;gt;sourceDir&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;strong&amp;gt;DeployConfig&amp;lt;/strong&amp;gt; — the deserialized &amp;lt;code&amp;gt;projects.json&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;sites&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;apps&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;linkedGroups&amp;lt;/code&amp;gt;).&lt;br /&gt;
* &amp;lt;strong&amp;gt;Linked group&amp;lt;/strong&amp;gt; — a repo holding a jsDelivr package folder plus the site folders that load from it, either in the same repo or all in one other repo (&amp;lt;code&amp;gt;linkedGroups&amp;lt;/code&amp;gt;): &amp;lt;code&amp;gt;mindattic-web&amp;lt;/code&amp;gt; = package &amp;lt;code&amp;gt;MindAttic.Components&amp;lt;/code&amp;gt; (repo &amp;lt;code&amp;gt;mindattic/MindAttic.Components&amp;lt;/code&amp;gt; at &amp;lt;code&amp;gt;../MindAttic.Components&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;cdnSubpath&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;web&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;firstTag&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;V1&amp;lt;/code&amp;gt;, branch &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt;) + sites &amp;lt;code&amp;gt;ryandebraal.com&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;mindatticcares.com&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;hyperspace&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;mindattic.com&amp;lt;/code&amp;gt;, each with &amp;lt;code&amp;gt;sourceDir&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;../MindAttic.Web/&amp;amp;lt;folder&amp;gt;&amp;lt;/code&amp;gt;. Package URLs are &amp;lt;code&amp;gt;https&amp;amp;#58;//cdn.jsdelivr.net/gh/mindattic/MindAttic.Components@V&amp;amp;lt;n&amp;gt;/web/&amp;amp;lt;path&amp;gt;&amp;lt;/code&amp;gt;. The listed order is the FTP order. Deploying any member deploys all.&lt;br /&gt;
&lt;br /&gt;
=== 4.3 Key services (VERBS) ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;Mode guard&amp;lt;/strong&amp;gt; — &amp;lt;code&amp;gt;src/deploy.js&amp;lt;/code&amp;gt; refuses a run with none of &amp;lt;code&amp;gt;--site&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;--sites&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;--uiux&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;--app&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;--apps&amp;lt;/code&amp;gt; (usage, exit 2).&lt;br /&gt;
* &amp;lt;strong&amp;gt;Site deploy&amp;lt;/strong&amp;gt; (&amp;lt;code&amp;gt;runSiteMode&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;deployOneSite&amp;lt;/code&amp;gt;) — run &amp;lt;code&amp;gt;preDeploy&amp;lt;/code&amp;gt;, stamp &amp;lt;code&amp;gt;&amp;amp;lt;!-- Last Updated --&amp;gt;&amp;lt;/code&amp;gt;, FTPS the &amp;lt;code&amp;gt;files[]&amp;lt;/code&amp;gt; glob to &amp;lt;code&amp;gt;ftpRemotePath&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Linked deploy&amp;lt;/strong&amp;gt; (&amp;lt;code&amp;gt;src/linked.js&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;runLinkedMode&amp;lt;/code&amp;gt;) — &amp;lt;code&amp;gt;planTargets&amp;lt;/code&amp;gt; expands &amp;lt;code&amp;gt;--site &amp;amp;lt;member&amp;gt;&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;--sites&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;--uiux&amp;lt;/code&amp;gt; (alias &amp;lt;code&amp;gt;--package&amp;lt;/code&amp;gt;) to the whole group; &amp;lt;code&amp;gt;--no-link&amp;lt;/code&amp;gt; deploys the named site only, with a loud warning. Everything with a side effect is injected so it is testable. The flow aborts BEFORE any FTP upload if a gate fails:&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;--dry-run&amp;lt;/code&amp;gt; changes nothing (no fetch, pin edit, hook, stamp, commit, tag, push, FTP connect or upload) and prints the whole plan; gates that would abort print &amp;lt;code&amp;gt;[WOULD ABORT]&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;--with-tests&amp;lt;/code&amp;gt; (runs &amp;lt;code&amp;gt;&amp;amp;lt;cdnSubpath&amp;gt;/tests&amp;lt;/code&amp;gt;) is accepted only on a linked deploy. Pushing &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; of MindAttic.Web triggers its &amp;lt;code&amp;gt;sync-subscribers&amp;lt;/code&amp;gt; workflow only when the push touches the package paths that workflow watches; the pin commit touches only site folders.&lt;br /&gt;
*# &amp;lt;strong&amp;gt;Preflight&amp;lt;/strong&amp;gt; (&amp;lt;code&amp;gt;inspectRepo&amp;lt;/code&amp;gt;) — the repo is a git repo on &amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt; with a clean working tree, &amp;lt;code&amp;gt;origin&amp;lt;/code&amp;gt; reachable, not behind or diverged from &amp;lt;code&amp;gt;origin/main&amp;lt;/code&amp;gt;, latest tag an ancestor of &amp;lt;code&amp;gt;HEAD&amp;lt;/code&amp;gt;, no tag moved on origin, no whole-number tag that exists only locally and is not at &amp;lt;code&amp;gt;HEAD&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;amp;lt;cdnSubpath&amp;gt;\tools\build-asset-manifest.ps1 -Verify&amp;lt;/code&amp;gt; passes, every site&amp;#039;s page exists inside the repo, FTP secrets resolvable.&lt;br /&gt;
*# &amp;lt;strong&amp;gt;Release tag&amp;lt;/strong&amp;gt; (&amp;lt;code&amp;gt;releaseTagAfter&amp;lt;/code&amp;gt;) — if &amp;lt;code&amp;gt;HEAD&amp;lt;/code&amp;gt; already carries the latest &amp;lt;code&amp;gt;V&amp;amp;lt;n&amp;gt;&amp;lt;/code&amp;gt; tag and every page&amp;#039;s pins equal it, that tag is &amp;lt;strong&amp;gt;reused&amp;lt;/strong&amp;gt; (steps 3–5 are skipped; this is also how a run resumes after a rejected push). Otherwise the release tag is &amp;lt;code&amp;gt;V&amp;amp;lt;n+1&amp;gt;&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;firstTag&amp;lt;/code&amp;gt; while the repo has no whole-number tag. Gates before anything is written: no page pins a tag newer than the release tag, every literal package URL exists in the package tree with the manifest&amp;#039;s byte count, nothing pins &amp;lt;code&amp;gt;@main&amp;lt;/code&amp;gt;; a release tag already on origin at another commit aborts (tags are immutable).&lt;br /&gt;
*# &amp;lt;strong&amp;gt;Prepare&amp;lt;/strong&amp;gt; — &amp;lt;code&amp;gt;rewritePins&amp;lt;/code&amp;gt; turns every &amp;lt;code&amp;gt;gh/&amp;amp;lt;repo&amp;gt;@V&amp;amp;lt;n&amp;gt;/&amp;amp;lt;cdnSubpath&amp;gt;/&amp;lt;/code&amp;gt; pin in each site&amp;#039;s &amp;lt;code&amp;gt;pinFiles&amp;lt;/code&amp;gt; (default: its &amp;lt;code&amp;gt;stampFile&amp;lt;/code&amp;gt;) into the release tag (idempotent; npm, other repos&amp;#039; and non-package URLs are untouched); each site&amp;#039;s &amp;lt;code&amp;gt;preDeploy&amp;lt;/code&amp;gt; hooks run (a hook with &amp;lt;code&amp;gt;tagArg&amp;lt;/code&amp;gt; receives the tag; &amp;lt;code&amp;gt;package-pull&amp;lt;/code&amp;gt; is skipped); each &amp;lt;code&amp;gt;stampFile&amp;lt;/code&amp;gt; is stamped.&lt;br /&gt;
*# &amp;lt;strong&amp;gt;Commit&amp;lt;/strong&amp;gt; — the changed files are committed as &amp;lt;code&amp;gt;Pin &amp;amp;lt;package slug&amp;gt; V&amp;amp;lt;n&amp;gt;&amp;lt;/code&amp;gt;. A hook that changed a file outside the group&amp;#039;s site folders aborts the run. Any failure in steps 3–4 restores the working tree (&amp;lt;code&amp;gt;reset --hard&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;clean -fd&amp;lt;/code&amp;gt;) to the clean state preflight verified; in the split layout the package repo is restored the same way, but only when it was still clean just before step 3 (never discarding someone else&amp;#039;s changes).&lt;br /&gt;
*# &amp;lt;strong&amp;gt;Tag&amp;lt;/strong&amp;gt; — annotated &amp;lt;code&amp;gt;V&amp;amp;lt;n&amp;gt;&amp;lt;/code&amp;gt; on that commit; the message lists the commit subjects since the previous tag.&lt;br /&gt;
*# &amp;lt;strong&amp;gt;Push&amp;lt;/strong&amp;gt; — &amp;lt;code&amp;gt;git push origin main&amp;lt;/code&amp;gt;, then the tag. Never force. A rejected push is a clean abort (&amp;lt;code&amp;gt;[ABORT] ... Nothing was uploaded&amp;lt;/code&amp;gt;, exit 1); the commit and tag stay local and the next run reuses them.&lt;br /&gt;
*# &amp;lt;strong&amp;gt;CDN gate&amp;lt;/strong&amp;gt; (&amp;lt;code&amp;gt;buildCdnChecks&amp;lt;/code&amp;gt; + &amp;lt;code&amp;gt;verifyCdn&amp;lt;/code&amp;gt;) — every package URL the pages use (literal URLs, plus every file listed in &amp;lt;code&amp;gt;&amp;amp;lt;cdnSubpath&amp;gt;/assets-manifest.json&amp;lt;/code&amp;gt; under each site&amp;#039;s domain folder, which covers URLs built at runtime from a base prefix) must return HTTP 200 on jsDelivr at the release tag with &amp;lt;code&amp;gt;access-control-allow-origin: *&amp;lt;/code&amp;gt; and a &amp;lt;code&amp;gt;content-length&amp;lt;/code&amp;gt; equal to the file in the package folder. Directory-like base URLs and documentation placeholders (&amp;lt;code&amp;gt;@&amp;amp;lt;tag&amp;gt;/&amp;amp;lt;path&amp;gt;&amp;lt;/code&amp;gt;) are not fetched. Failures retry in shared backoff rounds (default 3 minutes total); a dry run never waits. A tag that is published but fails the gate stays; the next run reuses it.&lt;br /&gt;
*# &amp;lt;strong&amp;gt;FTP&amp;lt;/strong&amp;gt; — the committed pages upload in group order over one connection (no second stamp), reconnecting before the next site if an upload closed it; a failing site does not stop the others; the exit code is non-zero if any failed. &amp;lt;code&amp;gt;--sites&amp;lt;/code&amp;gt; deploys non-member sites after the group. The summary reports whether the repo is clean and in sync with &amp;lt;code&amp;gt;origin/main&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;strong&amp;gt;App deploy&amp;lt;/strong&amp;gt; (&amp;lt;code&amp;gt;runAppMode&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;deployOneApp&amp;lt;/code&amp;gt;) — run &amp;lt;code&amp;gt;preDeploy&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;git add&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;stageOnly&amp;lt;/code&amp;gt;, commit if staged, push &amp;lt;code&amp;gt;branch&amp;lt;/code&amp;gt; to fire the project&amp;#039;s workflow; disabled apps print their note and exit 0.&lt;br /&gt;
* &amp;lt;strong&amp;gt;preDeploy hooks&amp;lt;/strong&amp;gt; (&amp;lt;code&amp;gt;executePreDeploy&amp;lt;/code&amp;gt;) — &amp;lt;code&amp;gt;runPackagePull&amp;lt;/code&amp;gt; (git pull in the linked package&amp;#039;s &amp;lt;code&amp;gt;sourceDir&amp;lt;/code&amp;gt;, read from &amp;lt;code&amp;gt;projects.json&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;runPowershellHook&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;runDotnetBuildHook&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Credential load&amp;lt;/strong&amp;gt; — the C# CLI (&amp;lt;code&amp;gt;DeployRunner.RunNode&amp;lt;/code&amp;gt;) reads MindAttic.Vault (&amp;lt;code&amp;gt;FtpCredentialStore.Default.TryGetJson()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;%APPDATA%\MindAttic\Ftp\ftp.json&amp;lt;/code&amp;gt;) and, when it has content, passes it to node as &amp;lt;code&amp;gt;MINDATTIC_FTP_JSON&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;loadFtpSettings&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;src/deploy.js&amp;lt;/code&amp;gt; resolves &amp;lt;code&amp;gt;MINDATTIC_FTP_JSON&amp;lt;/code&amp;gt; env → &amp;lt;code&amp;gt;secrets/ftp.json&amp;lt;/code&amp;gt;; FTPS via &amp;lt;code&amp;gt;accessFtp&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;strong&amp;gt;CLI dispatch&amp;lt;/strong&amp;gt; (&amp;lt;code&amp;gt;MindAttic.Deploy.Cli&amp;lt;/code&amp;gt;) — &amp;lt;code&amp;gt;site&amp;lt;/code&amp;gt; (with &amp;lt;code&amp;gt;--no-link&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;--with-tests&amp;lt;/code&amp;gt;) / &amp;lt;code&amp;gt;uiux&amp;lt;/code&amp;gt; (alias &amp;lt;code&amp;gt;package&amp;lt;/code&amp;gt;) / &amp;lt;code&amp;gt;app&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;list&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;version&amp;lt;/code&amp;gt; commands; default (no args) is an interactive multi-select menu (&amp;lt;code&amp;gt;MainMenuCommand&amp;lt;/code&amp;gt;) that runs a linked group once however many of its members are ticked; all shell into &amp;lt;code&amp;gt;DeployRunner.RunNode&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;ProjectRoster&amp;lt;/code&amp;gt; resolves the repo root and deserializes &amp;lt;code&amp;gt;projects.json&amp;lt;/code&amp;gt; at startup.&lt;br /&gt;
&lt;br /&gt;
== 5. The Laws &amp;lt;span id=&amp;quot;M.DPLY-5&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
This project &amp;lt;strong&amp;gt;inherits all org-wide laws&amp;lt;/strong&amp;gt; from &amp;lt;code&amp;gt;MindAttic.HouseRules.md&amp;lt;/code&amp;gt; by reference — they are not restated here. Most directly load-bearing for this repo:&lt;br /&gt;
&lt;br /&gt;
* HOUSE-LAW-1 — Whole-number versioning (assembly &amp;lt;code&amp;gt;Version&amp;lt;/code&amp;gt; &amp;lt;em&amp;gt;and&amp;lt;/em&amp;gt; the MindAttic.Web &amp;lt;code&amp;gt;V&amp;amp;lt;n&amp;gt;&amp;lt;/code&amp;gt; release tag the linked deploy pins).&lt;br /&gt;
* HOUSE-LAW-2 — Soft-disable, never hard-delete (an &amp;lt;code&amp;gt;apps[]&amp;lt;/code&amp;gt; entry is disabled with a note, never deleted, until infra exists).&lt;br /&gt;
* HOUSE-LAW-3 — Credentials resolve through MindAttic.Vault (FTP creds; see M.DPLY-LAW-3).&lt;br /&gt;
* HOUSE-LAW-6 — One engine, many front doors (the CLI and &amp;lt;code&amp;gt;npm run deploy&amp;lt;/code&amp;gt; drive the same &amp;lt;code&amp;gt;src/deploy.js&amp;lt;/code&amp;gt;; see M.DPLY-LAW-1).&lt;br /&gt;
* HOUSE-LAW-8 — Definition of done is verified, not asserted (see §8).&lt;br /&gt;
&lt;br /&gt;
Project-specific laws:&lt;br /&gt;
&lt;br /&gt;
=== M.DPLY-LAW-1 — One pipeline, two front doors &amp;lt;span id=&amp;quot;M.DPLY-LAW-1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;src/deploy.js&amp;lt;/code&amp;gt; is the single deploy engine. &amp;lt;code&amp;gt;MindAttic.Deploy.Cli&amp;lt;/code&amp;gt; MUST NOT reimplement deploy logic; it shells into &amp;lt;code&amp;gt;node --use-system-ca src/deploy.js …&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;Services/DeployRunner.cs&amp;lt;/code&amp;gt;). A behavior change happens in &amp;lt;code&amp;gt;src/deploy.js&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;src/linked.js&amp;lt;/code&amp;gt;, not in the C# layer.&lt;br /&gt;
&lt;br /&gt;
=== M.DPLY-LAW-2 — The registry is the only edit point for targets &amp;lt;span id=&amp;quot;M.DPLY-LAW-2&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Adding, removing, or retagging a deploy target (&amp;lt;code&amp;gt;sites[]&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;apps[]&amp;lt;/code&amp;gt; entries: slug, paths, files, hooks, disabled) and editing linked-group membership or FTP order (&amp;lt;code&amp;gt;linkedGroups&amp;lt;/code&amp;gt;) is an edit to &amp;lt;code&amp;gt;projects.json&amp;lt;/code&amp;gt; and nothing else. Components live in &amp;lt;code&amp;gt;MindAttic.Components&amp;lt;/code&amp;gt;; project pages are each repo&amp;#039;s GitHub README.&lt;br /&gt;
&lt;br /&gt;
=== M.DPLY-LAW-3 — Credentials never live in code or uploaded output &amp;lt;span id=&amp;quot;M.DPLY-LAW-3&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
FTP credentials resolve MindAttic.Vault (C# CLI only, per HOUSE-LAW-3) → &amp;lt;code&amp;gt;MINDATTIC_FTP_JSON&amp;lt;/code&amp;gt; env → &amp;lt;code&amp;gt;secrets/ftp.json&amp;lt;/code&amp;gt; (gitignored), and are never embedded in source or any uploaded file.&lt;br /&gt;
&lt;br /&gt;
=== M.DPLY-LAW-4 — Shared assets are CDN-pinned to an immutable tag &amp;lt;span id=&amp;quot;M.DPLY-LAW-4&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
The sites load shared assets from &amp;lt;code&amp;gt;MindAttic.Components&amp;lt;/code&amp;gt; on jsDelivr (&amp;lt;code&amp;gt;gh/mindattic/MindAttic.Components@V&amp;amp;lt;n&amp;gt;/web/&amp;lt;/code&amp;gt;) at an immutable whole-number tag, never &amp;lt;code&amp;gt;@main&amp;lt;/code&amp;gt; (tip-of-tree, non-atomic, cached ~12h). For the linked group that tag is the release tag the deploy publishes, pins in each site&amp;#039;s &amp;lt;code&amp;gt;pinFiles&amp;lt;/code&amp;gt; and verifies byte-exact on the CDN before any upload; a page never pins a tag newer than the published one.&lt;br /&gt;
&lt;br /&gt;
=== M.DPLY-LAW-5 — Apps fire CI; this repo never FTPs an app &amp;lt;span id=&amp;quot;M.DPLY-LAW-5&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;code&amp;gt;apps[]&amp;lt;/code&amp;gt;, the repo&amp;#039;s contract ends at &amp;lt;code&amp;gt;git push &amp;amp;lt;branch&amp;gt;&amp;lt;/code&amp;gt;; the project&amp;#039;s own workflow performs the real (Azure) deploy. A disabled app prints its &amp;lt;code&amp;gt;disabledNote&amp;lt;/code&amp;gt; and exits 0 — it never half-fires.&lt;br /&gt;
&lt;br /&gt;
=== M.DPLY-LAW-6 — Fail loud on unknown input &amp;lt;span id=&amp;quot;M.DPLY-LAW-6&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;src/deploy.js&amp;lt;/code&amp;gt; rejects an unknown flag, a linked-only modifier used outside a linked deploy (&amp;lt;code&amp;gt;--no-link&amp;lt;/code&amp;gt; without &amp;lt;code&amp;gt;--site&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;--sites&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--with-tests&amp;lt;/code&amp;gt; without &amp;lt;code&amp;gt;--site &amp;amp;lt;member&amp;gt;&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;--sites&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;--uiux&amp;lt;/code&amp;gt;) and a run with no mode flag — each with usage and exit 2 — rather than guessing at a deploy.&lt;br /&gt;
&lt;br /&gt;
== 6. Verified state &amp;lt;span id=&amp;quot;M.DPLY-6&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
Evidence from the dev box (Windows 11, Node 24, .NET 10 SDK).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Capability&lt;br /&gt;
! Status&lt;br /&gt;
! Evidence&lt;br /&gt;
|-&lt;br /&gt;
| C# CLI builds clean&lt;br /&gt;
| ✅ done&lt;br /&gt;
| &amp;lt;code&amp;gt;dotnet build MindAttic.Deploy.Cli -c Release --nologo&amp;lt;/code&amp;gt; → &amp;lt;strong&amp;gt;0 Warning(s), 0 Error(s)&amp;lt;/strong&amp;gt; (2026-10-03).&lt;br /&gt;
|-&lt;br /&gt;
| Node pipeline flag-validated&lt;br /&gt;
| ✅ done&lt;br /&gt;
| &amp;lt;code&amp;gt;src/deploy.js&amp;lt;/code&amp;gt; rejects unknown flags, misplaced linked modifiers and a run with no mode flag (exit 2); &amp;lt;code&amp;gt;--help&amp;lt;/code&amp;gt; works. Covered by the &amp;lt;code&amp;gt;cli:&amp;lt;/code&amp;gt; tests in &amp;lt;code&amp;gt;test/linked.test.js&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| Linked deploy (&amp;lt;code&amp;gt;src/linked.js&amp;lt;/code&amp;gt;)&lt;br /&gt;
| 🟡 partial&lt;br /&gt;
| &amp;lt;code&amp;gt;npm test&amp;lt;/code&amp;gt; → 38 tests pass (2026-10-13): split package/sites repos (tag from and on the package repo, pin commit + push in the sites repo, reuse, dirty sites repo and package-touching hook abort), tag math incl. &amp;lt;code&amp;gt;firstTag&amp;lt;/code&amp;gt;, expansion, flag validation, subpath-aware pin rewrite and URLs, dirty/behind/tag-moved/stray-local-tag/site-outside-repo aborts, pin commit + tag + push with a clean tree after, tag reuse, rejected push + resume, hook touching a file outside the site folders aborts and restores, CDN gate incl. runtime-built base prefixes, dry-run changes nothing, partial FTP failure + reconnect, registry consistency — against a throwaway monorepo with a bare origin, a local stand-in for jsDelivr serving the published tag, and a fake FTP. No real MindAttic.Web release has run yet; the first one publishes &amp;lt;code&amp;gt;V12&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| FTPS site upload&lt;br /&gt;
| 🟡 partial&lt;br /&gt;
| Exercised by real deploys; no automated test against a real host.&lt;br /&gt;
|-&lt;br /&gt;
| App deploy&lt;br /&gt;
| 🟡 partial&lt;br /&gt;
| Push-to-branch CI path; no automated test (it would push real branches).&lt;br /&gt;
|-&lt;br /&gt;
| Automated test suite&lt;br /&gt;
| 🟡 partial&lt;br /&gt;
| &amp;lt;code&amp;gt;test/linked.test.js&amp;lt;/code&amp;gt; covers the linked deploy and the CLI flag guards; plain site/app modes and the C# CLI have no automated tests ([[MindAttic.Deploy/rfc/0001-test-harness|rfc/0001-test-harness.md]]).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== 7. Active frontier &amp;lt;span id=&amp;quot;M.DPLY-7&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;RFC:&amp;lt;/strong&amp;gt; [[MindAttic.Deploy/rfc/0001-test-harness|rfc/0001-test-harness.md]] — extend automated tests to the plain site/app modes and the C# CLI so those behaviors can graduate from 🟡 to ✅.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Roadmap:&amp;lt;/strong&amp;gt; resolve MindAttic.Vault in the Node front door too, so &amp;lt;code&amp;gt;secrets/ftp.json&amp;lt;/code&amp;gt; can be dropped (M.DPLY-US-E2).&lt;br /&gt;
* &amp;lt;strong&amp;gt;Epics:&amp;lt;/strong&amp;gt; see [https://github.com/mindattic/MindAttic.Deploy/blob/main/docs/USER_STORIES.md USER_STORIES.md] — Epic A (registry-driven deploy), Epic C (root sites + linked group), Epic D (Blazor apps), Epic E (credentials), and the priority backlog (test harness).&lt;br /&gt;
&lt;br /&gt;
== 8. Quality bar &amp;lt;span id=&amp;quot;M.DPLY-8&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
A change is &amp;lt;strong&amp;gt;done&amp;lt;/strong&amp;gt; when:&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;code&amp;gt;dotnet build MindAttic.Deploy.slnx -c Release&amp;lt;/code&amp;gt; is clean (0 warnings — &amp;lt;code&amp;gt;TreatWarningsAsErrors=true&amp;lt;/code&amp;gt;).&lt;br /&gt;
# &amp;lt;code&amp;gt;node src/deploy.js --help&amp;lt;/code&amp;gt; runs, &amp;lt;code&amp;gt;npm test&amp;lt;/code&amp;gt; passes, and a representative &amp;lt;code&amp;gt;--dry-run&amp;lt;/code&amp;gt; deploy succeeds for the affected mode.&lt;br /&gt;
# Behavior changes land in &amp;lt;code&amp;gt;src/deploy.js&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;src/linked.js&amp;lt;/code&amp;gt; (not duplicated in the C# CLI — M.DPLY-LAW-1).&lt;br /&gt;
# Target changes are confined to &amp;lt;code&amp;gt;projects.json&amp;lt;/code&amp;gt; (M.DPLY-LAW-2); no credential touches source/output (M.DPLY-LAW-3).&lt;br /&gt;
# Per HOUSE-LAW-8: a status is &amp;lt;code&amp;gt;✅&amp;lt;/code&amp;gt; in the docs only when a build or run proves it; otherwise &amp;lt;code&amp;gt;🟡&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;⬜&amp;lt;/code&amp;gt;.&lt;br /&gt;
# &amp;lt;code&amp;gt;powershell -File tools/codex.ps1 doctor&amp;lt;/code&amp;gt; passes.&lt;br /&gt;
&lt;br /&gt;
== 9. Glossary &amp;lt;span id=&amp;quot;M.DPLY-9&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;Root site&amp;lt;/strong&amp;gt; — a verbatim FTPS-uploaded site (&amp;lt;code&amp;gt;mindattic.com&amp;lt;/code&amp;gt; root, &amp;lt;code&amp;gt;mindatticcares.com&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ryandebraal.com&amp;lt;/code&amp;gt;, plus the &amp;lt;code&amp;gt;hyperspace&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;idiotproof-replays&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;knowyourmech&amp;lt;/code&amp;gt; sub-folders); not templated.&lt;br /&gt;
* &amp;lt;strong&amp;gt;App&amp;lt;/strong&amp;gt; — a Blazor / GitHub-Actions deploy target; this repo commits+pushes, CI deploys.&lt;br /&gt;
* &amp;lt;strong&amp;gt;preDeploy hook&amp;lt;/strong&amp;gt; — a step run before upload/push: &amp;lt;code&amp;gt;package-pull&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;powershell&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;dotnet-build&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Mode flag&amp;lt;/strong&amp;gt; — one of &amp;lt;code&amp;gt;--site&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--sites&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--uiux&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--app&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;--apps&amp;lt;/code&amp;gt;; &amp;lt;code&amp;gt;src/deploy.js&amp;lt;/code&amp;gt; exits 2 without one.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Asset manifest&amp;lt;/strong&amp;gt; — &amp;lt;code&amp;gt;MindAttic.Components/web/assets-manifest.json&amp;lt;/code&amp;gt;, the verified list of package assets the CDN gate checks.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Linked group&amp;lt;/strong&amp;gt; — see §4.2; &amp;lt;strong&amp;gt;release tag&amp;lt;/strong&amp;gt; — the whole-number &amp;lt;code&amp;gt;V&amp;amp;lt;n&amp;gt;&amp;lt;/code&amp;gt; tag of MindAttic.Components a linked deploy publishes (or reuses) and pins in the sites; &amp;lt;strong&amp;gt;pin&amp;lt;/strong&amp;gt; — the &amp;lt;code&amp;gt;MindAttic.Components@V&amp;amp;lt;n&amp;gt;&amp;lt;/code&amp;gt; segment of a &amp;lt;code&amp;gt;…/MindAttic.Components@V&amp;amp;lt;n&amp;gt;/web/&amp;lt;/code&amp;gt; jsDelivr URL; &amp;lt;strong&amp;gt;pin commit&amp;lt;/strong&amp;gt; — the &amp;lt;code&amp;gt;Pin MindAttic.Components V&amp;amp;lt;n&amp;gt;&amp;lt;/code&amp;gt; commit holding the pins, splices and stamps that the release tag points at; &amp;lt;strong&amp;gt;CDN gate&amp;lt;/strong&amp;gt; — the pre-FTP check that every package asset the sites use is live at the release tag with the exact bytes.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Front door&amp;lt;/strong&amp;gt; — an entry point (the Node &amp;lt;code&amp;gt;npm run&amp;lt;/code&amp;gt; scripts or the C# CLI) onto the one deploy engine.&lt;br /&gt;
* &amp;lt;strong&amp;gt;Stamp&amp;lt;/strong&amp;gt; — the &amp;lt;code&amp;gt;&amp;amp;lt;!-- Last Updated: &amp;amp;lt;iso&amp;gt; --&amp;gt;&amp;lt;/code&amp;gt; comment written into a root site&amp;#039;s &amp;lt;code&amp;gt;stampFile&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[MindAttic.Deploy]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/MindAttic.Deploy/blob/main/docs/BIBLE.md MindAttic.Deploy/docs/BIBLE.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:MindAttic.Deploy]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>