diff --git a/docs/agents/action/iteration/role.md b/docs/agents/action/iteration/role.md index 8bcb159e9d..6c602e1160 100644 --- a/docs/agents/action/iteration/role.md +++ b/docs/agents/action/iteration/role.md @@ -36,6 +36,7 @@ For the matrix-variant mechanism (folder layout, round semantics, `--variant` / - Before you start a Role Loop on a matrix-variant role, you MUST decide if the iteration targets the FULL matrix (validates every variant) or ONE specific variant (focused debug). State the choice explicitly before the first deploy. - For focused debug on variant ``, you MUST pin `VARIANT=` on every command in the iteration. Mixing pinned and unpinned commands silently retargets a different folder. - Default focused-debug recipe: `VARIANT= make deploy-fresh-purged-apps APPS= FULL_CYCLE=true` once for the variant baseline, then `VARIANT= make deploy-reuse-kept-apps APPS=` for the edit-fix-redeploy loop. +- First contact with a previously-untouched `VARIANT=` MUST be `make deploy-fresh-purged-apps APPS= VARIANT=`, never a reuse target. Reuse re-pins the live stack onto stale volumes, DB rows and network aliases from the previously-pinned variant, producing split-brain app state. - If a reuse target aborts with "inventory not found", you MUST add `VARIANT=` and re-run; do NOT work around the error by re-creating the unsuffixed folder by hand. - For FULL-matrix iteration, omit `VARIANT=`. If any round fails, capture WHICH round was the last successful one so the next redeploy can pin `VARIANT=` to it. - When debugging cross-variant interaction (for example "the multisite variant breaks because single-site state was not purged"), reproduce with the FULL matrix once, then pin `VARIANT=` and iterate the fix. Re-run the FULL matrix only when you believe the fix is complete.