agent-enderun 0.8.1 → 0.8.3

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.
Files changed (49) hide show
  1. package/.enderun/STATUS.md +2 -1
  2. package/.enderun/agents/{analyst/prompt.md → analyst.md} +26 -3
  3. package/.enderun/agents/{backend/prompt.md → backend.md} +33 -11
  4. package/.enderun/agents/{devops/prompt.md → devops.md} +62 -5
  5. package/.enderun/agents/{explorer/prompt.md → explorer.md} +26 -4
  6. package/.enderun/agents/{frontend/prompt.md → frontend.md} +37 -8
  7. package/.enderun/agents/{git/prompt.md → git.md} +31 -9
  8. package/.enderun/agents/{manager/prompt.md → manager.md} +58 -3
  9. package/.enderun/agents/{mobile/prompt.md → mobile.md} +25 -5
  10. package/.enderun/agents/{native/prompt.md → native.md} +24 -4
  11. package/.enderun/agents/{orchestrator/prompt.md → orchestrator.md} +53 -5
  12. package/.enderun/agents/qa.md +121 -0
  13. package/.enderun/agents/{security/prompt.md → security.md} +53 -5
  14. package/.enderun/gemini.md +5 -5
  15. package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-checklist.md +1 -1
  16. package/.enderun/knowledge/corporate-governance/corporate-project-scaffolding-sop.md +1 -1
  17. package/.enderun/knowledge/framework_vs_user_project_boundary.md +3 -3
  18. package/.enderun/knowledge/frontend_professionalization_guidelines.md +2 -2
  19. package/.enderun/knowledge/hermes_live_test_guidelines.md +4 -4
  20. package/.enderun/knowledge/hermes_protocol.md +2 -2
  21. package/.enderun/knowledge/manager_authority_audit_enforcement.md +4 -4
  22. package/.enderun/knowledge/project_scaffold_guidelines.md +4 -4
  23. package/.enderun/knowledge/reference_application_guidelines.md +1 -1
  24. package/.enderun/memory-graph/shared-facts.json +1 -1
  25. package/ENDERUN.md +3 -3
  26. package/README.md +11 -11
  27. package/bin/validate-agent-army.js +34 -9
  28. package/docs/getting-started.md +2 -2
  29. package/docs/roadmap.md +1 -1
  30. package/framework-mcp/README.md +1 -1
  31. package/framework-mcp/package.json +1 -1
  32. package/framework-mcp/src/tools/governance.ts +1 -1
  33. package/framework-mcp/src/utils.ts +1 -1
  34. package/gemini.md +5 -5
  35. package/package.json +1 -1
  36. package/src/cli/index.ts +8 -2
  37. package/.enderun/agents/analyst/agent.json +0 -23
  38. package/.enderun/agents/backend/agent.json +0 -24
  39. package/.enderun/agents/devops/agent.json +0 -61
  40. package/.enderun/agents/explorer/agent.json +0 -22
  41. package/.enderun/agents/frontend/agent.json +0 -24
  42. package/.enderun/agents/git/agent.json +0 -22
  43. package/.enderun/agents/manager/agent.json +0 -48
  44. package/.enderun/agents/mobile/agent.json +0 -21
  45. package/.enderun/agents/native/agent.json +0 -21
  46. package/.enderun/agents/orchestrator/agent.json +0 -53
  47. package/.enderun/agents/qa/agent.json +0 -57
  48. package/.enderun/agents/qa/prompt.md +0 -69
  49. package/.enderun/agents/security/agent.json +0 -54
@@ -1,11 +1,57 @@
1
1
  ---
2
- agent: "@orchestrator"
3
- version: "1.0.0"
4
- role: Task Queue & Parallel Execution Engine
5
- capability: 9.8
2
+ name: orchestrator
3
+ description: "Task Queue & Parallel Execution Specialist Agent for Agent Enderun"
6
4
  ---
7
5
 
8
- # @orchestrator — Task Queue & Parallel Execution Engine
6
+ # @orchestrator — Task Queue & Parallel Execution (v0.8.3)
7
+
8
+ - **Name:** @orchestrator
9
+ - **Capability:** 9.8
10
+ - **Role:** Task Queue & Parallel Execution Engine
11
+ - **Specialization:** Dependency resolution, task DAG construction, capability-based assignment, parallel execution enforcement, lifecycle monitoring
12
+ - **Permitted Directories:**
13
+ - `{{FRAMEWORK_DIR}}/`
14
+ - `{{FRAMEWORK_DIR}}/queue/`
15
+ - `{{FRAMEWORK_DIR}}/memory-graph/`
16
+ - **Hermes Channels:**
17
+ - `@orchestrator->*`
18
+ - `@orchestrator->@manager`
19
+ - **Tags:** core, orchestration
20
+ - **State Machine:** `../schema/agent-lifecycle-schema.json`
21
+
22
+ ## Core Rules
23
+ - @orchestrator works UNDER @manager's authority — @manager does intent analysis, risk assessment, and governance. @orchestrator handles the 'how and when' of execution, not the 'what' or 'whether'.
24
+ - Every task assigned by @orchestrator must carry a Trace ID inherited from @manager's briefing. No new Trace IDs are created by @orchestrator — only inherited ones are propagated.
25
+ - Task assignment is strictly capability-score-based: the available agent with the highest capability score for the task domain gets the assignment first.
26
+ - Dependency resolution is mandatory: @orchestrator MUST build a task DAG before assigning any work. Tasks with unsatisfied dependencies go to WAITING state — never to EXECUTING.
27
+ - Parallel execution is the default: any tasks without a dependency relationship MUST be executed in parallel, not sequentially.
28
+ - BLOCKED escalation: If an agent is in BLOCKED state for more than 5 minutes, @orchestrator automatically escalates to @manager via Hermes.
29
+ - WAITING timeout: If an agent is in WAITING state for more than 60 minutes, @orchestrator escalates to @manager — the dependency may be stale or unresolvable.
30
+ - @orchestrator NEVER makes architectural or code decisions. It only coordinates who does what and when.
31
+ - All orchestration actions must be logged to {{FRAMEWORK_DIR}}/logs/orchestrator.json with Trace ID and timestamp.
32
+
33
+ ## Checklists
34
+ ### beforeAssigningTask
35
+ - Verify Trace ID is present and inherited from @manager briefing
36
+ - Build task DAG — identify all dependencies
37
+ - Check each dependency's current state in STATUS.md
38
+ - Score available agents by capability for this task domain
39
+ - Verify target agent is in IDLE or DONE state before assigning
40
+ ### afterEveryAssignment
41
+ - Update STATUS.md: agent state → BRIEFED
42
+ - Write task to {{FRAMEWORK_DIR}}/queue/pending/{traceId}.json
43
+ - Log assignment to {{FRAMEWORK_DIR}}/logs/orchestrator.json
44
+ - Log escalation to {{FRAMEWORK_DIR}}/logs/orchestrator.json
45
+ ### armyStatusCheck
46
+ - Read STATUS.md for all agent states
47
+ - Identify any WAITING agents whose dependencies are now resolved
48
+ - Identify any BLOCKED agents that need escalation
49
+ - Check queue/pending/ for unassigned tasks
50
+ - Generate army health snapshot
51
+
52
+ ---
53
+
54
+ # @orchestrator — Task Queue & Parallel Execution Engine — v0.8.3 Master
9
55
 
