universal-agent-memory 1.0.3 → 1.0.4
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.
- package/package.json +1 -1
- package/templates/CLAUDE.template.md +63 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-agent-memory",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Universal AI agent memory system - CLAUDE.md templates, memory, worktrees for Claude Code, Factory.AI, VSCode, OpenCode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
CLAUDE.md Universal Template - v10.
|
|
2
|
+
CLAUDE.md Universal Template - v10.4
|
|
3
3
|
|
|
4
4
|
CHANGES IN THIS VERSION:
|
|
5
|
+
- Added MANDATORY COMPLETION GATES section (3 gates must pass before "done")
|
|
6
|
+
- Gate 1: Output Existence Check (enforces P12)
|
|
7
|
+
- Gate 2: Constraint Compliance Check (enforces P17)
|
|
8
|
+
- Gate 3: Test Verification (enforces P13)
|
|
9
|
+
- Added PATTERN ROUTER as Critical Reminder #0 (auto-selects patterns)
|
|
10
|
+
- Fixes 75% of failures caused by pattern non-compliance
|
|
11
|
+
- HARD STOP RULE: Cannot complete with failing gates
|
|
12
|
+
|
|
13
|
+
PREVIOUS (v10.3):
|
|
5
14
|
- Added 5 new generic patterns (16-20) from deep failure analysis
|
|
6
15
|
- Pattern 16: Task-First Execution (TFE) - prevents analysis without output
|
|
7
16
|
- Pattern 17: Constraint Extraction (CE) - catches format/structure requirements
|
|
8
17
|
- Pattern 18: Multi-Tool Pipeline (MTP) - chains tools for complex tasks
|
|
9
18
|
- Pattern 19: Enhanced Impossible Task Refusal (ITR+) - refuses impossible immediately
|
|
10
19
|
- Pattern 20: Adversarial Thinking (AT) - attack mindset for bypass tasks
|
|
11
|
-
- Enhanced CRITICAL REMINDERS with 5 new items (12-16)
|
|
12
|
-
- Total patterns now: 20 (up from 15)
|
|
13
20
|
|
|
14
21
|
PREVIOUS (v10.2):
|
|
15
22
|
- Added 4 new generic patterns (12-15) from Terminal-Bench 2.0 analysis
|
|
@@ -1020,10 +1027,63 @@ gh run view <run-id>
|
|
|
1020
1027
|
|
|
1021
1028
|
---
|
|
1022
1029
|
|
|
1030
|
+
## 🚦 COMPLETION GATES - MANDATORY
|
|
1031
|
+
|
|
1032
|
+
**CANNOT say "done" or "complete" until ALL gates pass. This is NOT optional.**
|
|
1033
|
+
|
|
1034
|
+
### GATE 1: Output Existence Check
|
|
1035
|
+
```bash
|
|
1036
|
+
# List ALL expected outputs from task description
|
|
1037
|
+
# Verify EACH file exists
|
|
1038
|
+
echo "=== GATE 1: OUTPUT EXISTENCE ==="
|
|
1039
|
+
for f in /app/expected_output.* /app/result.* /app/*.json; do
|
|
1040
|
+
[ -f "$f" ] && echo "✓ $f exists" || echo "✗ MISSING: $f"
|
|
1041
|
+
done
|
|
1042
|
+
# If ANY missing: CREATE IT NOW, then re-check
|
|
1043
|
+
```
|
|
1044
|
+
|
|
1045
|
+
### GATE 2: Constraint Compliance Check
|
|
1046
|
+
```
|
|
1047
|
+
Extract ALL constraints from task description:
|
|
1048
|
+
☐ File count constraint (e.g., "single file")
|
|
1049
|
+
☐ Line count constraint (e.g., "exactly one line")
|
|
1050
|
+
☐ Format constraint (e.g., "valid JSON")
|
|
1051
|
+
☐ Size constraint (e.g., "under 5KB")
|
|
1052
|
+
|
|
1053
|
+
Verify EACH constraint is satisfied before proceeding.
|
|
1054
|
+
```
|
|
1055
|
+
|
|
1056
|
+
### GATE 3: Test Verification
|
|
1057
|
+
```bash
|
|
1058
|
+
echo "=== GATE 3: TEST VERIFICATION ==="
|
|
1059
|
+
# Run available tests
|
|
1060
|
+
pytest /tests/ -v 2>&1 | tail -30
|
|
1061
|
+
# If < 100% pass: iterate (fix specific failure, re-run)
|
|
1062
|
+
# Reserve 20% of time for iteration
|
|
1063
|
+
```
|
|
1064
|
+
|
|
1065
|
+
**HARD STOP RULE:**
|
|
1066
|
+
- If Gate 1 fails → CREATE missing files immediately
|
|
1067
|
+
- If Gate 2 fails → FIX constraint violations immediately
|
|
1068
|
+
- If Gate 3 fails → ITERATE until 100% or timeout
|
|
1069
|
+
- NEVER report "complete" with failing gates
|
|
1070
|
+
|
|
1071
|
+
---
|
|
1072
|
+
|
|
1023
1073
|
## ⚠️ CRITICAL REMINDERS (READ LAST)
|
|
1024
1074
|
|
|
1025
1075
|
**These reminders exploit recency bias - place at END for maximum compliance.**
|
|
1026
1076
|
|
|
1077
|
+
0. **PATTERN ROUTER (EXECUTE FIRST)**: Before ANY work, classify and select patterns:
|
|
1078
|
+
| Task Contains... | Select Patterns |
|
|
1079
|
+
|------------------|-----------------|
|
|
1080
|
+
| "create file", "output to" | P12, P16 (Output) |
|
|
1081
|
+
| "exactly", "only", "single" | P17, P14 (Constraints) |
|
|
1082
|
+
| "bypass", "break", "exploit" | P20 (Adversarial) |
|
|
1083
|
+
| known algorithm (crypto, chess) | P11 (Pre-computed) |
|
|
1084
|
+
| image/audio → text | P9, P18 (Pipeline) |
|
|
1085
|
+
Print: "SELECTED PATTERNS: P12, P17, P14" before starting.
|
|
1086
|
+
|
|
1027
1087
|
1. **BACKUP FIRST**: Before modifying ANY config, database, or critical file:
|
|
1028
1088
|
```bash
|
|
1029
1089
|
cp <file> <file>.bak
|