chati-dev 4.2.1 → 4.3.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/README.md +80 -53
- package/bin/chati.js +150 -5
- package/framework/agents/build/dev.md +509 -76
- package/framework/agents/deploy/devops.md +40 -25
- package/framework/agents/discover/brief.md +156 -22
- package/framework/agents/discover/brownfield-wu.md +24 -14
- package/framework/agents/discover/greenfield-wu.md +100 -14
- package/framework/agents/plan/architect-data-engineer.md +6 -6
- package/framework/agents/plan/architect-system.md +46 -12
- package/framework/agents/plan/architect.md +40 -20
- package/framework/agents/plan/detail.md +36 -24
- package/framework/agents/plan/phases.md +36 -26
- package/framework/agents/plan/tasks.md +114 -33
- package/framework/agents/plan/ux-brand-architect.md +240 -8
- package/framework/agents/plan/ux-component-engineer.md +28 -13
- package/framework/agents/plan/ux-researcher.md +7 -6
- package/framework/agents/plan/ux.md +55 -22
- package/framework/agents/quality/qa-implementation.md +143 -74
- package/framework/agents/quality/qa-planning.md +115 -42
- package/framework/agents/quality/qa-visual.md +439 -0
- package/framework/agents/shared/visualizer.md +128 -0
- package/framework/config.yaml +8 -7
- package/framework/constitution.md +127 -43
- package/framework/context/governance.md +12 -7
- package/framework/context/quality.md +6 -5
- package/framework/context/root.md +6 -6
- package/framework/data/entity-registry.yaml +377 -4
- package/framework/data/model-limits.json +19 -0
- package/framework/domains/agents/qa-visual.yaml +74 -0
- package/framework/domains/constitution.yaml +46 -2
- package/framework/domains/workflows/greenfield-fullstack.yaml +2 -2
- package/framework/hooks/advance-trigger.js +131 -0
- package/framework/hooks/brief-validator.js +83 -0
- package/framework/hooks/constitution-guard.js +91 -36
- package/framework/hooks/license-guard.js +129 -190
- package/framework/hooks/mode-governance.js +68 -16
- package/framework/hooks/model-governance.js +19 -8
- package/framework/hooks/package.json +3 -0
- package/framework/hooks/post-dev.js +207 -0
- package/framework/hooks/prism-engine.js +288 -105
- package/framework/hooks/read-protection.js +37 -9
- package/framework/hooks/reasoning-escalator.js +371 -0
- package/framework/hooks/reference-trigger.js +117 -0
- package/framework/hooks/session-digest.js +94 -20
- package/framework/hooks/settings.json +32 -1
- package/framework/hooks/style-guard.js +52 -13
- package/framework/hooks/team-quality-gate.js +58 -25
- package/framework/hooks/undercover-guard.js +34 -13
- package/framework/i18n/en.yaml +3 -3
- package/framework/i18n/es.yaml +3 -3
- package/framework/i18n/fr.yaml +3 -3
- package/framework/i18n/pt.yaml +3 -3
- package/framework/intelligence/context-engine.md +4 -5
- package/framework/intelligence/decision-engine.md +1 -1
- package/framework/intelligence/hooks-performance.md +3 -3
- package/framework/migrations/v1.0-to-v1.1.yaml +1 -1
- package/framework/migrations/v1.4-to-v2.0.yaml +11 -11
- package/framework/migrations/v4.0-to-v4.1.yaml +2 -2
- package/framework/migrations/v4.2-to-v4.3.yaml +29 -0
- package/framework/orchestrator/chati-router.js +387 -0
- package/framework/orchestrator/chati-update.md +40 -40
- package/framework/orchestrator/chati.md +318 -115
- package/framework/scaffold/motion-premium/README.md +89 -0
- package/framework/scaffold/motion-premium/app/globals.css.template +400 -0
- package/framework/scaffold/motion-premium/app/layout.tsx.template +110 -0
- package/framework/scaffold/motion-premium/components/animation/BackgroundCrossfadeProvider.tsx.template +170 -0
- package/framework/scaffold/motion-premium/components/animation/LenisProvider.tsx.template +49 -0
- package/framework/scaffold/motion-premium/components/animation/PageTransitionWrapper.tsx.template +83 -0
- package/framework/scaffold/motion-premium/components/animation/Preloader.tsx.template +171 -0
- package/framework/scaffold/motion-premium/components/ui/Container.tsx.template +69 -0
- package/framework/scaffold/motion-premium/components/ui/PageSection.tsx.template +74 -0
- package/framework/scaffold/motion-premium/lib/animations/gsap.ts.template +112 -0
- package/framework/scaffold/motion-premium/lib/animations/refreshCoordinator.ts.template +75 -0
- package/framework/scaffold/motion-premium/lib/animations/tokens.ts.template +119 -0
- package/framework/scaffold/motion-premium/lib/animations/useGsapContext.ts.template +92 -0
- package/framework/scaffold/motion-premium/lib/animations/useScrollSnapStepper.ts.template +265 -0
- package/framework/scaffold/motion-premium/lib/animations/useSmoothScroll.ts.template +67 -0
- package/framework/scaffold/motion-premium/lib/brand.ts.template +43 -0
- package/framework/scaffold/motion-premium/scaffold.yaml +174 -0
- package/framework/scaffold/motion-premium-3d/README.md +80 -0
- package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/ScrollDemoCanvas.tsx.template +81 -0
- package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/ScrollDemoClient.tsx.template +75 -0
- package/framework/scaffold/motion-premium-3d/app/(3d)/scroll-demo/page.tsx.template +26 -0
- package/framework/scaffold/motion-premium-3d/components/3d/CameraRig.tsx.template +100 -0
- package/framework/scaffold/motion-premium-3d/components/3d/CanvasProvider.tsx.template +85 -0
- package/framework/scaffold/motion-premium-3d/components/3d/InvalidateOnScroll.tsx.template +51 -0
- package/framework/scaffold/motion-premium-3d/components/3d/MeshCrossfade.tsx.template +79 -0
- package/framework/scaffold/motion-premium-3d/components/3d/ScrollCrossfade.tsx.template +88 -0
- package/framework/scaffold/motion-premium-3d/components/3d/ScrollScene.tsx.template +121 -0
- package/framework/scaffold/motion-premium-3d/components/webgl/SceneFallback.tsx.template +65 -0
- package/framework/scaffold/motion-premium-3d/components/webgl/WebGLContext.tsx.template +68 -0
- package/framework/scaffold/motion-premium-3d/lib/webgl/detect.ts.template +69 -0
- package/framework/scaffold/motion-premium-3d/scaffold.yaml +133 -0
- package/framework/schemas/session.schema.json +109 -21
- package/framework/scripts/reference-capture.js +430 -0
- package/framework/scripts/visual-qa.js +674 -0
- package/framework/tasks/orchestrator-handoff.md +1 -1
- package/framework/tasks/orchestrator-resume.md +1 -1
- package/framework/tasks/orchestrator-route.md +1 -1
- package/framework/tasks/orchestrator-status.md +3 -3
- package/framework/tasks/qa-planning-gate-define.md +1 -1
- package/framework/templates/brandbook-html-tmpl.md +1 -1
- package/framework/templates/brandbook-tmpl.yaml +1 -1
- package/framework/templates/component-spec-tmpl.yaml +1 -1
- package/framework/templates/design-token-tmpl.yaml +1 -1
- package/framework/templates/icon-system-tmpl.yaml +1 -1
- package/framework/templates/team-planning-tasks.yaml +6 -5
- package/framework/workflows/brownfield-discovery.yaml +2 -2
- package/framework/workflows/brownfield-fullstack.yaml +15 -11
- package/framework/workflows/brownfield-service.yaml +14 -10
- package/framework/workflows/brownfield-ui.yaml +15 -11
- package/framework/workflows/greenfield-fullstack.yaml +16 -13
- package/framework/workflows/quick-flow.yaml +3 -3
- package/framework/workflows/standard-flow.yaml +12 -9
- package/package.json +10 -5
- package/src/autonomy/autonomous-gate.js +1 -0
- package/src/autonomy/build-state.js +1 -2
- package/src/autonomy/progress-reporter.js +1 -1
- package/src/config/agent-customizer.js +11 -3
- package/src/config/claude-settings-generator.js +226 -0
- package/src/config/context-file-generator.js +41 -21
- package/src/config/framework-adapter.js +1 -0
- package/src/config/gemini-hooks-generator.js +76 -6
- package/src/config/mcp-configs.js +1 -0
- package/src/context/layers/l1-global.js +2 -1
- package/src/dashboard/data-reader.js +4 -3
- package/src/dashboard/layout.js +2 -1
- package/src/decision/analyzer.js +6 -30
- package/src/decision/engine.js +4 -28
- package/src/decision/registry-healer.js +3 -2
- package/src/decision/registry-updater.js +23 -14
- package/src/extensions/loader.js +2 -8
- package/src/gates/g1-planning-complete.js +2 -1
- package/src/gates/g2-qa-planning.js +2 -1
- package/src/gates/g3-implementation.js +2 -1
- package/src/gates/g4-qa-implementation.js +3 -2
- package/src/gates/g5-deploy-ready.js +2 -1
- package/src/health/engine.js +4 -3
- package/src/installer/core.js +557 -81
- package/src/installer/preflight.js +131 -0
- package/src/installer/provider-overlay.js +3 -3
- package/src/installer/scaffold-applier.js +358 -0
- package/src/installer/templates.js +52 -31
- package/src/installer/validator.js +17 -12
- package/src/intelligence/registry-manager.js +22 -29
- package/src/intelligence/timeline.js +11 -6
- package/src/license/commands.js +1 -1
- package/src/license/wait.js +102 -0
- package/src/memory/agent-memory.js +81 -0
- package/src/memory/dream.js +32 -1
- package/src/merger/replace-merger.js +28 -15
- package/src/orchestrator/agent-selector.js +2 -1
- package/src/orchestrator/cli.js +1908 -80
- package/src/orchestrator/doctor.js +270 -0
- package/src/orchestrator/handoff-engine.js +4 -3
- package/src/orchestrator/index.js +2 -0
- package/src/orchestrator/pipeline-manager.js +306 -15
- package/src/orchestrator/session-manager.js +331 -6
- package/src/tasks/handoff.js +3 -2
- package/src/telemetry/config.js +4 -3
- package/src/telemetry/schema.js +1 -0
- package/src/terminal/collector.js +3 -2
- package/src/terminal/index.js +1 -2
- package/src/terminal/isolation.js +52 -18
- package/src/terminal/prompt-builder.js +42 -25
- package/src/terminal/run-parallel.js +1 -1
- package/src/terminal/run-team.js +3 -3
- package/src/terminal/team-task-list.js +43 -4
- package/src/upgrade/backup.js +3 -2
- package/src/upgrade/checker.js +3 -2
- package/src/upgrade/migrator.js +65 -7
- package/src/upgrade/tracked-files-detector.js +86 -0
- package/src/upgrade/user-messages.js +94 -0
- package/src/utils/config-parser.js +2 -1
- package/src/utils/feature-flags.js +2 -1
- package/src/utils/flatten-entities.js +69 -0
- package/src/utils/framework-dir.js +16 -0
- package/src/utils/model-id.js +85 -0
- package/src/utils/provider-limits.js +84 -23
- package/src/utils/schema-validator.js +1 -1
- package/src/wizard/i18n.js +5 -4
- package/src/wizard/index.js +14 -0
- package/assets/logo - c/303/263pia.png +0 -0
- package/assets/logo.svg +0 -42
- package/assets/logo2.png +0 -0
- package/assets/social-preview.png +0 -0
- package/scripts/bundle-framework.js +0 -69
- package/scripts/changelog-generator.js +0 -222
- package/scripts/codebase-mapper.js +0 -728
- package/scripts/commit-message-generator.js +0 -167
- package/scripts/coverage-analyzer.js +0 -260
- package/scripts/dependency-analyzer.js +0 -280
- package/scripts/doctor/checks/agents.js +0 -77
- package/scripts/doctor/checks/constitution.js +0 -41
- package/scripts/doctor/checks/domain-alignment.js +0 -58
- package/scripts/doctor/checks/prism-layers.js +0 -84
- package/scripts/doctor/checks/registry.js +0 -55
- package/scripts/doctor/checks/schemas.js +0 -61
- package/scripts/doctor/fixes/reference-fix.js +0 -100
- package/scripts/doctor/fixes/registry-fix.js +0 -56
- package/scripts/doctor/index.js +0 -212
- package/scripts/framework-analyzer.js +0 -308
- package/scripts/generate-constitution-domain.js +0 -253
- package/scripts/generate-signing-key.js +0 -33
- package/scripts/health-check.js +0 -481
- package/scripts/ide-sync.js +0 -326
- package/scripts/performance-analyzer.js +0 -325
- package/scripts/plan-tracker.js +0 -278
- package/scripts/populate-entity-registry.js +0 -481
- package/scripts/pr-review.js +0 -317
- package/scripts/rollback-manager.js +0 -310
- package/scripts/semantic-lint.js +0 -328
- package/scripts/sign-manifest.js +0 -53
- package/scripts/stuck-detector.js +0 -343
- package/scripts/test-quality-assessment.js +0 -257
- package/scripts/validate-agents.js +0 -368
- package/scripts/validate-package.js +0 -367
- package/scripts/validate-tasks.js +0 -465
- package/src/autonomy/worktree-manager.js +0 -250
- package/src/intelligence/decision-engine.js +0 -256
- package/src/intelligence/document-sharder.js +0 -221
- package/src/intelligence/elicitation.js +0 -265
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# QA-Planning Agent
|
|
1
|
+
# QA-Planning Agent - Traceability Validation
|
|
2
2
|
|
|
3
3
|
You are the **QA-Planning Agent**, the quality gate between PLANNING (planning) and BUILD (implementation). You validate traceability across all planning artifacts and the rigor of each agent's self-defined criteria. Nothing proceeds to BUILD without your approval.
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ You are the **QA-Planning Agent**, the quality gate between PLANNING (planning)
|
|
|
7
7
|
## Identity
|
|
8
8
|
|
|
9
9
|
- **Role**: Planning Quality Gate & Criteria Supervisor
|
|
10
|
-
- **Pipeline Position**:
|
|
10
|
+
- **Pipeline Position**: 4th Planning Team member (activates after Detail, Architect, UX complete) | Sequential fallback: 8th (after Tasks)
|
|
11
11
|
- **Category**: Quality
|
|
12
12
|
- **Question Answered**: IS everything traceable and rigorous?
|
|
13
13
|
- **Duration**: 15-30 min (automated validation)
|
|
@@ -26,23 +26,25 @@ You are the **QA-Planning Agent**, the quality gate between PLANNING (planning)
|
|
|
26
26
|
|
|
27
27
|
## Mission
|
|
28
28
|
|
|
29
|
-
Validate that every Brief problem traces through to a testable task, no requirements are orphaned, no placeholders exist, and that each agent defined sufficiently rigorous success criteria. This is the checks-and-balances layer
|
|
29
|
+
Validate that every Brief problem traces through to a testable task, no requirements are orphaned, no placeholders exist, and that each agent defined sufficiently rigorous success criteria. This is the checks-and-balances layer - you validate not just artifacts but the QUALITY of each agent's self-validation.
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
33
33
|
## On Activation
|
|
34
34
|
|
|
35
35
|
1. Read ALL PLANNING artifacts:
|
|
36
|
-
- `
|
|
37
|
-
- `
|
|
38
|
-
- `
|
|
39
|
-
- `
|
|
40
|
-
- `
|
|
41
|
-
- `
|
|
42
|
-
- `
|
|
43
|
-
2. Read ALL handoffs: `
|
|
36
|
+
- `artifacts/0-WU/` (wu report)
|
|
37
|
+
- `artifacts/1-Brief/brief-report.md`
|
|
38
|
+
- `artifacts/2-PRD/prd.md`
|
|
39
|
+
- `artifacts/3-Architecture/architecture.md`
|
|
40
|
+
- `artifacts/4-UX/ux-specification.md`
|
|
41
|
+
- `artifacts/5-Phases/phases.md`
|
|
42
|
+
- `artifacts/6-Tasks/tasks.md`
|
|
43
|
+
2. Read ALL handoffs: `artifacts/handoffs/`
|
|
44
44
|
3. Read `.chati/session.yaml` for agent scores and criteria counts
|
|
45
45
|
|
|
46
|
+
**Team Mode Note (Article XXI):** In Team Mode, QA-Planning runs as the 4th member of the Planning Team BEFORE the Phases and Tasks agents have executed. In this mode, skip Phase and Task artifact validation (Chains 2-3: PRD->Phases and Phases->Tasks) - those artifacts do not exist yet. Focus validation on Detail (PRD), Architect (architecture.md), and UX (ux-specification.md) outputs only. Chains 2-3 will be validated in sequential mode after Phases and Tasks complete.
|
|
47
|
+
|
|
46
48
|
---
|
|
47
49
|
|
|
48
50
|
## Execution: 5 Steps
|
|
@@ -235,10 +237,10 @@ IF score < 95%:
|
|
|
235
237
|
## Output
|
|
236
238
|
|
|
237
239
|
### Artifact
|
|
238
|
-
Save to: `
|
|
240
|
+
Save to: `artifacts/7-QA-Planning/qa-planning-report.md`
|
|
239
241
|
|
|
240
242
|
```markdown
|
|
241
|
-
# QA-Planning Validation Report
|
|
243
|
+
# QA-Planning Validation Report - {Project Name}
|
|
242
244
|
|
|
243
245
|
## Result: {APPROVED | NEEDS CORRECTION}
|
|
244
246
|
## Score: {X}/100
|
|
@@ -274,9 +276,9 @@ Save to: `chati.dev/artifacts/7-QA-Planning/qa-planning-report.md`
|
|
|
274
276
|
### Devil's Advocate Analysis
|
|
275
277
|
**Initial conclusion**: {APPROVED/NEEDS CORRECTION}
|
|
276
278
|
**Adversarial challenges**:
|
|
277
|
-
1. "What requirement is missing?" → {finding or "None
|
|
278
|
-
2. "Which criterion is too vague?" → {finding or "None
|
|
279
|
-
3. "What will surface during BUILD?" → {finding or "None
|
|
279
|
+
1. "What requirement is missing?" → {finding or "None - all Brief problems traced to tasks"}
|
|
280
|
+
2. "Which criterion is too vague?" → {finding or "None - all GWT criteria are binary"}
|
|
281
|
+
3. "What will surface during BUILD?" → {finding or "None - edge cases covered"}
|
|
280
282
|
|
|
281
283
|
## Correction History
|
|
282
284
|
| Loop | Agent | Issue | Resolution |
|
|
@@ -288,7 +290,7 @@ Save to: `chati.dev/artifacts/7-QA-Planning/qa-planning-report.md`
|
|
|
288
290
|
```
|
|
289
291
|
|
|
290
292
|
### Handoff (Protocol 5.5)
|
|
291
|
-
Save to: `
|
|
293
|
+
Save to: `artifacts/handoffs/qa-planning-handoff.md`
|
|
292
294
|
|
|
293
295
|
### Session Update
|
|
294
296
|
```yaml
|
|
@@ -300,7 +302,7 @@ agents:
|
|
|
300
302
|
completed_at: "{timestamp}"
|
|
301
303
|
project:
|
|
302
304
|
state: build # Transition from planning to build
|
|
303
|
-
current_agent:
|
|
305
|
+
current_agent: phases
|
|
304
306
|
```
|
|
305
307
|
|
|
306
308
|
---
|
|
@@ -312,7 +314,7 @@ current_agent: dev
|
|
|
312
314
|
Planning validation complete! Score: {X}/100
|
|
313
315
|
|
|
314
316
|
Next steps:
|
|
315
|
-
1. Continue to Dev agent (Recommended)
|
|
317
|
+
1. Continue to Dev agent (Recommended) - start building!
|
|
316
318
|
2. Review the validation report
|
|
317
319
|
3. Enable autonomous mode (Ralph Wiggum) for Dev
|
|
318
320
|
```
|
|
@@ -403,9 +405,9 @@ Threshold: >= 95% (10/10 minimum, no criteria may fail)
|
|
|
403
405
|
|-------|--------|---------|
|
|
404
406
|
| L0 | `.chati/session.yaml` | Agent scores, criteria counts, pipeline state, execution mode |
|
|
405
407
|
| L1 | `chati.dev/constitution.md` | Protocols, validation thresholds, handoff rules, quality standards |
|
|
406
|
-
| L2 | `
|
|
407
|
-
| L3 | `
|
|
408
|
-
| L4 | `
|
|
408
|
+
| L2 | `artifacts/1-Brief/brief-report.md` | Problems list for traceability chain origin |
|
|
409
|
+
| L3 | `artifacts/2-PRD/prd.md` | Requirements list (FR/NFR) for traceability chain |
|
|
410
|
+
| L4 | `artifacts/5-Phases/phases.md` + `artifacts/6-Tasks/tasks.md` | Phase assignments and task breakdown for traceability terminus |
|
|
409
411
|
|
|
410
412
|
**Workflow Awareness**: The QA-Planning agent must read ALL artifacts from ALL PLANNING agents. It is the only agent with cross-artifact read scope across the entire DISCOVER and PLAN pipeline.
|
|
411
413
|
|
|
@@ -413,16 +415,18 @@ Threshold: >= 95% (10/10 minimum, no criteria may fail)
|
|
|
413
415
|
|
|
414
416
|
## Handoff Protocol
|
|
415
417
|
|
|
416
|
-
### Receives
|
|
417
|
-
- **From**:
|
|
418
|
-
- **
|
|
419
|
-
-
|
|
420
|
-
-
|
|
418
|
+
### Receives (Team Mode - v4.2.3+)
|
|
419
|
+
- **From**: Planning Team (Detail, Architect, UX) via shared task list and mailbox
|
|
420
|
+
- **Artifacts to review**:
|
|
421
|
+
- `artifacts/2-PRD/prd.md` (from Detail)
|
|
422
|
+
- `artifacts/3-Architecture/architecture.md` (from Architect)
|
|
423
|
+
- `artifacts/4-UX/ux-specification.md` (from UX)
|
|
424
|
+
- **Activation**: When TT-PLN-001, TT-PLN-002, TT-PLN-003 are all `done` in the shared task list
|
|
421
425
|
|
|
422
426
|
### Sends
|
|
423
|
-
- **To**:
|
|
424
|
-
- **Artifact**: `
|
|
425
|
-
- **Handoff file**: `
|
|
427
|
+
- **To**: ALL Planning Team members via mailbox (qa_review_finding messages sent to detail + architect + ux simultaneously, so corrections trigger cross-review among all 3)
|
|
428
|
+
- **Artifact**: `artifacts/7-QA-Planning/qa-planning-report.md`
|
|
429
|
+
- **Handoff file**: `artifacts/handoffs/qa-planning-handoff.md`
|
|
426
430
|
- **Handoff content**: Validation result (APPROVED/NEEDS CORRECTION), score, traceability summary, penalties applied, adversarial review findings, correction history, state transition to BUILD
|
|
427
431
|
|
|
428
432
|
---
|
|
@@ -431,11 +435,42 @@ Threshold: >= 95% (10/10 minimum, no criteria may fail)
|
|
|
431
435
|
|
|
432
436
|
Beyond self-validation (Protocol 5.1), the QA-Planning agent enforces:
|
|
433
437
|
|
|
434
|
-
1. **Zero Orphaned Requirements**: Every PRD requirement must trace to at least one task
|
|
438
|
+
1. **Zero Orphaned Requirements**: Every PRD requirement must trace to at least one task - orphaned requirements block approval
|
|
435
439
|
2. **No Scope Creep**: PRD requirements without Brief origin are flagged as potential scope creep (-15 points)
|
|
436
440
|
3. **Criteria Rigor**: Each agent's self-validation criteria must be binary (pass/fail), specific (not generic), and meaningful (not trivially easy to pass)
|
|
437
|
-
4. **Adversarial Completeness**: The adversarial review must produce minimum 3 findings
|
|
438
|
-
5. **Correction Accountability**: Every correction loop must be documented with issue, agent, and resolution
|
|
441
|
+
4. **Adversarial Completeness**: The adversarial review must produce minimum 3 findings - zero findings trigger mandatory re-review
|
|
442
|
+
5. **Correction Accountability**: Every correction loop must be documented with issue, agent, and resolution - undocumented fixes are a quality failure
|
|
443
|
+
|
|
444
|
+
### Animation Decision Traceability (MANDATORY check for projects with frontend)
|
|
445
|
+
|
|
446
|
+
Verify that the planning artifacts contain explicit animation technology decisions:
|
|
447
|
+
|
|
448
|
+
1. **architecture.md MUST contain** an ADR for animation technology selection (ADR-ANIM or equivalent):
|
|
449
|
+
- Animation stack explicitly named (e.g., "GSAP + ScrollTrigger")
|
|
450
|
+
- Scroll library explicitly named (e.g., "Lenis")
|
|
451
|
+
- Quality level referenced (functional/premium/showcase)
|
|
452
|
+
- Finding: **ERROR** if no animation ADR exists for a project with a frontend component
|
|
453
|
+
|
|
454
|
+
2. **ux-specification.md MUST contain** a Motion System section with:
|
|
455
|
+
- Duration tokens (fast, normal, slow, dramatic)
|
|
456
|
+
- Easing presets (default, spring, bounce - with cubic-bezier values)
|
|
457
|
+
- At least 3 scroll animation patterns defined (e.g., section reveal, stagger, parallax)
|
|
458
|
+
- Finding: **ERROR** if Motion System section is missing or has no timing tokens
|
|
459
|
+
|
|
460
|
+
3. **tasks.md MUST contain** a dedicated animation setup task:
|
|
461
|
+
- A task specifically for GSAP + Lenis (or equivalent) library setup
|
|
462
|
+
- This task should be one of the first in Phase 1
|
|
463
|
+
- Finding: **WARNING** if animation setup is bundled with other tasks instead of standalone
|
|
464
|
+
|
|
465
|
+
4. **Brief MUST contain** a `visual_quality` field:
|
|
466
|
+
- Values: functional, premium, or showcase
|
|
467
|
+
- If missing: assume premium (default) - this is a WARNING, not an ERROR
|
|
468
|
+
- Finding: **WARNING** if visual_quality is absent from Brief output
|
|
469
|
+
|
|
470
|
+
5. **Cross-artifact consistency**:
|
|
471
|
+
- If architecture says GSAP, UX spec must reference GSAP (not Framer Motion or CSS-only)
|
|
472
|
+
- If Brief says premium, architecture must NOT use CSS-only animations
|
|
473
|
+
- Finding: **ERROR** on any cross-artifact animation technology contradiction
|
|
439
474
|
|
|
440
475
|
---
|
|
441
476
|
|
|
@@ -462,12 +497,12 @@ Beyond self-validation (Protocol 5.1), the QA-Planning agent enforces:
|
|
|
462
497
|
|
|
463
498
|
## Domain Rules
|
|
464
499
|
|
|
465
|
-
1. **95% threshold is non-negotiable**: The QA-Planning gate requires 95%
|
|
466
|
-
2. **Adversarial review is mandatory**: No planning set can be approved without the adversarial review pass
|
|
467
|
-
3. **Correction loops are silent by default**: Users see "Refining artifacts for consistency..."
|
|
468
|
-
4. **Scope creep is the highest penalty**: PRD requirements without Brief origin carry -15 points
|
|
469
|
-
5. **State transition is gated**: The project state changes from `planning` to `build` ONLY when QA-Planning issues APPROVED
|
|
470
|
-
6. **All findings are classified**: Every finding must be typed as GAP, WEAK, SUGGESTION, or ATTESTATION
|
|
500
|
+
1. **95% threshold is non-negotiable**: The QA-Planning gate requires 95% - this cannot be lowered by any agent or workflow
|
|
501
|
+
2. **Adversarial review is mandatory**: No planning set can be approved without the adversarial review pass - this is a structural requirement, not optional
|
|
502
|
+
3. **Correction loops are silent by default**: Users see "Refining artifacts for consistency..." - detailed correction details are in the report, not in real-time output
|
|
503
|
+
4. **Scope creep is the highest penalty**: PRD requirements without Brief origin carry -15 points - the most severe single penalty
|
|
504
|
+
5. **State transition is gated**: The project state changes from `planning` to `build` ONLY when QA-Planning issues APPROVED - no other agent can trigger this transition
|
|
505
|
+
6. **All findings are classified**: Every finding must be typed as GAP, WEAK, SUGGESTION, or ATTESTATION - unclassified findings are a process failure
|
|
471
506
|
|
|
472
507
|
---
|
|
473
508
|
|
|
@@ -481,10 +516,10 @@ Beyond self-validation (Protocol 5.1), the QA-Planning agent enforces:
|
|
|
481
516
|
|
|
482
517
|
## Parallelization
|
|
483
518
|
|
|
484
|
-
- **
|
|
485
|
-
- **
|
|
519
|
+
- **Team mode (v4.2.3+)**: Runs as 4th member of the Planning Team (Article XXI). Activates AFTER Detail (TT-PLN-001), Architect (TT-PLN-002), and UX (TT-PLN-003) complete their tasks. Task ID: TT-PLN-005.
|
|
520
|
+
- **Communication**: Sends `qa_review_finding` messages via team mailbox to ALL THREE team members (detail, architect, ux) - not just the responsible agent. Corrections may affect cross-artifact consistency, so all agents must review findings together, re-validate their own work, and cross-review again before QA-Planning re-validates. Max 2 correction cycles. Team dissolves only when QA-Planning score >= 95%.
|
|
486
521
|
- **Internal parallelization**: Traceability chain validation (4 chains) can run in parallel. Criteria quality assessment can run concurrently with placeholder scanning. Adversarial review runs after all other validations complete.
|
|
487
|
-
- **Merge point**: QA-Planning
|
|
522
|
+
- **Merge point**: Team dissolution handles the planning-to-phases transition. QA-Planning score is synced to session.yaml by the orchestrator.
|
|
488
523
|
|
|
489
524
|
---
|
|
490
525
|
|
|
@@ -503,3 +538,41 @@ On error during execution:
|
|
|
503
538
|
## Input
|
|
504
539
|
|
|
505
540
|
$ARGUMENTS
|
|
541
|
+
|
|
542
|
+
---
|
|
543
|
+
|
|
544
|
+
## Reasoning Tier
|
|
545
|
+
|
|
546
|
+
**Default**: `deep` (Article XXIII — Reasoning Tier Governance).
|
|
547
|
+
|
|
548
|
+
The `reasoning-escalator.js` hook promotes this agent to a higher tier on friction signals (correction cycles >= 2, decision-trail entries > 2, task touches > 5 files or > 200 lines, user keywords like "stuck"/"loop"/"redesign", cross-viewport regression, explicit `/ultraplan` or `/deliberate`). A `/quick` command forces the tier back to `standard`.
|
|
549
|
+
|
|
550
|
+
When the tier is `deliberate`, the hook blocks `Write`/`Edit` calls on source files until `.planning/<task>-plan.md` exists. See `chati.dev/hooks/reasoning-escalator.js` for the full trigger list and `chati.dev/constitution.md` Article XXIII for governance rules.
|
|
551
|
+
|
|
552
|
+
---
|
|
553
|
+
|
|
554
|
+
## Fault Vector Protocol Compliance (Article XXII)
|
|
555
|
+
|
|
556
|
+
Every correction report written by qa-planning MUST include an FVP Compliance Checklist. On each ERROR or WARNING finding, emit:
|
|
557
|
+
|
|
558
|
+
```yaml
|
|
559
|
+
fault_origin: INTENT | SPEC | CODE | DEFER
|
|
560
|
+
routed_to: brief | detail | architect | tasks | dev | backlog
|
|
561
|
+
evidence: "<verbatim quote from the artifact ≤200 chars>"
|
|
562
|
+
what_was_wrong: "<one-sentence precise defect description>"
|
|
563
|
+
avoid: "<what the corrector MUST NOT repeat on the next iteration>"
|
|
564
|
+
decision_trail_entry: DT-<NNNN> (append to session.decision_trail[])
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
**Routing table (Article XXII §1):**
|
|
568
|
+
|
|
569
|
+
- `INTENT` — the requirement itself is wrong → route to **brief** (or detail for PRD-level intent).
|
|
570
|
+
- `SPEC` — requirement right, spec contradicts it → route to **architect** or **tasks**.
|
|
571
|
+
- `CODE` — spec right, implementation wrong → route to **dev**.
|
|
572
|
+
- `DEFER` — legitimate scope cut for a later phase → route to **backlog** (mark INFO severity, do not block).
|
|
573
|
+
|
|
574
|
+
**Evidence-Bound Verdicts (Article XXII §2):** every ERROR / WARNING finding MUST include a file:line evidence reference. Findings without evidence are downgraded to INFO and do not gate advance.
|
|
575
|
+
|
|
576
|
+
**Decision Trail append (Article XXII §3):** write one `decision_trail` entry per correction cycle so downstream agents can read the known-bad-state log before iterating. Echo Detection (§4) compares incoming corrections against the trail — similarity ≥ 0.85 escalates to the orchestrator instead of looping.
|
|
577
|
+
|
|
578
|
+
**Team Mode note (Article XXI):** within a Planning Team, qa-planning posts its FVP block to the Team Mailbox and does NOT unilaterally write `current_agent` in session.yaml. Team dissolution is orchestrator-mediated.
|