@aiwg/cli 2026.10.11 → 2026.10.14

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 (174) hide show
  1. package/agentic/code/providers/model-catalog.v1.json +62 -12
  2. package/agentic/code/providers/pi/aiwg-bridge.ts +44 -1
  3. package/dist/src/artifacts/binding-target-identity.js +51 -0
  4. package/dist/src/artifacts/checksum-manifest.js +12 -0
  5. package/dist/src/artifacts/index-builder.js +11 -13
  6. package/dist/src/artifacts/query-engine.js +5 -11
  7. package/dist/src/cli/handlers/doctor-help.js +32 -0
  8. package/dist/src/cli/handlers/gates.js +19 -18
  9. package/dist/src/cli/handlers/models-help.js +7 -1
  10. package/dist/src/cli/handlers/models.js +3 -3
  11. package/dist/src/cli/handlers/script-runner.js +8 -5
  12. package/dist/src/cli/handlers/sessions-intake.js +104 -0
  13. package/dist/src/cli/handlers/sessions-tail.js +172 -0
  14. package/dist/src/cli/handlers/sessions.js +90 -17
  15. package/dist/src/cli/handlers/skill-lint.js +10 -3
  16. package/dist/src/cli/handlers/steward-format.js +100 -0
  17. package/dist/src/cli/handlers/steward-models.js +167 -0
  18. package/dist/src/cli/handlers/steward.js +14 -248
  19. package/dist/src/cli/handlers/use-bundle-counts.js +87 -0
  20. package/dist/src/cli/handlers/use-skill-assets.js +207 -0
  21. package/dist/src/cli/handlers/use.js +35 -216
  22. package/dist/src/cli/handlers/utilities.js +1 -24
  23. package/dist/src/config/aiwg-config.js +7 -0
  24. package/dist/src/config/authorization-cli.js +97 -0
  25. package/dist/src/config/cli-help.js +1 -0
  26. package/dist/src/config/cli.js +10 -1
  27. package/dist/src/decision/context-pruning-common.js +41 -0
  28. package/dist/src/decision/context-pruning-evaluation.js +366 -0
  29. package/dist/src/decision/context-pruning-pilot.js +431 -0
  30. package/dist/src/decision/context-pruning-types.js +19 -0
  31. package/dist/src/decision/context-pruning.js +5 -846
  32. package/dist/src/decision/ensemble/contract.js +17 -26
  33. package/dist/src/decision/ensemble-study/artifacts.js +5 -0
  34. package/dist/src/decision/ensemble-study/score.js +4 -3
  35. package/dist/src/decision/feature-export.js +3 -9
  36. package/dist/src/decision/heldout/collector.js +2 -2
  37. package/dist/src/decision/issue-triage/runtime.js +3 -9
  38. package/dist/src/decision/qualification/gates.js +2 -1
  39. package/dist/src/decision/qualification/release.js +6 -64
  40. package/dist/src/decision/routing/report.js +2 -0
  41. package/dist/src/decision/sdlc-screening.js +3 -5
  42. package/dist/src/decision/sensitivity/comparative.js +5 -3
  43. package/dist/src/extensions/manifest.js +8 -1
  44. package/dist/src/extensions/project-local-doctor.js +78 -2
  45. package/dist/src/extensions/validation.js +10 -11
  46. package/dist/src/gates/driver.js +6 -77
  47. package/dist/src/gates/evaluate.js +6 -23
  48. package/dist/src/gates/floors.js +4 -4
  49. package/dist/src/gates/index.js +3 -3
  50. package/dist/src/gates/lattice.js +26 -0
  51. package/dist/src/gates/registry.js +2 -1
  52. package/dist/src/gates/report.js +19 -7
  53. package/dist/src/gates/upstream-ceiling.js +111 -0
  54. package/dist/src/issues/audit-cli.js +120 -0
  55. package/dist/src/issues/audit-contract.js +64 -0
  56. package/dist/src/issues/audit-local.js +82 -0
  57. package/dist/src/issues/audit.js +220 -0
  58. package/dist/src/lint/rule-activation.js +15 -1
  59. package/dist/src/mission-protocol/canonical-codecs.js +270 -0
  60. package/dist/src/mission-protocol/codecs.js +22 -550
  61. package/dist/src/mission-protocol/health-trace-codecs.js +281 -0
  62. package/dist/src/mission-protocol/health-trace-types.js +43 -0
  63. package/dist/src/mission-protocol/types.js +2 -42
  64. package/dist/src/mission-protocol/worker-contract-json.js +10 -0
  65. package/dist/src/mission-protocol/worker-review-gate.js +100 -0
  66. package/dist/src/mission-protocol/worker-review-types.js +2 -0
  67. package/dist/src/models/catalog-policy.js +280 -0
  68. package/dist/src/models/index.js +1 -1
  69. package/dist/src/models/model-catalog.v1.json +62 -12
  70. package/dist/src/models/policy-resources.js +28 -0
  71. package/dist/src/models/provider-models.js +5 -8
  72. package/dist/src/models/provider-policy.js +10 -546
  73. package/dist/src/models/resolver.js +26 -8
  74. package/dist/src/models/router.js +15 -2
  75. package/dist/src/models/tiers.js +13 -0
  76. package/dist/src/models/types.js +0 -6
  77. package/dist/src/models/worker-ceilings.js +59 -0
  78. package/dist/src/models/worker-invocation-policy.js +243 -0
  79. package/dist/src/models/worker-plan.js +16 -20
  80. package/dist/src/models/worker-review-lineage.js +55 -0
  81. package/dist/src/models/worker-selection-policy.js +1 -1
  82. package/dist/src/models/wrapper-definitions.js +14 -0
  83. package/dist/src/models/wrapper-deployment.js +48 -25
  84. package/dist/src/models/wrapper-enforcement.js +72 -0
  85. package/dist/src/models/wrapper-route.js +6 -3
  86. package/dist/src/policy/authorization.js +1 -0
  87. package/dist/src/policy/hitl-check.js +80 -0
  88. package/dist/src/policy/hitl-config.js +63 -0
  89. package/dist/src/policy/hitl-receipt.js +57 -0
  90. package/dist/src/policy/hitl-types.js +4 -0
  91. package/dist/src/policy/hitl-validation.js +39 -0
  92. package/dist/src/policy/hitl.js +117 -0
  93. package/dist/src/rules/activation.d.mts +3 -1
  94. package/dist/src/rules/activation.mjs +23 -2
  95. package/dist/src/rules/gate-coverage.js +51 -0
  96. package/dist/src/rules/gate-references.js +16 -0
  97. package/dist/src/rules/rule-frontmatter.schema.json +7 -1
  98. package/dist/src/serve/worker-command-request.js +21 -4
  99. package/dist/src/serve/worker-invocation-preparation.js +3 -1
  100. package/dist/src/serve/worker-invocation.js +21 -10
  101. package/dist/src/sessions/adapters/deepseek-harness.js +1 -0
  102. package/dist/src/sessions/adapters/grok-build-native.js +269 -0
  103. package/dist/src/sessions/adapters/grok-build.js +57 -15
  104. package/dist/src/sessions/adapters/hermes-state-db.js +252 -0
  105. package/dist/src/sessions/adapters/hermes.js +42 -3
  106. package/dist/src/sessions/adapters/warp.js +1 -1
  107. package/dist/src/sessions/batch-import.js +10 -0
  108. package/dist/src/sessions/contracts.js +1 -1
  109. package/dist/src/sessions/discovery-capability.js +38 -0
  110. package/dist/src/sessions/importer.js +8 -251
  111. package/dist/src/sessions/index.js +4 -0
  112. package/dist/src/sessions/intake-dir.js +71 -0
  113. package/dist/src/sessions/normalization.js +251 -0
  114. package/dist/src/sessions/tail.js +91 -0
  115. package/dist/src/sessions/workspace-discovery.js +83 -7
  116. package/dist/src/skills/adapters/local.js +32 -9
  117. package/dist/src/skills/agent-skill-sidecar.js +28 -0
  118. package/dist/src/skills/agent-skills.js +6 -23
  119. package/dist/src/skills/claude-surface-projection.js +25 -0
  120. package/dist/src/skills/cli-display.js +33 -0
  121. package/dist/src/skills/cli.js +2 -26
  122. package/dist/src/skills/collision-discovery.js +84 -0
  123. package/dist/src/skills/deployer.js +26 -361
  124. package/dist/src/skills/deployment-ownership.js +74 -0
  125. package/dist/src/skills/deployment-policy.js +114 -0
  126. package/dist/src/skills/deployment-projection.js +152 -0
  127. package/dist/src/skills/deployment-types.js +20 -0
  128. package/dist/src/skills/doctor.js +2 -2
  129. package/dist/src/skills/exporter.js +8 -31
  130. package/dist/src/skills/importer.js +4 -26
  131. package/dist/src/skills/provider-extensions.js +41 -0
  132. package/dist/src/skills/registry.js +22 -7
  133. package/dist/src/skills/run.js +6 -0
  134. package/dist/src/skills/types.js +0 -8
  135. package/dist/src/skills/validator-resources.js +68 -0
  136. package/dist/src/skills/validator.js +6 -55
  137. package/dist/src/smiths/context-pipeline/parallelism-section.js +7 -3
  138. package/dist/src/storage/cli-migrate-options.js +125 -0
  139. package/dist/src/storage/cli-migrate.js +111 -0
  140. package/dist/src/storage/cli.js +4 -279
  141. package/dist/src/storage/migration-adapter.js +79 -0
  142. package/dist/src/storage/migration-copy.js +108 -0
  143. package/dist/src/storage/migration-protocol.js +14 -197
  144. package/dist/src/storage/migration-records.js +186 -0
  145. package/dist/src/storage/migration-types.js +12 -0
  146. package/dist/src/tracker/forge-http.js +2 -1
  147. package/dist/src/tracker/issue-pages.js +110 -0
  148. package/package.json +3 -1
  149. package/schemas/mission-v1.schema.json +335 -0
  150. package/schemas/models/model-catalog.v1.schema.json +19 -1
  151. package/schemas/models/model-config-compatibility.v1.schema.json +3 -2
  152. package/schemas/models/model-policy.v1.schema.json +1 -1
  153. package/tools/agents/providers/antigravity.mjs +3 -5
  154. package/tools/agents/providers/base.mjs +3 -3
  155. package/tools/agents/providers/claude.mjs +3 -5
  156. package/tools/agents/providers/codex.mjs +3 -5
  157. package/tools/agents/providers/copilot.mjs +3 -5
  158. package/tools/agents/providers/cursor.mjs +3 -5
  159. package/tools/agents/providers/factory.mjs +3 -5
  160. package/tools/agents/providers/grok-build.mjs +9 -7
  161. package/tools/agents/providers/model-wrapper.mjs +86 -0
  162. package/tools/agents/providers/omp.mjs +3 -1
  163. package/tools/agents/providers/openclaw.mjs +3 -5
  164. package/tools/agents/providers/opencode.mjs +3 -5
  165. package/tools/agents/providers/provider-paths-staging.mjs +44 -0
  166. package/tools/agents/providers/rule-binding-targets.mjs +146 -0
  167. package/tools/agents/providers/rule-delivery.mjs +9 -128
  168. package/tools/agents/providers/warp.mjs +3 -5
  169. package/tools/agents/providers/windsurf.mjs +3 -5
  170. package/tools/plugin/package-plugins.mjs +2 -2
  171. package/tools/skills/codex-skill-transform.mjs +232 -0
  172. package/tools/skills/deploy-skills-codex.mjs +8 -249
  173. package/tools/warp/warp-content.mjs +548 -0
  174. package/vscode-extension/schemas/aiwg.config.v1.json +177 -0
