aiwg 2026.11.0 → 2026.11.1

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 (178) hide show
  1. package/agentic/code/addons/aiwg-hooks/canonical/aiwg-prompt-discovery.yaml +8 -0
  2. package/agentic/code/addons/aiwg-hooks/hooks/aiwg-prompt-discovery.cjs +109 -0
  3. package/agentic/code/addons/aiwg-hooks/manifest.json +6 -0
  4. package/agentic/code/addons/aiwg-utils/rules/skill-discovery.md +1 -1
  5. package/agentic/code/addons/aiwg-utils/skills/aiwg-issue/SKILL.md +17 -15
  6. package/agentic/code/addons/aiwg-utils/skills/aiwg-pr/SKILL.md +44 -20
  7. package/agentic/code/addons/aiwg-utils/skills/aiwg-pr/scripts/deliver.mjs +7 -0
  8. package/agentic/code/addons/aiwg-utils/skills/checkpoint/SKILL.md +1 -1
  9. package/agentic/code/addons/aiwg-utils/skills/steward/SKILL.md +14 -0
  10. package/agentic/code/frameworks/sdlc-complete/skills/address-issues/SKILL.md +0 -4
  11. package/agentic/code/frameworks/sdlc-complete/templates/issue-comments/al-cycle.md +0 -2
  12. package/agentic/code/plugins/agent-loop/.claude-plugin/plugin.json +1 -1
  13. package/agentic/code/plugins/agent-persistence/.claude-plugin/plugin.json +1 -1
  14. package/agentic/code/plugins/agentic-installer/.claude-plugin/plugin.json +1 -1
  15. package/agentic/code/plugins/aiwg-dev/.claude-plugin/plugin.json +1 -1
  16. package/agentic/code/plugins/aiwg-evals/.claude-plugin/plugin.json +1 -1
  17. package/agentic/code/plugins/auto-memory/.claude-plugin/plugin.json +1 -1
  18. package/agentic/code/plugins/browser-control/.claude-plugin/plugin.json +1 -1
  19. package/agentic/code/plugins/codex-sdlc/skills/address-issues/SKILL.md +0 -4
  20. package/agentic/code/plugins/codex-sdlc/templates/issue-comments/al-cycle.md +0 -2
  21. package/agentic/code/plugins/color-palette/.claude-plugin/plugin.json +1 -1
  22. package/agentic/code/plugins/compound-memory/.claude-plugin/plugin.json +1 -1
  23. package/agentic/code/plugins/context-curator/.claude-plugin/plugin.json +1 -1
  24. package/agentic/code/plugins/daemon/.claude-plugin/plugin.json +1 -1
  25. package/agentic/code/plugins/doc-intelligence/.claude-plugin/plugin.json +1 -1
  26. package/agentic/code/plugins/droid-bridge/.claude-plugin/plugin.json +1 -1
  27. package/agentic/code/plugins/forensics/.claude-plugin/plugin.json +1 -1
  28. package/agentic/code/plugins/guided-implementation/.claude-plugin/plugin.json +1 -1
  29. package/agentic/code/plugins/hooks/.claude-plugin/plugin.json +1 -1
  30. package/agentic/code/plugins/hooks/hooks/aiwg-prompt-discovery.cjs +109 -0
  31. package/agentic/code/plugins/knowledge-base/.claude-plugin/plugin.json +1 -1
  32. package/agentic/code/plugins/line-memory/.claude-plugin/plugin.json +1 -1
  33. package/agentic/code/plugins/llm-wiki/.claude-plugin/plugin.json +1 -1
  34. package/agentic/code/plugins/marketing/.claude-plugin/plugin.json +1 -1
  35. package/agentic/code/plugins/media-curator/.claude-plugin/plugin.json +1 -1
  36. package/agentic/code/plugins/nlp-prod/.claude-plugin/plugin.json +1 -1
  37. package/agentic/code/plugins/ops/.claude-plugin/plugin.json +1 -1
  38. package/agentic/code/plugins/prose-integration/.claude-plugin/plugin.json +1 -1
  39. package/agentic/code/plugins/research/.claude-plugin/plugin.json +1 -1
  40. package/agentic/code/plugins/rlm/.claude-plugin/plugin.json +1 -1
  41. package/agentic/code/plugins/sdlc/.claude-plugin/plugin.json +1 -1
  42. package/agentic/code/plugins/sdlc/skills/address-issues/SKILL.md +0 -4
  43. package/agentic/code/plugins/sdlc/templates/issue-comments/al-cycle.md +0 -2
  44. package/agentic/code/plugins/security-engineering/.claude-plugin/plugin.json +1 -1
  45. package/agentic/code/plugins/semantic-memory/.claude-plugin/plugin.json +1 -1
  46. package/agentic/code/plugins/skill-factory/.claude-plugin/plugin.json +1 -1
  47. package/agentic/code/plugins/star-prompt/.claude-plugin/plugin.json +1 -1
  48. package/agentic/code/plugins/testing-quality/.claude-plugin/plugin.json +1 -1
  49. package/agentic/code/plugins/twelve-factor/.claude-plugin/plugin.json +1 -1
  50. package/agentic/code/plugins/uat-mcp/.claude-plugin/plugin.json +1 -1
  51. package/agentic/code/plugins/utils/.claude-plugin/plugin.json +1 -1
  52. package/agentic/code/plugins/utils/rules/skill-discovery.md +1 -1
  53. package/agentic/code/plugins/utils/skills/aiwg-issue/SKILL.md +17 -15
  54. package/agentic/code/plugins/utils/skills/aiwg-pr/SKILL.md +44 -20
  55. package/agentic/code/plugins/utils/skills/aiwg-pr/scripts/deliver.mjs +7 -0
  56. package/agentic/code/plugins/utils/skills/checkpoint/SKILL.md +1 -1
  57. package/agentic/code/plugins/utils/skills/steward/SKILL.md +14 -0
  58. package/agentic/code/plugins/validation-complete/.claude-plugin/plugin.json +1 -1
  59. package/agentic/code/plugins/verbalized-sampling/.claude-plugin/plugin.json +1 -1
  60. package/agentic/code/plugins/voice/.claude-plugin/plugin.json +1 -1
  61. package/agentic/code/plugins/writing/.claude-plugin/plugin.json +1 -1
  62. package/agentic/code/providers/flue/README.md +2 -1
  63. package/dist/src/artifacts/cli.js +3 -2
  64. package/dist/src/artifacts/discover-facets.js +2 -0
  65. package/dist/src/artifacts/discover-session-facets.js +14 -0
  66. package/dist/src/artifacts/fortemi-core-query-adapter.js +4 -4
  67. package/dist/src/artifacts/framework-capabilities.js +7 -3
  68. package/dist/src/artifacts/index-builder.js +2 -3
  69. package/dist/src/artifacts/query-engine-discover-output.js +3 -3
  70. package/dist/src/artifacts/query-engine-discover.js +61 -14
  71. package/dist/src/artifacts/query-engine-entries.js +52 -9
  72. package/dist/src/artifacts/query-engine-installation.js +27 -0
  73. package/dist/src/artifacts/query-engine-rules.js +1 -2
  74. package/dist/src/artifacts/query-engine-scoring.js +33 -31
  75. package/dist/src/artifacts/query-engine-show-card.js +6 -2
  76. package/dist/src/artifacts/query-engine-show.js +2 -2
  77. package/dist/src/artifacts/relations.js +17 -10
  78. package/dist/src/cli/handlers/checkpoint.js +143 -0
  79. package/dist/src/cli/handlers/help.js +1 -0
  80. package/dist/src/cli/handlers/index.js +4 -2
  81. package/dist/src/cli/handlers/models-resource-sample.js +7 -3
  82. package/dist/src/cli/handlers/ralph-launcher.js +1 -1
  83. package/dist/src/cli/handlers/script-runner.js +2 -1
  84. package/dist/src/cli/handlers/steward-signing.js +44 -0
  85. package/dist/src/cli/handlers/steward.js +5 -0
  86. package/dist/src/cli/handlers/use-provider-results.js +17 -0
  87. package/dist/src/cli/handlers/use.js +9 -15
  88. package/dist/src/cli/router.js +12 -2
  89. package/dist/src/cli/user-scope-mirror.js +3 -1
  90. package/dist/src/config/aiwg-config.js +5 -1
  91. package/dist/src/config/cli.js +1 -0
  92. package/dist/src/config/delivery-validation.js +21 -0
  93. package/dist/src/config/host-resource-report.d.mts +1 -1
  94. package/dist/src/config/host-resource-report.mjs +23 -4
  95. package/dist/src/config/host-resource-runtime.d.mts +8 -0
  96. package/dist/src/config/host-resource-runtime.mjs +67 -24
  97. package/dist/src/config/index-graph-overrides.js +4 -0
  98. package/dist/src/config/worker-attribution.d.mts +7 -0
  99. package/dist/src/config/worker-attribution.mjs +44 -0
  100. package/dist/src/delivery/git.js +62 -0
  101. package/dist/src/delivery/pr.js +149 -0
  102. package/dist/src/delivery/tracker.js +33 -0
  103. package/dist/src/discovery/interview.js +1 -1
  104. package/dist/src/extensions/claude-hooks-installer.js +1 -0
  105. package/dist/src/extensions/loader.js +2 -1
  106. package/dist/src/issues/cli.js +12 -3
  107. package/dist/src/issues/external-cli.js +76 -0
  108. package/dist/src/issues/live.js +18 -1
  109. package/dist/src/issues/tracker-policy.js +17 -0
  110. package/dist/src/mcp/tools/worker-invoke.mjs +2 -1
  111. package/dist/src/mcp/tools/worker-stdin-runtime.mjs +12 -0
  112. package/dist/src/models/conductor-data-policy.d.mts +3 -2
  113. package/dist/src/models/conductor-data-policy.mjs +94 -5
  114. package/dist/src/models/worker-plan.js +3 -3
  115. package/dist/src/models/worker-selection-policy.js +2 -1
  116. package/dist/src/providers/deployment-lock.js +77 -0
  117. package/dist/src/providers/deployment-ownership.d.mts +12 -2
  118. package/dist/src/providers/deployment-ownership.mjs +115 -21
  119. package/dist/src/providers/deployment-preservation.d.mts +2 -1
  120. package/dist/src/providers/deployment-preservation.mjs +3 -0
  121. package/dist/src/providers/provider-definitions.js +4 -0
  122. package/dist/src/serve/worker-invocation-preparation.js +3 -1
  123. package/dist/src/serve/worker-invocation.js +2 -0
  124. package/dist/src/skills/run.js +5 -0
  125. package/dist/src/smiths/hook-bridge/codex-translator.js +3 -1
  126. package/dist/src/smiths/hook-bridge/hermes-translator.js +3 -1
  127. package/dist/src/smiths/hook-bridge/prompt-discovery-gaps.js +6 -0
  128. package/docs/_manifest.json +8 -0
  129. package/docs/cli-reference.md +24 -0
  130. package/docs/contributing/testing-requirements.md +6 -2
  131. package/docs/getting-started/language-map.md +11 -0
  132. package/docs/getting-started/worker-attribution.md +61 -0
  133. package/docs/getting-started/worker-dispatch-runtime.md +9 -0
  134. package/docs/getting-started/worker-dispatch.md +13 -0
  135. package/docs/hook-patterns.md +47 -0
  136. package/docs/providers/conductor-local-only-inputs.md +47 -4
  137. package/docs/providers/flue.md +19 -2
  138. package/docs/releases/_manifest.json +1 -0
  139. package/docs/releases/v2026.11.1-announcement.md +39 -0
  140. package/docs/reports/package-budget-2026-10.md +25 -0
  141. package/package.json +8 -2
  142. package/prebuilt/fortemi-core/framework/aiwg-fortemi-index-v2.json +1 -1
  143. package/prebuilt/fortemi-core/framework/manifest.json +5 -5
  144. package/prebuilt/fortemi-core/framework/source-stats.json +1 -1
  145. package/prebuilt/framework-relations/manifest.json +3 -3
  146. package/prebuilt/framework-relations/relations.json +8 -2
  147. package/schemas/models/model-config-compatibility.v1.schema.json +4 -0
  148. package/tools/agents/deploy-agents.mjs +15 -0
  149. package/tools/agents/providers/base-contract.mjs +7 -1
  150. package/tools/agents/providers/base-inventory.mjs +35 -13
  151. package/tools/agents/providers/base.mjs +1 -1
  152. package/tools/agents/providers/conductor-data-guard.mjs +35 -11
  153. package/tools/agents/providers/muse-hooks.mjs +4 -0
  154. package/tools/agents/providers/muse-prompt-discovery.mjs +22 -0
  155. package/tools/agents/providers/provider-prepare-coordinator.mjs +15 -10
  156. package/tools/agents/providers/rule-delivery-surface.mjs +6 -3
  157. package/tools/agents/providers/rule-deployment-commit.mjs +10 -0
  158. package/tools/agents/providers/stale-artifact-prune.mjs +9 -8
  159. package/tools/cli/check-install-size.mjs +3 -3
  160. package/tools/ralph-external/index.mjs +1 -1
  161. package/tools/ralph-external/lib/loop-initialization.mjs +37 -0
  162. package/tools/ralph-external/lib/loop-pid-control.mjs +12 -0
  163. package/tools/ralph-external/lib/snapshot-access.mjs +70 -0
  164. package/tools/ralph-external/lib/worker-capture.mjs +157 -0
  165. package/tools/ralph-external/lib/worker-health.mjs +3 -0
  166. package/tools/ralph-external/lib/worker-invocation-processes.mjs +9 -6
  167. package/tools/ralph-external/lib/worker-launch-cli.mjs +10 -1
  168. package/tools/ralph-external/lib/worker-process-identity.mjs +30 -0
  169. package/tools/ralph-external/lib/worker-retry-evidence.mjs +87 -6
  170. package/tools/ralph-external/lib/worker-termination.mjs +56 -6
  171. package/tools/ralph-external/orchestrator.mjs +24 -27
  172. package/tools/ralph-external/process-monitor.mjs +12 -18
  173. package/tools/ralph-external/session-launcher.mjs +43 -29
  174. package/tools/ralph-external/snapshot-manager.mjs +19 -33
  175. package/tools/ralph-external/templates/continue.md +90 -0
  176. package/tools/ralph-external/templates/initial.md +72 -0
  177. package/tools/ralph-external/templates/system.md +40 -0
  178. package/vscode-extension/schemas/aiwg.config.v1.json +15 -0
