@bridge_gpt/mcp-server 0.2.75 → 0.2.77

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.
Files changed (94) hide show
  1. package/README.md +8 -6
  2. package/build/agents.generated.js +5 -5
  3. package/build/cli-dispatch.js +333 -0
  4. package/build/codex-auto-recovery.js +25 -7
  5. package/build/commands.generated.js +8 -8
  6. package/build/conductor/bridge-api-client.js +193 -13
  7. package/build/conductor/declare-blocked.js +146 -7
  8. package/build/conductor/driver-pass.js +8 -0
  9. package/build/conductor/driver-register.js +8 -2
  10. package/build/conductor/epic-implementer-cli.js +15 -10
  11. package/build/conductor/epic-server-journal.js +52 -22
  12. package/build/conductor/epic-server-recipe.js +15 -5
  13. package/build/conductor/epic-server-runtime.js +163 -45
  14. package/build/conductor/epic-server.js +13 -6
  15. package/build/conductor/install-doctor.js +30 -2
  16. package/build/conductor/launch-plan.js +28 -7
  17. package/build/conductor/local-merge.js +55 -13
  18. package/build/conductor/pr-ci-producer.js +12 -3
  19. package/build/conductor/readiness-prerequisites.js +89 -2
  20. package/build/conductor/readiness-sections.js +46 -13
  21. package/build/conductor/readiness.js +3 -40
  22. package/build/conductor/recovery-cli.js +14 -12
  23. package/build/conductor/repository-workflow-remedy.js +147 -7
  24. package/build/conductor/ui-readiness.js +224 -0
  25. package/build/conductor/wait-run-attention.js +9 -4
  26. package/build/conductor/wait-run-cli.js +9 -2
  27. package/build/docs.generated.js +67 -4
  28. package/build/doctor.js +97 -1
  29. package/build/drive-epic.js +625 -33
  30. package/build/engine-paths.js +10 -0
  31. package/build/epic-coherence-input-cli.js +105 -10
  32. package/build/epic-coherence-input.js +877 -4
  33. package/build/epic-coherence-input.test-fixtures.js +117 -0
  34. package/build/epic-implementer-bin.js +947 -120
  35. package/build/epic-implementer-env.js +2 -2
  36. package/build/epic-launch-context.js +8 -1
  37. package/build/epic-shared/cut-protocol.js +55 -3
  38. package/build/executor/completion-contract.js +14 -1
  39. package/build/executor/failure-reason-codes.js +2 -0
  40. package/build/executor/guarded-fast-forward-push.js +25 -2
  41. package/build/executor/integration-job.js +56 -2
  42. package/build/executor/job-runner.js +87 -28
  43. package/build/executor/likely-tests.js +78 -6
  44. package/build/executor/merge-job.js +45 -1
  45. package/build/executor/permissions.js +187 -2
  46. package/build/executor/provider-checks.js +101 -5
  47. package/build/executor/rebase-finalization.js +29 -27
  48. package/build/executor/reconcile-overlap-job.js +70 -17
  49. package/build/executor/rename-aside.js +265 -0
  50. package/build/executor/required-work-ledger.js +89 -6
  51. package/build/executor/resume-pre-spawn.js +32 -8
  52. package/build/executor/runner.js +26 -4
  53. package/build/executor/types.js +121 -0
  54. package/build/executor/worktree.js +39 -2
  55. package/build/index.js +2500 -495
  56. package/build/init.js +16 -0
  57. package/build/install-bridge-conductor-answers.js +4 -0
  58. package/build/install-bridge-conductor-apply.js +10 -0
  59. package/build/install-bridge-conductor-assessment.js +84 -0
  60. package/build/install-bridge-conductor-contracts.js +9 -1
  61. package/build/install-bridge-conductor-setup.js +103 -3
  62. package/build/install-bridge-conductor.js +440 -812
  63. package/build/install-bridge.js +4 -11
  64. package/build/language-catalog.generated.js +2649 -0
  65. package/build/mcp-host-config.js +54 -37
  66. package/build/phase-context-git-probe.js +16 -0
  67. package/build/pipelines.generated.js +47 -19
  68. package/build/plan-execution-ledger.js +35 -0
  69. package/build/plan-generation.js +34 -0
  70. package/build/plane/build-freshness.js +6 -0
  71. package/build/plane/cli.js +12 -5
  72. package/build/plane/plane-freshness.js +43 -26
  73. package/build/printed-remedy-commands.js +17 -0
  74. package/build/readiness-prerequisites.generated.js +28 -0
  75. package/build/readme.generated.js +1 -1
  76. package/build/run-unit-tests-launcher.js +3 -1
  77. package/build/secret-redaction.js +3 -0
  78. package/build/server.js +7946 -0
  79. package/build/setup-epic.js +41 -8
  80. package/build/start-tickets-prereqs.js +3 -6
  81. package/build/test-support/console-guard.js +30 -0
  82. package/build/test-support/create-preview-world.js +232 -0
  83. package/build/test-support/module-imports.js +155 -0
  84. package/build/test-support/server-client.js +96 -0
  85. package/build/test-support/stdio-server.js +146 -0
  86. package/build/ticket-delivery.js +65 -0
  87. package/build/v2-readiness-requirements.js +39 -5
  88. package/build/version.generated.js +3 -3
  89. package/build/worktree-core.js +51 -7
  90. package/docs/EPIC-IMPLEMENTER.md +150 -2
  91. package/docs/epic-implementer/getting-started.md +5 -1
  92. package/package.json +3 -3
  93. package/pipelines/implement-ticket.json +2 -2
  94. package/pipelines/learn-repository.json +19 -1