@@ -0,0 +1,110 @@
1
+ // Cursor-paged, metadata-only backlog views over the existing bounded forge transport.
2
+ import { createForgeReader, parseForgeJson, forgePagination, ForgeReadError, } from './forge-http.js';
3
+ import { AuditStop, auditDigest, boundedPageSize, decodeAuditCursor, encodeAuditCursor, parseAuditFilter, } from '../issues/audit-contract.js';
4
+ export function createForgeAuditTracker(provider, repository, transport, identity = `${provider}:${repository}`) {
5
+ if (!/^[\w.-]+\/[\w.-]+$/.test(repository) || repository.split('/').some(p => p === '.' || p === '..')) {
6
+ throw new AuditStop('tracker-repository-invalid');
7
+ }
8
+ const root = `/repos/${repository.split('/').map(encodeURIComponent).join('/')}/issues`;
9
+ const sizeKey = provider === 'github' ? 'per_page' : 'limit';
10
+ const object = (raw) => {
11
+ if (!raw || typeof raw !== 'object' || Array.isArray(raw))
12
+ throw new ForgeReadError('malformed');
13
+ return raw;
14
+ };
15
+ return {
16
+ identity,
17
+ async listMetadata(options) {
18
+ const size = boundedPageSize(options.pageSize);
19
+ const filter = parseAuditFilter(options.filter);
20
+ const scope = auditDigest([identity, size, filter]);
21
+ const cursor = options.cursor ? decodeAuditCursor(options.cursor) : null;
22
+ if (options.cursor && (!cursor || typeof cursor !== 'object'))
23
+ throw new AuditStop('cursor-invalidated');
24
+ if (cursor && (cursor.scope !== scope || !Number.isSafeInteger(cursor.page) || cursor.page < 2
25
+ || typeof cursor.previous !== 'string'))
26
+ throw new AuditStop('cursor-invalidated');
27
+ const read = async (page) => {
28
+ const query = new URLSearchParams({ state: filter.status, sort: provider === 'gitea' ? 'oldest' : 'created', direction: 'asc',
29
+ page: String(page), [sizeKey]: String(size), ...(provider === 'gitea' ? { type: 'issues' } : {}) });
30
+ if (filter.labels.length)
31
+ query.set('labels', filter.labels.join(','));
32
+ const response = await transport(`${root}?${query}`, options.signal);
33
+ if (response.body.length > options.maxBytes)
34
+ throw new AuditStop('byte-budget');
35
+ const raw = parseForgeJson(response);
36
+ if (!Array.isArray(raw) || raw.length > size)
37
+ throw new ForgeReadError('malformed');
38
+ const records = raw.map(object);
39
+ const items = records.filter(r => !r.pull_request).map(r => {
40
+ const number = r.number ?? r.index;
41
+ if (!Number.isSafeInteger(number) || Number(number) < 1 || typeof r.title !== 'string'
42
+ || typeof r.updated_at !== 'string' || (r.state !== 'open' && r.state !== 'closed'))
43
+ throw new ForgeReadError('malformed');
44
+ return { id: String(number), title: r.title, status: r.state, updatedAt: r.updated_at,
45
+ labels: Array.isArray(r.labels) ? r.labels.map(l => typeof l === 'string' ? l : String(object(l).name ?? '')) : [] };
46
+ });
47
+ // Fingerprint includes PR positions, but excludes bodies/comments discarded at this boundary.
48
+ const fingerprint = auditDigest(records.map(r => [r.number ?? r.index, r.updated_at, r.state, r.title, r.labels]));
49
+ const pagination = forgePagination(response.headers, raw, page, size);
50
+ return { items, fingerprint, pagination, bytes: response.body.length };
51
+ };
52
+ let verifiedBytes = 0;
53
+ if (cursor) {
54
+ // Offset APIs cannot guarantee a snapshot. Refuse shifted/edited boundaries instead of claiming completeness.
55
+ const previous = await read(cursor.page - 1);
56
+ verifiedBytes = previous.bytes;
57
+ if (previous.fingerprint !== cursor.previous || previous.pagination.totalCount !== cursor.total) {
58
+ throw new AuditStop('tracker-changed');
59
+ }
60
+ }
61
+ const pageNumber = cursor?.page ?? 1;
62
+ const page = await read(pageNumber);
63
+ if (cursor && page.pagination.totalCount !== cursor.total)
64
+ throw new AuditStop('tracker-changed');
65
+ if (page.bytes + verifiedBytes > options.maxBytes)
66
+ throw new AuditStop('byte-budget');
67
+ // A full page lacking pagination headers needs one bounded probe, never a false complete result.
68
+ const next = page.pagination.nextPage ?? (!page.pagination.complete && page.pagination.items.length === size ? pageNumber + 1 : null);
69
+ if (next !== null && next <= pageNumber)
70
+ throw new AuditStop('cursor-invalidated');
71
+ return { items: page.items, bytes: page.bytes + verifiedBytes,
72
+ complete: next === null && page.pagination.complete,
73
+ nextCursor: next === null ? null : encodeAuditCursor({ scope, page: next, previous: page.fingerprint, total: page.pagination.totalCount }) };
74
+ },
75
+ async hydrate(issue, options) {
76
+ if (!/^[1-9]\d*$/.test(issue.id))
77
+ throw new AuditStop('invalid-issue-id');
78
+ const response = await transport(`${root}/${issue.id}`, options.signal);
79
+ if (response.body.length > options.maxBytes)
80
+ throw new AuditStop('byte-budget');
81
+ const raw = object(parseForgeJson(response));
82
+ if (raw.updated_at !== issue.updatedAt)
83
+ throw new AuditStop('tracker-changed');
84
+ const body = typeof raw.body === 'string' ? raw.body : '';
85
+ const comments = [];
86
+ let bytes = response.body.length;
87
+ const reader = createForgeReader(provider, async (path, signal) => {
88
+ const response = await transport(path, signal);
89
+ bytes += response.body.length;
90
+ if (bytes > options.maxBytes)
91
+ throw new AuditStop('byte-budget');
92
+ return response;
93
+ }, { pageSize: 25 });
94
+ for (let page = 1;; page++) {
95
+ const result = await reader.listIssueComments(repository, Number(issue.id), page, options.signal);
96
+ comments.push(...result.items.map(c => c.body));
97
+ if (result.complete)
98
+ break;
99
+ if (!result.items.length)
100
+ throw new AuditStop('pagination-incomplete');
101
+ if (result.nextPage !== null && result.nextPage !== page + 1)
102
+ throw new AuditStop('cursor-invalidated');
103
+ if (!result.nextPage && result.items.length < reader.pageSize)
104
+ throw new AuditStop('pagination-incomplete');
105
+ }
106
+ return { body, comments, bytes };
107
+ },
108
+ };
109
+ }
110
+ //# sourceMappingURL=issue-pages.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiwg/cli",
3
- "version": "2026.10.11",
3
+ "version": "2026.10.14",
4
4
  "description": "Lightweight AIWG CLI for signed, versioned web-backed resources.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -44,6 +44,7 @@