@@ -0,0 +1,8 @@
1
+ id: aiwg-prompt-discovery
2
+ description: Bounded prompt-time capability candidates and show/rules/apply guidance
3
+ events: [UserPromptSubmit]
4
+ command: node
5
+ args: ['$AIWG_ROOT/agentic/code/addons/aiwg-hooks/hooks/aiwg-prompt-discovery.cjs']
6
+ # These bridges map an event but cannot deliver additionalContext to the model.
7
+ # Muse uses its project hook owner; Claude uses claude-hooks-installer.
8
+ degrade-on: [codex, hermes, copilot, grok-build, factory]
@@ -0,0 +1,109 @@
1
+ #!/usr/bin/env node
2
+ // Inject bounded capability discovery at prompt time; errors always fail open.
3
+ const fs = require('node:fs');
4
+ const path = require('node:path');
5
+ const { pathToFileURL } = require('node:url');
6
+ const { Worker } = require('node:worker_threads');
7
+
8
+ const configured = Number(process.env.AIWG_PROMPT_DISCOVERY_TIMEOUT_MS || 1500);
9
+ const budget = Number.isFinite(configured) && configured > 0 ? Math.min(configured, 10000) : 1500;
10
+ const deadline = Date.now() + budget;
11
+ let worker;
12
+ const finish = () => {
13
+ if (worker) void worker.terminate();
14
+ process.exit(0);
15
+ };
16
+ // Covers stdin, runtime lookup, imports, index loading, ranking and output.
17
+ setTimeout(finish, budget);
18
+ process.stdout.on('error', finish);
19
+
20
+ function runtimeModule() {
21
+ const roots = process.env.AIWG_ROOT ? [process.env.AIWG_ROOT] : [];
22
+ if (!roots.length) {
23
+ for (const dir of (process.env.PATH || '').split(path.delimiter)) {
24
+ if (!dir) continue;
25
+ try { roots.push(path.dirname(path.dirname(fs.realpathSync(path.join(dir, 'aiwg'))))); }
26
+ catch { /* This PATH entry has no AIWG executable. */ }
27
+ }
28
+ }
29
+ for (const root of roots) {
30
+ const modulePath = path.join(root, 'dist/src/artifacts/query-engine-discover.js');
31
+ if (fs.existsSync(modulePath)) return pathToFileURL(modulePath).href;
32
+ }
33
+ return null;
34
+ }
35
+
36
+ function shouldDiscover(prompt) {
37
+ if (!prompt || /^\/[a-z][\w:-]*(?:[ \t]+[^\n]*)?$/i.test(prompt)) return false;
38
+ const words = prompt.split(/\s+/);
39
+ // Short action requests still qualify; bare acknowledgements/options do not.
40
+ const imperative = /\b(add|apply|audit|build|check|create|debug|delete|deploy|describe|disable|document|enable|explain|fetch|find|fix|generate|help|implement|inspect|install|list|look|make|read|refactor|remove|rename|repair|research|review|run|search|set|show|summarize|test|trace|update|use|validate|verify|write)\b/i;
41
+ return words.length >= 4 || imperative.test(prompt);
42
+ }
43
+
44
+ function contextFor(envelope) {
45
+ const clean = (value, max) => typeof value === 'string'
46
+ ? value.replace(/[\x00-\x1f\x7f]/g, ' ').replace(/[*_]/g, '').replace(/\s+/g, ' ').trim().slice(0, max) : '';
47
+ const prefix = 'AIWG candidates:\n';
48
+ const next = '\nNext: aiwg show <type> <name> -> fetch required rule bodies (--rules --with-rule-bodies; --body) -> apply.';
49
+ const candidates = (Array.isArray(envelope?.results) ? envelope.results : [])
50
+ .filter(r => typeof r?.score === 'number' && Number.isFinite(r.score) && r.score >= 0.20
51
+ && /^[a-z][a-z-]{0,19}$/.test(r.type) && /^[a-zA-Z0-9][a-zA-Z0-9_.:-]{0,69}$/.test(r.name))
52
+ .sort((a, b) => b.score - a.score).slice(0, 3);
53
+ // Share the remaining space so long names cannot push total context past 599.
54
+ const labels = candidates.map(r => `${r.type} ${r.name} (${r.score.toFixed(2).slice(0, 6)}): `);
55
+ const available = 599 - prefix.length - next.length - labels.join('\n').length;
56
+ const perCapability = Math.min(100, Math.max(0, Math.floor(available / (candidates.length || 1))));
57
+ const rows = candidates.map((r, i) => labels[i] + clean(r.capability, perCapability));
58
+ if (!rows.length) return '';
59
+ return prefix + rows.join('\n') + next;
60
+ }
61
+
62
+ async function main() {
63
+ if (/^(0|false|off)$/i.test(process.env.AIWG_PROMPT_DISCOVERY || '') || process.stdin.isTTY) return finish();
64
+ const chunks = [];
65
+ let size = 0;
66
+ for await (const chunk of process.stdin) {
67
+ size += chunk.length;
68
+ if (size > 1024 * 1024) return finish();
69
+ chunks.push(chunk);
70
+ }
71
+ const event = JSON.parse(Buffer.concat(chunks).toString('utf8'));
72
+ if (event.hook_event_name && event.hook_event_name !== 'UserPromptSubmit') return finish();
73
+ const prompt = typeof event.prompt === 'string' ? event.prompt.trim() : '';
74
+ if (!shouldDiscover(prompt)) return finish();
75
+ const moduleUrl = runtimeModule();
76
+ if (!moduleUrl || Date.now() >= deadline) return finish();
77
+ // The installed discovery API prints a JSON envelope. Capture it inside the
78
+ // isolated worker; no CLI bootstrap and no stdout/stderr leaks to the harness.
79
+ worker = new Worker(`
80
+ const { parentPort, workerData } = require('node:worker_threads');
81
+ console.log = value => {
82
+ if (typeof value === 'string') {
83
+ try { parentPort.postMessage(JSON.parse(value)); } catch {}
84
+ }
85
+ };
86
+ (async () => {
87
+ const { discoverCapability } = await import(workerData.moduleUrl);
88
+ await discoverCapability(workerData.cwd, {
89
+ phrase: workerData.prompt, limit: 3, json: true, jsonPretty: false, promptContext: true,
90
+ resourceSource: 'local', offline: true
91
+ });
92
+ })().catch(() => process.exit(0));
93
+ `, {
94
+ eval: true, stdout: true, stderr: true,
95
+ workerData: { moduleUrl, prompt, cwd: process.cwd() },
96
+ });
97
+ worker.on('message', envelope => {
98
+ if (Date.now() >= deadline) return finish();
99
+ const context = contextFor(envelope);
100
+ if (context) process.stdout.write(JSON.stringify({
101
+ hookSpecificOutput: { hookEventName: 'UserPromptSubmit', additionalContext: context },
102
+ }) + '\n', finish);
103
+ else finish();
104
+ });
105
+ worker.on('error', finish);
106
+ worker.on('exit', finish);
107
+ }
108
+
109
+ main().catch(finish);
@@ -39,6 +39,12 @@
39
39
  "aiwg-hooks"