@@ -222,6 +222,31 @@ export const ESCALATION_CATEGORIES = [
222
222
  "prerequisite_not_built",
223
223
  "other",
224
224
  ];
225
+ /**
226
+ * BAPI-1712: the observed failure behind an outside escalation category. Optional
227
+ * metadata on an escalated record. The server, not this client, decides whether it
228
+ * is well formed and whether it fits the category: only a well-formed observation
229
+ * whose `observed_head_sha` matches the current head lets the server report the
230
+ * blocker `external` / `report_and_end`. Bridge cannot prove a host-local failure
231
+ * happened, so such an end carries provenance `worker_attested`.
232
+ *
233
+ * The client never validates, coerces, or strips it. A missing or malformed value
234
+ * never rejects a record; the server stores it as absent. Mirrors the server's
235
+ * blocker-observation shape; both sides must agree.
236
+ */
237
+ export const BLOCKER_OBSERVATION_OPERATION_KINDS = [
238
+ "bridge_tool",
239
+ "provider_api",
240
+ "local_command",
241
+ "network",
242
+ ];
243
+ export const BLOCKER_OBSERVATION_FAILURE_KINDS = [
244
+ "denied",
245
+ "not_found",
246
+ "unavailable",
247
+ "timeout",
248
+ "conflict",
249
+ ];
225
250
  /**
226
251
  * Which phase must settle each class of step.
227
252
  *
@@ -599,6 +624,8 @@ function validateRecordShape(record, metadata, phase) {
599
624
  // BAPI-1608: `escalationCategory` is deliberately not checked here. It is
600
625
  // optional advisory metadata, so an unknown string or a non-string value never
601
626
  // rejects an otherwise valid record.
627
+ // BAPI-1712: `blockerObservation` / `blocker_observation` are likewise never
628
+ // checked. The server normalizes them; a malformed value is stored as absent.
602
629
  // BAPI-1552: mirrors the server, which refuses this cause on a non-escalated
603
630
  // record before any generic disposition check can hide the closed code.
604
631
  const handoffValue = record.handoff;
@@ -896,6 +923,14 @@ export function validatePhaseResult(result, metadata, phase, accepted) {
896
923
  if (!result || typeof result !== "object") {
897
924
  throw new PlanLedgerError("phase result is missing");
898
925
  }
926
+ // BAPI-1769: name the right key when a caller copied the on-disk artifact's
927
+ // `artifact_version` into the envelope. It is never accepted as an alias.
928
+ if (result.version === undefined &&
929
+ Object.prototype.hasOwnProperty.call(result, "artifact_version")) {
930
+ throw new PlanLedgerError("phase result envelope has 'artifact_version' but no 'version'; the envelope key is " +
931
+ `'version' (expected ${PLAN_METADATA_VERSION}). 'artifact_version' belongs to the ` +
932
+ "on-disk phase-result artifact.");
933
+ }
899
934
  if (result.version !== PLAN_METADATA_VERSION) {
900
935
  throw new PlanLedgerError(`unsupported phase result version ${String(result.version)}; expected ${PLAN_METADATA_VERSION}`);
901
936
  }
@@ -25,6 +25,12 @@
25
25
  * planned child runs one at a time, in the selected order, and no node carries
26
26
  * `touched_files` (an omitted field is the server's opt-out; `[]` would claim
27
27
  * "touches nothing", which is not known).
28
+ *
29
+ * BAPI-1782: key-order generation stays available, so a preview can still show
30
+ * the fallback plan as evidence. But a generated plan that runs more than one
31
+ * planned child in key order cannot pass launch admission
32
+ * ({@link needsPlanOrder}): ticket-key order can start a child before the work it
33
+ * needs, and a live run's plan cannot be changed.
28
34
  */
