orkestrator 2.39.2-beta → 2.39.4-beta

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/dist/client.js CHANGED
@@ -71,6 +71,14 @@ var init_agent_platforms = __esm(() => {
71
71
  ]);
72
72
  });
73
73
 
74
+ // ../protocol/src/agent-account-auto-switch.ts
75
+ var AUTO_SWITCH_RESET_TOLERANCE_MS, WEEK_MINUTES, FIVE_HOUR_MINUTES;
76
+ var init_agent_account_auto_switch = __esm(() => {
77
+ AUTO_SWITCH_RESET_TOLERANCE_MS = 60 * 60000;
78
+ WEEK_MINUTES = 7 * 24 * 60;
79
+ FIVE_HOUR_MINUTES = 5 * 60;
80
+ });
81
+
74
82
  // ../protocol/src/log-vocabulary/define.ts
75
83
  function defineLogAreas(areas) {
76
84
  return areas;
@@ -498,10 +506,25 @@ var init_desktop = __esm(() => {
498
506
  "dev-mode.ignored-packaged": "A packaged app was launched with ELECTRON_DEV=1 and ignored it; it loads its bundled renderer.",
499
507
  "instance.already-running": "Another instance holds this data directory; this one will quit.",
500
508
  "main-thread.stalled": {
501
- description: "A timer fired late, so windows, IPC and the stdout reader waited. `cpuMs` is the CPU time the process used in the window: near `lagMs` the main thread was busy, far below it the thread waited.",
509
+ description: "A timer fired late, so windows, IPC and the stdout reader waited. `cpuMs` is the CPU time the process used in the window: near `lagMs` the main thread was busy, far below it the thread waited. Time the host slept is not in `lagMs` (see `main-thread.host-suspended`); `hostSuspendedMs` says how much was taken out of a stall that remained.",
502
510
  essential: true,
503
511
  minLevel: "error",
504
- fields: { lagMs: "number", intervalMs: "number", cpuMs: "number" }
512
+ fields: {
513
+ lagMs: "number",
514
+ intervalMs: "number",
515
+ cpuMs: "number",
516
+ hostSuspendedMs: "number"
517
+ }
518
+ },
519
+ "main-thread.host-suspended": {
520
+ description: "A main-thread timer fired late because the machine slept (its CPU time counters stopped), not because the thread was held, so it is not a stall. `suspendedMs` is the sleep, `lagMs` the whole lateness and `suppressed` the suspensions not written since the last line.",
521
+ essential: true,
522
+ fields: {
523
+ suspendedMs: "number",
524
+ lagMs: "number",
525
+ intervalMs: "number",
526
+ suppressed: "number"
527
+ }
505
528
  },
506
529
  "process-memory": "Development only: working set per Electron process type, sampled on an interval.",
507
530
  "process-memory.failed": "Development only: one process memory sample could not be read.",
@@ -625,6 +648,7 @@ var init_environment = __esm(() => {
625
648
  events: {
626
649
  "cleanup.sessions-failed": "Session metadata cleanup failed during environment deletion; deletion continues.",
627
650
  "cleanup.branch-kept": "A deleted environment's local branch was kept, as it may hold unmerged work.",
651
+ "isolation.port-block-unavailable": "No host port block could be reserved for a local environment; its processes start without the port variables. Environment id and error only.",
628
652
  "project-seed.refused": "A project file the Environment Files setting matched was not copied into a new local worktree: a link, not a regular file, outside the project, too large, behind a link in the worktree, or over the match bounds. Path and reason only, never contents.",
629
653
  "rename.failed": "Naming an environment from its pending prompt failed for the first time.",
630
654
  "rename.still-failing": "That rename is still failing; written at the 2nd, 4th, 8th... failure.",
@@ -1040,13 +1064,14 @@ var init_runtime = __esm(() => {
1040
1064
  description: "This process's event loop. A stall of 10 seconds or more is written at error, so no level hides it.",
1041
1065
  events: {
1042
1066
  stalled: {
1043
- description: "A timer fired late, so every request in that window waited. In the backend the line also names what ran: `storageMs` and the `storage*` fields describe the slow SQLite calls in the window (`operation.slow` in `storage`), `storageCalls` and `storageCallMs` every SQLite call that ended in it, slow or not (`storageMainCallMs` and `storageLedgerCallMs` per database; `storageWrites` those that committed a change; `storageTopCaller` and `storageCallers` whose they were, by store, lease or table family), `commandsInFlight` and `commands` the commands running, `blockingCommand` one whose synchronous part overlapped it, and `jobsInWindow` and `jobs` the recurring jobs that ran around it. `cpuMs` is the CPU time the process used in the window: near `lagMs` its own thread was busy, far below it the thread waited.",
1067
+ description: "A timer fired late, so every request in that window waited. In the backend the line also names what ran: `storageMs` and the `storage*` fields describe the slow SQLite calls in the window (`operation.slow` in `storage`), `storageCalls` and `storageCallMs` every SQLite call that ended in it, slow or not (`storageMainCallMs` and `storageLedgerCallMs` per database; `storageWrites` those that committed a change; `storageTopCaller` and `storageCallers` whose they were, by store, lease or table family), `commandsInFlight` and `commands` the commands running, `blockingCommand` one whose synchronous part overlapped it, and `jobsInWindow` and `jobs` the recurring jobs that ran around it. `cpuMs` is the CPU time the process used in the window: near `lagMs` its own thread was busy, far below it the thread waited. Time the host slept is not in `lagMs` (see `host-suspended`); `hostSuspendedMs` says how much was taken out of a stall that remained.",
1044
1068
  essential: true,
1045
1069
  minLevel: "error",
1046
1070
  fields: {
1047
1071
  lagMs: "number",
1048
1072
  intervalMs: "number",
1049
1073
  cpuMs: "number",
1074
+ hostSuspendedMs: "number",
1050
1075
  storageMs: "number",
1051
1076
  storageDatabase: "label",
1052
1077
  storageOp: "label",
@@ -1065,6 +1090,16 @@ var init_runtime = __esm(() => {
1065
1090
  blockingCommandMs: "number",
1066
1091
  jobsInWindow: "number"
1067
1092
  }
1093
+ },
1094
+ "host-suspended": {
1095
+ description: "A timer fired late because the machine slept (its CPU time counters stopped), not because this process was held, so it is not a stall. `suspendedMs` is the sleep, `lagMs` the whole lateness and `suppressed` the suspensions not written since the last line.",
1096
+ essential: true,
1097
+ fields: {
1098
+ suspendedMs: "number",
1099
+ lagMs: "number",
1100
+ intervalMs: "number",
1101
+ suppressed: "number"
1102
+ }
1068
1103
  }
1069
1104
  }
1070
1105
  },
@@ -1140,6 +1175,7 @@ var init_terminal = __esm(() => {
1140
1175
  "session-key.environment-missing": "A local session key was built with no environment id.",
1141
1176
  "clipboard.image-failed": "An image pasted into a terminal could not be saved.",
1142
1177
  "clipboard.copy-failed": "Copying a terminal selection to the clipboard failed.",
1178
+ "clipboard.osc52-copy-failed": "A program's OSC 52 clipboard write could not be copied.",
1143
1179
  "clipboard.paste-failed": "A paste into a terminal failed; `target` says which path.",
1144
1180
  "clipboard.process-failed": "Reading or storing clipboard data for a paste failed.",
1145
1181
  "clipboard.image-save-failed": "An image from a paste event could not be written to disk.",
@@ -1252,6 +1288,7 @@ var init_tmux = __esm(() => {
1252
1288
  "cli.fast-mode-unsupported": "The claude CLI lacks --settings, so it launches without fast mode.",
1253
1289
  "cli.effort-unsupported": "The claude CLI lacks --effort, so it launches without it.",
1254
1290
  "interactive.snapshot-failed": "An interactive snapshot failed; expected while a pane is closing.",
1291
+ "interactive.clipboard-unavailable": "The clipboard client could not attach to an interactive pane, so the terminal runs without fullscreen copy.",
1255
1292
  "interactive.lease-lapsed": "No client renewed an interactive terminal for 45 seconds, so its capture loop stopped.",
1256
1293
  "signal.arm-failed": "The Claude state signal could not be armed.",
1257
1294
  "signal.degraded": "The Claude state signal missed a change or rang too often, so polling stays at one second until it is re-armed.",
@@ -1681,6 +1718,16 @@ var init_agent_accounts = __esm(() => {
1681
1718
  "limit-stop-notice.failed": "A session's usage-limit stop could not be reported.",
1682
1719
  "switch-notice.failed": "A notice about an automatic account switch failed; the switch stands. `audience` says whose.",
1683
1720
  "auto-switch.check-failed": "An automatic account check failed; the next nudge retries.",
1721
+ "auto-switch.moved": {
1722
+ description: "Automatic switching moved this machine to another account for `reason`. Names no account.",
1723
+ essential: true,
1724
+ fields: { provider: "label", reason: "label" }
1725
+ },
1726
+ "auto-switch.reset-disputed": {
1727
+ description: "Fresh readings of one login named weekly resets `spreadMinutes` apart, so they cannot all be its own; resets-sooner moves wait until they agree. Names no account.",
1728
+ essential: true,
1729
+ fields: { provider: "label", spreadMinutes: "number" }
1730
+ },
1684
1731
  "kept-note.failed": "Recording why a limit stop found no account to move to failed; the stop stands.",
1685
1732
  "container-sync.failed": "Handing a login or account to a container failed; `step` says which part.",
1686
1733
  "last-usage.save-failed": "The last plan usage reading could not be saved; the next save retries.",
@@ -2226,6 +2273,7 @@ var init_web_claude_tmux = __esm(() => {
2226
2273
  "queue.promote-failed": "After an interrupt, the next queued prompt did not become the draft.",
2227
2274
  "files.load-failed": "The file list for @mentions could not be loaded.",
2228
2275
  "clipboard.image-failed": "An image pasted into the interactive terminal could not be saved.",
2276
+ "clipboard.osc52-copy-failed": "A program's OSC 52 clipboard write could not be copied.",
2229
2277
  "terminal.resize-failed": "Resizing the interactive terminal's session failed.",
2230
2278
  "terminal.recover-failed": "The interactive terminal could not reattach to its session.",
2231
2279
  "terminal.lease-lapsed": "The backend had dropped the interactive terminal after missed renewals; a new one is attached (once the page is visible).",
@@ -2375,7 +2423,9 @@ var init_web_github = __esm(() => {
2375
2423
  "web.linear": {
2376
2424
  description: "The Linear tickets view.",
2377
2425
  events: {
2378
- "comment-draft.clear-failed": "A posted comment's draft could not be cleared."
2426
+ "comment-draft.clear-failed": "A posted comment's draft could not be cleared.",
2427
+ "connection.refresh-failed": "A background refresh could not verify the Linear connection; the shown board stays.",
2428
+ "issues.refresh-failed": "A background refresh could not read the Linear board; the shown tickets stay."
2379
2429
  }
2380
2430
  }
2381
2431
  });
@@ -2737,6 +2787,7 @@ var init_renderer_errors = () => {};
2737
2787
  // ../protocol/src/log-essential-labels.ts
2738
2788
  var ERROR_NAMES, ERROR_CODES, SYSCALLS, SIGNALS, PROVIDERS, BRIDGE_LISTENER_REASONS, CLAUDE_RESULT_SUBTYPES, CLAUDE_API_ERRORS, UUID = "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", SOURCE, STORAGE_DATABASES, STORAGE_OPERATIONS, TRANSACTION_MODES, STORAGE_TABLES;
2739
2789
  var init_log_essential_labels = __esm(() => {
2790
+ init_agent_account_auto_switch();
2740
2791
  init_log_vocabulary();
2741
2792
  init_renderer_errors();
2742
2793
  ERROR_NAMES = new Set([
@@ -12692,6 +12743,7 @@ var COORDINATOR_CONTROL_TOOL_NAMES = Object.freeze([
12692
12743
  "create_ticket",
12693
12744
  "create_ticket_label",
12694
12745
  "custom_fix_multi_review",
12746
+ "delete_ticket",
12695
12747
  "edit_worker_tab",
12696
12748
  "fork_worker",
12697
12749
  "get_build_pipeline",
@@ -13288,7 +13340,7 @@ import path5 from "path";
13288
13340
  // ../../apps/backend/package.json
13289
13341
  var package_default = {
13290
13342
  name: "@orkestrator/backend",
13291
- version: "2.39.2-beta",
13343
+ version: "2.39.4-beta",
13292
13344
  private: true,
13293
13345
  type: "module",
13294
13346
  exports: {
@@ -13643,6 +13695,24 @@ function wrapSystemInstructions(...parts) {
13643
13695
  ${content}
13644
13696
  ${SYSTEM_INSTRUCTIONS_FRAME_CLOSE}`;
13645
13697
  }
13698
+ var PRE_PROVISIONING_DISCOVERY_PROMPT_BODY = ` Usually one batched inventory read and one targeted read of task definitions are sufficient. Stop as soon as you know the required entrypoints and their prerequisites. Do not review implementation correctness, read application/test bodies merely to understand the change, inspect full commit history, or repeat repository-wide scans. Read source only when it defines a validation command or is essential to resolve a specific execution dependency. When parallel safety remains uncertain, mark the command exclusive and disclose the uncertainty instead of exhaustively tracing the codebase. Keep all discovery tool output bounded.
13699
+
13700
+ 1. Inspect the current Git status and changes. Commit only relevant safe changes using the repository's commit conventions and hooks. Never skip hooks, force a clean tree, delete unrelated files, push, merge, rebase, reset, switch branches, or create a worktree. Do not implement features or fix validation failures. If unrelated or sensitive changes prevent a clean worktree, report the limitation.
13701
+ 2. Discover validation requirements afresh from the CURRENT repository. First read the repository's agent instructions \u2014 AGENTS.md (and CLAUDE.md or an equivalent) at the root and in the directories that contain changed paths, plus any testing guide they point to \u2014 and follow what they say about which tests, checks, and builds a given kind of change needs. Then use directory structure, changed paths, CI workflows, manifests, task definitions, toolchain configuration, and relevant scripts. Do not assume a language, package manager, fixed list of files, or that the codebase resembles an earlier review. Follow repository-specific test entrypoints. Do not infer that a command covers another merely from its name.
13702
+ 3. Select validation proportionate to the change. Produce at most 32 commands covering the tests, static checks, and build that the changed paths can affect, plus any repository-specific requirements. Some suites are only needed in some situations: when the repository instructions scope a suite to particular paths, platforms, or kinds of change, include it only when this change meets that condition, and omit suites for areas the change cannot affect (for example a documentation-only change does not need an unrelated app's test suite). Include the full relevant coverage when the instructions require it for every change, or when a change's reach is uncertain (shared configuration, dependencies, lockfiles, toolchain, or code shared across areas). Summarize deliberately omitted suites and why in one concise limitation. Do not RUN validation, install dependencies, inspect validation output, or perform the code review. Command execution, timing, artifact paths, and exit codes belong to the backend. A skipped requirement needs an explicit limitation; an empty plan requires a limitation.
13703
+ 4. Each command has a unique short id, a non-interactive shell command, a workspace-relative cwd (usually "."), and dependsOn listing prerequisite ids EARLIER in the array. Split independent work so it can run concurrently. Inspect what each selected stage actually runs before adding another command: if the full test stage already runs the production build, omit a separate build command instead of repeating it. Shared build prerequisites run once; avoid overlapping aggregate commands that repeat the same validation. List each command once: never plan the same command twice, such as a cold and a warm run or a confirmation rerun, because every command already runs exactly once against the committed snapshot and the backend records any repeat as covered by its first copy. Preserve necessary build/test dependencies and setup/cleanup semantics. Prefer a repository-owned one-shot lifecycle task for service-backed checks. Never place a foreground server/supervisor before its dependent tests in a sequential shell command: readiness output does not mean that the starter exits. Only when no repository-owned lifecycle task exists may tightly coupled setup, test, and cleanup use a shell trap, with explicit readiness, bounded waits, supervision, and cleanup.
13704
+ 5. resources names directories or shared services the command writes or consumes exclusively (for example a generated output directory, test database, or simulator). Commands with the same resource serialize. Use workspace: prefixes for workspace directories and services (for example workspace:dist); use ["workspace:*"] when interference within this workspace is uncertain. Use host: prefixes for genuinely host-shared resources (for example host:tcp:1422 or host:ios-simulator), and ["host:*"] only when host-wide interference is uncertain. Legacy unprefixed resource names and ["*"] retain host-wide scope for compatibility: do not use them for workspace-only uncertainty. Empty resources means you have verified parallel safety. weight=2 marks internally parallel or memory-heavy work and weight=1 lighter work; weight only sizes a command until its real CPU use has been measured, and the host starts commands with partial capacity when busy. Do not guess a command is lightweight. timeoutMs must be between 1000 and 7200000 and appropriate to this project. Never request watch mode, interactive input, background servers without cleanup, or a detached process. If .orkestrator-test-scheduler.json is present, its cooperativeCommands are eligible alternatives, NOT a checklist. Select only the required coverage, using each selected command verbatim from cwd="." without shell wrappers or compound commands; those runners reserve their own host capacity. Select repository-owned commandProfiles entries verbatim from cwd="." as separate commands too; do not synthesize setup/test/cleanup wrappers around an available one-shot task. Only cooperativeCommands reserve their own capacity; ordinary profiled commands are admitted by the review worker. Follow exact commandProfiles resource and coverage declarations when present. A profile covers list declares commands whose validation is already included: choose the covering command once instead of also scheduling its covered alternatives. Waiting for capacity does not count against timeoutMs.
13705
+ 6. Read the final full HEAD commit SHA into headRef. Commands run against that HEAD. Generated or untracked files created during validation are recorded as environment state changes and do not block the review. Include actual missing prerequisites and coverage uncertainty in limitations. Do not include secrets or environment-variable values in the plan.
13706
+
13707
+ Keep discovery focused on what must run and how it can overlap safely. Narrate concise ordinary-prose progress; only the final response is the schema-constrained plan. Do not return command results or read old validation artifacts.
13708
+
13709
+ You are review preparation, not a pre-review implementation worker. Exemptions that let implementation workers defer full validation until review do not apply to this discovery task. Discover and schedule every applicable repository-required validation command, including required full suites, once against the committed branch; never defer them to a later review.
13710
+
13711
+ Give every command a scope. When the change adds or edits tests, or test files own the source files it changes, add one focused command that runs only those tests (the repository's focused test entrypoint given their exact paths), list it first, and set its scope to "changed"; every other command has scope "general". The backend starts "changed" commands first and reports their result on its own, so an unrelated failing suite cannot hide whether the change's own tests passed. The focused command never replaces a required suite. Keep it even when a general suite profile covers it or has an identical command: changed-scope evidence must run independently. When the change has no tests of its own, plan no "changed" command.`;
13712
+ var DISCOVERY_STEP_FIVE = `
13713
+ 5. resources names`;
13714
+ var REVIEW_VALIDATION_DISCOVERY_PROVISIONING_GUIDANCE = " Provision what the selected suites need as earlier commands they depend on, rather than letting a suite fail on a missing prerequisite: build artifacts a suite reads but does not build itself (for example a web bundle a browser test serves), a repository-owned task that creates a missing local environment file from its committed example, and repository-owned one-shot tasks that start throwaway services such as a test database. Never point a suite at a database or service another workspace may be using. In a local environment Orkestrator sets COMPOSE_PROJECT_NAME to a name unique to this workspace and reserves the host ports ORKESTRATOR_PORT_BASE through ORKESTRATOR_PORT_MAX for it; a service started for validation must use those ports or ports the repository derives from them, and a service that can only bind a fixed host port is the host-shared resource host:tcp:<port>. When a suite needs a secret, credential or external service that this workspace lacks and the repository offers no local substitute, name what is missing in a limitation.";
13715
+ var REVIEW_VALIDATION_DISCOVERY_PROMPT_BODY_AFTER_SIGNATURE = PRE_PROVISIONING_DISCOVERY_PROMPT_BODY.replace(DISCOVERY_STEP_FIVE, `${REVIEW_VALIDATION_DISCOVERY_PROVISIONING_GUIDANCE}${DISCOVERY_STEP_FIVE}`);
13646
13716
  var COORDINATOR_WORKER_NO_PR_INSTRUCTION = "Do not open a pull request, even if the prompt below asks you to: commit your work and report back. Orkestrator raises the pull request from a PR tab once the work has been reviewed.";
13647
13717
  var COORDINATOR_WORKER_VALIDATION_INSTRUCTION = "Run the focused checks your changes need and report them. When the prompt below says review follows, leave the required full test suite, typecheck, lint and build passes to review preparation unless it explicitly asks you to run them. When no review follows or the prompt does not say, follow the repository's validation requirements before handoff. Report any required full validation you did not run; do not assume a later review will run it.";
13648
13718
  var COORDINATOR_JOB_DELEGATION_INSTRUCTION = `This is a server-attested same-project worker delegation. Work only inside this disposable environment under its normal sandbox and approval policy, then report meaningful completion, failure, or blocking details through Orkestrator mail. ${COORDINATOR_WORKER_NO_PR_INSTRUCTION} ${COORDINATOR_WORKER_VALIDATION_INSTRUCTION}`;
@@ -15476,6 +15546,47 @@ var attentionCommands = [
15476
15546
  init_agent_platforms();
15477
15547
 
15478
15548
  // ../protocol/src/review-validation.ts
15549
+ var REVIEW_VALIDATION_SCOPES = ["changed", "general"];
15550
+ function validationPlanSchema(withScope) {
15551
+ return {
15552
+ type: "object",
15553
+ additionalProperties: false,
15554
+ required: ["headRef", "commands", "limitations"],
15555
+ properties: {
15556
+ headRef: { type: "string" },
15557
+ commands: {
15558
+ type: "array",
15559
+ items: {
15560
+ type: "object",
15561
+ additionalProperties: false,
15562
+ required: [
15563
+ "id",
15564
+ "command",
15565
+ "cwd",
15566
+ "dependsOn",
15567
+ "resources",
15568
+ "weight",
15569
+ "timeoutMs",
15570
+ ...withScope ? ["scope"] : []
15571
+ ],
15572
+ properties: {
15573
+ id: { type: "string" },
15574
+ command: { type: "string" },
15575
+ cwd: { type: "string" },
15576
+ dependsOn: { type: "array", items: { type: "string" } },
15577
+ resources: { type: "array", items: { type: "string" } },
15578
+ weight: { type: "integer", enum: [1, 2] },
15579
+ timeoutMs: { type: "integer" },
15580
+ ...withScope ? { scope: { type: "string", enum: [...REVIEW_VALIDATION_SCOPES] } } : {}
15581
+ }
15582
+ }
15583
+ },
15584
+ limitations: { type: "array", items: { type: "string" } }
15585
+ }
15586
+ };
15587
+ }
15588
+ var REVIEW_VALIDATION_PLAN_SCHEMA = validationPlanSchema(true);
15589
+ var REVIEW_VALIDATION_PLAN_V1_SCHEMA = validationPlanSchema(false);
15479
15590
  var REVIEW_VALIDATION_OUTPUT_MAX_BYTES = 512 * 1024;
15480
15591
  // ../protocol/src/review-workflow.ts
15481
15592
  var REVIEW_MAX_CONTEXT_BYTES = 512 * 1024;
@@ -21135,7 +21246,7 @@ var MAX_PIPELINE_ROUND_REVIEW_REPORT_BYTES = 1024 * 1024;
21135
21246
  var BUILD_STEP_KEYS = Object.freeze([
21136
21247
  "build",
21137
21248
  "review",
21138
- "address",
21249
+ "address-findings",
21139
21250
  "verify",
21140
21251
  "pr",
21141
21252
  "resolve-conflicts"
@@ -21185,9 +21296,9 @@ var BUILD_PHASES = new Set([
21185
21296
  "waiting-for-setup",
21186
21297
  "building",
21187
21298
  "reviewing",
21188
- "addressing",
21299
+ "addressing-findings",
21189
21300
  "verifying",
21190
- "fixing",
21301
+ "reworking",
21191
21302
  "creating-pr",
21192
21303
  "resolving-conflicts",
21193
21304
  "paused",
@@ -21199,9 +21310,9 @@ var ENVIRONMENT_TYPES = new Set(["containerized", "local"]);
21199
21310
  var SESSION_PHASES = new Set([
21200
21311
  "build",
21201
21312
  "review",
21202
- "address",
21313
+ "address-findings",
21203
21314
  "verify",
21204
- "fix",
21315
+ "rework",
21205
21316
  "pr",
21206
21317
  "resolve-conflicts"
21207
21318
  ]);
@@ -21246,7 +21357,14 @@ var REVIEW_LENS_INPUT = {
21246
21357
  required: ["label", "instruction"],
21247
21358
  additionalProperties: false
21248
21359
  };
21249
- var PUBLIC_BUILD_STEPS = BUILD_STEP_KEYS;
21360
+ var PUBLIC_BUILD_STEPS = Object.freeze([
21361
+ "build",
21362
+ "review",
21363
+ "address",
21364
+ "verify",
21365
+ "pr",
21366
+ "resolve-conflicts"
21367
+ ]);
21250
21368
  var instructions = {
21251
21369
  type: "string",
21252
21370
  maxLength: MAX_BUILD_STEP_INSTRUCTIONS_BYTES,
@@ -23775,13 +23893,13 @@ var BUILD_PIPELINE_TEMPLATE_ROUNDS = 3;
23775
23893
  var BUILD_PIPELINE_TEMPLATE_STAGES = Object.freeze({
23776
23894
  setup: "setup",
23777
23895
  build: "build",
23778
- fix: "fix",
23896
+ fix: "rework",
23779
23897
  prepare: "preparation",
23780
23898
  package: "validation",
23781
23899
  review: "review",
23782
23900
  consolidate: "consolidation",
23783
23901
  "has-issues": "after-review",
23784
- address: "address",
23902
+ address: "address-findings",
23785
23903
  verify: "verify",
23786
23904
  criteria: "verify",
23787
23905
  verified: "after-verify",
@@ -23978,7 +24096,7 @@ function buildPipelineBuiltInTemplate() {
23978
24096
  }
23979
24097
  ],
23980
24098
  outputs: [
23981
- { name: "plan", type: "validation-plan@1" },
24099
+ { name: "plan", type: "validation-plan@2" },
23982
24100
  { name: "code", type: "workspace@1" }
23983
24101
  ]
23984
24102
  },
@@ -23989,7 +24107,7 @@ function buildPipelineBuiltInTemplate() {
23989
24107
  description: "The environment runs the plan's commands once and seals one immutable review package; Review, Address and Verify re-verify its hash.",
23990
24108
  action: "run-validation-and-seal",
23991
24109
  inputs: [
23992
- { name: "plan", type: "validation-plan@1" },
24110
+ { name: "plan", type: "validation-plan@2" },
23993
24111
  { name: "code", type: "workspace@1" }
23994
24112
  ],
23995
24113
  outputs: [{ name: "package", type: "review-package@2" }]
@@ -24384,7 +24502,7 @@ function roundNodes(round, allowance) {
24384
24502
  prompt: { builtIn: "review-package-preparation" },
24385
24503
  inputs: [{ name: "code", type: "workspace@1" }],
24386
24504
  outputs: [
24387
- { name: "plan", type: "validation-plan@1" },
24505
+ { name: "plan", type: "validation-plan@2" },
24388
24506
  { name: "code", type: "workspace@1" }
24389
24507
  ]
24390
24508
  },
@@ -24394,7 +24512,7 @@ function roundNodes(round, allowance) {
24394
24512
  label: `Round ${round} \xB7 Seal package`,
24395
24513
  action: "run-validation-and-seal",
24396
24514
  inputs: [
24397
- { name: "plan", type: "validation-plan@1" },
24515
+ { name: "plan", type: "validation-plan@2" },
24398
24516
  { name: "code", type: "workspace@1" }
24399
24517
  ],
24400
24518
  outputs: [{ name: "package", type: "review-package@2" }]
@@ -24618,7 +24736,7 @@ var PHASES = new Set([
24618
24736
  "reviewing",
24619
24737
  "consolidating",
24620
24738
  "ready",
24621
- "fixing",
24739
+ "addressing-findings",
24622
24740
  "interactive",
24623
24741
  "paused",
24624
24742
  "completed",
@@ -24641,7 +24759,7 @@ var MULTI_REVIEW_TEMPLATE_STAGES = Object.freeze({
24641
24759
  review: "reviewer",
24642
24760
  consolidate: "consolidate",
24643
24761
  "has-findings": "after-consolidation",
24644
- fix: "fix",
24762
+ fix: "address-findings",
24645
24763
  "fix-complete": "after-fix",
24646
24764
  "describe-pr": "pr",
24647
24765
  pr: "pr"
@@ -24753,7 +24871,7 @@ function multiReviewBuiltInTemplate() {
24753
24871
  prompt: { builtIn: "review-package-preparation" },
24754
24872
  inputs: [{ name: "code", type: "workspace@1" }],
24755
24873
  outputs: [
24756
- { name: "plan", type: "validation-plan@1" },
24874
+ { name: "plan", type: "validation-plan@2" },
24757
24875
  { name: "code", type: "workspace@1" }
24758
24876
  ]
24759
24877
  },
@@ -24764,7 +24882,7 @@ function multiReviewBuiltInTemplate() {
24764
24882
  description: "The environment runs the plan's commands once, then seals one immutable, hash-verified review package every reviewer shares.",
24765
24883
  action: "run-validation-and-seal",
24766
24884
  inputs: [
24767
- { name: "plan", type: "validation-plan@1" },
24885
+ { name: "plan", type: "validation-plan@2" },
24768
24886
  { name: "code", type: "workspace@1" }
24769
24887
  ],
24770
24888
  outputs: [{ name: "package", type: "review-package@2" }]