@codedrifters/configulator 0.0.394 → 0.0.395
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.js +52 -9
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +52 -9
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4285,7 +4285,17 @@ function buildBaseBundle(paths = DEFAULT_AGENT_PATHS) {
|
|
|
4285
4285
|
" `status:ready`.",
|
|
4286
4286
|
"- **Automated flag** \u2192 add `status:needs-attention` (do not remove existing",
|
|
4287
4287
|
" status). Never auto-reset a `status:needs-attention` issue back to ready;",
|
|
4288
|
-
" a human must decide.",
|
|
4288
|
+
" a human must decide. The flag is **additive**: apply it with `--add-label`",
|
|
4289
|
+
" alone \u2014 never pair it with a `--remove-label` that strips the base",
|
|
4290
|
+
" `status:*` label. A flag that swaps out the base status (e.g. scope-gate",
|
|
4291
|
+
" or worker-failure paths removing `status:ready` / `status:in-progress`)",
|
|
4292
|
+
" leaves the issue with no base status \u2014 invisible to every status-driven",
|
|
4293
|
+
" query and to the queue, and unrecoverable once the flag is cleared.",
|
|
4294
|
+
"- **Automated-flag clear** \u2192 when `status:needs-attention` is cleared, if the",
|
|
4295
|
+
" issue carries no base `status:*` label (a legacy issue flagged before the",
|
|
4296
|
+
" additive-flag rule, whose base status was stripped at flag time), restore",
|
|
4297
|
+
" `status:ready` \u2014 or `status:blocked` if the body still declares an open",
|
|
4298
|
+
" `Depends on:` dependency \u2014 in the same edit so it re-enters the workflow.",
|
|
4289
4299
|
"- **PR CI failure** \u2192 add `status:needs-attention` to the associated PR (and",
|
|
4290
4300
|
" its linked issue) when CI fails in a **permanent** state \u2014 i.e. the failure",
|
|
4291
4301
|
" persists after a rerun, or the failure is clearly not a flake (compile",
|
|
@@ -14079,8 +14089,19 @@ function renderScopeGateSection(gate, excludeBundles = []) {
|
|
|
14079
14089
|
"",
|
|
14080
14090
|
"When the classifier returns `large`:",
|
|
14081
14091
|
"",
|
|
14082
|
-
"1.
|
|
14083
|
-
" `
|
|
14092
|
+
"1. **Add** the `status:needs-attention` label to the issue with",
|
|
14093
|
+
" `--add-label` alone. Leave the existing base `status:*` label",
|
|
14094
|
+
" (`status:ready`) in place \u2014 `status:needs-attention` is",
|
|
14095
|
+
" **additive**, so a flagged issue reads `status:ready` +",
|
|
14096
|
+
" `status:needs-attention`. Do **not** remove the base status:",
|
|
14097
|
+
" stripping it leaves the issue with no base `status:*` label,",
|
|
14098
|
+
" invisible to every status-driven query and to the queue itself,",
|
|
14099
|
+
" and a later flag-clear can never restore dispatchability. The",
|
|
14100
|
+
" `status:needs-attention` label already keeps the issue out of",
|
|
14101
|
+
" the dispatch queue, so the base label safely stays:",
|
|
14102
|
+
" ```bash",
|
|
14103
|
+
' gh issue edit <number> --add-label "status:needs-attention"',
|
|
14104
|
+
" ```",
|
|
14084
14105
|
"2. Post the decomposition-proposal comment (see template below),",
|
|
14085
14106
|
" with `<AC_COUNT>` / `<SOURCES_COUNT>` substituted from the",
|
|
14086
14107
|
" classification and `<AC_LIMIT>` / `<SOURCES_LIMIT>` set to",
|
|
@@ -14101,7 +14122,12 @@ function renderScopeGateSection(gate, excludeBundles = []) {
|
|
|
14101
14122
|
"4. **Auto-file is OFF.** Stop after posting the comment. A human",
|
|
14102
14123
|
" reviews the proposal, files the phased sub-issues manually,",
|
|
14103
14124
|
" and clears `status:needs-attention` when the decomposition",
|
|
14104
|
-
" is in place."
|
|
14125
|
+
" is in place. When clearing the flag, if the issue carries **no**",
|
|
14126
|
+
" base `status:*` label \u2014 a legacy issue flagged before the",
|
|
14127
|
+
" additive-flag fix, whose base status was stripped at flag time \u2014",
|
|
14128
|
+
" also add `status:ready` (or `status:blocked` when the body still",
|
|
14129
|
+
" declares an open `Depends on:` dependency) in the same edit so",
|
|
14130
|
+
" the issue re-enters the queue instead of going invisible."
|
|
14105
14131
|
);
|
|
14106
14132
|
}
|
|
14107
14133
|
const overrideEntries = Object.entries(gate.bundleOverrides).filter(
|
|
@@ -16656,9 +16682,16 @@ var orchestratorSubAgent = {
|
|
|
16656
16682
|
"",
|
|
16657
16683
|
"If the scope is `large`, **do not dispatch**. Instead:",
|
|
16658
16684
|
"",
|
|
16659
|
-
"1.
|
|
16685
|
+
"1. **Add** `status:needs-attention` with `--add-label` alone \u2014",
|
|
16686
|
+
" leave the base `status:*` label (`status:ready`) in place.",
|
|
16687
|
+
" `status:needs-attention` is **additive**; pairing it with a",
|
|
16688
|
+
' `--remove-label "status:ready"` strips the base status and',
|
|
16689
|
+
" leaves the issue with no `status:*` label at all, invisible to",
|
|
16690
|
+
" the queue and unrecoverable when the flag is later cleared. The",
|
|
16691
|
+
" `status:needs-attention` label already keeps the issue out of",
|
|
16692
|
+
" dispatch, so the base label stays:",
|
|
16660
16693
|
" ```bash",
|
|
16661
|
-
' gh issue edit <number> --
|
|
16694
|
+
' gh issue edit <number> --add-label "status:needs-attention"',
|
|
16662
16695
|
" ```",
|
|
16663
16696
|
"2. Post the decomposition-proposal comment (see the **Scope gate**",
|
|
16664
16697
|
" section in `CLAUDE.md` for the template). Substitute the",
|
|
@@ -16756,7 +16789,9 @@ var orchestratorSubAgent = {
|
|
|
16756
16789
|
"5. **Priority order:** critical > high > medium > low > trivial, then **funnel tier asc** (lower tier wins ties), then FIFO by issue number.",
|
|
16757
16790
|
"6. **Never dispatch a `large` issue.** Always run the scope check",
|
|
16758
16791
|
" on the top `PICK` line before reporting `NEXT_WORK_ITEM`. A",
|
|
16759
|
-
" `large` issue must be flagged
|
|
16792
|
+
" `large` issue must be flagged by **adding** `status:needs-attention`",
|
|
16793
|
+
" (additive \u2014 leave the base `status:*` label in place; never pair",
|
|
16794
|
+
" the flag with a `--remove-label` that strips the base status) and",
|
|
16760
16795
|
" handed a decomposition proposal \u2014 never claimed, never branched,",
|
|
16761
16796
|
" never delegated to the `issue-worker`.",
|
|
16762
16797
|
"7. **Sweep dependents whenever you apply `status:done`.** Every",
|
|
@@ -17424,9 +17459,17 @@ var issueWorkerSubAgent = {
|
|
|
17424
17459
|
" downstream agents (notably the `pr-reviewer`) can identify",
|
|
17425
17460
|
" bot-authored PRs. Pass `--label 'origin:issue-worker'` on every",
|
|
17426
17461
|
" `gh pr create` call.",
|
|
17427
|
-
"7. **On failure:** If you cannot complete the issue
|
|
17462
|
+
"7. **On failure:** If you cannot complete the issue (including a",
|
|
17463
|
+
" wrong-agent / routing mismatch), flag it for human triage and",
|
|
17464
|
+
" leave a comment. **Add** `status:needs-attention` with",
|
|
17465
|
+
" `--add-label` alone \u2014 do **not** remove the base",
|
|
17466
|
+
" `status:in-progress` label. `status:needs-attention` is",
|
|
17467
|
+
" additive, so the flagged issue reads `status:in-progress` +",
|
|
17468
|
+
" `status:needs-attention` and keeps a base status a human can act",
|
|
17469
|
+
" on; stripping it leaves the issue with no base `status:*` label,",
|
|
17470
|
+
" invisible to every status-driven query:",
|
|
17428
17471
|
" ```bash",
|
|
17429
|
-
' gh issue edit <number> --
|
|
17472
|
+
' gh issue edit <number> --add-label "status:needs-attention"',
|
|
17430
17473
|
' gh issue comment <number> --body "Worker could not complete: <reason>"',
|
|
17431
17474
|
" ```",
|
|
17432
17475
|
"8. **Never force-push in feedback mode.** If a `git pull --rebase`",
|