@@ -109,7 +109,14 @@ To move wording you already have pasted into several assistants:
109109 🧩 reception (uses blocks, matches the dashboard — file left as written)
110110 ```
111111
112- That line tells you the move changed no wording. If a file you moved does
112+ This assumes the file is already linked to the live resource in state.
113+ Pull never links an unknown UUID to a file just because their names match.
114+ For a renamed or moved file, explicitly approve ` --adopt <resourceId>=<uuid> `
115+ to keep managing the existing resource; see [ Running in CI] ( commands.md#running-in-ci ) .
116+ Assistant subfolders set ` metadata.gitops.folderPath ` on push. That derived
117+ field is excluded from drift hashes, including when the file uses blocks.
118+
119+ That line tells you the move changed no wording. If a linked file you moved does
113120 not get that line, its finished prompt differs from the live one: compare
114121 your block with the paragraph you deleted before you deploy.
1151225 . Deploy the file. ** Changes a live org.**
@@ -159,14 +166,10 @@ The full rules are in [Config blocks](blocks.md#config-blocks).
159166squad. `apply` stops when it meets files it has never deployed, and lists
160167them :
161168
162- ` ` ` text
163- ❌ Push refused: 3 file(s) on disk have no state-file UUID mapping for env "north-clinic".
164- …
165- Files without state entry:
166- - resources/north-clinic/assistants/pharmacy.md
167- - resources/north-clinic/assistants/triage.md
168- - resources/north-clinic/squads/front-desk.yml
169- ` ` `
169+ The grouped link preflight reports "Not linked to any resource in north-clinic
170+ yet" for each unlinked file, with commands for creating a new resource or
171+ explicitly adopting an existing one. It stops before file deletion, state
172+ writes or remote mutations. Same-named resources are never linked automatically.
170173
171174Read the list. When every file on it is meant to be new, confirm with the
172175flag (see
@@ -177,6 +180,16 @@ npm run apply -- north-clinic --allow-new-files
177180npm run apply -- south-clinic --allow-new-files
178181` ` `
179182
183+ If a file should manage an existing resource instead, get explicit approval
184+ for `--adopt <resourceId>[=<uuid>]`, not `--allow-new-files`. Unchanged leftover
185+ alias files are removed using their last-synced baseline; edited or unbaselined
186+ aliases require review. Never bypass this choice just to make a deploy pass.
187+
188+ After linking, push preflights the write plan, including dependencies, before
189+ any remote mutation. Validation errors and unresolved credentials in that
190+ plan block even a dry run. `--strict` also blocks errors outside the plan and
191+ ` variable-undefined` warnings; other warnings remain advisory.
192+
180193` ` ` text
181194 ⚠️ bypassing new-file gate: creating 3 new resource(s) on the dashboard
182195 ✨ Creating assistant: pharmacy
@@ -193,11 +206,13 @@ git add templates resources state
193206git commit -m "Add two clinics that share blocks"
194207` ` `
195208
196- ` state/<org>/` is the engine's record of each org. One file in it,
209+ `state/<org>/` is the engine's record of each org : ` state.json` maps resource
210+ IDs to UUIDs and `org.json` pins the folder to its org. One other file in it,
197211` blocks.json` , records which block text each resource was last pushed with.
198212That record is how `sync-blocks` knows what a block edit has not reached
199213yet. Commit `state/` whenever a command changes it, and never edit it by
200- hand.
214+ hand. Baselines and snapshots under `state/<org>/local/` are per-developer
215+ and gitignored; do not stage them.
201216
202217After the deploy, `npm run sync-blocks` prints
203218` ✅ Every resource is in sync with its blocks.`
@@ -558,13 +573,15 @@ the marker left in or the text missing:
558573` validate` , `apply` and `sync-blocks` each stopped with that message and exit
559574code 1, and none of them sent anything to the API.
560575
561- **A variable nobody defines is not caught.** The engine does not check Liquid
562- variables. A block that says `We are open {{opening_hours}}.` passed
563- ` validate` with no warning when no squad set `opening_hours`. On a call, Vapi
564- leaves a variable with no value in the prompt as written, so the model sees
565- the braces (see the gotcha under
566- [Override Merge Order](../learnings/squads.md#override-merge-order)). When a
567- block uses a variable, give it a value in every squad that uses the block.
576+ **Undefined squad variables warn, and block under `--strict`.** After block
577+ expansion, the engine checks each squad member's effective assistant prompt
578+ and greeting against its variable values and known built-ins. A block that
579+ says `We are open {{opening_hours}}.` produces `variable-undefined` when a
580+ squad uses it without defining `opening_hours`. Normal validate and push
581+ warn; `--strict` makes the finding blocking in both, including scoped pushes.
582+ This is a static squad check, not a guarantee about values supplied on a live
583+ call. Give every variable a value in each squad that uses the block; see
584+ [Override Merge Order](../learnings/squads.md#override-merge-order).
568585
569586**Two mistakes are warnings today, not errors.** `validate` prints them and
570587still passes :
@@ -597,6 +614,11 @@ run at all:
597614- **Live simulations.** The PR check was built with `--dry-run`, so no
598615 simulation ran.
599616
617+ That run predates the current adoption/link preflight and undefined-variable
618+ checks. The descriptions of those checks above reflect the current engine;
619+ the old first-deploy refusal output has been replaced with a description of
620+ the grouped report.
621+
600622The stand-in is not Vapi. Where a result depends on how the API stores an
601623update, as with the dashboard-only setting in step 5, check it on your own
602624org before you rely on it.
0 commit comments