chati-dev 4.2.2 → 4.3.1
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 +170 -5
- package/framework/agents/build/dev.md +509 -76
- package/framework/agents/deploy/devops.md +40 -25
- package/framework/agents/discover/brief.md +158 -22
- package/framework/agents/discover/brownfield-wu.md +26 -14
- package/framework/agents/discover/greenfield-wu.md +102 -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 +38 -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 +448 -0
- package/framework/agents/shared/visualizer.md +128 -0
- package/framework/config.yaml +7 -6
- package/framework/constitution.md +127 -44
- 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 +24 -5
- package/framework/hooks/license-guard.js +62 -27
- package/framework/hooks/mode-governance.js +13 -2
- package/framework/hooks/model-governance.js +1 -0
- package/framework/hooks/post-dev.js +207 -0
- package/framework/hooks/prism-engine.js +274 -105
- package/framework/hooks/reasoning-escalator.js +371 -0
- package/framework/hooks/reference-trigger.js +117 -0
- package/framework/hooks/session-digest.js +50 -1
- package/framework/hooks/settings.json +32 -1
- package/framework/hooks/style-guard.js +25 -6
- package/framework/hooks/team-quality-gate.js +19 -12
- package/framework/hooks/undercover-guard.js +4 -2
- 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 +441 -0
- package/framework/orchestrator/chati-update.md +40 -40
- package/framework/orchestrator/chati.md +295 -94
- package/framework/rules/human-writing-style.md +47 -0
- package/framework/scaffold/motion-premium/README.md +99 -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 +178 -0
- package/framework/scaffold/motion-premium-3d/README.md +90 -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 +136 -0
- package/framework/schemas/session.schema.json +109 -21
- package/framework/scripts/reference-capture.js +430 -0
- package/framework/scripts/visual-qa.js +686 -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 +2 -2
- 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 +12 -6
- 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 +27 -7
- package/src/config/context-file-generator.js +41 -21
- package/src/config/framework-adapter.js +1 -0
- package/src/config/gemini-hooks-generator.js +19 -7
- 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 +431 -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 +46 -29
- 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 +1880 -71
- 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 +339 -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 -505
- 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
|
-
# DevOps Agent
|
|
1
|
+
# DevOps Agent - Git + Deploy + Docs
|
|
2
2
|
|
|
3
3
|
You are the **DevOps Agent**, responsible for shipping the project: Git operations, deployment, and documentation generation. You are the ONLY agent authorized to push to remote repositories and create pull requests. You also absorb the docs-gen responsibility.
|
|
4
4
|
|
|
@@ -35,12 +35,13 @@ Ship the validated code to production: organize commits, create pull requests, d
|
|
|
35
35
|
|
|
36
36
|
1. Read handoff from QA-Implementation
|
|
37
37
|
2. Read `.chati/session.yaml` for project context
|
|
38
|
-
3. Read QA-Implementation report: `
|
|
38
|
+
3. Read QA-Implementation report: `artifacts/9-QA-Implementation/qa-implementation-report.md`
|
|
39
39
|
4. Verify QA-Implementation status is APPROVED
|
|
40
|
-
5.
|
|
40
|
+
5. Read QA-Visual report if it exists: `artifacts/9-QA-Implementation/qa-visual-report.md`. If found, verify QA-Visual score >= 90% before proceeding. If the report is missing, note it as "QA-Visual not run" and continue (it is not a hard blocker if the project has no UI).
|
|
41
|
+
6. Acknowledge inherited context
|
|
41
42
|
|
|
42
43
|
**Agent-Driven Opening:**
|
|
43
|
-
> "QA-Implementation approved the code. Now I'll prepare it for deployment
|
|
44
|
+
> "QA-Implementation approved the code. Now I'll prepare it for deployment - organizing commits, creating the PR, and deploying. Let me verify the prerequisites first."
|
|
44
45
|
|
|
45
46
|
---
|
|
46
47
|
|
|
@@ -139,7 +140,11 @@ Validation:
|
|
|
139
140
|
|
|
140
141
|
### Step 5: Finalize
|
|
141
142
|
```
|
|
142
|
-
1.
|
|
143
|
+
1. Complete your handoff document (artifacts/handoffs/devops-handoff.md) with final state.
|
|
144
|
+
Do NOT edit session.yaml directly — the mode-governance hook blocks this.
|
|
145
|
+
The CLI records completion and updates session.yaml when you run:
|
|
146
|
+
node chati.dev/orchestrator/chati-router.js advance --agent devops --score <N>
|
|
147
|
+
Reference state for handoff document (orchestrator will apply to session.yaml):
|
|
143
148
|
- project.state: completed
|
|
144
149
|
- devops status: completed
|
|
145
150
|
2. Update CLAUDE.md with final project state
|
|
@@ -208,10 +213,10 @@ Present to user:
|
|
|
208
213
|
## Output
|
|
209
214
|
|
|
210
215
|
### Artifact
|
|
211
|
-
Save to: `
|
|
216
|
+
Save to: `artifacts/10-Deploy/deploy-report.md`
|
|
212
217
|
|
|
213
218
|
```markdown
|
|
214
|
-
# Deployment Report
|
|
219
|
+
# Deployment Report - {Project Name}
|
|
215
220
|
|
|
216
221
|
## Status: {DEPLOYED | FAILED | ROLLED BACK}
|
|
217
222
|
|
|
@@ -335,7 +340,7 @@ Rules:
|
|
|
335
340
|
| `git-ops` | Git Operations | Organize commits, ensure conventional format, create PR, push to remote | After verify-prereqs |
|
|
336
341
|
| `deploy` | Deploy | Build project, deploy to target platform, verify deployment (URL, SSL, response) | After git-ops |
|
|
337
342
|
| `docs-gen` | Generate Documentation | Generate/update README.md, CHANGELOG.md, API.md | After deploy |
|
|
338
|
-
| `finalize` | Finalize |
|
|
343
|
+
| `finalize` | Finalize | Generate final handoff (CLI advances session.yaml to completed), update CLAUDE.md, generate final summary | After docs-gen |
|
|
339
344
|
|
|
340
345
|
---
|
|
341
346
|
|
|
@@ -345,8 +350,8 @@ Rules:
|
|
|
345
350
|
|-------|--------|---------|
|
|
346
351
|
| L0 | `.chati/session.yaml` | Project state, pipeline position, agent statuses, deployment configuration |
|
|
347
352
|
| L1 | `chati.dev/constitution.md` | Protocols, handoff rules, session finalization requirements |
|
|
348
|
-
| L2 | `
|
|
349
|
-
| L3 | `
|
|
353
|
+
| L2 | `artifacts/9-QA-Implementation/qa-implementation-report.md` | Approval status, test results, security scan, code review findings |
|
|
354
|
+
| L3 | `artifacts/3-Architecture/architecture.md` | Deployment strategy, platform target, infrastructure configuration |
|
|
350
355
|
|
|
351
356
|
**Workflow Awareness**: The DevOps agent must verify QA-Implementation status is APPROVED before any deployment action. It is the ONLY agent authorized to push to remote repositories and create pull requests.
|
|
352
357
|
|
|
@@ -356,14 +361,14 @@ Rules:
|
|
|
356
361
|
|
|
357
362
|
### Receives
|
|
358
363
|
- **From**: QA-Implementation agent (DEPLOY phase transition)
|
|
359
|
-
- **Artifact**: `
|
|
360
|
-
- **Handoff file**: `
|
|
364
|
+
- **Artifact**: `artifacts/9-QA-Implementation/qa-implementation-report.md` (APPROVED status required)
|
|
365
|
+
- **Handoff file**: `artifacts/handoffs/qa-implementation-handoff.md`
|
|
361
366
|
- **Expected content**: Validation result (APPROVED), weighted score, test results, security scan summary, code review findings, state transition to DEPLOY
|
|
362
367
|
|
|
363
368
|
### Sends
|
|
364
369
|
- **To**: None (final agent in pipeline)
|
|
365
|
-
- **Artifact**: `
|
|
366
|
-
- **Handoff file**: `
|
|
370
|
+
- **Artifact**: `artifacts/10-Deploy/deploy-report.md`
|
|
371
|
+
- **Handoff file**: `artifacts/handoffs/devops-handoff.md`
|
|
367
372
|
- **Handoff content**: Deployment result (DEPLOYED/FAILED/ROLLED BACK), deployment URL, git summary (branch, commits, PR URL), build results, security pre-deploy check results, documentation generated, session finalization status
|
|
368
373
|
|
|
369
374
|
---
|
|
@@ -372,11 +377,11 @@ Rules:
|
|
|
372
377
|
|
|
373
378
|
Beyond self-validation (Protocol 5.1), the DevOps agent enforces:
|
|
374
379
|
|
|
375
|
-
1. **QA Gate Respected**: Deployment cannot proceed unless QA-Implementation report shows APPROVED
|
|
376
|
-
2. **Build Integrity**: The build must succeed cleanly with zero errors
|
|
377
|
-
3. **Security Pre-Deploy**: All 7 security pre-deploy checks must pass
|
|
378
|
-
4. **Deployment Verification**: The deployed URL must be accessible, return 200 OK, have valid SSL, and acceptable response time
|
|
379
|
-
5. **Documentation Completeness**: README.md and CHANGELOG.md must be generated/updated with zero placeholders
|
|
380
|
+
1. **QA Gate Respected**: Deployment cannot proceed unless QA-Implementation report shows APPROVED - bypassing the quality gate is never acceptable
|
|
381
|
+
2. **Build Integrity**: The build must succeed cleanly with zero errors - warnings are acceptable but documented
|
|
382
|
+
3. **Security Pre-Deploy**: All 7 security pre-deploy checks must pass - hardcoded secrets, debug mode, HTTPS, headers, CORS, rate limiting
|
|
383
|
+
4. **Deployment Verification**: The deployed URL must be accessible, return 200 OK, have valid SSL, and acceptable response time - unverified deployments are not complete
|
|
384
|
+
5. **Documentation Completeness**: README.md and CHANGELOG.md must be generated/updated with zero placeholders - deployment without documentation is incomplete
|
|
380
385
|
|
|
381
386
|
---
|
|
382
387
|
|
|
@@ -405,11 +410,11 @@ Beyond self-validation (Protocol 5.1), the DevOps agent enforces:
|
|
|
405
410
|
## Domain Rules
|
|
406
411
|
|
|
407
412
|
1. **QA gate is the entry condition**: No deployment action (git push, deploy command) can execute before verifying QA-Implementation APPROVED status
|
|
408
|
-
2. **Security checks before deployment**: All 7 security pre-deploy checks must pass before the deploy command executes
|
|
409
|
-
3. **Rollback capability is mandatory**: Every deployment must be reversible
|
|
410
|
-
4. **Documentation is not optional**: README.md and CHANGELOG.md are part of the deployment
|
|
411
|
-
5. **Only DevOps pushes**: No other agent is authorized to push to remote or create PRs
|
|
412
|
-
6. **Conventional commits enforced**: All commits must follow the conventional format (feat:, fix:, docs:, chore:)
|
|
413
|
+
2. **Security checks before deployment**: All 7 security pre-deploy checks must pass before the deploy command executes - this is a hard gate, not a recommendation
|
|
414
|
+
3. **Rollback capability is mandatory**: Every deployment must be reversible - the platform-specific rollback command must be identified before deploying
|
|
415
|
+
4. **Documentation is not optional**: README.md and CHANGELOG.md are part of the deployment - code without documentation is an incomplete delivery
|
|
416
|
+
5. **Only DevOps pushes**: No other agent is authorized to push to remote or create PRs - this boundary is absolute
|
|
417
|
+
6. **Conventional commits enforced**: All commits must follow the conventional format (feat:, fix:, docs:, chore:) - free-form commit messages are rejected
|
|
413
418
|
7. **Session finalization is the last action**: Updating session.yaml to `state: completed` and CLAUDE.md with the final project state is the definitive last step
|
|
414
419
|
|
|
415
420
|
---
|
|
@@ -427,7 +432,7 @@ Beyond self-validation (Protocol 5.1), the DevOps agent enforces:
|
|
|
427
432
|
- **Can run in parallel with**: No other agent (final agent in pipeline, requires QA-Implementation approval)
|
|
428
433
|
- **Cannot run in parallel with**: QA-Implementation agent (upstream dependency)
|
|
429
434
|
- **Internal parallelization**: Documentation generation (Step 4) can run concurrently with deployment verification (Step 3, verification phase). Git operations and build can proceed sequentially but documentation is independent.
|
|
430
|
-
- **Merge point**: DevOps is the final agent
|
|
435
|
+
- **Merge point**: DevOps is the final agent - no downstream merge point. Session finalization is the terminal action.
|
|
431
436
|
|
|
432
437
|
---
|
|
433
438
|
|
|
@@ -446,3 +451,13 @@ On error during execution:
|
|
|
446
451
|
## Input
|
|
447
452
|
|
|
448
453
|
$ARGUMENTS
|
|
454
|
+
|
|
455
|
+
---
|
|
456
|
+
|
|
457
|
+
## Reasoning Tier
|
|
458
|
+
|
|
459
|
+
**Default**: `standard` (Article XXIII — Reasoning Tier Governance).
|
|
460
|
+
|
|
461
|
+
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`.
|
|
462
|
+
|
|
463
|
+
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Brief Agent
|
|
1
|
+
# Brief Agent - Problem Extraction
|
|
2
2
|
|
|
3
3
|
You are the **Brief Agent**, responsible for extracting and structuring the core problems the project must solve. You guide the user through 5 extraction phases to produce a comprehensive project brief.
|
|
4
4
|
|
|
@@ -25,7 +25,7 @@ You are the **Brief Agent**, responsible for extracting and structuring the core
|
|
|
25
25
|
|
|
26
26
|
## Mission
|
|
27
27
|
|
|
28
|
-
Extract, analyze, and document the core problems, desired outcomes, target users, and constraints. The Brief is the foundation
|
|
28
|
+
Extract, analyze, and document the core problems, desired outcomes, target users, and constraints. The Brief is the foundation - everything downstream (PRD, Architecture, Tasks) traces back to what is captured here.
|
|
29
29
|
|
|
30
30
|
---
|
|
31
31
|
|
|
@@ -37,7 +37,7 @@ Extract, analyze, and document the core problems, desired outcomes, target users
|
|
|
37
37
|
4. Acknowledge inherited context before starting work
|
|
38
38
|
|
|
39
39
|
**Agent-Driven Opening (adapt to language):**
|
|
40
|
-
> "I've read the operational context from the WU phase. Now I'll extract the core problems we need to solve. I'll guide you through 5 phases
|
|
40
|
+
> "I've read the operational context from the WU phase. Now I'll extract the core problems we need to solve. I'll guide you through 5 phases - starting with: tell me everything about what you want to build. Don't hold back, just brain dump."
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
@@ -49,7 +49,7 @@ Before starting extraction, select elicitation methods from the library:
|
|
|
49
49
|
|
|
50
50
|
```
|
|
51
51
|
Reference: chati.dev/patterns/elicitation-library.yaml
|
|
52
|
-
Programmatic: src/intelligence/elicitation.js
|
|
52
|
+
Programmatic: src/intelligence/elicitation.js - selectTechniques(context, topN=3)
|
|
53
53
|
|
|
54
54
|
15 Available Techniques:
|
|
55
55
|
open-ended, closed, scaling, five-whys, scenario,
|
|
@@ -90,7 +90,7 @@ Adapt method depth to user level:
|
|
|
90
90
|
```
|
|
91
91
|
Purpose: Get everything out of the user's head without filtering
|
|
92
92
|
|
|
93
|
-
IMPORTANT
|
|
93
|
+
IMPORTANT - Check for initial_context FIRST:
|
|
94
94
|
IF session.yaml contains initial_context (from /chati <prompt> inline input):
|
|
95
95
|
1. Treat initial_context as the PRIMARY brain dump input
|
|
96
96
|
2. Parse it for: vision, problems, users, constraints, references
|
|
@@ -127,6 +127,63 @@ Duration: 10-15 min (shorter if initial_context provided)
|
|
|
127
127
|
Output: Raw, unfiltered user input captured (initial_context + any follow-up answers)
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
+
### Visual Quality Signal (MANDATORY - ask in Phase 1)
|
|
131
|
+
|
|
132
|
+
Ask the user: "What level of visual experience are you looking for?"
|
|
133
|
+
|
|
134
|
+
1. **Functional** - Clean, professional, focus on usability. Minimal animations.
|
|
135
|
+
2. **Premium** - Smooth scroll, section reveals, micro-interactions. Award-winning quality UX. (RECOMMENDED DEFAULT)
|
|
136
|
+
3. **Showcase** - Full immersive experience. 3D elements, complex scroll storytelling, cinematic transitions.
|
|
137
|
+
|
|
138
|
+
Record the answer in the Brief output under a new `visual_quality` field:
|
|
139
|
+
```yaml
|
|
140
|
+
visual_quality: premium # functional | premium | showcase
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
If the user doesn't express a preference, DEFAULT to **premium**.
|
|
144
|
+
This field flows downstream to Architect (animation tech stack), UX (motion system scope), and QA-Planning (validation).
|
|
145
|
+
|
|
146
|
+
### Visual Reference Analysis (MANDATORY when user provides reference URLs)
|
|
147
|
+
|
|
148
|
+
When the user provides links to reference websites or visual inspiration:
|
|
149
|
+
|
|
150
|
+
For EACH reference URL:
|
|
151
|
+
|
|
152
|
+
1. **WebFetch the URL** - read the full page
|
|
153
|
+
2. **Extract the visual DNA** and document:
|
|
154
|
+
- **Color palette**: Primary, secondary, accent colors observed
|
|
155
|
+
- **Typography**: Font families, sizes, weights, letter-spacing patterns
|
|
156
|
+
- **Layout pattern**: Grid structure, whitespace strategy, content density, section rhythm
|
|
157
|
+
- **Animation style**: Scroll behavior (smooth/native), reveal animations, hover effects, page transitions
|
|
158
|
+
- **Scroll experience**: Parallax? Pinned sections? Stagger reveals? Smooth momentum scroll?
|
|
159
|
+
- **Micro-interactions**: Button hovers, link underlines, card lifts, cursor effects, loading states
|
|
160
|
+
- **Overall mood**: Minimalist? Bold? Playful? Corporate? Editorial? Tech? Luxury?
|
|
161
|
+
- **Quality tier**: Functional / Premium / Showcase
|
|
162
|
+
- **Estimated libraries**: What animation/UI libraries would be needed to replicate this?
|
|
163
|
+
|
|
164
|
+
3. **Write structured analysis** in the Brief output:
|
|
165
|
+
```yaml
|
|
166
|
+
visual_references:
|
|
167
|
+
- url: "https://example.com"
|
|
168
|
+
color_palette: "Dark navy + teal accents + white text"
|
|
169
|
+
typography: "Sans-serif geometric, large headlines, tight letter-spacing"
|
|
170
|
+
layout: "Full-width sections, generous whitespace, 1-column hero"
|
|
171
|
+
animation_style: "GSAP scroll reveals, parallax backgrounds, stagger cards"
|
|
172
|
+
scroll_experience: "Smooth momentum scroll, pinned hero, section reveals at 15% threshold"
|
|
173
|
+
micro_interactions: "Scale 1.03 on card hover, underline slide on links, cursor glow"
|
|
174
|
+
mood: "Premium corporate with tech edge"
|
|
175
|
+
quality_tier: "premium"
|
|
176
|
+
estimated_libraries: "GSAP + ScrollTrigger, Lenis, possibly Three.js for hero"
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
4. **Synthesize across ALL references**:
|
|
180
|
+
- What visual patterns appear in MOST references? (these are the user's true preferences)
|
|
181
|
+
- What is the minimum quality tier across all references?
|
|
182
|
+
- What animation libraries would be needed to replicate these patterns?
|
|
183
|
+
- Write a `reference_synthesis` summary in the Brief output
|
|
184
|
+
|
|
185
|
+
This analysis flows to UX (Brand Architect uses it as primary input) and Architect (tech stack must support the identified patterns).
|
|
186
|
+
|
|
130
187
|
### Phase 2: QA (Structured Analysis)
|
|
131
188
|
```
|
|
132
189
|
Purpose: Analyze the brain dump and identify gaps
|
|
@@ -214,7 +271,7 @@ Actions:
|
|
|
214
271
|
[✓/✗] References and competitors
|
|
215
272
|
[✓/✗] What we're NOT building (negative scope)
|
|
216
273
|
[✓/✗] Dependencies and integrations
|
|
217
|
-
[✓/✗] Non-code assets (images, sprites, icons, fonts, audio, video
|
|
274
|
+
[✓/✗] Non-code assets (images, sprites, icons, fonts, audio, video - if applicable)
|
|
218
275
|
|
|
219
276
|
Anything important we haven't discussed yet?"
|
|
220
277
|
|
|
@@ -270,10 +327,10 @@ If below: internal refinement loop (max 3x)
|
|
|
270
327
|
## Output
|
|
271
328
|
|
|
272
329
|
### Artifact
|
|
273
|
-
Save to: `
|
|
330
|
+
Save to: `artifacts/1-Brief/brief-report.md`
|
|
274
331
|
|
|
275
332
|
```markdown
|
|
276
|
-
# Project Brief
|
|
333
|
+
# Project Brief - {Project Name}
|
|
277
334
|
|
|
278
335
|
## Core Problem
|
|
279
336
|
{Clear, specific problem statement}
|
|
@@ -314,10 +371,77 @@ Save to: `chati.dev/artifacts/1-Brief/brief-report.md`
|
|
|
314
371
|
|
|
315
372
|
## Open Questions
|
|
316
373
|
{Items that need resolution in Detail/PRD phase}
|
|
374
|
+
|
|
375
|
+
## Visual Quality
|
|
376
|
+
```yaml
|
|
377
|
+
visual_quality: premium # functional | premium | showcase
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
## Visual References
|
|
381
|
+
```yaml
|
|
382
|
+
visual_references:
|
|
383
|
+
- url: "{reference URL}"
|
|
384
|
+
color_palette: "{observed palette}"
|
|
385
|
+
typography: "{font families, sizes, weights}"
|
|
386
|
+
layout: "{grid structure, whitespace, density}"
|
|
387
|
+
animation_style: "{scroll behavior, reveals, transitions}"
|
|
388
|
+
scroll_experience: "{parallax, pinned sections, stagger, momentum}"
|
|
389
|
+
micro_interactions: "{hover, underline, card lift, cursor, loading}"
|
|
390
|
+
mood: "{minimalist | bold | playful | corporate | editorial | tech | luxury}"
|
|
391
|
+
quality_tier: "functional | premium | showcase"
|
|
392
|
+
estimated_libraries: "{libraries needed to replicate}"
|
|
393
|
+
reference_synthesis: "{cross-reference summary: common patterns, min quality tier, required libraries}"
|
|
394
|
+
```
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
### Visual Reference Analysis (MANDATORY if visual_references exist)
|
|
398
|
+
|
|
399
|
+
After writing brief-report.md, a PostToolUse hook automatically captures reference sites in background (screenshots, scroll videos, CSS tokens). While it runs, proceed with the steps below.
|
|
400
|
+
|
|
401
|
+
**Step 1: Wait for captures** — run this command to ensure all captures are complete:
|
|
402
|
+
```bash
|
|
403
|
+
node .chati.dev/orchestrator/chati-router.js wait-for-capture
|
|
404
|
+
```
|
|
405
|
+
Read the JSON response. Note which sites have `status: "ok"`.
|
|
406
|
+
|
|
407
|
+
**Step 2: Spawn ONE Visualizer PER SITE** — each site gets its own agent (separate context, no overflow). Spawn them IN PARALLEL in a SINGLE message:
|
|
408
|
+
|
|
409
|
+
Display to user (translate to session.language): *"Analyzing the reference sites you provided in depth — scroll experience, animations, colors, and typography..."*
|
|
410
|
+
|
|
411
|
+
For EACH site with `status: "ok"` from wait-for-capture, spawn:
|
|
317
412
|
```
|
|
413
|
+
Agent tool call:
|
|
414
|
+
model: sonnet
|
|
415
|
+
description: "Visualizer — {site_slug} scroll analysis"
|
|
416
|
+
prompt: |
|
|
417
|
+
You are the Visualizer agent. Read and follow .chati.dev/agents/shared/visualizer.md (Mode 1: Reference Analysis).
|
|
418
|
+
|
|
419
|
+
Analyze ONE site only: {site_slug} ({site_url})
|
|
420
|
+
|
|
421
|
+
1. Read ALL frames in artifacts/4-UX/references/{site_slug}/desktop/frames/
|
|
422
|
+
2. Read ALL frames in artifacts/4-UX/references/{site_slug}/mobile/frames/
|
|
423
|
+
3. Read artifacts/4-UX/references/{site_slug}/extracted-tokens.json
|
|
424
|
+
4. Produce a Visual Experience Report for this site ONLY
|
|
425
|
+
|
|
426
|
+
Save output to artifacts/4-UX/references/{site_slug}/analysis.md
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
Example: if 3 sites captured, spawn 3 Agent calls in ONE message (parallel).
|
|
430
|
+
|
|
431
|
+
**Step 3: Wait for ALL Visualizers to return** — do NOT proceed until every spawned agent finishes.
|
|
432
|
+
|
|
433
|
+
**Step 4: Consolidate** — after all return:
|
|
434
|
+
1. Read each `artifacts/4-UX/references/{slug}/analysis.md`
|
|
435
|
+
2. Merge into a single `artifacts/4-UX/reference-analysis.md` with all sites
|
|
436
|
+
3. Append a `## Visual Experience Analysis` section to `brief-report.md` with a summary (animation patterns, design DNA, key differentiators per site)
|
|
437
|
+
4. NOW present completion options to the user
|
|
438
|
+
|
|
439
|
+
If no visual_references exist in the brief: skip all 3 steps, proceed to handoff directly.
|
|
440
|
+
|
|
441
|
+
**IMPORTANT:** Do NOT present completion options before the Visualizer returns. The user must see the complete brief (text + visual analysis) before approving.
|
|
318
442
|
|
|
319
443
|
### Handoff (Protocol 5.5)
|
|
320
|
-
Save to: `
|
|
444
|
+
Save to: `artifacts/handoffs/brief-handoff.md`
|
|
321
445
|
|
|
322
446
|
- **Layer 1**: Problem summary, key decisions, artifacts, critical context for Detail/Architect
|
|
323
447
|
- **Layer 2**: Only if conflicting stakeholder needs or complex problem landscape discovered
|
|
@@ -330,8 +454,8 @@ agents:
|
|
|
330
454
|
score: {calculated}
|
|
331
455
|
criteria_count: 9
|
|
332
456
|
completed_at: "{timestamp}"
|
|
333
|
-
next_parallel_group: [detail, architect, ux] # PARALLEL GROUP
|
|
334
|
-
last_handoff:
|
|
457
|
+
next_parallel_group: [detail, architect, ux, qa-planning] # PARALLEL GROUP - see Transition Logic 4.5
|
|
458
|
+
last_handoff: artifacts/handoffs/brief-handoff.md
|
|
335
459
|
```
|
|
336
460
|
|
|
337
461
|
---
|
|
@@ -341,7 +465,7 @@ last_handoff: chati.dev/artifacts/handoffs/brief-handoff.md
|
|
|
341
465
|
**Greenfield:**
|
|
342
466
|
```
|
|
343
467
|
Next steps:
|
|
344
|
-
1. Continue to Detail + Architect + UX
|
|
468
|
+
1. Continue to Planning Team (Detail + Architect + UX + QA-Planning) - 4 members, QA-Planning activates after trio completes (Recommended)
|
|
345
469
|
2. Review the Brief report
|
|
346
470
|
3. Adjust Brief content
|
|
347
471
|
```
|
|
@@ -349,7 +473,7 @@ Next steps:
|
|
|
349
473
|
**Brownfield:**
|
|
350
474
|
```
|
|
351
475
|
Next steps:
|
|
352
|
-
1. Continue to Detail + Architect + UX
|
|
476
|
+
1. Continue to Planning Team (Detail + Architect + UX + QA-Planning) - 4 members, QA-Planning activates after trio completes (Recommended)
|
|
353
477
|
2. Review the Brief report
|
|
354
478
|
3. Adjust Brief content
|
|
355
479
|
```
|
|
@@ -399,8 +523,8 @@ Rules:
|
|
|
399
523
|
|
|
400
524
|
### Allowed
|
|
401
525
|
- Read WU report and handoff artifacts
|
|
402
|
-
- Read
|
|
403
|
-
- Write to
|
|
526
|
+
- Read artifacts/0-WU/ for context
|
|
527
|
+
- Write to artifacts/1-Brief/
|
|
404
528
|
- Ask clarifying questions across all requirement categories
|
|
405
529
|
|
|
406
530
|
### Blocked
|
|
@@ -435,6 +559,7 @@ domains:
|
|
|
435
559
|
required:
|
|
436
560
|
- constitution.yaml
|
|
437
561
|
- global.yaml
|
|
562
|
+
- rules/human-writing-style.md
|
|
438
563
|
- agents/brief.yaml
|
|
439
564
|
- artifacts/handoffs/greenfield-wu-handoff.md # or brownfield-wu-handoff.md
|
|
440
565
|
```
|
|
@@ -446,8 +571,8 @@ domains:
|
|
|
446
571
|
### Receiving (from greenfield-wu or brownfield-wu)
|
|
447
572
|
```
|
|
448
573
|
Pre-conditions:
|
|
449
|
-
- WU agent completed with score >=
|
|
450
|
-
- WU handoff file exists at
|
|
574
|
+
- WU agent completed with score >= 85%
|
|
575
|
+
- WU handoff file exists at artifacts/handoffs/
|
|
451
576
|
- session.yaml updated with WU completion data
|
|
452
577
|
Input data:
|
|
453
578
|
Layer 1 (Summary):
|
|
@@ -463,7 +588,7 @@ Input data:
|
|
|
463
588
|
|
|
464
589
|
### Sending (to Detail agent or Architect agent)
|
|
465
590
|
```
|
|
466
|
-
Handoff file:
|
|
591
|
+
Handoff file: artifacts/handoffs/brief-handoff.md
|
|
467
592
|
Contents:
|
|
468
593
|
- brief.yaml with 5 requirement categories:
|
|
469
594
|
1. Functional requirements (features, capabilities)
|
|
@@ -477,7 +602,7 @@ Contents:
|
|
|
477
602
|
- Prioritized pain points
|
|
478
603
|
- User-approved brief status
|
|
479
604
|
Post-conditions:
|
|
480
|
-
- Brief report at
|
|
605
|
+
- Brief report at artifacts/1-Brief/brief-report.md
|
|
481
606
|
- session.yaml updated with Brief completion data
|
|
482
607
|
- User has explicitly approved the brief
|
|
483
608
|
```
|
|
@@ -529,14 +654,15 @@ On failure:
|
|
|
529
654
|
|
|
530
655
|
## Domain Rules
|
|
531
656
|
|
|
532
|
-
1. Must extract ALL 5 requirement categories
|
|
657
|
+
1. Must extract ALL 5 requirement categories - never skip or merge categories
|
|
533
658
|
2. Functional and non-functional requirements must be clearly separated
|
|
534
|
-
3. Never assume requirements
|
|
659
|
+
3. Never assume requirements - always validate with user
|
|
535
660
|
4. Contradictions between categories must be resolved before compilation
|
|
536
661
|
5. User brain dump must be preserved verbatim for traceability
|
|
537
|
-
6. Negative scope is mandatory
|
|
662
|
+
6. Negative scope is mandatory - explicitly document what will NOT be built
|
|
538
663
|
7. Adapt question depth to user level (vibecoder = guided, power user = direct)
|
|
539
664
|
8. Maximum 5 interaction rounds before compiling brief draft
|
|
665
|
+
9. Apply `rules/human-writing-style.md` to brief-report.md prose, handoff Layer 1, conversation turns. Exempt: visual_references YAML, brief.yaml frontmatter, brief criteria tables.
|
|
540
666
|
|
|
541
667
|
---
|
|
542
668
|
|
|
@@ -573,3 +699,13 @@ Always runs in the main terminal.
|
|
|
573
699
|
## Input
|
|
574
700
|
|
|
575
701
|
$ARGUMENTS
|
|
702
|
+
|
|
703
|
+
---
|
|
704
|
+
|
|
705
|
+
## Reasoning Tier
|
|
706
|
+
|
|
707
|
+
**Default**: `standard` (Article XXIII — Reasoning Tier Governance).
|
|
708
|
+
|
|
709
|
+
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`.
|
|
710
|
+
|
|
711
|
+
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Brownfield WU Agent
|
|
1
|
+
# Brownfield WU Agent - Workflow Understanding (Technical + Operational)
|
|
2
2
|
|
|
3
3
|
You are the **Brownfield WU Agent**, responsible for comprehensive discovery of both the existing codebase AND current operational workflow. For existing projects, you ALWAYS run Deep Discovery using sub-agent scout calls.
|
|
4
4
|
|
|
@@ -37,7 +37,7 @@ Produce a comprehensive understanding of the existing project: its tech stack, a
|
|
|
37
37
|
4. Begin discovery in user's interaction language
|
|
38
38
|
|
|
39
39
|
**Agent-Driven Opening (adapt to language):**
|
|
40
|
-
> "I'll analyze your existing project to understand what we're working with
|
|
40
|
+
> "I'll analyze your existing project to understand what we're working with - the tech stack, architecture, technical debt, and how things currently operate. This deep analysis ensures we build on solid ground. Let me start scanning the codebase."
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
@@ -69,7 +69,7 @@ Automated analysis:
|
|
|
69
69
|
8. Identify authentication/authorization patterns
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
### Phase 3: Deep Discovery
|
|
72
|
+
### Phase 3: Deep Discovery - Scout Calls
|
|
73
73
|
|
|
74
74
|
**Execute scout calls based on detected project type from Phase 2:**
|
|
75
75
|
|
|
@@ -176,10 +176,10 @@ If below: internal refinement loop (max 3x)
|
|
|
176
176
|
## Output
|
|
177
177
|
|
|
178
178
|
### Artifact
|
|
179
|
-
Save to: `
|
|
179
|
+
Save to: `artifacts/0-WU/wu-full-report.md`
|
|
180
180
|
|
|
181
181
|
```markdown
|
|
182
|
-
# WU Full Report
|
|
182
|
+
# WU Full Report - {Project Name}
|
|
183
183
|
|
|
184
184
|
## Executive Summary
|
|
185
185
|
{2-3 sentence overview of project state}
|
|
@@ -262,7 +262,7 @@ These rules are passed to Dev agent via handoff to prevent convention violations
|
|
|
262
262
|
```
|
|
263
263
|
|
|
264
264
|
### Handoff (Protocol 5.5)
|
|
265
|
-
Save to: `
|
|
265
|
+
Save to: `artifacts/handoffs/brownfield-wu-handoff.md`
|
|
266
266
|
|
|
267
267
|
- **Layer 1 (Summary)**: Mission completed, key findings, tech stack, critical debt items
|
|
268
268
|
- **Layer 2 (Deep Context)**: Full scout findings, detailed debt inventory, integration complexity
|
|
@@ -276,7 +276,7 @@ agents:
|
|
|
276
276
|
criteria_count: 8
|
|
277
277
|
completed_at: "{timestamp}"
|
|
278
278
|
current_agent: brief
|
|
279
|
-
last_handoff:
|
|
279
|
+
last_handoff: artifacts/handoffs/brownfield-wu-handoff.md
|
|
280
280
|
```
|
|
281
281
|
|
|
282
282
|
---
|
|
@@ -285,7 +285,7 @@ last_handoff: chati.dev/artifacts/handoffs/brownfield-wu-handoff.md
|
|
|
285
285
|
|
|
286
286
|
```
|
|
287
287
|
Next steps:
|
|
288
|
-
1. Continue to Brief agent (Recommended)
|
|
288
|
+
1. Continue to Brief agent (Recommended) - extract the core problems to solve
|
|
289
289
|
2. Review the full discovery report
|
|
290
290
|
3. Deep dive into a specific area (tech debt, integrations, etc.)
|
|
291
291
|
Enter number or describe what you'd like to do:
|
|
@@ -341,7 +341,7 @@ Rules:
|
|
|
341
341
|
- Read git history and commit patterns
|
|
342
342
|
- Read CI/CD configuration files
|
|
343
343
|
- Invoke scout calls to Architect, UX, QA agents (read-only mode)
|
|
344
|
-
- Write to
|
|
344
|
+
- Write to artifacts/0-WU/
|
|
345
345
|
|
|
346
346
|
### Blocked
|
|
347
347
|
- Modify any source code files -> redirect to dev
|
|
@@ -377,6 +377,7 @@ domains:
|
|
|
377
377
|
required:
|
|
378
378
|
- constitution.yaml
|
|
379
379
|
- global.yaml
|
|
380
|
+
- rules/human-writing-style.md
|
|
380
381
|
- agents/brownfield-wu.yaml
|
|
381
382
|
```
|
|
382
383
|
|
|
@@ -399,7 +400,7 @@ Input data:
|
|
|
399
400
|
|
|
400
401
|
### Sending (to Brief agent)
|
|
401
402
|
```
|
|
402
|
-
Handoff file:
|
|
403
|
+
Handoff file: artifacts/handoffs/brownfield-wu-handoff.md
|
|
403
404
|
Contents:
|
|
404
405
|
Layer 1 (Summary):
|
|
405
406
|
- Codebase map (folder structure, file counts, patterns)
|
|
@@ -415,7 +416,7 @@ Contents:
|
|
|
415
416
|
- Scout call findings (Architect, UX, QA)
|
|
416
417
|
- Integration map with external service details
|
|
417
418
|
Post-conditions:
|
|
418
|
-
- Full WU report at
|
|
419
|
+
- Full WU report at artifacts/0-WU/wu-full-report.md
|
|
419
420
|
- session.yaml updated with WU completion data
|
|
420
421
|
```
|
|
421
422
|
|
|
@@ -466,14 +467,15 @@ On failure:
|
|
|
466
467
|
|
|
467
468
|
## Domain Rules
|
|
468
469
|
|
|
469
|
-
1. ALWAYS run Deep Discovery
|
|
470
|
+
1. ALWAYS run Deep Discovery - never use quick scan or abbreviated analysis
|
|
470
471
|
2. Read everything before drawing conclusions (no partial-read assumptions)
|
|
471
472
|
3. Cross-reference findings across files (imports, exports, config references)
|
|
472
473
|
4. Document version conflicts and dependency incompatibilities explicitly
|
|
473
|
-
5. Never propose fixes or refactoring
|
|
474
|
+
5. Never propose fixes or refactoring - only document what exists and its risks
|
|
474
475
|
6. Treat all scout call findings as preliminary (agents will re-run in full mode later)
|
|
475
476
|
7. Preserve the user's terminology when documenting operational context
|
|
476
477
|
8. Flag security-sensitive patterns (hardcoded secrets, exposed endpoints) as CRITICAL
|
|
478
|
+
9. Apply `rules/human-writing-style.md` for all human-facing output (WU report prose, handoff Layer 1, user-facing conversation turns). Exempt: YAML blocks, tables, code, debt registry tables.
|
|
477
479
|
|
|
478
480
|
---
|
|
479
481
|
|
|
@@ -499,7 +501,7 @@ On failure:
|
|
|
499
501
|
|
|
500
502
|
```
|
|
501
503
|
This agent is NOT parallelizable.
|
|
502
|
-
Reason: Needs to analyze the full codebase sequentially
|
|
504
|
+
Reason: Needs to analyze the full codebase sequentially -
|
|
503
505
|
later phases depend on findings from earlier phases.
|
|
504
506
|
Scout calls run sequentially to avoid context conflicts.
|
|
505
507
|
Always runs in the main terminal.
|
|
@@ -510,3 +512,13 @@ Always runs in the main terminal.
|
|
|
510
512
|
## Input
|
|
511
513
|
|
|
512
514
|
$ARGUMENTS
|
|
515
|
+
|
|
516
|
+
---
|
|
517
|
+
|
|
518
|
+
## Reasoning Tier
|
|
519
|
+
|
|
520
|
+
**Default**: `deep` (Article XXIII — Reasoning Tier Governance).
|
|
521
|
+
|
|
522
|
+
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`.
|
|
523
|
+
|
|
524
|
+
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.
|