@aiwg/cli 2026.10.9 → 2026.10.11

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 (116) hide show
  1. package/agentic/code/providers/model-capabilities.v1.json +275 -17
  2. package/bin/aiwg.mjs +8 -0
  3. package/dist/src/cli/handlers/mc-admission.js +39 -0
  4. package/dist/src/cli/handlers/mc.js +2 -31
  5. package/dist/src/cli/handlers/models-help.js +52 -0
  6. package/dist/src/cli/handlers/models.js +11 -81
  7. package/dist/src/cli/handlers/sessions.js +198 -15
  8. package/dist/src/cli/handlers/use-addon-profile.js +72 -0
  9. package/dist/src/cli/handlers/use.js +203 -234
  10. package/dist/src/cli/ui.js +1 -0
  11. package/dist/src/config/aiwg-config.js +38 -184
  12. package/dist/src/config/cli-help.js +54 -0
  13. package/dist/src/config/cli.js +5 -69
  14. package/dist/src/config/config-normalization.js +10 -0
  15. package/dist/src/config/worker-activation-gate.js +26 -0
  16. package/dist/src/config/worker-adoption-cli.js +102 -0
  17. package/dist/src/config/worker-adoption.js +368 -0
  18. package/dist/src/config/worker-config-digest.js +14 -0
  19. package/dist/src/config/worker-context.js +337 -0
  20. package/dist/src/config/worker-group-templates.js +150 -0
  21. package/dist/src/config/worker-guidance-warning.js +28 -0
  22. package/dist/src/config/worker-owner-lock.js +152 -0
  23. package/dist/src/config/worker-parallelism.js +154 -0
  24. package/dist/src/config/worker-write.js +75 -0
  25. package/dist/src/decision/telemetry/exporter.js +2 -1
  26. package/dist/src/decision/telemetry/index.js +1 -0
  27. package/dist/src/decision/telemetry/mapping.js +43 -0
  28. package/dist/src/decision/telemetry/otlp-http.js +5 -2
  29. package/dist/src/decision/telemetry/redaction.js +6 -1
  30. package/dist/src/decision/telemetry/types.js +3 -0
  31. package/dist/src/decision/telemetry/worker.js +69 -0
  32. package/dist/src/lint/rule-activation.js +15 -7
  33. package/dist/src/lint/runner.js +2 -2
  34. package/dist/src/mcp/server.mjs +2 -11
  35. package/dist/src/mcp/stdio-lifecycle.mjs +27 -0
  36. package/dist/src/mcp/tools/worker-failure-diagnostics.mjs +9 -0
  37. package/dist/src/mcp/tools/worker-invoke.mjs +114 -16
  38. package/dist/src/mission-protocol/codecs.js +8 -38
  39. package/dist/src/mission-protocol/worker-contract-diagnostics.js +62 -0
  40. package/dist/src/mission-protocol/worker-invocation-types.js +2 -0
  41. package/dist/src/models/conductor-data-policy.d.mts +8 -0
  42. package/dist/src/models/conductor-data-policy.mjs +190 -0
  43. package/dist/src/models/config-loader.js +19 -3
  44. package/dist/src/models/config-writer.js +27 -0
  45. package/dist/src/models/model-capabilities.v1.json +275 -17
  46. package/dist/src/models/provider-policy.js +14 -155
  47. package/dist/src/models/resolver.js +2 -293
  48. package/dist/src/models/worker-artifact-binding.mjs +12 -0
  49. package/dist/src/models/worker-direct-readiness-policy.js +155 -0
  50. package/dist/src/models/worker-direct-readiness.js +9 -218
  51. package/dist/src/models/worker-health-readiness.js +105 -26
  52. package/dist/src/models/worker-installation.mjs +12 -14
  53. package/dist/src/models/worker-member-references.js +64 -0
  54. package/dist/src/models/worker-plan.js +317 -0
  55. package/dist/src/models/worker-selection-policy.js +217 -0
  56. package/dist/src/models/wrapper-deployment.js +1 -1
  57. package/dist/src/policy/authorization.js +29 -1
  58. package/dist/src/process/aiwg-probe-command.d.mts +15 -0
  59. package/dist/src/process/aiwg-probe-command.mjs +37 -0
  60. package/dist/src/serve/shared-host-admission-checks.js +116 -0
  61. package/dist/src/serve/shared-host-scheduler.js +25 -107
  62. package/dist/src/serve/shared-host-starvation.js +73 -0
  63. package/dist/src/serve/worker-artifacts.d.mts +4 -0
  64. package/dist/src/serve/worker-artifacts.mjs +56 -0
  65. package/dist/src/serve/worker-command-request.js +68 -0
  66. package/dist/src/serve/worker-invocation-paths.js +144 -0
  67. package/dist/src/serve/worker-invocation-preparation.js +169 -0
  68. package/dist/src/serve/worker-invocation.js +24 -291
  69. package/dist/src/serve/worker-stdin-frame.d.mts +2 -2
  70. package/dist/src/serve/worker-stdin-frame.mjs +6 -6
  71. package/dist/src/sessions/adapters/grokbot.js +7 -0
  72. package/dist/src/sessions/batch-import.js +34 -6
  73. package/dist/src/sessions/contracts.js +19 -0
  74. package/dist/src/sessions/coverage-preflight.js +7 -1
  75. package/dist/src/sessions/fortemi-export-mapping.js +33 -3
  76. package/dist/src/sessions/host-catalog.js +157 -0
  77. package/dist/src/sessions/image-blobs.js +141 -0
  78. package/dist/src/sessions/importer.js +23 -3
  79. package/dist/src/sessions/index.js +2 -0
  80. package/dist/src/sessions/refresh.js +25 -2
  81. package/dist/src/sessions/repository.js +164 -22
  82. package/dist/src/sessions/workspace-discovery.js +5 -2
  83. package/dist/src/smiths/context-pipeline/parallelism-section.js +19 -7
  84. package/package.json +15 -1
  85. package/schemas/mission-v1.schema.json +20 -19
  86. package/schemas/models/model-config-compatibility.v1.schema.json +16 -0
  87. package/tools/agents/providers/claude-post-deploy.mjs +35 -0
  88. package/tools/agents/providers/claude.mjs +3 -30
  89. package/tools/agents/providers/codex-post-deploy.mjs +13 -0
  90. package/tools/agents/providers/codex.mjs +2 -8
  91. package/tools/agents/providers/conductor-data-guard.mjs +61 -0
  92. package/tools/agents/providers/rule-delivery.mjs +3 -16
  93. package/tools/agents/providers/rule-presentation.mjs +38 -0
  94. package/tools/plugin/package-plugins.mjs +1 -1
  95. package/tools/ralph-external/lib/claude-adapter.mjs +2 -2
  96. package/tools/ralph-external/lib/codex-adapter.mjs +3 -3
  97. package/tools/ralph-external/lib/managed-worker-attempt.mjs +86 -0
  98. package/tools/ralph-external/lib/muse-adapter.mjs +10 -0
  99. package/tools/ralph-external/lib/provider-adapter.mjs +11 -260
  100. package/tools/ralph-external/lib/session-attempt.mjs +85 -0
  101. package/tools/ralph-external/lib/strict-worker-json.mjs +190 -0
  102. package/tools/ralph-external/lib/worker-artifacts.mjs +209 -0
  103. package/tools/ralph-external/lib/worker-context.mjs +237 -0
  104. package/tools/ralph-external/lib/worker-final.mjs +143 -0
  105. package/tools/ralph-external/lib/worker-inputs.mjs +55 -0
  106. package/tools/ralph-external/lib/worker-invocation-ancestry.mjs +132 -0
  107. package/tools/ralph-external/lib/worker-invocation-processes.mjs +123 -0
  108. package/tools/ralph-external/lib/worker-isolation-status.mjs +48 -0
  109. package/tools/ralph-external/lib/worker-isolation.mjs +19 -73
  110. package/tools/ralph-external/lib/worker-launch-cli.mjs +49 -0
  111. package/tools/ralph-external/lib/worker-native-sandbox.mjs +83 -0
  112. package/tools/ralph-external/lib/worker-overflow.mjs +48 -13
  113. package/tools/ralph-external/lib/worker-retry-evidence.mjs +103 -0
  114. package/tools/ralph-external/lib/worker-termination.mjs +82 -0
  115. package/tools/ralph-external/session-launcher.mjs +124 -313
  116. package/vscode-extension/schemas/aiwg.config.v1.json +161 -2
