aiwg 2026.11.7 → 2026.11.8

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 (112) hide show
  1. package/README.md +1 -1
  2. package/agentic/code/addons/aiwg-hooks/hooks/aiwg-prompt-discovery.cjs +3 -2
  3. package/agentic/code/addons/writing-quality/skills/ai-pattern-detection/SKILL.md +24 -12
  4. package/agentic/code/addons/writing-quality/skills/ai-pattern-detection/references/current-patterns.json +4 -4
  5. package/agentic/code/addons/writing-quality/skills/ai-pattern-detection/scripts/pattern_scanner.py +8 -6
  6. package/agentic/code/addons/writing-quality/skills/ai-pattern-detection/scripts/structural_patterns.py +15 -5
  7. package/agentic/code/plugins/agent-loop/.claude-plugin/plugin.json +1 -1
  8. package/agentic/code/plugins/agent-persistence/.claude-plugin/plugin.json +1 -1
  9. package/agentic/code/plugins/agentic-installer/.claude-plugin/plugin.json +1 -1
  10. package/agentic/code/plugins/aiwg-dev/.claude-plugin/plugin.json +1 -1
  11. package/agentic/code/plugins/aiwg-evals/.claude-plugin/plugin.json +1 -1
  12. package/agentic/code/plugins/auto-memory/.claude-plugin/plugin.json +1 -1
  13. package/agentic/code/plugins/browser-control/.claude-plugin/plugin.json +1 -1
  14. package/agentic/code/plugins/color-palette/.claude-plugin/plugin.json +1 -1
  15. package/agentic/code/plugins/compound-memory/.claude-plugin/plugin.json +1 -1
  16. package/agentic/code/plugins/context-curator/.claude-plugin/plugin.json +1 -1
  17. package/agentic/code/plugins/daemon/.claude-plugin/plugin.json +1 -1
  18. package/agentic/code/plugins/doc-intelligence/.claude-plugin/plugin.json +1 -1
  19. package/agentic/code/plugins/droid-bridge/.claude-plugin/plugin.json +1 -1
  20. package/agentic/code/plugins/forensics/.claude-plugin/plugin.json +1 -1
  21. package/agentic/code/plugins/guided-implementation/.claude-plugin/plugin.json +1 -1
  22. package/agentic/code/plugins/hooks/.claude-plugin/plugin.json +1 -1
  23. package/agentic/code/plugins/hooks/hooks/aiwg-prompt-discovery.cjs +3 -2
  24. package/agentic/code/plugins/knowledge-base/.claude-plugin/plugin.json +1 -1
  25. package/agentic/code/plugins/line-memory/.claude-plugin/plugin.json +1 -1
  26. package/agentic/code/plugins/llm-wiki/.claude-plugin/plugin.json +1 -1
  27. package/agentic/code/plugins/marketing/.claude-plugin/plugin.json +1 -1
  28. package/agentic/code/plugins/media-curator/.claude-plugin/plugin.json +1 -1
  29. package/agentic/code/plugins/nlp-prod/.claude-plugin/plugin.json +1 -1
  30. package/agentic/code/plugins/ops/.claude-plugin/plugin.json +1 -1
  31. package/agentic/code/plugins/prose-integration/.claude-plugin/plugin.json +1 -1
  32. package/agentic/code/plugins/research/.claude-plugin/plugin.json +1 -1
  33. package/agentic/code/plugins/rlm/.claude-plugin/plugin.json +1 -1
  34. package/agentic/code/plugins/sdlc/.claude-plugin/plugin.json +1 -1
  35. package/agentic/code/plugins/sdlc/.codex-plugin/plugin.json +1 -1
  36. package/agentic/code/plugins/sdlc/tools/security/threat-assessment/context.mjs +11 -2
  37. package/agentic/code/plugins/sdlc/tools/security/threat-assessment.mjs +1 -1
  38. package/agentic/code/plugins/security-engineering/.claude-plugin/plugin.json +1 -1
  39. package/agentic/code/plugins/semantic-memory/.claude-plugin/plugin.json +1 -1
  40. package/agentic/code/plugins/skill-factory/.claude-plugin/plugin.json +1 -1
  41. package/agentic/code/plugins/star-prompt/.claude-plugin/plugin.json +1 -1
  42. package/agentic/code/plugins/testing-quality/.claude-plugin/plugin.json +1 -1
  43. package/agentic/code/plugins/twelve-factor/.claude-plugin/plugin.json +1 -1
  44. package/agentic/code/plugins/uat-mcp/.claude-plugin/plugin.json +1 -1
  45. package/agentic/code/plugins/utils/.claude-plugin/plugin.json +1 -1
  46. package/agentic/code/plugins/validation-complete/.claude-plugin/plugin.json +1 -1
  47. package/agentic/code/plugins/verbalized-sampling/.claude-plugin/plugin.json +1 -1
  48. package/agentic/code/plugins/voice/.claude-plugin/plugin.json +1 -1
  49. package/agentic/code/plugins/writing/.claude-plugin/plugin.json +1 -1
  50. package/agentic/code/plugins/writing/skills/ai-pattern-detection/SKILL.md +24 -12
  51. package/agentic/code/plugins/writing/skills/ai-pattern-detection/references/current-patterns.json +4 -4
  52. package/agentic/code/plugins/writing/skills/ai-pattern-detection/scripts/pattern_scanner.py +8 -6
  53. package/agentic/code/plugins/writing/skills/ai-pattern-detection/scripts/structural_patterns.py +15 -5
  54. package/agentic/code/providers/model-capabilities.v1.json +22 -21
  55. package/agentic/code/providers/model-catalog.v1.json +11 -10
  56. package/dist/src/cli/handlers/refresh-managed-deployment.js +13 -3
  57. package/dist/src/cli/handlers/refresh-user-hooks.js +102 -0
  58. package/dist/src/cli/handlers/refresh.js +2 -0
  59. package/dist/src/config/worker-guidance-warning.js +8 -0
  60. package/dist/src/extensions/user-hook-diagnostics.js +16 -1
  61. package/dist/src/extensions/verified-hook-command.js +7 -0
  62. package/dist/src/models/cursor-models.js +92 -0
  63. package/dist/src/models/model-discovery.js +4 -3
  64. package/dist/src/models/provider-policy.js +1 -1
  65. package/dist/src/models/worker-health-readiness.js +4 -0
  66. package/dist/src/models/worker-installation.d.mts +2 -0
  67. package/dist/src/models/worker-installation.mjs +8 -2
  68. package/dist/src/models/worker-invocation-policy.js +21 -1
  69. package/dist/src/models/worker-plan.js +3 -1
  70. package/dist/src/models/worker-wiring-diagnostics.js +25 -0
  71. package/dist/src/providers/provider-context-contracts.js +3 -0
  72. package/dist/src/providers/provider-seeds-1.js +1 -1
  73. package/dist/src/smiths/context-pipeline/muse-bridge.js +7 -4
  74. package/dist/src/smiths/context-pipeline/workspace-audit.js +37 -6
  75. package/dist/src/smiths/context-pipeline/workspace-bootstrap.js +3 -1
  76. package/dist/src/smiths/context-pipeline/workspace-doctor.js +16 -4
  77. package/dist/src/smiths/context-pipeline/workspace-document.js +4 -2
  78. package/dist/src/smiths/hook-bridge/codex-trust.js +56 -7
  79. package/dist/src/smiths/hook-bridge/cursor-translator.js +89 -0
  80. package/dist/src/smiths/hook-bridge/index.js +4 -1
  81. package/dist/src/writing/contextual-diagnostics.js +2 -1
  82. package/dist/src/writing/current-patterns.catalogue.json +4 -4
  83. package/dist/src/writing/current-patterns.js +2 -2
  84. package/dist/src/writing/structural-patterns.js +23 -6
  85. package/docs/_manifest.json +8 -0
  86. package/docs/getting-started/worker-dispatch.md +9 -2
  87. package/docs/hook-patterns.md +13 -2
  88. package/docs/providers/cursor-direct.md +136 -16
  89. package/docs/releases/v2026.11.7-announcement.md +2 -2
  90. package/docs/releases/v2026.11.8-announcement.md +41 -0
  91. package/package.json +1 -1
  92. package/prebuilt/fortemi-core/framework/aiwg-fortemi-index-v2.json +1 -1
  93. package/prebuilt/fortemi-core/framework/manifest.json +5 -5
  94. package/prebuilt/fortemi-core/framework/source-stats.json +1 -1
  95. package/prebuilt/framework-relations/manifest.json +3 -3
  96. package/prebuilt/framework-relations/relations.json +1 -1
  97. package/tools/agents/providers/cursor-prompt-discovery.mjs +13 -0
  98. package/tools/agents/providers/cursor.mjs +2 -0
  99. package/tools/agents/providers/openclaw-context.mjs +6 -0
  100. package/tools/agents/providers/openclaw.mjs +14 -12
  101. package/tools/agents/providers/rule-delivery-surface.mjs +1 -1
  102. package/tools/agents/providers/rule-deployment-prepare.mjs +1 -0
  103. package/tools/agents/providers/rule-presentation.mjs +1 -1
  104. package/tools/agents/providers/rule-startup.mjs +3 -1
  105. package/tools/cli/doctor-worker-health.mjs +6 -0
  106. package/tools/cli/doctor-worker-policy.mjs +36 -0
  107. package/tools/cli/doctor-worker-probe.mjs +4 -0
  108. package/tools/cli/worker-qualification.mjs +3 -1
  109. package/tools/ralph-external/lib/cursor-adapter.mjs +27 -32
  110. package/tools/security/threat-assessment/context.mjs +11 -2
  111. package/tools/security/threat-assessment.mjs +1 -1
  112. package/vscode-extension/schemas/aiwg.config.v1.json +13 -0
