@webpieces/agent-workflow-rules 0.4.1027 → 0.4.1029

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"rule-migrations.js","sourceRoot":"","sources":["../../../../../packages/tooling/agent-workflow-rules/src/rule-migrations.ts"],"names":[],"mappings":";;;AAAA,oDAAwD;AAExD,uFAAuF;AAC1E,QAAA,cAAc,GAAgC;IACvD,IAAI,4BAAgB,CAAC,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,4LAA4L,EAAE,oBAAoB,EAAE,KAAK,CAAC;IACjS,IAAI,4BAAgB,CAAC,MAAM,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,ySAAyS,EAAE,qBAAqB,EAAE,KAAK,CAAC;IAChZ,IAAI,4BAAgB,CAAC,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,iVAAiV,EAAE,oBAAoB,EAAE,KAAK,CAAC;IACtb,IAAI,4BAAgB,CAAC,MAAM,EAAE,wBAAwB,EAAE,gEAAgE,EAAE,4VAA4V,EAAE,0BAA0B,EAAE,IAAI,CAAC;IACxf,IAAI,4BAAgB,CAAC,MAAM,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,oxBAAoxB,EAAE,wBAAwB,EAAE,KAAK,CAAC;IACj4B,IAAI,4BAAgB,CAAC,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,oxBAAoxB,EAAE,oBAAoB,EAAE,KAAK,CAAC;IACz3B,IAAI,4BAAgB,CAAC,MAAM,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,oxBAAoxB,EAAE,yBAAyB,EAAE,KAAK,CAAC;IACn4B,IAAI,4BAAgB,CAAC,MAAM,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,oxBAAoxB,EAAE,4BAA4B,EAAE,KAAK,CAAC;IACz4B,IAAI,4BAAgB,CAAC,MAAM,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,isBAAisB,EAAE,6BAA6B,EAAE,KAAK,CAAC;IACxzB,IAAI,4BAAgB,CAAC,MAAM,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,isBAAisB,EAAE,2BAA2B,EAAE,KAAK,CAAC;IACpzB,IAAI,4BAAgB,CAAC,MAAM,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,isBAAisB,EAAE,kBAAkB,EAAE,KAAK,CAAC;IAClyB,IAAI,4BAAgB,CAAC,MAAM,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,isBAAisB,EAAE,8BAA8B,EAAE,KAAK,CAAC;IAC1zB,IAAI,4BAAgB,CAAC,OAAO,EAAE,oCAAoC,EAAE,EAAE,EAAE,2MAA2M,EAAE,sBAAsB,EAAE,KAAK,CAAC;IACnT,IAAI,4BAAgB,CAAC,OAAO,EAAE,yCAAyC,EAAE,EAAE,EAAE,0MAA0M,EAAE,sBAAsB,EAAE,KAAK,CAAC;CAC1T,CAAC","sourcesContent":["import { RetiredConfigKey } from '@webpieces/rules-sdk';\n\n/** Rejected obsolete workflow switches, preserving their exact repair instructions. */\nexport const ruleMigrations: readonly RetiredConfigKey[] = [\n new RetiredConfigKey(\"rule\", \"pr-merge-cleanup\", \"pr-lifecycle-guard\", \"Rename the key to \\\"pr-lifecycle-guard\\\" (merging its value into that entry if you already have one — the four PR/merge guards share one key now). Its mode and escape hatches carry over.\", \"[pr-merge-cleanup]\", false),\n new RetiredConfigKey(\"rule\", \"pr-creation-guard\", \"pr-lifecycle-guard\", \"Rename the key to \\\"pr-lifecycle-guard\\\" (merging its value into that entry if you already have one — the four PR/merge guards share one key now). Its mode and escape hatches carry over; the old \\\"upsertPrCommand\\\" field does NOT — that string lives only in commands.guardHints.prCreationOrPush.\", \"[pr-creation-guard]\", false),\n new RetiredConfigKey(\"rule\", \"main-stale-guard\", \"branch-state-guard\", \"Rename the key to \\\"branch-state-guard\\\" (merging its value into that entry if you already have one — the four branch-state guards share one key now). Its mode and escape hatches carry over. Note the widened scope: that key arms the Write, Read AND Bash halves of the branch-state policy, not just the Read block this key used to name.\", \"[main-stale-guard]\", false),\n new RetiredConfigKey(\"rule\", \"whole-repo-build-guard\", \"~/.webpieces/config.json → experimental.whole-repo-build-guard\", \"DELETE this entry from webpieces.config.json — no repo config key controls this guard any more. The guard is OFF by default for everyone, with no file and no key required. To turn it ON for YOUR machine only, put {\\\"experimental\\\": {\\\"whole-repo-build-guard\\\": true}} in ~/.webpieces/config.json — that file is optional and is tracked by no repo.\", \"[whole-repo-build-guard]\", true),\n new RetiredConfigKey(\"rule\", \"feature-branch-guard\", \"branch-state-guard\", \"MERGE it into ONE \\\"branch-state-guard\\\" entry under \\\"hookGuards\\\". All four of feature-branch-guard, read-stale-guard, stale-main-bash-guard and merged-branch-bash-guard now read that single entry — they are one policy (\\\"may I work here, and is what I read current?\\\") implemented by four classes, and configuring them separately let you switch on half of it. Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\"; the ONE \\\"hangTimeoutMinutes\\\" survives (there was only ever one refresher and one cache, so at most one of the four values could ever take effect); \\\"branchNamingConvention\\\" survives from feature-branch-guard. If the four disagreed on \\\"mode\\\", pick the one you meant — \\\"ON\\\" arms the whole policy including the Read block. Then DELETE this key.\", \"[feature-branch-guard]\", false),\n new RetiredConfigKey(\"rule\", \"read-stale-guard\", \"branch-state-guard\", \"MERGE it into ONE \\\"branch-state-guard\\\" entry under \\\"hookGuards\\\". All four of feature-branch-guard, read-stale-guard, stale-main-bash-guard and merged-branch-bash-guard now read that single entry — they are one policy (\\\"may I work here, and is what I read current?\\\") implemented by four classes, and configuring them separately let you switch on half of it. Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\"; the ONE \\\"hangTimeoutMinutes\\\" survives (there was only ever one refresher and one cache, so at most one of the four values could ever take effect); \\\"branchNamingConvention\\\" survives from feature-branch-guard. If the four disagreed on \\\"mode\\\", pick the one you meant — \\\"ON\\\" arms the whole policy including the Read block. Then DELETE this key.\", \"[read-stale-guard]\", false),\n new RetiredConfigKey(\"rule\", \"stale-main-bash-guard\", \"branch-state-guard\", \"MERGE it into ONE \\\"branch-state-guard\\\" entry under \\\"hookGuards\\\". All four of feature-branch-guard, read-stale-guard, stale-main-bash-guard and merged-branch-bash-guard now read that single entry — they are one policy (\\\"may I work here, and is what I read current?\\\") implemented by four classes, and configuring them separately let you switch on half of it. Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\"; the ONE \\\"hangTimeoutMinutes\\\" survives (there was only ever one refresher and one cache, so at most one of the four values could ever take effect); \\\"branchNamingConvention\\\" survives from feature-branch-guard. If the four disagreed on \\\"mode\\\", pick the one you meant — \\\"ON\\\" arms the whole policy including the Read block. Then DELETE this key.\", \"[stale-main-bash-guard]\", false),\n new RetiredConfigKey(\"rule\", \"merged-branch-bash-guard\", \"branch-state-guard\", \"MERGE it into ONE \\\"branch-state-guard\\\" entry under \\\"hookGuards\\\". All four of feature-branch-guard, read-stale-guard, stale-main-bash-guard and merged-branch-bash-guard now read that single entry — they are one policy (\\\"may I work here, and is what I read current?\\\") implemented by four classes, and configuring them separately let you switch on half of it. Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\"; the ONE \\\"hangTimeoutMinutes\\\" survives (there was only ever one refresher and one cache, so at most one of the four values could ever take effect); \\\"branchNamingConvention\\\" survives from feature-branch-guard. If the four disagreed on \\\"mode\\\", pick the one you meant — \\\"ON\\\" arms the whole policy including the Read block. Then DELETE this key.\", \"[merged-branch-bash-guard]\", false),\n new RetiredConfigKey(\"rule\", \"pr-creation-or-push-guard\", \"pr-lifecycle-guard\", \"MERGE it into ONE \\\"pr-lifecycle-guard\\\" entry under \\\"hookGuards\\\". All four of pr-creation-or-push-guard, merge-in-progress-guard, pr-merge-guard and redirect-how-to-merge-main now read that single entry — they are one policy (\\\"do PRs and merges go through the gated flow?\\\"). Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\". Know what \\\"mode\\\": \\\"OFF\\\" now means: it releases the unvalidated-merge gate as well as the PR/push blocks, because merge-in-progress-guard is under this key too. The per-guard \\\"upsertPrCommand\\\" / \\\"mergeCompleteCommand\\\" fields are gone — those strings live ONLY in commands.guardHints.prCreationOrPush / .mergeInProgress. Then DELETE this key.\", \"[pr-creation-or-push-guard]\", false),\n new RetiredConfigKey(\"rule\", \"merge-in-progress-guard\", \"pr-lifecycle-guard\", \"MERGE it into ONE \\\"pr-lifecycle-guard\\\" entry under \\\"hookGuards\\\". All four of pr-creation-or-push-guard, merge-in-progress-guard, pr-merge-guard and redirect-how-to-merge-main now read that single entry — they are one policy (\\\"do PRs and merges go through the gated flow?\\\"). Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\". Know what \\\"mode\\\": \\\"OFF\\\" now means: it releases the unvalidated-merge gate as well as the PR/push blocks, because merge-in-progress-guard is under this key too. The per-guard \\\"upsertPrCommand\\\" / \\\"mergeCompleteCommand\\\" fields are gone — those strings live ONLY in commands.guardHints.prCreationOrPush / .mergeInProgress. Then DELETE this key.\", \"[merge-in-progress-guard]\", false),\n new RetiredConfigKey(\"rule\", \"pr-merge-guard\", \"pr-lifecycle-guard\", \"MERGE it into ONE \\\"pr-lifecycle-guard\\\" entry under \\\"hookGuards\\\". All four of pr-creation-or-push-guard, merge-in-progress-guard, pr-merge-guard and redirect-how-to-merge-main now read that single entry — they are one policy (\\\"do PRs and merges go through the gated flow?\\\"). Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\". Know what \\\"mode\\\": \\\"OFF\\\" now means: it releases the unvalidated-merge gate as well as the PR/push blocks, because merge-in-progress-guard is under this key too. The per-guard \\\"upsertPrCommand\\\" / \\\"mergeCompleteCommand\\\" fields are gone — those strings live ONLY in commands.guardHints.prCreationOrPush / .mergeInProgress. Then DELETE this key.\", \"[pr-merge-guard]\", false),\n new RetiredConfigKey(\"rule\", \"redirect-how-to-merge-main\", \"pr-lifecycle-guard\", \"MERGE it into ONE \\\"pr-lifecycle-guard\\\" entry under \\\"hookGuards\\\". All four of pr-creation-or-push-guard, merge-in-progress-guard, pr-merge-guard and redirect-how-to-merge-main now read that single entry — they are one policy (\\\"do PRs and merges go through the gated flow?\\\"). Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\". Know what \\\"mode\\\": \\\"OFF\\\" now means: it releases the unvalidated-merge gate as well as the PR/push blocks, because merge-in-progress-guard is under this key too. The per-guard \\\"upsertPrCommand\\\" / \\\"mergeCompleteCommand\\\" fields are gone — those strings live ONLY in commands.guardHints.prCreationOrPush / .mergeInProgress. Then DELETE this key.\", \"[redirect-how-to-merge-main]\", false),\n new RetiredConfigKey(\"field\", \"pr-lifecycle-guard.upsertPrCommand\", \"\", \"This field was removed. The command the push/PR-creation block prints lives in ONE place: \\\"commands\\\": { \\\"guardHints\\\": { \\\"prCreationOrPush\\\": <value> } }. Move your value there and delete this key.\", \"[pr-lifecycle-guard]\", false),\n new RetiredConfigKey(\"field\", \"pr-lifecycle-guard.mergeCompleteCommand\", \"\", \"This field was removed. The command the unfinished-merge block prints lives in ONE place: \\\"commands\\\": { \\\"guardHints\\\": { \\\"mergeInProgress\\\": <value> } }. Move your value there and delete this key.\", \"[pr-lifecycle-guard]\", false),\n];\n"]}
1
+ {"version":3,"file":"rule-migrations.js","sourceRoot":"","sources":["../../../../../packages/tooling/agent-workflow-rules/src/rule-migrations.ts"],"names":[],"mappings":";;;AAAA,oDAAwD;AAExD,uFAAuF;AAC1E,QAAA,cAAc,GAAgC;IACvD,IAAI,4BAAgB,CAAC,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,4LAA4L,EAAE,oBAAoB,EAAE,KAAK,CAAC;IACjS,IAAI,4BAAgB,CAAC,MAAM,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,ySAAyS,EAAE,qBAAqB,EAAE,KAAK,CAAC;IAChZ,IAAI,4BAAgB,CAAC,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,iVAAiV,EAAE,oBAAoB,EAAE,KAAK,CAAC;IACtb,IAAI,4BAAgB,CAAC,MAAM,EAAE,wBAAwB,EAAE,gDAAgD,EAAE,0KAA0K,EAAE,0BAA0B,EAAE,IAAI,CAAC;IACtT,IAAI,4BAAgB,CAAC,MAAM,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,oxBAAoxB,EAAE,wBAAwB,EAAE,KAAK,CAAC;IACj4B,IAAI,4BAAgB,CAAC,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,oxBAAoxB,EAAE,oBAAoB,EAAE,KAAK,CAAC;IACz3B,IAAI,4BAAgB,CAAC,MAAM,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,oxBAAoxB,EAAE,yBAAyB,EAAE,KAAK,CAAC;IACn4B,IAAI,4BAAgB,CAAC,MAAM,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,oxBAAoxB,EAAE,4BAA4B,EAAE,KAAK,CAAC;IACz4B,IAAI,4BAAgB,CAAC,MAAM,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,isBAAisB,EAAE,6BAA6B,EAAE,KAAK,CAAC;IACxzB,IAAI,4BAAgB,CAAC,MAAM,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,isBAAisB,EAAE,2BAA2B,EAAE,KAAK,CAAC;IACpzB,IAAI,4BAAgB,CAAC,MAAM,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,isBAAisB,EAAE,kBAAkB,EAAE,KAAK,CAAC;IAClyB,IAAI,4BAAgB,CAAC,MAAM,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,isBAAisB,EAAE,8BAA8B,EAAE,KAAK,CAAC;IAC1zB,IAAI,4BAAgB,CAAC,OAAO,EAAE,oCAAoC,EAAE,EAAE,EAAE,2MAA2M,EAAE,sBAAsB,EAAE,KAAK,CAAC;IACnT,IAAI,4BAAgB,CAAC,OAAO,EAAE,yCAAyC,EAAE,EAAE,EAAE,0MAA0M,EAAE,sBAAsB,EAAE,KAAK,CAAC;CAC1T,CAAC","sourcesContent":["import { RetiredConfigKey } from '@webpieces/rules-sdk';\n\n/** Rejected obsolete workflow switches, preserving their exact repair instructions. */\nexport const ruleMigrations: readonly RetiredConfigKey[] = [\n new RetiredConfigKey(\"rule\", \"pr-merge-cleanup\", \"pr-lifecycle-guard\", \"Rename the key to \\\"pr-lifecycle-guard\\\" (merging its value into that entry if you already have one — the four PR/merge guards share one key now). Its mode and escape hatches carry over.\", \"[pr-merge-cleanup]\", false),\n new RetiredConfigKey(\"rule\", \"pr-creation-guard\", \"pr-lifecycle-guard\", \"Rename the key to \\\"pr-lifecycle-guard\\\" (merging its value into that entry if you already have one — the four PR/merge guards share one key now). Its mode and escape hatches carry over; the old \\\"upsertPrCommand\\\" field does NOT — that string lives only in commands.guardHints.prCreationOrPush.\", \"[pr-creation-guard]\", false),\n new RetiredConfigKey(\"rule\", \"main-stale-guard\", \"branch-state-guard\", \"Rename the key to \\\"branch-state-guard\\\" (merging its value into that entry if you already have one — the four branch-state guards share one key now). Its mode and escape hatches carry over. Note the widened scope: that key arms the Write, Read AND Bash halves of the branch-state policy, not just the Read block this key used to name.\", \"[main-stale-guard]\", false),\n new RetiredConfigKey(\"rule\", \"whole-repo-build-guard\", \"nowhere — the guard is always on (issue #1494)\", \"DELETE this entry from webpieces.config.json — no config key controls this guard any more. It is permanent and always ON for everyone, with no file and no key required.\", \"[whole-repo-build-guard]\", true),\n new RetiredConfigKey(\"rule\", \"feature-branch-guard\", \"branch-state-guard\", \"MERGE it into ONE \\\"branch-state-guard\\\" entry under \\\"hookGuards\\\". All four of feature-branch-guard, read-stale-guard, stale-main-bash-guard and merged-branch-bash-guard now read that single entry — they are one policy (\\\"may I work here, and is what I read current?\\\") implemented by four classes, and configuring them separately let you switch on half of it. Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\"; the ONE \\\"hangTimeoutMinutes\\\" survives (there was only ever one refresher and one cache, so at most one of the four values could ever take effect); \\\"branchNamingConvention\\\" survives from feature-branch-guard. If the four disagreed on \\\"mode\\\", pick the one you meant — \\\"ON\\\" arms the whole policy including the Read block. Then DELETE this key.\", \"[feature-branch-guard]\", false),\n new RetiredConfigKey(\"rule\", \"read-stale-guard\", \"branch-state-guard\", \"MERGE it into ONE \\\"branch-state-guard\\\" entry under \\\"hookGuards\\\". All four of feature-branch-guard, read-stale-guard, stale-main-bash-guard and merged-branch-bash-guard now read that single entry — they are one policy (\\\"may I work here, and is what I read current?\\\") implemented by four classes, and configuring them separately let you switch on half of it. Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\"; the ONE \\\"hangTimeoutMinutes\\\" survives (there was only ever one refresher and one cache, so at most one of the four values could ever take effect); \\\"branchNamingConvention\\\" survives from feature-branch-guard. If the four disagreed on \\\"mode\\\", pick the one you meant — \\\"ON\\\" arms the whole policy including the Read block. Then DELETE this key.\", \"[read-stale-guard]\", false),\n new RetiredConfigKey(\"rule\", \"stale-main-bash-guard\", \"branch-state-guard\", \"MERGE it into ONE \\\"branch-state-guard\\\" entry under \\\"hookGuards\\\". All four of feature-branch-guard, read-stale-guard, stale-main-bash-guard and merged-branch-bash-guard now read that single entry — they are one policy (\\\"may I work here, and is what I read current?\\\") implemented by four classes, and configuring them separately let you switch on half of it. Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\"; the ONE \\\"hangTimeoutMinutes\\\" survives (there was only ever one refresher and one cache, so at most one of the four values could ever take effect); \\\"branchNamingConvention\\\" survives from feature-branch-guard. If the four disagreed on \\\"mode\\\", pick the one you meant — \\\"ON\\\" arms the whole policy including the Read block. Then DELETE this key.\", \"[stale-main-bash-guard]\", false),\n new RetiredConfigKey(\"rule\", \"merged-branch-bash-guard\", \"branch-state-guard\", \"MERGE it into ONE \\\"branch-state-guard\\\" entry under \\\"hookGuards\\\". All four of feature-branch-guard, read-stale-guard, stale-main-bash-guard and merged-branch-bash-guard now read that single entry — they are one policy (\\\"may I work here, and is what I read current?\\\") implemented by four classes, and configuring them separately let you switch on half of it. Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\"; the ONE \\\"hangTimeoutMinutes\\\" survives (there was only ever one refresher and one cache, so at most one of the four values could ever take effect); \\\"branchNamingConvention\\\" survives from feature-branch-guard. If the four disagreed on \\\"mode\\\", pick the one you meant — \\\"ON\\\" arms the whole policy including the Read block. Then DELETE this key.\", \"[merged-branch-bash-guard]\", false),\n new RetiredConfigKey(\"rule\", \"pr-creation-or-push-guard\", \"pr-lifecycle-guard\", \"MERGE it into ONE \\\"pr-lifecycle-guard\\\" entry under \\\"hookGuards\\\". All four of pr-creation-or-push-guard, merge-in-progress-guard, pr-merge-guard and redirect-how-to-merge-main now read that single entry — they are one policy (\\\"do PRs and merges go through the gated flow?\\\"). Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\". Know what \\\"mode\\\": \\\"OFF\\\" now means: it releases the unvalidated-merge gate as well as the PR/push blocks, because merge-in-progress-guard is under this key too. The per-guard \\\"upsertPrCommand\\\" / \\\"mergeCompleteCommand\\\" fields are gone — those strings live ONLY in commands.guardHints.prCreationOrPush / .mergeInProgress. Then DELETE this key.\", \"[pr-creation-or-push-guard]\", false),\n new RetiredConfigKey(\"rule\", \"merge-in-progress-guard\", \"pr-lifecycle-guard\", \"MERGE it into ONE \\\"pr-lifecycle-guard\\\" entry under \\\"hookGuards\\\". All four of pr-creation-or-push-guard, merge-in-progress-guard, pr-merge-guard and redirect-how-to-merge-main now read that single entry — they are one policy (\\\"do PRs and merges go through the gated flow?\\\"). Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\". Know what \\\"mode\\\": \\\"OFF\\\" now means: it releases the unvalidated-merge gate as well as the PR/push blocks, because merge-in-progress-guard is under this key too. The per-guard \\\"upsertPrCommand\\\" / \\\"mergeCompleteCommand\\\" fields are gone — those strings live ONLY in commands.guardHints.prCreationOrPush / .mergeInProgress. Then DELETE this key.\", \"[merge-in-progress-guard]\", false),\n new RetiredConfigKey(\"rule\", \"pr-merge-guard\", \"pr-lifecycle-guard\", \"MERGE it into ONE \\\"pr-lifecycle-guard\\\" entry under \\\"hookGuards\\\". All four of pr-creation-or-push-guard, merge-in-progress-guard, pr-merge-guard and redirect-how-to-merge-main now read that single entry — they are one policy (\\\"do PRs and merges go through the gated flow?\\\"). Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\". Know what \\\"mode\\\": \\\"OFF\\\" now means: it releases the unvalidated-merge gate as well as the PR/push blocks, because merge-in-progress-guard is under this key too. The per-guard \\\"upsertPrCommand\\\" / \\\"mergeCompleteCommand\\\" fields are gone — those strings live ONLY in commands.guardHints.prCreationOrPush / .mergeInProgress. Then DELETE this key.\", \"[pr-merge-guard]\", false),\n new RetiredConfigKey(\"rule\", \"redirect-how-to-merge-main\", \"pr-lifecycle-guard\", \"MERGE it into ONE \\\"pr-lifecycle-guard\\\" entry under \\\"hookGuards\\\". All four of pr-creation-or-push-guard, merge-in-progress-guard, pr-merge-guard and redirect-how-to-merge-main now read that single entry — they are one policy (\\\"do PRs and merges go through the gated flow?\\\"). Keep \\\"mode\\\", \\\"turnOffRuleUntilEpoch\\\" and \\\"turnOffRuleWhileOnBranch\\\". Know what \\\"mode\\\": \\\"OFF\\\" now means: it releases the unvalidated-merge gate as well as the PR/push blocks, because merge-in-progress-guard is under this key too. The per-guard \\\"upsertPrCommand\\\" / \\\"mergeCompleteCommand\\\" fields are gone — those strings live ONLY in commands.guardHints.prCreationOrPush / .mergeInProgress. Then DELETE this key.\", \"[redirect-how-to-merge-main]\", false),\n new RetiredConfigKey(\"field\", \"pr-lifecycle-guard.upsertPrCommand\", \"\", \"This field was removed. The command the push/PR-creation block prints lives in ONE place: \\\"commands\\\": { \\\"guardHints\\\": { \\\"prCreationOrPush\\\": <value> } }. Move your value there and delete this key.\", \"[pr-lifecycle-guard]\", false),\n new RetiredConfigKey(\"field\", \"pr-lifecycle-guard.mergeCompleteCommand\", \"\", \"This field was removed. The command the unfinished-merge block prints lives in ONE place: \\\"commands\\\": { \\\"guardHints\\\": { \\\"mergeInProgress\\\": <value> } }. Move your value there and delete this key.\", \"[pr-lifecycle-guard]\", false),\n];\n"]}
@@ -11,6 +11,6 @@ exports.safeguardCatalog = [
11
11
  new rules_sdk_1.SafeguardDefinition('commit-message-substitution-guard', 'fixed', 'Reject shell substitution in commit messages.'),
12
12
  new rules_sdk_1.SafeguardDefinition('build-output-pipe-guard', 'fixed', 'Preserve build evidence instead of piping away its output.'),
13
13
  new rules_sdk_1.SafeguardDefinition('wait-spin-guard', 'fixed', 'Reject shell wait loops that spin without progress.'),
14
- new rules_sdk_1.SafeguardDefinition('whole-repo-build-guard', 'experimental', 'Opt in through experimental.whole-repo-build-guard in the optional machine-local config.'),
14
+ new rules_sdk_1.SafeguardDefinition('whole-repo-build-guard', 'fixed', 'Refuse a whole-monorepo build and name the affected-scoped command instead.'),
15
15
  ];
