wogiflow 1.5.13 → 1.6.0
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/.claude/commands/wogi-compact.md +10 -0
- package/.claude/commands/wogi-export.md +58 -62
- package/.claude/commands/wogi-extract-review.md +166 -115
- package/.claude/commands/wogi-finalize.md +266 -0
- package/.claude/commands/wogi-import.md +66 -35
- package/.claude/commands/wogi-init.md +61 -5
- package/.claude/commands/wogi-review-fix.md +119 -1
- package/.claude/commands/wogi-start.md +76 -23
- package/.claude/commands/wogi-status.md +0 -17
- package/.claude/docs/claude-code-compatibility.md +1 -3
- package/.claude/settings.json +0 -13
- package/.workflow/templates/claude-md.hbs +35 -0
- package/lib/commands/login.js +200 -0
- package/lib/commands/logout.js +112 -0
- package/lib/installer.js +20 -0
- package/lib/upgrader.js +42 -0
- package/package.json +1 -1
- package/scripts/flow-community.js +89 -27
- package/scripts/flow-context-estimator.js +197 -1
- package/scripts/flow-export-profile +163 -89
- package/scripts/flow-extraction-review.js +202 -0
- package/scripts/flow-import-profile +204 -53
- package/scripts/flow-long-input-stories.js +143 -26
- package/scripts/flow-long-input.js +141 -4
- package/scripts/flow-parallel.js +7 -14
- package/scripts/flow-regression.js +39 -21
- package/scripts/flow-script-resolver.js +4 -3
- package/scripts/flow-semantic-match.js +72 -1
- package/scripts/flow-standards-checker.js +415 -6
- package/scripts/flow-standards-gate.js +101 -0
- package/scripts/flow-utils.js +6 -4
- package/scripts/hooks/adapters/claude-code.js +18 -58
- package/scripts/hooks/core/extension-registry.js +8 -1
- package/scripts/hooks/core/implementation-gate.js +28 -18
- package/scripts/hooks/core/session-context.js +0 -45
- package/scripts/hooks/core/task-completed.js +88 -87
- package/scripts/hooks/core/task-gate.js +0 -22
- package/scripts/hooks/entry/claude-code/session-start.js +16 -12
- package/scripts/hooks/entry/claude-code/stop.js +42 -1
- package/scripts/hooks/entry/claude-code/task-completed.js +3 -2
- package/scripts/flow-agent-teams.js +0 -616
- package/scripts/hooks/core/teammate-idle.js +0 -157
- package/scripts/hooks/entry/claude-code/teammate-idle.js +0 -46
|
@@ -95,7 +95,17 @@ Provide this information for the compaction system:
|
|
|
95
95
|
**Context to Preserve**:
|
|
96
96
|
- [Important context that should survive compaction]
|
|
97
97
|
|
|
98
|
+
**⚠️ ROUTING ENFORCEMENT (MANDATORY — survives compaction)**:
|
|
99
|
+
Every new user message after resuming from this compacted context MUST be
|
|
100
|
+
routed through a `/wogi-*` command BEFORE any other action. This includes
|
|
101
|
+
questions, conversations, follow-ups, and implementation requests.
|
|
102
|
+
Do NOT answer directly from compacted memory. Do NOT skip routing because
|
|
103
|
+
"the answer seems obvious." The routing requirement applies unconditionally.
|
|
104
|
+
If no Natural Language Detection match → invoke `/wogi-start` with the full
|
|
105
|
+
user message as args.
|
|
106
|
+
|
|
98
107
|
**ON RESUME**: Check `.workflow/state/ready.json` for pending work.
|
|
108
|
+
Route ALL new user messages through `/wogi-start` or a matching `/wogi-*` command.
|
|
99
109
|
```
|
|
100
110
|
|
|
101
111
|
## Context Pressure Monitoring
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
Export workflow configuration as a shareable profile.
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**v3.0**: Complete enforcement profile — exports everything needed to enforce identical code standards across projects, while excluding session-specific data.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
/wogi-export my-team # Core files only
|
|
9
|
-
/wogi-export my-team --rules # Include rules
|
|
9
|
+
/wogi-export my-team --rules # Include rules, decisions, review checklists, tech stack
|
|
10
10
|
/wogi-export my-team --learnings # Include feedback patterns and skill learnings
|
|
11
|
-
/wogi-export my-team --
|
|
11
|
+
/wogi-export my-team --skills # Include skill definitions (skill.md files)
|
|
12
|
+
/wogi-export my-team --templates # Include workflow templates (HBS, story, bug report)
|
|
13
|
+
/wogi-export my-team --full # Include everything (recommended)
|
|
12
14
|
```
|
|
13
15
|
|
|
14
16
|
## Options
|
|
@@ -16,61 +18,62 @@ Export workflow configuration as a shareable profile.
|
|
|
16
18
|
| Flag | Includes |
|
|
17
19
|
|------|----------|
|
|
18
20
|
| (none) | CLAUDE.md, agents/, config.json |
|
|
19
|
-
| `--rules` | + decisions.md, .claude/rules/ |
|
|
20
|
-
| `--learnings` | + feedback-patterns.md, skill learnings |
|
|
21
|
-
| `--
|
|
22
|
-
| `--
|
|
23
|
-
| `--
|
|
24
|
-
| `--include-app-map` | Include app-map.md (
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
| `--rules` | + decisions.md, .claude/rules/ (recursive), .workflow/agents/, .claude/docs/stack.md |
|
|
22
|
+
| `--learnings` | + feedback-patterns.md, skill knowledge (patterns.md, learnings.md) |
|
|
23
|
+
| `--skills` | + .claude/skills/*/skill.md (skill definitions) |
|
|
24
|
+
| `--templates` | + .workflow/templates/ (HBS), templates/ (story/bug), state templates |
|
|
25
|
+
| `--full` | All of the above + pattern extraction |
|
|
26
|
+
| `--include-app-map` | Include app-map.md (project-specific, not in --full) |
|
|
27
|
+
| `--extract-patterns` | Scan codebase and extract patterns (included in --full) |
|
|
28
|
+
| `--resolve-conflicts` | Interactive conflict resolution (with --extract-patterns) |
|
|
29
|
+
| `--analysis-mode MODE` | Analysis depth: `balanced` (default), `deep` |
|
|
30
|
+
| `--include-examples` | Include code snippets as pattern examples |
|
|
31
|
+
|
|
32
|
+
## What Gets Exported (Generic Enforcement)
|
|
27
33
|
|
|
28
34
|
**Core (always included):**
|
|
29
|
-
- CLAUDE.md - Core workflow instructions
|
|
30
|
-
- agents/*.md - Agent personas
|
|
31
|
-
-
|
|
35
|
+
- `CLAUDE.md` - Core workflow instructions
|
|
36
|
+
- `agents/*.md` - Agent personas (11 files)
|
|
37
|
+
- `.workflow/config.json` - Configuration and quality gates
|
|
38
|
+
|
|
39
|
+
**Rules & Standards (`--rules`):**
|
|
40
|
+
- `.workflow/state/decisions.md` - All coding rules and patterns
|
|
41
|
+
- `.claude/rules/**/*.md` - Recursive rule tree (security, code-style, architecture, operations)
|
|
42
|
+
- `.workflow/agents/*.md` - Review checklists (security.md, performance.md)
|
|
43
|
+
- `.claude/docs/stack.md` - Tech stack definition
|
|
32
44
|
|
|
33
|
-
**
|
|
34
|
-
-
|
|
35
|
-
- .claude/rules/*.md - Auto-synced coding rules
|
|
45
|
+
**Skills (`--skills`):**
|
|
46
|
+
- `.claude/skills/*/skill.md` - Skill definition files
|
|
36
47
|
|
|
37
48
|
**Learnings (`--learnings`):**
|
|
38
|
-
-
|
|
39
|
-
-
|
|
49
|
+
- `.workflow/state/feedback-patterns.md` - Team learnings and patterns
|
|
50
|
+
- `.claude/skills/*/knowledge/` - Skill patterns and learnings
|
|
40
51
|
|
|
41
52
|
**Templates (`--templates`):**
|
|
42
|
-
- templates
|
|
43
|
-
- templates
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
- `.workflow/templates/` - HBS templates for CLAUDE.md generation (claude-md.hbs, partials/)
|
|
54
|
+
- `templates/` - Story, bug report, correction, task templates
|
|
55
|
+
- `.workflow/state/*.template` - State file init templates
|
|
56
|
+
|
|
57
|
+
## What is EXCLUDED (Session-Specific)
|
|
58
|
+
|
|
59
|
+
These are NEVER exported regardless of flags:
|
|
60
|
+
- `request-log.md` - Session request history
|
|
61
|
+
- `progress.md` - Session progress notes
|
|
62
|
+
- `session-state.json` - Current session state
|
|
63
|
+
- `ready.json` - Active task queue
|
|
64
|
+
- `epics.json` - Active epics
|
|
65
|
+
- `prompt-history.json` - Prompt history
|
|
66
|
+
- `last-review.json` - Last review results
|
|
67
|
+
- `app-map.md` - Project-specific component registry (opt-in with --include-app-map)
|
|
68
|
+
- `function-map.md` - Project-specific function registry
|
|
69
|
+
- `api-map.md` - Project-specific API registry
|
|
51
70
|
|
|
52
|
-
|
|
53
|
-
✓ CLAUDE.md
|
|
54
|
-
✓ agents/ (11 personas)
|
|
55
|
-
✓ config.json
|
|
56
|
-
|
|
57
|
-
Rules & Decisions:
|
|
58
|
-
✓ decisions.md
|
|
59
|
-
✓ .claude/rules/ (3 rules)
|
|
60
|
-
|
|
61
|
-
Learnings:
|
|
62
|
-
✓ feedback-patterns.md
|
|
63
|
-
✓ skill learnings (2 skills)
|
|
64
|
-
|
|
65
|
-
╔══════════════════════════════════════════════════════════╗
|
|
66
|
-
║ ✓ Profile exported successfully ║
|
|
67
|
-
╚══════════════════════════════════════════════════════════╝
|
|
71
|
+
## CLI
|
|
68
72
|
|
|
69
|
-
|
|
70
|
-
Size: 45K
|
|
73
|
+
Run the export script directly:
|
|
71
74
|
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
```bash
|
|
76
|
+
./scripts/flow export-profile my-team --full
|
|
74
77
|
```
|
|
75
78
|
|
|
76
79
|
## Import a Profile
|
|
@@ -82,19 +85,12 @@ npm install wogiflow
|
|
|
82
85
|
npx flow import-profile ~/my-team.zip
|
|
83
86
|
```
|
|
84
87
|
|
|
85
|
-
## CLI
|
|
86
|
-
|
|
87
|
-
Run the export script directly:
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
./scripts/flow export-profile my-team --full
|
|
91
|
-
```
|
|
92
|
-
|
|
93
88
|
## What This Enables
|
|
94
89
|
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
90
|
+
Export from project A, import into project B → identical code standards:
|
|
91
|
+
- Same coding rules and conventions enforced
|
|
92
|
+
- Same security patterns checked
|
|
93
|
+
- Same review checklists applied
|
|
94
|
+
- Same quality gates and config
|
|
95
|
+
- Same skill definitions available
|
|
96
|
+
- No session history or project-specific state carried over
|
|
@@ -1,179 +1,230 @@
|
|
|
1
|
-
# /wogi-extract-review - Zero-Loss
|
|
1
|
+
# /wogi-extract-review - Zero-Loss Extraction with Automated Pipeline
|
|
2
2
|
|
|
3
|
-
Extract tasks from long input with 100% capture rate
|
|
3
|
+
Extract tasks from long input with 100% capture rate, then automatically process them into organized stories — all in one seamless flow.
|
|
4
4
|
|
|
5
|
-
**Scope**: This command does NOT modify source code files. It processes input text into structured
|
|
5
|
+
**Scope**: This command does NOT modify source code files. It processes input text into structured stories in `ready.json`. All file modifications happen downstream via `/wogi-start`.
|
|
6
6
|
|
|
7
7
|
## Purpose
|
|
8
8
|
|
|
9
|
-
When processing transcripts, meeting notes, or long prompts, this command ensures NOTHING is missed by:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
When processing transcripts, meeting notes, or long prompts, this command ensures NOTHING is missed by running a fully automated pipeline:
|
|
10
|
+
|
|
11
|
+
1. **Extract** — Capture EVERY distinct statement (zero-loss, 5 extraction strategies)
|
|
12
|
+
2. **Review** — Auto-confirm high-confidence items, present medium/low for batch review
|
|
13
|
+
3. **Topics** — Group confirmed statements into logical topics
|
|
14
|
+
4. **Map** — Associate every statement to a topic
|
|
15
|
+
5. **Orphans** — Detect and resolve unmapped statements
|
|
16
|
+
6. **Contradictions** — Auto-resolve with temporal ordering, ask user only when uncertain
|
|
17
|
+
7. **Clarify** — Collect ALL questions in one batch, present to user
|
|
18
|
+
8. **Stories** — Generate stories with user story format, acceptance criteria, and source tracing
|
|
19
|
+
9. **Export** — Add stories to `ready.json` and save to `.workflow/changes/`
|
|
20
|
+
|
|
21
|
+
**The user's only touchpoint**: answering clarifying questions (if any). Zero manual commands needed.
|
|
14
22
|
|
|
15
23
|
## Philosophy
|
|
16
24
|
|
|
17
25
|
**OLD approach (lossy):** Input → Filter → Filter → Output (70-80% lost)
|
|
18
|
-
**NEW approach (zero-loss):** Input → Capture All → Dedupe → Review →
|
|
26
|
+
**NEW approach (zero-loss, automated):** Input → Capture All → Dedupe → Auto-Review → Topics → Map → Orphans → Contradictions → Clarify → Stories → ready.json (100% captured, zero manual steps)
|
|
19
27
|
|
|
20
|
-
##
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
# Start zero-loss extraction
|
|
24
|
-
flow extract-zero-loss start
|
|
28
|
+
## For Claude — Automated Orchestration Protocol
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
cat transcript.txt | flow extract-zero-loss start
|
|
30
|
+
When this command is invoked (directly or via longInputGate auto-routing), you MUST orchestrate the entire pipeline automatically. Follow these steps in sequence:
|
|
28
31
|
|
|
29
|
-
|
|
30
|
-
flow extract-zero-loss status
|
|
32
|
+
### Phase 1: Extract (Zero-Loss)
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
flow
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
flow extract-zero-loss show low # Low confidence
|
|
37
|
-
flow extract-zero-loss show filler # Potential filler
|
|
34
|
+
```javascript
|
|
35
|
+
const { extractZeroLoss } = require('./scripts/flow-zero-loss-extraction');
|
|
36
|
+
const result = extractZeroLoss(inputText);
|
|
37
|
+
```
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
Display to user:
|
|
40
|
+
```
|
|
41
|
+
Extracted N statements using 5 strategies.
|
|
42
|
+
Breakdown: X high-confidence, Y medium, Z low, W filler.
|
|
43
|
+
```
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
flow extract-zero-loss confirm-high # Confirm all high-confidence
|
|
46
|
-
flow extract-zero-loss dismiss-filler # Dismiss filler items
|
|
45
|
+
### Phase 2: Auto-Review
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
flow
|
|
50
|
-
|
|
51
|
-
# Get confirmed tasks
|
|
52
|
-
flow extract-zero-loss tasks
|
|
47
|
+
```javascript
|
|
48
|
+
const { autoReview, batchConfirm, autoComplete } = require('./scripts/flow-extraction-review');
|
|
49
|
+
const reviewResult = autoReview(result);
|
|
53
50
|
```
|
|
54
51
|
|
|
55
|
-
|
|
52
|
+
This auto-confirms high-confidence items and dismisses filler. Display to user:
|
|
56
53
|
|
|
57
|
-
### Step 1: Start Extraction
|
|
58
54
|
```
|
|
59
|
-
|
|
55
|
+
Auto-Review:
|
|
56
|
+
✓ X high-confidence items confirmed
|
|
57
|
+
✓ W filler items dismissed
|
|
58
|
+
? Y medium-confidence items for review
|
|
59
|
+
? Z low-confidence items for review
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
- Speaker changes
|
|
66
|
-
- List items (bullets, numbers)
|
|
67
|
-
- Comma-separated items with action verbs
|
|
62
|
+
**If medium/low items exist**, present them as a numbered batch using `AskUserQuestion`:
|
|
63
|
+
- Medium items: numbered list, user can approve all or reject specific numbers
|
|
64
|
+
- Low items: numbered list with AI recommendation per item
|
|
68
65
|
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
|
|
66
|
+
After user responds, call:
|
|
67
|
+
```javascript
|
|
68
|
+
batchConfirm(confirmedIds, rejectedIds);
|
|
69
|
+
const completionResult = autoComplete();
|
|
70
|
+
const confirmedTasks = completionResult.confirmed_tasks;
|
|
72
71
|
```
|
|
73
72
|
|
|
74
|
-
|
|
73
|
+
**If NO medium/low items** (all were high or filler), call `autoComplete()` directly.
|
|
75
74
|
|
|
76
|
-
###
|
|
77
|
-
```
|
|
78
|
-
flow extract-zero-loss show medium
|
|
79
|
-
```
|
|
75
|
+
### Phase 3: Topic Extraction (AI-Driven)
|
|
80
76
|
|
|
81
|
-
|
|
77
|
+
Read the confirmed tasks and generate topics. Group related statements into coherent topics. Create a topics array:
|
|
82
78
|
|
|
83
|
-
|
|
79
|
+
```javascript
|
|
80
|
+
const topics = [
|
|
81
|
+
{ title: "User Authentication", keywords: ["login", "auth", "password"], description: "..." },
|
|
82
|
+
{ title: "Dashboard Layout", keywords: ["dashboard", "layout", "widgets"], description: "..." }
|
|
83
|
+
];
|
|
84
84
|
```
|
|
85
|
-
|
|
85
|
+
|
|
86
|
+
### Phase 4: Run Full Pipeline (Passes 2-4)
|
|
87
|
+
|
|
88
|
+
```javascript
|
|
89
|
+
const { runFullPipeline } = require('./scripts/flow-long-input');
|
|
90
|
+
const pipelineResult = runFullPipeline({
|
|
91
|
+
transcript: inputText,
|
|
92
|
+
topics: topics,
|
|
93
|
+
contentType: 'transcript'
|
|
94
|
+
});
|
|
86
95
|
```
|
|
87
96
|
|
|
88
|
-
|
|
97
|
+
This chains: statement mapping → orphan check → contradiction resolution.
|
|
89
98
|
|
|
90
|
-
|
|
99
|
+
Display summary:
|
|
91
100
|
```
|
|
92
|
-
|
|
101
|
+
Pipeline Complete:
|
|
102
|
+
Topics: N
|
|
103
|
+
Statements mapped: X/Y (Z% coverage)
|
|
104
|
+
Orphans: A found, B resolved, C new topics created
|
|
105
|
+
Contradictions: D found, E auto-resolved, F need clarification
|
|
93
106
|
```
|
|
94
107
|
|
|
95
|
-
|
|
108
|
+
### Phase 5: Clarification Questions (User Touchpoint)
|
|
96
109
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
110
|
+
Check `pipelineResult.clarification_questions`. If any exist:
|
|
111
|
+
|
|
112
|
+
```javascript
|
|
113
|
+
if (pipelineResult.clarification_questions.length > 0) {
|
|
114
|
+
// Present ALL questions in one batch using AskUserQuestion
|
|
115
|
+
// Contradiction questions: "You said X but later said Y. Which do you prefer?"
|
|
116
|
+
// Orphan questions: "You mentioned X — which feature does this relate to?"
|
|
117
|
+
}
|
|
100
118
|
```
|
|
101
119
|
|
|
102
|
-
|
|
120
|
+
Use `AskUserQuestion` to present all questions at once. After user answers, apply resolutions:
|
|
103
121
|
|
|
104
|
-
|
|
122
|
+
```javascript
|
|
123
|
+
const { resolveContradictionWithChoice } = require('./scripts/flow-long-input');
|
|
124
|
+
// For each contradiction answer:
|
|
125
|
+
resolveContradictionWithChoice(contradictionId, userChoice);
|
|
126
|
+
```
|
|
105
127
|
|
|
106
|
-
|
|
107
|
-
1. Confirmed tasks become the input for topic extraction
|
|
108
|
-
2. Topics are generated from the confirmed task list
|
|
109
|
-
3. Standard 4-pass processing continues
|
|
110
|
-
4. Final output creates stories in `ready.json` via `/wogi-story`
|
|
111
|
-
5. Each story then executes through the full `/wogi-start` pipeline
|
|
128
|
+
**If zero clarification questions**, skip this phase entirely — fully autonomous.
|
|
112
129
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
flow
|
|
117
|
-
|
|
118
|
-
flow extract-zero-loss complete
|
|
119
|
-
flow long-input topics # Now uses confirmed tasks
|
|
120
|
-
flow long-input pass2
|
|
121
|
-
flow long-input pass3
|
|
122
|
-
flow long-input pass4
|
|
130
|
+
### Phase 6: Generate Stories and Export
|
|
131
|
+
|
|
132
|
+
```javascript
|
|
133
|
+
const { generateAndExportStories } = require('./scripts/flow-long-input-stories');
|
|
134
|
+
const exportResult = await generateAndExportStories({ featureName: 'extract-review' });
|
|
123
135
|
```
|
|
124
136
|
|
|
125
|
-
|
|
137
|
+
Display final summary:
|
|
138
|
+
```
|
|
139
|
+
Pipeline Complete!
|
|
140
|
+
Input: N raw statements
|
|
141
|
+
Output: M stories added to ready.json
|
|
126
142
|
|
|
127
|
-
|
|
143
|
+
Stories:
|
|
144
|
+
1. wf-XXXXXXXX — "Story Title" (X criteria, Y% coverage)
|
|
145
|
+
2. wf-XXXXXXXX — "Story Title" (X criteria, Y% coverage)
|
|
128
146
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
- **Audit trail** - Track what was confirmed vs removed
|
|
133
|
-
- **Reason required** - Can't remove without explanation
|
|
147
|
+
Files saved to: .workflow/changes/extract-review/
|
|
148
|
+
Run /wogi-start to begin implementing.
|
|
149
|
+
```
|
|
134
150
|
|
|
135
151
|
## Confidence Levels
|
|
136
152
|
|
|
137
153
|
Items are scored (not filtered!) by confidence:
|
|
138
154
|
|
|
139
|
-
**High Confidence**
|
|
140
|
-
- "We need to add..."
|
|
141
|
-
- "
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
- "
|
|
155
|
+
**High Confidence** — Contains explicit requirement signals:
|
|
156
|
+
- "We need to add...", "Should display...", "Must have..."
|
|
157
|
+
- "I would like...", "Change X to Y"
|
|
158
|
+
|
|
159
|
+
**Medium Confidence** — Contains softer signals:
|
|
160
|
+
- "Maybe we could...", "What if we...", "Going to need..."
|
|
161
|
+
|
|
162
|
+
**Low Confidence** — No clear signals but may be tasks:
|
|
163
|
+
- Short statements, Questions, Partial sentences
|
|
164
|
+
|
|
165
|
+
**Filler** — Conversational noise (still captured!):
|
|
166
|
+
- "Um", "Okay", "Thanks", "Can you hear me?", "Makes sense"
|
|
145
167
|
|
|
146
|
-
|
|
147
|
-
- "Maybe we could..."
|
|
148
|
-
- "What if we..."
|
|
149
|
-
- "Going to need..."
|
|
168
|
+
## Contradiction Auto-Resolution
|
|
150
169
|
|
|
151
|
-
|
|
152
|
-
- Short statements
|
|
153
|
-
- Questions
|
|
154
|
-
- Partial sentences
|
|
170
|
+
Contradictions are resolved automatically using temporal ordering:
|
|
155
171
|
|
|
156
|
-
**
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
172
|
+
1. **Correction phrases** ("actually", "instead", "no wait", "scratch that") → later statement wins (high confidence)
|
|
173
|
+
2. **Same speaker** → +15% confidence boost
|
|
174
|
+
3. **Later position** → +10% confidence for significant distance
|
|
175
|
+
4. **Additive patterns** ("also add X") → NOT a contradiction, both kept
|
|
176
|
+
5. **Auto-resolve at >= 0.8 confidence** → silently resolved
|
|
177
|
+
6. **Below 0.8 confidence** → presented as clarifying question to user
|
|
178
|
+
|
|
179
|
+
The superseded statement is marked and excluded from story generation.
|
|
160
180
|
|
|
161
181
|
## Files
|
|
162
182
|
|
|
163
183
|
| File | Location |
|
|
164
184
|
|------|----------|
|
|
165
|
-
| Extraction
|
|
185
|
+
| Extraction engine | `scripts/flow-zero-loss-extraction.js` |
|
|
166
186
|
| Review module | `scripts/flow-extraction-review.js` |
|
|
187
|
+
| Long-input pipeline | `scripts/flow-long-input.js` |
|
|
188
|
+
| Story generation | `scripts/flow-long-input-stories.js` |
|
|
167
189
|
| Review session | `.workflow/tmp/long-input/review-session.json` |
|
|
190
|
+
| Active digest | `.workflow/tmp/long-input/active-digest.json` |
|
|
168
191
|
|
|
169
|
-
##
|
|
192
|
+
## Advanced Mode (Manual CLI)
|
|
170
193
|
|
|
171
|
-
|
|
194
|
+
For power users who want step-by-step control:
|
|
172
195
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
4. **Require completeness confirmation** before proceeding to topic extraction
|
|
177
|
-
5. **Log all confirmed tasks** for audit trail
|
|
196
|
+
```bash
|
|
197
|
+
# Step 1: Extract
|
|
198
|
+
flow extract-zero-loss start < transcript.txt
|
|
178
199
|
|
|
179
|
-
|
|
200
|
+
# Step 2: Review manually
|
|
201
|
+
flow extract-zero-loss show high
|
|
202
|
+
flow extract-zero-loss confirm-high
|
|
203
|
+
flow extract-zero-loss show medium
|
|
204
|
+
flow extract-zero-loss show low
|
|
205
|
+
flow extract-zero-loss dismiss-filler
|
|
206
|
+
flow extract-zero-loss complete
|
|
207
|
+
|
|
208
|
+
# Step 3: Run pipeline passes manually
|
|
209
|
+
flow long-input topics
|
|
210
|
+
flow long-input pass2
|
|
211
|
+
flow long-input pass3
|
|
212
|
+
flow long-input pass4
|
|
213
|
+
|
|
214
|
+
# Step 4: Generate and export stories
|
|
215
|
+
flow long-input generate-stories
|
|
216
|
+
flow long-input present
|
|
217
|
+
flow long-input finalize
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
## Why This Matters
|
|
221
|
+
|
|
222
|
+
> "When I work with my employees, when we have a meeting, even if it takes an hour or two, when I give a task, an employee will write it down, add a comment on Figma, add it to Jira, write it down in his notebook, but nothing is getting missed."
|
|
223
|
+
|
|
224
|
+
This system ensures:
|
|
225
|
+
- **100% capture rate** — Nothing is auto-filtered
|
|
226
|
+
- **Zero manual commands** — AI orchestrates the entire pipeline
|
|
227
|
+
- **Smart contradiction resolution** — Later statements override earlier ones
|
|
228
|
+
- **One user touchpoint** — Only clarifying questions when AI can't auto-resolve
|
|
229
|
+
- **Audit trail** — Track what was confirmed, removed, or auto-resolved
|
|
230
|
+
- **Source tracing** — Every story traces back to original statements
|