@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.js
CHANGED
|
@@ -1258,6 +1258,53 @@ function buildTitlePrefixTypeMap() {
|
|
|
1258
1258
|
return map;
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
|
+
// src/agent/bundles/origin-label.ts
|
|
1262
|
+
var ORIGIN_ISSUE_WORKER_LABEL = "origin:issue-worker";
|
|
1263
|
+
var ORIGIN_AGENT_LABEL = "origin:agent";
|
|
1264
|
+
var DELEGATION_ELIGIBLE_ORIGIN_PHRASE = `an origin label (\`${ORIGIN_ISSUE_WORKER_LABEL}\` or \`${ORIGIN_AGENT_LABEL}\`)`;
|
|
1265
|
+
var DELEGATION_ELIGIBLE_ORIGIN_LIST = `\`${ORIGIN_ISSUE_WORKER_LABEL}\` or \`${ORIGIN_AGENT_LABEL}\``;
|
|
1266
|
+
function renderOriginStampSection() {
|
|
1267
|
+
return [
|
|
1268
|
+
"## Origin label",
|
|
1269
|
+
"",
|
|
1270
|
+
`Every PR you open must carry the \`${ORIGIN_AGENT_LABEL}\` label. It is`,
|
|
1271
|
+
"the umbrella origin label for **agent-opened** PRs: the `pr-reviewer`",
|
|
1272
|
+
"reads it to decide whether it may autonomously delegate in-scope",
|
|
1273
|
+
"review fixes back to the `issue-worker`. A PR that reaches the",
|
|
1274
|
+
"reviewer with no origin label looks human-authored, so the reviewer",
|
|
1275
|
+
"skips the delegation hand-off and the PR sits waiting for a human",
|
|
1276
|
+
"instead of being self-healed by the pipeline.",
|
|
1277
|
+
"",
|
|
1278
|
+
"Pass the label on the `gh pr create` invocation:",
|
|
1279
|
+
"",
|
|
1280
|
+
"```bash",
|
|
1281
|
+
'gh pr create --title "<type>(<scope>): <description>" \\',
|
|
1282
|
+
` --label '${ORIGIN_AGENT_LABEL}' \\`,
|
|
1283
|
+
' --body "<summary>',
|
|
1284
|
+
"",
|
|
1285
|
+
'Closes #<issue-number>"',
|
|
1286
|
+
"```",
|
|
1287
|
+
"",
|
|
1288
|
+
"If your project's PR workflow opens the PR for you and the label is",
|
|
1289
|
+
"missing afterwards, add it immediately \u2014 before handing the PR to",
|
|
1290
|
+
"review:",
|
|
1291
|
+
"",
|
|
1292
|
+
"```bash",
|
|
1293
|
+
`gh pr edit <pr-number> --add-label '${ORIGIN_AGENT_LABEL}'`,
|
|
1294
|
+
"```",
|
|
1295
|
+
"",
|
|
1296
|
+
`Stamp \`${ORIGIN_AGENT_LABEL}\`, never \`${ORIGIN_ISSUE_WORKER_LABEL}\` \u2014`,
|
|
1297
|
+
`\`${ORIGIN_ISSUE_WORKER_LABEL}\` means the PR was opened by the`,
|
|
1298
|
+
"`issue-worker` agent specifically, and claiming it on an analyst PR",
|
|
1299
|
+
"would be false. Both labels are delegation-eligible, so the umbrella",
|
|
1300
|
+
"label buys the same autonomous fix hand-off without the false claim.",
|
|
1301
|
+
"",
|
|
1302
|
+
`The \`${ORIGIN_AGENT_LABEL}\` label ships with the \`pr-review\` bundle's`,
|
|
1303
|
+
"label set, so it is already present in the repository's label",
|
|
1304
|
+
"registry \u2014 you never need to create it."
|
|
1305
|
+
];
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1261
1308
|
// src/agent/bundles/project-context.ts
|
|
1262
1309
|
var PROJECT_CONTEXT_PATH = "docs/src/content/docs/project-context.md";
|
|
1263
1310
|
var SUBPROJECT_ROLE_GUIDANCE = [
|
|
@@ -1531,6 +1578,8 @@ var agendaAnalystSubAgent = {
|
|
|
1531
1578
|
" label.",
|
|
1532
1579
|
"4. Commit, push, open a PR, and transition the issue to",
|
|
1533
1580
|
" `status:ready-for-review` per your project's PR workflow.",
|
|
1581
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
1582
|
+
" **Origin label** section below.",
|
|
1534
1583
|
"",
|
|
1535
1584
|
"---",
|
|
1536
1585
|
"",
|
|
@@ -1538,6 +1587,10 @@ var agendaAnalystSubAgent = {
|
|
|
1538
1587
|
"",
|
|
1539
1588
|
"---",
|
|
1540
1589
|
"",
|
|
1590
|
+
...renderOriginStampSection(),
|
|
1591
|
+
"",
|
|
1592
|
+
"---",
|
|
1593
|
+
"",
|
|
1541
1594
|
"## Phase 1: Draft (`agenda:draft`)",
|
|
1542
1595
|
"",
|
|
1543
1596
|
"**Goal:** Produce a well-structured `agenda.md` in the meeting's",
|
|
@@ -6354,6 +6407,8 @@ function buildBcmWriterSubAgent(paths, issueDefaults) {
|
|
|
6354
6407
|
"3. Execute the phase handler that matches the issue's `bcm:*` label.",
|
|
6355
6408
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
6356
6409
|
" your project's PR workflow.",
|
|
6410
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
6411
|
+
" **Origin label** section below.",
|
|
6357
6412
|
"",
|
|
6358
6413
|
"---",
|
|
6359
6414
|
"",
|
|
@@ -6361,6 +6416,10 @@ function buildBcmWriterSubAgent(paths, issueDefaults) {
|
|
|
6361
6416
|
"",
|
|
6362
6417
|
"---",
|
|
6363
6418
|
"",
|
|
6419
|
+
...renderOriginStampSection(),
|
|
6420
|
+
"",
|
|
6421
|
+
"---",
|
|
6422
|
+
"",
|
|
6364
6423
|
"## Phase 1: Outline (`bcm:outline`)",
|
|
6365
6424
|
"",
|
|
6366
6425
|
"**Goal:** Identify the capability (name-as-noun, business object, tier)",
|
|
@@ -7652,6 +7711,8 @@ function buildBusinessModelsAnalystSubAgent(paths) {
|
|
|
7652
7711
|
" `business-models:*` label.",
|
|
7653
7712
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
7654
7713
|
" your project's PR workflow.",
|
|
7714
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
7715
|
+
" **Origin label** section below.",
|
|
7655
7716
|
"",
|
|
7656
7717
|
"---",
|
|
7657
7718
|
"",
|
|
@@ -7659,6 +7720,10 @@ function buildBusinessModelsAnalystSubAgent(paths) {
|
|
|
7659
7720
|
"",
|
|
7660
7721
|
"---",
|
|
7661
7722
|
"",
|
|
7723
|
+
...renderOriginStampSection(),
|
|
7724
|
+
"",
|
|
7725
|
+
"---",
|
|
7726
|
+
"",
|
|
7662
7727
|
"## Phase 1: Scan (`business-models:scan`)",
|
|
7663
7728
|
"",
|
|
7664
7729
|
"**Goal:** Read upstream industry and profile artifacts to identify",
|
|
@@ -8555,6 +8620,8 @@ function buildCompanyProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
8555
8620
|
" label.",
|
|
8556
8621
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
8557
8622
|
" your project's PR workflow.",
|
|
8623
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
8624
|
+
" **Origin label** section below.",
|
|
8558
8625
|
"",
|
|
8559
8626
|
"---",
|
|
8560
8627
|
"",
|
|
@@ -8562,6 +8629,10 @@ function buildCompanyProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
8562
8629
|
"",
|
|
8563
8630
|
"---",
|
|
8564
8631
|
"",
|
|
8632
|
+
...renderOriginStampSection(),
|
|
8633
|
+
"",
|
|
8634
|
+
"---",
|
|
8635
|
+
"",
|
|
8565
8636
|
"## Phase 1: Research (`company:research`)",
|
|
8566
8637
|
"",
|
|
8567
8638
|
"**Goal:** Gather public sources into a bounded research-notes file.",
|
|
@@ -10000,6 +10071,8 @@ function buildCustomerProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
10000
10071
|
" label.",
|
|
10001
10072
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
10002
10073
|
" your project's PR workflow.",
|
|
10074
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
10075
|
+
" **Origin label** section below.",
|
|
10003
10076
|
"",
|
|
10004
10077
|
"---",
|
|
10005
10078
|
"",
|
|
@@ -10007,6 +10080,10 @@ function buildCustomerProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
10007
10080
|
"",
|
|
10008
10081
|
"---",
|
|
10009
10082
|
"",
|
|
10083
|
+
...renderOriginStampSection(),
|
|
10084
|
+
"",
|
|
10085
|
+
"---",
|
|
10086
|
+
"",
|
|
10010
10087
|
"## Phase 1: Discover (`customer:discover`)",
|
|
10011
10088
|
"",
|
|
10012
10089
|
"**Goal:** Identify and segment the customer archetypes relevant to",
|
|
@@ -12952,6 +13029,8 @@ function buildIndustryDiscoveryAnalystSubAgent(paths, issueDefaults) {
|
|
|
12952
13029
|
" label.",
|
|
12953
13030
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
12954
13031
|
" your project's PR workflow.",
|
|
13032
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
13033
|
+
" **Origin label** section below.",
|
|
12955
13034
|
"",
|
|
12956
13035
|
"---",
|
|
12957
13036
|
"",
|
|
@@ -12959,6 +13038,10 @@ function buildIndustryDiscoveryAnalystSubAgent(paths, issueDefaults) {
|
|
|
12959
13038
|
"",
|
|
12960
13039
|
"---",
|
|
12961
13040
|
"",
|
|
13041
|
+
...renderOriginStampSection(),
|
|
13042
|
+
"",
|
|
13043
|
+
"---",
|
|
13044
|
+
"",
|
|
12962
13045
|
"## Phase 1: Discover (`industry:discover`)",
|
|
12963
13046
|
"",
|
|
12964
13047
|
"**Goal:** Enumerate candidate industry verticals into a bounded",
|
|
@@ -13511,6 +13594,8 @@ function buildMaintenanceAuditSubAgent(paths, tier) {
|
|
|
13511
13594
|
" label.",
|
|
13512
13595
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
13513
13596
|
" your project's PR workflow.",
|
|
13597
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
13598
|
+
" **Origin label** section below.",
|
|
13514
13599
|
"",
|
|
13515
13600
|
...renderIssueTypeAssignmentBlanket(),
|
|
13516
13601
|
"",
|
|
@@ -13520,6 +13605,10 @@ function buildMaintenanceAuditSubAgent(paths, tier) {
|
|
|
13520
13605
|
"",
|
|
13521
13606
|
"---",
|
|
13522
13607
|
"",
|
|
13608
|
+
...renderOriginStampSection(),
|
|
13609
|
+
"",
|
|
13610
|
+
"---",
|
|
13611
|
+
"",
|
|
13523
13612
|
"## Phase 1: Scan (`maint:scan`)",
|
|
13524
13613
|
"",
|
|
13525
13614
|
"**Goal:** Walk the configured doc tree, check every cross-reference",
|
|
@@ -14412,6 +14501,10 @@ function buildMeetingAnalystSubAgent(tier) {
|
|
|
14412
14501
|
"",
|
|
14413
14502
|
"---",
|
|
14414
14503
|
"",
|
|
14504
|
+
...renderOriginStampSection(),
|
|
14505
|
+
"",
|
|
14506
|
+
"---",
|
|
14507
|
+
"",
|
|
14415
14508
|
"## Phase 1: Extract (`meeting:extract`)",
|
|
14416
14509
|
"",
|
|
14417
14510
|
"**Goal:** Read the available meeting inputs (notes, transcript, or both)",
|
|
@@ -20446,6 +20539,8 @@ function buildPeopleProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
20446
20539
|
" label.",
|
|
20447
20540
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
20448
20541
|
" your project's PR workflow.",
|
|
20542
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
20543
|
+
" **Origin label** section below.",
|
|
20449
20544
|
"",
|
|
20450
20545
|
"---",
|
|
20451
20546
|
"",
|
|
@@ -20453,6 +20548,10 @@ function buildPeopleProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
20453
20548
|
"",
|
|
20454
20549
|
"---",
|
|
20455
20550
|
"",
|
|
20551
|
+
...renderOriginStampSection(),
|
|
20552
|
+
"",
|
|
20553
|
+
"---",
|
|
20554
|
+
"",
|
|
20456
20555
|
"## Phase 1: Research (`people:research`)",
|
|
20457
20556
|
"",
|
|
20458
20557
|
"**Goal:** Gather public sources into a bounded research-notes file.",
|
|
@@ -21415,14 +21514,14 @@ var prReviewerSubAgent = {
|
|
|
21415
21514
|
"",
|
|
21416
21515
|
"- **`--allow-human-author`** \u2014 opt-in flag that allows the reviewer to",
|
|
21417
21516
|
" process PRs authored by humans in addition to bot-authored PRs",
|
|
21418
|
-
|
|
21517
|
+
` (those carrying ${DELEGATION_ELIGIBLE_ORIGIN_LIST}). When absent, the`,
|
|
21419
21518
|
" reviewer only processes bot-authored PRs; when present, human-authored",
|
|
21420
21519
|
" PRs are also eligible for this invocation only. The flag does **not**",
|
|
21421
21520
|
" persist across invocations.",
|
|
21422
21521
|
"",
|
|
21423
21522
|
"Phase 4's invocation guard enforces the bot-only default and the",
|
|
21424
|
-
"`--allow-human-author` opt-out. PRs
|
|
21425
|
-
"
|
|
21523
|
+
"`--allow-human-author` opt-out. PRs carrying **no** origin label are",
|
|
21524
|
+
"still classified, commented on, reacted to, and (in",
|
|
21426
21525
|
"`auto-merge` mode) auto-merged when the AC/CI checks pass \u2014 only the",
|
|
21427
21526
|
"delegation hand-off to `issue-worker` is gated.",
|
|
21428
21527
|
"",
|
|
@@ -22153,12 +22252,17 @@ var prReviewerSubAgent = {
|
|
|
22153
22252
|
"Before delegating any in-scope fix to `issue-worker`, verify the",
|
|
22154
22253
|
"delegation is permitted by author identity:",
|
|
22155
22254
|
"",
|
|
22156
|
-
|
|
22157
|
-
|
|
22255
|
+
`- If the PR carries the \`${ORIGIN_ISSUE_WORKER_LABEL}\` label **or** the`,
|
|
22256
|
+
` \`${ORIGIN_AGENT_LABEL}\` label, delegation is permitted. Both are`,
|
|
22257
|
+
" agent-origin labels and both are delegation-eligible:",
|
|
22258
|
+
` \`${ORIGIN_ISSUE_WORKER_LABEL}\` marks a PR opened by the \`issue-worker\``,
|
|
22259
|
+
` agent specifically; \`${ORIGIN_AGENT_LABEL}\` is the umbrella label the`,
|
|
22260
|
+
" phased analyst/writer family stamps on the PRs it opens. Treat them",
|
|
22261
|
+
" identically for this guard \u2014 neither requires `--allow-human-author`.",
|
|
22158
22262
|
"- If the invocation prompt contains the literal flag",
|
|
22159
22263
|
" `--allow-human-author`, delegation is permitted for this invocation",
|
|
22160
22264
|
" only.",
|
|
22161
|
-
"- Otherwise (
|
|
22265
|
+
"- Otherwise (no agent-origin label and no opt-in flag) the reviewer",
|
|
22162
22266
|
" **must not delegate**. It still classifies comments (Phase 3.5),",
|
|
22163
22267
|
" posts replies, applies reactions, updates the sticky summary, and",
|
|
22164
22268
|
" (when in `auto-merge` mode and the AC/CI checks pass) enables",
|
|
@@ -22690,9 +22794,11 @@ var prReviewerSubAgent = {
|
|
|
22690
22794
|
" reviewed diff than the clean merge-commit `gh pr update-branch`",
|
|
22691
22795
|
" performs on a no-conflict branch.)",
|
|
22692
22796
|
"2. **Delegation invocation guard permits the hand-off** \u2014 the PR",
|
|
22693
|
-
|
|
22797
|
+
` carries the \`${ORIGIN_ISSUE_WORKER_LABEL}\` label or the`,
|
|
22798
|
+
` \`${ORIGIN_AGENT_LABEL}\` label, **or** the reviewer was`,
|
|
22694
22799
|
" invoked with `--allow-human-author`. The same guard used for the",
|
|
22695
|
-
" in-scope-fix delegation flow applies here unchanged
|
|
22800
|
+
" in-scope-fix delegation flow applies here unchanged \u2014 both",
|
|
22801
|
+
" agent-origin labels are delegation-eligible.",
|
|
22696
22802
|
"3. **The `review:fixing` lease is currently free.** If",
|
|
22697
22803
|
" `review:fixing` is already on the PR, another delegation is",
|
|
22698
22804
|
" in-flight; skip conflict-resolution delegation, log the contention",
|
|
@@ -23123,7 +23229,7 @@ var prReviewerSubAgent = {
|
|
|
23123
23229
|
" to `human-required`, Phase 4 applies `review:awaiting-human` and",
|
|
23124
23230
|
" exits. Even if every acceptance criterion is met and CI is green,",
|
|
23125
23231
|
" `gh pr merge --auto` is forbidden in that mode.",
|
|
23126
|
-
|
|
23232
|
+
`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\`.`,
|
|
23127
23233
|
"7. **Do not implement code.** You review, decide, and orchestrate. If",
|
|
23128
23234
|
" the PR needs code changes and delegation is not permitted by Rule",
|
|
23129
23235
|
" #6, comment and stop \u2014 do not attempt to fix it yourself.",
|
|
@@ -23223,8 +23329,8 @@ var reviewPrSkill = {
|
|
|
23223
23329
|
"",
|
|
23224
23330
|
"- **`--allow-human-author`** \u2014 opt the reviewer into processing",
|
|
23225
23331
|
" human-authored PRs for **this invocation only**. By default, the",
|
|
23226
|
-
" reviewer only processes bot-authored PRs (those carrying
|
|
23227
|
-
|
|
23332
|
+
" reviewer only processes bot-authored PRs (those carrying",
|
|
23333
|
+
` ${DELEGATION_ELIGIBLE_ORIGIN_LIST}); pass this flag to review a`,
|
|
23228
23334
|
" human-authored PR. The flag does not persist \u2014 subsequent",
|
|
23229
23335
|
" invocations return to the bot-only default.",
|
|
23230
23336
|
"",
|
|
@@ -23243,7 +23349,7 @@ var reviewPrSkill = {
|
|
|
23243
23349
|
"",
|
|
23244
23350
|
"Passing `--allow-human-author` opts the reviewer into processing",
|
|
23245
23351
|
"human-authored PRs for this invocation only (the default scope is",
|
|
23246
|
-
|
|
23352
|
+
`bot-authored PRs carrying ${DELEGATION_ELIGIBLE_ORIGIN_LIST}).`,
|
|
23247
23353
|
"",
|
|
23248
23354
|
"## Input",
|
|
23249
23355
|
"",
|
|
@@ -23285,8 +23391,8 @@ var reviewPrsSkill = {
|
|
|
23285
23391
|
"",
|
|
23286
23392
|
"- **`--allow-human-author`** \u2014 opt the reviewer into processing",
|
|
23287
23393
|
" human-authored PRs for **this invocation only**. By default, the",
|
|
23288
|
-
" loop only processes bot-authored PRs (those carrying
|
|
23289
|
-
|
|
23394
|
+
" loop only processes bot-authored PRs (those carrying",
|
|
23395
|
+
` ${DELEGATION_ELIGIBLE_ORIGIN_LIST}); pass this flag to include`,
|
|
23290
23396
|
" human-authored PRs in the queue. The flag does not persist \u2014",
|
|
23291
23397
|
" subsequent invocations return to the bot-only default.",
|
|
23292
23398
|
"",
|
|
@@ -23338,7 +23444,7 @@ var reviewPrsSkill = {
|
|
|
23338
23444
|
"",
|
|
23339
23445
|
"Passing `--allow-human-author` opts the reviewer into including",
|
|
23340
23446
|
"human-authored PRs in the queue for this invocation only (the default",
|
|
23341
|
-
|
|
23447
|
+
`scope is bot-authored PRs carrying ${DELEGATION_ELIGIBLE_ORIGIN_LIST}).`,
|
|
23342
23448
|
"",
|
|
23343
23449
|
"## Output",
|
|
23344
23450
|
"",
|
|
@@ -23984,7 +24090,7 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
23984
24090
|
"",
|
|
23985
24091
|
"### Label Glossary",
|
|
23986
24092
|
"",
|
|
23987
|
-
"
|
|
24093
|
+
"Seven review-workflow labels drive the feedback loop. They are",
|
|
23988
24094
|
"**contributed by the pr-review bundle's label set** and auto-sync",
|
|
23989
24095
|
"into every consumer's label registry \u2014 the same way the",
|
|
23990
24096
|
"`type:*` / `priority:*` / `status:*` taxonomy ships. Consumers do",
|
|
@@ -23994,7 +24100,8 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
23994
24100
|
"",
|
|
23995
24101
|
"| Label | Purpose |",
|
|
23996
24102
|
"|-------|---------|",
|
|
23997
|
-
|
|
24103
|
+
`| \`${ORIGIN_ISSUE_WORKER_LABEL}\` | PR was opened by the \`issue-worker\` agent specifically. Eligible for auto-delegation of in-scope fixes. |`,
|
|
24104
|
+
`| \`${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. |`,
|
|
23998
24105
|
"| `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. |",
|
|
23999
24106
|
"| `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. |",
|
|
24000
24107
|
"| `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). |",
|
|
@@ -24004,8 +24111,8 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
24004
24111
|
"### Reviewing Human-Authored PRs: the `--allow-human-author` Flag",
|
|
24005
24112
|
"",
|
|
24006
24113
|
"By default the reviewer only **delegates** in-scope fixes on",
|
|
24007
|
-
|
|
24008
|
-
"
|
|
24114
|
+
`bot-authored PRs \u2014 those carrying ${DELEGATION_ELIGIBLE_ORIGIN_PHRASE}.`,
|
|
24115
|
+
"Running `/review-pr <n>` or `/review-prs` on a",
|
|
24009
24116
|
"human-authored PR still produces a full review (reactions,",
|
|
24010
24117
|
"replies, sticky summary, and auto-merge when the policy allows",
|
|
24011
24118
|
"it) but skips the delegation hand-off to `issue-worker` \u2014 the",
|
|
@@ -24039,10 +24146,15 @@ function buildPrReviewBundle(policy = resolvePrReviewPolicy()) {
|
|
|
24039
24146
|
description: "PR review tasks"
|
|
24040
24147
|
},
|
|
24041
24148
|
{
|
|
24042
|
-
name:
|
|
24149
|
+
name: ORIGIN_ISSUE_WORKER_LABEL,
|
|
24043
24150
|
color: "5319E7",
|
|
24044
24151
|
description: "PR opened by the issue-worker agent"
|
|
24045
24152
|
},
|
|
24153
|
+
{
|
|
24154
|
+
name: ORIGIN_AGENT_LABEL,
|
|
24155
|
+
color: "5319E7",
|
|
24156
|
+
description: "PR opened by an agent in this project's pipeline; eligible for autonomous fix delegation"
|
|
24157
|
+
},
|
|
24046
24158
|
{
|
|
24047
24159
|
name: "review:auto-ok",
|
|
24048
24160
|
color: "0E8A16",
|
|
@@ -24694,6 +24806,8 @@ function buildRegulatoryResearchAnalystSubAgent(paths, issueDefaults) {
|
|
|
24694
24806
|
" label.",
|
|
24695
24807
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
24696
24808
|
" your project's PR workflow.",
|
|
24809
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
24810
|
+
" **Origin label** section below.",
|
|
24697
24811
|
"",
|
|
24698
24812
|
"---",
|
|
24699
24813
|
"",
|
|
@@ -24701,6 +24815,10 @@ function buildRegulatoryResearchAnalystSubAgent(paths, issueDefaults) {
|
|
|
24701
24815
|
"",
|
|
24702
24816
|
"---",
|
|
24703
24817
|
"",
|
|
24818
|
+
...renderOriginStampSection(),
|
|
24819
|
+
"",
|
|
24820
|
+
"---",
|
|
24821
|
+
"",
|
|
24704
24822
|
"## Phase 1: Scan (`regulatory:scan`)",
|
|
24705
24823
|
"",
|
|
24706
24824
|
"**Goal:** Enumerate regulations applicable to a given scope \u2014",
|
|
@@ -27901,6 +28019,8 @@ function buildRequirementsWriterSubAgent(paths) {
|
|
|
27901
28019
|
"4. Commit, push, open a PR, and close the issue per your project's",
|
|
27902
28020
|
" PR workflow. Closing the PR transitions the issue to",
|
|
27903
28021
|
" `status:done` per the standard label conventions.",
|
|
28022
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
28023
|
+
" **Origin label** section below.",
|
|
27904
28024
|
"",
|
|
27905
28025
|
"---",
|
|
27906
28026
|
"",
|
|
@@ -27908,6 +28028,10 @@ function buildRequirementsWriterSubAgent(paths) {
|
|
|
27908
28028
|
"",
|
|
27909
28029
|
"---",
|
|
27910
28030
|
"",
|
|
28031
|
+
...renderOriginStampSection(),
|
|
28032
|
+
"",
|
|
28033
|
+
"---",
|
|
28034
|
+
"",
|
|
27911
28035
|
"## The `req:write` Issue Schema",
|
|
27912
28036
|
"",
|
|
27913
28037
|
"This section is the **authoritative schema** for `req:write` issue",
|
|
@@ -28543,6 +28667,8 @@ function buildRequirementsAnalystSubAgent(paths, issueDefaults) {
|
|
|
28543
28667
|
"3. Execute the phase handler that matches the issue's `req:*` label.",
|
|
28544
28668
|
"4. Commit, push, open a PR (if applicable), and close the issue per your",
|
|
28545
28669
|
" project's PR workflow.",
|
|
28670
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
28671
|
+
" **Origin label** section below.",
|
|
28546
28672
|
"",
|
|
28547
28673
|
"---",
|
|
28548
28674
|
"",
|
|
@@ -28550,6 +28676,10 @@ function buildRequirementsAnalystSubAgent(paths, issueDefaults) {
|
|
|
28550
28676
|
"",
|
|
28551
28677
|
"---",
|
|
28552
28678
|
"",
|
|
28679
|
+
...renderOriginStampSection(),
|
|
28680
|
+
"",
|
|
28681
|
+
"---",
|
|
28682
|
+
"",
|
|
28553
28683
|
"## Phase 1: Scan (`req:scan`)",
|
|
28554
28684
|
"",
|
|
28555
28685
|
"**Goal:** Read source documents, identify where requirements are missing,",
|
|
@@ -29146,6 +29276,10 @@ function buildRequirementsReviewerSubAgent(paths, issueDefaults) {
|
|
|
29146
29276
|
"",
|
|
29147
29277
|
"---",
|
|
29148
29278
|
"",
|
|
29279
|
+
...renderOriginStampSection(),
|
|
29280
|
+
"",
|
|
29281
|
+
"---",
|
|
29282
|
+
"",
|
|
29149
29283
|
"## Phase Router",
|
|
29150
29284
|
"",
|
|
29151
29285
|
"Before reading any documents, classify the session by reading the",
|
|
@@ -30525,6 +30659,8 @@ function buildResearchAnalystSubAgent(paths) {
|
|
|
30525
30659
|
" label.",
|
|
30526
30660
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
30527
30661
|
" your project's PR workflow.",
|
|
30662
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
30663
|
+
" **Origin label** section below.",
|
|
30528
30664
|
"",
|
|
30529
30665
|
"---",
|
|
30530
30666
|
"",
|
|
@@ -30532,6 +30668,10 @@ function buildResearchAnalystSubAgent(paths) {
|
|
|
30532
30668
|
"",
|
|
30533
30669
|
"---",
|
|
30534
30670
|
"",
|
|
30671
|
+
...renderOriginStampSection(),
|
|
30672
|
+
"",
|
|
30673
|
+
"---",
|
|
30674
|
+
"",
|
|
30535
30675
|
"## Phase 1: Scope (`research:scope`)",
|
|
30536
30676
|
"",
|
|
30537
30677
|
"**Goal:** Turn a natural-language research question into a bounded",
|
|
@@ -31270,6 +31410,8 @@ function buildSoftwareProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
31270
31410
|
" label.",
|
|
31271
31411
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
31272
31412
|
" your project's PR workflow.",
|
|
31413
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
31414
|
+
" **Origin label** section below.",
|
|
31273
31415
|
"",
|
|
31274
31416
|
"---",
|
|
31275
31417
|
"",
|
|
@@ -31277,6 +31419,10 @@ function buildSoftwareProfileAnalystSubAgent(paths, issueDefaults, tier) {
|
|
|
31277
31419
|
"",
|
|
31278
31420
|
"---",
|
|
31279
31421
|
"",
|
|
31422
|
+
...renderOriginStampSection(),
|
|
31423
|
+
"",
|
|
31424
|
+
"---",
|
|
31425
|
+
"",
|
|
31280
31426
|
"## Phase 1: Research (`software:research`)",
|
|
31281
31427
|
"",
|
|
31282
31428
|
"**Goal:** Gather public sources into a bounded research-notes file.",
|
|
@@ -32408,6 +32554,8 @@ function buildStandardsResearchAnalystSubAgent(paths, issueDefaults) {
|
|
|
32408
32554
|
" label.",
|
|
32409
32555
|
"4. Commit, push, open a PR (if applicable), and close the issue per",
|
|
32410
32556
|
" your project's PR workflow.",
|
|
32557
|
+
" Stamp every PR you open with the `origin:agent` label \u2014 see the",
|
|
32558
|
+
" **Origin label** section below.",
|
|
32411
32559
|
"",
|
|
32412
32560
|
"---",
|
|
32413
32561
|
"",
|
|
@@ -32415,6 +32563,10 @@ function buildStandardsResearchAnalystSubAgent(paths, issueDefaults) {
|
|
|
32415
32563
|
"",
|
|
32416
32564
|
"---",
|
|
32417
32565
|
"",
|
|
32566
|
+
...renderOriginStampSection(),
|
|
32567
|
+
"",
|
|
32568
|
+
"---",
|
|
32569
|
+
"",
|
|
32418
32570
|
"## Phase 1: Scope (`standards:scope`)",
|
|
32419
32571
|
"",
|
|
32420
32572
|
"**Goal:** Plan the research campaign for a standard \u2014 identify which",
|