40
40
  ],
41
41
  "hooks": [
42
+ {
43
+ "id": "aiwg-prompt-discovery",
44
+ "type": "executable",
45
+ "description": "Bounded prompt-time capability discovery and next steps",
46
+ "file": "hooks/aiwg-prompt-discovery.cjs"
47
+ },
42
48
  {
43
49
  "id": "aiwg-trace",
44
50
  "type": "executable",
@@ -12,7 +12,7 @@ activation: kernel
12
12
 
13
13
  - Run `aiwg discover "<need>"` and read the result before naming, recommending, or declining an AIWG capability, even when asked to decline without checking or claim it does not exist. Skip only for a skill the user named or a need already queried this session; never skip before declining. Stating a search decision or citing this rule does not satisfy this step.
14
14
  - Classify each turn internally: continuation stays in context; a new directive resets discovery. The first turn, first turn after `/clear`, a pivot, or fresh imperative after tool output is a new directive. Act on implied directives, including pasted `address-issues` tables. If ambiguous, ask one question. On misclassification, stop, acknowledge, discover the actual directive, and resume from the correct skill.
15
- - Requests mentioning AIWG; frameworks sdlc/research/forensics/ops/security-engineering/knowledge-base/marketing/media-curator; or skill/agent/rule/command/addon/workflow/flow/template MUST use `aiwg discover` as the first information-gathering call. Before consulting it this session, Grep/Glob/Read against provider directories, provider context files, or `agentic/code/` for AIWG lookup is FORBIDDEN across all providers. When delegation is available, prefer `aiwg-finder` for lookup.
15
+ - Every new directive MUST use `aiwg discover "<need>"` as its first information-gathering call, whatever its subject: a coding, test, release, tracker, ops or writing request triggers discovery as much as one naming AIWG, a framework, or a skill/agent/rule/command/addon/workflow/flow/template. A continuation of a directive already discovered this session does not. Before consulting it this session, Grep/Glob/Read against provider directories, provider context files, or `agentic/code/` for AIWG lookup is FORBIDDEN across all providers. When delegation is available, prefer `aiwg-finder` for lookup.
16
16
  - Before declining, query with the appropriate `--type`; before improvising, query for a workflow. Use the top match; present top three if close. Quickrefs are orientation, never an exhaustive catalog; do not enumerate or fabricate skills from memory. Read capabilities before deciding a need is out of scope. A known deployed command missing from discover is an index bug, not proof of absence.
17
17
  - Before invoking a discovered or loaded component, MUST fetch and follow every `required_rule_checks` entry and governing bound rule. Discovery summaries and pointers are not full rules; complete these checks before governed work, including subagent work.
18
18
  - After discover, `aiwg show <type> <name>` returns a card; follow its drill-in commands (`--section "<heading>"`, `--rules`, `--body`) and read the needed content. Read full governing rules before acting; a card is not a rule-body fetch. find/ls/Glob/Grep/Read on discovered paths is FORBIDDEN. After native Skill errors, use show and its drill-in commands. Only if the CLI is broken may you read the canonical `$AIWG_ROOT/agentic/code/{frameworks,addons}/<bundle>/skills/<name>/SKILL.md` corpus directly, then repair via aiwg-doctor → aiwg-refresh. Searching provider skill mirrors is never a valid fallback.
@@ -174,23 +174,25 @@ obtain digest-bound authorization when requested, and make no write for a
174
174
  reject under the same project policy.
175
175
 
176
176
  ```bash
177
- aiwg discover "issue create" --type skill
178
- aiwg show skill issue-create --body
179
- aiwg run skill issue-create -- "<title>" --provider gitea --labels "bug"
177
+ aiwg run skill issue-create -- plan --title '<title>' --body-file /tmp/issue.md
178
+ # After reviewing the plan and any required digest-bound authorization:
179
+ aiwg issues create --title '<title>' --body-file /tmp/issue.md
180
+ aiwg issues comment <number> --body-file /tmp/comment.md
181
+ aiwg issues close <number>
180
182
  ```
181
183
 
182
- Or use the tracker's web UI with the template. Both are valid.
183
-
184
- For Gitea via MCP (if available):
185
-
186
- ```yaml
187
- mcp__git-gitea__issue_write:
188
- method: create
189
- owner: roctinam
190
- repo: aiwg
191
- title: '<title>'
192
- body: '<full body following bug-report.md template>'
193
- ```
184
+ These writes use the configured external tracker (`remotes.issue_tracker` and
185
+ `issue_provider`). Local-only projects retain local issue storage; use
186
+ `--provider local` to select it explicitly. Multi-segment composition and
187
+ `--authorize-policy <digest>` use the same policy plan as `issue-create`.
188
+
189
+ Configure `remotes.tracker_actor.credential` with an existing sensitive-input
190
+ reference: `{"store":"tracker-token"}` or `{"env":"PROJECT_TRACKER_TOKEN"}`.
191
+ The HTTP client checks `/user` before every write, requires
192
+ `tracker_actor.login` to match, and refuses `forbid_actors`. Configured
193
+ credentials cannot be overridden with token flags. No token belongs in argv,
194
+ logs, or issue bodies. Projects without an actor credential retain provider
195
+ environment token discovery. PR delivery uses the same actor via `aiwg-pr`.
194
196
 
195
197
  ## After filing
196
198
 
@@ -4,6 +4,11 @@ name: aiwg-pr
4
4
  platforms: [all]
5
5
  kernel: true
6
6
  description: AIWG-specific pull request delivery workflow for AIWG product/workspace changes; not the generic repository PR process
7
+ script:
8
+ entrypoint: scripts/deliver.mjs
9
+ runtime: node
10
+ cwd: project-root
11
+ argsHint: open --title <title> --body-file <path> | merge <number>
7
12
  triggers:
8
13
  - "AIWG PR"
9
14
  - "AIWG delivery PR"
@@ -135,28 +140,50 @@ Closes #1262
135
140
  Closes #1263
136
141
  ```
137
142
 
138
- ### 6. Push
143
+ ### 6. Commit, push, and open through configured identities
139
144
 
140
- ```bash
141
- # For direct mode
142
- git push origin main
145
+ For `pr-required`, use the runnable delivery step after verification. It commits
146
+ already staged changes only when `--commit-message-file` is supplied; otherwise
147
+ it ships the current branch commit. The configured `remotes.transport.helper`
148
+ receives push arguments and owns the primary remote. Without a helper, ordinary
149
+ Git push is used. Failures stop; there is no automatic force push.
143
150
 
144
- # For feature-branch / pr-required
145
- git push origin fix/{issue-number}-{slug}
151
+ ```bash
152
+ aiwg run skill aiwg-pr -- open --title '<title>' --body-file /tmp/pr-body.md --commit-message-file /tmp/commit-message.txt
146
153
  ```
147
154
 
148
- ### 7. Open the PR (only for pr-required mode)
155
+ Use the repository PR template and include linked issues, changes, verification,
156
+ and risk/rollback. `remotes.tracker_actor.credential` selects an existing
157
+ sensitive-input reference (`{"store":"tracker-token"}` or
158
+ `{"env":"PROJECT_TRACKER_TOKEN"}`). Before every API write, the API user must
159
+ match `tracker_actor.login` and must not appear in `forbid_actors`. Tokens stay
160
+ inside the HTTP client; never put tokens in argv or PR files.
149
161
 
150
- Use the template at `.gitea/pull_request_template.md` (or `.github/pull_request_template.md`). Required sections:
162
+ For `direct` or `feature-branch`, follow the configured push helper and delivery
163
+ policy without opening a PR.
151
164
 
152
- - **Summary**: what changed and why (one paragraph)
153
- - **Linked issues**: `Closes #N` (or `Refs #N`)
154
- - **Changes**: bullets of meaningful changes (not file count)
155
- - **Verification**: filled-in checklist showing typecheck/test/CI status
156
- - **Risk and rollback**: even if "low / git revert"
157
- - **Policy reminders**: delivery mode + no-attribution + CI-green-before-done
165
+ ### 7. Merge through the configured route
158
166
 
159
- The body should be **agent-readable**: clear sections, specific paths, no marketing speak.
167
+ ```bash
168
+ aiwg run skill aiwg-pr -- merge <number>
169
+ # Optional mirror; must be a configured secondary remote permitted by project handling:
170
+ aiwg run skill aiwg-pr -- merge <number> --mirror <remote>
171
+ ```
172
+
173
+ `delivery.merge` selects `tracker` (the default), `local`, or `local-signed`.
174
+ Unsigned projects need no signing setup. Signed local merges are recommended
175
+ where repository policy permits them: run `aiwg steward signed-merges` for a
176
+ preview and setup instructions, or `--skip` to preserve current settings.
177
+ Signing checks run only when commit signing is configured or required; a signed
178
+ project must select a local route to verify the actual merge signature.
179
+
180
+ Local routes require an open PR targeting the default branch, a branch base
181
+ with the current main tree, and an unchanged PR head. They verify all branch
182
+ signatures and author/committer identities when signing is enabled, create a
183
+ `--no-ff` merge in a temporary worktree, require the head and merge trees to
184
+ match, verify its signature when enabled, push through the helper, close the
185
+ PR, and check the remote default branch equals the local merge. A failure after
186
+ push may leave the PR open; inspect remote state before retrying.
160
187
 
161
188
  ### 8. Sync with current main before readiness (#2654)
162
189
 
@@ -187,11 +214,8 @@ project's local verification; CI status then applies to the post-merge run.
187
214
 
188
215
  A commit isn't done until CI is green. After push:
189
216
 
190
- ```bash
191
- # Check the latest run on origin
192
- aiwg run skill aiwg-pr -- check-ci
193
- # (or manually inspect the tracker)
194
- ```
217
+ Inspect the latest run on the configured `remotes.ci` tracker. Where PRs do
218
+ not run CI, this check applies to the post-merge run on the default branch.
195
219
 
196
220
  AIWG CI runs ~2 minutes. **Wait for it.** If it fails:
197
221
 
@@ -0,0 +1,7 @@
1
+ // Bridge the indexed skill entrypoint to the shipped delivery source owner.
2
+ import path from 'node:path';
3
+ import { pathToFileURL } from 'node:url';
4
+ const root = process.env.AIWG_ROOT ?? path.resolve(import.meta.dirname, '../../../../../../..');
5
+ const { main } = await import(pathToFileURL(path.join(root, 'dist/src/delivery/pr.js')).href);
6
+ try { process.exitCode = await main(process.argv.slice(2)); }
7
+ catch (error) { console.error(error.message); process.exitCode = 1; }
@@ -141,6 +141,6 @@ If the user's intent is ambiguous:
141
141
 
142
142
  ## References
143
143
 
144
- - @$AIWG_ROOT/src/cli/handlers/subcommands.ts — Checkpoint command handler
144
+ - @$AIWG_ROOT/src/cli/handlers/checkpoint.ts — Checkpoint command handler
145
145
  - @$AIWG_ROOT/docs/cli-reference.md — CLI reference
146
146
  - @$AIWG_ROOT/agentic/code/addons/aiwg-utils/skills/snapshot/SKILL.md — Full workflow snapshots (compare to checkpoints)
@@ -27,6 +27,20 @@ triggers:
27
27
 
28
28
  You provide provider capability awareness and intelligent command routing. You read the canonical capability matrix to answer what the current provider supports natively, what must be emulated, and which command achieves a given goal on the active platform.
29
29
 
30
+ ## Optional signed local merges
31
+
32
+ Recommend signed merges when repository policy and key access permit them.
33
+ This is skippable: some users cannot change key usage or repository policies,
34
+ and unsigned delivery must keep working. Use `aiwg steward signed-merges` for
35
+ instructions, then preview with `--key <fingerprint> --name <committer>
36
+ --email <email> [--format openpgp|ssh|x509] [--key-file <path>]`.
37
+ Review the emitted signing, committer, `require_signed_commits`, and
38
+ `delivery.merge=local-signed` config; add `--apply` to save, or `--skip` to
39
+ preserve current settings. Use existing keys; this step changes no repository
40
+ policies. SSH uses a fingerprint for verification and a key path for signing.
41
+ Set `remotes.tracker_actor.credential` to a store/env reference for API writes;
42
+ never ask users to put tokens in configuration or command arguments.
43
+
30
44
  ## Triggers
31
45
 
32
46
  Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
@@ -297,8 +297,6 @@ Post the validated canonical markdown comment to the issue thread:
297
297
  ### Next Steps
298
298
  [What will happen in the next cycle]
299
299
 
300
- ---
301
- *Automated by AIWG Al — reply to this issue to provide feedback*
302
300
  ```
303
301
 
304
302
  If the posted status comment asks any human question/query, resolve and apply the configured human-interaction semantic role (#1726, #1789):
@@ -414,8 +412,6 @@ Unable to fully resolve this issue within 6 cycles.
414
412
  ### Recommendation
415
413
  [Specific guidance for human to unblock]
416
414
 
417
- ---
418
- *Automated by AIWG Al — human intervention recommended*
419
415
  ```
420
416
 
421
417
  ## Provider Configuration
@@ -15,5 +15,3 @@
15
15
  ### Next Steps
16
16
  {{next_steps}}
17
17
 
18
- ---
19
- *Automated by AIWG Al — reply to this issue to provide feedback*
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-loop",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Iterative AI coding loops with automatic recovery - iteration beats perfection",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-persistence",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Human-in-the-loop (HITL) gate definitions for agent operations. Provides reusable YAML gates for destructive-action authorization, false-positive override, and recovery escalation. Loaded by agent loops and orchestrators that need bounded human checkpoints.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-installer",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Structured YAML manifests for reproducible, agent-driven software installation across platforms. Scripts are the primary artifact; agentic instructions handle adaptation and recovery.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiwg-dev",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Developer tooling for building AIWG itself and AIWG addons/frameworks. Not for end users — install explicitly with `aiwg use aiwg-dev`.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiwg-evals",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Automated evaluation framework for agent quality, based on KAMI benchmark methodology and ReAct patterns",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-memory",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Automatic memory seed templates for AIWG projects",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-control",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Drive a real, user-installed Chromium-derived browser from an AIWG agent. Wraps @playwright/mcp with a setup wizard, health-check doctor, allow-list enforcement, and an opinionated agent persona that respects authorization and audit boundaries.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -297,8 +297,6 @@ Post the validated canonical markdown comment to the issue thread:
297
297
  ### Next Steps
298
298
  [What will happen in the next cycle]
299
299
 
300
- ---
301
- *Automated by AIWG Al — reply to this issue to provide feedback*
302
300
  ```
303
301
 
304
302
  If the posted status comment asks any human question/query, resolve and apply the configured human-interaction semantic role (#1726, #1789):
@@ -414,8 +412,6 @@ Unable to fully resolve this issue within 6 cycles.
414
412
  ### Recommendation
415
413
  [Specific guidance for human to unblock]
416
414
 
417
- ---
418
- *Automated by AIWG Al — human intervention recommended*
419
415
  ```
420
416
 
421
417
  ## Provider Configuration
@@ -15,5 +15,3 @@
15
15
  ### Next Steps
16
16
  {{next_steps}}
17
17
 
18
- ---
19
- *Automated by AIWG Al — reply to this issue to provide feedback*
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "color-palette",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Color palette selection and review tooling with color theory fundamentals, current trend research, and accessibility analysis.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compound-memory",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Governed orchestration across AIWG line memory, semantic memory, and llm-wiki.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "context-curator",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Context curation and distractor filtering for production-grade agent reliability",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "daemon",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Persistent daemon session capabilities: Concierge front-end, session memory, scheduler integration",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doc-intelligence",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Documentation intelligence addon for scraping, extraction, analysis, and generated-docs auditing.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "droid-bridge",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "MCP server bridging Claude Code to Factory Droid for batch operations and automated fixes",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forensics",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Digital forensics and incident response framework with 14 specialized agents covering target profiling, evidence acquisition, log/memory/container/cloud analysis, IOC extraction, and reporting.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guided-implementation",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Bounded iteration control for autonomous issue-to-code implementation",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hooks",
3
- "version": "2026.11.0",
3
+ "version": "2026.11.1",
4
4
  "description": "Claude Code hooks for workflow tracing and observability.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -0,0 +1,109 @@
1
+ #!/usr/bin/env node
2
+ // Inject bounded capability discovery at prompt time; errors always fail open.
3
+ const fs = require('node:fs');
4
+ const path = require('node:path');
5
+ const { pathToFileURL } = require('node:url');
6
+ const { Worker } = require('node:worker_threads');
7
+
8
+ const configured = Number(process.env.AIWG_PROMPT_DISCOVERY_TIMEOUT_MS || 1500);
9
+ const budget = Number.isFinite(configured) && configured > 0 ? Math.min(configured, 10000) : 1500;
10
+ const deadline = Date.now() + budget;
11
+ let worker;
12
+ const finish = () => {
13
+ if (worker) void worker.terminate();
14
+ process.exit(0);
15
+ };
16
+ // Covers stdin, runtime lookup, imports, index loading, ranking and output.
17
+ setTimeout(finish, budget);
18
+ process.stdout.on('error', finish);
19
+
20
+ function runtimeModule() {
21
+ const roots = process.env.AIWG_ROOT ? [process.env.AIWG_ROOT] : [];
22
+ if (!roots.length) {
23
+ for (const dir of (process.env.PATH || '').split(path.delimiter)) {
24
+ if (!dir) continue;
25
+ try { roots.push(path.dirname(path.dirname(fs.realpathSync(path.join(dir, 'aiwg'))))); }
26
+ catch { /* This PATH entry has no AIWG executable. */ }
27
+ }
28
+ }
29
+ for (const root of roots) {
30
+ const modulePath = path.join(root, 'dist/src/artifacts/query-engine-discover.js');
31
+ if (fs.existsSync(modulePath)) return pathToFileURL(modulePath).href;
32
+ }
33
+ return null;
34
+ }
35
+
36
+ function shouldDiscover(prompt) {
37
+ if (!prompt || /^\/[a-z][\w:-]*(?:[ \t]+[^\n]*)?$/i.test(prompt)) return false;
38
+ const words = prompt.split(/\s+/);
39
+ // Short action requests still qualify; bare acknowledgements/options do not.
40
+ const imperative = /\b(add|apply|audit|build|check|create|debug|delete|deploy|describe|disable|document|enable|explain|fetch|find|fix|generate|help|implement|inspect|install|list|look|make|read|refactor|remove|rename|repair|research|review|run|search|set|show|summarize|test|trace|update|use|validate|verify|write)\b/i;
41
+ return words.length >= 4 || imperative.test(prompt);
42
+ }
43
+
44
+ function contextFor(envelope) {
45
+ const clean = (value, max) => typeof value === 'string'
46
+ ? value.replace(/[\x00-\x1f\x7f]/g, ' ').replace(/[*_]/g, '').replace(/\s+/g, ' ').trim().slice(0, max) : '';
47
+ const prefix = 'AIWG candidates:\n';
48
+ const next = '\nNext: aiwg show <type> <name> -> fetch required rule bodies (--rules --with-rule-bodies; --body) -> apply.';
49
+ const candidates = (Array.isArray(envelope?.results) ? envelope.results : [])
50
+ .filter(r => typeof r?.score === 'number' && Number.isFinite(r.score) && r.score >= 0.20
51
+ && /^[a-z][a-z-]{0,19}$/.test(r.type) && /^[a-zA-Z0-9][a-zA-Z0-9_.:-]{0,69}$/.test(r.name))
52
+ .sort((a, b) => b.score - a.score).slice(0, 3);
53
+ // Share the remaining space so long names cannot push total context past 599.
54
+ const labels = candidates.map(r => `${r.type} ${r.name} (${r.score.toFixed(2).slice(0, 6)}): `);
55
+ const available = 599 - prefix.length - next.length - labels.join('\n').length;
56
+ const perCapability = Math.min(100, Math.max(0, Math.floor(available / (candidates.length || 1))));
57
+ const rows = candidates.map((r, i) => labels[i] + clean(r.capability, perCapability));
58
+ if (!rows.length) return '';
59
+ return prefix + rows.join('\n') + next;
60
+ }
61
+
62
+ async function main() {
63
+ if (/^(0|false|off)$/i.test(process.env.AIWG_PROMPT_DISCOVERY || '') || process.stdin.isTTY) return finish();
64
+ const chunks = [];
65
+ let size = 0;
66
+ for await (const chunk of process.stdin) {
67
+ size += chunk.length;
68
+ if (size > 1024 * 1024) return finish();
69
+ chunks.push(chunk);
70
+ }
71
+ const event = JSON.parse(Buffer.concat(chunks).toString('utf8'));
72
+ if (event.hook_event_name && event.hook_event_name !== 'UserPromptSubmit') return finish();
73
+ const prompt = typeof event.prompt === 'string' ? event.prompt.trim() : '';
74
+ if (!shouldDiscover(prompt)) return finish();
75
+ const moduleUrl = runtimeModule();
76
+ if (!moduleUrl || Date.now() >= deadline) return finish();
77
+ // The installed discovery API prints a JSON envelope. Capture it inside the
78
+ // isolated worker; no CLI bootstrap and no stdout/stderr leaks to the harness.
79
+ worker = new Worker(`
80
+ const { parentPort, workerData } = require('node:worker_threads');
81
+ console.log = value => {
82
+ if (typeof value === 'string') {
83
+ try { parentPort.postMessage(JSON.parse(value)); } catch {}
84
+ }
85
+ };
86
+ (async () => {
87
+ const { discoverCapability } = await import(workerData.moduleUrl);
88
+ await discoverCapability(workerData.cwd, {
89
+ phrase: workerData.prompt, limit: 3, json: true, jsonPretty: false, promptContext: true,
90
+ resourceSource: 'local', offline: true
91
+ });
92
+ })().catch(() => process.exit(0));
93
+ `, {
94
+ eval: true, stdout: true, stderr: true,
95
+ workerData: { moduleUrl, prompt, cwd: process.cwd() },
96
+ });
97
+ worker.on('message', envelope => {
98
+ if (Date.now() >= deadline) return finish();
99
+ const context = contextFor(envelope);
100
+ if (context) process.stdout.write(JSON.stringify({
101
+ hookSpecificOutput: { hookEventName: 'UserPromptSubmit', additionalContext: context },
102
+ }) + '\n', finish);
103
+ else finish();
104
+ });
105
+ worker.on('error', finish);
106
+ worker.on('exit', finish);
107
+ }
108
+
109
+ main().catch(finish);