@@ -627,6 +627,11 @@
627
627
  "pattern": "^[a-z][a-z0-9-]{0,62}$"
628
628
  }
629
629
  },
630
+ "groupTemplates": {
631
+ "type": "object",
632
+ "propertyNames": { "pattern": "^[a-z][a-z0-9-]{0,62}$" },
633
+ "additionalProperties": { "$ref": "#/definitions/groupTemplate" }
634
+ },
630
635
  "groups": {
631
636
  "type": "object",
632
637
  "additionalProperties": {
@@ -673,6 +678,13 @@
673
678
  "minimum": 1,
674
679
  "default": 300
675
680
  },
681
+ "starvationSeconds": {
682
+ "type": "integer",
683
+ "minimum": 1,
684
+ "maximum": 86400,
685
+ "default": 120,
686
+ "description": "Wait threshold for bounded group/run starvation diagnostics; does not change admission ordering."
687
+ },
676
688
  "leaseSeconds": {
677
689
  "type": "integer",
678
690
  "minimum": 1,
@@ -1451,6 +1463,98 @@
1451
1463
  "roles"
1452
1464
  ]
1453
1465
  },
1466
+ "groupTemplate": {
1467
+ "type": "object",
1468
+ "additionalProperties": false,
1469
+ "properties": {
1470
+ "members": {
1471
+ "type": "array",
1472
+ "items": {
1473
+ "$ref": "#/definitions/member"
1474
+ },
1475
+ "minItems": 1,
1476
+ "uniqueItems": true
1477
+ },
1478
+ "fallback": {
1479
+ "type": "array",
1480
+ "items": {
1481
+ "type": "string",
1482
+ "minLength": 1
1483
+ },
1484
+ "minItems": 0,
1485
+ "uniqueItems": true,
1486
+ "default": []
1487
+ },
1488
+ "execution": {
1489
+ "$ref": "#/definitions/execution"
1490
+ },
1491
+ "requiredRoles": {
1492
+ "type": "array",
1493
+ "items": {
1494
+ "enum": [
1495
+ "efficiency",
1496
+ "coding",
1497
+ "reasoning"
1498
+ ]
1499
+ },
1500
+ "uniqueItems": true,
1501
+ "default": []
1502
+ },
1503
+ "maxParallel": {
1504
+ "type": "integer",
1505
+ "minimum": 1,
1506
+ "maximum": 50
1507
+ },
1508
+ "template": {
1509
+ "type": "string",
1510
+ "pattern": "^[a-z][a-z0-9-]{0,62}$"
1511
+ },
1512
+ "efforts": {
1513
+ "type": "array",
1514
+ "items": {
1515
+ "type": "string",
1516
+ "minLength": 1
1517
+ },
1518
+ "uniqueItems": true,
1519
+ "minItems": 1
1520
+ },
1521
+ "dataPolicy": {
1522
+ "type": "object",
1523
+ "additionalProperties": false,
1524
+ "properties": {
1525
+ "localOnlyPaths": {
1526
+ "type": "array",
1527
+ "uniqueItems": true,
1528
+ "items": {
1529
+ "type": "string",
1530
+ "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9_.@+,-]+(?:/[A-Za-z0-9_.@+,-]+)*$(?![\\s\\S])"
1531
+ },
1532
+ "description": "Literal project-relative local-only files or directory subtrees; deployed conductor guards have limited shell coverage."
1533
+ },
1534
+ "allowedProcessing": {
1535
+ "type": "array",
1536
+ "items": {
1537
+ "enum": [
1538
+ "local",
1539
+ "remote"
1540
+ ]
1541
+ },
1542
+ "uniqueItems": true
1543
+ },
1544
+ "allowProductImprovement": {
1545
+ "type": "boolean"
1546
+ },
1547
+ "allowUnknown": {
1548
+ "type": "boolean"
1549
+ },
1550
+ "maxRetentionDays": {
1551
+ "type": "integer",
1552
+ "minimum": 0
1553
+ }
1554
+ }
1555
+ }
1556
+ }
1557
+ },
1454
1558
  "group": {
1455
1559
  "type": "object",
1456
1560
  "additionalProperties": false,
@@ -1492,10 +1596,65 @@
1492
1596
  "type": "integer",
1493
1597
  "minimum": 1,
1494
1598
  "maximum": 50
1599
+ },
1600
+ "template": {
1601
+ "type": "string",
1602
+ "pattern": "^[a-z][a-z0-9-]{0,62}$"
1603
+ },
1604
+ "efforts": {
1605
+ "type": "array",
1606
+ "items": {
1607
+ "type": "string",
1608
+ "minLength": 1
1609
+ },
1610
+ "uniqueItems": true,
1611
+ "minItems": 1
1612
+ },
1613
+ "dataPolicy": {
1614
+ "type": "object",
1615
+ "additionalProperties": false,
1616
+ "properties": {
1617
+ "localOnlyPaths": {
1618
+ "type": "array",
1619
+ "uniqueItems": true,
1620
+ "items": {
1621
+ "type": "string",
1622
+ "pattern": "^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9_.@+,-]+(?:/[A-Za-z0-9_.@+,-]+)*$(?![\\s\\S])"
1623
+ },
1624
+ "description": "Literal project-relative local-only files or directory subtrees; deployed conductor guards have limited shell coverage."
1625
+ },
1626
+ "allowedProcessing": {
1627
+ "type": "array",
1628
+ "items": {
1629
+ "enum": [
1630
+ "local",
1631
+ "remote"
1632
+ ]
1633
+ },
1634
+ "uniqueItems": true
1635
+ },
1636
+ "allowProductImprovement": {
1637
+ "type": "boolean"
1638
+ },
1639
+ "allowUnknown": {
1640
+ "type": "boolean"
1641
+ },
1642
+ "maxRetentionDays": {
1643
+ "type": "integer",
1644
+ "minimum": 0
1645
+ }
1646
+ }
1495
1647
  }
1496
1648
  },
1497
- "required": [
1498
- "members"
1649
+ "anyOf": [
1650
+ {
1651
+ "properties": { "members": {} },
1652
+ "required": ["members"]
1653
+ },
1654
+ {
1655
+ "properties": { "template": {} },
1656
+ "required": ["template"]
1657
+ }
1499
1658
  ]
1500
1659
  },
1501
1660
  "execution": {