audit-tools 0.32.67 → 0.33.0
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/audit/cli/advanceAuditCommand.d.ts.map +1 -1
- package/dist/audit/cli/advanceAuditCommand.js +8 -3
- package/dist/audit/cli/advanceAuditCommand.js.map +1 -1
- package/dist/audit/cli/args.d.ts +9 -27
- package/dist/audit/cli/args.d.ts.map +1 -1
- package/dist/audit/cli/args.js +116 -50
- package/dist/audit/cli/args.js.map +1 -1
- package/dist/audit/cli/auditStep.d.ts +15 -1
- package/dist/audit/cli/auditStep.d.ts.map +1 -1
- package/dist/audit/cli/auditStep.js +2 -0
- package/dist/audit/cli/auditStep.js.map +1 -1
- package/dist/audit/cli/dispatch/quotaPool.d.ts +2 -1
- package/dist/audit/cli/dispatch/quotaPool.d.ts.map +1 -1
- package/dist/audit/cli/dispatch/quotaPool.js +43 -77
- package/dist/audit/cli/dispatch/quotaPool.js.map +1 -1
- package/dist/audit/cli/dispatch/types.d.ts +9 -0
- package/dist/audit/cli/dispatch/types.d.ts.map +1 -1
- package/dist/audit/cli/dispatch.d.ts.map +1 -1
- package/dist/audit/cli/dispatch.js +17 -6
- package/dist/audit/cli/dispatch.js.map +1 -1
- package/dist/audit/cli/hybridDispatch.d.ts +3 -1
- package/dist/audit/cli/hybridDispatch.d.ts.map +1 -1
- package/dist/audit/cli/hybridDispatch.js +1 -0
- package/dist/audit/cli/hybridDispatch.js.map +1 -1
- package/dist/audit/cli/nextStepCommand.d.ts +0 -9
- package/dist/audit/cli/nextStepCommand.d.ts.map +1 -1
- package/dist/audit/cli/nextStepCommand.js +151 -92
- package/dist/audit/cli/nextStepCommand.js.map +1 -1
- package/dist/audit/cli/nextStepHelpers.d.ts +11 -2
- package/dist/audit/cli/nextStepHelpers.d.ts.map +1 -1
- package/dist/audit/cli/nextStepHelpers.js +56 -8
- package/dist/audit/cli/nextStepHelpers.js.map +1 -1
- package/dist/audit/cli/prepareDispatchCommand.d.ts.map +1 -1
- package/dist/audit/cli/prepareDispatchCommand.js +15 -9
- package/dist/audit/cli/prepareDispatchCommand.js.map +1 -1
- package/dist/audit/cli/prompts.d.ts +12 -32
- package/dist/audit/cli/prompts.d.ts.map +1 -1
- package/dist/audit/cli/prompts.js +19 -33
- package/dist/audit/cli/prompts.js.map +1 -1
- package/dist/audit/cli/providerConfirmationStep.d.ts +13 -5
- package/dist/audit/cli/providerConfirmationStep.d.ts.map +1 -1
- package/dist/audit/cli/providerConfirmationStep.js +47 -8
- package/dist/audit/cli/providerConfirmationStep.js.map +1 -1
- package/dist/audit/cli/quotaCommand.d.ts.map +1 -1
- package/dist/audit/cli/quotaCommand.js +16 -10
- package/dist/audit/cli/quotaCommand.js.map +1 -1
- package/dist/audit/cli/rollingAuditDispatch.d.ts.map +1 -1
- package/dist/audit/cli/rollingAuditDispatch.js +8 -0
- package/dist/audit/cli/rollingAuditDispatch.js.map +1 -1
- package/dist/audit/cli/semanticReviewStep.d.ts +11 -1
- package/dist/audit/cli/semanticReviewStep.d.ts.map +1 -1
- package/dist/audit/cli/semanticReviewStep.js +11 -15
- package/dist/audit/cli/semanticReviewStep.js.map +1 -1
- package/dist/audit/cli/validateCommand.d.ts.map +1 -1
- package/dist/audit/cli/validateCommand.js +3 -3
- package/dist/audit/cli/validateCommand.js.map +1 -1
- package/dist/audit/contracts/wrapperResponse.d.ts +6 -6
- package/dist/audit/orchestrator/advance.d.ts.map +1 -1
- package/dist/audit/orchestrator/advance.js +39 -7
- package/dist/audit/orchestrator/advance.js.map +1 -1
- package/dist/audit/orchestrator/advanceTypes.d.ts +52 -1
- package/dist/audit/orchestrator/advanceTypes.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.d.ts.map +1 -1
- package/dist/audit/orchestrator/executorRunners.js +9 -1
- package/dist/audit/orchestrator/executorRunners.js.map +1 -1
- package/dist/audit/orchestrator/intakeExecutors.d.ts +27 -3
- package/dist/audit/orchestrator/intakeExecutors.d.ts.map +1 -1
- package/dist/audit/orchestrator/intakeExecutors.js +119 -19
- package/dist/audit/orchestrator/intakeExecutors.js.map +1 -1
- package/dist/audit/orchestrator/nextStep.d.ts +7 -0
- package/dist/audit/orchestrator/nextStep.d.ts.map +1 -1
- package/dist/audit/orchestrator/nextStep.js +3 -0
- package/dist/audit/orchestrator/nextStep.js.map +1 -1
- package/dist/audit/orchestrator/providerConfirmation.d.ts.map +1 -1
- package/dist/audit/orchestrator/providerConfirmation.js +0 -2
- package/dist/audit/orchestrator/providerConfirmation.js.map +1 -1
- package/dist/audit/orchestrator/state.d.ts +17 -0
- package/dist/audit/orchestrator/state.d.ts.map +1 -1
- package/dist/audit/orchestrator/state.js +13 -1
- package/dist/audit/orchestrator/state.js.map +1 -1
- package/dist/audit/quota/index.d.ts +128 -128
- package/dist/audit/supervisor/sessionConfig.d.ts +3 -11
- package/dist/audit/supervisor/sessionConfig.d.ts.map +1 -1
- package/dist/audit/supervisor/sessionConfig.js +3 -25
- package/dist/audit/supervisor/sessionConfig.js.map +1 -1
- package/dist/audit/types/analyzerCapability.d.ts +6 -6
- package/dist/audit/types/externalAnalyzer.d.ts +10 -10
- package/dist/remediate/phases/plan.d.ts.map +1 -1
- package/dist/remediate/phases/plan.js +5 -4
- package/dist/remediate/phases/plan.js.map +1 -1
- package/dist/remediate/steps/contractPipeline.d.ts.map +1 -1
- package/dist/remediate/steps/contractPipeline.js +9 -3
- package/dist/remediate/steps/contractPipeline.js.map +1 -1
- package/dist/remediate/steps/dispatch/marshal.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/marshal.js +5 -4
- package/dist/remediate/steps/dispatch/marshal.js.map +1 -1
- package/dist/remediate/steps/dispatch/waveScheduling.d.ts +4 -2
- package/dist/remediate/steps/dispatch/waveScheduling.d.ts.map +1 -1
- package/dist/remediate/steps/dispatch/waveScheduling.js +33 -85
- package/dist/remediate/steps/dispatch/waveScheduling.js.map +1 -1
- package/dist/remediate/steps/nextStep.d.ts +0 -10
- package/dist/remediate/steps/nextStep.d.ts.map +1 -1
- package/dist/remediate/steps/nextStep.js +33 -24
- package/dist/remediate/steps/nextStep.js.map +1 -1
- package/dist/remediate/steps/providerNodeDispatch.d.ts +8 -0
- package/dist/remediate/steps/providerNodeDispatch.d.ts.map +1 -1
- package/dist/remediate/steps/providerNodeDispatch.js +4 -0
- package/dist/remediate/steps/providerNodeDispatch.js.map +1 -1
- package/dist/remediate/steps/sessionConfigLoad.d.ts +46 -0
- package/dist/remediate/steps/sessionConfigLoad.d.ts.map +1 -0
- package/dist/remediate/steps/sessionConfigLoad.js +32 -0
- package/dist/remediate/steps/sessionConfigLoad.js.map +1 -0
- package/dist/shared/config/resolveSessionConfig.d.ts +72 -0
- package/dist/shared/config/resolveSessionConfig.d.ts.map +1 -0
- package/dist/shared/config/resolveSessionConfig.js +105 -0
- package/dist/shared/config/resolveSessionConfig.js.map +1 -0
- package/dist/shared/dispatch/admissionLoop.d.ts +12 -12
- package/dist/shared/friction/stepBoundaryCapture.d.ts +22 -1
- package/dist/shared/friction/stepBoundaryCapture.d.ts.map +1 -1
- package/dist/shared/friction/stepBoundaryCapture.js +40 -0
- package/dist/shared/friction/stepBoundaryCapture.js.map +1 -1
- package/dist/shared/index.d.ts +14 -8
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +11 -5
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/providers/auditorSources.d.ts +102 -0
- package/dist/shared/providers/auditorSources.d.ts.map +1 -0
- package/dist/shared/providers/auditorSources.js +226 -0
- package/dist/shared/providers/auditorSources.js.map +1 -0
- package/dist/shared/providers/openAiCompatibleProvider.d.ts +20 -5
- package/dist/shared/providers/openAiCompatibleProvider.d.ts.map +1 -1
- package/dist/shared/providers/openAiCompatibleProvider.js +123 -19
- package/dist/shared/providers/openAiCompatibleProvider.js.map +1 -1
- package/dist/shared/providers/providerConfirmation.d.ts +3 -20
- package/dist/shared/providers/providerConfirmation.d.ts.map +1 -1
- package/dist/shared/providers/providerConfirmation.js +3 -37
- package/dist/shared/providers/providerConfirmation.js.map +1 -1
- package/dist/shared/providers/providerFactory.d.ts +6 -0
- package/dist/shared/providers/providerFactory.d.ts.map +1 -1
- package/dist/shared/providers/providerFactory.js +6 -0
- package/dist/shared/providers/providerFactory.js.map +1 -1
- package/dist/shared/providers/sharedProviderConfirmation.d.ts +264 -75
- package/dist/shared/providers/sharedProviderConfirmation.d.ts.map +1 -1
- package/dist/shared/providers/sharedProviderConfirmation.js +534 -113
- package/dist/shared/providers/sharedProviderConfirmation.js.map +1 -1
- package/dist/shared/providers/types.d.ts +17 -0
- package/dist/shared/providers/types.d.ts.map +1 -1
- package/dist/shared/quota/apiPool.d.ts +34 -11
- package/dist/shared/quota/apiPool.d.ts.map +1 -1
- package/dist/shared/quota/apiPool.js +21 -23
- package/dist/shared/quota/apiPool.js.map +1 -1
- package/dist/shared/quota/capacity.d.ts +50 -50
- package/dist/shared/quota/hostPool.d.ts +107 -0
- package/dist/shared/quota/hostPool.d.ts.map +1 -0
- package/dist/shared/quota/hostPool.js +103 -0
- package/dist/shared/quota/hostPool.js.map +1 -0
- package/dist/shared/quota/quotaSource.d.ts +2 -2
- package/dist/shared/types/auditorDescriptor.d.ts +112 -0
- package/dist/shared/types/auditorDescriptor.d.ts.map +1 -0
- package/dist/shared/types/auditorDescriptor.js +28 -0
- package/dist/shared/types/auditorDescriptor.js.map +1 -0
- package/dist/shared/types/providerConfirmation.d.ts +64 -6
- package/dist/shared/types/providerConfirmation.d.ts.map +1 -1
- package/dist/shared/types/providerConfirmation.js +1 -1
- package/dist/shared/types/sessionConfig.d.ts +73 -65
- package/dist/shared/types/sessionConfig.d.ts.map +1 -1
- package/dist/shared/types/sessionConfig.js +48 -0
- package/dist/shared/types/sessionConfig.js.map +1 -1
- package/dist/shared/validation/sessionConfig.d.ts +26 -14
- package/dist/shared/validation/sessionConfig.d.ts.map +1 -1
- package/dist/shared/validation/sessionConfig.js +72 -70
- package/dist/shared/validation/sessionConfig.js.map +1 -1
- package/docs/audit-pkg/contracts.md +4 -4
- package/docs/audit-pkg/operator-guide.md +43 -24
- package/package.json +1 -1
- package/skills/audit-code/SKILL.md +17 -14
- package/skills/audit-code/audit-code.prompt.md +17 -16
- package/wrapper/audit-code-wrapper-install-hosts.mjs +6 -10
- package/wrapper/remediate-code-wrapper-install-hosts.mjs +4 -8
- package/dist/shared/quota/repairProxyRegistry.d.ts +0 -84
- package/dist/shared/quota/repairProxyRegistry.d.ts.map +0 -1
- package/dist/shared/quota/repairProxyRegistry.js +0 -144
- package/dist/shared/quota/repairProxyRegistry.js.map +0 -1
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { buildProviderModelKey } from "./scheduler.js";
|
|
2
|
+
import { buildQuotaSource } from "./compositeQuotaSource.js";
|
|
3
|
+
import { HostSessionQuotaSource, } from "./hostSessionQuotaSource.js";
|
|
4
|
+
import { resolveHostActiveSubagentLimit } from "./hostLimits.js";
|
|
5
|
+
import { resolveHostModel } from "./limits.js";
|
|
6
|
+
import { readQuotaStateOrDegrade } from "./state.js";
|
|
7
|
+
import { buildHostModelPools } from "./apiPool.js";
|
|
8
|
+
import { compareTier } from "../dispatch/tierRank.js";
|
|
9
|
+
/**
|
|
10
|
+
* Most-capable rank first, so the largest pending items land on the rank with the largest
|
|
11
|
+
* window. Ordering comes from the single shared tier-rank authority (`compareTier`, negated
|
|
12
|
+
* for descending) — no local {small,standard,deep} copy.
|
|
13
|
+
*
|
|
14
|
+
* Sorting HERE (rather than in one caller only) closes a real pre-lift drift: remediate sorted
|
|
15
|
+
* its roster in the preamble, audit did not and sorted its POOLS later in `finalizeDispatchQuota`.
|
|
16
|
+
* Audit's later sort stays correct and idempotent, and its budget layer is order-independent
|
|
17
|
+
* (a per-rank map; the single-pool path has one element), so unifying on sorted-here is safe.
|
|
18
|
+
*/
|
|
19
|
+
function sortRosterMostCapableFirst(roster) {
|
|
20
|
+
return [...roster].sort((a, b) => compareTier(b.rank, a.rank));
|
|
21
|
+
}
|
|
22
|
+
export async function buildHostPoolPreamble(input) {
|
|
23
|
+
const { sessionConfig, providerName } = input;
|
|
24
|
+
const hostModel = resolveHostModel({
|
|
25
|
+
providerName,
|
|
26
|
+
sessionConfig,
|
|
27
|
+
explicitModel: input.explicitHostModel,
|
|
28
|
+
...(input.env ? { env: input.env } : {}),
|
|
29
|
+
envVar: `${input.envPrefix}_HOST_MODEL`,
|
|
30
|
+
});
|
|
31
|
+
// Quota-key identity: the resolved model NAME when one exists, else the host's opaque
|
|
32
|
+
// model id (a key segment ONLY — never a window authority), else null → `provider/*`.
|
|
33
|
+
// Per-roster-rank `model_id` overrides this per pool below.
|
|
34
|
+
const quotaModelKeySegment = hostModel ?? input.hostModelId ?? null;
|
|
35
|
+
const quotaProviderKey = buildProviderModelKey(providerName, quotaModelKeySegment);
|
|
36
|
+
const roster = input.roster?.length ? sortRosterMostCapableFirst(input.roster) : null;
|
|
37
|
+
const hostConcurrencyLimit = resolveHostActiveSubagentLimit({
|
|
38
|
+
envPrefix: input.envPrefix,
|
|
39
|
+
explicitLimit: input.hostActiveSubagentLimit,
|
|
40
|
+
sessionConfig,
|
|
41
|
+
...(input.env ? { env: input.env } : {}),
|
|
42
|
+
});
|
|
43
|
+
const quotaEntries = (await readQuotaStateOrDegrade(input.quotaStateLabel)).entries;
|
|
44
|
+
// PREPEND the host-session fixed-window source keyed on the host pool's own
|
|
45
|
+
// (provider, model) key, so the operator's account-level session wall is a first-class
|
|
46
|
+
// PRE-WALL source: graduated remaining_pct → LOW/CRITICAL throttle before a hard 429,
|
|
47
|
+
// paused → cooldown. It gates on the exact key, passing through for every other pool,
|
|
48
|
+
// so it never masks the proactive/learned sources.
|
|
49
|
+
const hostSession = input.hostSession ??
|
|
50
|
+
new HostSessionQuotaSource({
|
|
51
|
+
providerModelKey: quotaProviderKey,
|
|
52
|
+
...(input.onEscalation ? { onEscalation: input.onEscalation } : {}),
|
|
53
|
+
});
|
|
54
|
+
const quotaSource = buildQuotaSource({ hostSession });
|
|
55
|
+
// The capability handshake: the host reported its dispatch model's real context/output
|
|
56
|
+
// window this session. Carried into the pool's discoveredLimits so the shared
|
|
57
|
+
// discovered_capability rung sizes the budget to the real window instead of the
|
|
58
|
+
// conservative floor. RPM/TPM stay null and fill from the queried/learned sources.
|
|
59
|
+
const hostCapabilityLimits = input.hostContextTokens != null || input.hostOutputTokens != null
|
|
60
|
+
? {
|
|
61
|
+
context_tokens: input.hostContextTokens ?? null,
|
|
62
|
+
output_tokens: input.hostOutputTokens ?? null,
|
|
63
|
+
}
|
|
64
|
+
: null;
|
|
65
|
+
const pools = await buildHostModelPools({
|
|
66
|
+
providerName,
|
|
67
|
+
hostModel,
|
|
68
|
+
hostConcurrencyLimit,
|
|
69
|
+
quotaSource,
|
|
70
|
+
quotaEntries,
|
|
71
|
+
roster,
|
|
72
|
+
resolve: async (entry) => {
|
|
73
|
+
const poolKey = entry?.model_id
|
|
74
|
+
? buildProviderModelKey(providerName, entry.model_id)
|
|
75
|
+
: quotaProviderKey;
|
|
76
|
+
// A roster rank reports its OWN window; the scalar/absent handshake falls back to
|
|
77
|
+
// the single capability pair.
|
|
78
|
+
const capability = entry
|
|
79
|
+
? { context_tokens: entry.context_tokens, output_tokens: entry.output_tokens }
|
|
80
|
+
: hostCapabilityLimits;
|
|
81
|
+
const discoveredLimits = input.enrichDiscoveredLimits
|
|
82
|
+
? await input.enrichDiscoveredLimits(capability, {
|
|
83
|
+
poolKey,
|
|
84
|
+
hostModel,
|
|
85
|
+
entry: entry ?? null,
|
|
86
|
+
})
|
|
87
|
+
: capability;
|
|
88
|
+
return { poolKey, discoveredLimits };
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
return {
|
|
92
|
+
providerName,
|
|
93
|
+
hostModel,
|
|
94
|
+
quotaModelKeySegment,
|
|
95
|
+
quotaProviderKey,
|
|
96
|
+
hostConcurrencyLimit,
|
|
97
|
+
quotaEntries,
|
|
98
|
+
quotaSource,
|
|
99
|
+
hostSession,
|
|
100
|
+
pools,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=hostPool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostPool.js","sourceRoot":"","sources":["../../../src/shared/quota/hostPool.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,sBAAsB,GAEvB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AA6GtD;;;;;;;;;GASG;AACH,SAAS,0BAA0B,CACjC,MAA8B;IAE9B,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,KAA4B;IAE5B,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAE9C,MAAM,SAAS,GAAG,gBAAgB,CAAC;QACjC,YAAY;QACZ,aAAa;QACb,aAAa,EAAE,KAAK,CAAC,iBAAiB;QACtC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACxC,MAAM,EAAE,GAAG,KAAK,CAAC,SAAS,aAAa;KACxC,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
|
56
56
|
}>, "many">>;
|
|
57
57
|
}, "strict", z.ZodTypeAny, {
|
|
58
|
-
source: string;
|
|
59
58
|
remaining_pct: number | null;
|
|
60
59
|
reset_at: string | null;
|
|
61
60
|
tokens_remaining: number | null;
|
|
62
61
|
requests_remaining: number | null;
|
|
63
62
|
captured_at: string;
|
|
63
|
+
source: string;
|
|
64
64
|
windows?: {
|
|
65
65
|
label: string;
|
|
66
66
|
remaining_pct: number | null;
|
|
@@ -68,12 +68,12 @@ export declare const QuotaUsageSnapshotSchema: z.ZodObject<{
|
|
|
68
68
|
tokens_remaining?: number | null | undefined;
|
|
69
69
|
}[] | undefined;
|
|
70
70
|
}, {
|
|
71
|
-
source: string;
|
|
72
71
|
remaining_pct: number | null;
|
|
73
72
|
reset_at: string | null;
|
|
74
73
|
tokens_remaining: number | null;
|
|
75
74
|
requests_remaining: number | null;
|
|
76
75
|
captured_at: string;
|
|
76
|
+
source: string;
|
|
77
77
|
windows?: {
|
|
78
78
|
label: string;
|
|
79
79
|
remaining_pct: number | null;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { HostModelRosterEntry } from "../quota/scheduler.js";
|
|
2
|
+
import type { AntigravityConfig, ClaudeCodeConfig, DispatchableSource, ProviderName, VSCodeTaskConfig } from "./sessionConfig.js";
|
|
3
|
+
/**
|
|
4
|
+
* The host-emitted description of the auditor DRIVING this run — its provider
|
|
5
|
+
* identity, own launch transport, and dispatch-capability handshake for its own
|
|
6
|
+
* model/context. All optional: a field is present only when the host declared it
|
|
7
|
+
* this invocation. (G1: collapsed the former `--host-*` flag bag onto
|
|
8
|
+
* `descriptor.self`. G2: folded the driver's provider identity + its own launch
|
|
9
|
+
* blocks onto `self`, so the descriptor fully describes WHO drives + HOW to launch
|
|
10
|
+
* it, with the reachable dispatch pool on {@link AuditorDescriptor.sources}.)
|
|
11
|
+
*/
|
|
12
|
+
export interface AuditorSelf {
|
|
13
|
+
/**
|
|
14
|
+
* The driver's provider identity — the conversation-host/quota-attribution key
|
|
15
|
+
* for THIS run (collapsed from the retired inventory's `provider` /
|
|
16
|
+
* `host_provider`, which were the same identity). Absent ⇒ resolve() leaves the
|
|
17
|
+
* effective provider to env auto-detection (`resolveConversationHostProvider`).
|
|
18
|
+
*/
|
|
19
|
+
provider?: ProviderName;
|
|
20
|
+
/** Opaque model identity (was `--host-model-id`); a quota-key segment only. */
|
|
21
|
+
model_id?: string;
|
|
22
|
+
/** Ordered model roster, lowest rank first (was `--host-models`). */
|
|
23
|
+
roster?: HostModelRosterEntry[];
|
|
24
|
+
/** Context-window (input) tokens the host reports (was `--host-context-tokens`). */
|
|
25
|
+
context_tokens?: number;
|
|
26
|
+
/** Output-token cap the host reports (was `--host-output-tokens`). */
|
|
27
|
+
output_tokens?: number;
|
|
28
|
+
/** Operator override for in-flight subagent cap (was `--host-max-active-subagents`). */
|
|
29
|
+
max_active_subagents?: number;
|
|
30
|
+
/**
|
|
31
|
+
* The driver's declared parallel-worker concurrency cap (the former
|
|
32
|
+
* `sessionConfig.parallel_workers`) — dispatch capability, so it rides the
|
|
33
|
+
* descriptor, not the repo config. Feeds `resolveHostConcurrencyLimit` /
|
|
34
|
+
* `resolveHostActiveSubagentLimit` via the resolved effective config.
|
|
35
|
+
*/
|
|
36
|
+
parallel_workers?: number;
|
|
37
|
+
/** Tristate: host can dispatch subagents (was `--host-can-dispatch-subagents`). */
|
|
38
|
+
can_dispatch_subagents?: boolean;
|
|
39
|
+
/** Host can restrict subagent tools (was `--host-can-restrict-subagent-tools`). */
|
|
40
|
+
can_restrict_subagent_tools?: boolean;
|
|
41
|
+
/** Host can select subagent model (was `--host-can-select-subagent-model`). */
|
|
42
|
+
can_select_subagent_model?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The driver's OWN launch transport, for the host/IDE providers that are NOT
|
|
45
|
+
* generic dispatchable sources ({@link DispatchableSource} excludes exactly
|
|
46
|
+
* `claude-code`/`vscode-task`/`antigravity`, which are driven through their
|
|
47
|
+
* host/IDE, not an endpoint+parameters source). The dispatchable backends'
|
|
48
|
+
* launch config rides `sources[]` instead. Present only for a configured
|
|
49
|
+
* non-default host command or IDE-task template; absent ⇒ the driver
|
|
50
|
+
* self-launches with defaults.
|
|
51
|
+
*/
|
|
52
|
+
claude_code?: ClaudeCodeConfig;
|
|
53
|
+
vscode_task?: VSCodeTaskConfig;
|
|
54
|
+
antigravity?: AntigravityConfig;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The current driver's dispatch handshake, carried as ONE `--auditor <json>` flag
|
|
58
|
+
* (G1 replaced the N `--host-*` flags with this single JSON transport). Re-emitted
|
|
59
|
+
* onto every continue-command so the descriptor RIDES the command the driver runs
|
|
60
|
+
* to advance — surviving that driver's own steps without the host re-appending
|
|
61
|
+
* flags each time (auditor-agnostic robustness; the founding capability-inheritance
|
|
62
|
+
* bug was that a bare continue-command dropped the handshake, so a resume fell back
|
|
63
|
+
* to the stored session config). A *different* driver entering through its own
|
|
64
|
+
* loader supplies its own `--auditor`, overriding this descriptor.
|
|
65
|
+
* [[capability-is-per-auditor-not-per-audit]] [[unified-dispatch-worker-model]]
|
|
66
|
+
*/
|
|
67
|
+
export interface AuditorDescriptor {
|
|
68
|
+
/** Never-inherit auditor id STAMP — wired in G5; optional/unused in G1. */
|
|
69
|
+
auditor_id?: string;
|
|
70
|
+
/** When the descriptor was resolved — wired in G5; optional/unused in G1. */
|
|
71
|
+
resolved_at?: number;
|
|
72
|
+
/** The driving auditor's identity, own launch transport, and model scalars. */
|
|
73
|
+
self: AuditorSelf;
|
|
74
|
+
/**
|
|
75
|
+
* The reachable dispatch pool the CURRENT auditor can spill work onto — the
|
|
76
|
+
* uniform `DispatchableSource[]` (NIM/vLLM endpoints, headless CLIs, subprocess
|
|
77
|
+
* templates), each with its own endpoint/parameters/quota. Resolved from the
|
|
78
|
+
* auditor's OWN environment (the deterministic source-emitter's `declared ∩
|
|
79
|
+
* ambient-verifiable` intersection), never the repo session-config
|
|
80
|
+
* ([[capability-is-per-auditor-not-per-audit]]). Absent/empty ⇒ the driver
|
|
81
|
+
* self-drives with no additional backends. (G2 resliced the retired
|
|
82
|
+
* `inventory` — provider + host/IDE launch blocks moved to {@link self}, the
|
|
83
|
+
* per-backend dispatch blocks folded here as sources.)
|
|
84
|
+
*/
|
|
85
|
+
sources?: DispatchableSource[];
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The descriptor for a driver that had NO host handshake — it can report nothing
|
|
89
|
+
* about itself, but it still has an environment.
|
|
90
|
+
*
|
|
91
|
+
* The descriptor's fields split along a verified line, and this helper is that line
|
|
92
|
+
* made explicit:
|
|
93
|
+
* - **ENVIRONMENT-class** (`sources[]`, provider identity, dispatch capability) — the
|
|
94
|
+
* backends THIS PROCESS can spawn. Resolved in-process; a handshake was never
|
|
95
|
+
* needed for them (`resolveAmbientSources`: `declared ∩ ambient-verifiable`).
|
|
96
|
+
* - **HOST-SELF-class** (`model_id` / `context_tokens` / `output_tokens` / `roster`) —
|
|
97
|
+
* "I am model X with an N-token window." Genuinely unknowable to a spawned CLI: the
|
|
98
|
+
* running agent's model identity is not on PATH, not an env var, not a file. Absent
|
|
99
|
+
* here, so the host pool sizes to the conservative floor. That is a fidelity
|
|
100
|
+
* degradation, never a block.
|
|
101
|
+
*
|
|
102
|
+
* ⚠ NOT interchangeable with a `null` descriptor. `resolveSessionConfig(intent, null)`
|
|
103
|
+
* FAILS CLOSED to driver-self-only — "resolve no pool at all" — and short-circuits
|
|
104
|
+
* before ambient resolution. This says "resolve my pool from ambient reach; I just
|
|
105
|
+
* can't tell you about myself." Remediate passing `null` (it has no `--auditor` flag)
|
|
106
|
+
* is what made it dispatch with NO pool — an un-released capability regression vs
|
|
107
|
+
* v0.32.68, where `sources[]` was read straight off disk. Returns a FRESH object per
|
|
108
|
+
* call so no caller can mutate a shared literal.
|
|
109
|
+
* [[capability-is-per-auditor-not-per-audit]]
|
|
110
|
+
*/
|
|
111
|
+
export declare function ambientAuditorDescriptor(): AuditorDescriptor;
|
|
112
|
+
//# sourceMappingURL=auditorDescriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditorDescriptor.d.ts","sourceRoot":"","sources":["../../../src/shared/types/auditorDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAChC,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mFAAmF;IACnF,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,mFAAmF;IACnF,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,+EAA+E;IAC/E,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,IAAI,EAAE,WAAW,CAAC;IAClB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,wBAAwB,IAAI,iBAAiB,CAE5D"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The descriptor for a driver that had NO host handshake — it can report nothing
|
|
3
|
+
* about itself, but it still has an environment.
|
|
4
|
+
*
|
|
5
|
+
* The descriptor's fields split along a verified line, and this helper is that line
|
|
6
|
+
* made explicit:
|
|
7
|
+
* - **ENVIRONMENT-class** (`sources[]`, provider identity, dispatch capability) — the
|
|
8
|
+
* backends THIS PROCESS can spawn. Resolved in-process; a handshake was never
|
|
9
|
+
* needed for them (`resolveAmbientSources`: `declared ∩ ambient-verifiable`).
|
|
10
|
+
* - **HOST-SELF-class** (`model_id` / `context_tokens` / `output_tokens` / `roster`) —
|
|
11
|
+
* "I am model X with an N-token window." Genuinely unknowable to a spawned CLI: the
|
|
12
|
+
* running agent's model identity is not on PATH, not an env var, not a file. Absent
|
|
13
|
+
* here, so the host pool sizes to the conservative floor. That is a fidelity
|
|
14
|
+
* degradation, never a block.
|
|
15
|
+
*
|
|
16
|
+
* ⚠ NOT interchangeable with a `null` descriptor. `resolveSessionConfig(intent, null)`
|
|
17
|
+
* FAILS CLOSED to driver-self-only — "resolve no pool at all" — and short-circuits
|
|
18
|
+
* before ambient resolution. This says "resolve my pool from ambient reach; I just
|
|
19
|
+
* can't tell you about myself." Remediate passing `null` (it has no `--auditor` flag)
|
|
20
|
+
* is what made it dispatch with NO pool — an un-released capability regression vs
|
|
21
|
+
* v0.32.68, where `sources[]` was read straight off disk. Returns a FRESH object per
|
|
22
|
+
* call so no caller can mutate a shared literal.
|
|
23
|
+
* [[capability-is-per-auditor-not-per-audit]]
|
|
24
|
+
*/
|
|
25
|
+
export function ambientAuditorDescriptor() {
|
|
26
|
+
return { self: {} };
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=auditorDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditorDescriptor.js","sourceRoot":"","sources":["../../../src/shared/types/auditorDescriptor.ts"],"names":[],"mappings":"AA+FA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,wBAAwB;IACtC,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AACtB,CAAC"}
|
|
@@ -25,7 +25,7 @@ export declare const PROVIDER_CONFIRMATION_RESULT_VERSION: "1.1.0";
|
|
|
25
25
|
* plain input; the tool owns the canonical envelope it is promoted into (the
|
|
26
26
|
* per-tool `provider_confirmation.json` seam + the shared
|
|
27
27
|
* `provider-confirmation.json`) — the input/envelope split so the tool stays the
|
|
28
|
-
* sole writer of the
|
|
28
|
+
* sole writer of the discovered pool + cost annotation.
|
|
29
29
|
*/
|
|
30
30
|
export declare const PROVIDER_CONFIRMATION_INPUT_VERSION: "provider-confirmation-input/v1";
|
|
31
31
|
/**
|
|
@@ -58,8 +58,14 @@ export interface ProviderConfirmationInput {
|
|
|
58
58
|
* both provider pools and host models so one total cost order drives dispatch.
|
|
59
59
|
*/
|
|
60
60
|
cost_order?: string[];
|
|
61
|
-
/**
|
|
62
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Exclusion patterns ruling backends out of the dispatchable pool
|
|
63
|
+
* (`DispatchExclusionPattern`): `provider:model` (the default granularity — the
|
|
64
|
+
* operator confirms *model* choices), the coarser bare `provider`, or an
|
|
65
|
+
* endpoint host. Kept verbatim: the grammar is open, so an unrecognized pattern
|
|
66
|
+
* is inert rather than dropped.
|
|
67
|
+
*/
|
|
68
|
+
exclude?: string[];
|
|
63
69
|
/** Self-spawn-blocked provider names the operator opts back IN. */
|
|
64
70
|
include?: ResolvedProviderName[];
|
|
65
71
|
/**
|
|
@@ -127,6 +133,60 @@ export interface SourcePoolCostEntry {
|
|
|
127
133
|
cost_order: number;
|
|
128
134
|
}
|
|
129
135
|
/** One entry in the confirmed provider pool. */
|
|
136
|
+
/**
|
|
137
|
+
* One entry of the PERSISTED confirmed pool — the operator's DECISION, and nothing
|
|
138
|
+
* else (G3 B+D).
|
|
139
|
+
*
|
|
140
|
+
* Deliberately a strict subset of {@link ConfirmedPoolEntry}: the reach half
|
|
141
|
+
* (`capability_tier` / `self_spawn_blocked` / `excluded` / `reason` /
|
|
142
|
+
* `blended_price_usd_per_mtok`) is the WRITING auditor's assessment of its own
|
|
143
|
+
* environment and must never be inherited by a reading auditor — reach is
|
|
144
|
+
* re-resolved per-auditor at the moment of use. Those fields live only on the
|
|
145
|
+
* in-memory render DTO, which never reaches disk.
|
|
146
|
+
*
|
|
147
|
+
* This is enforced by TYPE, not by a projection at the write site: if the persisted
|
|
148
|
+
* field were typed `ConfirmedPoolEntry[]`, `writeJsonFile` would serialize the reach
|
|
149
|
+
* fields regardless of intent. Unrepresentable, not guarded.
|
|
150
|
+
*/
|
|
151
|
+
export interface PersistedPoolEntry {
|
|
152
|
+
/** Canonical provider name. Half of the gate's `model_id ?? name` compare key. */
|
|
153
|
+
name: ResolvedProviderName;
|
|
154
|
+
/**
|
|
155
|
+
* The reach half, branded `never` so it is genuinely UNREPRESENTABLE here.
|
|
156
|
+
*
|
|
157
|
+
* ⚠ These are load-bearing, not documentation. `PersistedPoolEntry` is otherwise a
|
|
158
|
+
* structural SUBSET of {@link ConfirmedPoolEntry}, and TypeScript's excess-property
|
|
159
|
+
* check fires only on fresh object literals — so without these, a `ConfirmedPoolEntry`
|
|
160
|
+
* (or a `RenderedProviderConfirmation`) assigns cleanly to the persisted type and the
|
|
161
|
+
* writer's whole reach assessment serializes to disk with NO compiler signal. An
|
|
162
|
+
* independent review proved exactly that against this file. The two builders take
|
|
163
|
+
* identical parameter lists and differ by one word, so a swapped call site is a real
|
|
164
|
+
* hazard; this is what makes the swap a type error instead of a silent leak.
|
|
165
|
+
*/
|
|
166
|
+
capability_tier?: never;
|
|
167
|
+
self_spawn_blocked?: never;
|
|
168
|
+
excluded?: never;
|
|
169
|
+
reason?: never;
|
|
170
|
+
blended_price_usd_per_mtok?: never;
|
|
171
|
+
/**
|
|
172
|
+
* Representative model id this entry is priced/ordered by. The dispatch
|
|
173
|
+
* cost-position key, and the finer half of the gate's compare key. Absent when the
|
|
174
|
+
* model is not knowable at confirmation time (a CLI backend's model arrives only
|
|
175
|
+
* at the dispatch handshake).
|
|
176
|
+
*/
|
|
177
|
+
model_id?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Operator-confirmed 0-based cost position (rung 1 of costRank). Lower routes
|
|
180
|
+
* first. Read back at dispatch via `resolveConfirmedCostPositions`.
|
|
181
|
+
*/
|
|
182
|
+
cost_order?: number;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* The FULL in-memory pool entry — the Gate-0 RENDER DTO. Carries the persisted
|
|
186
|
+
* decision ({@link PersistedPoolEntry}) plus this auditor's freshly-derived reach,
|
|
187
|
+
* which the operator needs to SEE (tier, price, why a backend is excluded) but which
|
|
188
|
+
* must never be persisted for another auditor to inherit.
|
|
189
|
+
*/
|
|
130
190
|
export interface ConfirmedPoolEntry {
|
|
131
191
|
/** Canonical provider name. */
|
|
132
192
|
name: ResolvedProviderName;
|
|
@@ -143,11 +203,9 @@ export interface ConfirmedPoolEntry {
|
|
|
143
203
|
* active session of that same agent (claude-code under `CLAUDECODE`, codex
|
|
144
204
|
* under `CODEX`). Such an entry is `excluded: true` by default — and so out of
|
|
145
205
|
* the dispatchable pool — unless the operator explicitly re-includes it. This
|
|
146
|
-
* flag is the security signal
|
|
206
|
+
* flag is the security signal.
|
|
147
207
|
*/
|
|
148
208
|
self_spawn_blocked?: boolean;
|
|
149
|
-
/** Optional reason for exclusion or detection restriction. */
|
|
150
|
-
reason?: string;
|
|
151
209
|
/**
|
|
152
210
|
* Representative model id this entry is priced/ordered by (cost-first routing;
|
|
153
211
|
* spec/cost-first-routing.md). For a configured API pool it is the configured
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerConfirmation.d.ts","sourceRoot":"","sources":["../../../src/shared/types/providerConfirmation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAM3E;;;;;;;GAOG;AACH,eAAO,MAAM,oCAAoC,EAAG,OAAgB,CAAC;AAMrE;;;;;;;GAOG;AACH,eAAO,MAAM,mCAAmC,EAC9C,gCAAyC,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,sDAAsD;IACtD,cAAc,EAAE,OAAO,mCAAmC,CAAC;IAC3D;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB
|
|
1
|
+
{"version":3,"file":"providerConfirmation.d.ts","sourceRoot":"","sources":["../../../src/shared/types/providerConfirmation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAM3E;;;;;;;GAOG;AACH,eAAO,MAAM,oCAAoC,EAAG,OAAgB,CAAC;AAMrE;;;;;;;GAOG;AACH,eAAO,MAAM,mCAAmC,EAC9C,gCAAyC,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB;AAED;;;;;;GAMG;AACH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E,KAAK,CAAC;IACf,0BAA0B,CAAC,EAAE,KAAK,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,+BAA+B;IAC/B,IAAI,EAAE,oBAAoB,CAAC;IAC3B,kDAAkD;IAClD,eAAe,EAAE,cAAc,CAAC;IAChC;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,WAAW,0BAA0B;IACzC,wEAAwE;IACxE,cAAc,EAAE,OAAO,oCAAoC,CAAC;IAC5D,yDAAyD;IACzD,YAAY,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,aAAa,EAAE,kBAAkB,EAAE,CAAC;IACpC;;;OAGG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -29,7 +29,7 @@ export const PROVIDER_CONFIRMATION_RESULT_VERSION = "1.1.0";
|
|
|
29
29
|
* plain input; the tool owns the canonical envelope it is promoted into (the
|
|
30
30
|
* per-tool `provider_confirmation.json` seam + the shared
|
|
31
31
|
* `provider-confirmation.json`) — the input/envelope split so the tool stays the
|
|
32
|
-
* sole writer of the
|
|
32
|
+
* sole writer of the discovered pool + cost annotation.
|
|
33
33
|
*/
|
|
34
34
|
export const PROVIDER_CONFIRMATION_INPUT_VERSION = "provider-confirmation-input/v1";
|
|
35
35
|
//# sourceMappingURL=providerConfirmation.js.map
|
|
@@ -52,6 +52,26 @@ export declare function resolveRollingEngineFlag(options: {
|
|
|
52
52
|
envVarName: string;
|
|
53
53
|
env?: NodeJS.ProcessEnv;
|
|
54
54
|
}): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the run is unattended (autonomous). Host-agnostic — ONE flag drives the
|
|
57
|
+
* whole path. Resolution order: `sessionConfig.autonomous_mode` →
|
|
58
|
+
* `AUDIT_TOOLS_AUTONOMOUS` env → false (the attended/interactive default, so a gate
|
|
59
|
+
* halts for a human unless autonomy is explicitly requested).
|
|
60
|
+
*
|
|
61
|
+
* Unlike {@link resolveHostDispatchCapability} / {@link resolveRollingEngineFlag},
|
|
62
|
+
* this takes NO per-tool `envVarName`: attendedness is a property of the RUN, not of
|
|
63
|
+
* one tool's invocation, and the same pipeline drives audit→remediate end to end. A
|
|
64
|
+
* run that is unattended for the auditor is unattended for the remediator, so a
|
|
65
|
+
* per-tool name could only ever encode a contradiction. (Lifted out of
|
|
66
|
+
* `src/remediate/` for G3's reconciliation gate — audit needs the same flag; the old
|
|
67
|
+
* `REMEDIATE_AUTONOMOUS` name went with the fork.)
|
|
68
|
+
*/
|
|
69
|
+
export declare function resolveAutonomousMode(options?: {
|
|
70
|
+
sessionConfig?: {
|
|
71
|
+
autonomous_mode?: boolean;
|
|
72
|
+
} | null;
|
|
73
|
+
env?: NodeJS.ProcessEnv;
|
|
74
|
+
}): boolean;
|
|
55
75
|
export declare const SESSION_UI_MODES: readonly ["visible", "headless"];
|
|
56
76
|
export type SessionUiMode = (typeof SESSION_UI_MODES)[number];
|
|
57
77
|
export interface SubprocessTemplateConfig {
|
|
@@ -286,37 +306,6 @@ export interface DispatchableSource {
|
|
|
286
306
|
*/
|
|
287
307
|
capability_rank?: number;
|
|
288
308
|
}
|
|
289
|
-
/**
|
|
290
|
-
* Discovery config for a repair-proxy dispatch backend — an OpenAI-compatible
|
|
291
|
-
* multiplexer that fronts many HTTP providers/models behind ONE endpoint. audit-tools
|
|
292
|
-
* reads its `GET {base_url}/registry`, expands the reachable providers into one
|
|
293
|
-
* {@link DispatchableSource} per selected `provider/model`, and dispatches through the
|
|
294
|
-
* UNCHANGED `openai-compatible` transport (the proxy routes the namespaced model).
|
|
295
|
-
* Endpoint/host operator-supplied — no hardcoded proxy URL in core logic.
|
|
296
|
-
*/
|
|
297
|
-
export interface RepairProxyConfig {
|
|
298
|
-
/** The repair-proxy root URL. `/registry` is read for discovery; `/v1/chat/completions`
|
|
299
|
-
* is the dispatch transport (appended by `OpenAiCompatibleProvider`). */
|
|
300
|
-
base_url: string;
|
|
301
|
-
/** Env var holding the proxy API key, if the proxy requires one. */
|
|
302
|
-
api_key_env?: string;
|
|
303
|
-
/** Per reachable backend provider, take the top-K models by capability. Default 5. */
|
|
304
|
-
top_k?: number;
|
|
305
|
-
/**
|
|
306
|
-
* Per-backend-provider overrides keyed by the registry provider name. `cost_per_mtok`
|
|
307
|
-
* seeds the admission cost rank (else resolved from models.dev at rank time);
|
|
308
|
-
* `enabled: false` excludes that provider from discovery. `per_model_limits: true`
|
|
309
|
-
* isolates each model's 429/cooldown domain (pool `account` = `provider/model`) instead
|
|
310
|
-
* of the default provider-wide fold (`account` = provider) — set it for a provider whose
|
|
311
|
-
* models carry genuinely distinct rate limits. Per-pool token/concurrency limits are
|
|
312
|
-
* per-model regardless; this only scopes the shared-cooldown axis.
|
|
313
|
-
*/
|
|
314
|
-
providers?: Record<string, {
|
|
315
|
-
cost_per_mtok?: number;
|
|
316
|
-
enabled?: boolean;
|
|
317
|
-
per_model_limits?: boolean;
|
|
318
|
-
}>;
|
|
319
|
-
}
|
|
320
309
|
export interface BlockQuotaConfig {
|
|
321
310
|
context_tokens?: number;
|
|
322
311
|
reserved_output_tokens?: number;
|
|
@@ -486,29 +475,23 @@ export interface DesignReviewConfig {
|
|
|
486
475
|
*/
|
|
487
476
|
perspective_tier?: DispatchModelTier;
|
|
488
477
|
}
|
|
489
|
-
/**
|
|
490
|
-
* Forward-declared shape for ConfirmedProviderPool so SessionConfig does not
|
|
491
|
-
* take a hard dependency on the providerConfirmation module (which imports from
|
|
492
|
-
* this file). The authoritative definition lives in providers/providerConfirmation.ts.
|
|
493
|
-
*/
|
|
494
|
-
export interface ConfirmedProviderPoolRef {
|
|
495
|
-
providers: unknown[];
|
|
496
|
-
excluded: string[];
|
|
497
|
-
addedUndetected: unknown[];
|
|
498
|
-
}
|
|
499
478
|
export interface SessionConfig {
|
|
500
479
|
provider?: ProviderName;
|
|
501
480
|
/**
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
*
|
|
505
|
-
* `
|
|
506
|
-
*
|
|
507
|
-
*
|
|
508
|
-
*
|
|
509
|
-
*
|
|
510
|
-
*
|
|
511
|
-
*
|
|
481
|
+
* The CONVERSATION-HOST identity — the auditor/agent actually driving THIS
|
|
482
|
+
* next-step process, whose account meter the dispatch fan-out is charged against
|
|
483
|
+
* (a quota-ATTRIBUTION key). On the effective config produced by
|
|
484
|
+
* `resolveSessionConfig`, this is set to the SAME value as `provider` from the
|
|
485
|
+
* descriptor's `self.provider` (G2 collapsed the retired inventory's separate
|
|
486
|
+
* `provider`/`host_provider` into one driver identity — a demoted headless backend
|
|
487
|
+
* now rides `sources[]`, not a distinct `provider` field, so the two no longer
|
|
488
|
+
* diverge on the descriptor path). Still honored when a programmatic caller injects
|
|
489
|
+
* an effective config with them distinct (e.g. a test). Normally left unset on the
|
|
490
|
+
* intent: `resolveConversationHostProvider` auto-detects the real host from the same
|
|
491
|
+
* in-session env signals the self-spawn guard reads (`isSelfSpawnBlocked` — CODEX* ⇒
|
|
492
|
+
* codex, CLAUDECODE ⇒ claude-code), defaulting to `claude-code`. The retained
|
|
493
|
+
* `--host-provider` flag folds onto `descriptor.self.provider`. `"auto"` is treated
|
|
494
|
+
* as unset (fall through to env detection).
|
|
512
495
|
*/
|
|
513
496
|
host_provider?: ProviderName;
|
|
514
497
|
timeout_ms?: number;
|
|
@@ -544,12 +527,6 @@ export interface SessionConfig {
|
|
|
544
527
|
* provider) is folded in as one implicit source for back-compat.
|
|
545
528
|
*/
|
|
546
529
|
sources?: DispatchableSource[];
|
|
547
|
-
/**
|
|
548
|
-
* Discover dispatchable backends from a repair-proxy `/registry` endpoint and
|
|
549
|
-
* expand them into per-`provider/model` {@link DispatchableSource}s at pool-build
|
|
550
|
-
* time. See {@link RepairProxyConfig}.
|
|
551
|
-
*/
|
|
552
|
-
repair_proxy?: RepairProxyConfig;
|
|
553
530
|
agent_task_batch_size?: number;
|
|
554
531
|
parallel_workers?: number;
|
|
555
532
|
block_quota?: BlockQuotaConfig;
|
|
@@ -571,13 +548,44 @@ export interface SessionConfig {
|
|
|
571
548
|
dispatch?: DispatchConfig;
|
|
572
549
|
/** Optional design-review tuning (focused reading list budget). */
|
|
573
550
|
design_review?: DesignReviewConfig;
|
|
574
|
-
/**
|
|
575
|
-
* Confirmed provider pool persisted after Gate-0 confirmation. Carries the
|
|
576
|
-
* operator-validated set of available providers across the audit→remediate
|
|
577
|
-
* session (INV-S03). Typed as ConfirmedProviderPoolRef here to avoid a
|
|
578
|
-
* circular import; the full ConfirmedProviderPool type lives in
|
|
579
|
-
* providers/providerConfirmation.ts.
|
|
580
|
-
*/
|
|
581
|
-
confirmed_provider_pool?: ConfirmedProviderPoolRef;
|
|
582
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* The flat {@link SessionConfig} fields that constitute DISPATCH INVENTORY (the
|
|
554
|
+
* per-auditor backend/launch set), as opposed to audit INTENT. Single-sourced so
|
|
555
|
+
* the persisted-type derivation ({@link RepoSessionIntent}), the store-level
|
|
556
|
+
* validator (`validateRepoSessionIntent`), and `resolve()` cannot drift on which
|
|
557
|
+
* fields are inventory vs intent. `dispatch.rolling_engine` is deliberately absent
|
|
558
|
+
* from this flat list — it is nested under `dispatch`, so {@link RepoSessionIntent}
|
|
559
|
+
* strips it via {@link RepoDispatchConfig} separately (see there).
|
|
560
|
+
*/
|
|
561
|
+
export declare const DISPATCH_INVENTORY_FIELDS: readonly ["provider", "host_provider", "subprocess_template", "claude_code", "codex", "opencode", "openai_compatible", "vscode_task", "antigravity", "agy", "sources", "parallel_workers"];
|
|
562
|
+
export type DispatchInventoryField = (typeof DISPATCH_INVENTORY_FIELDS)[number];
|
|
563
|
+
/**
|
|
564
|
+
* The `dispatch` sub-config as it appears on {@link RepoSessionIntent}: the fan-out
|
|
565
|
+
* INTENT knobs (confirm_threshold / max_packets / risk_mass_budget / routing_tiers)
|
|
566
|
+
* WITHOUT `rolling_engine`, which is per-auditor dispatch capability carried on the
|
|
567
|
+
* {@link AuditorDescriptor}, not repo intent.
|
|
568
|
+
*/
|
|
569
|
+
export type RepoDispatchConfig = Omit<DispatchConfig, "rolling_engine">;
|
|
570
|
+
/**
|
|
571
|
+
* The PERSISTED session type — audit INTENT + policy + budgeting ONLY, with every
|
|
572
|
+
* dispatch-inventory field removed so a resolved backend/launch set is UNREPRESENTABLE
|
|
573
|
+
* on disk (`session-config.json`). Derived from {@link SessionConfig} by omitting the
|
|
574
|
+
* {@link DISPATCH_INVENTORY_FIELDS} and re-typing `dispatch` to {@link RepoDispatchConfig}
|
|
575
|
+
* (dropping `rolling_engine`), so the two can never drift on the intent/inventory line.
|
|
576
|
+
* The store reads/writes ONLY this; every dispatch consumer reads the in-memory EFFECTIVE
|
|
577
|
+
* {@link SessionConfig} produced by `resolve(intent, descriptor)`. The dispatch
|
|
578
|
+
* backend/launch set rides the per-auditor {@link AuditorDescriptor}, never inherited
|
|
579
|
+
* across auditors ([[capability-is-per-auditor-not-per-audit]],
|
|
580
|
+
* `spec/unified-dispatch-worker-model.md`, G2).
|
|
581
|
+
*
|
|
582
|
+
* Honest scope: `quota` / `block_quota` / `host_can_dispatch_subagents` are ALSO capability
|
|
583
|
+
* but remain on the intent type until G4/G5 — so this is a HALF-type (inventory removed;
|
|
584
|
+
* the other capability fields still present). The "zero dispatch/capability fields" endpoint
|
|
585
|
+
* is reached only after G4/G5. (`confirmed_provider_pool` was an inert slot and is GONE as
|
|
586
|
+
* of G3 commit C.)
|
|
587
|
+
*/
|
|
588
|
+
export type RepoSessionIntent = Omit<SessionConfig, DispatchInventoryField | "dispatch"> & {
|
|
589
|
+
dispatch?: RepoDispatchConfig;
|
|
590
|
+
};
|
|
583
591
|
//# sourceMappingURL=sessionConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionConfig.d.ts","sourceRoot":"","sources":["../../../src/shared/types/sessionConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,eAAO,MAAM,cAAc,0JAWjB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAC3D,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AAEjE;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,KAAK,IAAI,YAAY,CAM/B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE;QAAE,2BAA2B,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IACjE,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CACzB,GAAG,OAAO,CAQV;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE;YAAE,cAAc,CAAC,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IACnE,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,E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