29
35
  import { EPIC_KEY_PATTERN } from "./drive-epic-key.js";
30
36
  /** The generation policy's version. Bump it when any rule here changes. */
@@ -78,6 +84,34 @@ export const RECOGNIZED_STATUS_CATEGORIES = ["new", "indeterminate", "done"];
78
84
  /** Ticket keys in stored text. */
79
85
  const TICKET_KEY_IN_TEXT = /\b[A-Z][A-Z0-9_]{0,19}-[0-9]+\b/g;
80
86
  // ---------------------------------------------------------------------------
87
+ // Launch admission (BAPI-1782)
88
+ // ---------------------------------------------------------------------------
89
+ /** The refusal reason id for a generated plan whose order cannot be trusted. */
90
+ export const PLAN_ORDER_NEEDED_REASON_ID = "plan_order_needed";
91
+ /** The remedy every `plan_order_needed` refusal carries. Names each way out. */
92
+ export const PLAN_ORDER_NEEDED_REMEDY = "Add a `## Ordered child manifest` section to the epic, one line per child: " +
93
+ "`{KEY} depends_on: {KEY, KEY}` or `{KEY} depends_on: none`; or pass `--plan-file` with a plan " +
94
+ "whose dependencies come from the tickets. `/drive-epic-run` writes that plan for you. " +
95
+ "Nothing was created or started.";
96
+ /**
97
+ * The one launch-admission rule for a GENERATED plan, shared by the preview and
98
+ * every real-create path so the two can never disagree.
99
+ *
100
+ * True when more than one node is `planned` and the order did not come from the
101
+ * epic's manifest: the summary says `key_order`, or the summary is null. Callers
102
+ * apply it ONLY to generated plans. A null summary here means a found generated
103
+ * plan whose stored provenance failed the fixed-vocabulary check, so its order
104
+ * cannot be shown to come from a manifest; it is not a judgement on authored
105
+ * plans. `serialized_reason` is deliberately ignored: `unknown_touched_files`
106
+ * can accompany a key-order fallback.
107
+ */
108
+ export function needsPlanOrder(nodes, summary) {
109
+ const planned = nodes.filter((node) => node.status === "planned").length;
110
+ if (planned <= 1)
111
+ return false;
112
+ return summary === null || summary.order_source === "key_order";
113
+ }
114
+ // ---------------------------------------------------------------------------
81
115
  // Key ordering
82
116
  // ---------------------------------------------------------------------------
83
117
  /**
@@ -13,6 +13,7 @@
13
13
  * can be older than a rebuild that overwrote files in place.
14
14
  */
15
15
  import path from "path";
16
+ import { isEngineTestFile } from "../engine-paths.js";
16
17
  import { planeCheckFinding, planeCheckPassed, planeCheckSkipped } from "./types.js";
17
18
  /** Remediation text embedded in every blocking build diagnostic. */
18
19
  export const PLANE_BUILD_REMEDIATION = "cd mcp_server && npm run build";
@@ -22,6 +23,9 @@ export const PLANE_BUILD_REMEDIATION = "cd mcp_server && npm run build";
22
23
  * `*.generated.ts` files are written by the bundle scripts during the SAME