44
44
  "dist/src/resources/web-release.d.ts",
45
45
  "dist/src/dataset/**/*.d.ts",
46
46
  "tools/_resolve-impl.mjs",
47
+ "tools/warp/warp-content.mjs",
47
48
  "tools/cli/decision-offload-report.mjs",
48
49
  "tools/cli/workspace-status.mjs",
49
50
  "tools/ralph-external/session-launcher.mjs",
@@ -90,6 +91,7 @@
90
91
  "tools/plugin/package-plugins.mjs",
91
92
  "tools/plugin/plugin-links.mjs",
92
93
  "tools/skills/deploy-skills-codex.mjs",
94
+ "tools/skills/codex-skill-transform.mjs",
93
95
  "README.md"
94
96
  ],
95
97
  "repository": {
@@ -462,9 +462,120 @@
462
462
  ]
463
463
  },
464
464
  "workerBrief": {
465
+ "$defs": {
466
+ "regressionCheck": {
467
+ "type": "object",
468
+ "additionalProperties": false,
469
+ "properties": {
470
+ "kind": {
471
+ "enum": [
472
+ "command",
473
+ "path"
474
+ ]
475
+ },
476
+ "target": {
477
+ "type": "string",
478
+ "minLength": 1,
479
+ "maxLength": 1024
480
+ },
481
+ "expectedStatus": {
482
+ "enum": [
483
+ "passed",
484
+ "failed",
485
+ "present",
486
+ "absent"
487
+ ]
488
+ }
489
+ },
490
+ "required": [
491
+ "kind",
492
+ "target",
493
+ "expectedStatus"
494
+ ],
495
+ "allOf": [
496
+ {
497
+ "if": {
498
+ "properties": {
499
+ "kind": {
500
+ "const": "command"
501
+ }
502
+ }
503
+ },
504
+ "then": {
505
+ "properties": {
506
+ "expectedStatus": {
507
+ "enum": [
508
+ "passed",
509
+ "failed"
510
+ ]
511
+ }
512
+ }
513
+ },
514
+ "else": {
515
+ "properties": {
516
+ "expectedStatus": {
517
+ "enum": [
518
+ "present",
519
+ "absent"
520
+ ]
521
+ }
522
+ }
523
+ }
524
+ }
525
+ ]
526
+ },
527
+ "oracleCommand": {
528
+ "type": "object",
529
+ "additionalProperties": false,
530
+ "properties": {
531
+ "command": {
532
+ "type": "string",
533
+ "minLength": 1,
534
+ "maxLength": 1024
535
+ },
536
+ "expectedExitCode": {
537
+ "type": "integer",
538
+ "minimum": 0,
539
+ "maximum": 255
540
+ }
541
+ },
542
+ "required": [
543
+ "command",
544
+ "expectedExitCode"
545
+ ]
546
+ }
547
+ },
465
548
  "type": "object",
466
549
  "additionalProperties": false,
467
550
  "properties": {
551
+ "uncertaintyPolicy": {
552
+ "description": "Omitted or default follows the conductor policy; stop-and-report pauses uncertain work and reports the uncertainty.",
553
+ "enum": [
554
+ "default",
555
+ "stop-and-report"
556
+ ]
557
+ },
558
+ "mustNotRegress": {
559
+ "type": "array",
560
+ "maxItems": 64,
561
+ "items": {
562
+ "$ref": "#/$defs/workerBrief/$defs/regressionCheck"
563
+ }
564
+ },
565
+ "verificationOracle": {
566
+ "type": "array",
567
+ "maxItems": 64,
568
+ "items": {
569
+ "$ref": "#/$defs/workerBrief/$defs/oracleCommand"
570
+ },
571
+ "minItems": 1
572
+ },
573
+ "designReviewRequired": {
574
+ "type": "boolean"
575
+ },
576
+ "designReviewArtifact": {
577
+ "$ref": "#/$defs/workerArtifact"
578
+ },
468
579
  "version": {
469
580
  "const": 1
470
581
  },
@@ -1015,9 +1126,173 @@
1015
1126
  ]
1016
1127
  },
