@aiwg/cli 2026.11.1 → 2026.11.3

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 (120) hide show
  1. package/agentic/code/addons/aiwg-hooks/canonical/aiwg-prompt-discovery.yaml +9 -0
  2. package/agentic/code/addons/aiwg-hooks/hooks/aiwg-prompt-discovery.cjs +136 -0
  3. package/agentic/code/providers/capability-matrix.yaml +2 -2
  4. package/agentic/code/providers/model-capabilities.v1.json +44 -39
  5. package/agentic/code/providers/model-catalog.v1.json +3 -3
  6. package/dist/src/artifacts/cli.js +10 -11
  7. package/dist/src/artifacts/discover-cli-help.js +25 -0
  8. package/dist/src/artifacts/discover-session-facets.js +2 -1
  9. package/dist/src/artifacts/fortemi-core-prebuilt-freshness.js +28 -0
  10. package/dist/src/artifacts/fortemi-core-sync.js +3 -0
  11. package/dist/src/artifacts/framework-capabilities.js +4 -0
  12. package/dist/src/artifacts/framework-source-digest.js +1 -1
  13. package/dist/src/artifacts/index-builder.js +10 -10
  14. package/dist/src/artifacts/index-dependencies.js +72 -0
  15. package/dist/src/artifacts/query-engine-discover-output.js +13 -5
  16. package/dist/src/artifacts/query-engine-discover.js +49 -21
  17. package/dist/src/artifacts/query-engine-entries.js +56 -2
  18. package/dist/src/artifacts/query-engine-options.js +14 -1
  19. package/dist/src/artifacts/query-engine-scoring.js +8 -4
  20. package/dist/src/artifacts/query-engine-show-card.js +2 -0
  21. package/dist/src/artifacts/query-engine-show-load.js +1 -1
  22. package/dist/src/artifacts/query-engine-show.js +3 -1
  23. package/dist/src/artifacts/query-engine-templates.js +33 -0
  24. package/dist/src/artifacts/query-engine-verbose.js +25 -0
  25. package/dist/src/artifacts/relations-builder.js +49 -4
  26. package/dist/src/artifacts/relations.js +9 -0
  27. package/dist/src/artifacts/template-references.js +42 -0
  28. package/dist/src/artifacts/types.js +1 -1
  29. package/dist/src/cli/handlers/bundle-reconciliation.js +7 -3
  30. package/dist/src/cli/handlers/checkpoint-handoff.js +48 -0
  31. package/dist/src/cli/handlers/checkpoint-record.js +20 -0
  32. package/dist/src/cli/handlers/checkpoint.js +50 -17
  33. package/dist/src/cli/handlers/dataset.js +17 -0
  34. package/dist/src/cli/handlers/decision.js +1 -1
  35. package/dist/src/cli/handlers/doctor-args.js +3 -1
  36. package/dist/src/cli/handlers/doctor-help.js +2 -1
  37. package/dist/src/cli/handlers/help.js +1 -1
  38. package/dist/src/cli/handlers/refresh-bundles.js +2 -1
  39. package/dist/src/cli/handlers/refresh-managed-deployment.js +196 -0
  40. package/dist/src/cli/handlers/refresh.js +10 -2
  41. package/dist/src/cli/handlers/subcommands-discovery.js +8 -1
  42. package/dist/src/cli/handlers/use.js +26 -5
  43. package/dist/src/cli/services/deployment-verification.js +11 -7
  44. package/dist/src/config/decision-config.js +2 -1
  45. package/dist/src/config/jev-credential-reference.js +56 -0
  46. package/dist/src/config/user-config.js +13 -19
  47. package/dist/src/config/worker-write.js +4 -10
  48. package/dist/src/decision/ask.js +3 -2
  49. package/dist/src/decision/jev-credentials.js +22 -0
  50. package/dist/src/decision/ledger.js +15 -15
  51. package/dist/src/decision/offload.js +7 -8
  52. package/dist/src/decision/openbao-kv-resolver.mjs +96 -0
  53. package/dist/src/decision/openbao-runtime.js +101 -0
  54. package/dist/src/delivery/pr.js +2 -0
  55. package/dist/src/delivery/template-sections.js +56 -0
  56. package/dist/src/extensions/claude-hooks-installer.js +61 -53
  57. package/dist/src/extensions/managed-hook-script-state.js +48 -0
  58. package/dist/src/extensions/muse-managed-hooks.js +49 -0
  59. package/dist/src/issues/cli.js +3 -0
  60. package/dist/src/issues/external-cli.js +4 -1
  61. package/dist/src/issues/live.js +9 -2
  62. package/dist/src/issues/local.js +5 -1
  63. package/dist/src/issues/tracker-policy.js +11 -1
  64. package/dist/src/mcp/json-document.d.mts +2 -0
  65. package/dist/src/models/model-capabilities.v1.json +44 -39
  66. package/dist/src/models/model-catalog.v1.json +3 -3
  67. package/dist/src/models/provider-policy.js +8 -0
  68. package/dist/src/models/worker-health-readiness.js +20 -4
  69. package/dist/src/models/worker-health-snapshot.js +29 -0
  70. package/dist/src/models/worker-installation.d.mts +5 -1
  71. package/dist/src/models/worker-installation.mjs +11 -5
  72. package/dist/src/models/worker-qualification-policy.js +54 -0
  73. package/dist/src/providers/capability-matrix.yaml +2 -2
  74. package/dist/src/providers/skill-ownership.d.mts +1 -0
  75. package/dist/src/providers/transformation-receipt-integration.js +4 -2
  76. package/dist/src/providers/transformation-receipt.js +4 -2
  77. package/dist/src/serve/worker-invocation.js +4 -2
  78. package/dist/src/smiths/context-pipeline/workspace-audit.js +34 -17
  79. package/dist/src/smiths/context-pipeline/workspace-context-shared.js +12 -6
  80. package/dist/src/smiths/context-pipeline/workspace-doctor.js +48 -4
  81. package/dist/src/smiths/context-pipeline/workspace-document.js +5 -2
  82. package/dist/src/smiths/context-pipeline/workspace-migration.js +2 -1
  83. package/dist/src/smiths/hook-bridge/codex-translator.js +150 -94
  84. package/dist/src/smiths/hook-bridge/codex-trust.js +50 -0
  85. package/dist/src/smiths/hook-bridge/factory-hook-config.js +132 -0
  86. package/dist/src/smiths/hook-bridge/factory-translator.js +88 -33
  87. package/dist/src/smiths/hook-bridge/factory-trust.js +56 -0
  88. package/dist/src/smiths/hook-bridge/index.js +3 -3
  89. package/dist/src/smiths/hook-bridge/loader.js +10 -2
  90. package/dist/src/smiths/hook-bridge/prompt-discovery-gaps.js +0 -1
  91. package/dist/src/storage/workspace-permissions-health.js +64 -0
  92. package/dist/src/storage/workspace-permissions.js +51 -0
  93. package/package.json +6 -1
  94. package/tools/agents/providers/base-files.mjs +2 -1
  95. package/tools/agents/providers/base-flat-artifacts.mjs +6 -3
  96. package/tools/agents/providers/base-models-platforms.mjs +3 -3
  97. package/tools/agents/providers/base-skill-copy.mjs +2 -0
  98. package/tools/agents/providers/bound-rules-pointer.mjs +21 -0
  99. package/tools/agents/providers/claude-post-deploy.mjs +9 -5
  100. package/tools/agents/providers/codex-post-deploy.mjs +10 -0
  101. package/tools/agents/providers/factory-hooks.mjs +43 -0
  102. package/tools/agents/providers/factory.mjs +4 -91
  103. package/tools/agents/providers/muse-hooks.mjs +4 -43
  104. package/tools/agents/providers/muse-prompt-discovery.mjs +3 -7
  105. package/tools/agents/providers/packaged-codex-agents.mjs +48 -0
  106. package/tools/agents/providers/rule-delivery-surface.mjs +4 -4
  107. package/tools/agents/providers/rule-presentation.mjs +6 -5
  108. package/tools/agents/providers/rule-projection.mjs +10 -2
  109. package/tools/agents/providers/rule-startup.mjs +8 -1
  110. package/tools/cli/decision-offload-report.mjs +9 -2
  111. package/tools/plugin/issue-template-copies.mjs +24 -0
  112. package/tools/plugin/package-plugins.mjs +17 -4
  113. package/tools/ralph-external/lib/claude-adapter.mjs +2 -2
  114. package/tools/ralph-external/lib/factory-adapter.mjs +7 -8
  115. package/tools/ralph-external/lib/worker-artifacts.mjs +4 -2
  116. package/tools/ralph-external/lib/worker-final.mjs +43 -8
  117. package/tools/ralph-external/lib/worker-launch-cli.mjs +10 -1
  118. package/tools/ralph-external/lib/worker-prompt.mjs +35 -0
  119. package/tools/ralph-external/lib/worker-run-directory-refusal.mjs +8 -0
  120. package/tools/ralph-external/session-launcher.mjs +10 -7