16
16
  //# sourceMappingURL=safeguard-catalog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"safeguard-catalog.js","sourceRoot":"","sources":["../../../../../packages/tooling/agent-workflow-rules/src/safeguard-catalog.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAC3D,0DAAyD;AACzD,0EAAsE;AAEtE,4FAA4F;AAC/E,QAAA,gBAAgB,GAAmC;IAC5D,GAAG,MAAM,CAAC,MAAM,CAAC,6BAAc,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,+BAAmB,CAAC,EAAE,EAAE,OAAO,EAAE,uEAAuE,CAAC,CAAC;IACzJ,IAAI,+BAAmB,CAAC,0CAAmB,EAAE,OAAO,EAAE,4FAA4F,CAAC;IACnJ,IAAI,+BAAmB,CAAC,mCAAmC,EAAE,OAAO,EAAE,+CAA+C,CAAC;IACtH,IAAI,+BAAmB,CAAC,yBAAyB,EAAE,OAAO,EAAE,4DAA4D,CAAC;IACzH,IAAI,+BAAmB,CAAC,iBAAiB,EAAE,OAAO,EAAE,qDAAqD,CAAC;IAC1G,IAAI,+BAAmB,CAAC,wBAAwB,EAAE,cAAc,EAAE,0FAA0F,CAAC;CAChK,CAAC","sourcesContent":["import { SafeguardDefinition } from '@webpieces/rules-sdk';\nimport { L0_FAULT_NAMES } from '@webpieces/rules-config';\nimport { CODEX_SUBAGENT_RULE } from './adapters/codex-subagent-guard';\n\n/** Existing keyless checks, cataloged for discovery without introducing config switches. */\nexport const safeguardCatalog: readonly SafeguardDefinition[] = [\n ...Object.values(L0_FAULT_NAMES).map(id => new SafeguardDefinition(id, 'fixed', 'L0 tooling integrity; enforced by the managed shim and workflow hook.')),\n new SafeguardDefinition(CODEX_SUBAGENT_RULE, 'fixed', 'Protect the shared coordinator tree and require reviewer verdicts through wp-write-review.'),\n new SafeguardDefinition('commit-message-substitution-guard', 'fixed', 'Reject shell substitution in commit messages.'),\n new SafeguardDefinition('build-output-pipe-guard', 'fixed', 'Preserve build evidence instead of piping away its output.'),\n new SafeguardDefinition('wait-spin-guard', 'fixed', 'Reject shell wait loops that spin without progress.'),\n new SafeguardDefinition('whole-repo-build-guard', 'experimental', 'Opt in through experimental.whole-repo-build-guard in the optional machine-local config.'),\n];\n"]}