1017
1128
  "workerVerification": {
1129
+ "$defs": {
1130
+ "oracleResult": {
1131
+ "type": "object",
1132
+ "additionalProperties": false,
1133
+ "properties": {
1134
+ "command": {
1135
+ "type": "string",
1136
+ "minLength": 1,
1137
+ "maxLength": 1024
1138
+ },
1139
+ "exitCode": {
1140
+ "type": [
1141
+ "integer",
1142
+ "null"
1143
+ ],
1144
+ "minimum": 0,
1145
+ "maximum": 255
1146
+ },
1147
+ "evidence": {
1148
+ "$ref": "#/$defs/workerArtifact"
1149
+ }
1150
+ },
1151
+ "required": [
1152
+ "command",
1153
+ "exitCode",
1154
+ "evidence"
1155
+ ]
1156
+ },
1157
+ "reviewRound": {
1158
+ "type": "object",
1159
+ "additionalProperties": false,
1160
+ "properties": {
1161
+ "round": {
1162
+ "type": "integer",
1163
+ "minimum": 1,
1164
+ "maximum": 64
1165
+ },
1166
+ "headSha": {
1167
+ "type": "string",
1168
+ "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
1169
+ },
1170
+ "reviewerObservationRef": {
1171
+ "type": "string",
1172
+ "minLength": 1,
1173
+ "maxLength": 1024
1174
+ },
1175
+ "artifact": {
1176
+ "$ref": "#/$defs/workerArtifact"
1177
+ }
1178
+ },
1179
+ "required": [
1180
+ "round",
1181
+ "headSha",
1182
+ "reviewerObservationRef",
1183
+ "artifact"
1184
+ ]
1185
+ },
1186
+ "finding": {
1187
+ "type": "object",
1188
+ "additionalProperties": false,
1189
+ "properties": {
1190
+ "id": {
1191
+ "type": "string",
1192
+ "minLength": 1,
1193
+ "maxLength": 1024
1194
+ },
1195
+ "class": {
1196
+ "enum": [
1197
+ "A",
1198
+ "B",
1199
+ "C"
1200
+ ]
1201
+ },
1202
+ "severity": {
1203
+ "enum": [
1204
+ "blocker",
1205
+ "major",
1206
+ "minor",
1207
+ "info"
1208
+ ]
1209
+ },
1210
+ "round": {
1211
+ "type": "integer",
1212
+ "minimum": 1,
1213
+ "maximum": 64
1214
+ },
1215
+ "status": {
1216
+ "enum": [
1217
+ "open",
1218
+ "resolved",
1219
+ "follow-up",
1220
+ "out-of-scope"
1221
+ ]
1222
+ },
1223
+ "summary": {
1224
+ "type": "string",
1225
+ "minLength": 1,
1226
+ "maxLength": 1024
1227
+ },
1228
+ "followUp": {
1229
+ "$ref": "#/$defs/workerArtifact"
1230
+ }
1231
+ },
1232
+ "required": [
1233
+ "id",
1234
+ "class",
1235
+ "severity",
1236
+ "round",
1237
+ "status",
1238
+ "summary"
1239
+ ],
1240
+ "allOf": [
1241
+ {
1242
+ "if": {
1243
+ "properties": {
1244
+ "class": {
1245
+ "const": "A"
1246
+ }
1247
+ }
1248
+ },
1249
+ "then": {
1250
+ "properties": {
1251
+ "status": {
1252
+ "enum": [
1253
+ "open",
1254
+ "resolved"
1255
+ ]
1256
+ }
1257
+ }
1258
+ }
1259
+ }
1260
+ ]
1261
+ }
1262
+ },
1018
1263
  "type": "object",
1019
1264
  "additionalProperties": false,
1020
1265
  "properties": {
1266
+ "headSha": {
1267
+ "type": "string",
1268
+ "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
1269
+ },
1270
+ "reviewRounds": {
1271
+ "type": "array",
1272
+ "maxItems": 64,
1273
+ "items": {
1274
+ "$ref": "#/$defs/workerVerification/$defs/reviewRound"
1275
+ }
1276
+ },
1277
+ "findingsLedger": {
1278
+ "type": "array",
1279
+ "maxItems": 64,
1280
+ "items": {
1281
+ "$ref": "#/$defs/workerVerification/$defs/finding"
1282
+ }
1283
+ },
1284
+ "roundsToClean": {
1285
+ "type": "integer",
1286
+ "minimum": 1,
1287
+ "maximum": 64
1288
+ },
1289
+ "oracleResults": {
1290
+ "type": "array",
1291
+ "maxItems": 64,
1292
+ "items": {
1293
+ "$ref": "#/$defs/workerVerification/$defs/oracleResult"
1294
+ }
1295
+ },
1021
1296
  "status": {
1022
1297
  "enum": [
1023
1298
  "pending",
@@ -1104,6 +1379,7 @@
1104
1379
  "pattern": "^sha256:[a-f0-9]{64}$"
1105
1380
  },
1106
1381
  "evidence": {
1382
+ "type": "array",
1107
1383
  "minItems": 1
1108
1384
  }
1109
1385
  }
@@ -1538,6 +1814,34 @@
1538
1814
  "type": "object",
1539
1815
  "additionalProperties": false,
1540
1816
  "properties": {
1817
+ "uncertaintyPolicy": {
1818
+ "description": "Omitted or default follows the conductor policy; stop-and-report pauses uncertain work and reports the uncertainty.",
1819
+ "enum": [
1820
+ "default",
1821
+ "stop-and-report"
1822
+ ]
1823
+ },
1824
+ "mustNotRegress": {
1825
+ "type": "array",
1826
+ "maxItems": 64,
1827
+ "items": {
1828
+ "$ref": "#/$defs/workerBrief/$defs/regressionCheck"
1829
+ }
1830
+ },
1831
+ "verificationOracle": {
1832
+ "type": "array",
1833
+ "maxItems": 64,
1834
+ "items": {
1835
+ "$ref": "#/$defs/workerBrief/$defs/oracleCommand"
1836
+ },
1837
+ "minItems": 1
1838
+ },
1839
+ "designReviewRequired": {
1840
+ "type": "boolean"
1841
+ },
1842
+ "designReviewArtifact": {
1843
+ "$ref": "#/$defs/workerArtifact"
1844
+ },
1541
1845
  "version": {
1542
1846
  "const": 1
1543
1847
  },
@@ -1951,6 +2255,36 @@
1951
2255
  "type": "object",
1952
2256
  "additionalProperties": false,
1953
2257
  "properties": {
2258
+ "headSha": {
2259
+ "type": "string",
2260
+ "pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$"
2261
+ },
2262
+ "reviewRounds": {
2263
+ "type": "array",
2264
+ "maxItems": 64,
2265
+ "items": {
2266
+ "$ref": "#/$defs/workerVerification/$defs/reviewRound"
2267
+ }
2268
+ },
2269
+ "findingsLedger": {
2270
+ "type": "array",
2271
+ "maxItems": 64,
2272
+ "items": {
2273
+ "$ref": "#/$defs/workerVerification/$defs/finding"
2274
+ }
2275
+ },
2276
+ "roundsToClean": {
2277
+ "type": "integer",
2278
+ "minimum": 1,
2279
+ "maximum": 64
2280
+ },
2281
+ "oracleResults": {
2282
+ "type": "array",
2283
+ "maxItems": 64,
2284
+ "items": {
2285
+ "$ref": "#/$defs/workerVerification/$defs/oracleResult"
2286
+ }
2287
+ },
1954
2288
  "status": {
1955
2289
  "enum": [
1956
2290
  "pending",
@@ -2046,6 +2380,7 @@
2046
2380
  "maxLength": 1024
2047
2381
  },
2048
2382
  "findings": {
2383
+ "type": "array",
2049
2384
  "minItems": 1
2050
2385
  }
2051
2386
  }
@@ -24,6 +24,23 @@
24
24
  "efficiency": { "$ref": "#/$defs/model" }
25
25
  }
26
26
  },
27
+ "tiers": {
28
+ "type": "object", "additionalProperties": false,
29
+ "required": ["flagship", "premium", "standard", "economy"],
30
+ "properties": {
31
+ "flagship": {
32
+ "allOf": [
33
+ { "$ref": "#/$defs/model" },
34
+ { "type": "object", "required": ["selection"], "properties": { "selection": { "const": "user-elected" } } }
35
+ ]
36
+ },
37
+ "premium": { "$ref": "#/$defs/model" },
38
+ "standard": { "$ref": "#/$defs/model" },
39
+ "economy": { "$ref": "#/$defs/model" }
40
+ }
41
+ },
42
+ "verified_at": { "type": "string", "format": "date" },
43
+ "evidence": { "type": "string", "minLength": 1 },
27
44
  "sourceUrl": { "type": "string", "format": "uri" },
28
45
  "verifiedAt": { "type": "string", "format": "date" }
29
46
  }
@@ -61,7 +78,8 @@
61
78
  "id": { "type": "string", "minLength": 1 },
62
79
  "status": { "enum": ["active", "deprecated", "unverified"] },
63
80
  "fallback": { "type": "string", "minLength": 1 },
64
- "observed": { "type": "boolean" }
81
+ "observed": { "type": "boolean" },
82
+ "selection": { "const": "user-elected" }
65
83
  }
