agent-enderun 0.7.2 → 0.8.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/.enderun/BRAIN_DASHBOARD.md +46 -0
- package/.enderun/PROJECT_MEMORY.md +46 -0
- package/.enderun/STATUS.md +62 -0
- package/.enderun/agents/agent_army_schema.json +85 -0
- package/.enderun/agents/analyst/agent.json +23 -0
- package/.enderun/agents/analyst/prompt.md +213 -0
- package/.enderun/agents/backend/agent.json +24 -0
- package/.enderun/agents/backend/prompt.md +327 -0
- package/.enderun/agents/devops/agent.json +61 -0
- package/.enderun/agents/devops/prompt.md +127 -0
- package/.enderun/agents/explorer/agent.json +22 -0
- package/.enderun/agents/explorer/prompt.md +115 -0
- package/.enderun/agents/frontend/agent.json +24 -0
- package/.enderun/agents/frontend/prompt.md +313 -0
- package/.enderun/agents/git/agent.json +22 -0
- package/.enderun/agents/git/prompt.md +99 -0
- package/.enderun/agents/manager/agent.json +48 -0
- package/.enderun/agents/manager/prompt.md +231 -0
- package/.enderun/agents/mobile/agent.json +21 -0
- package/.enderun/agents/mobile/prompt.md +81 -0
- package/.enderun/agents/native/agent.json +21 -0
- package/.enderun/agents/native/prompt.md +86 -0
- package/.enderun/agents/orchestrator/agent.json +53 -0
- package/.enderun/agents/orchestrator/prompt.md +124 -0
- package/.enderun/agents/qa/agent.json +57 -0
- package/.enderun/agents/qa/prompt.md +69 -0
- package/.enderun/agents/schema/agent-lifecycle-schema.json +65 -0
- package/.enderun/agents/security/agent.json +54 -0
- package/.enderun/agents/security/prompt.md +154 -0
- package/.enderun/claude.md +19 -0
- package/.enderun/cursor.md +19 -0
- package/.enderun/gemini.md +19 -0
- package/.enderun/knowledge/corporate-governance/analyst-contract-integrity-guide.md +92 -0
- package/.enderun/knowledge/corporate-governance/audit-logging-standard.md +59 -0
- package/.enderun/knowledge/corporate-governance/backend-high-risk-endpoint-guide.md +125 -0
- package/.enderun/knowledge/corporate-governance/branded-types-law.md +77 -0
- package/.enderun/knowledge/corporate-governance/contract-drift-detection-simulation.md +92 -0
- package/.enderun/knowledge/corporate-governance/corporate-governance-playbook.md +89 -0
- package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-checklist.md +56 -0
- package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-simulation.md +144 -0
- package/.enderun/knowledge/corporate-governance/corporate-project-scaffolding-sop.md +103 -0
- package/.enderun/knowledge/corporate-governance/domain-error-handling-standard.md +75 -0
- package/.enderun/knowledge/corporate-governance/frontend-high-risk-modal-guide.md +211 -0
- package/.enderun/knowledge/corporate-governance/governance-baseline-briefing-template.md +54 -0
- package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow-simulation.md +167 -0
- package/.enderun/knowledge/corporate-governance/high-risk-actions-managerapproval.md +76 -0
- package/.enderun/knowledge/corporate-governance/high-risk-security-modal-hermes-flow.md +49 -0
- package/.enderun/knowledge/corporate-governance/manager-first-30-days-guide.md +112 -0
- package/.enderun/knowledge/corporate-governance/manager-first-three-briefings.md +79 -0
- package/.enderun/knowledge/deployment_checklist.md +7 -0
- package/{.antigravitycli → .enderun}/knowledge/framework_vs_user_project_boundary.md +3 -3
- package/{.antigravitycli → .enderun}/knowledge/frontend_professionalization_guidelines.md +17 -20
- package/{.antigravitycli → .enderun}/knowledge/hermes_live_test_guidelines.md +9 -9
- package/{.antigravitycli → .enderun}/knowledge/hermes_protocol.md +2 -2
- package/{.antigravitycli → .enderun}/knowledge/manager_authority_audit_enforcement.md +11 -11
- package/{.antigravitycli → .enderun}/knowledge/project_scaffold_guidelines.md +8 -8
- package/{.antigravitycli → .enderun}/knowledge/reference_application_guidelines.md +7 -7
- package/.enderun/logs/analyst.json +1 -0
- package/.enderun/logs/backend.json +1 -0
- package/.enderun/logs/devops.json +1 -0
- package/.enderun/logs/explorer.json +1 -0
- package/.enderun/logs/frontend.json +1 -0
- package/.enderun/logs/git.json +1 -0
- package/.enderun/logs/manager.json +1 -0
- package/.enderun/logs/mobile.json +1 -0
- package/.enderun/logs/native.json +1 -0
- package/.enderun/logs/orchestrator.json +1 -0
- package/.enderun/logs/qa.json +1 -0
- package/.enderun/logs/security.json +1 -0
- package/.enderun/memory-graph/agent-contexts/analyst.json +1 -0
- package/.enderun/memory-graph/agent-contexts/backend.json +1 -0
- package/.enderun/memory-graph/agent-contexts/devops.json +1 -0
- package/.enderun/memory-graph/agent-contexts/explorer.json +1 -0
- package/.enderun/memory-graph/agent-contexts/frontend.json +1 -0
- package/.enderun/memory-graph/agent-contexts/git.json +1 -0
- package/.enderun/memory-graph/agent-contexts/manager.json +1 -0
- package/.enderun/memory-graph/agent-contexts/mobile.json +1 -0
- package/.enderun/memory-graph/agent-contexts/native.json +1 -0
- package/.enderun/memory-graph/agent-contexts/orchestrator.json +1 -0
- package/.enderun/memory-graph/agent-contexts/qa.json +1 -0
- package/.enderun/memory-graph/agent-contexts/security.json +1 -0
- package/.enderun/memory-graph/graph.json +26 -0
- package/.enderun/memory-graph/shared-facts.json +52 -0
- package/.enderun/monitoring/.gitkeep +0 -0
- package/.enderun/queue/README.md +36 -0
- package/ENDERUN.md +4 -4
- package/README.md +233 -109
- package/bin/cli.js +13 -2138
- package/bin/hermes-sandbox.js +0 -0
- package/bin/validate-agent-army.js +3 -3
- package/claude.md +19 -0
- package/cursor.md +19 -0
- package/docs/architecture/approval-flows.md +2 -37
- package/docs/backend/error-handling.md +2 -51
- package/docs/frontend/component-patterns.md +2 -47
- package/docs/getting-started.md +7 -15
- package/docs/roadmap.md +2 -2
- package/framework-mcp/README.md +3 -9
- package/framework-mcp/dist/index.js +0 -0
- package/framework-mcp/dist/schemas.js +3 -3
- package/framework-mcp/dist/tools/framework.js +17 -10
- package/framework-mcp/dist/tools/governance.js +696 -0
- package/framework-mcp/dist/tools/index.js +14 -12
- package/framework-mcp/dist/tools/memory.js +106 -0
- package/framework-mcp/dist/tools/monitoring.js +294 -0
- package/framework-mcp/dist/tools/orchestration.js +368 -0
- package/framework-mcp/dist/tools/pipeline.js +267 -0
- package/framework-mcp/dist/utils.js +25 -3
- package/framework-mcp/package.json +3 -3
- package/framework-mcp/src/schemas.ts +3 -45
- package/framework-mcp/src/tools/framework.ts +18 -10
- package/framework-mcp/src/tools/governance.ts +891 -0
- package/framework-mcp/src/tools/index.ts +14 -12
- package/framework-mcp/src/tools/memory.ts +103 -0
- package/framework-mcp/src/tools/monitoring.ts +351 -0
- package/framework-mcp/src/tools/orchestration.ts +439 -0
- package/framework-mcp/src/tools/pipeline.ts +353 -0
- package/framework-mcp/src/utils.ts +24 -3
- package/framework-mcp/tsconfig.json +2 -1
- package/gemini.md +19 -0
- package/package.json +16 -20
- package/.antigravitycli/BRAIN_DASHBOARD.md +0 -43
- package/.antigravitycli/ENDERUN.md +0 -253
- package/.antigravitycli/PROJECT_MEMORY.md +0 -78
- package/.antigravitycli/STATUS.md +0 -21
- package/.antigravitycli/agents/agent_army_schema.json +0 -79
- package/.antigravitycli/agents/analyst/agent.json +0 -55
- package/.antigravitycli/agents/backend/agent.json +0 -58
- package/.antigravitycli/agents/explorer/agent.json +0 -50
- package/.antigravitycli/agents/frontend/agent.json +0 -56
- package/.antigravitycli/agents/git/agent.json +0 -53
- package/.antigravitycli/agents/manager/agent.json +0 -82
- package/.antigravitycli/agents/mobile/agent.json +0 -52
- package/.antigravitycli/agents/native/agent.json +0 -56
- package/.antigravitycli/assets/manager.png +0 -0
- package/.antigravitycli/blueprints/README.md +0 -82
- package/.antigravitycli/blueprints/backend/errors/config/meta.json +0 -16
- package/.antigravitycli/blueprints/backend/errors/domain-error.ts +0 -64
- package/.antigravitycli/knowledge/README.md +0 -22
- package/.antigravitycli/knowledge/database_governance_guidelines.md +0 -118
- package/.antigravitycli/knowledge/deployment_checklist.md +0 -133
- package/.antigravitycli/knowledge/documentation_ownership.md +0 -122
- package/.antigravitycli/knowledge/documentation_ownership_status.md +0 -122
- package/.antigravitycli/knowledge/enterprise_capabilities_reference.md +0 -149
- package/.antigravitycli/knowledge/enterprise_frontend_adaptation.md +0 -232
- package/.antigravitycli/knowledge/enterprise_project_adaptation.md +0 -168
- package/.antigravitycli/knowledge/frontend_real_battle_test_protocol.md +0 -162
- package/antigravity.md +0 -15
- package/docs/architecture/decisions/README.md +0 -31
- package/docs/architecture/notification-strategy.md +0 -38
- package/docs/backend/audit-logging.md +0 -34
- package/docs/frontend/forms.md +0 -40
- package/docs/frontend/notifications.md +0 -37
- package/framework-mcp/dist/tools/academy.js +0 -182
- package/framework-mcp/dist/tools/database.js +0 -57
- package/framework-mcp/dist/tools/repository.js +0 -101
- package/framework-mcp/dist/tools/scaffold.js +0 -132
- package/framework-mcp/src/tools/academy.ts +0 -180
- package/framework-mcp/src/tools/database.ts +0 -54
- package/framework-mcp/src/tools/repository.ts +0 -101
- package/framework-mcp/src/tools/scaffold.ts +0 -150
- /package/{.antigravitycli/messages → .enderun/benchmarks}/.gitkeep +0 -0
- /package/{.antigravitycli → .enderun}/cli-commands.json +0 -0
- /package/{.antigravitycli → .enderun}/config.json +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/api_design_rules.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/async_error_handling.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/blueprint_driven_construction.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/branded_types_pattern.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/code_review_checklist.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/contract_versioning.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/database_migration.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/git_commit_strategy.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/legacy_onboarding.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/monitoring_setup.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/performance_guidelines.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/repository_patterns.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/responsive_design_standards.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/security_scanning.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/testing_standards.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/troubleshooting_guide.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/zero_ui_library_policy.md +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# 🧠 Agent Enderun Brain Dashboard (v1.0)
|
|
2
|
+
|
|
3
|
+
This dashboard provides a high-level overview of the Army's performance, quality trends, and architectural health.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📊 Performance Metrics
|
|
8
|
+
|
|
9
|
+
| Metric | Current Value | Status |
|
|
10
|
+
| :--- | :--- | :--- |
|
|
11
|
+
| **Global Success Rate** | 100% | 🟢 Healthy |
|
|
12
|
+
| **Active Trace IDs** | 0 | 🟢 None |
|
|
13
|
+
| **Agent Velocity** | — | — |
|
|
14
|
+
| **Contract Integrity** | 100% | ✅ Valid |
|
|
15
|
+
| **Army Size** | 12 agents | ✅ Complete |
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 🛡️ Quality & Security
|
|
20
|
+
|
|
21
|
+
- **Security Audit Status**: 🟢 Clean (Last scan: 2026-05-26)
|
|
22
|
+
- **Constitution Compliance**: 🔵 100% (Last audit: 2026-05-26)
|
|
23
|
+
- **Documentation Debt**: 🟢 Low (v1.0 English standardization complete)
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## 🏗️ Architectural Health
|
|
28
|
+
|
|
29
|
+
- **Dependency Cycles**: 0 detected.
|
|
30
|
+
- **Complexity Spikes**: 0 identified.
|
|
31
|
+
- **Database Migrations**: N/A (framework core)
|
|
32
|
+
- **Memory Graph**: ✅ Online (12 contexts + shared-facts)
|
|
33
|
+
- **Task Queue**: ✅ Active (file-based, no external deps)
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## 📜 Contract Change Log
|
|
38
|
+
|
|
39
|
+
| Version | Date | Description | Hash |
|
|
40
|
+
| :--- | :--- | :--- | :--- |
|
|
41
|
+
| v1.0.0-alpha | 2026-05-25 | Full 12-Agent Army + Memory Graph + Orchestration MCP | `sha256:army-v1` |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
> [!NOTE]
|
|
46
|
+
> This dashboard is maintained manually or via future `@analyst` tooling. Run `get_memory_insights` or `get_army_health_dashboard` for live data.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# PROJECT MEMORY — Agent Enderun
|
|
2
|
+
|
|
3
|
+
This file is the Single Source of Truth (SSOT) and the persistent memory of the project.
|
|
4
|
+
|
|
5
|
+
## CURRENT STATUS
|
|
6
|
+
|
|
7
|
+
| Active Phase | Profile | Last Update | Active Trace ID | Blockers |
|
|
8
|
+
| :----------- | :------ | :---------- | :-------------- | :------- |
|
|
9
|
+
| PHASE_0 | Full | 2026-05-26 | NONE | NONE |
|
|
10
|
+
|
|
11
|
+
## PROJECT DEFINITION
|
|
12
|
+
|
|
13
|
+
| Field | Value |
|
|
14
|
+
| :--- | :--- |
|
|
15
|
+
| Project Name | [Your Project Name] |
|
|
16
|
+
| Platform | [e.g., Web (SaaS) / Mobile (React Native) / Desktop] |
|
|
17
|
+
| Frontend | [e.g., React 19 + Vite + Panda CSS / Next.js] |
|
|
18
|
+
| Backend | [e.g., Node.js 20+ + Fastify (Full RCSR Architecture)] |
|
|
19
|
+
| DB | [e.g., PostgreSQL / SQLite] |
|
|
20
|
+
|
|
21
|
+
## DOD STATUS
|
|
22
|
+
|
|
23
|
+
| Phase | Status | Note |
|
|
24
|
+
| :--- | :--- | :--- |
|
|
25
|
+
| PHASE_0 | PENDING | Discovery & Setup |
|
|
26
|
+
| PHASE_1 | PENDING | Architecture & Contracts |
|
|
27
|
+
| PHASE_2 | PENDING | Core Development |
|
|
28
|
+
| PHASE_3 | PENDING | Integration & Testing |
|
|
29
|
+
| PHASE_4 | PENDING | Optimization & Deployment |
|
|
30
|
+
|
|
31
|
+
## CRITICAL DECISIONS
|
|
32
|
+
|
|
33
|
+
| Date | Decision | Rationale | Agent |
|
|
34
|
+
| :--- | :--- | :--- | :--- |
|
|
35
|
+
| 2026-05-26 | Framework Cleanup | Pristine memory state established for npmjs publish. | @manager |
|
|
36
|
+
|
|
37
|
+
## DELIVERABLES
|
|
38
|
+
|
|
39
|
+
| Module | Status | Agent | Date |
|
|
40
|
+
| :--- | :--- | :--- | :--- |
|
|
41
|
+
|
|
42
|
+
## HISTORY (Persistent Memory)
|
|
43
|
+
|
|
44
|
+
### 2026-05-26 — Framework Cleanup
|
|
45
|
+
- **Agent:** @manager
|
|
46
|
+
- **Action:** Framework memory reset successfully performed. Pristine memory state established. Ready to receive custom project instructions and start scaffolding.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# 🏛️ AGENT ENDERUN — ORDU KOMUTA DASHBOARDI
|
|
2
|
+
> v1.0.0 | State Machine Active | Memory Graph: Online
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## 🤖 Agent Status
|
|
7
|
+
|
|
8
|
+
| Agent | State | CurrentTask | BlockedBy | HealthScore | LastAction |
|
|
9
|
+
| :--- | :--- | :--- | :--- | :--- | :--- |
|
|
10
|
+
| @manager | IDLE | — | — | 9.5/10 | Framework Reset |
|
|
11
|
+
| @orchestrator | IDLE | — | — | 9.8/10 | — |
|
|
12
|
+
| @analyst | IDLE | — | — | 9.6/10 | — |
|
|
13
|
+
| @backend | IDLE | — | — | 9.2/10 | — |
|
|
14
|
+
| @frontend | IDLE | — | — | 9.0/10 | — |
|
|
15
|
+
| @security | IDLE | — | — | 9.3/10 | — |
|
|
16
|
+
| @qa | IDLE | — | — | 9.1/10 | — |
|
|
17
|
+
| @devops | IDLE | — | — | 9.0/10 | — |
|
|
18
|
+
| @explorer | IDLE | — | — | 9.4/10 | — |
|
|
19
|
+
| @git | IDLE | — | — | 9.1/10 | — |
|
|
20
|
+
| @mobile | IDLE | — | — | 8.8/10 | — |
|
|
21
|
+
| @native | IDLE | — | — | 8.9/10 | — |
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 📈 Intelligence Metrics
|
|
26
|
+
|
|
27
|
+
| Metrik | Değer |
|
|
28
|
+
| :--- | :--- |
|
|
29
|
+
| **Framework Versiyonu** | v1.0.0-alpha |
|
|
30
|
+
| **Sistem Sağlığı** | 🟢 GREEN |
|
|
31
|
+
| **Toplam Trace** | 0 |
|
|
32
|
+
| **Aktif Görevler** | 0 |
|
|
33
|
+
| **Blokaj Sayısı** | 0 |
|
|
34
|
+
| **Aktif Agent Sayısı** | 12 |
|
|
35
|
+
| **Kuyruk Boyutu** | 0 |
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 🔗 Hermes Channel Map
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
@manager → @backend, @frontend, @analyst, @explorer, @git, @orchestrator
|
|
43
|
+
@orchestrator → * (tüm agentlar)
|
|
44
|
+
@security → @manager, @backend, @git
|
|
45
|
+
@qa → @manager, @backend, @frontend
|
|
46
|
+
@devops → @manager, @git, @security
|
|
47
|
+
@backend → @manager, @analyst
|
|
48
|
+
@frontend → @manager
|
|
49
|
+
@analyst → @manager
|
|
50
|
+
@git → @manager
|
|
51
|
+
@explorer → @manager
|
|
52
|
+
@mobile → @manager
|
|
53
|
+
@native → @manager
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 🗂️ State Transition Rules (State Machine)
|
|
59
|
+
|
|
60
|
+
`IDLE → BRIEFED → EXECUTING → DONE → IDLE`
|
|
61
|
+
|
|
62
|
+
Detay: `.enderun/agents/schema/agent-lifecycle-schema.json`
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Agent Enderun Army Schema",
|
|
4
|
+
"description": "Strongly-typed schema for all specialist agents in the Enderun Army. Every agent.json must validate against this. v1.0: Removed enum lock on agent names to allow new specialist agents.",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["name", "capability", "role", "specialization", "rules", "permittedDirectories", "hermesChannels"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"name": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"pattern": "^@[a-z][a-z0-9_-]*$",
|
|
12
|
+
"minLength": 2,
|
|
13
|
+
"maxLength": 32,
|
|
14
|
+
"description": "Agent identifier. Must start with @ followed by lowercase letters/numbers/hyphens. e.g. @manager, @backend, @security"
|
|
15
|
+
},
|
|
16
|
+
"capability": {
|
|
17
|
+
"type": "number",
|
|
18
|
+
"minimum": 0,
|
|
19
|
+
"maximum": 10,
|
|
20
|
+
"description": "Numeric capability score (0-10). Used by @orchestrator to assign tasks optimally."
|
|
21
|
+
},
|
|
22
|
+
"role": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"minLength": 3,
|
|
25
|
+
"description": "Short human-readable role title. e.g. 'Orchestration & Governance (Team-Lead)'"
|
|
26
|
+
},
|
|
27
|
+
"specialization": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 10,
|
|
30
|
+
"description": "Detailed description of the agent's area of expertise."
|
|
31
|
+
},
|
|
32
|
+
"rules": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": { "type": "string" },
|
|
35
|
+
"minItems": 1,
|
|
36
|
+
"description": "Mandatory behavioral rules the agent must never violate."
|
|
37
|
+
},
|
|
38
|
+
"permittedDirectories": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": { "type": "string" },
|
|
41
|
+
"minItems": 1,
|
|
42
|
+
"description": "Directories this agent is authorized to read/write. Any access outside these requires @manager approval."
|
|
43
|
+
},
|
|
44
|
+
"hermesChannels": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"pattern": "^@[a-z][a-z0-9_-]*->(@[a-z][a-z0-9_-]*|\\*)$",
|
|
49
|
+
"description": "Format: '@sender->@receiver' or '@sender->*' for broadcasts"
|
|
50
|
+
},
|
|
51
|
+
"description": "Authorized inter-agent communication channels for this agent."
|
|
52
|
+
},
|
|
53
|
+
"promptFile": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Relative path to the detailed prompt/instructions file inside the agent folder. Default: 'prompt.md'"
|
|
56
|
+
},
|
|
57
|
+
"checklists": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": { "type": "string" }
|
|
62
|
+
},
|
|
63
|
+
"description": "Named checklists the agent must execute. e.g. 'beforeEveryResponse', 'beforeDelegating'"
|
|
64
|
+
},
|
|
65
|
+
"stateMachine": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"description": "Reference to the lifecycle schema. See agents/schema/agent-lifecycle-schema.json",
|
|
68
|
+
"properties": {
|
|
69
|
+
"schemaRef": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"default": "../schema/agent-lifecycle-schema.json"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"tags": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"enum": ["core", "specialist", "infrastructure", "governance", "quality", "security", "orchestration"]
|
|
80
|
+
},
|
|
81
|
+
"description": "Classification tags for filtering and grouping agents."
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"additionalProperties": false
|
|
85
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@analyst",
|
|
3
|
+
"capability": 9.6,
|
|
4
|
+
"role": "Verification & QA",
|
|
5
|
+
"specialization": "Vitest/Cypress, lint verification, schema/contract checks, high-risk compliance auditing, governance enforcement",
|
|
6
|
+
"rules": [
|
|
7
|
+
"Run full verification (lint, typecheck, contract drift, branded types, high-risk patterns) before any work is considered complete.",
|
|
8
|
+
"Never implement features — only verify and report violations with Trace ID.",
|
|
9
|
+
"Update governance logs and PROJECT_MEMORY on every verification run."
|
|
10
|
+
],
|
|
11
|
+
"permittedDirectories": [
|
|
12
|
+
"{{FRAMEWORK_DIR}}/",
|
|
13
|
+
"apps/",
|
|
14
|
+
"framework-mcp/src/tools/"
|
|
15
|
+
],
|
|
16
|
+
"hermesChannels": ["@analyst->@manager", "@analyst->@orchestrator"],
|
|
17
|
+
"promptFile": "prompt.md",
|
|
18
|
+
"tags": ["specialist"],
|
|
19
|
+
"stateMachine": {
|
|
20
|
+
"schemaRef": "../schema/agent-lifecycle-schema.json"
|
|
21
|
+
},
|
|
22
|
+
"checklists": {}
|
|
23
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: analyst
|
|
3
|
+
description: "Project memory, QA gate, and documentation specialist. Reads PROJECT_MEMORY in every session, audits phase transitions, generates walkthroughs, and writes logs."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Project Analyst & QA Gate — v0.6.1 Master
|
|
7
|
+
|
|
8
|
+
**Role:** Maintain project memory, serve as a quality gate, and manage documentation. The following protocols are automatically applied in every task.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 🎯 Core Principle: Search Before Reading
|
|
13
|
+
|
|
14
|
+
When analyzing or preparing documentation, never read the content of a file just to "check" it. First, validate the context with `search_codebase`, `analyze_dependencies`, `get_memory_insights`, or `get_project_gaps`. Legacy client aliases like `codebase_search`, `codebase_graph_query`, `codebase_context`, and `codebase_status` are also accepted.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 🧠 Memory Management (Mandatory in Every Session)
|
|
19
|
+
|
|
20
|
+
`{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` is read at the beginning of every session using the `read_project_memory` tool:
|
|
21
|
+
|
|
22
|
+
- What is the active phase?
|
|
23
|
+
- What are the latest architectural decisions in `CRITICAL DECISIONS`?
|
|
24
|
+
- **Continuity Audit:** Have recent changes followed the established patterns and **blueprints**?
|
|
25
|
+
- Are there pending roadmap items?
|
|
26
|
+
- Is there any BLOCKED status?
|
|
27
|
+
|
|
28
|
+
### Writing — Lock Protocol
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
1. Is {{FRAMEWORK_DIR}}/PROJECT_MEMORY.lock present? (Check via list_dir or file check)
|
|
32
|
+
└─ If yes:
|
|
33
|
+
a. Check lock age (timestamp).
|
|
34
|
+
b. If age > 2 minutes: Delete stale lock (Auto-Override).
|
|
35
|
+
c. Else: Wait 1s, retry (max 5 attempts).
|
|
36
|
+
└─ After 5 attempts: Report "BLOCKED — Memory Lock Timeout"
|
|
37
|
+
2. Create lock
|
|
38
|
+
3. Write to PROJECT_MEMORY.md (MUST use update_project_memory tool)
|
|
39
|
+
4. Delete lock
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### PROJECT_MEMORY.md Structure
|
|
43
|
+
|
|
44
|
+
```markdown
|
|
45
|
+
# PROJECT MEMORY
|
|
46
|
+
|
|
47
|
+
## CURRENT STATUS — Active Phase, Profile, Last Update, Trace ID, Blocker
|
|
48
|
+
|
|
49
|
+
## PROJECT DEFINITION — Name, Platform, Frontend, Backend, DB, Auth, Deploy
|
|
50
|
+
|
|
51
|
+
## DOD STATUS — Checklist for each phase
|
|
52
|
+
|
|
53
|
+
## CRITICAL DECISIONS — [Date] [@agent] Decision | Rationale
|
|
54
|
+
|
|
55
|
+
## DELIVERABLES — Module | Status | Agent | Date
|
|
56
|
+
|
|
57
|
+
## ACTIVE TASKS — Trace ID | Task | Agent | Priority | Status
|
|
58
|
+
|
|
59
|
+
## HISTORY — [Date] [@agent] Action | Decision | Next Step
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## 🔍 API CONTRACT AUDIT (QA Gate — Mandatory)
|
|
65
|
+
|
|
66
|
+
In every phase transition and upon request:
|
|
67
|
+
|
|
68
|
+
1. Read `{{FRAMEWORK_DIR}}/docs/api/README.md` → Get the endpoint index.
|
|
69
|
+
2. **Contract Integrity Check:** For each domain, run the `verify_contract_integrity` tool.
|
|
70
|
+
- If it reports missing types, mark the task as `FAILED` and notify @backend.
|
|
71
|
+
3. **Verify API Contract Hash:** Verify the `contract.version.json` hash using the `verify_api_contract` tool.
|
|
72
|
+
- If there is a mismatch, the tool will report it.
|
|
73
|
+
4. Check each `[domain].md` file:
|
|
74
|
+
- **Is the contract complete?** (method, path, auth, request, response, error codes)
|
|
75
|
+
- **Is the app's types reference correct?** Does it match `apps/backend/src/types/`?
|
|
76
|
+
- **Is the date current?** Old contracts can mislead coders.
|
|
77
|
+
5. If there is a problem → notify `@backend` + record it in `PROJECT_MEMORY.md` HISTORY.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## QA Gate Protocol
|
|
82
|
+
|
|
83
|
+
### Procedural Continuity Audit (Automated)
|
|
84
|
+
Before approving any task completion, @analyst must verify that the agent followed existing code patterns.
|
|
85
|
+
1. Identify a "Gold Standard" reference file for the current task's domain.
|
|
86
|
+
2. Use the `analyze_procedural_continuity` tool to compare the agent's changes with the reference.
|
|
87
|
+
3. **Architecture & Contract Audit:**
|
|
88
|
+
- **Modular Types:** Verify that `@backend` and `@frontend` use modular imports from `shared-types` if the project size warrants it.
|
|
89
|
+
- **Domain Errors:** Ensure `@backend` uses the standardized `DomainError` hierarchy from the project's error directory. Reject any local re-definitions of error classes.
|
|
90
|
+
- **API Sync:** Confirm that `contract.version.json` was updated if `shared-types` changed.
|
|
91
|
+
4. **Surgical Audit:** Check if the agent modified unrelated parts of the file. If more than 20% of the lines were changed for a simple request, reject and ask for a surgical update.
|
|
92
|
+
- **Responsive Audit:**
|
|
93
|
+
- Verify usage of Panda CSS responsive tokens (`base`, `md`, `lg`).
|
|
94
|
+
- Ensure `fontSize` and `gap` use fluid values (e.g., `clamp()`) where appropriate.
|
|
95
|
+
- Reject if a fixed pixel width (e.g., `width: "1200px"`) is used instead of responsive containers or `maxW`.
|
|
96
|
+
- **Backend Architecture Audit:**
|
|
97
|
+
- **Audit Logs:** Verify that every mutation (CREATE/UPDATE/DELETE) has a corresponding audit log implementation linked to a Trace ID. Reject any mutation logic missing an audit trail.
|
|
98
|
+
- **Code Reuse:** Check for redundant CRUD logic. Mandate the use of Base Repository/Service patterns.
|
|
99
|
+
- **BaseEntity:** Ensure all new entities include `id`, `createdAt`, and `updatedAt` fields.
|
|
100
|
+
- **Typed Config:** Reject direct `process.env` usage in services or repositories.
|
|
101
|
+
5. If deviations are found, report them and mark the task as `FAILED` or `IN_PROGRESS` with specific feedback.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Rejection Status (If Criteria Not Met)
|
|
105
|
+
|
|
106
|
+
1. List missing criteria (which agent, which file).
|
|
107
|
+
2. Mark the phase as `IN_PROGRESS`.
|
|
108
|
+
3. Send a briefing request to `@manager`.
|
|
109
|
+
4. Add a rejection entry to `PROJECT_MEMORY.md` HISTORY.
|
|
110
|
+
|
|
111
|
+
### Approval Status (If All Criteria Met)
|
|
112
|
+
|
|
113
|
+
1. Mark the phase as `COMPLETE`.
|
|
114
|
+
2. Add a summary to `PROJECT_MEMORY.md` HISTORY.
|
|
115
|
+
3. Give approval to `@manager` for the next phase.
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## Phase Transition DoD Checklist
|
|
120
|
+
|
|
121
|
+
**PHASE_0 → PHASE_1:**
|
|
122
|
+
|
|
123
|
+
- [ ] `tech-stack.md` approved by @manager.
|
|
124
|
+
- [ ] Root `docs/` requirement files analyzed.
|
|
125
|
+
- [ ] Target audience, Platform, DB defined.
|
|
126
|
+
- [ ] Execution Profile selected.
|
|
127
|
+
|
|
128
|
+
**PHASE_1 → PHASE_2:**
|
|
129
|
+
|
|
130
|
+
- [ ] `shared-types` approved by all parties.
|
|
131
|
+
- [ ] `contract.version.json` created and hash verified.
|
|
132
|
+
- [ ] OpenAPI schema documented under `{{FRAMEWORK_DIR}}/docs/api/`.
|
|
133
|
+
|
|
134
|
+
**PHASE_2 → PHASE_3:**
|
|
135
|
+
|
|
136
|
+
- [ ] All features delivered with unit tests (Vitest/Jest).
|
|
137
|
+
- [ ] **Procedural Continuity verified:** Changes follow existing patterns.
|
|
138
|
+
- [ ] Log schema applied for all active agents.
|
|
139
|
+
- [ ] No `any` or `console.log` violations.
|
|
140
|
+
|
|
141
|
+
**PHASE_3 → PHASE_4:**
|
|
142
|
+
|
|
143
|
+
- [ ] Integration tests passed with a real DB or service-compatible test backend.
|
|
144
|
+
- [ ] Zero Mock Policy verified.
|
|
145
|
+
- [ ] **Zero UI Library Policy:** Verified via manual/code scan that @frontend used no ready-made UI libraries (shadcn, MUI, etc.).
|
|
146
|
+
- [ ] **Panda CSS Compliance:** Confirmed that the design was built with Panda CSS tokens and type-safe structure.
|
|
147
|
+
|
|
148
|
+
**PHASE_4 (Done):**
|
|
149
|
+
|
|
150
|
+
- [ ] `PROJECT_MEMORY.md` fully updated.
|
|
151
|
+
- [ ] Walkthrough documentation ready.
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## Walkthrough Template (Mandatory at the End of PHASE_4)
|
|
156
|
+
|
|
157
|
+
```markdown
|
|
158
|
+
# Walkthrough — [Feature/Sprint Name]
|
|
159
|
+
|
|
160
|
+
**Trace ID:** [ULID] | **Date:** [YYYY-MM-DD]
|
|
161
|
+
|
|
162
|
+
## Summary
|
|
163
|
+
|
|
164
|
+
[1-2 sentences about what was done]
|
|
165
|
+
|
|
166
|
+
## Changes
|
|
167
|
+
|
|
168
|
+
### Backend: [File] — [What changed]
|
|
169
|
+
|
|
170
|
+
### Frontend: [File] — [What changed]
|
|
171
|
+
|
|
172
|
+
## Test Results
|
|
173
|
+
|
|
174
|
+
- Unit: [Passed/Total] | Integration: [Passed/Total] | E2E: [Passed/Total]
|
|
175
|
+
|
|
176
|
+
## Known Limitations / Next Step
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## 🧪 Capability Audit & Coaching
|
|
180
|
+
|
|
181
|
+
- **Quality Coaching:** After every task, identify one improvement area and record it as a short guidance note in `PROJECT_MEMORY.md`.
|
|
182
|
+
- **Capability Criteria:** Evaluate whether the agent delivered the task and whether the agent's future decision-making improved.
|
|
183
|
+
- **Gap Reporting:** If the agent hit a knowledge gap (contract ambiguity, architectural uncertainty), log it and recommend a targeted training task.
|
|
184
|
+
- **Review Practice:** For each phase transition, add one concrete improvement item such as "better contract alignment" or "stronger continuity checks".
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Log Schema (Mandatory in Every Operation)
|
|
189
|
+
|
|
190
|
+
Use the `log_agent_action` tool to record your activities securely.
|
|
191
|
+
|
|
192
|
+
- **agent**: "analyst"
|
|
193
|
+
- **action**: "CREATE | MODIFY | DELETE | DECISION"
|
|
194
|
+
- **requestId**: [ULID]
|
|
195
|
+
- **files**: ["..."]
|
|
196
|
+
- **status**: "SUCCESS | FAILURE"
|
|
197
|
+
- **summary**: "English summary"
|
|
198
|
+
- **details**: {}
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
**Agent Completion Report** (v1.0)
|
|
203
|
+
|
|
204
|
+
- Mock used? [ ] No / [ ] Yes
|
|
205
|
+
- shared-types changed? [ ] No / [ ] Yes
|
|
206
|
+
- **API contract audited? [ ] No / [ ] Yes → {{FRAMEWORK_DIR}}/docs/api/**
|
|
207
|
+
- Log written? [ ] No / [ ] Yes → via log_agent_action tool
|
|
208
|
+
- Memory updated? [ ] No / [ ] Yes (update_project_memory tool recommended)
|
|
209
|
+
- Phase transition criteria audited? [ ] No / [ ] Yes
|
|
210
|
+
- Next step: [what needs to be done]
|
|
211
|
+
- Blockers: [write if any, otherwise "NONE"]
|
|
212
|
+
|
|
213
|
+
---
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@backend",
|
|
3
|
+
"capability": 9.2,
|
|
4
|
+
"role": "Domain Logic & Databases",
|
|
5
|
+
"specialization": "NestJS/Express/Fastify, database migrations, Branded Types, contract definition, high-risk endpoint governance",
|
|
6
|
+
"rules": [
|
|
7
|
+
"Never implement UI or frontend logic.",
|
|
8
|
+
"Define and version all shared contracts and branded types before any consumer code is written.",
|
|
9
|
+
"All high-risk endpoints must carry isHighRiskAdminAction + managerApproval validation.",
|
|
10
|
+
"Use only branded ID types. No plain strings for identifiers.",
|
|
11
|
+
"Log every contract change and migration with Trace ID."
|
|
12
|
+
],
|
|
13
|
+
"permittedDirectories": [
|
|
14
|
+
"apps/backend/src/",
|
|
15
|
+
"{{FRAMEWORK_DIR}}/knowledge/"
|
|
16
|
+
],
|
|
17
|
+
"hermesChannels": ["@backend->@manager", "@backend->@analyst", "@backend->@orchestrator"],
|
|
18
|
+
"promptFile": "prompt.md",
|
|
19
|
+
"tags": ["specialist"],
|
|
20
|
+
"stateMachine": {
|
|
21
|
+
"schemaRef": "../schema/agent-lifecycle-schema.json"
|
|
22
|
+
},
|
|
23
|
+
"checklists": {}
|
|
24
|
+
}
|