@@ -0,0 +1,48 @@
1
+ // Compare hook bytes and deployment receipts without changing either file.
2
+ import fs from 'node:fs/promises';
3
+ import path from 'node:path';
4
+ import { createHash } from 'node:crypto';
5
+ export async function managedHookScriptState(projectRoot, file, expected) {
6
+ const target = path.resolve(projectRoot, file);
7
+ let actual;
8
+ try {
9
+ actual = await fs.readFile(target);
10
+ }
11
+ catch (error) {
12
+ return error.code === 'ENOENT' ? 'missing' : 'unreadable';
13
+ }
14
+ const digest = `sha256:${createHash('sha256').update(actual).digest('hex')}`;
15
+ // Writers may record hooks beside the script, at the provider root, or in
16
+ // the project-scoped receipt. Match the same relative claims as preservation.
17
+ const projectReceipt = path.join(projectRoot, '.aiwg/.aiwg-manifest.json');
18
+ const receipts = [];
19
+ for (let dir = path.dirname(target); dir !== path.resolve(projectRoot); dir = path.dirname(dir)) {
20
+ if (!dir.startsWith(`${path.resolve(projectRoot)}${path.sep}`))
21
+ break;
22
+ receipts.push(path.join(dir, '.aiwg-manifest.json'));
23
+ }
24
+ receipts.push(projectReceipt);
25
+ for (const receipt of receipts) {
26
+ let doc;
27
+ try {
28
+ doc = JSON.parse(await fs.readFile(receipt, 'utf8'));
29
+ }
30
+ catch (error) {
31
+ if (error.code === 'ENOENT')
32
+ continue;
33
+ return 'unreadable';
34
+ }
35
+ if (!doc || typeof doc !== 'object' || Array.isArray(doc))
36
+ return 'unreadable';
37
+ const base = receipt === projectReceipt && doc.scope === 'project' ? projectRoot : path.dirname(receipt);
38
+ const name = path.relative(base, target).split(path.sep).join('/');
39
+ const record = doc.managed?.[name];
40
+ if (record?.hash && record.hash !== digest)
41
+ return 'operator-edited';
42
+ // A nearer receipt supersedes an older ancestor claim.
43
+ if (record)
44
+ break;
45
+ }
46
+ return actual.equals(expected) ? undefined : 'outdated';
47
+ }
48
+ //# sourceMappingURL=managed-hook-script-state.js.map
@@ -0,0 +1,49 @@
1
+ // Canonical Muse hook registrations shared by deployment and read-only drift checks.
2
+ export const promptDiscoveryHook = {
3
+ id: 'aiwg-prompt-discovery',
4
+ event: 'UserPromptSubmit',
5
+ group: { matcher: '*', hooks: [{ type: 'command', command: 'node .muse/hooks/aiwg-prompt-discovery.cjs', timeout: 2 }] },
6
+ reason: 'Inject strong AIWG candidates or require discover before answering or declining; skip system turns, bounded and fail open.',
7
+ removal: 'Set AIWG_PROMPT_DISCOVERY=0, or remove this group from .muse/hooks.json.',
8
+ };
9
+ /**
10
+ * The AIWG-managed hook set. Each entry carries a stated reason (why this
11
+ * hook runs on the operator's machine, outside the agent sandbox) and a
12
+ * removal path (how the operator takes it back out).
13
+ *
14
+ * SessionEnd is intentionally *not* installed yet: Muse documents SessionEnd
15
+ * as observational-only (its output cannot block termination or inject
16
+ * context), and AIWG has no session-catalog note command to invoke — wiring
17
+ * a hook to a command that does not exist would fail every session end.
18
+ * When a real catalog-note command lands, it slots in here with its own
19
+ * reason + removal path.
20
+ */
21
+ export const AIWG_MANAGED_HOOKS = [
22
+ {
23
+ id: 'aiwg-session-start',
24
+ event: 'SessionStart',
25
+ // Muse matcher groups take ONLY `hooks` + optional `matcher`; no
26
+ // in-band AIWG tags (they would break the group).
27
+ //
28
+ // Muse Code 1.4.0 parses hook stdout as hook output: empty output, plain
29
+ // text, and `{"hookSpecificOutput": ...}` are accepted, but any other
30
+ // JSON key fails the hook ("unsupported `deploymentFailures` in output of
31
+ // SessionStart hook output"). `aiwg refresh --quiet` prints its JSON
32
+ // report, so stdout is discarded; the exit status still records a failed
33
+ // drift check in Muse's hook log. `--provider muse` is required because
34
+ // provider detection is fail-closed for muse and would resolve `claude`.
35
+ // Hook commands run through a shell, so the redirect is honored.
36
+ group: {
37
+ matcher: '*',
38
+ hooks: [{ type: 'command', command: 'aiwg refresh --dry-run --quiet --provider muse > /dev/null', timeout: 60 }],
39
+ },
40
+ reason: 'Session-start drift check. Runs a read-only `aiwg refresh --dry-run --provider muse` ' +
41
+ 'and records its exit status in the Muse hook log. Dry-run by construction: it ' +
42
+ 'never mutates the repo, and its report is not injected into the session.',
43
+ removal: 'Delete this matcher group from `.muse/hooks.json` (the one whose command is ' +
44
+ '`aiwg refresh --dry-run --quiet --provider muse > /dev/null`), or run `aiwg use --provider muse --no-hooks` ' +
45
+ 'to stop AIWG managing hooks for this project.',
46
+ },
47
+ promptDiscoveryHook,
48
+ ];
49
+ //# sourceMappingURL=muse-managed-hooks.js.map
@@ -117,6 +117,7 @@ async function handleNew(issues, args, cwd) {
117
117
  if (plan.authorizationRequired && authorizationDigest !== plan.digest) {
118
118
  throw new Error(`Issue draft requires explicit policy authorization. Review 'aiwg issue plan', then pass --authorize-policy ${plan.digest}. No issue was written.`);
119
119
  }
120
+ await issues.requireInitialized();
120
121
  const composer = await loadIssueComposer();
121
122
  const records = new Map();
122
123
  const adapter = {
@@ -191,6 +192,8 @@ async function handleList(issues, args) {
191
192
  console.log(JSON.stringify(result, null, 2));
192
193
  return;
193
194
  }
195
+ if (result.issues.length === 0)
196
+ console.log('No matching issues found.');
194
197
  for (const issue of result.issues) {
195
198
  console.log(`${issue.id}\t${issue.status}\t${issue.priority}\t${issue.title}`);
196
199
  }
@@ -5,13 +5,16 @@ import { sensitiveInputOptions } from '../auth/sensitive-input.js';
5
5
  import { deliveryTracker } from '../delivery/tracker.js';
6
6
  export async function externalIssues(args, cwd, composition) {
7
7
  const [operation, number] = args.positional;
8
- if (!['create', 'new', 'comment', 'close'].includes(operation) || args.flags.get('provider') === 'local')
8
+ if (!['create', 'new', 'comment', 'close', 'list', 'ls'].includes(operation) || args.flags.get('provider') === 'local')
9
9
  return false;
10
10
  const config = await readAiwgConfig(cwd);
11
11
  if (!config || config.remotes?.issue_provider === 'local' || config.remotes?.issue_tracker === 'local')
12
12
  return false;
13
13
  if (!config.remotes?.issue_tracker && !['gitea', 'github'].includes(String(config.remotes?.issue_provider)))
14
14
  return false;
15
+ if (operation === 'list' || operation === 'ls') {
16
+ throw new Error('Cannot query the configured external tracker with aiwg issues list. Use its tracker tools for duplicate searches. For local storage, run aiwg issues init, then aiwg issues list --provider local.');
17
+ }
15
18
  const value = (key) => typeof args.flags.get(key) === 'string' ? args.flags.get(key) : undefined;
16
19
  if (value('provider') && value('provider') !== config.remotes?.issue_provider)
17
20
  throw new Error('--provider must match the configured tracker');
@@ -1,5 +1,5 @@
1
1
  import { resolveSensitiveInput } from '../auth/sensitive-input.js';
2
- import { checkTrackerActor } from './tracker-policy.js';
2
+ import { checkTrackerActor, trackerAuthenticationHint } from './tracker-policy.js';
3
3
  import { isInteractive } from '../cli/env.js';
4
4
  export class LiveIssueClient {
5
5
  options;
@@ -78,6 +78,7 @@ export class LiveIssueClient {
78
78
  headers['Content-Type'] = 'application/json';
79
79
  if (this.options.token)
80
80
  headers.Authorization = `Bearer ${this.options.token}`;
81
+ let authenticationFailed = false;
81
82
  try {
82
83
  const response = await this.fetchFn(`${this.baseUrl}${path}`, {
83
84
  method,
@@ -87,6 +88,7 @@ export class LiveIssueClient {
87
88
  });
88
89
  if (!response.ok) {
89
90
  const text = await response.text().catch(() => '');
91
+ authenticationFailed = response.status === 401;
90
92
  throw new Error(`${this.options.provider} issue API ${method} ${path} failed: ${response.status}${text ? ` ${redactSecrets(text, this.options.token)}` : ''}`);
91
93
  }
92
94
  // Native HTTP responses may be empty (for example Gitea merge success).
@@ -101,7 +103,12 @@ export class LiveIssueClient {
101
103
  return JSON.parse(JSON.stringify(result).split(encodedToken).join('[REDACTED]'));
102
104
  }
103
105
  catch (error) {
104
- throw new Error(redactSecrets(error instanceof Error ? error.message : 'Live issue request failed', this.options.token));
106
+ // Append trusted setup instructions after scrubbing server text: the
107
+ // generic redactor also treats the command words "secret set" as data.
108
+ const hint = authenticationFailed && this.options.actor?.login
109
+ ? ` ${trackerAuthenticationHint(this.options.provider, this.options.actor)}` : '';
110
+ const safeHint = this.options.token ? hint.split(this.options.token).join('[REDACTED]') : hint;
111
+ throw new Error(redactSecrets(error instanceof Error ? error.message : 'Live issue request failed', this.options.token) + safeHint);
105
112
  }
106
113
  }
107
114
  }
@@ -89,6 +89,9 @@ export class LocalIssueProviderCore {
89
89
  this.root = resolve(root);
90
90
  this.lockManager = new LocalIssueLockManager(this.root);
91
91
  }
92
+ async requireInitialized() {
93
+ await this.readConfig();
94
+ }
92
95
  async init(options = {}) {
93
96
  await this.ensureLayout();
94
97
  const existing = await this.readConfigIfExists();
@@ -233,6 +236,7 @@ export class LocalIssueProviderCore {
233
236
  };
234
237
  }
235
238
  async listIssues(options = {}) {
239
+ await this.requireInitialized();
236
240
  const index = await this.readIndexOrRebuild();
237
241
  const offset = options.cursor ? Number.parseInt(options.cursor, 10) : 0;
238
242
  const limit = options.limit ?? 50;
@@ -418,7 +422,7 @@ export class LocalIssueProviderCore {
418
422
  async readConfig() {
419
423
  const config = await this.readConfigIfExists();
420
424
  if (!config)
421
- throw new LocalIssueProviderError('local issues are not initialized');
425
+ throw new LocalIssueProviderError('Local issue system is not initialized. Run aiwg issues init --prefix <PROJECT> to initialize local storage; use the target tracker tools for external issues.');
422
426
  return config;
423
427
  }
424
428
  async readIndexOrRebuild() {
@@ -3,7 +3,17 @@ export async function trackerToken(provider, actor, source = {}, dependencies =
3
3
  if (actor?.credential && Object.keys(source).some(key => key !== 'prefix')) {
4
4
  throw new Error('Configured tracker_actor.credential cannot be overridden by token flags');
5
5
  }
6
- return resolveLiveIssueToken(provider, actor?.credential ?? source, dependencies);
6
+ try {
7
+ return await resolveLiveIssueToken(provider, actor?.credential ?? source, dependencies);
8
+ }
9
+ catch (error) {
10
+ if (!actor?.login)
11
+ throw error;
12
+ throw new Error(`Cannot load tracker token. ${trackerAuthenticationHint(provider, actor)}`);
13
+ }
14
+ }
15
+ export function trackerAuthenticationHint(provider, actor) {
16
+ return `Authentication required for configured tracker_actor.login ${JSON.stringify(actor.login)}. Set up a ${provider} token belonging to this actor with aiwg auth secret set <name> --value-stdin, then set remotes.tracker_actor.credential to {"store":"<name>"} (or {"env":"TOKEN_ENV"} with that variable supplied). If a credential reference is already configured, refresh that source.`;
7
17
  }
8
18
  export function checkTrackerActor(actor, login) {
9
19
  if (typeof login !== 'string' || !login)
@@ -0,0 +1,2 @@
1
+ // Types for the shared JSONC settings reader.
2
+ export function parseJson(raw: string): unknown;
@@ -256,7 +256,7 @@
256
256
  "id": "claude-direct",
257
257
  "provider": "claude",
258
258
  "adapterVersion": "1",
259
- "supportedVersions": "2.1.295",
259
+ "supportedVersions": ">=2.1.295 <2.2.0",
260
260
  "runtimeDriver": "installed:claude",
261
261
  "catalogAdapter": {
262
262
  "kind": "file",
@@ -329,67 +329,67 @@
329
329
  "invocationProfiles": {
330
330
  "direct-shell": {
331
331
  "transport": "shell",
332
- "supportedVersions": "2.1.295",
332
+ "supportedVersions": ">=2.1.295 <2.2.0",
333
333
  "controls": {
334
334
  "model": {
335
335
  "support": "unqualified",
336
336
  "mapping": "--model ${model}; moving aliases denied",
337
- "evidence": "H: claude 2.1.295 --help (2026-10-09); --model <model> Model for the current session. Provide; full verbatim excerpts: docs/providers/claude-direct.md"
337
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); --model <model> Model for the current session. Provide; full verbatim excerpts: docs/providers/claude-direct.md"
338
338
  },
339
339
  "effort": {
340
340
  "support": "unqualified",
341
341
  "mapping": "--effort ${effort}; explicit low/medium/high/xhigh/max",
342
- "evidence": "H: claude 2.1.295 --help (2026-10-09); --effort <level> Effort level for the current session (low, medium, high, xhigh, max); full verbatim excerpts: docs/providers/claude-direct.md"
342
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); --effort <level> Effort level for the current session (low, medium, high, xhigh, max); full verbatim excerpts: docs/providers/claude-direct.md"
343
343
  },
344
344
  "sandbox": {
345
345
  "support": "unqualified",
346
346
  "mapping": "partial: --restricted confines whitelisted file tools, scoped by --tools/--allowedTools (workspace-write: Read,Glob,Grep,Edit,Write; read-only: Read,Glob,Grep); OS sandbox unavailable in CLI, external boundary required",
347
- "evidence": "H: claude 2.1.295 --help (2026-10-09); --restricted Restricted mode: removes the built-in tools that run commands or code; full verbatim excerpts: docs/providers/claude-direct.md"
347
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); --restricted Restricted mode: removes the built-in tools that run commands or code; full verbatim excerpts: docs/providers/claude-direct.md"
348
348
  },
349
349
  "approval": {
350
350
  "support": "unqualified",
351
351
  "mapping": "--permission-mode dontAsk --permission-prompts none; prompting and bypass modes denied",
352
- "evidence": "H: claude 2.1.295 --help (2026-10-09); --permission-prompts <target> Who answers permission prompts with --print: \"host\" (the SDK host or --permission-prompt-tool) or \"none\" (nobody: anything that would prompt is denied automatically; the permission mode still decides everything else); full verbatim excerpts: docs/providers/claude-direct.md"
352
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); --permission-prompts <target> Who answers permission prompts with --print: \"host\" (the SDK host or --permission-prompt-tool) or \"none\" (nobody: anything that would prompt is denied automatically; the permission mode still decides everything else); full verbatim excerpts: docs/providers/claude-direct.md"
353
353
  },
354
354
  "workdir": {
355
355
  "support": "unqualified",
356
356
  "mapping": "spawn cwd from conductor; no invented --cwd flag",
357
- "evidence": "H: claude 2.1.295 --help (2026-10-09); Usage: claude [options] [command] [prompt]; no workspace switch is emitted; full verbatim excerpts: docs/providers/claude-direct.md"
357
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); Usage: claude [options] [command] [prompt]; no workspace switch is emitted; full verbatim excerpts: docs/providers/claude-direct.md"
358
358
  },
359
359
  "finalOutput": {
360
360
  "support": "unqualified",
361
361
  "mapping": "parse exactly one success result envelope from stdout; result JSON text or structured_output; exit-zero error fails",
362
- "evidence": "H: claude 2.1.295 --help (2026-10-09); --output-format <format> Output format (only works with --print): \"text\" (default), \"json\" (single result), or \"stream-json\" (realtime streaming); full verbatim excerpts: docs/providers/claude-direct.md"
362
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); --output-format <format> Output format (only works with --print): \"text\" (default), \"json\" (single result), or \"stream-json\" (realtime streaming); full verbatim excerpts: docs/providers/claude-direct.md"
363
363
  },
364
364
  "stdin": {
365
365
  "support": "unqualified",
366
366
  "mapping": "--input-format text; brief-text on stdin through EOF; never prompt argv",
367
- "evidence": "H: claude 2.1.295 --help (2026-10-09); --input-format <format> Input format (only works with --print): \"text\" (default), or \"stream-json\"; full verbatim excerpts: docs/providers/claude-direct.md"
367
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); --input-format <format> Input format (only works with --print): \"text\" (default), or \"stream-json\"; full verbatim excerpts: docs/providers/claude-direct.md"
368
368
  },
369
369
  "structuredOutput": {
370
370
  "support": "unqualified",
371
371
  "mapping": "unavailable in current renderer: CLI --json-schema exists but schema input is not passed to this driver",
372
- "evidence": "H: claude 2.1.295 --help (2026-10-09); --json-schema <schema> JSON Schema for structured output validation.; full verbatim excerpts: docs/providers/claude-direct.md"
372
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); --json-schema <schema> JSON Schema for structured output validation (only works with --print).; full verbatim excerpts: docs/providers/claude-direct.md"
373
373
  },
374
374
  "stepCap": {
375
375
  "support": "unqualified",
376
376
  "mapping": "unavailable: --max-turns is not listed by installed help; never emitted",
377
- "evidence": "H: claude 2.1.295 --help (2026-10-09); No --max-turns line appears in claude 2.1.295 --help; full verbatim excerpts: docs/providers/claude-direct.md"
377
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); No --max-turns line appears in claude 2.1.319 --help or -p --help; full verbatim excerpts: docs/providers/claude-direct.md"
378
378
  },
379
379
  "trust": {
380
380
  "support": "unqualified",
381
381
  "mapping": "--print --safe-mode --restricted --setting-sources \"\" --strict-mcp-config --mcp-config {\"mcpServers\":{}}; inherited customization disabled",
382
- "evidence": "H: claude 2.1.295 --help (2026-10-09); --safe-mode Start with all customizations (CLAUDE.md, skills, installed plugins, hooks, MCP servers, custom commands and agents, output styles, workflows, custom themes, keybindings, and more) disabled; full verbatim excerpts: docs/providers/claude-direct.md"
382
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); --safe-mode Start with all customizations (CLAUDE.md, skills, installed plugins, hooks, MCP servers, custom commands and agents, output styles, workflows, custom themes, keybindings, and more) disabled; full verbatim excerpts: docs/providers/claude-direct.md"
383
383
  },
384
384
  "children": {
385
385
  "support": "unqualified",
386
386
  "mapping": "--tools/--allowedTools Read,Glob,Grep,Edit,Write (workspace-write) or Read,Glob,Grep (read-only) --disallowedTools Agent,Task,Bash,PowerShell,REPL,WebFetch; no child/command tool or external MCP",
387
- "evidence": "H: claude 2.1.295 --help (2026-10-09); --tools <tools...> Specify the list of available tools from the built-in set.; full verbatim excerpts: docs/providers/claude-direct.md"
387
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); --tools <tools...> Specify the list of available tools from the built-in set.; full verbatim excerpts: docs/providers/claude-direct.md"
388
388
  },
389
389
  "fallback": {
390
390
  "support": "unqualified",
391
391
  "mapping": "exact model; --safe-mode; never emit --fallback-model; model substitutions do not qualify the profile",
392
- "evidence": "H: claude 2.1.295 --help (2026-10-09); --fallback-model <model> Enable automatic fallback to specified model(s) when the default model is overloaded or not available.; full verbatim excerpts: docs/providers/claude-direct.md"
392
+ "evidence": "H: claude 2.1.319 --help and -p --help (2026-11-07); --fallback-model <model> Enable automatic fallback to specified model(s) when the default model is overloaded or not available.; full verbatim excerpts: docs/providers/claude-direct.md"
393
393
  }
394
394
  },
395
395
  "envAllowlist": [
@@ -403,6 +403,7 @@
403
403
  "Final output is the captured .stdout JSONL stream, not a CLI-created finalPath file. Normalize with ClaudeAdapter.parseWorkerFinal before verification.",
404
404
  "Unavailable: renderer schema input, help-evidenced turn cap, native MCP reasoning worker. claude mcp serve exposes only debug/help/verbose and is a code-tools server.",
405
405
  "Commands, Agent/Task, inherited MCP, hooks, plugins and skills are disabled in this restricted file-tools profile.",
406
+ "Version policy: >=2.1.295 <2.2.0 preserves the earlier help-verified baseline and accepts compatible 2.1 patch updates; 2.1.319 help was rechecked on titan on 2026-11-07. Range/resolver tests cover 2.1.317 and 2.1.319 synthetically, not live inference. Older versions, prereleases and 2.2+ remain blocked.",
406
407
  "Bare mode is not used: installed help states it changes auth to API-key-only. No account or credential files were inspected."
407
408
  ],
408
409
  "health": {
@@ -429,8 +430,8 @@
429
430
  {
430
431
  "kind": "help",
431
432
  "ref": "docs/providers/claude-direct.md",
432
- "observedAt": "2026-10-09T00:00:00Z",
433
- "cliVersion": "2.1.295"
433
+ "observedAt": "2026-11-08T01:49:23Z",
434
+ "cliVersion": "2.1.319"
434
435
  },
435
436
  {
436
437
  "kind": "repository",
@@ -1079,7 +1080,7 @@
1079
1080
  "agent": "native",
1080
1081
  "skill": "informational",
1081
1082
  "globalChild": "native",
1082
- "identifierSyntax": "Factory model ID or Light/Medium/Heavy complexity",
1083
+ "identifierSyntax": "Factory built-in model ID or custom BYOK model selector",
1083
1084
  "effortValues": [
1084
1085
  "low",
1085
1086
  "medium",
@@ -1097,7 +1098,7 @@
1097
1098
  "id": "factory-direct",
1098
1099
  "provider": "factory",
1099
1100
  "adapterVersion": "1",
1100
- "supportedVersions": "0.238.0",
1101
+ "supportedVersions": "1.0.0",
1101
1102
  "runtimeDriver": "installed:factory",
1102
1103
  "catalogAdapter": {
1103
1104
  "kind": "file",
@@ -1122,7 +1123,7 @@
1122
1123
  ],
1123
1124
  "stdin": "brief-text",
1124
1125
  "cwd": "${workspace}",
1125
- "envAllowlist": ["FACTORY_API_KEY", "HOME", "PATH"],
1126
+ "envAllowlist": ["FACTORY_API_KEY", "HOME", "OPENROUTER_API_KEY", "PATH"],
1126
1127
  "versionArgv": [
1127
1128
  "--version"
1128
1129
  ],
@@ -1147,78 +1148,82 @@
1147
1148
  "invocationProfiles": {
1148
1149
  "direct-shell": {
1149
1150
  "transport": "shell",
1150
- "supportedVersions": "0.238.0",
1151
+ "supportedVersions": "1.0.0",
1151
1152
  "controls": {
1152
1153
  "model": {
1153
1154
  "support": "unqualified",
1154
- "mapping": "[-m/--model MODEL]; exact catalog model ID, never the CLI default (gpt-6-sol) or a generic alias",
1155
- "evidence": "H: droid-cli 0.238.0 exec --help documents -m/--model <id> (default: \"gpt-6-sol\"); unqualified until live model-pin evidence"
1155
+ "mapping": "[-m/--model MODEL]; exact catalog model ID, never the CLI default or a generic alias",
1156
+ "evidence": "H: droid-cli 1.0.0 exec --help documents -m/--model <id>; unqualified until live model-pin evidence"
1156
1157
  },
1157
1158
  "effort": {
1158
1159
  "support": "unqualified",
1159
1160
  "mapping": "[-r/--reasoning-effort LEVEL]; valid levels are model-dependent (exec --help 'Model details'); never the per-model default",
1160
- "evidence": "H: droid-cli 0.238.0 exec --help documents -r/--reasoning-effort <level> (defaults per model); unqualified until live evidence"
1161
+ "evidence": "H: droid-cli 1.0.0 exec --help documents -r/--reasoning-effort <level> (defaults per model); unqualified until live evidence"
1161
1162
  },
1162
1163
  "sandbox": {
1163
1164
  "support": "unqualified",
1164
1165
  "mapping": "workspace-write -> [--auto low]; read-only -> no --auto flag (the CLI's own documented read-only default); --skip-permissions-unsafe and the medium/high --auto tiers are out of this contract's scope and are never emitted",
1165
- "evidence": "H: droid-cli 0.238.0 exec --help documents --auto <level> (low|medium|high), its 'Autonomy Levels' default read-only mode, and --skip-permissions-unsafe ('Bypass all checks - DANGEROUS!'); unqualified until live evidence"
1166
+ "evidence": "H: droid-cli 1.0.0 exec --help documents --auto <level> (low|medium|high), its 'Autonomy Levels' default read-only mode, and --skip-permissions-unsafe ('Bypass all checks - DANGEROUS!'); unqualified until live evidence"
1166
1167
  },
1167
1168
  "approval": {
1168
1169
  "support": "unqualified",
1169
1170
  "mapping": "unavailable as a separate flag: exec is non-interactive by construction and --auto (the sandbox control) is the only permission gate",
1170
- "evidence": "H: droid-cli 0.238.0 exec --help documents exec as 'Run non-interactively (for scripts/automation)' with no approval-prompt flag; unqualified until live evidence"
1171
+ "evidence": "H: prior droid-cli 0.238.0 exec --help documents exec as 'Run non-interactively (for scripts/automation)' with no approval-prompt flag; not reverified on 1.0.0, unqualified until live evidence"
1171
1172
  },
1172
1173
  "workdir": {
1173
1174
  "support": "unqualified",
1174
1175
  "mapping": "[--cwd W] conductor working root, plus the conductor process cwd",
1175
- "evidence": "H: droid-cli 0.238.0 exec --help documents --cwd <path>; unqualified until live evidence"
1176
+ "evidence": "H: droid-cli 1.0.0 exec --help documents --cwd <path>; unqualified until live evidence"
1176
1177
  },
1177
1178
  "finalOutput": {
1178
1179
  "support": "unqualified",
1179
1180
  "mapping": "unavailable as a file target: no -o/output-file flag is documented for exec (-o/--output-format selects stream shape, not a destination); the final is the last type:\"result\" line of the captured --output-format stream-json stdout stream",
1180
- "evidence": "H: droid-cli 0.238.0 exec --help documents -o/--output-format <text|json|stream-json|stream-jsonrpc|acp> with no file-path argument; D: https://docs.factory.com/droid-exec/overview documents the terminal result object shape; unqualified until live evidence"
1181
+ "evidence": "H: droid-cli 1.0.0 exec --help documents -o/--output-format <text|json|stream-json|stream-jsonrpc|acp> with no file-path argument; D: https://docs.factory.com/droid-exec/overview documents the terminal result object shape; unqualified until live evidence"
1181
1182
  },
1182
1183
  "stdin": {
1183
1184
  "support": "unqualified",
1184
1185
  "mapping": "brief-text: omitting the prompt argument makes exec read the prompt from stdin to EOF; brief text never enters argv, rendered commands or serialized plans",
1185
- "evidence": "H: droid-cli 0.238.0 exec --help's own Examples ('echo \"analyze code\" | droid exec', 'cat prompt.txt | droid exec --auto low'); unqualified until live evidence"
1186
+ "evidence": "H: titan eval on droid-cli 1.0.0 verified stdin ingestion: the brief was echoed as the first stream-json message. Live result pending: blocked by 402 No active subscription; no successful inference recorded"
1186
1187
  },
1187
1188
  "structuredOutput": {
1188
1189
  "support": "unqualified",
1189
1190
  "mapping": "unavailable: no --output-schema-equivalent flag is documented for exec",
1190
- "evidence": "H: droid-cli 0.238.0 exec --help advertises no output-schema flag; unqualified until live evidence"
1191
+ "evidence": "H: prior droid-cli 0.238.0 exec --help advertises no output-schema flag; not reverified on 1.0.0, unqualified until live evidence"
1191
1192
  },
1192
1193
  "stepCap": {
1193
1194
  "support": "unqualified",
1194
- "mapping": "unavailable: no step or turn cap flag is evidenced on 0.238.0; deadline and output-byte bounds come from the invoking shell",
1195
- "evidence": "H: droid-cli 0.238.0 exec --help advertises no step-cap flag; unknown controls block tasks requiring them"
1195
+ "mapping": "unavailable: no step or turn cap flag is evidenced on 1.0.0; deadline and output-byte bounds come from the invoking shell",
1196
+ "evidence": "H: prior droid-cli 0.238.0 exec --help advertises no step-cap flag; unknown controls block tasks requiring them"
1196
1197
  },
1197
1198
  "trust": {
1198
1199
  "support": "unqualified",
1199
- "mapping": "unknown: workspace-trust behaviour is not evidenced for non-interactive exec on 0.238.0",
1200
- "evidence": "H: droid-cli 0.238.0 exec --help documents no trust-prompt flag for exec; unqualified until live evidence"
1200
+ "mapping": "unknown: workspace-trust behaviour is not evidenced for non-interactive exec on 1.0.0",
1201
+ "evidence": "H: prior droid-cli 0.238.0 exec --help documents no trust-prompt flag for exec; not reverified on 1.0.0, unqualified until live evidence"
1201
1202
  },
1202
1203
  "children": {
1203
1204
  "support": "unqualified",
1204
1205
  "mapping": "controllable: --mission spawns worker sessions via factoryd (never emitted by this profile, which keeps every run single-agent)",
1205
- "evidence": "H: droid-cli 0.238.0 exec --help documents --mission/--worker-model/--validator-model as mission-mode only; the direct profile never emits them; unqualified until live evidence"
1206
+ "evidence": "H: prior droid-cli 0.238.0 exec --help documents --mission/--worker-model/--validator-model as mission-mode only; the direct profile never emits them; not reverified on 1.0.0, unqualified until live evidence"
1206
1207
  },
1207
1208
  "fallback": {
1208
1209
  "support": "unqualified",
1209
1210
  "mapping": "unavailable: no non-mission fallback-model flag is documented for exec (--spec-model/--worker-model/--validator-model are mission-mode only)",
1210
- "evidence": "H: droid-cli 0.238.0 exec --help scopes --spec-model/--worker-model/--validator-model to --mission/--use-spec; unknown controls block tasks requiring them"
1211
+ "evidence": "H: prior droid-cli 0.238.0 exec --help scopes --spec-model/--worker-model/--validator-model to --mission/--use-spec; unknown controls block tasks requiring them"
1211
1212
  }
1212
1213
  },
1213
- "envAllowlist": ["FACTORY_API_KEY", "HOME", "PATH"],
1214
+ "envAllowlist": ["FACTORY_API_KEY", "HOME", "OPENROUTER_API_KEY", "PATH"],
1214
1215
  "pitfalls": [
1215
1216
  "Documentation/help and synthetic observations are not authenticated live qualification.",
1217
+ "Titan 1.0.0 eval (2026-11-06, BYOK custom model via OpenRouter): the brief on stdin returns the exact smoke reply in read-only mode and with --auto low; -m selects the custom model and the stream-json system event reports it. Catalog evidence stays H; live qualification is recorded only by aiwg doctor --probe-workers --qualify.",
1218
+ "-r/--reasoning-effort is accepted but ignored for BYOK custom models: the system event reports reasoning_effort none, so effort is not enforceable on them.",
1219
+ "droid relabels custom model IDs by display name: custom:<name>-2 is reported back as custom:<name>-0. Match the model by name, not by the numeric suffix.",
1220
+ "Under --auto low a command above the tier ends the run with exit 1 and the error Exec ended early: insufficient permission to proceed; nothing runs.",
1216
1221
  "Unknown model, effort, permission or required step mappings block dispatch.",
1217
1222
  "Native MCP/client, MSP/ACP, gateway and conversation capabilities do not establish worker authority.",
1218
1223
  "--skip-permissions-unsafe is Ralph-loop legacy and never part of the direct profile.",
1219
1224
  "The stream-json/json event vocabulary (assistant/user/tool_call/tool_result/hook/error/result) is doc-sourced (docs.factory.com), not help-verified; it never promotes qualification status beyond unqualified.",
1220
1225
  "There is no -o/output-file flag on exec: the final is read from the captured stdout stream, never a separate file.",
1221
- "FACTORY_API_KEY must be present for auth; HOME locates ~/.factory/settings.json for persistent settings."
1226
+ "Auth is the Factory account (FACTORY_API_KEY or keyring) or a BYOK customModels entry in ~/.factory/settings.json whose apiKey is an env reference; the launch env must carry that variable (OPENROUTER_API_KEY is allowlisted; a BYOK key under another name blocks with Custom model apiKey references the environment variable ... which is not set). HOME locates ~/.factory/settings.json."
1222
1227
  ],
1223
1228
  "health": {
1224
1229
  "version": 1,
@@ -1244,8 +1249,8 @@
1244
1249
  {
1245
1250
  "kind": "help",
1246
1251
  "ref": "tools/ralph-external/lib/factory-adapter.mjs",
1247
- "observedAt": "2026-10-10T00:00:00Z",
1248
- "cliVersion": "0.238.0"
1252
+ "observedAt": "2026-11-06T00:00:00Z",
1253
+ "cliVersion": "1.0.0"
1249
1254
  },
1250
1255
  {
1251
1256
  "kind": "documentation",
@@ -162,17 +162,17 @@
162
162
  "factory": {
163
163
  "roles": {
164
164
  "reasoning": {
165
- "id": "heavy",
165
+ "id": "claude-opus-5",
166
166
  "status": "active",
167
167
  "observed": false
168
168
  },
169
169
  "coding": {
170
- "id": "medium",
170
+ "id": "claude-sonnet-5",
171
171
  "status": "active",
172
172
  "observed": false
173
173
  },
174
174
  "efficiency": {
175
- "id": "light",
175
+ "id": "claude-haiku-4-5-20251001",
176
176
  "status": "active",
177
177
  "observed": false
178
178
  }
@@ -146,6 +146,14 @@ export class WorkerPolicyError extends Error {
146
146
  this.name = 'WorkerPolicyError';
147
147
  }
148
148
  }
149
+ /** Only the trusted installation loader supplies this public policy-drift summary. */
150
+ export class WorkerQualificationPolicyError extends WorkerPolicyError {
151
+ pointer;
152
+ constructor(diagnostic, rejections) {
153
+ super('OG_ADAPTER_UNQUALIFIED', diagnostic.message, { rejections });
154
+ this.pointer = diagnostic.pointer;
155
+ }
156
+ }
149
157
  export class WorkerRoleEffortError extends WorkerPolicyError {
150
158
  pointer;
151
159
  constructor(role) {
@@ -138,7 +138,20 @@ export function diagnoseWorkerHealthReadiness(snapshot, request, paths = {}) {
138
138
  }
139
139
  const sharedDiagnostics = new Map();
140
140
  for (const role of roles) {
141
- const plan = resolveWorkerPlan(snapshot, { ...request, role: role });
141
+ const roleRequest = { now: request.now, context: request.context, role,
142
+ taskClass: Object.entries(snapshot.models.defaults.workerSelection?.taskClasses ?? {})
143
+ .find(([, taskRole]) => taskRole === role)?.[0] };
144
+ let plan = resolveWorkerPlan(snapshot, roleRequest);
145
+ let pendingAuthorization = false;
146
+ if (!plan.selected && plan.exclusions.some(item => item.diagnostics.some(diagnostic => diagnostic.code === 'OG_MODEL_UNAPPROVED' && diagnostic.pointer === '/request/authority'))) {
147
+ // Counterfactual offline check only: never return a launch plan or grant authority.
148
+ const authorized = resolveWorkerPlan(snapshot, { ...roleRequest,
149
+ authority: { premiumAuthorized: true, maxAutoTier: 3 } });
150
+ if (authorized.selected) {
151
+ plan = authorized;
152
+ pendingAuthorization = true;
153
+ }
154
+ }
142
155
  const isRequired = required.has(role);
143
156
  const diagnostics = [
144
157
  ...plan.diagnostics.map(diagnostic => ({ diagnostic, members: membersFor(diagnostic.pointer, role) })),
@@ -204,10 +217,13 @@ export function diagnoseWorkerHealthReadiness(snapshot, request, paths = {}) {
204
217
  message: 'Profile has degraded or unobserved health coverage; progress and stop evidence may be unavailable.',
205
218
  nextAction: 'qualify-health-signals' }, [`${tuple.group}/${tuple.member}`]);
206
219
  }
207
- add({ code: 'WORKER_ROLE_ELIGIBLE', status: 'ok', role,
220
+ add({ code: pendingAuthorization ? 'WORKER_ROLE_PENDING_AUTHORIZATION' : 'WORKER_ROLE_ELIGIBLE',
221
+ status: pendingAuthorization ? 'warn' : 'ok', role,
208
222
  pointer: `/defaults/workerSelection/roleGuidance/${role}`,
209
- message: 'Policy route is eligible; launch still requires current installation and task qualification.',
210
- nextAction: 'resolve-current-task' }, [`${tuple.group}/${tuple.member}`]);
223
+ message: pendingAuthorization
224
+ ? 'Role is ready pending authorization; --authorize-premium requires explicit operator confirmation before resolving a launch.'
225
+ : 'Policy route is eligible; launch still requires current installation and task qualification.',
226
+ nextAction: pendingAuthorization ? 'confirm-premium-with-operator' : 'resolve-current-task' }, [`${tuple.group}/${tuple.member}`]);
211
227
  }
212
228
  catch {
213
229
  if (isRequired)
@@ -0,0 +1,29 @@
1
+ // Project signed historical approval inputs for offline health checks without granting launch authority.
2
+ import { inspectRecordedWorkerQualifications } from './worker-installation.mjs';
3
+ export async function recordedWorkerHealthSnapshot(snapshot, cwd) {
4
+ const parallelism = snapshot.config.parallelism;
5
+ const policy = snapshot.models.defaults.workerSelection;
6
+ if (!parallelism || !policy)
7
+ return snapshot;
8
+ const records = await inspectRecordedWorkerQualifications({ cwd, policy, parallelism, includeInputs: true })
9
+ .catch(() => []);
10
+ const result = structuredClone(snapshot);
11
+ for (const { cli, provider, binding, adapter, observations } of records) {
12
+ if (!binding || !adapter || !observations)
13
+ continue;
14
+ const providerEntry = Object.entries(result.registry.providers).find(([id]) => id === provider)?.[1];
15
+ if (providerEntry)
16
+ providerEntry.workerAdapter = adapter;
17
+ else {
18
+ result.registry.workerAdapters ??= {};
19
+ result.registry.workerAdapters[adapter.id] = adapter;
20
+ }
21
+ result.installations[cli] = binding;
22
+ result.catalog.discovery ??= { source: 'static', fetchedAt: observations.observedAt, providers: {} };
23
+ result.catalog.discovery.instances ??= {};
24
+ // These are recorded facts only; current discovery and installation are rechecked at launch.
25
+ result.catalog.discovery.instances[cli] = observations;
26
+ }
27
+ return result;
28
+ }
29
+ //# sourceMappingURL=worker-health-snapshot.js.map
@@ -43,4 +43,8 @@ export function prepareWorkerInstallationStore(input: { workerWritableRoots: str
43
43
  /** Historical approvals only; no driver import, probe, auth read, or launch authority. */
44
44
  export function inspectRecordedWorkerQualifications(input: {
45
45
  cwd: string; policy: WorkerSelectionPolicy; parallelism: import('../config/aiwg-config.js').ParallelismConfig;
46
- }): Promise<Array<{ cli: string; provider: string }>>;
46
+ /** Include signed historical inputs for offline health projection, never launch authority. */
47
+ includeInputs?: boolean;
48
+ }): Promise<Array<{ cli: string; provider: string; binding?: WorkerResolutionBinding;
49
+ adapter?: import('./provider-policy.js').WorkerAdapterMetadata;
50
+ observations?: import('./model-discovery.js').ProviderModelDiscovery }>>;