1
+ {"version":3,"file":"safeguard-catalog.js","sourceRoot":"","sources":["../../../../../packages/tooling/agent-workflow-rules/src/safeguard-catalog.ts"],"names":[],"mappings":";;;AAAA,oDAA2D;AAC3D,0DAAyD;AACzD,0EAAsE;AAEtE,4FAA4F;AAC/E,QAAA,gBAAgB,GAAmC;IAC5D,GAAG,MAAM,CAAC,MAAM,CAAC,6BAAc,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,+BAAmB,CAAC,EAAE,EAAE,OAAO,EAAE,uEAAuE,CAAC,CAAC;IACzJ,IAAI,+BAAmB,CAAC,0CAAmB,EAAE,OAAO,EAAE,4FAA4F,CAAC;IACnJ,IAAI,+BAAmB,CAAC,mCAAmC,EAAE,OAAO,EAAE,+CAA+C,CAAC;IACtH,IAAI,+BAAmB,CAAC,yBAAyB,EAAE,OAAO,EAAE,4DAA4D,CAAC;IACzH,IAAI,+BAAmB,CAAC,iBAAiB,EAAE,OAAO,EAAE,qDAAqD,CAAC;IAC1G,IAAI,+BAAmB,CAAC,wBAAwB,EAAE,OAAO,EAAE,6EAA6E,CAAC;CAC5I,CAAC","sourcesContent":["import { SafeguardDefinition } from '@webpieces/rules-sdk';\nimport { L0_FAULT_NAMES } from '@webpieces/rules-config';\nimport { CODEX_SUBAGENT_RULE } from './adapters/codex-subagent-guard';\n\n/** Existing keyless checks, cataloged for discovery without introducing config switches. */\nexport const safeguardCatalog: readonly SafeguardDefinition[] = [\n ...Object.values(L0_FAULT_NAMES).map(id => new SafeguardDefinition(id, 'fixed', 'L0 tooling integrity; enforced by the managed shim and workflow hook.')),\n new SafeguardDefinition(CODEX_SUBAGENT_RULE, 'fixed', 'Protect the shared coordinator tree and require reviewer verdicts through wp-write-review.'),\n new SafeguardDefinition('commit-message-substitution-guard', 'fixed', 'Reject shell substitution in commit messages.'),\n new SafeguardDefinition('build-output-pipe-guard', 'fixed', 'Preserve build evidence instead of piping away its output.'),\n new SafeguardDefinition('wait-spin-guard', 'fixed', 'Reject shell wait loops that spin without progress.'),\n new SafeguardDefinition('whole-repo-build-guard', 'fixed', 'Refuse a whole-monorepo build and name the affected-scoped command instead.'),\n];\n"]}