66
84
  },
67
85
  "workerObservation": {
@@ -137,7 +137,7 @@
137
137
  }
138
138
  }
139
139
  },
140
- "tier": { "enum": ["economy", "standard", "premium", "max-quality"] },
140
+ "tier": { "enum": ["economy", "standard", "premium", "flagship", "max-quality"] },
141
141
  "provider": {
142
142
  "enum": ["claude", "codex", "copilot", "cursor", "factory", "grokbot", "hermes", "muse", "opencode", "openclaw", "openhuman", "warp", "windsurf"]
143
143
  }
@@ -149,7 +149,7 @@
149
149
  "type": "object",
150
150
  "additionalProperties": false,
151
151
  "properties": {
152
- "model-tier": { "enum": ["economy", "standard", "premium", "max-quality"] },
152
+ "model-tier": { "enum": ["economy", "standard", "premium", "flagship", "max-quality"] },
153
153
  "model-override": { "type": "string", "minLength": 1 },
154
154
  "rationale": { "type": "string", "minLength": 1 }
155
155
  }
@@ -205,6 +205,7 @@
205
205
  "economy",
206
206
  "standard",
207
207
  "premium",
208
+ "flagship",
208
209
  "max-quality"
209
210
  ]
210
211
  },
@@ -7,7 +7,7 @@
7
7
  "required": ["role", "tier"],