package/README.md CHANGED
@@ -1637,7 +1637,7 @@ See [cross-platform overview](docs/integrations/cross-platform-overview.md) for
1637
1637
  |---|---|---|---|---|
1638
1638
  | Claude Code | `aiwg use all --provider claude` | `CLAUDE.md` | Skills, commands, hooks, MCP config | Best fit for rich AIWG provider packaging. See [Claude quickstart](docs/integrations/claude-code-quickstart.md). |
1639
1639
  | Codex | `aiwg use all --provider codex` | `AGENTS.md` | Global prompts, project skills, MCP config | Uses AGENTS.md bootstrap plus `.agents/skills/`. See [Codex quickstart](docs/integrations/codex-quickstart.md). |
1640
- | Cursor | `aiwg use all --provider cursor` | Rules and skills | `.cursor/rules/*.mdc`, `.cursor/skills/*/SKILL.md` | Cursor rules are native; some assets remain conventional. See [Cursor quickstart](docs/integrations/cursor-quickstart.md). |
1640
+ | Cursor | `aiwg use all --provider cursor` | Rules and skills | `.cursor/rules/*.mdc`, `.cursor/skills/*/SKILL.md`, `.cursor/hooks.json` | Cursor rules are native; the prompt-discovery hook runs where Cursor runs project hooks. Cursor can also be a direct worker alongside Codex and Muse. See [Cursor quickstart](docs/integrations/cursor-quickstart.md). |
1641
1641
  | OpenCode | `aiwg use all --provider opencode` | Agent/rule context | Provider-local agents, commands, rules | Good for lightweight terminal workflows. |
