You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: teach AXIOM to prune rules and close community issues
AXIOM's prompt only showed "type": "modify" for ruleUpdates — it didn't
know "type": "remove" existed, so it never pruned rules despite analytics
warnings. Added remove example + explicit pruning policy.
Also, resolvedSelfTasks only checked nexus-self-task issue numbers, so
AXIOM couldn't close nexus-input (community) issues like #24. Now merges
both issue number sets into closeable list.
Copy file name to clipboardExpand all lines: src/axiom.ts
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,11 @@ Reflect deeply on this session. Then respond with ONLY a JSON object:
198
198
"before": "old text",
199
199
"after": "improved text",
200
200
"reason": "why this change makes the analysis better"
201
+
},
202
+
{
203
+
"ruleId": "r099",
204
+
"type": "remove",
205
+
"reason": "why this rule is no longer earning its place (low hit rate, redundant, or never triggered)"
201
206
}
202
207
],
203
208
"newRules": [
@@ -234,12 +239,20 @@ Reflect deeply on this session. Then respond with ONLY a JSON object:
234
239
]
235
240
}
236
241
237
-
SELF-TASK POLICY — CRITICAL:
238
-
- CLOSING existing self-tasks is ALWAYS higher priority than opening new ones.
239
-
- You can close a self-task in THREE ways:
242
+
RULE PRUNING POLICY:
243
+
- You can REMOVE rules using ruleUpdates with "type": "remove". Foundational rules (r001-r010) cannot be removed.
244
+
- Remove a rule when: its hit rate is poor, it overlaps with another rule, it has never triggered in 10+ sessions, or analytics data shows it adds noise rather than signal.
245
+
- Pruning weak rules is as valuable as adding new ones. A lean, high-signal ruleset outperforms a bloated one.
246
+
- When community input or analytics flags rule bloat, act on it — do not just philosophize about pruning.
247
+
248
+
ISSUE RESOLUTION POLICY — CRITICAL:
249
+
- CLOSING existing issues (self-tasks AND community input) is ALWAYS higher priority than opening new ones.
250
+
- resolvedSelfTasks can close ANY open issue — both nexus-self-task and nexus-input (community) issues.
251
+
- You can close an issue in THREE ways:
240
252
1. codeChanges — if it needs a code fix
241
253
2. resolvedSelfTasks — if the gap is already addressed by an existing rule, prompt improvement, or this session's analysis
242
254
3. Rule update — if you modified/added a rule that covers the gap
255
+
- If a community issue challenges you to take action (e.g. prune rules, improve methodology), take the action AND close the issue via resolvedSelfTasks with a comment explaining what you did.
243
256
- If an open self-task describes an analytical gap and a corresponding rule already exists (e.g. "build confidence template" → r014 exists), CLOSE IT via resolvedSelfTasks with a comment explaining which rule addresses it.
244
257
- Before opening ANY new self-task, check if a similar one already exists in your open self-tasks list.
245
258
- Only open a new self-task if it covers a genuinely NEW gap not already tracked.
0 commit comments