@aiwg/cli 2026.10.8 → 2026.10.10

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 (104) hide show
  1. package/agentic/code/providers/model-capabilities.v1.json +197 -3
  2. package/bin/aiwg.mjs +8 -0
  3. package/dist/src/artifacts/cli.js +9 -5
  4. package/dist/src/auth/config.js +3 -8
  5. package/dist/src/auth/resource-credentials.js +35 -2
  6. package/dist/src/cli/handlers/diagnose.js +13 -0
  7. package/dist/src/cli/handlers/mc-admission.js +39 -0
  8. package/dist/src/cli/handlers/mc.js +2 -31
  9. package/dist/src/cli/handlers/models-help.js +52 -0
  10. package/dist/src/cli/handlers/models.js +11 -81
  11. package/dist/src/cli/handlers/resource-versions.js +8 -5
  12. package/dist/src/cli/handlers/script-runner.js +13 -1
  13. package/dist/src/cli/handlers/use-addon-profile.js +72 -0
  14. package/dist/src/cli/handlers/use.js +209 -233
  15. package/dist/src/cli/ui.js +1 -0
  16. package/dist/src/config/aiwg-config.js +38 -184
  17. package/dist/src/config/cli-help.js +54 -0
  18. package/dist/src/config/cli.js +5 -69
  19. package/dist/src/config/config-normalization.js +10 -0
  20. package/dist/src/config/worker-activation-gate.js +26 -0
  21. package/dist/src/config/worker-adoption-cli.js +102 -0
  22. package/dist/src/config/worker-adoption.js +368 -0
  23. package/dist/src/config/worker-config-digest.js +14 -0
  24. package/dist/src/config/worker-group-templates.js +150 -0
  25. package/dist/src/config/worker-guidance-warning.js +28 -0
  26. package/dist/src/config/worker-owner-lock.js +152 -0
  27. package/dist/src/config/worker-parallelism.js +154 -0
  28. package/dist/src/config/worker-write.js +75 -0
  29. package/dist/src/decision/telemetry/exporter.js +2 -1
  30. package/dist/src/decision/telemetry/index.js +1 -0
  31. package/dist/src/decision/telemetry/mapping.js +43 -0
  32. package/dist/src/decision/telemetry/otlp-http.js +5 -2
  33. package/dist/src/decision/telemetry/redaction.js +6 -1
  34. package/dist/src/decision/telemetry/types.js +3 -0
  35. package/dist/src/decision/telemetry/worker.js +69 -0
  36. package/dist/src/lint/rule-activation.js +15 -7
  37. package/dist/src/lint/runner.js +2 -2
  38. package/dist/src/mcp/server.mjs +2 -11
  39. package/dist/src/mcp/stdio-lifecycle.mjs +27 -0
  40. package/dist/src/mcp/tools/worker-failure-diagnostics.mjs +9 -0
  41. package/dist/src/mcp/tools/worker-invoke.mjs +6 -6
  42. package/dist/src/mission-protocol/codecs.js +8 -38
  43. package/dist/src/mission-protocol/worker-contract-diagnostics.js +62 -0
  44. package/dist/src/mission-protocol/worker-invocation-types.js +2 -0
  45. package/dist/src/models/conductor-data-policy.d.mts +8 -0
  46. package/dist/src/models/conductor-data-policy.mjs +190 -0
  47. package/dist/src/models/config-loader.js +19 -3
  48. package/dist/src/models/config-writer.js +27 -0
  49. package/dist/src/models/model-capabilities.v1.json +197 -3
  50. package/dist/src/models/provider-policy.js +7 -155
  51. package/dist/src/models/resolver.js +2 -293
  52. package/dist/src/models/worker-artifact-binding.mjs +12 -0
  53. package/dist/src/models/worker-direct-readiness-policy.js +155 -0
  54. package/dist/src/models/worker-direct-readiness.js +9 -218
  55. package/dist/src/models/worker-health-readiness.js +105 -26
  56. package/dist/src/models/worker-installation.mjs +12 -14
  57. package/dist/src/models/worker-member-references.js +64 -0
  58. package/dist/src/models/worker-plan.js +317 -0
  59. package/dist/src/models/worker-selection-policy.js +217 -0
  60. package/dist/src/models/wrapper-deployment.js +1 -1
  61. package/dist/src/resources/web-release.js +76 -65
  62. package/dist/src/serve/shared-host-admission-checks.js +116 -0
  63. package/dist/src/serve/shared-host-scheduler.js +25 -107
  64. package/dist/src/serve/shared-host-starvation.js +73 -0
  65. package/dist/src/serve/worker-artifacts.d.mts +4 -0
  66. package/dist/src/serve/worker-artifacts.mjs +56 -0
  67. package/dist/src/serve/worker-command-request.js +68 -0
  68. package/dist/src/serve/worker-invocation-paths.js +144 -0
  69. package/dist/src/serve/worker-invocation-preparation.js +169 -0
  70. package/dist/src/serve/worker-invocation.js +24 -291
  71. package/dist/src/serve/worker-stdin-frame.d.mts +2 -2
  72. package/dist/src/serve/worker-stdin-frame.mjs +6 -6
  73. package/dist/src/smiths/context-pipeline/parallelism-section.js +19 -7
  74. package/dist/src/storage/backends/fortemi.js +33 -29
  75. package/dist/src/storage/backends/logseq.js +16 -3
  76. package/dist/src/storage/backends/postgres.js +74 -33
  77. package/dist/src/storage/backends/postgrest.js +37 -13
  78. package/dist/src/storage/config.js +6 -1
  79. package/dist/src/uhp/config.js +4 -0
  80. package/package.json +9 -1
  81. package/schemas/mission-v1.schema.json +20 -19
  82. package/schemas/models/model-config-compatibility.v1.schema.json +16 -0
  83. package/tools/agents/providers/claude-post-deploy.mjs +35 -0
  84. package/tools/agents/providers/claude.mjs +3 -30
  85. package/tools/agents/providers/codex-post-deploy.mjs +13 -0
  86. package/tools/agents/providers/codex.mjs +2 -8
  87. package/tools/agents/providers/conductor-data-guard.mjs +61 -0
  88. package/tools/agents/providers/rule-delivery.mjs +3 -16
  89. package/tools/agents/providers/rule-presentation.mjs +38 -0
  90. package/tools/plugin/package-plugins.mjs +1 -1
  91. package/tools/ralph-external/lib/claude-adapter.mjs +2 -2
  92. package/tools/ralph-external/lib/codex-adapter.mjs +3 -3
  93. package/tools/ralph-external/lib/managed-worker-attempt.mjs +86 -0
  94. package/tools/ralph-external/lib/provider-adapter.mjs +11 -260
  95. package/tools/ralph-external/lib/session-attempt.mjs +85 -0
  96. package/tools/ralph-external/lib/strict-worker-json.mjs +190 -0
  97. package/tools/ralph-external/lib/worker-artifacts.mjs +209 -0
  98. package/tools/ralph-external/lib/worker-final.mjs +143 -0
  99. package/tools/ralph-external/lib/worker-inputs.mjs +55 -0
  100. package/tools/ralph-external/lib/worker-isolation.mjs +2 -44
  101. package/tools/ralph-external/lib/worker-launch-cli.mjs +47 -0
  102. package/tools/ralph-external/lib/worker-native-sandbox.mjs +83 -0
  103. package/tools/ralph-external/session-launcher.mjs +73 -217
  104. 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": {