8
8
  "properties": {
9
9
  "role": { "enum": ["efficiency", "coding", "reasoning"] },
10
- "tier": { "enum": ["economy", "standard", "premium"] },
10
+ "tier": { "enum": ["economy", "standard", "premium", "flagship", "max-quality"] },
11
11
  "effort": { "enum": ["minimal", "low", "medium", "high", "xhigh"] },
12
12
  "override": { "type": "string", "minLength": 1 }
13
13
  }
@@ -1,3 +1,4 @@
1
+ import { withModelWrapper } from './model-wrapper.mjs';
1
2
  /** Google Antigravity CLI project resource deployment, qualified against 1.1.26. */
2
3
  import fs from 'node:fs';
3
4
  import path from 'node:path';
@@ -15,7 +16,6 @@ import {
15
16
  normalizeDeploymentMode,
16
17
  resolveAiwgRoot,
17
18
  } from './base.mjs';
18
-
19
19
  export const name = 'antigravity';
20
20
  export const aliases = ['agy'];
21
21
  export const paths = { agents: '.agents/agents', commands: '', skills: '.agents/skills', rules: '' };
@@ -29,9 +29,7 @@ export const capabilities = {
29
29
  homeDirectoryDeploy: false,
30
30
  parallelCommandAndSkillSurfaces: false,
31
31
  };