1642
1642
  | GitHub Copilot | `aiwg use all --provider copilot` | `.github` assets | Prompts, instructions, agents, MCP config | Uses `.github/prompts/*.prompt.md`, `.github/instructions/*.instructions.md`, and `.github/agents/*.agent.md`. |
1643
1643
  | Devin Desktop | `aiwg use all --provider devin` | `AGENTS.md` | Rules and workflows | Formerly Windsurf; `windsurf` remains the provider id and `devin` is its alias. See [quickstart](docs/integrations/windsurf-quickstart.md). |
@@ -96,7 +96,8 @@ async function main() {
96
96
  }
97
97
  const event = JSON.parse(Buffer.concat(chunks).toString('utf8'));
98
98
  const hermes = event.hook_event_name === 'pre_llm_call';
99
- if (event.hook_event_name && event.hook_event_name !== 'UserPromptSubmit' && !hermes) return finish();
99
+ const cursor = event.hook_event_name === 'beforeSubmitPrompt';
100
+ if (event.hook_event_name && event.hook_event_name !== 'UserPromptSubmit' && !hermes && !cursor) return finish();
100
101
  if ([event.role, event.message?.role].some(role => role && role !== 'user')
101
102
  || /^(system|notification|tool[_-]result)$/.test(event.type || '')) return finish();
102
103
  const text = hermes ? event.extra?.user_message : event.prompt;
