@codedrifters/configulator 0.0.353 → 0.0.354

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.
package/lib/index.mjs CHANGED
@@ -17990,7 +17990,12 @@ var prReviewerSubAgent = {
17990
17990
  " `review:human-required` label, set `mode = human-required`.",
17991
17991
  "3. **Labels that force human** \u2014 if the PR carries any label listed",
17992
17992
  " under `human-required.labels-that-force-human` (e.g.",
17993
- " `priority:critical`), set `mode = human-required`.",
17993
+ " `review:human-required`), set `mode = human-required`. Evaluate",
17994
+ " the PR's **own** labels only \u2014 rules 1\u20133 never traverse the",
17995
+ " `Closes #N` link to read the linked issue's labels. `priority:*`",
17996
+ " and `status:*` are issue-triage labels for the orchestrator's",
17997
+ " scheduling queue, not merge-risk signals, and are never listed",
17998
+ " here.",
17994
17999
  "4. **Path globs** \u2014 if any file in the PR diff matches any glob in",
17995
18000
  " `human-required.paths`, set `mode = human-required`. Record the",
17996
18001
  " first matching path + glob pair as the reason.",
@@ -18508,7 +18513,7 @@ var prReviewerSubAgent = {
18508
18513
  "when the mode is `human-required` and any of the following fired:",
18509
18514
  "",
18510
18515
  "- rule 2 (`review:human-required` label),",
18511
- "- rule 3 (any `labels-that-force-human` label such as `priority:critical`),",
18516
+ "- rule 3 (any `labels-that-force-human` label),",
18512
18517
  "- rule 4 (`human-required.paths` glob match), or",
18513
18518
  "- rule 5 (`human-required.issue-types` match).",
18514
18519
  "",
@@ -19321,7 +19326,6 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
19321
19326
  " insertions: 500",
19322
19327
  " labels-that-force-human:",
19323
19328
  ' - "review:human-required"',
19324
- ' - "priority:critical"',
19325
19329
  "",
19326
19330
  "auto-merge:",
19327
19331
  " labels-that-force-auto:",
@@ -19352,8 +19356,9 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
19352
19356
  "2. **`review:human-required` label** \u2014 reserved force-human label;",
19353
19357
  " if present (and no force-auto label beat it in step 1), the mode",
19354
19358
  " is `human-required`.",
19355
- "3. **`human-required.labels-that-force-human`** \u2014 any listed label on",
19356
- " the PR (e.g. `priority:critical`) forces `human-required`.",
19359
+ "3. **`human-required.labels-that-force-human`** \u2014 if the PR",
19360
+ " carries any label listed here (e.g. `review:human-required`),",
19361
+ " the mode is `human-required`.",
19357
19362
  "4. **`human-required.paths`** \u2014 if any file in the PR diff matches",
19358
19363
  " any glob here, the mode is `human-required`. Matching uses",
19359
19364
  " standard glob semantics (`**` for recursive directories,",
@@ -19374,6 +19379,24 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
19374
19379
  "7. **`default`** \u2014 applied only when no rule above matched",
19375
19380
  " (normally `auto-merge`).",
19376
19381
  "",
19382
+ "**Label-check scope.** All label checks in rules 1\u20133 evaluate",
19383
+ "the PR's **own** labels only. Never traverse the `Closes #N`",
19384
+ "link to read the linked issue's labels for a label rule. Rule 5",
19385
+ "is the only rule that reads the linked issue, and it reads the",
19386
+ "issue **type**, not its labels.",
19387
+ "",
19388
+ "**`priority:*` / `status:*` are not merge-risk signals.**",
19389
+ "`priority:*` and `status:*` are issue-triage labels consumed by",
19390
+ "the orchestrator for scheduling \u2014 `priority:*` sequences the",
19391
+ "work queue and `status:*` tracks workflow position. They say",
19392
+ "nothing about a PR's merge risk and must never appear in any",
19393
+ "`labels-that-force-*` list. Gating merge on `priority:critical`",
19394
+ "in particular inverts the intended behaviour: the most urgent",
19395
+ "work would wait the longest for a human merge. Merge risk is",
19396
+ "already covered by the path globs (rule 4), the",
19397
+ "`release` / `hotfix` issue-types (rule 5), and the size",
19398
+ "thresholds (rule 6).",
19399
+ "",
19377
19400
  "The `auto-merge.paths-exempt-from-size` carve-out exists so",
19378
19401
  "**doc-only PRs** that routinely exceed the 500-insertion size",
19379
19402
  "threshold (large migrations, bulk additions, refresh passes)",
@@ -19405,8 +19428,8 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
19405
19428
  "The exception is keyed on the matched-rule index recorded in",
19406
19429
  "Phase 2.75. All other `human-required` triggers \u2014 rule 2",
19407
19430
  "(`review:human-required` label), rule 3 (any",
19408
- "`labels-that-force-human` label such as `priority:critical`),",
19409
- "rule 4 (`human-required.paths` glob match), and rule 5",
19431
+ "`labels-that-force-human` label), rule 4",
19432
+ "(`human-required.paths` glob match), and rule 5",
19410
19433
  "(`human-required.issue-types` match) \u2014 continue to block",
19411
19434
  "`update-branch` because each one signals a human reviewer who",
19412
19435
  "has explicit ownership of the branch's lifecycle.",