@codedrifters/configulator 0.0.409 → 0.0.410
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 +172 -20
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +172 -20
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -877,6 +877,53 @@ function buildTitlePrefixTypeMap() {
|
|
|
877
877
|
return map;
|
|
878
878
|
}
|
|
879
879
|
|
|
880
|
+
// src/agent/bundles/origin-label.ts
|
|
881
|
+
var ORIGIN_ISSUE_WORKER_LABEL = "origin:issue-worker";
|
|
882
|
+
var ORIGIN_AGENT_LABEL = "origin:agent";
|
|
883
|
+
var DELEGATION_ELIGIBLE_ORIGIN_PHRASE = `an origin label (\`${ORIGIN_ISSUE_WORKER_LABEL}\` or \`${ORIGIN_AGENT_LABEL}\`)`;
|
|
884
|
+
var DELEGATION_ELIGIBLE_ORIGIN_LIST = `\`${ORIGIN_ISSUE_WORKER_LABEL}\` or \`${ORIGIN_AGENT_LABEL}\``;
|
|
885
|
+
function renderOriginStampSection() {
|
|
886
|
+
return [
|
|
887
|
+
"## Origin label",
|
|
888
|
+
"",
|
|
889
|
+
`Every PR you open must carry the \`${ORIGIN_AGENT_LABEL}\` label. It is`,
|
|
890
|
+
"the umbrella origin label for **agent-opened** PRs: the `pr-reviewer`",
|
|
891
|
+
"reads it to decide whether it may autonomously delegate in-scope",
|
|
892
|
+
"review fixes back to the `issue-worker`. A PR that reaches the",
|
|
893
|
+
"reviewer with no origin label looks human-authored, so the reviewer",
|
|
894
|
+
"skips the delegation hand-off and the PR sits waiting for a human",
|
|
895
|
+
"instead of being self-healed by the pipeline.",
|
|
896
|
+
"",
|
|
897
|
+
"Pass the label on the `gh pr create` invocation:",
|
|
898
|
+
"",
|
|
899
|
+
"```bash",
|
|
900
|
+
'gh pr create --title "<type>(<scope>): <description>" \\',
|
|
901
|
+
` --label '${ORIGIN_AGENT_LABEL}' \\`,
|
|
902
|
+
' --body "<summary>',
|
|
903
|
+
"",
|
|
904
|
+
'Closes #<issue-number>"',
|
|
905
|
+
"```",
|
|
906
|
+
"",
|
|
907
|
+
"If your project's PR workflow opens the PR for you and the label is",
|
|
908
|
+
"missing afterwards, add it immediately \u2014 before handing the PR to",
|
|
909
|
+
"review:",
|
|
910
|
+
"",
|
|
911
|
+
"```bash",
|
|
912
|
+
`gh pr edit <pr-number> --add-label '${ORIGIN_AGENT_LABEL}'`,
|
|
913
|
+
"```",
|
|
914
|
+
"",
|
|
915
|
+
`Stamp \`${ORIGIN_AGENT_LABEL}\`, never \`${ORIGIN_ISSUE_WORKER_LABEL}\` \u2014`,
|
|
916
|
+
`\`${ORIGIN_ISSUE_WORKER_LABEL}\` means the PR was opened by the`,
|
|
917
|
+
"`issue-worker` agent specifically, and claiming it on an analyst PR",
|
|
918
|
+
"would be false. Both labels are delegation-eligible, so the umbrella",
|
|
919
|
+
"label buys the same autonomous fix hand-off without the false claim.",
|
|
920
|
+
"",
|
|
921
|
+
`The \`${ORIGIN_AGENT_LABEL}\` label ships with the \`pr-review\` bundle's`,
|
|
922
|
+
"label set, so it is already present in the repository's label",
|
|
923
|
+
"registry \u2014 you never need to create it."
|
|
924
|
+
];
|
|
925
|
+
}
|
|
926
|
+
|
|
880
927
|
// src/agent/bundles/project-context.ts
|
|
881
928
|
var PROJECT_CONTEXT_PATH = "docs/src/content/docs/project-context.md";
|
|
882
929
|
var SUBPROJECT_ROLE_GUIDANCE = [
|
|
@@ -1150,6 +1197,8 @@ var agendaAnalystSubAgent = {
|
|
|
1150
1197
|
" label.",
|
|
1151
1198
|
"4. Commit, push, open a PR, and transition the issue to",
|
|
1152
1199
|
" `status:ready-for-review` per your project's PR workflow.",
|
|
1200
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
1201
|
+
" **Origin label** section below.",
|
|
1153
1202
|
"",
|
|
1154
1203
|
"---",
|
|
1155
1204
|
"",
|
|
@@ -1157,6 +1206,10 @@ var agendaAnalystSubAgent = {
|
|
|
1157
1206
|
"",
|
|
1158
1207
|
"---",
|
|
1159
1208
|
"",
|
|
1209
|
+
...renderOriginStampSection(),
|
|
1210
|
+
"",
|
|
1211
|
+
"---",
|
|
1212
|
+
"",
|
|
1160
1213
|
"## Phase 1: Draft (`agenda:draft`)",
|
|
1161
1214
|
"",
|
|
1162
1215
|
"**Goal:** Produce a well-structured `agenda.md` in the meeting's",
|
|
@@ -5973,6 +6026,8 @@ function buildBcmWriterSubAgent(paths, issueDefaults) {
|
|
|
5973
6026
|
"3. Execute the phase handler that matches the issue's `bcm:*` label.",
|
|
5974
6027
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
5975
6028
|
" your project's PR workflow.",
|
|
6029
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
6030
|
+
" **Origin label** section below.",
|
|
5976
6031
|
"",
|
|
5977
6032
|
"---",
|
|
5978
6033
|
"",
|
|
@@ -5980,6 +6035,10 @@ function buildBcmWriterSubAgent(paths, issueDefaults) {
|
|
|
5980
6035
|
"",
|
|
5981
6036
|
"---",
|
|
5982
6037
|
"",
|
|
6038
|
+
...renderOriginStampSection(),
|
|
6039
|
+
"",
|
|
6040
|
+
"---",
|
|
6041
|
+
"",
|
|
5983
6042
|
"## Phase 1: Outline (`bcm:outline`)",
|
|
5984
6043
|
"",
|
|
5985
6044
|
"**Goal:** Identify the capability (name-as-noun, business object, tier)",
|
|
@@ -7277,6 +7336,8 @@ function buildBusinessModelsAnalystSubAgent(paths) {
|
|
|
7277
7336
|
" `business-models:*` label.",
|
|
7278
7337
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
7279
7338
|
" your project's PR workflow.",
|
|
7339
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
7340
|
+
" **Origin label** section below.",
|
|
7280
7341
|
"",
|
|
7281
7342
|
"---",
|
|
7282
7343
|
"",
|
|
@@ -7284,6 +7345,10 @@ function buildBusinessModelsAnalystSubAgent(paths) {
|
|
|
7284
7345
|
"",
|
|
7285
7346
|
"---",
|
|
7286
7347
|
"",
|
|
7348
|
+
...renderOriginStampSection(),
|
|
7349
|
+
"",
|
|
7350
|
+
"---",
|
|
7351
|
+
"",
|
|
7287
7352
|
"## Phase 1: Scan (`business-models:scan`)",
|
|
7288
7353
|
"",
|
|
7289
7354
|
"**Goal:** Read upstream industry and profile artifacts to identify",
|
|
@@ -8180,6 +8245,8 @@ function buildCompanyProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
8180
8245
|
" label.",
|
|
8181
8246
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
8182
8247
|
" your project's PR workflow.",
|
|
8248
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
8249
|
+
" **Origin label** section below.",
|
|
8183
8250
|
"",
|
|
8184
8251
|
"---",
|
|
8185
8252
|
"",
|
|
@@ -8187,6 +8254,10 @@ function buildCompanyProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
8187
8254
|
"",
|
|
8188
8255
|
"---",
|
|
8189
8256
|
"",
|
|
8257
|
+
...renderOriginStampSection(),
|
|
8258
|
+
"",
|
|
8259
|
+
"---",
|
|
8260
|
+
"",
|
|
8190
8261
|
"## Phase 1: Research (`company:research`)",
|
|
8191
8262
|
"",
|
|
8192
8263
|
"**Goal:** Gather public sources into a bounded research-notes file.",
|
|
@@ -9625,6 +9696,8 @@ function buildCustomerProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
9625
9696
|
" label.",
|
|
9626
9697
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
9627
9698
|
" your project's PR workflow.",
|
|
9699
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
9700
|
+
" **Origin label** section below.",
|
|
9628
9701
|
"",
|
|
9629
9702
|
"---",
|
|
9630
9703
|
"",
|
|
@@ -9632,6 +9705,10 @@ function buildCustomerProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
9632
9705
|
"",
|
|
9633
9706
|
"---",
|
|
9634
9707
|
"",
|
|
9708
|
+
...renderOriginStampSection(),
|
|
9709
|
+
"",
|
|
9710
|
+
"---",
|
|
9711
|
+
"",
|
|
9635
9712
|
"## Phase 1: Discover (`customer:discover`)",
|
|
9636
9713
|
"",
|
|
9637
9714
|
"**Goal:** Identify and segment the customer archetypes relevant to",
|
|
@@ -12577,6 +12654,8 @@ function buildIndustryDiscoveryAnalystSubAgent(paths, issueDefaults) {
|
|
|
12577
12654
|
" label.",
|
|
12578
12655
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
12579
12656
|
" your project's PR workflow.",
|
|
12657
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
12658
|
+
" **Origin label** section below.",
|
|
12580
12659
|
"",
|
|
12581
12660
|
"---",
|
|
12582
12661
|
"",
|
|
@@ -12584,6 +12663,10 @@ function buildIndustryDiscoveryAnalystSubAgent(paths, issueDefaults) {
|
|
|
12584
12663
|
"",
|
|
12585
12664
|
"---",
|
|
12586
12665
|
"",
|
|
12666
|
+
...renderOriginStampSection(),
|
|
12667
|
+
"",
|
|
12668
|
+
"---",
|
|
12669
|
+
"",
|
|
12587
12670
|
"## Phase 1: Discover (`industry:discover`)",
|
|
12588
12671
|
"",
|
|
12589
12672
|
"**Goal:** Enumerate candidate industry verticals into a bounded",
|
|
@@ -13136,6 +13219,8 @@ function buildMaintenanceAuditSubAgent(paths, tier) {
|
|
|
13136
13219
|
" label.",
|
|
13137
13220
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
13138
13221
|
" your project's PR workflow.",
|
|
13222
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
13223
|
+
" **Origin label** section below.",
|
|
13139
13224
|
"",
|
|
13140
13225
|
...renderIssueTypeAssignmentBlanket(),
|
|
13141
13226
|
"",
|
|
@@ -13145,6 +13230,10 @@ function buildMaintenanceAuditSubAgent(paths, tier) {
|
|
|
13145
13230
|
"",
|
|
13146
13231
|
"---",
|
|
13147
13232
|
"",
|
|
13233
|
+
...renderOriginStampSection(),
|
|
13234
|
+
"",
|
|
13235
|
+
"---",
|
|
13236
|
+
"",
|
|
13148
13237
|
"## Phase 1: Scan (`maint:scan`)",
|
|
13149
13238
|
"",
|
|
13150
13239
|
"**Goal:** Walk the configured doc tree, check every cross-reference",
|
|
@@ -14037,6 +14126,10 @@ function buildMeetingAnalystSubAgent(tier) {
|
|
|
14037
14126
|
"",
|
|
14038
14127
|
"---",
|
|
14039
14128
|
"",
|
|
14129
|
+
...renderOriginStampSection(),
|
|
14130
|
+
"",
|
|
14131
|
+
"---",
|
|
14132
|
+
"",
|
|
14040
14133
|
"## Phase 1: Extract (`meeting:extract`)",
|
|
14041
14134
|
"",
|
|
14042
14135
|
"**Goal:** Read the available meeting inputs (notes, transcript, or both)",
|
|
@@ -20071,6 +20164,8 @@ function buildPeopleProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
20071
20164
|
" label.",
|
|
20072
20165
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
20073
20166
|
" your project's PR workflow.",
|
|
20167
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
20168
|
+
" **Origin label** section below.",
|
|
20074
20169
|
"",
|
|
20075
20170
|
"---",
|
|
20076
20171
|
"",
|
|
@@ -20078,6 +20173,10 @@ function buildPeopleProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
20078
20173
|
"",
|
|
20079
20174
|
"---",
|
|
20080
20175
|
"",
|
|
20176
|
+
...renderOriginStampSection(),
|
|
20177
|
+
"",
|
|
20178
|
+
"---",
|
|
20179
|
+
"",
|
|
20081
20180
|
"## Phase 1: Research (`people:research`)",
|
|
20082
20181
|
"",
|
|
20083
20182
|
"**Goal:** Gather public sources into a bounded research-notes file.",
|
|
@@ -21040,14 +21139,14 @@ var prReviewerSubAgent = {
|
|
|
21040
21139
|
"",
|
|
21041
21140
|
"- **`--allow-human-author`** \u2014 opt-in flag that allows the reviewer to",
|
|
21042
21141
|
" process PRs authored by humans in addition to bot-authored PRs",
|
|
21043
|
-
|
|
21142
|
+
` (those carrying ${DELEGATION_ELIGIBLE_ORIGIN_LIST}). When absent, the`,
|
|
21044
21143
|
" reviewer only processes bot-authored PRs; when present, human-authored",
|
|
21045
21144
|
" PRs are also eligible for this invocation only. The flag does **not**",
|
|
21046
21145
|
" persist across invocations.",
|
|
21047
21146
|
"",
|
|
21048
21147
|
"Phase 4's invocation guard enforces the bot-only default and the",
|
|
21049
|
-
"`--allow-human-author` opt-out. PRs
|
|
21050
|
-
"
|
|
21148
|
+
"`--allow-human-author` opt-out. PRs carrying **no** origin label are",
|
|
21149
|
+
"still classified, commented on, reacted to, and (in",
|
|
21051
21150
|
"`auto-merge` mode) auto-merged when the AC/CI checks pass \u2014 only the",
|
|
21052
21151
|
"delegation hand-off to `issue-worker` is gated.",
|
|
21053
21152
|
"",
|
|
@@ -21778,12 +21877,17 @@ var prReviewerSubAgent = {
|
|
|
21778
21877
|
"Before delegating any in-scope fix to `issue-worker`, verify the",
|
|
21779
21878
|
"delegation is permitted by author identity:",
|
|
21780
21879
|
"",
|
|
21781
|
-
|
|
21782
|
-
|
|
21880
|
+
`- If the PR carries the \`${ORIGIN_ISSUE_WORKER_LABEL}\` label **or** the`,
|
|
21881
|
+
` \`${ORIGIN_AGENT_LABEL}\` label, delegation is permitted. Both are`,
|
|
21882
|
+
" agent-origin labels and both are delegation-eligible:",
|
|
21883
|
+
` \`${ORIGIN_ISSUE_WORKER_LABEL}\` marks a PR opened by the \`issue-worker\``,
|
|
21884
|
+
` agent specifically; \`${ORIGIN_AGENT_LABEL}\` is the umbrella label the`,
|
|
21885
|
+
" phased analyst/writer family stamps on the PRs it opens. Treat them",
|
|
21886
|
+
" identically for this guard \u2014 neither requires `--allow-human-author`.",
|
|
21783
21887
|
"- If the invocation prompt contains the literal flag",
|
|
21784
21888
|
" `--allow-human-author`, delegation is permitted for this invocation",
|
|
21785
21889
|
" only.",
|
|
21786
|
-
"- Otherwise (
|
|
21890
|
+
"- Otherwise (no agent-origin label and no opt-in flag) the reviewer",
|
|
21787
21891
|
" **must not delegate**. It still classifies comments (Phase 3.5),",
|
|
21788
21892
|
" posts replies, applies reactions, updates the sticky summary, and",
|
|
21789
21893
|
" (when in `auto-merge` mode and the AC/CI checks pass) enables",
|
|
@@ -22315,9 +22419,11 @@ var prReviewerSubAgent = {
|
|
|
22315
22419
|
" reviewed diff than the clean merge-commit `gh pr update-branch`",
|
|
22316
22420
|
" performs on a no-conflict branch.)",
|
|
22317
22421
|
"2. **Delegation invocation guard permits the hand-off** \u2014 the PR",
|
|
22318
|
-
|
|
22422
|
+
` carries the \`${ORIGIN_ISSUE_WORKER_LABEL}\` label or the`,
|
|
22423
|
+
` \`${ORIGIN_AGENT_LABEL}\` label, **or** the reviewer was`,
|
|
22319
22424
|
" invoked with `--allow-human-author`. The same guard used for the",
|
|
22320
|
-
" in-scope-fix delegation flow applies here unchanged
|
|
22425
|
+
" in-scope-fix delegation flow applies here unchanged \u2014 both",
|
|
22426
|
+
" agent-origin labels are delegation-eligible.",
|
|
22321
22427
|
"3. **The `review:fixing` lease is currently free.** If",
|
|
22322
22428
|
" `review:fixing` is already on the PR, another delegation is",
|
|
22323
22429
|
" in-flight; skip conflict-resolution delegation, log the contention",
|
|
@@ -22748,7 +22854,7 @@ var prReviewerSubAgent = {
|
|
|
22748
22854
|
" to `human-required`, Phase 4 applies `review:awaiting-human` and",
|
|
22749
22855
|
" exits. Even if every acceptance criterion is met and CI is green,",
|
|
22750
22856
|
" `gh pr merge --auto` is forbidden in that mode.",
|
|
22751
|
-
|
|
22857
|
+
`6. **Never push commits to the PR's branch yourself.** The reviewer is a decision-maker and orchestrator, not an implementer. When in-scope review comments require code changes **and** the PR carries ${DELEGATION_ELIGIBLE_ORIGIN_PHRASE} (or the invocation prompt explicitly allows human-authored PRs via \`--allow-human-author\`), delegate the fix **by marker, not by spawn**: post a fix-list comment on the PR, apply the \`review:needs-worker\` label, hold the \`review:fixing\` lease, and exit returning \`delegated\`. Do **not** invoke \`issue-worker\` via the \`Agent\` tool \u2014 the reviewer often runs at depth-1 where nested sub-agent spawning is forbidden, so an in-session dispatch would silently abort. A top-level \`issue-worker\` session pulls the marker and applies the fix; a later reviewer confirm pass releases the lease. You must never call \`git commit\`, \`git push\`, \`git rebase\`, or \`gh pr edit\` against the head branch from this agent \u2014 all branch mutations belong to \`issue-worker\`.`,
|
|
22752
22858
|
"7. **Do not implement code.** You review, decide, and orchestrate. If",
|
|
22753
22859
|
" the PR needs code changes and delegation is not permitted by Rule",
|
|
22754
22860
|
" #6, comment and stop \u2014 do not attempt to fix it yourself.",
|
|
@@ -22848,8 +22954,8 @@ var reviewPrSkill = {
|
|
|
22848
22954
|
"",
|
|
22849
22955
|
"- **`--allow-human-author`** \u2014 opt the reviewer into processing",
|
|
22850
22956
|
" human-authored PRs for **this invocation only**. By default, the",
|
|
22851
|
-
" reviewer only processes bot-authored PRs (those carrying
|
|
22852
|
-
|
|
22957
|
+
" reviewer only processes bot-authored PRs (those carrying",
|
|
22958
|
+
` ${DELEGATION_ELIGIBLE_ORIGIN_LIST}); pass this flag to review a`,
|
|
22853
22959
|
" human-authored PR. The flag does not persist \u2014 subsequent",
|
|
22854
22960
|
" invocations return to the bot-only default.",
|
|
22855
22961
|
"",
|
|
@@ -22868,7 +22974,7 @@ var reviewPrSkill = {
|
|
|
22868
22974
|
"",
|
|
22869
22975
|
"Passing `--allow-human-author` opts the reviewer into processing",
|
|
22870
22976
|
"human-authored PRs for this invocation only (the default scope is",
|
|
22871
|
-
|
|
22977
|
+
`bot-authored PRs carrying ${DELEGATION_ELIGIBLE_ORIGIN_LIST}).`,
|
|
22872
22978
|
"",
|
|
22873
22979
|
"## Input",
|
|
22874
22980
|
"",
|
|
@@ -22910,8 +23016,8 @@ var reviewPrsSkill = {
|
|
|
22910
23016
|
"",
|
|
22911
23017
|
"- **`--allow-human-author`** \u2014 opt the reviewer into processing",
|
|
22912
23018
|
" human-authored PRs for **this invocation only**. By default, the",
|
|
22913
|
-
" loop only processes bot-authored PRs (those carrying
|
|
22914
|
-
|
|
23019
|
+
" loop only processes bot-authored PRs (those carrying",
|
|
23020
|
+
` ${DELEGATION_ELIGIBLE_ORIGIN_LIST}); pass this flag to include`,
|
|
22915
23021
|
" human-authored PRs in the queue. The flag does not persist \u2014",
|
|
22916
23022
|
" subsequent invocations return to the bot-only default.",
|
|
22917
23023
|
"",
|
|
@@ -22963,7 +23069,7 @@ var reviewPrsSkill = {
|
|
|
22963
23069
|
"",
|
|
22964
23070
|
"Passing `--allow-human-author` opts the reviewer into including",
|
|
22965
23071
|
"human-authored PRs in the queue for this invocation only (the default",
|
|
22966
|
-
|
|
23072
|
+
`scope is bot-authored PRs carrying ${DELEGATION_ELIGIBLE_ORIGIN_LIST}).`,
|
|
22967
23073
|
"",
|
|
22968
23074
|
"## Output",
|
|
22969
23075
|
"",
|
|
@@ -23609,7 +23715,7 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
23609
23715
|
"",
|
|
23610
23716
|
"### Label Glossary",
|
|
23611
23717
|
"",
|
|
23612
|
-
"
|
|
23718
|
+
"Seven review-workflow labels drive the feedback loop. They are",
|
|
23613
23719
|
"**contributed by the pr-review bundle's label set** and auto-sync",
|
|
23614
23720
|
"into every consumer's label registry \u2014 the same way the",
|
|
23615
23721
|
"`type:*` / `priority:*` / `status:*` taxonomy ships. Consumers do",
|
|
@@ -23619,7 +23725,8 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
23619
23725
|
"",
|
|
23620
23726
|
"| Label | Purpose |",
|
|
23621
23727
|
"|-------|---------|",
|
|
23622
|
-
|
|
23728
|
+
`| \`${ORIGIN_ISSUE_WORKER_LABEL}\` | PR was opened by the \`issue-worker\` agent specifically. Eligible for auto-delegation of in-scope fixes. |`,
|
|
23729
|
+
`| \`${ORIGIN_AGENT_LABEL}\` | **Umbrella origin label for agent-opened PRs.** Stamped by every phased analyst/writer agent (people-profile, company-profile, software-profile, customer-profile, bcm-writer, industry-discovery, business-models, standards-research, regulatory-research, maintenance-audit, meeting-analysis, agenda, research-pipeline, requirements-analyst, requirements-reviewer, requirements-writer) on the PRs it opens. Delegation-eligible on exactly the same terms as \`${ORIGIN_ISSUE_WORKER_LABEL}\` \u2014 the analyst family stamps this instead of \`${ORIGIN_ISSUE_WORKER_LABEL}\` because claiming the latter on a non-worker PR would be false. Human-authored PRs carry neither origin label and will not trigger delegation unless the reviewer is invoked with \`--allow-human-author\`. This label gates fix-**delegation** only; sweep and auto-merge eligibility have never been origin-gated. |`,
|
|
23623
23730
|
"| `review:human-required` | Force human review regardless of what the policy would otherwise decide. The reviewer never enables auto-merge on a PR carrying this label. |",
|
|
23624
23731
|
"| `review:auto-ok` | Force auto-merge regardless of what the policy would otherwise decide. **Also resolves outstanding `thinking_face` pushbacks** as an explicit maintainer override; the reviewer logs the override in the sticky summary. |",
|
|
23625
23732
|
"| `review:awaiting-human` | Set by the reviewer when it completes its work on a `human-required` PR and is handing off the final merge decision. Cleared by a human (or by `review:auto-ok` flipping the PR back to `auto-merge` mode). |",
|
|
@@ -23629,8 +23736,8 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
23629
23736
|
"### Reviewing Human-Authored PRs: the `--allow-human-author` Flag",
|
|
23630
23737
|
"",
|
|
23631
23738
|
"By default the reviewer only **delegates** in-scope fixes on",
|
|
23632
|
-
|
|
23633
|
-
"
|
|
23739
|
+
`bot-authored PRs \u2014 those carrying ${DELEGATION_ELIGIBLE_ORIGIN_PHRASE}.`,
|
|
23740
|
+
"Running `/review-pr <n>` or `/review-prs` on a",
|
|
23634
23741
|
"human-authored PR still produces a full review (reactions,",
|
|
23635
23742
|
"replies, sticky summary, and auto-merge when the policy allows",
|
|
23636
23743
|
"it) but skips the delegation hand-off to `issue-worker` \u2014 the",
|
|
@@ -23664,10 +23771,15 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
23664
23771
|
description: "PR review tasks"
|
|
23665
23772
|
},
|
|
23666
23773
|
{
|
|
23667
|
-
name:
|
|
23774
|
+
name: ORIGIN_ISSUE_WORKER_LABEL,
|
|
23668
23775
|
color: "5319E7",
|
|
23669
23776
|
description: "PR opened by the issue-worker agent"
|
|
23670
23777
|
},
|
|
23778
|
+
{
|
|
23779
|
+
name: ORIGIN_AGENT_LABEL,
|
|
23780
|
+
color: "5319E7",
|
|
23781
|
+
description: "PR opened by an agent in this project's pipeline; eligible for autonomous fix delegation"
|
|
23782
|
+
},
|
|
23671
23783
|
{
|
|
23672
23784
|
name: "review:auto-ok",
|
|
23673
23785
|
color: "0E8A16",
|
|
@@ -24319,6 +24431,8 @@ function buildRegulatoryResearchAnalystSubAgent(paths, issueDefaults) {
|
|
|
24319
24431
|
" label.",
|
|
24320
24432
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
24321
24433
|
" your project's PR workflow.",
|
|
24434
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
24435
|
+
" **Origin label** section below.",
|
|
24322
24436
|
"",
|
|
24323
24437
|
"---",
|
|
24324
24438
|
"",
|
|
@@ -24326,6 +24440,10 @@ function buildRegulatoryResearchAnalystSubAgent(paths, issueDefaults) {
|
|
|
24326
24440
|
"",
|
|
24327
24441
|
"---",
|
|
24328
24442
|
"",
|
|
24443
|
+
...renderOriginStampSection(),
|
|
24444
|
+
"",
|
|
24445
|
+
"---",
|
|
24446
|
+
"",
|
|
24329
24447
|
"## Phase 1: Scan (`regulatory:scan`)",
|
|
24330
24448
|
"",
|
|
24331
24449
|
"**Goal:** Enumerate regulations applicable to a given scope \u2014",
|
|
@@ -27526,6 +27644,8 @@ function buildRequirementsWriterSubAgent(paths) {
|
|
|
27526
27644
|
"4. Commit, push, open a PR, and close the issue per your project's",
|
|
27527
27645
|
" PR workflow. Closing the PR transitions the issue to",
|
|
27528
27646
|
" `status:done` per the standard label conventions.",
|
|
27647
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
27648
|
+
" **Origin label** section below.",
|
|
27529
27649
|
"",
|
|
27530
27650
|
"---",
|
|
27531
27651
|
"",
|
|
@@ -27533,6 +27653,10 @@ function buildRequirementsWriterSubAgent(paths) {
|
|
|
27533
27653
|
"",
|
|
27534
27654
|
"---",
|
|
27535
27655
|
"",
|
|
27656
|
+
...renderOriginStampSection(),
|
|
27657
|
+
"",
|
|
27658
|
+
"---",
|
|
27659
|
+
"",
|
|
27536
27660
|
"## The `req:write` Issue Schema",
|
|
27537
27661
|
"",
|
|
27538
27662
|
"This section is the **authoritative schema** for `req:write` issue",
|
|
@@ -28168,6 +28292,8 @@ function buildRequirementsAnalystSubAgent(paths, issueDefaults) {
|
|
|
28168
28292
|
"3. Execute the phase handler that matches the issue's `req:*` label.",
|
|
28169
28293
|
"4. Commit, push, open a PR (if applicable), and close the issue per your",
|
|
28170
28294
|
" project's PR workflow.",
|
|
28295
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
28296
|
+
" **Origin label** section below.",
|
|
28171
28297
|
"",
|
|
28172
28298
|
"---",
|
|
28173
28299
|
"",
|
|
@@ -28175,6 +28301,10 @@ function buildRequirementsAnalystSubAgent(paths, issueDefaults) {
|
|
|
28175
28301
|
"",
|
|
28176
28302
|
"---",
|
|
28177
28303
|
"",
|
|
28304
|
+
...renderOriginStampSection(),
|
|
28305
|
+
"",
|
|
28306
|
+
"---",
|
|
28307
|
+
"",
|
|
28178
28308
|
"## Phase 1: Scan (`req:scan`)",
|
|
28179
28309
|
"",
|
|
28180
28310
|
"**Goal:** Read source documents, identify where requirements are missing,",
|
|
@@ -28771,6 +28901,10 @@ function buildRequirementsReviewerSubAgent(paths, issueDefaults) {
|
|
|
28771
28901
|
"",
|
|
28772
28902
|
"---",
|
|
28773
28903
|
"",
|
|
28904
|
+
...renderOriginStampSection(),
|
|
28905
|
+
"",
|
|
28906
|
+
"---",
|
|
28907
|
+
"",
|
|
28774
28908
|
"## Phase Router",
|
|
28775
28909
|
"",
|
|
28776
28910
|
"Before reading any documents, classify the session by reading the",
|
|
@@ -30150,6 +30284,8 @@ function buildResearchAnalystSubAgent(paths) {
|
|
|
30150
30284
|
" label.",
|
|
30151
30285
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
30152
30286
|
" your project's PR workflow.",
|
|
30287
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
30288
|
+
" **Origin label** section below.",
|
|
30153
30289
|
"",
|
|
30154
30290
|
"---",
|
|
30155
30291
|
"",
|
|
@@ -30157,6 +30293,10 @@ function buildResearchAnalystSubAgent(paths) {
|
|
|
30157
30293
|
"",
|
|
30158
30294
|
"---",
|
|
30159
30295
|
"",
|
|
30296
|
+
...renderOriginStampSection(),
|
|
30297
|
+
"",
|
|
30298
|
+
"---",
|
|
30299
|
+
"",
|
|
30160
30300
|
"## Phase 1: Scope (`research:scope`)",
|
|
30161
30301
|
"",
|
|
30162
30302
|
"**Goal:** Turn a natural-language research question into a bounded",
|
|
@@ -30895,6 +31035,8 @@ function buildSoftwareProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
30895
31035
|
" label.",
|
|
30896
31036
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
30897
31037
|
" your project's PR workflow.",
|
|
31038
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
31039
|
+
" **Origin label** section below.",
|
|
30898
31040
|
"",
|
|
30899
31041
|
"---",
|
|
30900
31042
|
"",
|
|
@@ -30902,6 +31044,10 @@ function buildSoftwareProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
30902
31044
|
"",
|
|
30903
31045
|
"---",
|
|
30904
31046
|
"",
|
|
31047
|
+
...renderOriginStampSection(),
|
|
31048
|
+
"",
|
|
31049
|
+
"---",
|
|
31050
|
+
"",
|
|
30905
31051
|
"## Phase 1: Research (`software:research`)",
|
|
30906
31052
|
"",
|
|
30907
31053
|
"**Goal:** Gather public sources into a bounded research-notes file.",
|
|
@@ -32033,6 +32179,8 @@ function buildStandardsResearchAnalystSubAgent(paths, issueDefaults) {
|
|
|
32033
32179
|
" label.",
|
|
32034
32180
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
32035
32181
|
" your project's PR workflow.",
|
|
32182
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
32183
|
+
" **Origin label** section below.",
|
|
32036
32184
|
"",
|
|
32037
32185
|
"---",
|
|
32038
32186
|
"",
|
|
@@ -32040,6 +32188,10 @@ function buildStandardsResearchAnalystSubAgent(paths, issueDefaults) {
|
|
|
32040
32188
|
"",
|
|
32041
32189
|
"---",
|
|
32042
32190
|
"",
|
|
32191
|
+
...renderOriginStampSection(),
|
|
32192
|
+
"",
|
|
32193
|
+
"---",
|
|
32194
|
+
"",
|
|
32043
32195
|
"## Phase 1: Scope (`standards:scope`)",
|
|
32044
32196
|
"",
|
|
32045
32197
|
"**Goal:** Plan the research campaign for a standard \u2014 identify which",
|