23
24
  * `npm run build` that produces `build/index.js`, so they are always newer than
24
25
  * a tsc run that preceded them and would stale every build immediately.
26
+ *
27
+ * BAPI-1782 — `*.test.ts` files (the shared {@link isEngineTestFile} rule) are
28
+ * not executor runtime code, so a newer test alone never stales the build.
25
29
  */
26
30
  const EXCLUDED_DIR_NAMES = new Set(["node_modules", "build"]);
27
31
  function isRelevantSourceFile(name) {
@@ -29,6 +33,8 @@ function isRelevantSourceFile(name) {
29
33
  return false;
30
34
  if (name.endsWith(".generated.ts"))
31
35
  return false;
36
+ if (isEngineTestFile(name))
37
+ return false;
32
38
  return true;
33
39
  }
34
40
  /** BAPI-1595 — fixed detail for the executor-build check skipped outside a Bridge checkout. */
@@ -763,12 +763,19 @@ export function formatPlaneLaunchFailure(launch) {
763
763
  return lines;
764
764
  }
765
765
  /** Claim the manifest, print the banner, then run the detached supervisor. */
766
- async function launchPlane(preflight, executors, planeId, sinks, env, launchOptions = {}) {
766
+ export async function launchPlane(preflight, executors, planeId, sinks, env, launchOptions = {}) {
767
767
  const fs = createPlaneFsDeps();
768
768
  const clock = createPlaneClock();
769
769
  const snapshotDeps = createCodeSnapshotDeps();
770
770
  let context = preflight.context;
771
771
  const nodeExecutable = resolveNodeExecutable();
772
+ const steps = {
773
+ prepareCodeSnapshot,
774
+ checkAlembicHead,
775
+ checkSchemaCompatibility,
776
+ claimPlaneManifest,
777
+ ...launchOptions.steps,
778
+ };
772
779
  // BAPI-1362 — pin the code the Python members will run BEFORE anything is
773
780
  // claimed or spawned. Preflight has already passed (checkout prerequisites and
774
781
  // the existing-plane ownership check both run there, read-only), so this is the
@@ -776,7 +783,7 @@ async function launchPlane(preflight, executors, planeId, sinks, env, launchOpti
776
783
  // exactly as it found it apart from a snapshot directory a later bring-up
777
784
  // reuses. A caller that already carries a snapshot (a test seam) is trusted.
778
785
  if (context.snapshot === undefined) {
779
- const prepared = await prepareCodeSnapshot(context.repoRoot, snapshotDeps);
786
+ const prepared = await steps.prepareCodeSnapshot(context.repoRoot, snapshotDeps);
780
787
  if (!prepared.ok) {
781
788
  return {
782
789
  ok: false,
@@ -788,7 +795,7 @@ async function launchPlane(preflight, executors, planeId, sinks, env, launchOpti
788
795
  // `alembic.ini` and migrations and the operator's virtualenv. Preflight ran
789
796
  // the same check against the checkout; the two agree at launch, and only
790
797
  // this one survives the checkout moving later.
791
- const alembic = await checkAlembicHead(context.repoRoot, {
798
+ const alembic = await steps.checkAlembicHead(context.repoRoot, {
792
799
  execFile: createPlaneExecFile(),
793
800
  fileExists: async (filePath) => planeFileExistsSync(filePath),
794
801
  platform: process.platform,
@@ -803,7 +810,7 @@ async function launchPlane(preflight, executors, planeId, sinks, env, launchOpti
803
810
  // interpreter the Python members will use. Still before any claim or spawn:
804
811
  // only a proven-missing object refuses; anything unverifiable warns.
805
812
  sinks.stdout("Verifying local launch-critical schema…");
806
- const schema = await checkSchemaCompatibility(resolvePythonExecutable(env, operatorVenvLookup(context.repoRoot)), prepared.snapshot.path, { execFile: createPlaneExecFile() });
813
+ const schema = await steps.checkSchemaCompatibility(resolvePythonExecutable(env, operatorVenvLookup(context.repoRoot)), prepared.snapshot.path, { execFile: createPlaneExecFile() });
807
814
  if (schema.diagnostic?.severity === "blocking") {
808
815
  return { ok: false, error: schema.diagnostic.message, startup: null };
809
816
  }
@@ -830,7 +837,7 @@ async function launchPlane(preflight, executors, planeId, sinks, env, launchOpti
830
837
  ...(launchOptions.claimScope ? { claimScope: launchOptions.claimScope } : {}),
831
838
  });
832
839
  const timestamp = clock.now().toISOString();
833
- const claim = await claimPlaneManifest({
840
+ const claim = await steps.claimPlaneManifest({
834
841
  manifest: {
835
842
  schemaVersion: PLANE_MANIFEST_SCHEMA_VERSION,
836
843
  planeId,
@@ -24,6 +24,12 @@ import { monotonicNow, elapsedMs } from "../conductor/precheck-timings.js";
24
24
  *
25
25
  * Nothing here mutates the checkout, the plane, the database, power settings, or
26
26
  * any run. `git fetch` updates remote-tracking refs, which is the one write.
27
+ *
28
+ * Two collection modes. Ordinary collection compares the selected plane's pinned
29
+ * snapshot (from its manifest) and checks the database head. The cold-start,
30
+ * snapshot-only mode (`snapshotFromCheckoutHead`, BAPI-1725) runs before any plane
31
+ * exists: it compares the current checkout's `HEAD` with `origin/main` and reads no
32
+ * manifest and no database.
27
33
  */
28
34
  import { checkAlembicHead, } from "./alembic-head.js";
29
35
  import { planeCheckFinding, planeCheckPassed, planeCheckSkipped, } from "./types.js";
@@ -138,22 +144,29 @@ async function resolveCommit(deps, repoRoot, revision, timeoutMs) {
138
144
  return out !== null && HEX_OBJECT_ID.test(out) ? out : null;
139
145
  }
140
146
  async function checkSnapshot(repoRoot, deps, options, timeoutMs, manifestRead) {
141
- if (!options.ownsManifest) {
142
- return unverifiedSnapshot("no plane manifest in this checkout belongs to the selected plane");
143
- }
144
- if (manifestRead === null || manifestRead.kind !== "valid") {
145
- return unverifiedSnapshot("the plane manifest could not be read");
146
- }
147
- const manifest = manifestRead.manifest;
148
- if (manifest.repoRoot !== repoRoot) {
149
- return unverifiedSnapshot("the plane manifest belongs to a different checkout");
150
- }
151
- if (options.expectedPlaneId !== undefined && manifest.planeId !== options.expectedPlaneId) {
152
- return unverifiedSnapshot("the plane manifest is not the selected plane's");
153
- }
154
- const snapshotSha = manifest.snapshotSha;
155
- if (snapshotSha === undefined || !HEX_OBJECT_ID.test(snapshotSha)) {
156
- return unverifiedSnapshot("the plane manifest records no pinned snapshot");
147
+ // Cold-start mode compares the checkout's own HEAD, so the manifest ownership,
148
+ // identity, and pinned-snapshot requirements below do not apply to it.
149
+ const fromCheckoutHead = options.snapshotFromCheckoutHead === true;
150
+ let snapshotSha = "HEAD";
151
+ if (!fromCheckoutHead) {
152
+ if (!options.ownsManifest) {
153
+ return unverifiedSnapshot("no plane manifest in this checkout belongs to the selected plane");
154
+ }
155
+ if (manifestRead === null || manifestRead.kind !== "valid") {
156
+ return unverifiedSnapshot("the plane manifest could not be read");
157
+ }
158
+ const manifest = manifestRead.manifest;
159
+ if (manifest.repoRoot !== repoRoot) {
160
+ return unverifiedSnapshot("the plane manifest belongs to a different checkout");
161
+ }
162
+ if (options.expectedPlaneId !== undefined && manifest.planeId !== options.expectedPlaneId) {
163
+ return unverifiedSnapshot("the plane manifest is not the selected plane's");
164
+ }
165
+ const pinned = manifest.snapshotSha;
166
+ if (pinned === undefined || !HEX_OBJECT_ID.test(pinned)) {
167
+ return unverifiedSnapshot("the plane manifest records no pinned snapshot");
168
+ }
169
+ snapshotSha = pinned;
157
170
  }
158
171
  // Refresh the remote-tracking ref first. A failed fetch stops this check: a
159
172
  // stale cached `origin/main` would read as "fresh" and prove nothing.
@@ -162,7 +175,9 @@ async function checkSnapshot(repoRoot, deps, options, timeoutMs, manifestRead) {
162
175
  }
163
176
  const snapshotCommit = await resolveCommit(deps, repoRoot, snapshotSha, timeoutMs);
164
177
  if (snapshotCommit === null) {
165
- return unverifiedSnapshot("the snapshot commit is not present in this checkout");
178
+ return unverifiedSnapshot(fromCheckoutHead
179
+ ? "the checkout's HEAD could not be resolved"
180
+ : "the snapshot commit is not present in this checkout");
166
181
  }
167
182
  const originCommit = await resolveCommit(deps, repoRoot, "origin/main", timeoutMs);
168
183
  if (originCommit === null) {
@@ -192,17 +207,19 @@ async function checkSnapshot(repoRoot, deps, options, timeoutMs, manifestRead) {
192
207
  // Both sides moved. That is not proof of staleness, and not proof of freshness.
193
208
  return unverifiedSnapshot("the snapshot and origin/main have diverged");
194
209
  }
195
- /**
196
- * Collect the snapshot and database freshness reports, independently: an
197
- * unverified snapshot never suppresses a confirmed database refusal, or the
198
- * reverse.
199
- *
200
- * `checkout` is the code root whose `alembic.ini` the database check reads. When
201
- * the selected plane's manifest pins a snapshot, that snapshot is used instead —
202
- * the code the plane will actually RUN — exactly as plane preflight does.
203
- */
204
210
  export async function checkPlaneFreshness(repoRoot, deps, checkout, options) {
205
211
  const timeoutMs = options.timeoutMs ?? PLANE_FRESHNESS_TIMEOUT_MS;
212
+ if (options.snapshotFromCheckoutHead === true) {
213
+ const started = monotonicNow();
214
+ let report;
215
+ try {
216
+ report = await checkSnapshot(repoRoot, deps, options, timeoutMs, null);
217
+ }
218
+ catch {
219
+ report = unverifiedSnapshot("the check did not complete");
220
+ }
221
+ return { snapshot: { ...report, duration_ms: elapsedMs(started) } };
222
+ }
206
223
  let manifestRead = null;
207
224
  if (options.ownsManifest) {
208
225
  try {
@@ -31,6 +31,14 @@ export const CONSUMER_GUIDE_PATH = "docs/install/epic-implementer-install.md";
31
31
  * not enough, because an older install may not have the file yet.
32
32
  */
33
33
  export const CONSUMER_GUIDE_POINTER = `${CONSUMER_GUIDE_PATH} (write or refresh it with ${PRINTED_INSTALL_COMMAND})`;
34
+ /**
35
+ * Remediation printed when no supported host config carries a Bridge entry
36
+ * (moved here by BAPI-1719 so the pure setup projection can reuse it without
37
+ * importing the orchestration module). `install-bridge-conductor.ts` re-exports
38
+ * it under the same name.
39
+ */
40
+ export const CONDUCTOR_PROFILE_EMPTY_MERGE_REMEDIATION = `run \`${PRINTED_INSTALL_COMMAND}\` to create and register the host MCP entry, ` +
41
+ "then re-run `install epic-implementer`.";
34
42
  /**
35
43
  * Conductor setup. The plain command is the whole remedy (BAPI-1603): setup plans
36
44
  * the repository gate from what it finds, learns and proves the test command, and
@@ -104,6 +112,11 @@ export const READINESS_PREREQUISITE_FIXES = {
104
112
  profile_policy: "Declare notify.webhook_url in a run policy, then save a profile that uses it with --launch-profile <name> --policy-file <path>.",
105
113
  asset_refresh: "Refresh the committed command and agent files, review the changes, then commit them or mark them as customized.",
106
114
  reindex_manual: "Re-index the repository (/parse-repository).",
115
+ // BAPI-1747 — run-path remedies. Client-resolved by ID; the wire sends the empty fix.
116
+ run_tools_visible: `Run ${PRINTED_CONDUCTOR_INSTALL_COMMAND} and accept the tool-visibility fix so MCP sessions load the epic_implementer tools, then restart the session and retry readiness.`,
117
+ ci_check_config: "Run the resolve_ci_checks MCP tool for this repository so the run can poll CI, then retry readiness.",
118
+ epic_branch_triggers: "Add epic/** to the pull_request branches of each named check's workflow, merge that change, then retry readiness.",
119
+ worker_environment: `Run ${PRINTED_CONDUCTOR_INSTALL_COMMAND} and declare the worker database and worker environment variables for the test gate, then retry readiness.`,
107
120
  none: "",
108
121
  };
109
122
  /**
@@ -221,6 +234,9 @@ export const READINESS_PREREQUISITE_FIXES_BY_ID = {
221
234
  'server.single-transition-authority': 'self_host',
222
235
  'server.indexed-workflows': 'reindex_manual',
223
236
  'server.integration-branch-unset': 'install_setup',
237
+ 'server.ci-poll-readable': 'ci_check_config',
238
+ 'server.epic-branch-check-triggers': 'epic_branch_triggers',
239
+ 'server.worker-environment': 'worker_environment',
224
240
  'server.service-availability': 'support',
225
241
  'install.claude-login': 'local_login',
226
242
  'install.identity': 'install_guided',
@@ -230,6 +246,7 @@ export const READINESS_PREREQUISITE_FIXES_BY_ID = {
230
246
  'install.integrations': 'install_guided',
231
247
  'install.github': 'github',
232
248
  'install.indexing': 'reindex_manual',
249
+ 'install.run-tools-visible': 'run_tools_visible',
233
250
  'conductor.ledger': 'install_setup',
234
251
  'conductor.git-hooks': 'install_setup',
235
252
  'conductor.mcp-profile': 'install_setup',
@@ -24,6 +24,9 @@ export const READINESS_PREREQUISITE_FIXES_BY_ID = {
24
24
  "server.single-transition-authority": "self_host",
25
25
  "server.indexed-workflows": "reindex_manual",
26
26
  "server.integration-branch-unset": "install_setup",
27
+ "server.ci-poll-readable": "ci_check_config",
28
+ "server.epic-branch-check-triggers": "epic_branch_triggers",
29
+ "server.worker-environment": "worker_environment",
27
30
  "server.service-availability": "support",
28
31
  "install.claude-login": "local_login",
29
32
  "install.identity": "install_guided",
@@ -33,6 +36,7 @@ export const READINESS_PREREQUISITE_FIXES_BY_ID = {
33
36
  "install.integrations": "install_guided",
34
37
  "install.github": "github",
35
38
  "install.indexing": "reindex_manual",
39
+ "install.run-tools-visible": "run_tools_visible",
36
40
  "conductor.ledger": "install_setup",
37
41
  "conductor.git-hooks": "install_setup",
38
42
  "conductor.mcp-profile": "install_setup",
@@ -245,6 +249,24 @@ export const READINESS_PREREQUISITE_CATALOG = [
245
249
  "impact": "warning",
246
250
  "scope": "customer"
247
251
  },
252
+ {
253
+ "id": "server.ci-poll-readable",
254
+ "label": "CI status readable by the run",
255
+ "impact": "warning",
256
+ "scope": "customer"
257
+ },
258
+ {
259
+ "id": "server.epic-branch-check-triggers",
260
+ "label": "Watched checks run on epic branches",
261
+ "impact": "warning",
262
+ "scope": "customer"
263
+ },
264
+ {
265
+ "id": "server.worker-environment",
266
+ "label": "Worker environment declarations",
267
+ "impact": "warning",
268
+ "scope": "customer"
269
+ },
248
270
  {
249
271
  "id": "server.service-availability",
250
272
  "label": "Service availability",
@@ -299,6 +321,12 @@ export const READINESS_PREREQUISITE_CATALOG = [
299
321
  "impact": "warning",
300
322
  "scope": "customer"
301
323
  },
324
+ {
325
+ "id": "install.run-tools-visible",
326
+ "label": "Run tools visible in MCP sessions",
327
+ "impact": "warning",
328
+ "scope": "customer"
329
+ },
302
330
  {
303
331
  "id": "conductor.ledger",
304
332
  "label": "Conductor event ledger",