@on-par/factory-core 0.9.17-next.7 → 0.9.17-next.8
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/events/event-traits.d.ts +15 -0
- package/dist/events/event-traits.d.ts.map +1 -0
- package/dist/events/event-traits.js +3 -0
- package/dist/events/event-traits.js.map +1 -0
- package/dist/events/kinds.d.ts +3 -14
- package/dist/events/kinds.d.ts.map +1 -1
- package/dist/events/kinds.js +1 -0
- package/dist/events/kinds.js.map +1 -1
- package/dist/events/payloads.d.ts +5 -1
- package/dist/events/payloads.d.ts.map +1 -1
- package/dist/phases/plan-result.d.ts +38 -0
- package/dist/phases/plan-result.d.ts.map +1 -0
- package/dist/phases/plan-result.js +2 -0
- package/dist/phases/plan-result.js.map +1 -0
- package/dist/phases/plan-test-helpers.d.ts +1 -1
- package/dist/phases/plan.d.ts +5 -36
- package/dist/phases/plan.d.ts.map +1 -1
- package/dist/phases/plan.js +2 -1
- package/dist/phases/plan.js.map +1 -1
- package/dist/queue/internal-exports.d.ts +2 -0
- package/dist/queue/internal-exports.d.ts.map +1 -1
- package/dist/queue/internal-exports.js +1 -0
- package/dist/queue/internal-exports.js.map +1 -1
- package/dist/router/index.d.ts +2 -0
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js +11 -1
- package/dist/router/index.js.map +1 -1
- package/dist/run/outcome.d.ts +12 -0
- package/dist/run/outcome.d.ts.map +1 -1
- package/dist/run/outcome.js.map +1 -1
- package/dist/run/plan-reuse-load.d.ts +11 -0
- package/dist/run/plan-reuse-load.d.ts.map +1 -0
- package/dist/run/plan-reuse-load.js +28 -0
- package/dist/run/plan-reuse-load.js.map +1 -0
- package/dist/run/run-issue.d.ts.map +1 -1
- package/dist/run/run-issue.js +18 -27
- package/dist/run/run-issue.js.map +1 -1
- package/dist/run/stage-blocked.d.ts +66 -0
- package/dist/run/stage-blocked.d.ts.map +1 -0
- package/dist/run/stage-blocked.js +129 -0
- package/dist/run/stage-blocked.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type ProviderBreaker } from '../router/breaker.js';
|
|
2
|
+
import type { ModelRouter } from '../router/index.js';
|
|
3
|
+
import type { EventKind } from '../events/kinds.js';
|
|
4
|
+
import type { FailoverReason, FailurePhase } from '../types/index.js';
|
|
5
|
+
import type { BuildRoute, RunOutcome } from './outcome.js';
|
|
6
|
+
export type GateStage = 'plan' | 'build' | 'check';
|
|
7
|
+
/** Breaker reasons whose entry carries a real reset time; only these release to queued (#3226). */
|
|
8
|
+
export declare const TIMED_BREAKER_REASONS: ReadonlySet<FailoverReason>;
|
|
9
|
+
/** Router failure reasons that mean the provider, not the issue, failed. */
|
|
10
|
+
export declare const PROVIDER_LEVEL_REASONS: ReadonlySet<string>;
|
|
11
|
+
export interface StageBlockedResult {
|
|
12
|
+
/** Every counted candidate provider is open. */
|
|
13
|
+
blocked: boolean;
|
|
14
|
+
/** Open counted providers, candidate order. */
|
|
15
|
+
providers: string[];
|
|
16
|
+
/** Providers to pass as router `skipProviders` (empty when blocked or failover is disabled). */
|
|
17
|
+
skip: Set<string>;
|
|
18
|
+
/** ISO instant of the earliest reset among open counted providers with a timed reason. */
|
|
19
|
+
nextAvailableAt?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface StageBlockedDeps {
|
|
22
|
+
router: Pick<ModelRouter, 'registryRef'>;
|
|
23
|
+
breaker: ProviderBreaker;
|
|
24
|
+
/** Candidate model ids in the stage's configured order. */
|
|
25
|
+
candidates: readonly string[];
|
|
26
|
+
failoverEnabled: boolean;
|
|
27
|
+
log?: (type: EventKind, msg: string) => void;
|
|
28
|
+
now?: () => number;
|
|
29
|
+
}
|
|
30
|
+
/** Read the breaker for the stage's candidate providers: skip the open ones, or report the stage blocked. */
|
|
31
|
+
export declare function stageBlocked(stage: GateStage, deps: StageBlockedDeps): Promise<StageBlockedResult>;
|
|
32
|
+
type GateLog = (type: EventKind, msg: string) => void;
|
|
33
|
+
/** What a stage boundary decided: providers to skip, or a release outcome when the stage is blocked until a reset. */
|
|
34
|
+
export interface StageGateVerdict {
|
|
35
|
+
skip: Set<string>;
|
|
36
|
+
released?: RunOutcome;
|
|
37
|
+
}
|
|
38
|
+
/** The slice of a run request the gate reads. */
|
|
39
|
+
export interface GateRequest {
|
|
40
|
+
issue: number;
|
|
41
|
+
branch: string;
|
|
42
|
+
codexDisabled: boolean;
|
|
43
|
+
failover: {
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
};
|
|
46
|
+
modelPins: {
|
|
47
|
+
plan?: string;
|
|
48
|
+
planFallback?: string;
|
|
49
|
+
buildFallback?: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Per-run gate over `stageBlocked` (#3226). `enter` runs at a stage boundary; `watch` records a stage that has no
|
|
54
|
+
* boundary gate (CHECK); `afterFailure` turns a provider-level router failure of the current stage into the same
|
|
55
|
+
* release when the stage is now timed-blocked.
|
|
56
|
+
*/
|
|
57
|
+
export declare function providerCapGate(router: Pick<ModelRouter, 'registryRef' | 'resolveAll'>, breaker: ProviderBreaker, request: GateRequest, log: GateLog): {
|
|
58
|
+
/** CHECK has no boundary gate (BUILD just succeeded); record it for the catch path. */
|
|
59
|
+
watchCheck(route: BuildRoute, model: string | undefined): void;
|
|
60
|
+
enterPlan(route: BuildRoute | undefined, stageLog: GateLog): Promise<StageGateVerdict>;
|
|
61
|
+
/** Release only: BUILD's own gates log skips and its ladder stays (#1449). */
|
|
62
|
+
enterBuild(buildRoute: BuildRoute, model: string | undefined, route: BuildRoute | undefined, breakerBlocked: boolean): Promise<StageGateVerdict>;
|
|
63
|
+
afterFailure(err: unknown, failurePhase: FailurePhase, route: BuildRoute | undefined): Promise<RunOutcome | undefined>;
|
|
64
|
+
};
|
|
65
|
+
export {};
|
|
66
|
+
//# sourceMappingURL=stage-blocked.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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-blocked.ts — stage-boundary provider gate (#3226): which configured providers of a
|
|
2
|
+
// stage are capped, which to skip, and when the whole stage is blocked until a timed reset.
|
|
3
|
+
import { formatBreakerRemaining } from '../router/breaker.js';
|
|
4
|
+
import { routerFailureOf } from '../router/executor-error.js';
|
|
5
|
+
/** Breaker reasons whose entry carries a real reset time; only these release to queued (#3226). */
|
|
6
|
+
export const TIMED_BREAKER_REASONS = new Set(['usage_cap', 'rate_limit']);
|
|
7
|
+
/** Router failure reasons that mean the provider, not the issue, failed. */
|
|
8
|
+
export const PROVIDER_LEVEL_REASONS = new Set([
|
|
9
|
+
'usage_cap',
|
|
10
|
+
'rate_limit',
|
|
11
|
+
'timeout',
|
|
12
|
+
'unavailable',
|
|
13
|
+
]);
|
|
14
|
+
/** Read the breaker for the stage's candidate providers: skip the open ones, or report the stage blocked. */
|
|
15
|
+
export async function stageBlocked(stage, deps) {
|
|
16
|
+
const { registryRef } = deps.router;
|
|
17
|
+
const all = [
|
|
18
|
+
...new Set(deps.candidates.map((id) => registryRef.get(id)?.provider).filter((p) => Boolean(p))),
|
|
19
|
+
];
|
|
20
|
+
const counted = deps.failoverEnabled ? all : all.slice(0, 1);
|
|
21
|
+
if (counted.length === 0)
|
|
22
|
+
return { blocked: false, providers: [], skip: new Set() };
|
|
23
|
+
const now = deps.now ?? Date.now;
|
|
24
|
+
const open = [];
|
|
25
|
+
for (const provider of counted) {
|
|
26
|
+
const status = await deps.breaker.status(provider);
|
|
27
|
+
if (status.open)
|
|
28
|
+
open.push({ provider, reason: status.entry.reason, remainingMs: status.remainingMs });
|
|
29
|
+
}
|
|
30
|
+
const blocked = open.length === counted.length;
|
|
31
|
+
const resets = open
|
|
32
|
+
.filter((o) => TIMED_BREAKER_REASONS.has(o.reason) && Number.isFinite(o.remainingMs))
|
|
33
|
+
.map((o) => now() + o.remainingMs);
|
|
34
|
+
const skip = new Set();
|
|
35
|
+
if (deps.failoverEnabled && !blocked) {
|
|
36
|
+
for (const o of open) {
|
|
37
|
+
skip.add(o.provider);
|
|
38
|
+
deps.log?.('provider_breaker_skip', `breaker open for ${o.provider} (${o.reason}) — skipping it for ${stage.toUpperCase()}, ${formatBreakerRemaining(o.remainingMs)}`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
blocked,
|
|
43
|
+
providers: open.map((o) => o.provider),
|
|
44
|
+
skip,
|
|
45
|
+
...(resets.length > 0 ? { nextAvailableAt: new Date(Math.min(...resets)).toISOString() } : {}),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/** Candidates for PLAN in today's order: the pin then its fallback, else the plan tier. */
|
|
49
|
+
function planCandidates(router, pins) {
|
|
50
|
+
if (!pins.plan)
|
|
51
|
+
return router.resolveAll('plan');
|
|
52
|
+
return [...new Set([pins.plan, pins.planFallback].filter((m) => Boolean(m)))];
|
|
53
|
+
}
|
|
54
|
+
/** Models that can run a build route today, the chosen model first; empty for the `command` route.
|
|
55
|
+
* When failover is on, BUILD's cross-harness ladder (buildFallback, build_claude, build_codex) counts too. */
|
|
56
|
+
function buildCandidates(router, route, model, ladder) {
|
|
57
|
+
if (route === 'command')
|
|
58
|
+
return [];
|
|
59
|
+
const more = ladder
|
|
60
|
+
? [
|
|
61
|
+
ladder.buildFallback,
|
|
62
|
+
...router.resolveAll('build_claude'),
|
|
63
|
+
...(ladder.codexOff ? [] : router.resolveAll('build_codex')),
|
|
64
|
+
]
|
|
65
|
+
: [];
|
|
66
|
+
return [...new Set([model, ...router.resolveAll(`build_${route}`), ...more].filter((m) => Boolean(m)))];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Per-run gate over `stageBlocked` (#3226). `enter` runs at a stage boundary; `watch` records a stage that has no
|
|
70
|
+
* boundary gate (CHECK); `afterFailure` turns a provider-level router failure of the current stage into the same
|
|
71
|
+
* release when the stage is now timed-blocked.
|
|
72
|
+
*/
|
|
73
|
+
export function providerCapGate(router, breaker, request, log) {
|
|
74
|
+
const { issue, branch } = request;
|
|
75
|
+
const failoverEnabled = request.failover.enabled;
|
|
76
|
+
let current;
|
|
77
|
+
const release = (stage, gate, route) => {
|
|
78
|
+
if (!gate.blocked || !gate.nextAvailableAt)
|
|
79
|
+
return undefined;
|
|
80
|
+
log('provider-cap-released', `every ${stage.toUpperCase()} provider is capped (${gate.providers.join(', ')}) — no model call, releasing #${issue} to queued until ${gate.nextAvailableAt}`);
|
|
81
|
+
return {
|
|
82
|
+
state: 'released',
|
|
83
|
+
reason: 'provider-cap',
|
|
84
|
+
route,
|
|
85
|
+
branch,
|
|
86
|
+
reworkRounds: 0,
|
|
87
|
+
providers: gate.providers,
|
|
88
|
+
resetAt: gate.nextAvailableAt,
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
const enter = async (stage, candidates, route, stageLog) => {
|
|
92
|
+
current = { stage, candidates };
|
|
93
|
+
const gate = await stageBlocked(stage, { router, breaker, candidates, failoverEnabled, log: stageLog });
|
|
94
|
+
return { skip: gate.skip, released: release(stage, gate, route) };
|
|
95
|
+
};
|
|
96
|
+
return {
|
|
97
|
+
/** CHECK has no boundary gate (BUILD just succeeded); record it for the catch path. */
|
|
98
|
+
watchCheck(route, model) {
|
|
99
|
+
current = { stage: 'check', candidates: buildCandidates(router, route, model) };
|
|
100
|
+
},
|
|
101
|
+
enterPlan(route, stageLog) {
|
|
102
|
+
return enter('plan', planCandidates(router, request.modelPins), route, stageLog);
|
|
103
|
+
},
|
|
104
|
+
/** Release only: BUILD's own gates log skips and its ladder stays (#1449). */
|
|
105
|
+
enterBuild(buildRoute, model, route, breakerBlocked) {
|
|
106
|
+
const codexOff = request.codexDisabled || breakerBlocked;
|
|
107
|
+
const ladder = failoverEnabled ? { buildFallback: request.modelPins.buildFallback, codexOff } : undefined;
|
|
108
|
+
return enter('build', buildCandidates(router, buildRoute, model, ladder), route);
|
|
109
|
+
},
|
|
110
|
+
async afterFailure(err, failurePhase, route) {
|
|
111
|
+
const failure = routerFailureOf(err);
|
|
112
|
+
if (!failure || !PROVIDER_LEVEL_REASONS.has(failure.reason) || failure.detail === 'only_metered_left') {
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
115
|
+
if (!current || failurePhase === 'ship')
|
|
116
|
+
return undefined;
|
|
117
|
+
const { stage, candidates } = current;
|
|
118
|
+
try {
|
|
119
|
+
return release(stage, await stageBlocked(stage, { router, breaker, candidates, failoverEnabled }), route);
|
|
120
|
+
}
|
|
121
|
+
catch (e) {
|
|
122
|
+
// an unreadable breaker must not change how the failure parks, but it must be visible
|
|
123
|
+
log('environment_warning', `provider-cap check failed: ${e instanceof Error ? e.message : String(e)}`);
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=stage-blocked.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-blocked.js","sourceRoot":"","sources":["../../src/run/stage-blocked.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,4FAA4F;AAE5F,OAAO,EAAE,sBAAsB,EAAwB,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAQ9D,mGAAmG;AACnG,MAAM,CAAC,MAAM,qBAAqB,GAAgC,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC;AAEvG,4EAA4E;AAC5E,MAAM,CAAC,MAAM,sBAAsB,GAAwB,IAAI,GAAG,CAAC;IACjE,WAAW;IACX,YAAY;IACZ,SAAS;IACT,aAAa;CACd,CAAC,CAAC;AAuBH,6GAA6G;AAC7G,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,KAAgB,EAAE,IAAsB;IACzE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC;IACpC,MAAM,GAAG,GAAG;QACV,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,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EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1G,OAAO,KAAK,CAAC,OAAO,EAAE,eAAe,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC;QACnF,CAAC;QACD,KAAK,CAAC,YAAY,CAAC,GAAY,EAAE,YAA0B,EAAE,KAA6B;YACxF,MAAM,OAAO,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;YACrC,IAAI,CAAC,OAAO,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC,MAAM,KAAK,mBAAmB,EAAE,CAAC;gBACtG,OAAO,SAAS,CAAC;YACnB,CAAC;YACD,IAAI,CAAC,OAAO,IAAI,YAAY,KAAK,MAAM;gBAAE,OAAO,SAAS,CAAC;YAC1D,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;YACtC,IAAI,CAAC;gBACH,OAAO,OAAO,CAAC,KAAK,EAAE,MAAM,YAAY,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;YAC5G,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,sFAAsF;gBACtF,GAAG,CAAC,qBAAqB,EAAE,8BAA8B,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBACvG,OAAO,SAAS,CAAC;YACnB,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@on-par/factory-core",
|
|
3
|
-
"version": "0.9.17-next.
|
|
3
|
+
"version": "0.9.17-next.8",
|
|
4
4
|
"description": "Core engine: model router, constitutions, checkers, and pipeline phases for the Software Factory.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"prepack": "node ../../scripts/pack-hygiene-cli.ts prepack"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@on-par/adr-kit": "0.9.17-next.
|
|
58
|
-
"@on-par/contracts": "0.9.17-next.
|
|
59
|
-
"@on-par/factory-config": "0.9.17-next.
|
|
60
|
-
"@on-par/repo-context": "0.9.17-next.
|
|
57
|
+
"@on-par/adr-kit": "0.9.17-next.8",
|
|
58
|
+
"@on-par/contracts": "0.9.17-next.8",
|
|
59
|
+
"@on-par/factory-config": "0.9.17-next.8",
|
|
60
|
+
"@on-par/repo-context": "0.9.17-next.8",
|
|
61
61
|
"@octokit/rest": "^22.0.0",
|
|
62
62
|
"execa": "^10.1.0",
|
|
63
63
|
"gray-matter": "^4.0.3",
|