wogiflow 1.1.8 → 1.1.9

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.
@@ -0,0 +1,51 @@
1
+ # GitHub Release Workflow
2
+
3
+ **Source**: Repeated failures (10+ times) in npm publish automation
4
+ **Priority**: Critical - prevents wasted releases and broken npm versions
5
+
6
+ ## Problem
7
+
8
+ Running `git push` followed immediately by `gh release create` causes a race condition. The release tag gets created on the remote's HEAD before the push fully propagates, pointing to an old commit.
9
+
10
+ ## Correct Procedure
11
+
12
+ ```bash
13
+ # 1. Push commits first
14
+ git push origin master
15
+
16
+ # 2. Create tag LOCALLY on the correct commit
17
+ git tag vX.Y.Z HEAD
18
+
19
+ # 3. Push the tag explicitly
20
+ git push origin vX.Y.Z
21
+
22
+ # 4. THEN create the release (it will use the existing tag)
23
+ gh release create vX.Y.Z --title "vX.Y.Z" --notes "..."
24
+ ```
25
+
26
+ ## Never Do This
27
+
28
+ ```bash
29
+ # BAD - race condition, tag may point to wrong commit
30
+ git push origin master && gh release create vX.Y.Z ...
31
+ ```
32
+
33
+ ## Recovery Procedure
34
+
35
+ If a release fails with wrong version:
36
+
37
+ 1. Delete the bad release: `gh release delete vX.Y.Z --yes`
38
+ 2. Delete the bad remote tag: `git push origin --delete vX.Y.Z`
39
+ 3. Delete local tag if exists: `git tag -d vX.Y.Z`
40
+ 4. Follow the correct procedure above
41
+
42
+ ## Verification
43
+
44
+ Before creating the release, verify:
45
+ ```bash
46
+ git show vX.Y.Z --quiet --format="%H" # Should match HEAD
47
+ git show vX.Y.Z:package.json | grep version # Should show X.Y.Z
48
+ ```
49
+
50
+ ---
51
+ Last updated: 2026-01-30
@@ -526,58 +526,74 @@ Use `/wogi-compact` when:
526
526
 
527
527
  Before compacting: Update progress.md, ensure request-log is current, commit work.
528
528
 
529
- ## Handling Feedback
529
+ ## Continuous Learning Protocol (CRITICAL)
530
530
 
531
- When corrected:
532
- 1. Fix it immediately
533
- 2. Run `/wogi-correct "brief description"` to record the learning
534
- 3. Determine scope (see Improvement Placement below)
535
- 4. Update the appropriate location and commit
531
+ The user installed WogiFlow so the AI learns from mistakes. This requires THREE mandatory behaviors:
536
532
 
537
- **Why record corrections?**
538
- - Individual records stored in `.workflow/corrections/` for searchable history
539
- - Aggregated patterns in `feedback-patterns.md` for AI context
533
+ ### Part 1: Pre-Task Pattern Check (BEFORE starting any work)
540
534
 
541
- ### Repeated Issue Detection (CRITICAL)
535
+ **Before starting ANY task**, check for known issues:
542
536
 
543
- **When you detect user frustration about a repeated issue, you MUST act immediately.**
537
+ 1. **Read `feedback-patterns.md`** - Look for patterns related to this task type
538
+ 2. **Read relevant sections of `decisions.md`** - Check for documented procedures
539
+ 3. **Check `corrections/` directory** - Look for recent corrections in this area
544
540
 
545
- The user may express this in many ways:
541
+ **If you skip this check and make a preventable mistake, that's a learning system failure.**
542
+
543
+ ### Part 2: Post-Failure Capture (AFTER any failure occurs)
544
+
545
+ **When ANY failure occurs** (code error, process error, wrong assumption, tool misuse, verification skip), you MUST:
546
+
547
+ 1. **STOP** - Don't just fix it and move on
548
+ 2. **DIAGNOSE** - Ask yourself:
549
+ - What exactly went wrong?
550
+ - What did I do (or not do) that caused this?
551
+ - Did I check the learning files before starting?
552
+ - Has this happened before?
553
+ 3. **RECORD** - Add to `feedback-patterns.md`:
554
+ ```
555
+ | [date] | [pattern-name] | [what went wrong] | 1 | Monitor |
556
+ ```
557
+ 4. **If count >= 3** → Create a rule in `decisions.md` with verification steps
558
+
559
+ ### Part 3: User Frustration Detection (Escalation)
560
+
561
+ **When user says things like:**
546
562
  - "This keeps happening"
547
563
  - "I told you this before"
548
564
  - "You keep forgetting X"
549
- - "This failed again"
550
- - "How many times do I have to tell you"
551
- - Any indication of a recurring problem or previous instruction being ignored
565
+ - "How many times..."
552
566
 
553
567
  **Required response:**
568
+ 1. **Acknowledge** - Don't be defensive
569
+ 2. **Investigate** - Check what learning files should have prevented this
570
+ 3. **Diagnose** - Why wasn't the learning system used?
571
+ 4. **Fix** - Create/strengthen the rule in `decisions.md`
572
+ 5. **Verify** - Test that the fix works
554
573
 
555
- 1. **Acknowledge** - Don't be defensive. The user's frustration is valid.
556
-
557
- 2. **Investigate root cause** - Don't just fix the symptom:
558
- - Why did this happen multiple times?
559
- - What instruction or rule was missing?
560
- - Check `decisions.md` and `feedback-patterns.md` for related issues
574
+ **This is an escalation** - it means Parts 1-2 failed.
561
575
 
562
- 3. **Persist the fix to `decisions.md`** - This is MANDATORY:
563
- - Add a clear rule that prevents recurrence
564
- - Include context about why it matters
565
- - Add verification steps if applicable
576
+ ### Self-Diagnosis Questions (After Every Failure)
566
577
 
567
- 4. **Record in `feedback-patterns.md`** - Track the pattern with count and mark as promoted
578
+ 1. "Did I check feedback-patterns.md before starting?" If no, that's the root cause
579
+ 2. "Did I check decisions.md for existing rules?" → If no, that's the root cause
580
+ 3. "Did I follow the documented procedure?" → If no, why not?
581
+ 4. "Did I verify my work before claiming done?" → If no, add verification
582
+ 5. "Is there a pattern here I've seen before?" → If yes, it needs a rule
568
583
 
569
- 5. **Verify the fix** - Don't just write the rule; test that it works
584
+ ### Why This Matters
570
585
 
571
- **Why this matters**: The user installed WogiFlow expecting an AI that learns and improves. Repeating the same mistakes breaks trust. Every repeated failure is a failure of the learning system itself.
586
+ - **The learning system only works if you USE it**
587
+ - Skipping pre-task checks leads to preventable mistakes
588
+ - Not recording failures means the same mistakes repeat
589
+ - The user loses trust when the AI doesn't learn
572
590
 
573
591
  ### Improvement Placement
574
592
 
575
593
  Before implementing, determine scope:
576
594
  1. **Project** → Add to `decisions.md`
577
- 2. **Team** → Add to `decisions.md` with `[Team]` prefix (future: suggestion queue)
578
- 3. **Universal** → Add to core templates/agents, bump version
579
-
580
- Ask if unclear: "Is this project-specific, team preference, or universal improvement?"
595
+ 2. **Team** → Add to `decisions.md` with `[Team]` prefix
596
+ 3. **Universal** → Add to core templates, bump version
581
597
 
582
598
  ## Session End
583
599
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wogiflow",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "AI-powered development workflow management system with multi-model support",
5
5
  "main": "lib/index.js",
6
6
  "bin": {