substrate-ai 0.20.50 → 0.20.52

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/cli/index.js CHANGED
@@ -4,7 +4,7 @@ import { createLogger } from "../logger-KeHncl-f.js";
4
4
  import { createEventBus } from "../helpers-CElYrONe.js";
5
5
  import { AdapterRegistry, BudgetConfigSchema, CURRENT_CONFIG_FORMAT_VERSION, CURRENT_TASK_GRAPH_VERSION, ConfigError, CostTrackerConfigSchema, DEFAULT_CONFIG, DoltClient, DoltNotInstalled, GlobalSettingsSchema, InMemoryDatabaseAdapter, IngestionServer, MonitorDatabaseImpl, OPERATIONAL_FINDING, PartialGlobalSettingsSchema, PartialProviderConfigSchema, ProvidersSchema, RoutingRecommender, STORY_METRICS, TelemetryConfigSchema, addTokenUsage, aggregateTokenUsageForRun, checkDoltInstalled, compareRunMetrics, createAmendmentRun, createConfigSystem, createDecision, createDoltClient, createPipelineRun, getActiveDecisions, getAllCostEntriesFiltered, getBaselineRunMetrics, getDecisionsByCategory, getDecisionsByPhaseForRun, getLatestCompletedRun, getLatestRun, getPipelineRunById, getPlanningCostTotal, getRetryableEscalations, getRunMetrics, getRunningPipelineRuns, getSessionCostSummary, getSessionCostSummaryFiltered, getStoryMetricsForRun, getTokenUsageSummary, incrementRunRestarts, initSchema, initializeDolt, listRunMetrics, loadParentRunDecisions, supersedeDecision, tagRunAsBaseline, updatePipelineRun } from "../dist-VcMmfo2w.js";
6
6
  import "../adapter-registry-DXLMTmfD.js";
7
- import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GitClient, GrammarLoader, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runProbeAuthor, runSolutioningPhase, validateStopAfterFromConflict } from "../run-CFRXRuRO.js";
7
+ import { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GitClient, GrammarLoader, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runProbeAuthor, runSolutioningPhase, validateStopAfterFromConflict } from "../run-BxDi30CG.js";
8
8
  import "../errors-CogpxBUg.js";
9
9
  import "../routing-CcBOCuC9.js";
10
10
  import "../decisions-C0pz9Clx.js";