@@ -127,7 +128,7 @@ async function main() {
127
128
  worker.on('message', envelope => {
128
129
  if (Date.now() >= deadline) return finish();
129
130
  const context = contextFor(envelope, prompt);
130
- if (context) process.stdout.write(JSON.stringify(hermes ? { context } : {
131
+ if (context) process.stdout.write(JSON.stringify(cursor ? { continue: true, additional_context: context } : hermes ? { context } : {
131
132
  hookSpecificOutput: { hookEventName: 'UserPromptSubmit', additionalContext: context },
132
133
  }) + '\n', finish);
133
134
  else finish();
@@ -59,16 +59,17 @@ findings.
59
59
  ### Structural and Campaign Checks
60
60
 
61
61
  Paragraph-final explicit moral/lesson openers (3–10 words) are cut tier; generic
62
- subjects alone never trigger a closer finding. Numbers, identifiers and protected
63
- spans suppress moral findings. Adjacent sentences sharing the first two tokens
62
+ subjects alone never trigger a closer finding. Numbers, identifiers and code
63
+ suppress moral findings; quoted scenario names within authored prose are allowed. Adjacent sentences sharing the first two tokens
64
64
  must have parallel predicates with an aligned polarity flip or one listed antonym
65
65
  (cut). Different predicates sharing a negated opener are insufficient. Four
66
66
  consecutive statements of 1–4 words in one paragraph form a check-tier fragment
67
67
  run. Questions and identical-sentence-only runs are excluded. Headings, blank
68
68
  lines and protected whole lines break sequences; wrapped prose lines do not.
69
69
 
70
- Colon reveals are watch tier only for a short setup that withholds a complement
71
- and a short sentence-final punchline. Mere colon frequency and neighboring
70
+ Colon reveals are watch tier for a short setup that withholds a complement
71
+ and a short sentence-final punchline, or an explicit defect revealed through
72
+ a conditional consequence. Mere colon frequency and neighboring
72
73
  findings never suffice. Lists, definitions, digits/citations, code and quotation
73
74
  introductions are excluded. Ambiguous technical introductions remain unflagged.
74
75
 
@@ -96,15 +97,26 @@ explicit size error; split larger sets. Related-location output can still grow
96
97
  with repetition inside an allowed set. A single-document campaign may report
97
98
  repeated sentences; phrases and skeletons require distinct documents.
98
99
 
100
+ The #4138 reproduction also detects a withheld defect followed by an `if`
101
+ condition and a short consequence (`one bug: if …, nothing stopped`). The
102
+ conditional and consequence together may contain up to sixteen words; ordinary
103
+ lists, definitions, code and numeric references stay excluded.
104
+
105
+ A short consequence, a one-word repair (`fixed`, `patched`, `repaired` or
106
+ `resolved`) and a final explicit moral also form a fragment run. The consequence
107
+ may be the final comma clause of a longer sentence. This covers `nothing stopped.
108
+ fixed. always test …` while preserving the four-statement threshold for generic
109
+ staccato. Moral endings allow a quoted scenario name within authored prose
110
+ (`always test the "switch is gone" case`); entirely quoted text and inline code
111
+ remain protected. The negate/assert category includes the short corrective
112
+ frame `it doesn't anymore` (also `it does not anymore`).
113
+
99
114
  These checks are heuristic. Short generic statements and factual technical
100
- negations remain residuals for review; explicit moral openers can be useful
101
- instructions. The original #4138 paragraph has only two short trailing sentences,
102
- so it does not meet the four-sentence fragment threshold. Its colon introduces a
103
- conditional/list and its moral contains a protected quotation, so these are
104
- explicitly scoped out. Its mirrored comma pair is detected as `antithesis-pair`.
105
- A standalone “it doesn't anymore” is a factual correction rather than a sufficient
106
- negate/assert trigger. The reproduction still flags the aside, antonym pair,
107
- negated evidence and negated alternative on all three surfaces.
115
+ negations remain residuals for review; explicit moral openers and short
116
+ corrections can be useful instructions. Findings call for contextual review.
117
+ The reproduction produces all six requested categories across Python,
118
+ validation and contextual diagnostics, with the comma pair reported as
119
+ `antithesis-pair` and the aside as `labelled-significance`.
108
120
 
109
121
  ### Contextual Patterns (Check Frequency)
110
122
 
@@ -27,7 +27,7 @@
27
27
  {
28
28
  "id": "negate-then-assert",
29
29
  "tier": "check",
30
- "pattern": "\\b(?:(?:is|are|was|were)\\s+not|isn't|aren't)\\s+(?:evidence|proof|a substitute|a replacement|the same|enough|just|only|about)\\b|\\b(?:it|this|that)\\s+does\\s+not\\s+(?:mean|prove|imply)\\b",
30
+ "pattern": "\\b(?:(?:is|are|was|were)\\s+not|isn't|aren't)\\s+(?:evidence|proof|a substitute|a replacement|the same|enough|just|only|about)\\b|\\b(?:it|this|that)\\s+does\\s+not\\s+(?:mean|prove|imply)\\b|\\bit\\s+(?:doesn't|does not)\\s+anymore\\b",
31
31
  "message": "Negated assertion frames the claim.",
32
32
  "fix": "State the positive claim, retaining negation when it corrects a misconception."
33
33
  },
@@ -55,9 +55,9 @@
55
55
  ],
56
56
  "structuralRules": [
57
57
  { "id": "mirrored-sentences", "tier": "cut", "scope": "file", "trigger": "Adjacent sentences share the first two tokens and aligned predicates; exactly one polarity flip or listed antonym supplies a real contrast. Different verbs with a negated opener are insufficient.", "fix": "Combine the useful claim; retain deliberate parallelism with a reason." },
58
- { "id": "aphorism-ending", "tier": "cut", "scope": "file", "trigger": "Paragraph-final explicit moral/lesson opener of 3–10 words; exclude numbers, identifiers and protected spans. Generic closers are not detected.", "fix": "End on the last useful fact or support the claim." },
59
- { "id": "colon-reveal", "tier": "watch", "scope": "file", "trigger": "Setup of 4–12 words ending in a withheld complement, then a sentence-final punchline of 2–10 words. Frequency never triggers a finding. Exclude lists/definitions, digits/citations and protected material.", "fix": "State the subject and consequence directly." },
60
- { "id": "fragment-run", "tier": "check", "scope": "file", "trigger": "At least four consecutive statements with 1–4 words in one prose paragraph; questions break runs and identical-sentence-only runs are excluded.", "fix": "Join fragments to explain the reason or result." },
58
+ { "id": "aphorism-ending", "tier": "cut", "scope": "file", "trigger": "Paragraph-final explicit moral/lesson opener of 3–10 words; allow quoted scenario names inside authored prose but exclude numbers, identifiers, code and wholly quoted statements. Generic closers are not detected.", "fix": "End on the last useful fact or support the claim." },
59
+ { "id": "colon-reveal", "tier": "watch", "scope": "file", "trigger": "Setup of 4–12 words ending in a withheld complement, then a sentence-final punchline of 2–10 words. Also detect a withheld defect followed by an if-clause and a short consequence (at most 16 words after the colon). Frequency never triggers a finding. Exclude lists/definitions, digits/citations and protected material.", "fix": "State the subject and consequence directly." },
60
+ { "id": "fragment-run", "tier": "check", "scope": "file", "trigger": "At least four consecutive statements with 1–4 words in one prose paragraph; questions break runs and identical-sentence-only runs are excluded. Also detect a short consequence, a one-word repair and a final explicit moral; the consequence may follow a conditional comma.", "fix": "Join fragments to explain the reason or result." },
61
61
  { "id": "repeated-sentence", "tier": "cut", "scope": "cross", "trigger": "At least six words repeated within an explicit campaign; case and punctuation are ignored, numbers are retained.", "fix": "Write each channel from its relevant facts." },
62
62
  { "id": "repeated-phrase", "tier": "check", "scope": "cross", "trigger": "An eight-word run inside one sentence shared by at least three distinct documents; overlapping runs merge, affected sentences receive one phrase finding, repeated sentences are excluded.", "fix": "Rewrite the shared run for the reader and channel." },
63
63
  { "id": "shared-skeleton", "tier": "check", "scope": "cross", "trigger": "First or last three words of the first or last prose sentence shared by three distinct documents, including a content word; numbers and versions normalize to num.", "fix": "Lead or close with the useful change for this channel." }
@@ -117,7 +117,7 @@ class PatternMatch(NamedTuple):
117
117
  severity: str
118
118
 
119
119
 
120
- def mask_prose(text: str) -> str:
120
+ def mask_prose(text: str, protect_quotes=True) -> str:
121
121
  """Protect Markdown and quotations while retaining code-point offsets."""
122
122
  chars = list(text)
123
123
 
@@ -170,10 +170,12 @@ def mask_prose(text: str) -> str:
170
170
  indented = False
171
171
  if re.match(r'\s*(?:[-*+] |\d+[.)] )', raw):
172
172
  hide(line.start(), line.end())
173
- for pattern in [r'(`+)(?!`)(?:[^`]|(?!\1)`)*?\1(?!`)',
174
- r'!\[[^\]\n]*\](?:\([^\n]*?\)|\[[^\]\n]*\])',
175
- r'(?:!?\[[^\]\n]*\])?\((?:https?://)[^\s)]*\)|https?://[^\s<>]+',
176
- r'“[^”]*”|"[^"\n]+"|«[^»]*»']:
173
+ patterns = [r'(`+)(?!`)(?:[^`]|(?!\1)`)*?\1(?!`)',
174
+ r'!\[[^\]\n]*\](?:\([^\n]*?\)|\[[^\]\n]*\])',
175
+ r'(?:!?\[[^\]\n]*\])?\((?:https?://)[^\s)]*\)|https?://[^\s<>]+']
176
+ if protect_quotes:
177
+ patterns.append(r'“[^”]*”|"[^"\n]+"|«[^»]*»')
178
+ for pattern in patterns:
177
179
  for match in re.finditer(pattern, text):
178
180
  hide(match.start(), match.end())
179
181
  return ''.join(chars)
@@ -291,7 +293,7 @@ def scan_text(text: str) -> dict:
291
293
  severity="info"
292
294
  ))
293
295
 
294
- matches.extend(STRUCTURAL['structural_matches'](text.replace('’', "'").replace('‘', "'"), CATALOGUE['antonyms'], PatternMatch))
296
+ matches.extend(STRUCTURAL['structural_matches'](text.replace('’', "'").replace('‘', "'"), CATALOGUE['antonyms'], PatternMatch, mask_prose(source, protect_quotes=False)))
295
297
 
296
298
  # Calculate deprecated compatibility heuristic (not an authorship or quality measure)
297
299
  critical_count = sum(1 for m in matches if m.severity == "critical")
@@ -54,7 +54,8 @@ def paragraphs(prose):
54
54
  return blocks
55
55
 
56
56
 
57
- def structural_matches(prose, antonyms, match_type):
57
+ def structural_matches(prose, antonyms, match_type, quoted_prose=None):
58
+ quoted_prose = prose if quoted_prose is None else quoted_prose
58
59
  out = []
59
60
  def emit(rule, sentence, tier):
60
61
  out.append(match_type(rule, prose[sentence['start']:sentence['end']], sentence['start'], SEVERITY[tier]))
@@ -81,7 +82,7 @@ def structural_matches(prose, antonyms, match_type):
81
82
  else:
82
83
  flush()
83
84
  text = s['text']
84
- if text.count(':') != 1 or re.search(r'[\d\x01`\[\]{};,]', text) or not re.search(r'[.!]$', text):
85
+ if text.count(':') != 1 or re.search(r'[\d\x01`\[\]{};]', text) or not re.search(r'[.!]$', text):
85
86
  continue
86
87
  before, after = text.split(':')
87
88
  after = after.strip()
@@ -90,19 +91,28 @@ def structural_matches(prose, antonyms, match_type):
90
91
  subject = 1 if punchline and punchline[0] in ('the', 'a', 'an') else 0
91
92
  predicate = punchline[subject + 1] if len(punchline) > subject + 1 else ''
92
93
  clause = punchline and (subject == 1 or punchline[0] in ('it', 'this', 'that', 'we', 'you', 'they', 'he', 'she', 'nothing', 'everything')) and re.fullmatch(r'(?:is|are|was|were|can|will|must|has|had|does|[a-z]+(?:s|ed))', predicate)
93
- if clause and 4 <= len(words(before)) <= 12 and 2 <= len(words(after)) <= 10 and withheld and not re.search(r'^(?:["“]|[-*+]|\x01)', after) and not re.search(r'\b(?:and|or)\b|:|[?!]', after, re.I):
94
+ conditional = re.match(r'^if\b[^,;:]+,\s*(?:nothing|everything|it|this|that|the [a-z]+)\s+(?:[a-z]+(?:s|ed)|is|was|can|will)\b', after, re.I) and not re.search(r'\b(?:and|or)\b|[?!]', after, re.I) and len(punchline) <= 16
95
+ if conditional and re.search(r'\b(?:bug|defect|flaw|failure|problem)$', before.strip(), re.I) and 4 <= len(words(before)) <= 12 and withheld:
96
+ pos = s['start'] + len(before)
97
+ emit('colon-reveal', {'start': pos, 'end': pos + 1}, 'watch')
98
+ if clause and ',' not in after and 4 <= len(words(before)) <= 12 and 2 <= len(words(after)) <= 10 and withheld and not re.search(r'^(?:["“]|[-*+]|\x01)', after) and not re.search(r'\b(?:and|or)\b|:|[?!]', after, re.I):
94
99
  pos = s['start'] + len(before)
95
100
  emit('colon-reveal', {'start': pos, 'end': pos + 1}, 'watch')
96
101
  flush()
97
102
  if not seq:
98
103
  continue
99
104
  last = seq[-1]
100
- text = last['text']
101
- if not 3 <= len(last['tokens']) <= 10 or re.search(r'[\d\x01@/]|[?:]$', text):
105
+ text = quoted_prose[last['start']:last['end']].replace('’', "'").replace('‘', "'")
106
+ if not 3 <= len(words(text)) <= 10 or re.search(r'[\d\x01@/]|[?:]$', text):
102
107
  continue
103
108
  moral = re.match(r"^(?:(?:always|never|remember)\b|the (?:point|lesson|moral)\b|(?:that's|that is|it's|it is|this is) the (?:point|lesson|moral)\b)", text, re.I)
104
109
  if moral:
105
110
  emit('aphorism-ending', last, 'cut')
111
+ if len(seq) >= 3 and not any(m.pattern == 'fragment-run' and m.position + len(m.match) == last['end'] for m in out) and re.fullmatch(r'(?:fixed|patched|repaired|resolved)[.!]', seq[-2]['text'], re.I):
112
+ consequence = seq[-3]
113
+ tail = consequence['text'].split(',')[-1].lstrip()
114
+ if 1 <= len(words(tail)) <= 4 and not re.search(r'[?:\x01]', tail):
115
+ emit('fragment-run', {'start': consequence['end'] - len(tail), 'end': last['end']}, 'check')
106
116
  return out
107
117
 
108
118
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-loop",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "color-palette",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
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.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Claude Code hooks for workflow tracing and observability.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -96,7 +96,8 @@ async function main() {
96
96
  }
97
97
  const event = JSON.parse(Buffer.concat(chunks).toString('utf8'));
98
98
  const hermes = event.hook_event_name === 'pre_llm_call';
99
- if (event.hook_event_name && event.hook_event_name !== 'UserPromptSubmit' && !hermes) return finish();
99
+ const cursor = event.hook_event_name === 'beforeSubmitPrompt';
100
+ if (event.hook_event_name && event.hook_event_name !== 'UserPromptSubmit' && !hermes && !cursor) return finish();
100
101
  if ([event.role, event.message?.role].some(role => role && role !== 'user')
101
102
  || /^(system|notification|tool[_-]result)$/.test(event.type || '')) return finish();
102
103
  const text = hermes ? event.extra?.user_message : event.prompt;
@@ -127,7 +128,7 @@ async function main() {
127
128
  worker.on('message', envelope => {
128
129
  if (Date.now() >= deadline) return finish();
129
130
  const context = contextFor(envelope, prompt);
130
- if (context) process.stdout.write(JSON.stringify(hermes ? { context } : {
131
+ if (context) process.stdout.write(JSON.stringify(cursor ? { continue: true, additional_context: context } : hermes ? { context } : {
131
132
  hookSpecificOutput: { hookEventName: 'UserPromptSubmit', additionalContext: context },
132
133
  }) + '\n', finish);
133
134
  else finish();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "knowledge-base",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Knowledge-base / wiki framework with skills for ingestion, query, and lint. Build a structured, citable corpus with cross-references and concept pages.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "line-memory",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Bounded, plain-text project memory with least-recently-used retention.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-wiki",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "LLM-maintained markdown wiki that compounds as sources are ingested. Thin topology declaration on the semantic memory kernel — ships schema profiles and page templates, no custom mechanics.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marketing",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Marketing automation framework with 37 specialized agents for campaign management.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "media-curator",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Media archive management framework with 7 specialized agents for source discovery, acquisition (yt-dlp / Internet Archive / Bandcamp), quality assessment, metadata tagging, and provenance tracking.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nlp-prod",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Tools, skills, and CLI extensions for designing and productionizing LLM inference pipelines. Pattern-guided, slim by default, eval-first.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ops",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Operational infrastructure framework with 12 specialized agents covering incident response, runbook execution, fleet inventory, certificate lifecycle, and disaster recovery planning.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prose-integration",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Tools for reading, parsing, validating, and executing OpenProse programs from AIWG workflows",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "research",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Research workflow framework with 9 specialized agents for discovery, acquisition, synthesis, citation management, GRADE quality assessment, and OAIS-compliant archival.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rlm",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "RLM-inspired recursive context decomposition for processing arbitrarily large codebases and document corpora through programmatic sub-agent delegation",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdlc",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Complete SDLC framework with 180+ specialized agents for software development lifecycle management.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiwg-sdlc",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Complete Software Development Lifecycle framework with 180+ specialized agents for requirements, architecture, security, testing, and deployment.",
5
5
  "author": "AIWG",
6
6
  "homepage": "https://aiwg.io",
@@ -34,7 +34,7 @@ function sentenceAt(text, index, length) {
34
34
  const endMatch = /[.!?;](?:\s|$)|\n/.exec(after);
35
35
  const end = endMatch ? index + length + endMatch.index : text.length;
36
36
  const leading = text.slice(start, index).replace(SENTENCE_LEAD_MARKERS, '').trimStart();
37
- return { text: text.slice(start, end), leading };
37
+ return { text: text.slice(start, end), leading, trailing: text.slice(index + length, end) };
38
38
  }
39
39
 
40
40
  /** True when the match sits inside a fenced code block (``` or ~~~). */
@@ -67,7 +67,7 @@ function insideHyphenatedIdentifier(text, index, length) {
67
67
  return wordBefore || wordAfter;
68
68
  }
69
69
 
70
- export function inferContext(text, index, explicit, length = 0, ruleId = '') {
70
+ export function inferContext(text, index, explicit, length = 0, ruleId = '', surface = '') {
71
71
  if (explicit) return explicit;
72
72
  if (insideFence(text, index)) return 'quoted';
73
73
  if (length > 0 && insideHyphenatedIdentifier(text, index, length)) return 'documentation';
@@ -95,6 +95,15 @@ export function inferContext(text, index, explicit, length = 0, ruleId = '') {
95
95
  }
96
96
  const leading = requestPrefix(clause.before).replace(SENTENCE_LEAD_MARKERS, '').trimStart();
97
97
  if (IMPERATIVE_LEAD.test(`${leading}${clause.match}`) || REQUEST_CUE.test(leading)) return 'requested';
98
+ if (ruleId === 'sensitive-file-target' && surface === 'outbound-maintainer-comment') {
99
+ // Maintainer reports name files as subjects. Require a request rather than
100
+ // treating an unrecognized reporting verb ("loaded", "reached") as intent.
101
+ const indirect = /\b(?:(?:can|could|would|will)\s+you|(?:the\s+fix\s+is|you\s+need|i\s+want\s+you)\s+to)\s+(.+)$/i.exec(leading);
102
+ const trailing = requestPrefix(sentence.trailing).replace(/^[\s`"'*:,]*(?:and\s+)?/i, '');
103
+ if ((indirect && IMPERATIVE_LEAD.test(indirect[1])) || IMPERATIVE_LEAD.test(trailing)
104
+ || /\b(?:must|should|needs?\s+to|has\s+to)\s+be\s+(?:read|opened|edited|modified|changed|sent|uploaded|deleted|removed|updated)\b/i.test(trailing)) return 'requested';
105
+ return 'descriptive';
106
+ }
98
107
  if (DESCRIPTIVE_CUE.test(sentence.text)) return 'descriptive';
99
108
  return 'requested';
100
109
  }
@@ -319,7 +319,7 @@ export function assessThreat(input, rawConfig) {
319
319
  }
320
320
  const match = occurrence.match;
321
321
  const paragraph = paragraphAt(part.text, match.index, match[0].length);
322
- const context = inferContext(part.text, match.index, part.context, match[0].length, rule.id);
322
+ const context = inferContext(part.text, match.index, part.context, match[0].length, rule.id, input.surface);
323
323
  const suppressed = SUPPRESSED_CONTEXTS.includes(context);
324
324
  findings.push({
325
325
  ruleId: rule.id,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "security-engineering",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Applied security framework for cryptographic primitive selection, chain-of-trust design, authentication factor analysis, supply-chain trust, and physical-threat modeling. Complements OWASP-style application audits.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semantic-memory",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Topology-agnostic semantic memory operations: ingest, lint, query-capture, and structured event logging. Consumers declare a memory topology in their manifest.json; kernel skills read that contract to parameterize behavior.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-factory",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Build, enhance, validate, and package Claude skills end-to-end. Coordinates skill-builder, skill-enhancer, quality-checker, and skill-packager via the skill-architect agent.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "star-prompt",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Tasteful prompt to encourage users to star the repository after successful command completion",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testing-quality",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Evidence-bound test conformance, platform protocols, normalization transactions and research-guided testing workflows",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twelve-factor",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Design-time and audit-time workflows for Twelve-Factor and modern 12+ Factor cloud-native application practices.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uat-mcp",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Agent-executable acceptance testing via MCP connections — generate, execute, and report on UAT plans that validate MCP tool surfaces.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utils",
3
- "version": "2026.11.7",
3
+ "version": "2026.11.8",
4
4
  "description": "Core AIWG utilities for context regeneration and workspace management.",
5
5
  "author": {
6
6
  "name": "AIWG Contributors",