@codedrifters/configulator 0.0.288 → 0.0.289

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 CHANGED
@@ -206,7 +206,6 @@ __export(index_exports, {
206
206
  DEFAULT_API_EXTRACTOR_REPORT_FOLDER: () => DEFAULT_API_EXTRACTOR_REPORT_FOLDER,
207
207
  DEFAULT_AUDIT_REPORT_DIR: () => DEFAULT_AUDIT_REPORT_DIR,
208
208
  DEFAULT_DECOMPOSITION_TEMPLATE: () => DEFAULT_DECOMPOSITION_TEMPLATE,
209
- DEFAULT_DELEGATE_TO_PR_REVIEWER: () => DEFAULT_DELEGATE_TO_PR_REVIEWER,
210
209
  DEFAULT_DISPATCH_MODEL: () => DEFAULT_DISPATCH_MODEL,
211
210
  DEFAULT_DISPATCH_TO_HOUSEKEEPING_RATIO: () => DEFAULT_DISPATCH_TO_HOUSEKEEPING_RATIO,
212
211
  DEFAULT_HOUSEKEEPING_MODEL: () => DEFAULT_HOUSEKEEPING_MODEL,
@@ -216,7 +215,6 @@ __export(index_exports, {
216
215
  DEFAULT_ISSUE_TEMPLATES_ENABLED: () => DEFAULT_ISSUE_TEMPLATES_ENABLED,
217
216
  DEFAULT_ISSUE_TEMPLATES_PATH: () => DEFAULT_ISSUE_TEMPLATES_PATH,
218
217
  DEFAULT_ISSUE_TEMPLATES_REQUIRE_REFERENCE: () => DEFAULT_ISSUE_TEMPLATES_REQUIRE_REFERENCE,
219
- DEFAULT_MERGE_METHOD: () => DEFAULT_MERGE_METHOD,
220
218
  DEFAULT_OFF_PEAK_CRON_EXAMPLE: () => DEFAULT_OFF_PEAK_CRON_EXAMPLE,
221
219
  DEFAULT_PARTIAL_UNBLOCK_COMMENT_TEMPLATE: () => DEFAULT_PARTIAL_UNBLOCK_COMMENT_TEMPLATE,
222
220
  DEFAULT_PRIORITY_LABELS: () => DEFAULT_PRIORITY_LABELS,
@@ -226,7 +224,6 @@ __export(index_exports, {
226
224
  DEFAULT_PROGRESS_FILES_FORMAT: () => DEFAULT_PROGRESS_FILES_FORMAT,
227
225
  DEFAULT_PROGRESS_FILES_STALE_AFTER_HOURS: () => DEFAULT_PROGRESS_FILES_STALE_AFTER_HOURS,
228
226
  DEFAULT_PROGRESS_FILES_STATE_DIR: () => DEFAULT_PROGRESS_FILES_STATE_DIR,
229
- DEFAULT_REQUIRE_LINKED_ISSUE: () => DEFAULT_REQUIRE_LINKED_ISSUE,
230
227
  DEFAULT_REQUIRE_PRODUCT_CONTEXT: () => DEFAULT_REQUIRE_PRODUCT_CONTEXT,
231
228
  DEFAULT_SAMPLE_COMPILER_OPTIONS: () => DEFAULT_SAMPLE_COMPILER_OPTIONS,
232
229
  DEFAULT_SCHEDULED_TASKS_ROOT: () => DEFAULT_SCHEDULED_TASKS_ROOT,
@@ -258,7 +255,6 @@ __export(index_exports, {
258
255
  MINIMUM_RELEASE_AGE: () => MINIMUM_RELEASE_AGE,
259
256
  MONOREPO_LAYOUT: () => MONOREPO_LAYOUT,
260
257
  MonorepoProject: () => MonorepoProject,
261
- PREFLIGHT_MERGE_METHOD_VALUES: () => PREFLIGHT_MERGE_METHOD_VALUES,
262
258
  PROD_DEPLOY_NAME: () => PROD_DEPLOY_NAME,
263
259
  PROGRESS_FILES_FORMAT_VALUES: () => PROGRESS_FILES_FORMAT_VALUES,
264
260
  PnpmWorkspace: () => PnpmWorkspace,
@@ -362,8 +358,6 @@ __export(index_exports, {
362
358
  renderIssueTemplatesRuleContent: () => renderIssueTemplatesRuleContent,
363
359
  renderIssueTemplatesStarterPage: () => renderIssueTemplatesStarterPage,
364
360
  renderMeetingTypesSection: () => renderMeetingTypesSection,
365
- renderPreflightPrSection: () => renderPreflightPrSection,
366
- renderPreflightPrShellHelpers: () => renderPreflightPrShellHelpers,
367
361
  renderPriorityRulesSection: () => renderPriorityRulesSection,
368
362
  renderProgressFileName: () => renderProgressFileName,
369
363
  renderProgressFilePath: () => renderProgressFilePath,
@@ -396,7 +390,6 @@ __export(index_exports, {
396
390
  resolveModelAlias: () => resolveModelAlias,
397
391
  resolveOrchestratorAssets: () => resolveOrchestratorAssets,
398
392
  resolveOutdirFromPackageName: () => resolveOutdirFromPackageName,
399
- resolvePreflightPr: () => resolvePreflightPr,
400
393
  resolveProgressFiles: () => resolveProgressFiles,
401
394
  resolveRunRatio: () => resolveRunRatio,
402
395
  resolveScheduledTasks: () => resolveScheduledTasks,
@@ -417,7 +410,6 @@ __export(index_exports, {
417
410
  validateAgentTierConfig: () => validateAgentTierConfig,
418
411
  validateIssueTemplatesConfig: () => validateIssueTemplatesConfig,
419
412
  validateMonorepoLayout: () => validateMonorepoLayout,
420
- validatePreflightPrConfig: () => validatePreflightPrConfig,
421
413
  validateProgressFilesConfig: () => validateProgressFilesConfig,
422
414
  validateRunRatioConfig: () => validateRunRatioConfig,
423
415
  validateScheduledTasksConfig: () => validateScheduledTasksConfig,
@@ -11169,291 +11161,6 @@ var meetingAnalysisBundle = {
11169
11161
  ]
11170
11162
  };
11171
11163
 
11172
- // src/agent/bundles/preflight-pr.ts
11173
- var DEFAULT_DELEGATE_TO_PR_REVIEWER = true;
11174
- var DEFAULT_MERGE_METHOD = "squash";
11175
- var DEFAULT_REQUIRE_LINKED_ISSUE = true;
11176
- var PREFLIGHT_MERGE_METHOD_VALUES = [
11177
- "squash",
11178
- "merge",
11179
- "rebase"
11180
- ];
11181
- function resolvePreflightPr(config) {
11182
- const mergeMethod = config?.mergeMethod ?? DEFAULT_MERGE_METHOD;
11183
- assertValidMergeMethod(mergeMethod);
11184
- const eligibleLabels = config?.eligibleLabels ?? [];
11185
- assertValidEligibleLabels(eligibleLabels);
11186
- return {
11187
- enabled: config?.enabled ?? true,
11188
- delegateToPrReviewer: config?.delegateToPrReviewer ?? DEFAULT_DELEGATE_TO_PR_REVIEWER,
11189
- mergeMethod,
11190
- requireLinkedIssue: config?.requireLinkedIssue ?? DEFAULT_REQUIRE_LINKED_ISSUE,
11191
- eligibleLabels
11192
- };
11193
- }
11194
- function validatePreflightPrConfig(config) {
11195
- return resolvePreflightPr(config);
11196
- }
11197
- function renderPreflightPrSection(pf) {
11198
- const lines = [
11199
- "## Pre-flight PR merge",
11200
- "",
11201
- "The orchestrator runs a **pre-flight PR merge sweep** before its",
11202
- "triage walk so already-approved, CI-green PRs land before the",
11203
- "unblock and queue-scan phases read dependency state. Without",
11204
- "pre-flight, an issue whose only remaining blocker is an approved",
11205
- "PR stuck behind a branch-protection delay shows up as blocked on",
11206
- "every dispatch cycle \u2014 the pipeline thrashes on stale dependency",
11207
- "state.",
11208
- ""
11209
- ];
11210
- if (!pf.enabled) {
11211
- lines.push(
11212
- "**Pre-flight is disabled for this project.** The orchestrator",
11213
- "skips the pre-flight sweep entirely; PR merges land via the",
11214
- "existing batch PR review step on housekeeping runs or via a",
11215
- "human operator. Enable pre-flight via",
11216
- "`AgentConfigOptions.preflightPr.enabled = true` once the repo",
11217
- "is comfortable with automated merges.",
11218
- ""
11219
- );
11220
- return lines.join("\n");
11221
- }
11222
- lines.push(
11223
- "### When pre-flight runs",
11224
- "",
11225
- "Pre-flight runs on **every orchestrator invocation** \u2014",
11226
- "both dispatch and housekeeping runs \u2014 immediately after Phase A",
11227
- "(Startup) and before any other phase reads issue or PR state. The",
11228
- "sweep is idempotent: `gh pr merge` on an already-merged PR is a",
11229
- "no-op, so re-running pre-flight on back-to-back invocations is",
11230
- "safe and cheap.",
11231
- "",
11232
- "### Eligibility",
11233
- "",
11234
- "A PR is eligible for a pre-flight merge when **all** of the",
11235
- "following hold:",
11236
- "",
11237
- "- PR is not draft and not closed.",
11238
- "- PR is `MERGEABLE` (no branch conflicts).",
11239
- "- Every required CI check has passed (`SUCCESS` or `SKIPPED`).",
11240
- "- PR carries at least one `APPROVED` review **or** auto-merge is",
11241
- " already enabled on the PR.",
11242
- "- PR is not carrying `status:needs-attention`."
11243
- );
11244
- if (pf.requireLinkedIssue) {
11245
- lines.push(
11246
- "- PR body contains a `Closes #<n>` / `Fixes #<n>` / `Resolves`",
11247
- " `#<n>` keyword referencing an open issue."
11248
- );
11249
- } else {
11250
- lines.push(
11251
- "- Linked-issue check is **disabled** for this project \u2014 PRs",
11252
- " without a `Closes/Fixes/Resolves` keyword are eligible."
11253
- );
11254
- }
11255
- if (pf.eligibleLabels.length > 0) {
11256
- lines.push(
11257
- "- PR carries at least one of the following consumer-declared",
11258
- " eligibility labels:",
11259
- "",
11260
- ...pf.eligibleLabels.map((label) => ` - \`${label}\``)
11261
- );
11262
- }
11263
- lines.push(
11264
- "",
11265
- "PRs that fail any criterion are skipped with a one-line",
11266
- "diagnostic and left for the `pr-reviewer` or a human operator to",
11267
- "handle on the normal review path.",
11268
- "",
11269
- "### Execution mode",
11270
- ""
11271
- );
11272
- if (pf.delegateToPrReviewer) {
11273
- lines.push(
11274
- "**Delegate mode (default).** The orchestrator invokes the",
11275
- "`pr-reviewer` sub-agent to run the pre-flight sweep. This",
11276
- "mirrors vortex's step 0b contract: the merge workflow runs on",
11277
- "its own (cheaper) model rather than consuming the orchestrator's",
11278
- "more expensive model budget for mechanical merges.",
11279
- "",
11280
- "The sub-agent returns a one-line structured summary as the last",
11281
- "line of its response:",
11282
- "",
11283
- "```",
11284
- "Merged <n> (#<list>), skipped <m> (#<pr> \u2014 <reason>), <k> eligible left.",
11285
- "```",
11286
- "",
11287
- "If the sub-agent's final line is missing, malformed, or",
11288
- "indicates an error, the orchestrator **does not retry** \u2014 it",
11289
- "proceeds to the next phase anyway. PR merges are idempotent at",
11290
- "GitHub, so the next orchestrator session re-runs pre-flight.",
11291
- "The only cost of a skipped sub-agent pass is that dependency",
11292
- "issues stay open one more cycle."
11293
- );
11294
- } else {
11295
- lines.push(
11296
- "**Inline mode.** The orchestrator performs the pre-flight merge",
11297
- "itself \u2014 it does **not** delegate to the `pr-reviewer`",
11298
- "sub-agent. Use this mode in repos that prefer a single-process",
11299
- "pipeline or that have not wired a `pr-reviewer` sub-agent.",
11300
- "",
11301
- `For each eligible PR, the orchestrator runs \`gh pr merge --${pf.mergeMethod}\``,
11302
- "with `--delete-branch` and re-confirms that the linked issue",
11303
- "closes (applying `status:done` if the auto-close did not fire)."
11304
- );
11305
- }
11306
- lines.push(
11307
- "",
11308
- "### Post-merge verification",
11309
- "",
11310
- "After each successful merge, the orchestrator re-reads the linked",
11311
- "issue state. When the merge commit did **not** auto-close the",
11312
- "issue (closing-keyword typos, linked-issue keyword dropped during",
11313
- "a rebase), the orchestrator closes the issue explicitly and",
11314
- "applies `status:done` so the downstream unblock loop sees the",
11315
- "dependency as resolved. This is the only way pre-flight prevents",
11316
- "the stale-dependency thrash \u2014 without the verification step a",
11317
- "merged-but-not-closed issue still reads as blocking to",
11318
- "`check-blocked.sh unblock`."
11319
- );
11320
- return lines.join("\n");
11321
- }
11322
- function renderPreflightPrShellHelpers(pf) {
11323
- const requireIssueFlag = pf.requireLinkedIssue ? "1" : "0";
11324
- const hasLabelFilter = pf.eligibleLabels.length > 0;
11325
- const lines = [
11326
- "# Scan open PRs and emit one eligibility line per PR in the",
11327
- "# canonical `PREFLIGHT_MERGE PR #<n> issue:#<m> branch:<b> \u2014",
11328
- '# "<title>"` / `PREFLIGHT_SKIP PR #<n> \u2014 <reason> \u2014 "<title>"` /',
11329
- "# `NO_PREFLIGHT_PRS` format. Orchestrator-side loops read this",
11330
- "# output and either merge the PR inline or delegate the sweep to",
11331
- "# the pr-reviewer sub-agent.",
11332
- "cmd_preflight() {",
11333
- ' if [[ "$PREFLIGHT_ENABLED" != "1" ]]; then',
11334
- ' echo "NO_PREFLIGHT_PRS"',
11335
- " return 0",
11336
- " fi",
11337
- " local prs",
11338
- " prs=$(gh pr list --state open --json number,title,isDraft,mergeable,headRefName,labels,body,reviewDecision,autoMergeRequest \\",
11339
- ' --limit 50 2>/dev/null || echo "[]")',
11340
- "",
11341
- " local count",
11342
- ` count=$(echo "$prs" | jq 'length')`,
11343
- ' if [[ "$count" -eq 0 ]]; then',
11344
- ' echo "NO_PREFLIGHT_PRS"',
11345
- " return 0",
11346
- " fi",
11347
- "",
11348
- " # Stage 1: filter in jq on purely structural fields (draft,",
11349
- " # labels, linked-issue keyword). CI state lives outside the",
11350
- " # list endpoint so it is checked per-PR below.",
11351
- " local candidates",
11352
- ` candidates=$(echo "$prs" | jq -r --arg require_issue "$PREFLIGHT_REQUIRE_LINKED_ISSUE" '`,
11353
- " .[] |",
11354
- " select(.isDraft == false) |",
11355
- ' select(.labels | map(.name) | index("status:needs-attention") | not) |'
11356
- ];
11357
- if (hasLabelFilter) {
11358
- const jqArray = pf.eligibleLabels.map((label) => `"${label.replace(/"/g, '\\"')}"`).join(",");
11359
- lines.push(
11360
- ` select((.labels | map(.name)) as $names | [${jqArray}] | any(. as $l | $names | index($l))) |`
11361
- );
11362
- }
11363
- lines.push(
11364
- ' (.body | capture("(?:Closes|Fixes|Resolves) #(?<num>[0-9]+)"; "i") | .num) as $issue |',
11365
- ' select($require_issue == "0" or ($issue != null and $issue != "")) |',
11366
- ' "\\(.number)\\t\\(.title)\\t\\(.headRefName)\\t\\($issue // "")\\t\\(.mergeable // "UNKNOWN")\\t\\(.reviewDecision // "")\\t\\((.autoMergeRequest // null) != null)"',
11367
- " ' 2>/dev/null)",
11368
- "",
11369
- ' if [[ -z "$candidates" ]]; then',
11370
- ' echo "NO_PREFLIGHT_PRS"',
11371
- " return 0",
11372
- " fi",
11373
- "",
11374
- " local found_eligible=false",
11375
- " while IFS=$'\\t' read -r pr_num title branch issue_num mergeable review_decision auto_merge; do",
11376
- ' [[ -z "$pr_num" ]] && continue',
11377
- "",
11378
- " # Mergeable gate.",
11379
- ' if [[ "$mergeable" != "MERGEABLE" ]]; then',
11380
- ' echo "PREFLIGHT_SKIP PR #${pr_num} \u2014 not mergeable (${mergeable}) \u2014 \\"${title}\\""',
11381
- " continue",
11382
- " fi",
11383
- "",
11384
- " # Approval gate: APPROVED review OR auto-merge already",
11385
- " # enabled. Either signal means a human has signed off on the",
11386
- " # change; pre-flight only needs to wait for CI + branch",
11387
- " # protection to clear.",
11388
- ' if [[ "$review_decision" != "APPROVED" && "$auto_merge" != "true" ]]; then',
11389
- ' echo "PREFLIGHT_SKIP PR #${pr_num} \u2014 not approved and auto-merge not set \u2014 \\"${title}\\""',
11390
- " continue",
11391
- " fi",
11392
- "",
11393
- " # CI gate. `gh pr checks` returns one row per check; anything",
11394
- " # that is neither SUCCESS nor SKIPPED counts as failing or",
11395
- " # pending.",
11396
- " local failing_checks",
11397
- ' failing_checks=$(gh pr checks "$pr_num" --json name,state \\',
11398
- ` --jq '[.[] | select(.state != "SUCCESS" and .state != "SKIPPED")] | length' 2>/dev/null || echo "-1")`,
11399
- "",
11400
- ' if [[ "$failing_checks" == "-1" ]]; then',
11401
- ' echo "PREFLIGHT_SKIP PR #${pr_num} \u2014 could not read CI status \u2014 \\"${title}\\""',
11402
- " continue",
11403
- " fi",
11404
- "",
11405
- ' if [[ "$failing_checks" -gt 0 ]]; then',
11406
- ' echo "PREFLIGHT_SKIP PR #${pr_num} \u2014 ${failing_checks} CI check(s) not passing \u2014 \\"${title}\\""',
11407
- " continue",
11408
- " fi",
11409
- "",
11410
- " # Linked-issue state gate. A PR whose linked issue is already",
11411
- " # closed should not block pre-flight \u2014 skip it so the unblock",
11412
- " # loop picks up the dependency. This path also fires when the",
11413
- " # PR was merged but the closing keyword was dropped.",
11414
- ' if [[ -n "$issue_num" ]]; then',
11415
- " local issue_state",
11416
- ` issue_state=$(gh issue view "$issue_num" --json state --jq '.state' 2>/dev/null || echo "UNKNOWN")`,
11417
- ' if [[ "$issue_state" == "CLOSED" ]]; then',
11418
- ' echo "PREFLIGHT_SKIP PR #${pr_num} \u2014 linked issue #${issue_num} already closed \u2014 \\"${title}\\""',
11419
- " continue",
11420
- " fi",
11421
- " fi",
11422
- "",
11423
- " found_eligible=true",
11424
- ' echo "PREFLIGHT_MERGE PR #${pr_num} issue:#${issue_num:-none} branch:${branch} \u2014 \\"${title}\\""',
11425
- ' done <<< "$candidates"',
11426
- "",
11427
- " if ! $found_eligible; then",
11428
- ' echo "NO_PREFLIGHT_PRS"',
11429
- " fi",
11430
- "}"
11431
- );
11432
- void requireIssueFlag;
11433
- return lines.join("\n");
11434
- }
11435
- function assertValidMergeMethod(value) {
11436
- if (!PREFLIGHT_MERGE_METHOD_VALUES.includes(value)) {
11437
- throw new Error(
11438
- `PreflightPrConfig.mergeMethod must be one of ${PREFLIGHT_MERGE_METHOD_VALUES.join(
11439
- " | "
11440
- )}; got ${JSON.stringify(value)}`
11441
- );
11442
- }
11443
- }
11444
- function assertValidEligibleLabels(labels) {
11445
- for (let i = 0; i < labels.length; i += 1) {
11446
- const label = labels[i];
11447
- if (typeof label !== "string" || label.trim().length === 0) {
11448
- throw new Error(
11449
- `PreflightPrConfig.eligibleLabels[${i}] must be a non-empty string; got ${JSON.stringify(
11450
- label
11451
- )}`
11452
- );
11453
- }
11454
- }
11455
- }
11456
-
11457
11164
  // src/agent/bundles/run-ratio.ts
11458
11165
  var DEFAULT_DISPATCH_TO_HOUSEKEEPING_RATIO = 4;
11459
11166
  var DEFAULT_STATE_FILE_PATH = ".state/orchestrator-runs.json";
@@ -11540,23 +11247,18 @@ function renderRunRatioSection(ratio) {
11540
11247
  "### Dispatch-run pipeline",
11541
11248
  "",
11542
11249
  "1. Phase A \u2014 startup (fetch + checkout default branch).",
11543
- "2. Phase B0 \u2014 pre-flight PR merge sweep (land approved,",
11544
- " CI-green PRs before triage reads dependency state).",
11545
- "3. Phase C \u2014 triage unblock (resolve `Depends on:` chains).",
11546
- "4. Phase E \u2014 queue scan (pick the top `PICK` line, run the scope",
11250
+ "2. Phase C \u2014 triage unblock (resolve `Depends on:` chains).",
11251
+ "3. Phase E \u2014 queue scan (pick the top `PICK` line, run the scope",
11547
11252
  " gate, emit `NEXT_WORK_ITEM`).",
11548
- "5. Phase F \u2014 cleanup.",
11253
+ "4. Phase F \u2014 cleanup.",
11549
11254
  "",
11550
11255
  "### Housekeeping-run pipeline",
11551
11256
  "",
11552
11257
  "1. Phase A \u2014 startup.",
11553
- "2. Phase B0 \u2014 pre-flight PR merge sweep (same mechanics as the",
11554
- " dispatch run; runs before the batch review so already-approved",
11555
- " PRs land cleanly).",
11556
- "3. Phase B \u2014 batch PR review across every eligible open PR.",
11557
- "4. Phase D \u2014 maintenance scan (stale detection, orphaned branches,",
11258
+ "2. Phase B \u2014 batch PR review across every eligible open PR.",
11259
+ "3. Phase D \u2014 maintenance scan (stale detection, orphaned branches,",
11558
11260
  " needs-attention summary).",
11559
- "5. Phase F \u2014 cleanup.",
11261
+ "4. Phase F \u2014 cleanup.",
11560
11262
  "",
11561
11263
  "### Model recommendations",
11562
11264
  "",
@@ -11683,7 +11385,7 @@ var DEFAULT_SCHEDULED_TASK_ENTRIES = [
11683
11385
  recommendedModel: "sonnet",
11684
11386
  enabled: false,
11685
11387
  cron: null,
11686
- description: "End-to-end pipeline manager: pre-flight PR merge, triage, maintenance, queue scan, delegate the picked issue to the issue-worker, then cleanup."
11388
+ description: "End-to-end pipeline manager: triage, maintenance, queue scan, delegate the picked issue to the issue-worker, then cleanup."
11687
11389
  },
11688
11390
  // Tier 1 — research.
11689
11391
  {
@@ -12778,9 +12480,6 @@ function renderUnblockDependentsSection(ud) {
12778
12480
  "",
12779
12481
  "- The `pr-reviewer` sub-agent, Phase 5 (branch cleanup), after it",
12780
12482
  " applies `status:done` to the linked issue on a successful merge.",
12781
- "- The `orchestrator` sub-agent, Phase B0 (pre-flight PR merge)",
12782
- " post-merge verification, after it force-closes an issue whose",
12783
- " merge commit dropped its closing keyword.",
12784
12483
  "",
12785
12484
  "Any other agent that manually applies `status:done` should call",
12786
12485
  "`unblock-dependents.sh <closed-issue>` as its last step. The",
@@ -13086,12 +12785,11 @@ function shellSingleQuote(value) {
13086
12785
  }
13087
12786
 
13088
12787
  // src/agent/bundles/orchestrator.ts
13089
- function buildCheckBlockedScript(tiers, scopeGate, runRatio, preflight) {
12788
+ function buildCheckBlockedScript(tiers, scopeGate, runRatio) {
13090
12789
  const tierCase = renderAgentTierCaseStatement(tiers);
13091
12790
  const scopeHelper = renderScopeGateShellHelpers(scopeGate);
13092
12791
  const scopeHelperIndented = scopeHelper.split("\n").map((line) => line.length > 0 ? line : "").join("\n");
13093
12792
  const runRatioHelper = renderRunRatioShellHelpers(runRatio);
13094
- const preflightHelper = renderPreflightPrShellHelpers(preflight);
13095
12793
  return [
13096
12794
  "#!/usr/bin/env bash",
13097
12795
  "# check-blocked.sh \u2014 Token-efficient issue triage for agent loops.",
@@ -13106,7 +12804,6 @@ function buildCheckBlockedScript(tiers, scopeGate, runRatio, preflight) {
13106
12804
  "# .claude/procedures/check-blocked.sh prs",
13107
12805
  "# .claude/procedures/check-blocked.sh scope <issue-number>",
13108
12806
  "# .claude/procedures/check-blocked.sh tick",
13109
- "# .claude/procedures/check-blocked.sh preflight",
13110
12807
  "",
13111
12808
  "set -uo pipefail",
13112
12809
  "",
@@ -13121,10 +12818,6 @@ function buildCheckBlockedScript(tiers, scopeGate, runRatio, preflight) {
13121
12818
  `RUN_RATIO_ENABLED=${runRatio.enabled ? "1" : "0"}`,
13122
12819
  `RUN_RATIO_DISPATCH_PER_HOUSEKEEPING=${runRatio.ratio}`,
13123
12820
  `ORCHESTRATOR_STATE_FILE="${runRatio.stateFilePath}"`,
13124
- `PREFLIGHT_ENABLED=${preflight.enabled ? "1" : "0"}`,
13125
- `PREFLIGHT_REQUIRE_LINKED_ISSUE=${preflight.requireLinkedIssue ? "1" : "0"}`,
13126
- `PREFLIGHT_MERGE_METHOD="${preflight.mergeMethod}"`,
13127
- `PREFLIGHT_DELEGATE_TO_PR_REVIEWER=${preflight.delegateToPrReviewer ? "1" : "0"}`,
13128
12821
  "",
13129
12822
  "# \u2500\u2500 helpers \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
13130
12823
  "",
@@ -13157,8 +12850,6 @@ function buildCheckBlockedScript(tiers, scopeGate, runRatio, preflight) {
13157
12850
  "",
13158
12851
  runRatioHelper,
13159
12852
  "",
13160
- preflightHelper,
13161
- "",
13162
12853
  "# \u2500\u2500 subcommands \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500",
13163
12854
  "",
13164
12855
  "cmd_unblock() {",
@@ -13523,26 +13214,24 @@ function buildCheckBlockedScript(tiers, scopeGate, runRatio, preflight) {
13523
13214
  ' prs) shift; cmd_prs "$@" ;;',
13524
13215
  ' scope) shift; cmd_scope "$@" ;;',
13525
13216
  ' tick) shift; cmd_tick "$@" ;;',
13526
- ' preflight) shift; cmd_preflight "$@" ;;',
13527
13217
  " help|*)",
13528
- ' echo "Usage: check-blocked.sh <unblock|eligible|stale|orphaned|prs|scope|tick|preflight>"',
13218
+ ' echo "Usage: check-blocked.sh <unblock|eligible|stale|orphaned|prs|scope|tick>"',
13529
13219
  " exit 1",
13530
13220
  " ;;",
13531
13221
  "esac"
13532
13222
  ].join("\n");
13533
13223
  }
13534
- function buildCheckBlockedProcedure(tiers, scopeGate = resolveScopeGate(), runRatio = resolveRunRatio(), preflight = resolvePreflightPr()) {
13224
+ function buildCheckBlockedProcedure(tiers, scopeGate = resolveScopeGate(), runRatio = resolveRunRatio()) {
13535
13225
  return {
13536
13226
  name: "check-blocked.sh",
13537
- description: "Token-efficient issue triage script with subcommands: eligible, unblock, stale, orphaned, prs, scope, preflight, and (deprecated) tick. Sorts eligible issues by priority desc \u2192 funnel tier asc \u2192 issue number asc; the scope subcommand classifies a single issue against the scope-gate thresholds; the preflight subcommand emits one eligibility line per open PR that is mergeable, CI-green, approved (or auto-merge already enabled), and linked to an open issue. The tick subcommand is a deprecation no-op retained for one release (the orchestrator no longer maintains a dispatch/housekeeping run counter).",
13538
- content: buildCheckBlockedScript(tiers, scopeGate, runRatio, preflight)
13227
+ description: "Token-efficient issue triage script with subcommands: eligible, unblock, stale, orphaned, prs, scope, and (deprecated) tick. Sorts eligible issues by priority desc \u2192 funnel tier asc \u2192 issue number asc; the scope subcommand classifies a single issue against the scope-gate thresholds. The tick subcommand is a deprecation no-op retained for one release (the orchestrator no longer maintains a dispatch/housekeeping run counter).",
13228
+ content: buildCheckBlockedScript(tiers, scopeGate, runRatio)
13539
13229
  };
13540
13230
  }
13541
13231
  var checkBlockedProcedure = buildCheckBlockedProcedure(
13542
13232
  DEFAULT_AGENT_TIERS,
13543
13233
  resolveScopeGate(),
13544
- resolveRunRatio(),
13545
- resolvePreflightPr()
13234
+ resolveRunRatio()
13546
13235
  );
13547
13236
  function buildUnblockDependentsProcedure(unblockDependents = resolveUnblockDependents()) {
13548
13237
  return {
@@ -13556,7 +13245,7 @@ var unblockDependentsProcedure = buildUnblockDependentsProcedure(
13556
13245
  );
13557
13246
  var orchestratorSubAgent = {
13558
13247
  name: "orchestrator",
13559
- description: "End-to-end pipeline manager that runs one full cycle every invocation: pre-flight PR merge \u2192 triage \u2192 maintenance \u2192 queue scan \u2192 delegate the picked issue to the issue-worker \u2192 cleanup",
13248
+ description: "End-to-end pipeline manager that runs one full cycle every invocation: triage \u2192 maintenance \u2192 queue scan \u2192 delegate the picked issue to the issue-worker \u2192 cleanup",
13560
13249
  model: AGENT_MODEL.POWERFUL,
13561
13250
  maxTurns: 100,
13562
13251
  platforms: { cursor: { exclude: true } },
@@ -13564,12 +13253,13 @@ var orchestratorSubAgent = {
13564
13253
  "# Orchestrator Agent",
13565
13254
  "",
13566
13255
  "You are the pipeline orchestrator for the **{{repository.owner}}/{{repository.name}}** repository.",
13567
- "Each invocation runs **one full end-to-end cycle**. The cycle merges",
13568
- "approved PRs, triages blocked issues, runs maintenance scans, picks the",
13569
- "next ready issue, and **delegates implementation to the `issue-worker`**",
13570
- "sub-agent in scheduled mode. The orchestrator itself never implements",
13571
- "code, creates branches, or pushes commits \u2014 it routes work to other",
13572
- "agents.",
13256
+ "Each invocation runs **one full end-to-end cycle**. The cycle triages",
13257
+ "blocked issues, runs maintenance scans, picks the next ready issue, and",
13258
+ "**delegates implementation to the `issue-worker`** sub-agent in scheduled",
13259
+ "mode. The orchestrator itself never implements code, creates branches, or",
13260
+ "pushes commits \u2014 it routes work to other agents. Approved-PR merging is",
13261
+ "owned by the `pr-reviewer` sub-agent (invoked via `/review-pr` /",
13262
+ "`/review-prs`); the orchestrator does not run a merge sweep.",
13573
13263
  "",
13574
13264
  "Run the phases below in order on every invocation. There is no",
13575
13265
  "dispatch/housekeeping fork \u2014 every phase runs every time.",
@@ -13577,20 +13267,23 @@ var orchestratorSubAgent = {
13577
13267
  "Phase ordering (each runs exactly once per invocation):",
13578
13268
  "",
13579
13269
  "1. **Phase A \u2014 Startup.** Pull the default branch.",
13580
- "2. **Phase B0 \u2014 Pre-flight PR Merge.** Land every eligible approved /",
13581
- " CI-green PR before triage reads dependency state.",
13582
- "3. **Phase C \u2014 Triage / Unblock.** Flip dependents that have all",
13270
+ "2. **Phase C \u2014 Triage / Unblock.** Flip dependents that have all",
13583
13271
  " their dependencies closed back to `status:ready`.",
13584
- "4. **Phase D \u2014 Maintenance.** Stale-issue and orphaned-resource scan",
13272
+ "3. **Phase D \u2014 Maintenance.** Stale-issue and orphaned-resource scan",
13585
13273
  " plus a needs-attention summary.",
13586
- "5. **Phase E \u2014 Queue Scan.** Pick the highest-priority `PICK` line",
13274
+ "4. **Phase E \u2014 Queue Scan.** Pick the highest-priority `PICK` line",
13587
13275
  " and run the scope gate. If the result is `large`, flag and stop.",
13588
- "6. **Phase G \u2014 Delegate Implementation.** Hand the picked issue off",
13276
+ "5. **Phase G \u2014 Delegate Implementation.** Hand the picked issue off",
13589
13277
  " to the `issue-worker` sub-agent in scheduled mode. The worker",
13590
13278
  " handles claim \u2192 branch \u2192 implement \u2192 commit \u2192 PR autonomously.",
13591
- "7. **Phase F \u2014 Cleanup.** Return to the default branch and log the",
13279
+ "6. **Phase F \u2014 Cleanup.** Return to the default branch and log the",
13592
13280
  " run summary.",
13593
13281
  "",
13282
+ "Phase letters are stable identifiers \u2014 letters skipped in the list",
13283
+ "above were used by earlier revisions of this pipeline and the gap",
13284
+ "is left intentionally so existing references in commit history and",
13285
+ "docs remain unambiguous.",
13286
+ "",
13594
13287
  "---",
13595
13288
  "",
13596
13289
  ...PROJECT_CONTEXT_READER_SECTION,
@@ -13602,100 +13295,6 @@ var orchestratorSubAgent = {
13602
13295
  "git checkout main && git pull origin main",
13603
13296
  "```",
13604
13297
  "",
13605
- "## Phase B0: Pre-flight PR Merge",
13606
- "",
13607
- "Before any other phase reads dependency state, land every",
13608
- "eligible PR. The sweep is idempotent \u2014 `gh pr merge` on an",
13609
- "already-merged PR is a no-op \u2014 so re-running on back-to-back",
13610
- "invocations is safe.",
13611
- "",
13612
- "List eligibility:",
13613
- "",
13614
- "```bash",
13615
- ".claude/procedures/check-blocked.sh preflight",
13616
- "```",
13617
- "",
13618
- "Expect one line per open PR:",
13619
- "",
13620
- "```",
13621
- 'PREFLIGHT_MERGE PR #<n> issue:#<m> branch:<b> \u2014 "<title>"',
13622
- 'PREFLIGHT_SKIP PR #<n> \u2014 <reason> \u2014 "<title>"',
13623
- "NO_PREFLIGHT_PRS",
13624
- "```",
13625
- "",
13626
- "If the output is `NO_PREFLIGHT_PRS`, continue to Phase B / C.",
13627
- "",
13628
- "For each `PREFLIGHT_MERGE` line, either **delegate** to the",
13629
- "`pr-reviewer` sub-agent (default) or **merge inline** depending",
13630
- "on the rendered pre-flight config. See the **Pre-flight PR",
13631
- "merge** section in `CLAUDE.md` for the project's mode.",
13632
- "",
13633
- "**Delegate mode (default).** Invoke the `pr-reviewer` sub-agent",
13634
- "with a single-pass brief covering every `PREFLIGHT_MERGE` line:",
13635
- "",
13636
- "> Run your merge pipeline once across these PRs: <list of",
13637
- "> `#<n>` numbers>. Merge every eligible PR (linked issue still",
13638
- "> open, AC satisfied, CI green, approval present) and comment on",
13639
- "> any PR you skip. Return a one-line summary as the final line of",
13640
- "> your response, e.g. `Merged 2 (#123, #124), skipped 1 (#125 \u2014",
13641
- "> AC not met), 0 eligible left.` or `No eligible PRs.`",
13642
- "",
13643
- "If the sub-agent's final line is missing, malformed, or indicates",
13644
- "an error, **do not retry** \u2014 proceed to the next phase anyway.",
13645
- "The next orchestrator session will re-run pre-flight and pick up",
13646
- "anything left behind.",
13647
- "",
13648
- "**Inline mode.** For each `PREFLIGHT_MERGE PR #<n> issue:#<m>`",
13649
- "line, merge the PR with the configured method (default",
13650
- "`--squash`) and `--delete-branch`:",
13651
- "",
13652
- "```bash",
13653
- 'gh pr merge <n> --squash --delete-branch --subject "<conventional-commit-title>" --body "<extended-description>"',
13654
- "```",
13655
- "",
13656
- "After every successful merge \u2014 whether delegated or inline \u2014 run",
13657
- "the post-merge verification step to close the stale-dependency",
13658
- "loop:",
13659
- "",
13660
- "```bash",
13661
- "gh issue view <m> --json state --jq '.state'",
13662
- "```",
13663
- "",
13664
- "If the linked issue's state is still `OPEN`, close it explicitly",
13665
- "and flip its status label to `status:done`:",
13666
- "",
13667
- "```bash",
13668
- "gh issue close <m>",
13669
- 'gh issue edit <m> --remove-label "status:ready-for-review" --add-label "status:done"',
13670
- "```",
13671
- "",
13672
- "After applying `status:done` \u2014 whether the auto-close fired or",
13673
- "you force-closed above \u2014 run the targeted unblock sweep so any",
13674
- "dependents that were only waiting on issue `<m>` flip to",
13675
- "`status:ready` immediately:",
13676
- "",
13677
- "```bash",
13678
- ".claude/procedures/unblock-dependents.sh <m>",
13679
- "```",
13680
- "",
13681
- "The script emits one line per processed dependent",
13682
- "(`UNBLOCKED #<n>` / `STILL_BLOCKED #<n>` / `NO_DEPENDENTS #<m>`)",
13683
- "so the run summary records what transitioned. See the",
13684
- "**Agent-driven unblocking** section in `CLAUDE.md` for the full",
13685
- "contract.",
13686
- "",
13687
- "This step is the reason pre-flight exists: it prevents the",
13688
- "orchestrator from reading a merged-but-not-auto-closed issue as",
13689
- "still blocking on the next unblock sweep.",
13690
- "",
13691
- "Log the pre-flight outcome (number merged, PRs skipped with",
13692
- "reasons, and any issues force-closed) so the run summary records",
13693
- "what landed.",
13694
- "",
13695
- "Skip lines starting with `PREFLIGHT_SKIP` \u2014 those PRs failed one",
13696
- "or more eligibility checks. The `pr-reviewer` or a human",
13697
- "operator picks them up on the normal review path.",
13698
- "",
13699
13298
  "## Phase C: Triage \u2014 Unblock",
13700
13299
  "",
13701
13300
  "Check for blocked issues whose dependencies have resolved:",
@@ -13891,40 +13490,31 @@ var orchestratorSubAgent = {
13891
13490
  "git fetch --prune origin",
13892
13491
  "```",
13893
13492
  "",
13894
- "Log completion: phases executed, PRs merged in pre-flight, issues",
13895
- "unblocked, stale issues flagged, the next work item picked, and",
13896
- "the outcome of Phase G's delegation (worker success / failure /",
13897
- "skipped because the queue was empty).",
13493
+ "Log completion: phases executed, issues unblocked, stale issues",
13494
+ "flagged, the next work item picked, and the outcome of Phase G's",
13495
+ "delegation (worker success / failure / skipped because the queue",
13496
+ "was empty).",
13898
13497
  "",
13899
13498
  "---",
13900
13499
  "",
13901
13500
  "## Rules",
13902
13501
  "",
13903
- "1. **Never implement code.** You merge, triage, scan, and delegate \u2014 you do not code.",
13502
+ "1. **Never implement code.** You triage, scan, and delegate \u2014 you do not code.",
13904
13503
  "2. **Never claim issues.** Do not add `status:in-progress` or create branches for issues. Phase G's `issue-worker` delegation is the only path that flips an issue's claim labels.",
13905
- "3. **Always use check-blocked.sh.** All triage queries go through the shell script for token efficiency.",
13906
- "4. **Follow CLAUDE.md conventions** for all git and gh operations.",
13907
- "5. **Priority order:** critical > high > medium > low > trivial, then **funnel tier asc** (lower tier wins ties), then FIFO by issue number.",
13908
- "6. **Never dispatch a `large` issue.** Always run the scope check",
13504
+ "3. **Never merge PRs.** Approved-PR merging is owned by the `pr-reviewer` sub-agent (invoked via `/review-pr` / `/review-prs`). The orchestrator does not run a merge sweep, does not call `gh pr merge`, and does not enable auto-merge.",
13505
+ "4. **Always use check-blocked.sh.** All triage queries go through the shell script for token efficiency.",
13506
+ "5. **Follow CLAUDE.md conventions** for all git and gh operations.",
13507
+ "6. **Priority order:** critical > high > medium > low > trivial, then **funnel tier asc** (lower tier wins ties), then FIFO by issue number.",
13508
+ "7. **Never dispatch a `large` issue.** Always run the scope check",
13909
13509
  " on the top `PICK` line before reporting `NEXT_WORK_ITEM`. A",
13910
13510
  " `large` issue must be flagged with `status:needs-attention` and",
13911
13511
  " handed a decomposition proposal \u2014 never claimed, never branched,",
13912
13512
  " never delegated to the `issue-worker`.",
13913
- "7. **Always run pre-flight before reading dependency state.**",
13914
- " Phase B0 (Pre-flight PR Merge) runs on every invocation,",
13915
- " immediately after Phase A. Never skip Phase B0: without it, an",
13916
- " issue whose only remaining blocker is an approved-but-not-yet-",
13917
- " merged PR reads as blocked on every cycle and the pipeline",
13918
- " thrashes. See the **Pre-flight PR merge** section in",
13919
- " `CLAUDE.md` for eligibility rules and the delegate-vs-inline",
13920
- " modes.",
13921
13513
  "8. **Sweep dependents whenever you apply `status:done`.** Every",
13922
13514
  " `status:done` transition must be immediately followed by",
13923
13515
  " `.claude/procedures/unblock-dependents.sh <n>` so downstream",
13924
13516
  " `Depends on: #<n>` issues flip to `status:ready` without",
13925
- " waiting for the next cycle. Phase B0's post-merge",
13926
- " verification (and any inline-mode merge) already calls the",
13927
- " sweep; don't skip it. See the **Agent-driven unblocking**",
13517
+ " waiting for the next cycle. See the **Agent-driven unblocking**",
13928
13518
  " section in `CLAUDE.md` for the contract.",
13929
13519
  "9. **Always invoke `issue-worker` in scheduled mode.** Phase G's",
13930
13520
  " delegation prompt must contain the literal phrase",
@@ -13938,7 +13528,7 @@ var issueWorkerSubAgent = {
13938
13528
  name: "issue-worker",
13939
13529
  description: "Selects the next ready issue from the queue, claims it, and implements the change end-to-end following repository conventions",
13940
13530
  model: AGENT_MODEL.POWERFUL,
13941
- maxTurns: 100,
13531
+ maxTurns: 150,
13942
13532
  platforms: { cursor: { exclude: true } },
13943
13533
  prompt: [
13944
13534
  "# Issue Worker",
@@ -14167,6 +13757,35 @@ var issueWorkerSubAgent = {
14167
13757
  " `file` (and optional `line`). Track `comment_id` per item so you can",
14168
13758
  " report which items were handled and which (if any) failed.",
14169
13759
  "",
13760
+ " **Synthetic rebase items.** A `comment_id` of",
13761
+ " `synthetic:rebase-behind-main` is the reviewer's signal that the",
13762
+ " PR's head branch is BEHIND the default branch with merge conflicts",
13763
+ " that `gh pr update-branch` could not resolve. For this item only,",
13764
+ " the work is **not** an editorial change \u2014 it is a rebase plus",
13765
+ " conflict resolution. Run the following sequence:",
13766
+ "",
13767
+ " ```bash",
13768
+ " git fetch origin",
13769
+ " git pull --rebase origin {{repository.defaultBranch}}",
13770
+ " ```",
13771
+ "",
13772
+ " When the rebase produces conflicts, resolve each conflicting file",
13773
+ " in turn (read both sides, reconcile, stage), then run",
13774
+ " `git rebase --continue` until the rebase completes. Never run",
13775
+ " `git rebase --abort` on a synthetic-rebase item \u2014 aborting drops",
13776
+ " the work the reviewer delegated. If you cannot resolve a conflict",
13777
+ " (the change is editorial enough that it requires human judgement,",
13778
+ " or the conflict touches a generated file you should not hand-edit),",
13779
+ " record the item as `failed` with a clear reason, run",
13780
+ " `git rebase --abort`, and proceed to the report step. Do not",
13781
+ " force-push.",
13782
+ "",
13783
+ " When the rebase completes cleanly, treat the rebased commits",
13784
+ " themselves as the deliverable. Skip the conventional commit step",
13785
+ " in Phase 6 for this item \u2014 the rebase already produced the commit",
13786
+ " history. Push with a regular non-force `git push origin <branch>`",
13787
+ " and report the rebased head SHA as the worker's commit.",
13788
+ "",
14170
13789
  "4. When complete, prepare a short structured report (PR number, commit",
14171
13790
  " SHAs you will push, items handled by `comment_id`, items that failed",
14172
13791
  " to apply) \u2014 you will return this after Phase 6.",
@@ -14228,6 +13847,22 @@ var issueWorkerSubAgent = {
14228
13847
  "git push origin <branch-name>",
14229
13848
  "```",
14230
13849
  "",
13850
+ "**Synthetic-rebase items skip the `fix(review)` commit.** When the",
13851
+ "fix-list contained a `comment_id` of `synthetic:rebase-behind-main`",
13852
+ "and you completed the rebase in Phase 4, the rebased commit history",
13853
+ "is itself the deliverable \u2014 there is no per-item editorial change to",
13854
+ "wrap in a `fix(review)` commit. Skip `git add` / `git commit` /",
13855
+ "`git pull --rebase` for that item and push the rebased branch",
13856
+ "directly:",
13857
+ "",
13858
+ "```bash",
13859
+ "git push origin <branch-name>",
13860
+ "```",
13861
+ "",
13862
+ "If the fix-list mixed a synthetic-rebase item with editorial items,",
13863
+ "perform the editorial commit first (the rebase already preceded it",
13864
+ "in Phase 4), then push once at the end.",
13865
+ "",
14231
13866
  "**Normal mode:** Use conventional commit messages and push with `-u`",
14232
13867
  "to set up branch tracking:",
14233
13868
  "",
@@ -14361,8 +13996,8 @@ var ORCHESTRATOR_CONVENTIONS_PREAMBLE = [
14361
13996
  "",
14362
13997
  "When running the orchestrator agent (`.claude/agents/orchestrator.md`):",
14363
13998
  "",
14364
- "- The orchestrator runs **one full end-to-end cycle every invocation**: pre-flight PR merge \u2192 triage / unblock \u2192 maintenance \u2192 queue scan \u2192 delegate to `issue-worker` \u2192 cleanup",
14365
- "- The orchestrator **never** implements code, creates branches, or pushes commits \u2014 it merges PRs, triages issues, picks the next work item, and delegates implementation to other sub-agents",
13999
+ "- The orchestrator runs **one full end-to-end cycle every invocation**: triage / unblock \u2192 maintenance \u2192 queue scan \u2192 delegate to `issue-worker` \u2192 cleanup",
14000
+ "- The orchestrator **never** implements code, creates branches, pushes commits, **or merges PRs** \u2014 it triages issues, picks the next work item, and delegates implementation to other sub-agents. Approved-PR merging is owned by the `pr-reviewer` sub-agent (invoked via `/review-pr` / `/review-prs`).",
14366
14001
  "- All triage queries use `.claude/procedures/check-blocked.sh` for token efficiency",
14367
14002
  "- The queue scan reads only `priority:*` and `status:*` labels \u2014 type-routing (which typed agent handles a given `type:*` label) is the `issue-worker`'s concern, not the orchestrator's. The orchestrator's funnel-tier sort is a tie-breaker on `priority:*`, not a routing decision.",
14368
14003
  "- Priority order: critical > high > medium > low > trivial, then **funnel tier asc** (lower tier wins ties), then FIFO by issue number",
@@ -14375,7 +14010,7 @@ var ORCHESTRATOR_CONVENTIONS_PREAMBLE = [
14375
14010
  "",
14376
14011
  'Practical implication for scheduled-task wiring: the `worker-orchestrator` scheduled task\'s `SKILL.md` instructs the **scheduled-task session itself** to read `.claude/agents/orchestrator.md` and execute its phase pipeline in-session, then use the `Agent` tool to delegate the picked work item to `issue-worker` (depth-1). The scheduled task does **not** call `Agent(subagent_type: "orchestrator")` \u2014 that would put the orchestrator at depth-1 and break the chain.'
14377
14012
  ].join("\n");
14378
- function buildOrchestratorConventionsContent(tiers, scopeGate = resolveScopeGate(), runRatio = resolveRunRatio(), preflight = resolvePreflightPr(), scheduledTasks = resolveScheduledTasks(), unblockDependents = resolveUnblockDependents()) {
14013
+ function buildOrchestratorConventionsContent(tiers, scopeGate = resolveScopeGate(), runRatio = resolveRunRatio(), scheduledTasks = resolveScheduledTasks(), unblockDependents = resolveUnblockDependents()) {
14379
14014
  return [
14380
14015
  ORCHESTRATOR_CONVENTIONS_PREAMBLE,
14381
14016
  "",
@@ -14385,18 +14020,15 @@ function buildOrchestratorConventionsContent(tiers, scopeGate = resolveScopeGate
14385
14020
  "",
14386
14021
  renderRunRatioSection(runRatio),
14387
14022
  "",
14388
- renderPreflightPrSection(preflight),
14389
- "",
14390
14023
  renderScheduledTasksSection(scheduledTasks),
14391
14024
  "",
14392
14025
  renderUnblockDependentsSection(unblockDependents)
14393
14026
  ].join("\n");
14394
14027
  }
14395
- function resolveOrchestratorAssets(tierConfig, scopeGateConfig, runRatioConfig, preflightPrConfig, scheduledTasksConfig, unblockDependentsConfig) {
14028
+ function resolveOrchestratorAssets(tierConfig, scopeGateConfig, runRatioConfig, scheduledTasksConfig, unblockDependentsConfig) {
14396
14029
  const tiers = resolveAgentTiers(tierConfig);
14397
14030
  const scopeGate = resolveScopeGate(scopeGateConfig);
14398
14031
  const runRatio = resolveRunRatio(runRatioConfig);
14399
- const preflight = resolvePreflightPr(preflightPrConfig);
14400
14032
  const scheduledTasks = resolveScheduledTasks(scheduledTasksConfig);
14401
14033
  const unblockDependentsResolved = resolveUnblockDependents(
14402
14034
  unblockDependentsConfig
@@ -14405,23 +14037,16 @@ function resolveOrchestratorAssets(tierConfig, scopeGateConfig, runRatioConfig,
14405
14037
  tiers,
14406
14038
  scopeGate,
14407
14039
  runRatio,
14408
- preflight,
14409
14040
  scheduledTasks,
14410
14041
  unblockDependents: unblockDependentsResolved,
14411
14042
  conventionsContent: buildOrchestratorConventionsContent(
14412
14043
  tiers,
14413
14044
  scopeGate,
14414
14045
  runRatio,
14415
- preflight,
14416
14046
  scheduledTasks,
14417
14047
  unblockDependentsResolved
14418
14048
  ),
14419
- procedure: buildCheckBlockedProcedure(
14420
- tiers,
14421
- scopeGate,
14422
- runRatio,
14423
- preflight
14424
- ),
14049
+ procedure: buildCheckBlockedProcedure(tiers, scopeGate, runRatio),
14425
14050
  unblockDependentsProcedure: buildUnblockDependentsProcedure(
14426
14051
  unblockDependentsResolved
14427
14052
  )
@@ -14435,13 +14060,12 @@ var orchestratorBundle = {
14435
14060
  rules: [
14436
14061
  {
14437
14062
  name: "orchestrator-conventions",
14438
- description: "Guidelines for orchestrator agent behavior and pipeline management, including the funnel-tier dispatch sort, scope gate, pre-flight PR merge contract, and per-agent scheduled-task layout",
14063
+ description: "Guidelines for orchestrator agent behavior and pipeline management, including the funnel-tier dispatch sort, scope gate, and per-agent scheduled-task layout",
14439
14064
  scope: AGENT_RULE_SCOPE.ALWAYS,
14440
14065
  content: buildOrchestratorConventionsContent(
14441
14066
  DEFAULT_AGENT_TIERS,
14442
14067
  resolveScopeGate(),
14443
14068
  resolveRunRatio(),
14444
- resolvePreflightPr(),
14445
14069
  resolveScheduledTasks(),
14446
14070
  resolveUnblockDependents()
14447
14071
  ),
@@ -16178,6 +15802,162 @@ var prReviewerSubAgent = {
16178
15802
  "`feat(scope): description`). The body should bullet the changes and end",
16179
15803
  "with `Closes #<issue-number>`.",
16180
15804
  "",
15805
+ "##### Update the branch when `mergeStateStatus` is `BEHIND`",
15806
+ "",
15807
+ "After enabling auto-merge, re-read the PR's `mergeStateStatus` so a",
15808
+ "branch that fell behind the default branch lands on the next CI tick",
15809
+ "instead of sitting in the auto-merge queue indefinitely:",
15810
+ "",
15811
+ "```bash",
15812
+ "gh pr view <pr-number> --json mergeStateStatus --jq '.mergeStateStatus'",
15813
+ "```",
15814
+ "",
15815
+ "When the value is `BEHIND`, attempt to bring the head branch current with",
15816
+ "the default branch via `gh pr update-branch` (default merge strategy \u2014",
15817
+ "**never** `--rebase`, which would rewrite commits on a published branch):",
15818
+ "",
15819
+ "```bash",
15820
+ "gh pr update-branch <pr-number>",
15821
+ "```",
15822
+ "",
15823
+ "Branch on the outcome:",
15824
+ "",
15825
+ "- **Success** \u2014 record `Branch updated: yes` for the per-PR report and",
15826
+ " stop. Auto-merge will fire when required checks pass on the new head",
15827
+ " SHA. Do **not** poll for the merge here \u2014 Phase 5 owns polling.",
15828
+ "- **Failure for reasons other than a merge conflict** (permission",
15829
+ " denied, branch protection refusing the merge commit, transient",
15830
+ " network error) \u2014 record `Branch updated: failed (<reason>)`, post a",
15831
+ " short comment explaining the failure, and stop. Do not retry.",
15832
+ "- **Failure because the merge would conflict** \u2014 proceed to the",
15833
+ " conflict-resolution delegation flow below.",
15834
+ "",
15835
+ "When `mergeStateStatus` is **not** `BEHIND` (`CLEAN`, `BLOCKED`,",
15836
+ "`UNSTABLE`, `HAS_HOOKS`, `UNKNOWN`), record `Branch updated: not needed`",
15837
+ "and skip the rest of this sub-section. Only the `BEHIND` state triggers",
15838
+ "an `update-branch` attempt \u2014 every other state either has nothing to do",
15839
+ "or is already gated on a different signal that Phase 5 picks up.",
15840
+ "",
15841
+ "Never run `gh pr update-branch` on a PR whose review mode is",
15842
+ "`human-required`. Pushing main into a human-required PR expands the",
15843
+ "scope of the diff the human is reviewing without their consent. The",
15844
+ "`update-branch` step lives **only** under the `Mode auto-merge` branch",
15845
+ "of this phase \u2014 `human-required` skips straight to its hand-off block",
15846
+ "below.",
15847
+ "",
15848
+ "##### Conflict-resolution delegation (BEHIND + conflicts)",
15849
+ "",
15850
+ "When `gh pr update-branch <pr-number>` fails because the merge would",
15851
+ "produce conflicts, the reviewer **may** delegate conflict resolution to",
15852
+ "`issue-worker` via the existing feedback-mode delegation contract (the",
15853
+ "same path Phase 4's in-scope-fix delegation uses). The reviewer never",
15854
+ "hand-resolves conflicts itself \u2014 branch mutations always belong to",
15855
+ "`issue-worker`.",
15856
+ "",
15857
+ "Delegate **only when all** of the following hold. If any guard fails,",
15858
+ "fall through to the fallback at the end of this sub-section instead.",
15859
+ "",
15860
+ "1. **Review mode is `auto-merge`.** Never delegate conflict",
15861
+ " resolution on `human-required` PRs \u2014 pushing main resolutions into",
15862
+ " them expands the diff the human is reviewing. (This is the same",
15863
+ " reason the `update-branch` step itself is auto-merge-only.)",
15864
+ "2. **Delegation invocation guard permits the hand-off** \u2014 the PR",
15865
+ " carries the `origin:issue-worker` label, **or** the reviewer was",
15866
+ " invoked with `--allow-human-author`. The same guard used for the",
15867
+ " in-scope-fix delegation flow above applies here unchanged.",
15868
+ "3. **The `review:fixing` lease is currently free.** If",
15869
+ " `review:fixing` is already on the PR, another delegation is",
15870
+ " in-flight; skip conflict-resolution delegation, log the contention",
15871
+ " to the sticky summary, and fall through to the fallback.",
15872
+ "4. **No conflicting file is generated or projen-managed.** Run",
15873
+ " `gh pr view <pr-number> --json files --jq '.files[].path'` and",
15874
+ " inspect the conflicting paths reported by the failed",
15875
+ " `update-branch`. If **any** conflicting path matches one of the",
15876
+ " following globs, the conflict is unsafe to resolve mechanically",
15877
+ " and the reviewer must skip delegation:",
15878
+ " - `**/*.lock` and `pnpm-lock.yaml` / `yarn.lock` / `package-lock.json`",
15879
+ " - `**/.projen/**`",
15880
+ " - any file whose first 5 lines contain the marker",
15881
+ " `~~ Generated by projen` or `// Generated by`.",
15882
+ " The lockfile guard exists because lockfile conflicts often need a",
15883
+ " regen (`pnpm i`) rather than a textual merge; the projen / generated",
15884
+ " guard exists because those files are derived from `.projenrc.ts`",
15885
+ " and conflicts there should be resolved by re-running synth, not by",
15886
+ " merging the conflict markers.",
15887
+ "",
15888
+ "When every guard above passes, hand off to `issue-worker` with a",
15889
+ "**single synthetic fix-list item** that describes the rebase work:",
15890
+ "",
15891
+ "1. **Disable auto-merge** so a fast CI pass cannot land the PR",
15892
+ " mid-delegation (idempotent \u2014 safe no-op when auto-merge was never",
15893
+ " enabled). This mirrors step (b) of the in-scope-fix flow:",
15894
+ "",
15895
+ " ```bash",
15896
+ " gh pr merge <pr-number> --disable-auto",
15897
+ " ```",
15898
+ "",
15899
+ "2. **Acquire the `review:fixing` lease** by adding the label",
15900
+ " (mirrors step (c) of the in-scope-fix flow). On contention, abort",
15901
+ " the delegation and fall through to the fallback:",
15902
+ "",
15903
+ " ```bash",
15904
+ " gh pr edit <pr-number> --add-label 'review:fixing'",
15905
+ " ```",
15906
+ "",
15907
+ "3. **Post a fix-list comment** containing exactly one synthetic item",
15908
+ " describing the rebase. The `comment_id` is the literal string",
15909
+ " `synthetic:rebase-behind-main` so the worker recognises the",
15910
+ " special case and the next reviewer pass can identify the item:",
15911
+ "",
15912
+ " ```markdown",
15913
+ " ## Reviewer: fix list for @issue-worker",
15914
+ "",
15915
+ " - [ ] @reviewer \u2014 rebase onto origin/<default-branch> and resolve conflicts in: <space-separated list of conflicting files>",
15916
+ "",
15917
+ " ```json fix-list",
15918
+ " {",
15919
+ ' "pr": <pr-number>,',
15920
+ ' "branch": "<head-ref-name>",',
15921
+ ' "generated_at": "<ISO-8601 timestamp>",',
15922
+ ' "items": [',
15923
+ ' {"comment_id": "synthetic:rebase-behind-main", "author": "reviewer", "file": "<first-conflicting-file>", "instruction": "Branch is BEHIND default-branch with merge conflicts. Pull and rebase onto origin/<default-branch>, resolve conflicts in <conflicting-files>, push the resolved branch (no force-push), and report success."}',
15924
+ " ]",
15925
+ " }",
15926
+ " ```",
15927
+ " ```",
15928
+ "",
15929
+ "4. **Invoke `issue-worker` in feedback mode** with the same prompt",
15930
+ " shape used by the in-scope-fix flow: include the literal phrase",
15931
+ " `feedback mode: PR #<n>` plus the repository identifier",
15932
+ " (`{{repository.owner}}/{{repository.name}}`).",
15933
+ "",
15934
+ "5. **Process the worker's report** for the synthetic item using the",
15935
+ " same logic as step (f) of the in-scope-fix flow \u2014 `handled` reacts",
15936
+ " `rocket` on the fix-list comment; `failed` reacts `thinking_face`",
15937
+ " and posts a reply citing the worker's failure reason.",
15938
+ "",
15939
+ "6. **Release the `review:fixing` lease** with",
15940
+ " `gh pr edit <pr-number> --remove-label 'review:fixing'`. Always",
15941
+ " run this step.",
15942
+ "",
15943
+ "7. **Do not re-enable auto-merge in the same pass.** After delegation,",
15944
+ " exit and let a human re-invoke the reviewer. The next pass will",
15945
+ " re-evaluate `mergeStateStatus` against the rebased branch and",
15946
+ " re-enable auto-merge through the normal flow above.",
15947
+ "",
15948
+ "Record `Branch updated: delegated (PR #<n>)` for the per-PR report",
15949
+ "when delegation completes (regardless of the worker's outcome \u2014 the",
15950
+ "delegation itself is the action taken).",
15951
+ "",
15952
+ "**Fallback when delegation is not permitted or guards fail.** Post a",
15953
+ "short comment explaining why the branch could not be updated",
15954
+ "automatically and stop. Do not push commits, do not force, do not",
15955
+ "retry. Record `Branch updated: failed (conflicts; <short reason>)`.",
15956
+ "",
15957
+ "```bash",
15958
+ "gh pr comment <pr-number> --body 'Auto-merge queued; branch is BEHIND <default-branch> with conflicts. <short reason delegation was skipped \u2014 e.g. human-required mode, generated-file conflicts, or in-flight review:fixing lease>. A human (or the next reviewer pass after rebase) will need to resolve.'",
15959
+ "```",
15960
+ "",
16181
15961
  "#### Mode `human-required`",
16182
15962
  "",
16183
15963
  "Do **not** run `gh pr merge --auto`. Instead, hand the PR off to a",
@@ -16368,6 +16148,7 @@ var prReviewerSubAgent = {
16368
16148
  " - Nitpick: <items>",
16369
16149
  "",
16370
16150
  "Action taken: <enable-auto-merge | label-awaiting-human | commented-on-the-pr | none>",
16151
+ "Branch updated: <yes | not needed | failed (<reason>) | delegated (PR #<n>) | n/a>",
16371
16152
  "Branch state: <merged | open | closed>",
16372
16153
  "Issue state: <closed | open>",
16373
16154
  "```",
@@ -16433,7 +16214,23 @@ var prReviewerSubAgent = {
16433
16214
  " `review:awaiting-human` label is **not** present on the PR. Any",
16434
16215
  " AC-drift pushback, any failed-fix pushback, and any human-required",
16435
16216
  " hand-off all keep auto-merge disabled until the human resolves",
16436
- " the underlying state."
16217
+ " the underlying state.",
16218
+ "15. **Never run `gh pr update-branch` on a `human-required` PR.**",
16219
+ " Pushing main into a human-required PR expands the scope of the",
16220
+ " diff the human is reviewing without their consent. The",
16221
+ " `update-branch` step is gated to the `Mode auto-merge` branch of",
16222
+ " Phase 4 only. The same restriction applies to delegating",
16223
+ " conflict resolution to `issue-worker`: never delegate a rebase",
16224
+ " on a `human-required` PR.",
16225
+ "16. **Never delegate conflict resolution involving generated or",
16226
+ " projen-managed files.** When `gh pr update-branch` fails on a",
16227
+ " BEHIND PR with conflicts and any conflicting path is a lockfile,",
16228
+ " a `**/.projen/**` file, or a file marked",
16229
+ " `~~ Generated by projen` / `// Generated by`, the reviewer must",
16230
+ " skip the `issue-worker` delegation and fall back to the comment",
16231
+ " pathway. Mechanical merge of generated content is unsafe \u2014 those",
16232
+ " files are derived from `.projenrc.ts` and must be regenerated,",
16233
+ " not merged."
16437
16234
  ].join("\n")
16438
16235
  };
16439
16236
  var reviewPrSkill = {
@@ -28008,7 +27805,6 @@ var AgentConfig = class _AgentConfig extends import_projen8.Component {
28008
27805
  if (resolvedRunRatio.enabled) {
28009
27806
  this.project.gitignore.addPatterns(`/${resolvedRunRatio.stateFilePath}`);
28010
27807
  }
28011
- validatePreflightPrConfig(this.options.preflightPr);
28012
27808
  validateUnblockDependentsConfig(this.options.unblockDependents);
28013
27809
  const resolvedProgressFiles = validateProgressFilesConfig(
28014
27810
  this.options.progressFiles
@@ -28225,14 +28021,13 @@ ${section}`
28225
28021
  }
28226
28022
  }
28227
28023
  }
28228
- if (this.options.tiers || this.options.scopeGate || this.options.runRatio || this.options.preflightPr || this.options.scheduledTasks || this.options.unblockDependents) {
28024
+ if (this.options.tiers || this.options.scopeGate || this.options.runRatio || this.options.scheduledTasks || this.options.unblockDependents) {
28229
28025
  const orchestratorRule = ruleMap.get("orchestrator-conventions");
28230
28026
  if (orchestratorRule) {
28231
28027
  const { conventionsContent } = resolveOrchestratorAssets(
28232
28028
  this.options.tiers,
28233
28029
  this.options.scopeGate,
28234
28030
  this.options.runRatio,
28235
- this.options.preflightPr,
28236
28031
  this.options.scheduledTasks,
28237
28032
  this.options.unblockDependents
28238
28033
  );
@@ -28547,14 +28342,13 @@ ${hook}`
28547
28342
  procMap.set(proc.name, proc);
28548
28343
  }
28549
28344
  }
28550
- if (this.options.tiers || this.options.scopeGate || this.options.runRatio || this.options.preflightPr) {
28345
+ if (this.options.tiers || this.options.scopeGate || this.options.runRatio) {
28551
28346
  const existing = procMap.get("check-blocked.sh");
28552
28347
  if (existing) {
28553
28348
  const { procedure } = resolveOrchestratorAssets(
28554
28349
  this.options.tiers,
28555
28350
  this.options.scopeGate,
28556
- this.options.runRatio,
28557
- this.options.preflightPr
28351
+ this.options.runRatio
28558
28352
  );
28559
28353
  if (procedure.content !== existing.content) {
28560
28354
  procMap.set("check-blocked.sh", procedure);
@@ -28569,7 +28363,6 @@ ${hook}`
28569
28363
  void 0,
28570
28364
  void 0,
28571
28365
  void 0,
28572
- void 0,
28573
28366
  this.options.unblockDependents
28574
28367
  );
28575
28368
  if (unblockDependentsProcedure2.content !== existing.content) {
@@ -30997,7 +30790,7 @@ var DEFAULT_AUTO_APPROVE_LABEL = "auto-approve";
30997
30790
  var DEFAULT_HEAD_BRANCH = "github-actions/upgrade";
30998
30791
  var DEFAULT_APPROVAL_APP_ID_SECRET = "APPROVAL_APP_ID";
30999
30792
  var DEFAULT_APPROVAL_APP_PRIVATE_KEY_SECRET = "APPROVAL_APP_PRIVATE_KEY";
31000
- var DEFAULT_MERGE_METHOD2 = MERGE_METHODS.SQUASH;
30793
+ var DEFAULT_MERGE_METHOD = MERGE_METHODS.SQUASH;
31001
30794
  var PULL_REQUEST_TARGET_TYPES = [
31002
30795
  "labeled",
31003
30796
  "synchronize",
@@ -31011,7 +30804,7 @@ function addApproveMergeUpgradeWorkflow(project, options) {
31011
30804
  const allowedUsernames = options.allowedUsernames;
31012
30805
  const appIdSecret = options.approvalAppIdSecret ?? DEFAULT_APPROVAL_APP_ID_SECRET;
31013
30806
  const privateKeySecret = options.approvalAppPrivateKeySecret ?? DEFAULT_APPROVAL_APP_PRIVATE_KEY_SECRET;
31014
- const mergeMethod = options.mergeMethod ?? DEFAULT_MERGE_METHOD2;
30807
+ const mergeMethod = options.mergeMethod ?? DEFAULT_MERGE_METHOD;
31015
30808
  const workflow = project.github?.addWorkflow(workflowName);
31016
30809
  if (!workflow) return;
31017
30810
  workflow.on({
@@ -32884,7 +32677,6 @@ var TypeScriptConfig = class extends import_projen23.Component {
32884
32677
  DEFAULT_API_EXTRACTOR_REPORT_FOLDER,
32885
32678
  DEFAULT_AUDIT_REPORT_DIR,
32886
32679
  DEFAULT_DECOMPOSITION_TEMPLATE,
32887
- DEFAULT_DELEGATE_TO_PR_REVIEWER,
32888
32680
  DEFAULT_DISPATCH_MODEL,
32889
32681
  DEFAULT_DISPATCH_TO_HOUSEKEEPING_RATIO,
32890
32682
  DEFAULT_HOUSEKEEPING_MODEL,
@@ -32894,7 +32686,6 @@ var TypeScriptConfig = class extends import_projen23.Component {
32894
32686
  DEFAULT_ISSUE_TEMPLATES_ENABLED,
32895
32687
  DEFAULT_ISSUE_TEMPLATES_PATH,
32896
32688
  DEFAULT_ISSUE_TEMPLATES_REQUIRE_REFERENCE,
32897
- DEFAULT_MERGE_METHOD,
32898
32689
  DEFAULT_OFF_PEAK_CRON_EXAMPLE,
32899
32690
  DEFAULT_PARTIAL_UNBLOCK_COMMENT_TEMPLATE,
32900
32691
  DEFAULT_PRIORITY_LABELS,
@@ -32904,7 +32695,6 @@ var TypeScriptConfig = class extends import_projen23.Component {
32904
32695
  DEFAULT_PROGRESS_FILES_FORMAT,
32905
32696
  DEFAULT_PROGRESS_FILES_STALE_AFTER_HOURS,
32906
32697
  DEFAULT_PROGRESS_FILES_STATE_DIR,
32907
- DEFAULT_REQUIRE_LINKED_ISSUE,
32908
32698
  DEFAULT_REQUIRE_PRODUCT_CONTEXT,
32909
32699
  DEFAULT_SAMPLE_COMPILER_OPTIONS,
32910
32700
  DEFAULT_SCHEDULED_TASKS_ROOT,
@@ -32936,7 +32726,6 @@ var TypeScriptConfig = class extends import_projen23.Component {
32936
32726
  MINIMUM_RELEASE_AGE,
32937
32727
  MONOREPO_LAYOUT,
32938
32728
  MonorepoProject,
32939
- PREFLIGHT_MERGE_METHOD_VALUES,
32940
32729
  PROD_DEPLOY_NAME,
32941
32730
  PROGRESS_FILES_FORMAT_VALUES,
32942
32731
  PnpmWorkspace,
@@ -33040,8 +32829,6 @@ var TypeScriptConfig = class extends import_projen23.Component {
33040
32829
  renderIssueTemplatesRuleContent,
33041
32830
  renderIssueTemplatesStarterPage,
33042
32831
  renderMeetingTypesSection,
33043
- renderPreflightPrSection,
33044
- renderPreflightPrShellHelpers,
33045
32832
  renderPriorityRulesSection,
33046
32833
  renderProgressFileName,
33047
32834
  renderProgressFilePath,
@@ -33074,7 +32861,6 @@ var TypeScriptConfig = class extends import_projen23.Component {
33074
32861
  resolveModelAlias,
33075
32862
  resolveOrchestratorAssets,
33076
32863
  resolveOutdirFromPackageName,
33077
- resolvePreflightPr,
33078
32864
  resolveProgressFiles,
33079
32865
  resolveRunRatio,
33080
32866
  resolveScheduledTasks,
@@ -33095,7 +32881,6 @@ var TypeScriptConfig = class extends import_projen23.Component {
33095
32881
  validateAgentTierConfig,
33096
32882
  validateIssueTemplatesConfig,
33097
32883
  validateMonorepoLayout,
33098
- validatePreflightPrConfig,
33099
32884
  validateProgressFilesConfig,
33100
32885
  validateRunRatioConfig,
33101
32886
  validateScheduledTasksConfig,