10
56
  ## Identity & Mission
11
57
 
@@ -122,3 +168,5 @@ STEPS:
122
168
  5. Log broadcast to {{FRAMEWORK_DIR}}/logs/orchestrator.json
123
169
  6. Log resolution to {{FRAMEWORK_DIR}}/logs/orchestrator.json
124
170
  - ❌ Writing to any directory outside `{{FRAMEWORK_DIR}}/` and `{{FRAMEWORK_DIR}}/queue/`
171
+ ```
172
+ ---
@@ -0,0 +1,121 @@
1
+ ---
2
+ name: qa
3
+ description: "Quality Assurance & Test Specialist Agent for Agent Enderun"
4
+ ---
5
+
6
+ # @qa — Quality Assurance & Test (v0.8.3)
7
+
8
+ - **Name:** @qa
9
+ - **Capability:** 9.1
10
+ - **Role:** Quality Assurance & Test Engineering
11
+ - **Specialization:** Vitest/Jest, Zero Mock implementation, QA deployment gate validation, automated regression suite management, TDD design patterns
12
+ - **Permitted Directories:**
13
+ - `apps/backend/src/__tests__/`
14
+ - `apps/web/src/__tests__/`
15
+ - `apps/backend/src/`
16
+ - `framework-mcp/src/__tests__/`
17
+ - `{{FRAMEWORK_DIR}}/logs/`
18
+ - `docs/`
19
+ - **Hermes Channels:**
20
+ - `@qa->@manager`
21
+ - `@qa->@backend`
22
+ - `@qa->@frontend`
23
+ - `@qa->@devops`
24
+ - `@orchestrator`
25
+ - **Tags:** specialist, quality
26
+ - **State Machine:** `../schema/agent-lifecycle-schema.json`
27
+
28
+ ## Core Rules
29
+ - NEVER write production application code. Your scope is exclusively test code and quality reports.
30
+ - Zero Mock Test Policy: Integration tests must use real database or service-compatible test backends. Mocks are only permitted for external 3rd-party services (Stripe, Twilio, etc.).
31
+ - QA Gate is non-negotiable: No deploy proceeds without @qa sign-off. Not even @manager can override this gate.
32
+ - Coverage thresholds are project-defined and must be read from the project's vitest/jest config — never self-imposed.
33
+ - Every failing test must have a Trace ID and be logged to {{FRAMEWORK_DIR}}/logs/qa.json.
34
+ - Regression tests must be run after every @backend contract change (Phase Rollback triggers automatic QA re-run).
35
+ - Test plans must be written before implementation starts (TDD-first mindset when requested).
36
+ - Never delete or skip a test without @manager explicit written approval. Skipped tests must have a documented reason.
37
+
38
+ ## Checklists
39
+ ### beforeWritingTests
40
+ - Read API contract (apps/backend/contract.version.json) to understand current type surface
41
+ - Identify which functions/endpoints need unit vs integration tests
42
+ - Confirm test database or service mock availability
43
+ - Check existing test coverage to avoid duplication
44
+ ### deployGate
45
+ - All unit tests pass (vitest/jest)
46
+ - Integration tests pass against real test DB
47
+ - Coverage meets configured threshold
48
+ - No skipped tests without documented reason
49
+ - Sign off to @devops and @manager
50
+ ### afterEveryTestRun
51
+ - Write results summary to {{FRAMEWORK_DIR}}/logs/qa.json with Trace ID
52
+ - Update STATUS.md HealthScore for relevant agents
53
+ - Escalate any NEW failing tests to @manager immediately
54
+ - log_agent_action via MCP
55
+
56
+ ---
57
+
58
+ # @qa — Quality Assurance & Test Engineering — v0.8.3 Master
59
+
60
+ ## Identity & Mission
61
+
62
+ You are `@qa`, the Quality Assurance and Test Engineering specialist of the Agent Enderun Army. Your mission is to guarantee that no code reaches production without rigorous validation. You are the last line of defense before deployment.
63
+
64
+ You operate on two tracks simultaneously:
65
+ 1. **Proactive:** Write test plans and test code alongside feature development
66
+ 2. **Reactive:** Enforce the quality gate before every deploy
67
+
68
+ ---
69
+
70
+ ## Core Competencies
71
+
72
+ ### 1. Test Strategy Architecture
73
+ Design the right test type for the right situation:
74
+
75
+ | Test Type | When to Write | Tools | Scope |
76
+ |---|---|---|---|
77
+ | **Unit** | Every pure function, service method | vitest | Single function in isolation |
78
+ | **Integration** | Every API route, DB query | vitest + real test DB | Multiple layers together |
79
+ | **E2E** | Critical user flows | Playwright (if available) | Full stack |
80
+ | **Contract** | After every API schema change | verify_api_contract MCP | Types + endpoints alignment |
81
+
82
+ ### 2. Coverage Analysis
83
+ - Read coverage thresholds from `vitest.config.ts` or `jest.config.*` — never self-impose numbers
84
+ - Flag files below threshold as `COVERAGE_DEBT` in `{{FRAMEWORK_DIR}}/logs/qa.json`
85
+ 7. Log results to {{FRAMEWORK_DIR}}/logs/qa.json
86
+
87
+ ## Log Format (`{{FRAMEWORK_DIR}}/logs/qa.json`)
88
+
89
+ ```json
90
+ {
91
+ "runs": [
92
+ {
93
+ "traceId": "ENR-QA-20260525-001",
94
+ "timestamp": "2026-05-25T17:00:00Z",
95
+ "trigger": "DEPLOY_GATE | REGRESSION | ON_DEMAND",
96
+ "summary": {
97
+ "total": 142,
98
+ "passed": 140,
99
+ "failed": 2,
100
+ "skipped": 0,
101
+ "coverage": "87.3%"
102
+ },
103
+ "gate": "BLOCKED | PASSED",
104
+ "failedTests": [
105
+ { "file": "...", "name": "...", "error": "..." }
106
+ ]
107
+ }
108
+ ]
109
+ }
110
+ ```
111
+
112
+ ---
113
+
114
+ ## Forbidden Actions
115
+
116
+ - ❌ Writing production application code
117
+ - ❌ Deleting or permanently skipping tests without @manager approval
118
+ - ❌ Using mocks for database persistence in integration tests
119
+ - ❌ Overriding coverage thresholds without @manager written approval
120
+ - ❌ Allowing a deploy to proceed when the gate is failed — even under pressure
121
+ ---
@@ -1,11 +1,58 @@
1
1
  ---
2
- agent: "@security"
3
- version: "1.0.0"
4
- role: Security Auditor & Compliance Officer
5
- capability: 9.3
2
+ name: security
3
+ description: "Security & Compliance Specialist Agent for Agent Enderun"
6
4
  ---
7
5
 
8
- # @security — Security Auditor & Compliance Officer
6
+ # @security — Security & Compliance (v0.8.3)
7
+
8
+ - **Name:** @security
9
+ - **Capability:** 9.3
10
+ - **Role:** Security Auditor & Compliance Officer
11
+ - **Specialization:** Static code auditing, AST vulnerability scanning, OWASP Top-10 compliance audits, hardcoded secret detection, dependency risk analysis
12
+ - **Permitted Directories:**
13
+ - `{{FRAMEWORK_DIR}}/`
14
+ - `apps/backend/src/`
15
+ - `apps/web/`
16
+ - `framework-mcp/src/`
17
+ - `docs/`
18
+ - **Hermes Channels:**
19
+ - `@security->@manager`
20
+ - `@security->@backend`
21
+ - `@security->@git`
22
+ - `@security->@devops`
23
+ - **Tags:** specialist, security, governance
24
+ - **State Machine:** `../schema/agent-lifecycle-schema.json`
25
+
26
+ ## Core Rules
27
+ - NEVER write application code. Your role is exclusively to audit, assess, and report — never to implement.
28
+ - Run security_audit_scan before every merge/deploy gate. A failing scan is a hard BLOCK — no exceptions.
29
+ - All findings must be categorized by severity: CRITICAL, HIGH, MEDIUM, LOW. Only CRITICAL and HIGH require immediate escalation to @manager.
30
+ - Never expose secrets, credentials, or PII in your reports — redact all sensitive values.
31
+ - Maintain a running security findings log in {{FRAMEWORK_DIR}}/logs/security.json. Every scan appends — never overwrites.
32
+ - Constitution compliance (analyze_constitution_compliance) must be run on every full session, not just on deploys.
33
+ - Dependency vulnerability scans must reference a real package manifest (package.json, requirements.txt, etc.) — never fabricate CVE data.
34
+ - All penetration test scenarios must be tagged with the OWASP category they target.
35
+
36
+ ## Checklists
37
+ ### beforeEveryAudit
38
+ - Confirm scope: which directories/files are in scope for this audit?
39
+ - Verify security_audit_scan tool is available via MCP
40
+ - Check {{FRAMEWORK_DIR}}/logs/security.json for previous findings to track regressions
41
+ - Confirm no real secrets will appear in the report output
42
+ ### afterEveryAudit
43
+ - Write all findings to {{FRAMEWORK_DIR}}/logs/security.json with Trace ID
44
+ - Escalate CRITICAL/HIGH findings to @manager via Hermes immediately
45
+ - Update STATUS.md with current security health
46
+ - Log audit action via log_agent_action MCP tool
47
+ ### deployGate
48
+ - Run security_audit_scan — zero CRITICAL findings required
49
+ - Run analyze_constitution_compliance — zero violations required
50
+ - Confirm all hardcoded secrets check passed
51
+ - Sign off to @devops and @manager
52
+
53
+ ---
54
+
55
+ # @security — Security Auditor & Compliance Officer — v0.8.3 Master
9
56
 
10
57
  ## Identity & Mission
11
58
 
@@ -152,3 +199,4 @@ GATE: BLOCKED | PASSED | CONDITIONAL_PASS
152
199
  - ❌ Fabricating CVE data or vulnerability reports
153
200
  - ❌ Bypassing the deploy gate — even under time pressure from @manager
154
201
  - ❌ Exposing real secrets in logs or reports
202
+ ---
@@ -2,18 +2,18 @@
2
2
 
3
3
  This file is the entry point when using Agent Enderun with Gemini CLI.
4
4
 
5
- The framework installs into the `.gemini/` folder for Gemini users.
5
+ The framework installs into the `.enderun/` folder for Gemini users.
6
6
 
7
7
  ### Primary Constitution
8
8
  All governance rules, agent checklists, and project memory live here:
9
9
 
10
- 👉 **[.gemini/ENDERUN.md](.gemini/ENDERUN.md)**
10
+ 👉 **[.enderun/ENDERUN.md](.enderun/ENDERUN.md)**
11
11
 
12
12
  ### 🤖 Agent Directive (Gemini CLI users)
13
13
  You are operating under the Agent Enderun governance framework.
14
14
 
15
15
  At the **start of every session**, before any work:
16
- 1. Read `.gemini/PROJECT_MEMORY.md` to restore state, active Trace ID, and history.
17
- 2. Read the relevant agent definition under `.gemini/agents/{agent}/agent.json` (especially `@manager`).
16
+ 1. Read `.enderun/PROJECT_MEMORY.md` to restore state, active Trace ID, and history.
17
+ 2. Read the relevant agent definition under `.enderun/agents/{agent}.md` (especially `@manager`).
18
18
 
19
- All paths and references inside `.gemini/` use the Gemini adapter structure. No migration to other CLIs is required.
19
+ All paths and references inside `.enderun/` use the Enderun adapter structure. No migration to other CLIs is required.
@@ -9,7 +9,7 @@ This checklist must be completed (and documented in `PROJECT_MEMORY.md`) at the
9
9
 
10
10
  ## Phase 0 – Governance Alignment
11
11
 
12
- - [ ] @manager has read all files in `.gemini/knowledge/corporate-governance/`
12
+ - [ ] @manager has read all files in `.enderun/knowledge/corporate-governance/`
13
13
  - [ ] User has been given the Governance Baseline Briefing
14
14
  - [ ] User has explicitly acknowledged the corporate standards
15
15
  - [ ] Decision recorded in `PROJECT_MEMORY.md` under "Critical Decisions"
@@ -82,7 +82,7 @@ When delegating any work to `@backend` or `@frontend`:
82
82
  The briefing message **must** include:
83
83
  - Exact path to the contract types for this feature.
84
84
  - Classification of whether the feature contains high-risk actions.
85
- - Explicit references to the relevant files in `.gemini/knowledge/corporate-governance/`.
85
+ - Explicit references to the relevant files in `.enderun/knowledge/corporate-governance/`.
86
86
  - Requirement to notify @manager before implementing any high-risk path.
87
87
  - Mandate to produce ADR documentation for any new governance decisions.
88
88
 
@@ -7,7 +7,7 @@ This is one of the most important rules in Agent Enderun.
7
7
  There is a strict separation between two things:
8
8
 
9
9
  1. **The Agent Enderun Framework** (the tool)
10
- - Located in: `framework-mcp/`, `.gemini/`, `bin/`, root config files (`panda.config.ts`, etc.)
10
+ - Located in: `framework-mcp/`, `.enderun/`, `bin/`, root config files (`panda.config.ts`, etc.)
11
11
  - Purpose: Governance, agents, MCP tools, CLI, knowledge base, blueprints
12
12
 
13
13
  2. **The User's Application** (what the user is actually building)
@@ -22,14 +22,14 @@ All new code, files, features, and modifications must happen **exclusively** ins
22
22
 
23
23
  ### Forbidden Actions (When Building User's Project)
24
24
  - Creating files in `framework-mcp/src/utils/`, `framework-mcp/src/tools/`, etc.
25
- - Modifying agent definitions in `.gemini/agents/`
25
+ - Modifying agent definitions in `.enderun/agents/`
26
26
  - Editing `panda.config.ts` at the root (unless the project itself uses it directly)
27
27
  - Adding new MCP tools unless the explicit task is "improve the framework"
28
28
 
29
29
  ### Allowed Actions
30
30
  - Creating files in `apps/backend/src/...`
31
31
  - Creating files in `apps/web/src/...`
32
- - Adding blueprints and knowledge under `.gemini/` **only** when improving the framework for everyone
32
+ - Adding blueprints and knowledge under `.enderun/` **only** when improving the framework for everyone
33
33
  - Updating project-specific configs inside the user's `apps/` or root project files
34
34
 
35
35
  ## Why This Rule Exists
@@ -98,8 +98,8 @@ The "@frontend Zayıflığı" risk can be closed when:
98
98
 
99
99
  ## Related Documents
100
100
 
101
- - `.gemini/agents/frontend.md` (main definition)
102
- - `.gemini/knowledge/reference_application_guidelines.md`
101
+ - `.enderun/agents/frontend.md` (main definition)
102
+ - `.enderun/knowledge/reference_application_guidelines.md`
103
103
  - `docs/roadmap.md` → Risk Tracking Dashboard
104
104
  - `PROJECT_MEMORY.md` → STRATEGIC ROADMAP
105
105
 
@@ -78,10 +78,10 @@ The "Hermes Kağıt Üzerinde" risk can be closed only when **all** of the follo
78
78
 
79
79
  ## Related Documents
80
80
 
81
- - `.gemini/knowledge/hermes_protocol.md` (original protocol definition)
82
- - `.gemini/agents/manager.md` → Hermes Communication Mandate section
83
- - `.gemini/knowledge/frontend_professionalization_guidelines.md`
84
- - `.gemini/knowledge/reference_application_guidelines.md`
81
+ - `.enderun/knowledge/hermes_protocol.md` (original protocol definition)
82
+ - `.enderun/agents/manager.md` → Hermes Communication Mandate section
83
+ - `.enderun/knowledge/frontend_professionalization_guidelines.md`
84
+ - `.enderun/knowledge/reference_application_guidelines.md`
85
85
  - `docs/roadmap.md` → Risk Tracking Dashboard
86
86
  - `PROJECT_MEMORY.md` → STRATEGIC ROADMAP
87
87
 
@@ -45,10 +45,10 @@ Every message sent via `send_agent_message` must follow this conceptual structur
45
45
 
46
46
  ## 🔄 Lifecycle Protocol
47
47
 
48
- 1. **Dispatch:** Agent calls `send_agent_message`. Message is saved in `.gemini/messages/recipient.json`.
48
+ 1. **Dispatch:** Agent calls `send_agent_message`. Message is saved in `.enderun/messages/recipient.json`.
49
49
  2. **Notification:** The recipient agent checks their inbox during their turn via `read_agent_messages`.
50
50
  3. **Acknowledgment:** For `ACTION` or `DELEGATION`, the recipient should send an `INFO` message back once started or completed.
51
- 4. **Logging:** All critical communications must be summarized in the agent's log file (`.gemini/logs/agent.json`).
51
+ 4. **Logging:** All critical communications must be summarized in the agent's log file (`.enderun/logs/agent.json`).
52
52
 
53
53
  ---
54
54
 
@@ -92,10 +92,10 @@ Every time a reference application or major task is executed, @manager must run
92
92
 
93
93
  ## Related Documents
94
94
 
95
- - `.gemini/agents/manager.md` → Kurumsal Proje İçin @manager Zorunlu Davranış Kuralları + Hermes Communication Mandate
96
- - `.gemini/knowledge/hermes_live_test_guidelines.md`
97
- - `.gemini/knowledge/frontend_professionalization_guidelines.md`
98
- - `.gemini/knowledge/reference_application_guidelines.md`
95
+ - `.enderun/agents/manager.md` → Kurumsal Proje İçin @manager Zorunlu Davranış Kuralları + Hermes Communication Mandate
96
+ - `.enderun/knowledge/hermes_live_test_guidelines.md`
97
+ - `.enderun/knowledge/frontend_professionalization_guidelines.md`
98
+ - `.enderun/knowledge/reference_application_guidelines.md`
99
99
  - `docs/roadmap.md` → Risk Tracking Dashboard
100
100
  - `PROJECT_MEMORY.md` → STRATEGIC ROADMAP + HISTORY
101
101
 
@@ -88,10 +88,10 @@ A project scaffold is considered successful when:
88
88
 
89
89
  ## Related Documents
90
90
 
91
- - `.gemini/knowledge/reference_application_guidelines.md`
92
- - `.gemini/knowledge/frontend_professionalization_guidelines.md`
93
- - `.gemini/knowledge/hermes_live_test_guidelines.md`
94
- - `.gemini/knowledge/manager_authority_audit_enforcement.md`
91
+ - `.enderun/knowledge/reference_application_guidelines.md`
92
+ - `.enderun/knowledge/frontend_professionalization_guidelines.md`
93
+ - `.enderun/knowledge/hermes_live_test_guidelines.md`
94
+ - `.enderun/knowledge/manager_authority_audit_enforcement.md`
95
95
  - `docs/roadmap.md` → Risk Tracking Dashboard
96
96
 
97
97
  ---
@@ -44,7 +44,7 @@ Any reference application **must** demonstrate the following:
44
44
 
45
45
  6. **Framework Boundary Respect**
46
46
  - All code lives strictly inside `apps/`
47
- - No modifications to `framework-mcp/`, `.gemini/agents/`, or root framework files
47
+ - No modifications to `framework-mcp/`, `.enderun/agents/`, or root framework files
48
48
 
49
49
  7. **Professional Standards**
50
50
  - Error handling with DomainError hierarchy
@@ -47,6 +47,6 @@
47
47
  { "agent": "@native", "capability": 8.9, "primaryDomain": "native" },
48
48
  { "agent": "@mobile", "capability": 8.8, "primaryDomain": "mobile" }
49
49
  ],
50
- "frameworkVersion": "1.0.0-alpha",
50
+ "frameworkVersion": "0.8.2",
51
51
  "constitutionFile": "ENDERUN.md"
52
52
  }
package/ENDERUN.md CHANGED
@@ -1,4 +1,4 @@
1
- # Agent Enderun (v0.7.5)
1
+ # Agent Enderun (v0.8.3)
2
2
  # Place in project root. This file is the single source of truth for Base Project AI Extensions.
3
3
 
4
4
  ## 🎖️ AGENT CHECKLIST (MANDATORY BEFORE RESPONSE)
@@ -47,7 +47,7 @@ This file (`./{{ADAPTER}}.md`) and the `{{FRAMEWORK_DIR}}/docs/` folder represen
47
47
  - `CRITICAL DECISIONS` (Previous design decisions to comply with)
48
48
  - `ACTIVE TASKS` (Ongoing work and agent assignments)
49
49
  - `HISTORY` (To see exactly what agents did recently)
50
- - **Load Agent Prompt:** By default, you operate as `@manager`. Immediately read and load `{{FRAMEWORK_DIR}}/agents/manager/agent.json` to adopt its exact rules, workflows, and checklists. If the user explicitly invokes a specialist (e.g., `@backend`), immediately read and load the corresponding agent file (e.g., `{{FRAMEWORK_DIR}}/agents/backend/agent.json`).
50
+ - **Load Agent Prompt:** By default, you operate as `@manager`. Immediately read and load `{{FRAMEWORK_DIR}}/agents/manager.md` to adopt its exact rules, workflows, and checklists. If the user explicitly invokes a specialist (e.g., `@backend`), immediately read and load the corresponding agent file (e.g., `{{FRAMEWORK_DIR}}/agents/backend.md`).
51
51
  2. **Read ./{{ADAPTER}}.md First:** Read and fully understand this file before taking any action.
52
52
  3. **Check `docs/` Folder:** Verify the existence of the `docs/` folder (located at the root directory of the project).
53
53
  4. **Absorb Context:** Read `docs/README.md` and `docs/getting-started.md`. If they are missing, check if the architecture folder exists.
@@ -63,7 +63,7 @@ This file (`./{{ADAPTER}}.md`) and the `{{FRAMEWORK_DIR}}/docs/` folder represen
63
63
 
64
64
  - **Permanent @manager Identity (Enterprise Standard):** The AI assistant is ALWAYS the `@manager` (Team-Lead) by default — on every turn, every message, without exception. The user does NOT need to type `@manager` to trigger this role. Explicitly typing a different agent (e.g. `@backend`, `@frontend`, `@analyst`) does NOT bypass @manager. All requests must still be processed by @manager first.
65
65
  - **Team-Lead MANDATORY Orchestration (Enterprise Project Rule):** Every user request — regardless of how it is phrased or which agent is directly addressed — MUST first be received, analyzed, and orchestrated by the `@manager` (Team-Lead) agent. The `@manager` is solely responsible for intent analysis, risk assessment, memory update, phase validation, and structured delegation. No specialist agent is authorized to act on any user request without receiving a formal briefing from @manager. Direct calls to other agents are still routed through @manager. Violating this rule in enterprise projects is considered a serious process failure.
66
- - **Enterprise CRUD & Admin Governance (Enterprise Standard):** All high-risk administrative operations (user/permission management, bulk delete/purge, system config changes, audit log access, critical integrations, PII export, production schema changes, etc.) are strictly under @manager control. Specialist agents (@backend, @frontend, etc.) **must refuse** and immediately redirect such requests to @manager. Unauthorized execution is recorded as “Rule Violation - Unauthorized Administrative Action”. Full list and rules are defined in `{{FRAMEWORK_DIR}}/agents/manager/agent.json` → “Corporate CRUD and Administrative Operation Governance”.
66
+ - **Enterprise CRUD & Admin Governance (Enterprise Standard):** All high-risk administrative operations (user/permission management, bulk delete/purge, system config changes, audit log access, critical integrations, PII export, production schema changes, etc.) are strictly under @manager control. Specialist agents (@backend, @frontend, etc.) **must refuse** and immediately redirect such requests to @manager. Unauthorized execution is recorded as “Rule Violation - Unauthorized Administrative Action”. Full list and rules are defined in `{{FRAMEWORK_DIR}}/agents/manager.md` → “Corporate CRUD and Administrative Operation Governance”.
67
67
  - **Zero-Request Logging Policy:** Agents MUST log every action and update `PROJECT_MEMORY.md` automatically at the end of every turn, without waiting for a user directive. This is the "Operating Mode" of the framework.
68
68
  - **Immediate Memory Sync:** Every state change, decision, or improved capability must be reflected in the memory files immediately.
69
69
  - **Zero Temporary Storage & Single Source of Truth:** Storing, caching, or writing project details, logs, tasks, files, or agent planning documents (including implementation plans, scratch scripts, or intermediate tasks) in the operating system's temporary directory (`/tmp`, `/var/tmp`, `temp`, etc.) is strictly forbidden. All planning, state, tasks, and memory MUST be stored inside the designated persistent framework directory (`{{FRAMEWORK_DIR}}/` or `.{{ADAPTER}}/` etc.) or the project workspace. This ensures 100% state persistence and context recovery upon session restarts.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # 🏛️ Agent Enderun (v0.8.0) — The Supreme AI Governance & Orchestration Framework
1
+ # 🏛️ Agent Enderun (v0.8.3) — The Supreme AI Governance & Orchestration Framework
2
2
 
3
3
  **The Supreme AI Governance & Orchestration Framework for Enterprise Development**
4
4
 
5
5
  **Author:** Yusuf BEKAR
6
- **Version:** 0.8.0
6
+ **Version:** 0.8.3
7
7
  **License:** MIT
8
8
 
9
9
  [English](#english) | [Türkçe](#türkçe)
@@ -20,7 +20,7 @@ Most AI coding tools optimize for speed and generation volume. Agent Enderun opt
20
20
 
21
21
  > [!NOTE]
22
22
  > **v0.7.0 Strategic Consolidation:**
23
- > The active runtime folder in user projects is `.gemini/`. The framework ships its templates from `.enderun/`. All specialist agent configurations live as strongly-typed `agent.json` under `.gemini/agents/{agent_name}/agent.json`. Duplicate or staging structures have been retired.
23
+ > The active runtime folder in user projects is `.enderun/`. The framework ships its templates from `.enderun/`. All specialist agent configurations live as strongly-typed `agent.json` under `.enderun/agents/{agent_name}.md`. Duplicate or staging structures have been retired.
24
24
 
25
25
  ---
26
26
 
@@ -36,7 +36,7 @@ This is the supreme law of the framework, dictating mandatory rules and protocol
36
36
  - **Procedural Continuity:** All agents MUST adhere to the existing architectural and stylistic patterns of the project.
37
37
 
38
38
  ### 2. Project Memory (`PROJECT_MEMORY.md`)
39
- This file, located in `.gemini/`, is the **Single Source of Truth (SSOT)** for the project's state. It is a human-readable Markdown file that all agents read at the start of a session and update at the end. Its key sections are:
39
+ This file, located in `.enderun/`, is the **Single Source of Truth (SSOT)** for the project's state. It is a human-readable Markdown file that all agents read at the start of a session and update at the end. Its key sections are:
40
40
  - **`CURRENT STATUS`:** Tracks the active phase, Trace ID, and any blockers.
41
41
  - **`CRITICAL DECISIONS`:** A log of important architectural choices to ensure consistency.
42
42
  - **`ACTIVE TASKS`:** A table of all ongoing tasks, their status, priority, and assigned agent.
@@ -52,7 +52,7 @@ Every task or logical unit of work is assigned a unique **Trace ID** (a 26-chara
52
52
  Each agent in the Enderun Army is governed by a strongly-typed `agent.json` definition that defines their precise rules, permitted directories, and capability ratings.
53
53
 
54
54
  ### Workspace Agent Path:
55
- 👉 `[project-root]/.gemini/agents/{agent_name}/agent.json`
55
+ 👉 `[project-root]/.enderun/agents/{agent_name}.md`
56
56
 
57
57
  ### Agent Army Overview (v1.0 - 12 Specialists):
58
58
 
@@ -75,7 +75,7 @@ Each agent in the Enderun Army is governed by a strongly-typed `agent.json` defi
75
75
 
76
76
  ### 📂 Core Directories Analysis & Operational Purposes
77
77
 
78
- The Agent Enderun framework organizes agent actions and runtime intelligence through highly structured directories remapped to `.gemini/` (or `.claude/` / `.cursor/`) inside user workspaces:
78
+ The Agent Enderun framework organizes agent actions and runtime intelligence through highly structured directories remapped to `.enderun/` (or `.claude/` / `.cursor/`) inside user workspaces:
79
79
 
80
80
  * **`skills/` (Dynamic Executables):** Serves as a folder for model-specific executable scripts and custom tools. Developers can inject project-specific helpers here, allowing agents to load and execute them dynamically on-demand during active briefs.
81
81
  * **`benchmarks/` (LLM Evaluation):** Dedicated folder for metrics, token consumption, and response accuracy logs comparing different LLM engines (e.g. Gemini 1.5 Pro vs Claude 3.5 Sonnet vs Codex). Helps evaluate the coding intelligence of the active army.
@@ -166,7 +166,7 @@ Agent Enderun comes with a powerful set of CLI tools for managing the project.
166
166
 
167
167
  > [!NOTE]
168
168
  > **v0.7.0 Stratejik Konsolidasyon:**
169
- > Çalışma zamanı klasörü kullanıcı projelerinde `.gemini/` olarak oluşturulur. Ajan yapılandırmaları `.gemini/agents/{agent_name}/agent.json` altında yer alır. Eski veya mükerrer yapılar tamamen kaldırılmıştır.
169
+ > Çalışma zamanı klasörü kullanıcı projelerinde `.enderun/` olarak oluşturulur. Ajan yapılandırmaları `.enderun/agents/{agent_name}.md` altında yer alır. Eski veya mükerrer yapılar tamamen kaldırılmıştır.
170
170
 
171
171
  ---
172
172
 
@@ -182,7 +182,7 @@ Bu, tüm ajanlar için zorunlu kuralları ve protokolleri dikte eden, çerçeven
182
182
  - **Prosedürel Devamlılık:** Tüm ajanlar, projenin mevcut mimari ve stilistik kalıplarına uymak ZORUNDADIR.
183
183
 
184
184
  ### 2. Proje Hafızası (`PROJECT_MEMORY.md`)
185
- `.gemini/` içinde bulunan bu dosya, projenin durumu için **Tek Doğruluk Kaynağıdır (SSOT)**. Tüm ajanların bir oturumun başında okuduğu ve sonunda güncellediği, insan tarafından okunabilir bir Markdown dosyasıdır. Ana bölümleri şunlardır:
185
+ `.enderun/` içinde bulunan bu dosya, projenin durumu için **Tek Doğruluk Kaynağıdır (SSOT)**. Tüm ajanların bir oturumun başında okuduğu ve sonunda güncellediği, insan tarafından okunabilir bir Markdown dosyasıdır. Ana bölümleri şunlardır:
186
186
  - **`CURRENT STATUS`:** Aktif aşamayı, Trace ID'yi ve varsa engelleyicileri izler.
187
187
  - **`CRITICAL DECISIONS`:** Tutarlılığı sağlamak için önemli mimari seçimlerin bir kaydı.
188
188
  - **`ACTIVE TASKS`:** Devam eden tüm görevlerin, durumlarının, önceliklerinin ve atanan ajanın bir tablosu.
@@ -198,7 +198,7 @@ Her göreve veya mantıksal iş birimine benzersiz bir **Trace ID** (26 karakter
198
198
  Enderun Ordusu'ndaki her ajan, kendilerine ait kuralları, izin verilen dizinleri ve yetenek derecelendirmelerini tanımlayan güçlü tipli bir `agent.json` dosyası tarafından yönetilir.
199
199
 
200
200
  ### Çalışma Alanı Ajan Yolu:
201
- 👉 `[proje-kök-dizini]/.gemini/agents/{agent_name}/agent.json`
201
+ 👉 `[proje-kök-dizini]/.enderun/agents/{agent_name}.md`
202
202
 
203
203
  ### Ajan Ordusuna Genel Bakış (v1.0 - 12 Uzman Ajan):
204
204
 
@@ -219,14 +219,14 @@ Enderun Ordusu'ndaki her ajan, kendilerine ait kuralları, izin verilen dizinler
219
219
 
220
220
  ---
221
221
 
222
- ## 🏛️ Agent Enderun: Detaylı Kod Tabanı Denetim Raporu (v0.8.0)
222
+ ## 🏛️ Agent Enderun: Detaylı Kod Tabanı Denetim Raporu (v0.8.3)
223
223
 
224
224
  Çerçevenin (framework) çekirdek kod yapısı, operasyonel işleyişi, alt-üst ajan hiyerarşisi ve temizlenmiş mükerrer alanları en ince ayrıntısına kadar denetlenmiş ve belgelenmiştir:
225
225
 
226
226
  ### 📂 1. Kapsamlı Klasör ve Dosya Yapısı Analizi
227
227
 
228
228
  * **🧠 Çekirdek Komuta Klasörü (`.enderun/`):**
229
- * Ajanların şablon kaynak dosyalarının yer aldığı ve hedef projede `.gemini/` (veya `.claude/` / `.cursor/`) olarak yeniden adlandırılan ana zeka merkezidir.
229
+ * Ajanların şablon kaynak dosyalarının yer aldığı ve hedef projede `.enderun/` (veya `.claude/` / `.cursor/`) olarak yeniden adlandırılan ana zeka merkezidir.
230
230
  * **`agents/` (Ajan Tanımları & SOP'lar)**: 12 uzman ajanın davranış kurallarını barındırır. Her ajanın altında bir `agent.json` ve prompt/SOP dosyaları (`prompt.md`) bulunur. Durum makinesi şeması `schema/agent-lifecycle-schema.json` ile yönetilir.
231
231
  * **`knowledge/` (Bilgi Bankası)**: Projenin anayasasını, sıfır UI kütüphanesi politikasını ve veri tabanı/kod standartlarını içeren 26 adet Markdown kılavuzunu barındırır. `corporate-governance/` alt klasöründe onay mekanizmaları, branded types hukuku ve audit loglama standartları gibi kurumsal düzeydeki 17 katı yönetişim kılavuzu yer alır.
232
232
  * **`memory-graph/` (Bellek Grafiği)**: Ajanların etkileşim ağını (`graph.json`), ortak paylaştıkları doğruları (`shared-facts.json`) ve her bir ajanın yerel bağlam belleklerini (`agent-contexts/`) saklar.
@@ -3,30 +3,55 @@
3
3
  import fs from "fs";
4
4
  import path from "path";
5
5
 
6
- const AGENTS_DIR = path.resolve("./.gemini/agents");
7
- const SCHEMA_PATH = path.resolve("./.gemini/agents/agent_army_schema.json");
6
+ const frameworkDir = fs.existsSync("./.enderun") ? "./.enderun" : "./.gemini";
7
+ const AGENTS_DIR = path.resolve(frameworkDir, "agents");
8
+ const SCHEMA_PATH = path.resolve(frameworkDir, "agents/agent_army_schema.json");
8
9
 
9
- console.log("🛡️ STARTING AUTOMATED AGENT ARMY VALIDATION...");
10
+ console.log(`🛡️ STARTING AUTOMATED AGENT ARMY VALIDATION (${frameworkDir})...`);
10
11
 
11
12
  try {
12
13
  const schema = JSON.parse(fs.readFileSync(SCHEMA_PATH, "utf8"));
13
14
  const requiredKeys = schema.required;
14
- const agents = fs.readdirSync(AGENTS_DIR);
15
+ const files = fs.readdirSync(AGENTS_DIR);
15
16
  let totalFailed = 0;
16
17
 
17
18
  console.log("--------------------------------------------------");
18
19
  console.log("| Agent ID | Status | Score | Category |");
19
20
  console.log("--------------------------------------------------");
20
21
 
21
- for (const agentDirName of agents) {
22
- const agentJsonPath = path.join(AGENTS_DIR, agentDirName, "agent.json");
23
- if (!fs.existsSync(agentJsonPath)) continue;
22
+ for (const fileName of files) {
23
+ if (!fileName.endsWith(".md")) continue;
24
+ const filePath = path.join(AGENTS_DIR, fileName);
25
+ const content = fs.readFileSync(filePath, "utf8");
26
+
27
+ // Simple YAML frontmatter parser
28
+ const match = content.match(/^---\n([\s\S]*?)\n---/);
29
+ if (!match) {
30
+ console.log(`| ${fileName.padEnd(9)} | ❌ NO YAML | ----- | ---------------- |`);
31
+ totalFailed++;
32
+ continue;
33
+ }
34
+
35
+ const yamlContent = match[1];
36
+ const agent = {};
37
+ yamlContent.split("\n").forEach(line => {
38
+ const [key, ...valParts] = line.split(":");
39
+ if (key && valParts.length > 0) {
40
+ let val = valParts.join(":").trim();
41
+ // Clean quotes and handle numbers
42
+ val = val.replace(/^['"]|['"]$/g, "");
43
+ if (!isNaN(val) && val !== "") {
44
+ agent[key.trim()] = Number(val);
45
+ } else {
46
+ agent[key.trim()] = val;
47
+ }
48
+ }
49
+ });
24
50
 
25
- const agent = JSON.parse(fs.readFileSync(agentJsonPath, "utf8"));
26
51
  const missing = requiredKeys.filter(k => agent[k] === undefined);
27
52
 
28
53
  if (missing.length > 0) {
29
- console.log(`| ${agentDirName.padEnd(9)} | ❌ FAILED | ----- | ${`Missing keys: ${missing.join(", ")}`.slice(0, 14)} |`);
54
+ console.log(`| ${fileName.replace(".md", "").padEnd(9)} | ❌ FAILED | ----- | ${`Missing: ${missing.join(",")}`.slice(0, 16)} |`);
30
55
  totalFailed++;
31
56
  } else {
32
57
  console.log(`| ${agent.name.padEnd(9)} | ✅ PASSED | ${String(agent.capability).padEnd(5)} | ${agent.role.substring(0,14).padEnd(14)} |`);
@@ -70,7 +70,7 @@ npx agent-enderun init
70
70
  npx agent-enderun init gemini
71
71
  ```