@@ -5204,7 +5204,7 @@ async function runSupervisorAction(options, deps = {}) {
5204
5204
  await initSchema(expAdapter);
5205
5205
  const { runRunAction: runPipeline } = await import(
5206
5206
  /* @vite-ignore */
5207
- "../run-C6jy25us.js"
5207
+ "../run-7s_WEIAe.js"
5208
5208
  );
5209
5209
  const runStoryFn = async (opts) => {
5210
5210
  const exitCode = await runPipeline({
@@ -2,7 +2,7 @@ import "./health-sQ1X_5_6.js";
2
2
  import "./logger-KeHncl-f.js";
3
3
  import "./helpers-CElYrONe.js";
4
4
  import "./dist-VcMmfo2w.js";
5
- import { normalizeGraphSummaryToStatus, registerRunCommand, resolveMaxReviewCycles, runRunAction, wireNdjsonEmitter } from "./run-CFRXRuRO.js";
5
+ import { normalizeGraphSummaryToStatus, registerRunCommand, resolveMaxReviewCycles, runRunAction, wireNdjsonEmitter } from "./run-BxDi30CG.js";
6
6
  import "./routing-CcBOCuC9.js";
7
7
  import "./decisions-C0pz9Clx.js";
8
8
 
@@ -8405,9 +8405,19 @@ async function getArchConstraints$1(deps) {
8405
8405
  //#endregion
8406
8406
  //#region src/modules/implementation-orchestrator/probe-author-integration.ts
8407
8407
  const logger$14 = createLogger("implementation-orchestrator:probe-author");
8408
- /** Default timeout for probe-author dispatches (5 min) */
8409
- const DEFAULT_TIMEOUT_MS = 3e5;
8410
- /** Timeout multiplier for the single retry after a timeout failure */
8408
+ /**
8409
+ * Default timeout for probe-author dispatches (10 min).
8410
+ * obs_2026-05-04_023 layer 2: raised from 300_000 600_000 after Story
8411
+ * 65-3 eval surfaced 2/8 cases timing out at 600s wall-clock (300s + 450s
8412
+ * retry). Configurable via SUBSTRATE_PROBE_AUTHOR_TIMEOUT_MS env var.
8413
+ *
8414
+ * Story 65-7's initial fix exposed `INITIAL_TIMEOUT_MS` from
8415
+ * compiled-workflows/probe-author.ts but the dispatch path actually lives
8416
+ * here (probe-author-integration.ts). The env-var read MUST be at this
8417
+ * site to take effect in production. This patch closes the AC4 gap.
8418
+ */
8419
+ const DEFAULT_TIMEOUT_MS = process.env.SUBSTRATE_PROBE_AUTHOR_TIMEOUT_MS ? parseInt(process.env.SUBSTRATE_PROBE_AUTHOR_TIMEOUT_MS, 10) : 6e5;
8420
+ /** Timeout multiplier for the single retry after a timeout failure (1.5x). */
8411
8421
  const TIMEOUT_RETRY_MULTIPLIER = 1.5;
8412
8422
  /**
8413
8423
  * Execute the probe-author integration phase.
@@ -8962,6 +8972,17 @@ async function getArchConstraints(deps) {
8962
8972
  //#endregion
8963
8973
  //#region src/modules/compiled-workflows/probe-author.ts
8964
8974
  const logger$12 = createLogger("compiled-workflows:probe-author");
8975
+ /**
8976
+ * Default initial timeout: 10 min. Override via SUBSTRATE_PROBE_AUTHOR_TIMEOUT_MS (ms).
8977
+ * Story 65-7: raised from 300 s to 600 s to reduce infra-timeout false negatives.
8978
+ */
8979
+ const INITIAL_TIMEOUT_MS = process.env.SUBSTRATE_PROBE_AUTHOR_TIMEOUT_MS ? parseInt(process.env.SUBSTRATE_PROBE_AUTHOR_TIMEOUT_MS, 10) : 6e5;
8980
+ /**
8981
+ * Retry timeout: 1.5× initial (default 900_000 ms = 15 min).
8982
+ * Exported for tests and future retry-path wiring.
8983
+ * When a retry path is added to the dispatcher invocation, use RETRY_TIMEOUT_MS there.
8984
+ */
8985
+ const RETRY_TIMEOUT_MS = Math.round(1.5 * INITIAL_TIMEOUT_MS);
8965
8986
 
8966
8987
  //#endregion
8967
8988
  //#region src/modules/compiled-workflows/story-analyzer.ts
@@ -45369,4 +45390,4 @@ function registerRunCommand(program, _version = "0.0.0", projectRoot = process.c
45369
45390
 
45370
45391
  //#endregion
45371
45392
  export { AdapterTelemetryPersistence, AppError, DoltRepoMapMetaRepository, DoltSymbolRepository, ERR_REPO_MAP_STORAGE_WRITE, EpicIngester, GitClient, GrammarLoader, RepoMapInjector, RepoMapModule, RepoMapQueryEngine, RepoMapStorage, SymbolParser, createContextCompiler, createDispatcher, createEventEmitter, createImplementationOrchestrator, createPackLoader, createPhaseOrchestrator, createStopAfterGate, createTelemetryAdvisor, formatPhaseCompletionSummary, getFactoryRunSummaries, getScenarioResultsForRun, getTwinRunsForRun, listGraphRuns, normalizeGraphSummaryToStatus, registerExportCommand, registerFactoryCommand, registerRunCommand, registerScenariosCommand, resolveMaxReviewCycles, resolveStoryKeys, runAnalysisPhase, runPlanningPhase, runProbeAuthor, runRunAction, runSolutioningPhase, validateStopAfterFromConflict, wireNdjsonEmitter };
45372
- //# sourceMappingURL=run-CFRXRuRO.js.map
45393
+ //# sourceMappingURL=run-BxDi30CG.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "substrate-ai",
3
- "version": "0.20.50",
3
+ "version": "0.20.52",
4
4
  "description": "Substrate — multi-agent orchestration daemon for AI coding agents",
5
5
  "type": "module",
6
6
  "license": "MIT",