32
-
33
32
  export const mapModel = model => model;
34
-
35
33
  const ANTIGRAVITY_TOOL_MAP = new Map([
36
34
  ['Read', 'view_file'],
37
35
  ['Write', 'write_to_file'],
@@ -39,7 +37,6 @@ const ANTIGRAVITY_TOOL_MAP = new Map([
39
37
  ['Grep', 'grep_search'],
40
38
  ['Bash', 'run_command'],
41
39
  ]);
42
-
43
40
  function mapTools(value) {
44
41
  if (!value) return [];
45
42
  return value
@@ -49,7 +46,8 @@ function mapTools(value) {
49
46
  .filter(Boolean);
50
47
  }
51
48
 
52
- export function transformAgent(_source, content) {
49
+ export const transformAgent = withModelWrapper('antigravity', translateAgent);
50
+ function translateAgent(_source, content) {
53
51
  const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n([\s\S]*)$/);
54
52
  if (!match) return content;
55
53
  const frontmatter = match[1];
@@ -890,7 +890,7 @@ export function deployFiles(files, destDir, opts, transformFn) {
890
890
  if (a.type === 'deploy') {
891
891
  if (dryRun) console.log(`[dry-run] deploy ${a.src} -> ${a.dest} (${a.reason})`);
892
892
  else writeFile(a.dest, a.content, false);
893
- if (verbose) console.log(`deployed ${path.basename(a.src)} -> ${path.relative(process.cwd(), a.dest)} (${a.reason})`);
893
+ if (verbose) console.log(`deployed ${path.basename(a.src)} -> ${path.relative(process.cwd(), opts.logicalOutputPath?.(a.dest) || a.dest)} (${a.reason})`);
894
894
  deployedEntries.push({ filename: path.basename(a.dest), hash: a.hash, frameworkSlug: a.frameworkSlug, sourcePath: path.resolve(a.src) });
895
895
  } else if (a.type === 'skip') {
896
896
  if (verbose) console.log(`skip (${a.reason}): ${path.basename(a.dest)}`);
@@ -1577,7 +1577,7 @@ function pruneMissingStandardSkills(destDir, opts) {
1577
1577
  export function deploySkillDir(skillDir, destDir, opts) {
1578
1578
  const { force = false, dryRun = false, provider, transformSkillMd } = opts;
1579
1579
  const verbose = opts.verbose === true;
1580
- const skillName = path.basename(skillDir);
1580
+ const skillName = opts.skillName || path.basename(skillDir);
1581
1581
 
1582
1582
  // Check SKILL.md for explicit platform restriction before deploying anything
1583
1583
  const skillMdPath = path.join(skillDir, 'SKILL.md');
@@ -1592,7 +1592,7 @@ export function deploySkillDir(skillDir, destDir, opts) {
1592
1592
  const destSkillDir = path.join(destDir, skillName);
1593
1593
  const previous = readSidecarManifest(destSkillDir);
1594
1594
  const frameworkSlug = extractFrameworkSlug(skillMdPath);
1595
- if (!canDeploySkill(previous, skillDir, opts)) return;
1595
+ if (!canDeploySkill(previous, skillDir, opts)) return false;
1596
1596
  const managed = {};
1597
1597
  if (!dryRun) ensureDir(destSkillDir);
1598
1598