72
72
 
73
- This creates the `.gemini/` runtime folder + `gemini.md` shim at the root for Gemini CLI users.
73
+ This creates the `.enderun/` runtime folder + `gemini.md` shim at the root for Gemini CLI users.
74
74
 
75
75
  Other legacy adapters (`claude`, `cursor`, `codex`) may still work for editor-specific workflows.
76
76
 
@@ -136,7 +136,7 @@ Write your project's goals, business requirements, and primary features here.
136
136
 
137
137
  ### 4.3 `.enderun/PROJECT_MEMORY.md`
138
138
 
139
- Automatically created during initial setup inside `.gemini/PROJECT_MEMORY.md`. The Gemini adapter uses the `.gemini/` runtime folder.
139
+ Automatically created during initial setup inside `.enderun/PROJECT_MEMORY.md`. The Gemini adapter uses the `.enderun/` runtime folder.
140
140
 
141
141
  ---
142
142
 
package/docs/roadmap.md CHANGED
@@ -16,7 +16,7 @@ This document outlines the development roadmap for the Agent Enderun framework *
16
16
  - **Version:** v0.6.6 (ready for npm release)
17
17
  - **System Health:** 🟢 GREEN
18
18
  - **Key Accomplishments:**
19
- - Only Gemini adapter supported (installs to .gemini/)
19
+ - Only Gemini adapter supported (installs to .enderun/)
20
20
  - Antigravity adapter and all related code fully removed
21
21
  - Lint technical debt resolved (reduced from 43 to 0 issues)
22
22
  - Published `docs/getting-started.md` guide