Implement consistency architecture (10-principle framework)

Adds:
- ARCHITECTURE.md: Full documentation of 3-layer system
- Context Pipeline: Preprocessing layer (pipeline.js)
- Workflow Router: 4 fixed workflows (coding, debug, deploy, audit)
- Validation Layer: Post-response quality gate (validator.js)
- Format Templates: Structured output templates
- TOOLS.md: Beavault connection documentation

Architecture:
- Layer 1: Behavior rules (always injected)
- Layer 2: Persistent facts (structured memory)
- Layer 3: Ephemeral context
- Priority enforcement: Rules > Prefs > Task > Chat
- Memory write policy: Only confirmed fixes, repeated preferences
This commit is contained in:
JC Beasley
2026-07-04 15:44:53 -07:00
parent 6ad8772e48
commit ed5dff8ebd
9 changed files with 829 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
# Workflow: Troubleshooting
## Intent Classification
**Triggers:** Errors, failures, unexpected behavior, debugging requests
## Fixed Output Format
```markdown
## Problem
[Symptom observed]
## Diagnosis
- Checked: [what was checked]
- Found: [what was found]
## Cause
[Root cause - trace to why, not just what]
## Fix
[What was changed]
## Validation
[How verified it's fixed]
```
## Tool Access Rules
1. **Inspect first** - logs, config, state before changing anything
2. **Reproduce** - understand the failure before fixing
3. **Trace to root** - fix cause, not symptom
4. **Document** - add to ISSUES.md if pattern
## Constraints
- NO: Restart-as-first-response
- NO: Regex patches without understanding root cause
- NO: Fixes without verification
- YES: Documented workaround if root cause blocked
- YES: Regression test if applicable