agent-enderun 0.6.5 → 0.6.7
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 +12 -12
- package/.enderun/PROJECT_MEMORY.md +15 -123
- package/.enderun/STATUS.md +13 -13
- package/.enderun/agents/README.md +40 -0
- package/.enderun/agents/analyst.md +178 -58
- package/.enderun/agents/backend.md +224 -58
- package/.enderun/agents/explorer.md +123 -50
- package/.enderun/agents/frontend.md +216 -26
- package/.enderun/agents/git.md +146 -72
- package/.enderun/agents/manager.md +23 -3
- package/.enderun/agents/mobile.md +136 -66
- package/.enderun/agents/native.md +176 -63
- package/.enderun/blueprints/README.md +82 -0
- package/.enderun/docs/README.md +50 -0
- package/.enderun/docs/phase1-reference-app-execution-plan.md +177 -0
- package/.enderun/docs/structure-audit-2026-05-24.md +72 -0
- package/.enderun/knowledge/README.md +22 -0
- package/.enderun/knowledge/database_governance_guidelines.md +118 -0
- package/.enderun/knowledge/deployment_checklist.md +132 -6
- package/.enderun/knowledge/documentation_ownership.md +122 -0
- package/.enderun/knowledge/documentation_ownership_status.md +122 -0
- package/.enderun/knowledge/enterprise_capabilities_reference.md +149 -0
- package/.enderun/knowledge/enterprise_frontend_adaptation.md +232 -0
- package/.enderun/knowledge/enterprise_project_adaptation.md +168 -0
- package/.enderun/knowledge/frontend_professionalization_guidelines.md +20 -17
- package/.enderun/knowledge/frontend_real_battle_test_protocol.md +162 -0
- package/.enderun/knowledge/hermes_live_test_guidelines.md +5 -5
- package/.enderun/knowledge/manager_authority_audit_enforcement.md +8 -8
- package/.enderun/knowledge/project_scaffold_guidelines.md +4 -4
- package/.enderun/knowledge/reference_application_guidelines.md +6 -6
- package/.enderun/logs/manager.json +23 -0
- package/ENDERUN.md +13 -6
- package/README.md +98 -183
- package/bin/hermes-sandbox.js +136 -0
- package/docs/action-plan-2026.md +119 -0
- package/docs/getting-started.md +12 -238
- package/docs/roadmap.md +15 -73
- package/framework-mcp/README.md +1 -1
- package/framework-mcp/dist/schemas.js +6 -0
- package/framework-mcp/dist/tools/database.js +7 -2
- package/framework-mcp/dist/tools/framework.js +4 -4
- package/framework-mcp/dist/tools/knowledge.js +1 -1
- package/framework-mcp/dist/tools/memory.js +2 -2
- package/framework-mcp/dist/tools/messages.js +71 -11
- package/framework-mcp/dist/utils.js +1 -1
- package/framework-mcp/package.json +1 -1
- package/framework-mcp/src/tools/database.ts +7 -2
- package/framework-mcp/src/tools/framework.ts +4 -4
- package/framework-mcp/src/tools/index.ts +1 -1
- package/framework-mcp/src/tools/knowledge.ts +1 -1
- package/framework-mcp/src/tools/memory.ts +2 -2
- package/framework-mcp/src/tools/messages.ts +4 -4
- package/framework-mcp/src/utils.ts +18 -1
- package/framework-mcp/tsconfig.json +1 -1
- package/package.json +3 -3
- package/.enderun/messages/2026-05-23-backend-to-manager-auth-errors-reply.json +0 -23
- package/.enderun/messages/2026-05-23-manager-to-backend-auth-errors.json +0 -26
- /package/.enderun/blueprints/backend/errors/{blueprint.json → config/meta.json} +0 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# Enterprise Project Adaptation Framework
|
|
2
|
+
|
|
3
|
+
**Version:** 1.0
|
|
4
|
+
**Owner:** @manager
|
|
5
|
+
**Created:** 23 May 2026
|
|
6
|
+
**Purpose:** Teach all agents how to intelligently enter, analyze, and operate inside **any** large, complex, real-world corporate project — without assuming a specific folder structure, tech stack, or architecture.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Core Philosophy (Non-Negotiable)
|
|
11
|
+
|
|
12
|
+
In enterprise environments, the user's project is **sacred**.
|
|
13
|
+
|
|
14
|
+
We never impose a reference structure (monorepo, specific framework, specific folder layout).
|
|
15
|
+
|
|
16
|
+
Instead, every agent must:
|
|
17
|
+
|
|
18
|
+
1. **Discover first** — deeply understand the existing system before suggesting or creating anything.
|
|
19
|
+
2. **Adapt second** — shape all decisions, file placement, patterns, and governance according to what already exists.
|
|
20
|
+
3. **Improve third** — only after proving deep respect for the current reality, propose targeted, low-risk improvements.
|
|
21
|
+
|
|
22
|
+
"Shape yourself according to the user's project" is the supreme rule.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 1. Enterprise Project Discovery Protocol (EPDP)
|
|
27
|
+
|
|
28
|
+
When entering a new or unknown large corporate project, **@manager must run the full EPDP** before any delegation. This extends the existing Architecture Discovery Protocol (ADP).
|
|
29
|
+
|
|
30
|
+
### Phase 1 — Entry & Boundary Detection
|
|
31
|
+
- Identify the true project root(s) (there may be multiple services, multiple repos, or a massive monorepo).
|
|
32
|
+
- Detect monorepo vs polyrepo vs multi-app structure.
|
|
33
|
+
- Locate the "System of Record" for types/contracts (sometimes in a separate `packages/types`, `shared/contracts`, or even a different repo).
|
|
34
|
+
- Map the actual tech stack by evidence, not assumption:
|
|
35
|
+
- Backend: Look for `package.json`, `go.mod`, `Cargo.toml`, `pom.xml`, Fastify/Express/Nest, Spring, .NET, etc.
|
|
36
|
+
- Frontend: React/Vue/Angular/Svelte + build tool + styling solution (Panda, Tailwind, SCSS, etc.).
|
|
37
|
+
- Mobile: React Native, Flutter, native iOS/Android.
|
|
38
|
+
- Find the dominant patterns already in use (Repository, Service, CQRS, Clean Architecture, Feature-Sliced, etc.).
|
|
39
|
+
|
|
40
|
+
### Phase 2 — Domain & Team Mapping
|
|
41
|
+
- Identify major business domains (User, Billing, Inventory, HR, etc.).
|
|
42
|
+
- Map which teams/agents own which domains (critical for large organizations).
|
|
43
|
+
- Locate existing governance mechanisms (if any): approval processes, code review rules, architecture decision records (ADRs), RFC process.
|
|
44
|
+
|
|
45
|
+
### Phase 3 — Risk & Constraint Inventory
|
|
46
|
+
- Compliance requirements (KVKK/GDPR, PCI, SOC2, ISO, sector-specific).
|
|
47
|
+
- Performance & scale characteristics (expected RPS, data volume, real-time needs).
|
|
48
|
+
- Legacy debt hotspots (old services, big-ball-of-mud modules, deprecated tech).
|
|
49
|
+
- Security boundary (what is public, internal, highly sensitive).
|
|
50
|
+
- Data residency and PII handling rules.
|
|
51
|
+
|
|
52
|
+
### Phase 4 — Contract & Type Reality
|
|
53
|
+
- Find where the "source of truth" for API contracts and domain types actually lives.
|
|
54
|
+
- Determine if the project is already contract-first, or if types are duplicated and drifting.
|
|
55
|
+
- Identify the real versioning strategy (or lack thereof).
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 2. Dynamic Code Placement Decision Framework
|
|
60
|
+
|
|
61
|
+
This is the most critical capability for large projects.
|
|
62
|
+
|
|
63
|
+
**Rule:** Never decide file placement based on "what we like" or "what the reference app does".
|
|
64
|
+
|
|
65
|
+
Always answer these questions in order:
|
|
66
|
+
|
|
67
|
+
1. **Where does similar code already live?**
|
|
68
|
+
- Search for existing controllers/services/repositories in the same domain.
|
|
69
|
+
- Follow the existing pattern 100% unless there is a documented reason to change.
|
|
70
|
+
|
|
71
|
+
2. **What is the project's established "feature vs technical" split?**
|
|
72
|
+
- Some projects organize by feature (`/users`, `/orders`).
|
|
73
|
+
- Some organize by technical layer (`/controllers`, `/services`, `/repositories`).
|
|
74
|
+
- Some use domain-driven packages.
|
|
75
|
+
- The agent **must** detect the dominant style and match it.
|
|
76
|
+
|
|
77
|
+
3. **Where do cross-cutting concerns live?**
|
|
78
|
+
- Logging, error handling, validation, auth middleware, audit logging.
|
|
79
|
+
- Respect the existing location and extension points.
|
|
80
|
+
|
|
81
|
+
4. **Where should new high-risk administrative logic live?**
|
|
82
|
+
- In large organizations this is often a dedicated "admin" or "governance" module with extra review gates.
|
|
83
|
+
- Never mix it with normal business CRUD.
|
|
84
|
+
|
|
85
|
+
5. **When is it acceptable to introduce a new pattern or directory?**
|
|
86
|
+
- Only when the existing structure cannot reasonably accommodate the requirement.
|
|
87
|
+
- Must be approved by @manager + documented as an Architecture Decision.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## 3. Adaptation Rules for Different Project Maturities
|
|
92
|
+
|
|
93
|
+
| Project Type | Agent Behavior | Risk Level |
|
|
94
|
+
|-------------------------------|----------------------------------------------------------------------------------|------------|
|
|
95
|
+
| Green-field / small team | Can propose modern clean patterns more aggressively | Low |
|
|
96
|
+
| Large legacy monolith | Extremely conservative. Improve only in small, isolated, well-tested slices. | Very High |
|
|
97
|
+
| Multi-team microservices | Must respect service ownership boundaries. Never touch another team's service without explicit cross-team approval. | Critical |
|
|
98
|
+
| Regulated enterprise (finance, health, gov) | Every change must consider compliance audit trail from day one. | Critical |
|
|
99
|
+
| Long-lived brown-field | First 3-5 sessions should be **only discovery and documentation**. No code. | High |
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## 4. Long-Term Knowledge Building per Project
|
|
104
|
+
|
|
105
|
+
For any serious corporate engagement, agents must maintain project-specific knowledge that survives sessions:
|
|
106
|
+
|
|
107
|
+
- `project-specific/` folder inside the framework directory (or user's `.enderun-local/` if they want it in their repo).
|
|
108
|
+
- Record:
|
|
109
|
+
- Actual architecture decisions made
|
|
110
|
+
- Team ownership map
|
|
111
|
+
- Hotspots and anti-patterns discovered
|
|
112
|
+
- Compliance constraints
|
|
113
|
+
- "How we do X in this project" conventions
|
|
114
|
+
|
|
115
|
+
This knowledge becomes more valuable than the general framework knowledge over time.
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## 5. Manager's Special Responsibility in Large Enterprises
|
|
120
|
+
|
|
121
|
+
@manager must treat every new large corporate project as a **governance engagement**, not a coding task.
|
|
122
|
+
|
|
123
|
+
Before writing any code:
|
|
124
|
+
|
|
125
|
+
- Produce an "Enterprise Context Report" (using the EPDP above).
|
|
126
|
+
- Define the "Minimum Viable Governance Surface" for this engagement.
|
|
127
|
+
- Decide which agents are allowed to touch which domains.
|
|
128
|
+
- Establish the Hermes communication rules between agents for this specific project.
|
|
129
|
+
- Document the "Single Source of Truth" for types and decisions.
|
|
130
|
+
|
|
131
|
+
Only after this report is accepted (by user or by @manager's own authority audit) may specialist agents be briefed.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 6. Anti-Patterns to Avoid in Enterprise Projects
|
|
136
|
+
|
|
137
|
+
- Assuming the project is (or should be) a clean monorepo with `apps/backend` + `apps/web`.
|
|
138
|
+
- Creating new top-level directories (`packages/`, `libs/`, `shared/`) without deep analysis.
|
|
139
|
+
- Applying "our reference" patterns (branded types in a specific way, specific folder names) if the project already has a different but working convention.
|
|
140
|
+
- Underestimating the political and process complexity in large organizations.
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Enforcement
|
|
145
|
+
|
|
146
|
+
Any agent that starts suggesting or creating files before completing the Enterprise Project Discovery Protocol on a new large codebase will be considered in violation of D004.
|
|
147
|
+
|
|
148
|
+
@manager is responsible for immediately correcting and logging such behavior.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Documentation Ownership (Mandatory Rule)
|
|
153
|
+
|
|
154
|
+
In large-scale enterprise projects, documentation ownership must remain absolutely clear:
|
|
155
|
+
|
|
156
|
+
- **Framework rules** (mandatory standards) → `.enderun/knowledge/`
|
|
157
|
+
- **User project documentation** (implementation specs, patterns, decisions, toaster/approval workflows, etc.) → **User project's own `docs/` folder**
|
|
158
|
+
|
|
159
|
+
**Mandatory for all agents:**
|
|
160
|
+
Any document generated for the user's project (research findings, recommendations, architectural decisions, etc.) must be written directly into the user project's own `docs/` directory. Writing these files inside `.enderun/` is strictly forbidden.
|
|
161
|
+
|
|
162
|
+
Detailed rule: `.enderun/knowledge/documentation_ownership.md`
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
**This document is now part of the permanent constitution.**
|
|
167
|
+
|
|
168
|
+
All agents must internalize it before working on any project larger than a simple prototype.
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
**Version:** 1.0
|
|
4
4
|
**Owner:** @manager
|
|
5
|
-
**Last Updated:** 23
|
|
5
|
+
**Last Updated:** 23 May 2026
|
|
6
6
|
|
|
7
7
|
## Purpose
|
|
8
8
|
|
|
9
|
-
This document defines the official **@frontend Professionalization Program** to close the critical risk item **"@frontend
|
|
9
|
+
This document defines the official **@frontend Professionalization Program** to close the critical risk item **"@frontend Weakness"** in the Risk Tracking Dashboard.
|
|
10
10
|
|
|
11
|
-
The goal is to elevate the @frontend agent from its current level (6.5) to a true **
|
|
11
|
+
The goal is to elevate the @frontend agent from its current level (6.5) to a true **enterprise-grade** frontend architect (target: 9.0) within 6–8 weeks.
|
|
12
12
|
|
|
13
|
-
## Current Risk Assessment (23
|
|
13
|
+
## Current Risk Assessment (23 May 2026)
|
|
14
14
|
|
|
15
|
-
- **Risk Name:** @frontend
|
|
15
|
+
- **Risk Name:** @frontend Weakness
|
|
16
16
|
- **Current Level:** 6.5 / 10
|
|
17
17
|
- **Target Level:** 9.0 / 10
|
|
18
|
-
- **Risk Severity:**
|
|
18
|
+
- **Risk Severity:** Critical / High Risk
|
|
19
19
|
- **Main Weaknesses:**
|
|
20
20
|
- Component architecture and composition patterns exist on paper but are not deeply enforced.
|
|
21
21
|
- Accessibility (WCAG 2.2) is defined but lacks mandatory enforcement and audit mechanisms.
|
|
@@ -48,7 +48,7 @@ The goal is to elevate the @frontend agent from its current level (6.5) to a tru
|
|
|
48
48
|
- Establish formal **Design System Evolution Process** (proposal → @manager review → approval → migration plan).
|
|
49
49
|
- Create @frontend Growth Task system (similar to other agents).
|
|
50
50
|
- Integrate @frontend performance and accessibility metrics into BRAIN_DASHBOARD.md.
|
|
51
|
-
- Close the "@frontend
|
|
51
|
+
- Close the "@frontend Weakness" risk item in the Risk Tracking Dashboard upon successful demonstration in a reference application.
|
|
52
52
|
|
|
53
53
|
## Mandatory Requirements (Non-Negotiable)
|
|
54
54
|
|
|
@@ -84,25 +84,28 @@ Any task involving @frontend must satisfy the following:
|
|
|
84
84
|
- Include specific @frontend growth tasks in every relevant briefing.
|
|
85
85
|
- Review and approve major design system changes.
|
|
86
86
|
- Track progress via the Risk Tracking Dashboard and BRAIN_DASHBOARD.md.
|
|
87
|
-
- Ensure that
|
|
88
|
-
- Escalate repeated violations of accessibility, performance, or
|
|
87
|
+
- Ensure that @frontend strictly follows the Enterprise Adaptation rules in all user projects (see `enterprise_frontend_adaptation.md`).
|
|
88
|
+
- Escalate repeated violations of accessibility, performance, testing, or D004 adaptation standards as leadership failures.
|
|
89
89
|
|
|
90
|
-
## Success Criteria (Risk Closure)
|
|
90
|
+
## Success Criteria (Risk Closure) — Capability First (Post-D004)
|
|
91
91
|
|
|
92
|
-
The "@frontend
|
|
92
|
+
The "@frontend Weakness" risk can be closed when:
|
|
93
93
|
|
|
94
|
-
- @frontend agent consistently applies compound components, accessibility, and
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
94
|
+
- @frontend agent consistently applies compound components, accessibility (WCAG 2.2), performance budgets, **Panda CSS as the primary styling system**, and proper testing in **real user projects**.
|
|
95
|
+
- @frontend demonstrates mastery of the Enterprise Frontend Adaptation Framework (`enterprise_frontend_adaptation.md`) — correctly discovering the project and intelligently choosing Panda CSS when possible, while respecting strong existing systems when necessary.
|
|
96
|
+
- Completion Reports show high compliance with both professional patterns **and** the Enterprise Adaptation section, including explicit Panda CSS usage.
|
|
97
|
+
- Measurable improvement is visible in BRAIN_DASHBOARD.md and actual project outcomes over multiple engagements.
|
|
98
|
+
- @frontend no longer proposes blind "ideal" structures and instead intelligently shapes itself to whatever architecture the user already has.
|
|
98
99
|
|
|
99
100
|
## Related Documents
|
|
100
101
|
|
|
101
|
-
- `.enderun/agents/frontend.md` (main definition)
|
|
102
|
-
- `.enderun/knowledge/
|
|
102
|
+
- `.enderun/agents/frontend.md` (main definition + Enterprise Adaptation section)
|
|
103
|
+
- `.enderun/knowledge/enterprise_frontend_adaptation.md` (primary reference for large projects)
|
|
103
104
|
- `docs/roadmap.md` → Risk Tracking Dashboard
|
|
104
105
|
- `PROJECT_MEMORY.md` → STRATEGIC ROADMAP
|
|
105
106
|
|
|
106
107
|
---
|
|
107
108
|
|
|
108
109
|
**This guideline is now part of the official agent knowledge base.** All agents, especially @manager and @frontend, must follow it when working on frontend-related tasks in kurumsal projects.
|
|
110
|
+
|
|
111
|
+
**Update Note (24 May 2026):** Success criteria shifted from "prove in reference app" to "prove through consistent, context-aware performance in real enterprise projects" following Decision D004.
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# @frontend Real Battle Test Protocol
|
|
2
|
+
|
|
3
|
+
**Version:** 1.0
|
|
4
|
+
**Owner:** @manager
|
|
5
|
+
**Created:** May 24, 2026
|
|
6
|
+
**Purpose:** Test, measure, and mature the @frontend agent's new Enterprise Adaptation + Panda CSS rules in real-world corporate projects.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1. Goal and Scope
|
|
11
|
+
|
|
12
|
+
This protocol is designed to validate the @frontend agent's theoretical improvements (defined in `enterprise_frontend_adaptation.md` and `frontend.md` updates) in **real battle conditions**.
|
|
13
|
+
|
|
14
|
+
**Objectives:**
|
|
15
|
+
- Move @frontend from a theoretical 8.0 maturity level to a battle-tested 9.0+ level.
|
|
16
|
+
- Measure how well the agent adapts to diverse corporate contexts.
|
|
17
|
+
- Rapidly identify weaknesses and refine agent prompts and knowledge bases.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 2. Core Principles (Mandatory During Testing)
|
|
22
|
+
|
|
23
|
+
The following principles **must** be enforced during every real battle test:
|
|
24
|
+
|
|
25
|
+
1. **D004 - Shaped by User Project Structure** is the supreme priority rule.
|
|
26
|
+
2. **Panda CSS** is the **non-negotiable** styling standard *only for new greenfield developments and isolated components where it does not clash with the host project*.
|
|
27
|
+
- **Critical Exception Logic:** Under D004 precedence, if a project already has a powerful established styling system (e.g., Tailwind CSS, MUI, styled-components) and setting up Panda CSS would cause build-time complexities, duplicate bundle size overhead, or runtime conflicts, the agent **must not** force Panda CSS. Respect the existing styling patterns.
|
|
28
|
+
3. **Enterprise Frontend Discovery Protocol (EFDP)** must be executed before writing any code.
|
|
29
|
+
4. **Automated Validation Gates:** Do not rely on static "gut-feel" for accessibility or performance.
|
|
30
|
+
- For accessibility (WCAG 2.2 AA), use static analysis (`eslint-plugin-jsx-a11y`) or component unit tests via `axe-core`.
|
|
31
|
+
- For performance, verify bundle size impact and prevent unnecessary re-renders using proper state dependency hooks (`useMemo`, `useCallback`, `React.memo`).
|
|
32
|
+
5. **No Self-Assessment Bias:** While @frontend proposes its self-evaluation score (1-10), the final score and approval **must** be audited, adjusted, and validated by `@analyst` (QA) and `@manager` (CTO) to prevent over-optimism.
|
|
33
|
+
6. **Documentation Ownership Compliance:**
|
|
34
|
+
- Any agent-level general learnings and capability updates belong in `.enderun/knowledge/` or prompt files.
|
|
35
|
+
- Any project-specific decisions, component architecture documentation, and styling conventions **must** be written directly into the **user project's own `docs/` folder** (never in `.enderun/`), strictly adhering to `documentation_ownership.md`.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 3. Test Categories (Real Battle Scenarios)
|
|
40
|
+
|
|
41
|
+
Testing must be executed across at least **4 different** scenarios selected from the following categories:
|
|
42
|
+
|
|
43
|
+
| # | Test Category | Description | Mandatory Panda CSS? | Mandatory EFDP? | Priority |
|
|
44
|
+
|---|---|---|---|---|---|
|
|
45
|
+
| 1 | Greenfield / New Project | Starting from scratch or very minimal existing code. | Yes | Yes | High |
|
|
46
|
+
| 2 | Mid-Large Monorepo (Panda) | Large corporate project already using Panda CSS. | Yes | Yes | High |
|
|
47
|
+
| 3 | Legacy + Different Styling | Tailwind, shadcn/ui, MUI, or custom CSS established. | No (Use Matrix) | Yes | High |
|
|
48
|
+
| 4 | Data-Heavy Dashboard / Admin | Complex tables, forms, high-frequency data streams. | Case-by-case | Yes | High |
|
|
49
|
+
| 5 | Design System Integration | Integrating into a user's pre-existing, strong design system. | No (Use Matrix) | Yes | Medium |
|
|
50
|
+
| 6 | Incremental Migration | Adding new modern components to an old legacy codebase. | Yes (only new parts) | Yes | Medium |
|
|
51
|
+
| 7 | Multi-Team Corporate | Multiple frontend teams with strict file/module ownership. | Case-by-case | Yes | Medium |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 4. Mandatory Process Per Test Session
|
|
56
|
+
|
|
57
|
+
Each test session must follow these steps in sequential order:
|
|
58
|
+
|
|
59
|
+
1. **Discovery Phase**
|
|
60
|
+
- Run the complete EFDP (architecture, design system, component organization, team rules, risks).
|
|
61
|
+
- Log discovery findings in `PROJECT_MEMORY.md` or a dedicated local project doc.
|
|
62
|
+
2. **Decision Phase**
|
|
63
|
+
- Apply the Design System Decision Matrix.
|
|
64
|
+
- Explicitly document the choice: Panda CSS or existing project styling (with solid rationales).
|
|
65
|
+
3. **Implementation Phase**
|
|
66
|
+
- Strictly follow composition patterns (compound components, render props), accessibility guidelines, performance budgets, and high-risk administrative approval rules.
|
|
67
|
+
4. **Automated Verification Phase**
|
|
68
|
+
- Execute tests, linter checks, accessibility tests, and inspect bundle sizes.
|
|
69
|
+
5. **Evaluation Phase**
|
|
70
|
+
- @frontend proposes its own self-evaluation score (1-10) using the rubric below.
|
|
71
|
+
- `@analyst` performs a strict QA audit, reviews automated test outcomes, and determines the final score.
|
|
72
|
+
6. **Knowledge Extraction & Documentation**
|
|
73
|
+
- Write general agent capability improvements to `.enderun/knowledge/` (e.g., updates to `enterprise_frontend_adaptation.md`).
|
|
74
|
+
- Write project-specific styling and component implementation docs directly to the user's `docs/` folder.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 5. Evaluation Framework
|
|
79
|
+
|
|
80
|
+
Self-evaluation and @analyst audits are scored on a 1-10 scale based on three key pillars:
|
|
81
|
+
|
|
82
|
+
### Technical Quality (40%)
|
|
83
|
+
- Component Architecture & Composition
|
|
84
|
+
- Accessibility (WCAG 2.2 AA) backed by Axe-core/ESLint
|
|
85
|
+
- Performance & bundle budget compliance
|
|
86
|
+
- Testing quality and coverage
|
|
87
|
+
- Error handling & resilience
|
|
88
|
+
|
|
89
|
+
### Enterprise Adaptation (40%)
|
|
90
|
+
- Accuracy and depth of initial EFDP discovery
|
|
91
|
+
- Soundness of Design System Matrix decisions (especially concerning Panda CSS exception logic)
|
|
92
|
+
- Strict compliance with legacy patterns and styling conventions
|
|
93
|
+
- Respect for team ownership and boundaries
|
|
94
|
+
|
|
95
|
+
### Process & Governance (20%)
|
|
96
|
+
- Completion Report quality and objective truthfulness
|
|
97
|
+
- Precise knowledge extraction and adherence to the Documentation Ownership rule
|
|
98
|
+
- Compliance with @manager briefings and high-risk approval workflows
|
|
99
|
+
- General professionalism and communication
|
|
100
|
+
|
|
101
|
+
**Total Score = Technical (40%) + Adaptation (40%) + Process (20%)**
|
|
102
|
+
|
|
103
|
+
### Evaluation Thresholds
|
|
104
|
+
|
|
105
|
+
| Total Score | Outcome | Action Required |
|
|
106
|
+
|-------------|---------|-----------------|
|
|
107
|
+
| 9.0+ | Perfect Fit | Keep rules and prompts as-is. |
|
|
108
|
+
| 8.0 - 8.9 | Good (Minor Gaps) | Suggest small prompt/knowledge tweaks. |
|
|
109
|
+
| 7.0 - 7.9 | Acceptable but Needs Improvement | Plan significant upgrades to capability files. |
|
|
110
|
+
| < 7.0 | Weak | Halt further tests; immediately revise agent prompts and knowledge. |
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## 6. Documentation Requirements
|
|
115
|
+
|
|
116
|
+
Each test session must be documented with the following information:
|
|
117
|
+
|
|
118
|
+
- Project category and size.
|
|
119
|
+
- Core discovery findings (EFDP).
|
|
120
|
+
- Styling decisions and justification.
|
|
121
|
+
- Complete and audited Completion Report.
|
|
122
|
+
- Initial self-score vs. final `@analyst` audited score (with rationale).
|
|
123
|
+
- Challenges encountered and how they were resolved.
|
|
124
|
+
- Actionable recommendations for improving the @frontend agent.
|
|
125
|
+
|
|
126
|
+
These records must be maintained in `PROJECT_MEMORY.md` and/or a dedicated `frontend_battle_log.md` inside the user project's `docs/` directory.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## 7. Success Criteria (Risk Closure)
|
|
131
|
+
|
|
132
|
+
The "@frontend Weakness" risk item in the Risk Tracking Dashboard can be officially closed only when:
|
|
133
|
+
|
|
134
|
+
- At least **4 different categories** of real battle tests are executed and documented.
|
|
135
|
+
- The average final audited score across all tests is **8.5+** (with at least 3 tests scoring 8.5 or higher).
|
|
136
|
+
- Zero instances of "Self-Assessment Bias" go uncorrected by `@analyst`.
|
|
137
|
+
- Demonstrated real-world value is added to the user's project (not just theoretical correctness).
|
|
138
|
+
- Explicit approval is given by both `@analyst` and `@manager`.
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## 8. Continuous Improvement Loop
|
|
143
|
+
|
|
144
|
+
Every 2-3 test runs:
|
|
145
|
+
1. Identify recurring agent weaknesses and gaps.
|
|
146
|
+
2. Update `.enderun/knowledge/enterprise_frontend_adaptation.md` and/or `.enderun/agents/frontend.md`.
|
|
147
|
+
3. Test updated instructions in subsequent test sessions.
|
|
148
|
+
4. Record progress in the Risk Tracking Dashboard and `PROJECT_MEMORY.md`.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 9. Responsibilities
|
|
153
|
+
|
|
154
|
+
- **@frontend:** Strictly follow all protocols, propose objective scores, and document implementation.
|
|
155
|
+
- **@analyst:** Audit completion reports, verify metrical performance/accessibility, and issue the final score.
|
|
156
|
+
- **@manager:** Orchestrate tests, manage risk dashboards, and sign off on agent maturity upgrades.
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
**This protocol is the official "battlefield" validation matrix for Agent Enderun's @frontend capability.**
|
|
161
|
+
|
|
162
|
+
*Ready for execution upon manager approval.*
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
**Version:** 1.0
|
|
4
4
|
**Owner:** @manager
|
|
5
|
-
**Last Updated:** 23
|
|
5
|
+
**Last Updated:** 23 May 2026
|
|
6
6
|
|
|
7
7
|
## Purpose
|
|
8
8
|
|
|
9
|
-
This document defines the official **Hermes Live Test Program** to close the risk item **"Hermes '
|
|
9
|
+
This document defines the official **Hermes Live Test Program** to close the risk item **"Hermes 'Defined on Paper'"** in the Risk Tracking Dashboard.
|
|
10
10
|
|
|
11
11
|
Although the Hermes protocol is now technically stateful and mandatory on paper (send_agent_message, read_agent_messages, update_agent_message_status, proper lifecycle), it has not yet been proven in real inter-agent communication cycles.
|
|
12
12
|
|
|
13
13
|
The goal is to move Hermes from **"defined and mandated"** to **"actually used and verified in live scenarios"**.
|
|
14
14
|
|
|
15
|
-
## Current Risk Status (23
|
|
15
|
+
## Current Risk Status (23 May 2026)
|
|
16
16
|
|
|
17
|
-
- **Risk Name:** Hermes “
|
|
17
|
+
- **Risk Name:** Hermes “Defined on Paper”
|
|
18
18
|
- **Previous Progress:** %70 (protocol made stateful + mandatory in all agents)
|
|
19
19
|
- **Current Gap:** No real, end-to-end live message flows have been executed and verified between agents in a working context.
|
|
20
20
|
- **Risk Severity:** Orta (but blocking full autonomous orchestration claim)
|
|
@@ -50,7 +50,7 @@ To consider the Hermes protocol "live and proven", the following scenarios **mus
|
|
|
50
50
|
|
|
51
51
|
## Acceptance Criteria (Risk Closure)
|
|
52
52
|
|
|
53
|
-
The "Hermes
|
|
53
|
+
The "Hermes Defined on Paper" risk can be closed only when **all** of the following are true:
|
|
54
54
|
|
|
55
55
|
- At least the 4 scenarios above have been executed in a real context (preferably inside the reference application).
|
|
56
56
|
- Every message uses correct `from`, `to`, `traceId`, `category`, `priority`, and proper status transitions.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Version:** 1.0
|
|
4
4
|
**Owner:** @manager
|
|
5
|
-
**Last Updated:** 23
|
|
5
|
+
**Last Updated:** 23 May 2026
|
|
6
6
|
|
|
7
7
|
## Purpose
|
|
8
8
|
|
|
@@ -12,14 +12,14 @@ Even though strong rules exist in individual agent files, without a systematic a
|
|
|
12
12
|
|
|
13
13
|
## Why This Is Necessary
|
|
14
14
|
|
|
15
|
-
From the agent control audit (23
|
|
15
|
+
From the agent control audit (23 May 2026):
|
|
16
16
|
|
|
17
17
|
- @backend, @frontend, @analyst, and @explorer have partial governance rules, but enforcement is inconsistent.
|
|
18
18
|
- @git, @mobile, and @native have almost no @manager control defined.
|
|
19
19
|
- Hermes usage and High-Risk Admin compliance are still largely declarative in many agents.
|
|
20
20
|
- Memory Discipline and briefing requirements are frequently bypassed in practice.
|
|
21
21
|
|
|
22
|
-
Without regular auditing and clear enforcement, the "
|
|
22
|
+
Without regular auditing and clear enforcement, the "Single Entry Point" and "Zero Tolerance" principles lose effectiveness.
|
|
23
23
|
|
|
24
24
|
## Core Principles
|
|
25
25
|
|
|
@@ -77,10 +77,10 @@ When a violation is detected, @manager must apply the following in order:
|
|
|
77
77
|
|
|
78
78
|
This authority system directly supports the closure of multiple risks:
|
|
79
79
|
|
|
80
|
-
-
|
|
81
|
-
- @frontend
|
|
82
|
-
- Hermes “
|
|
83
|
-
-
|
|
80
|
+
- No Production-Grade Reference Application
|
|
81
|
+
- @frontend Weakness
|
|
82
|
+
- Hermes “Defined on Paper”
|
|
83
|
+
- Lack of Real Usage Data
|
|
84
84
|
|
|
85
85
|
Every time a reference application or major task is executed, @manager must run an Authority Audit and record findings.
|
|
86
86
|
|
|
@@ -92,7 +92,7 @@ Every time a reference application or major task is executed, @manager must run
|
|
|
92
92
|
|
|
93
93
|
## Related Documents
|
|
94
94
|
|
|
95
|
-
- `.enderun/agents/manager.md` →
|
|
95
|
+
- `.enderun/agents/manager.md` → @manager Mandatory Behavior Rules for Enterprise Projects + Hermes Communication Mandate
|
|
96
96
|
- `.enderun/knowledge/hermes_live_test_guidelines.md`
|
|
97
97
|
- `.enderun/knowledge/frontend_professionalization_guidelines.md`
|
|
98
98
|
- `.enderun/knowledge/reference_application_guidelines.md`
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Version:** 1.0
|
|
4
4
|
**Owner:** @manager
|
|
5
|
-
**Last Updated:** 23
|
|
5
|
+
**Last Updated:** 23 May 2026
|
|
6
6
|
|
|
7
7
|
## Purpose
|
|
8
8
|
|
|
@@ -14,8 +14,8 @@ The goal is to move from "empty `apps/` folder" to a **minimal but meaningful pr
|
|
|
14
14
|
|
|
15
15
|
@manager should initiate a project scaffold in the following cases:
|
|
16
16
|
|
|
17
|
-
- The Risk Tracking Dashboard shows **"
|
|
18
|
-
- The team needs a concrete starting point to validate governance rules (especially
|
|
17
|
+
- The Risk Tracking Dashboard shows **"No Production-Grade Reference Application"** as a top-priority open risk.
|
|
18
|
+
- The team needs a concrete starting point to validate governance rules (especially Corporate CRUD Governance and Hermes).
|
|
19
19
|
- A new major capability needs to be proven before being used in client projects.
|
|
20
20
|
- During the early stages of Phase 1 or Phase 2 when moving from theory to real implementation.
|
|
21
21
|
|
|
@@ -74,7 +74,7 @@ Any project scaffold created with Agent Enderun **must** include at least the fo
|
|
|
74
74
|
- The scaffold must respect the **Framework vs User Project Boundary** (only work inside `apps/`).
|
|
75
75
|
- The scaffold is **temporary and educational** — it is meant to prove concepts, not to become a full product.
|
|
76
76
|
- All high-risk operations in the scaffold must follow the `managerApproval` + Hermes + audit pattern.
|
|
77
|
-
- After successful completion, update the Risk Tracking Dashboard to reflect progress on "
|
|
77
|
+
- After successful completion, update the Risk Tracking Dashboard to reflect progress on "No Production-Grade Reference Application".
|
|
78
78
|
|
|
79
79
|
## Success Criteria
|
|
80
80
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Version:** 1.0
|
|
4
4
|
**Owner:** @manager
|
|
5
|
-
**Last Updated:** 23
|
|
5
|
+
**Last Updated:** 23 May 2026
|
|
6
6
|
|
|
7
7
|
## Purpose
|
|
8
8
|
|
|
@@ -14,8 +14,8 @@ The goal of a reference application is to **prove** that Agent Enderun’s gover
|
|
|
14
14
|
|
|
15
15
|
@manager should initiate a reference application in the following situations:
|
|
16
16
|
|
|
17
|
-
- The Risk Tracking Dashboard shows **"
|
|
18
|
-
- The team needs to validate that new governance rules (especially
|
|
17
|
+
- The Risk Tracking Dashboard shows **"No Production-Grade Reference Application"** as a top-priority open risk.
|
|
18
|
+
- The team needs to validate that new governance rules (especially Corporate CRUD Governance and Hermes) work end-to-end.
|
|
19
19
|
- A new major capability (e.g., advanced Hermes flows, complex admin patterns) needs to be demonstrated before being trusted in client projects.
|
|
20
20
|
- During Phase 1 or early Phase 2 when moving from theory to practice.
|
|
21
21
|
|
|
@@ -38,7 +38,7 @@ Any reference application **must** demonstrate the following:
|
|
|
38
38
|
- At least one real inter-agent message flow (e.g., @backend → @analyst or @manager → @backend)
|
|
39
39
|
- Proper use of `send_agent_message` + `update_agent_message_status`
|
|
40
40
|
|
|
41
|
-
5. **
|
|
41
|
+
5. **Corporate Governance Compliance**
|
|
42
42
|
- All high-risk actions must go through @manager briefing and approval
|
|
43
43
|
- Full audit logging with Trace ID, previousState/newState, and actor
|
|
44
44
|
|
|
@@ -73,7 +73,7 @@ This scope is small enough to build quickly but rich enough to prove the most cr
|
|
|
73
73
|
|
|
74
74
|
- Never create a reference application without an explicit @manager briefing.
|
|
75
75
|
- The reference app is **temporary and educational** — it is not a product.
|
|
76
|
-
- After the reference application successfully closes the "
|
|
76
|
+
- After the reference application successfully closes the "No Production-Grade Reference Application" risk, it may be archived or replaced with a cleaner example.
|
|
77
77
|
- All work must be logged in HISTORY and the Risk Tracking Dashboard must be updated.
|
|
78
78
|
|
|
79
79
|
## Updating Risk Status
|
|
@@ -81,7 +81,7 @@ This scope is small enough to build quickly but rich enough to prove the most cr
|
|
|
81
81
|
When a reference application is completed and accepted:
|
|
82
82
|
|
|
83
83
|
1. Update the Risk Tracking Dashboard in both `docs/roadmap.md` and `PROJECT_MEMORY.md`
|
|
84
|
-
2. Mark "
|
|
84
|
+
2. Mark "No Production-Grade Reference Application" as **Closed**
|
|
85
85
|
3. Record the achievement in the HISTORY section of PROJECT_MEMORY.md
|
|
86
86
|
4. Optionally create a short "Reference Application Walkthrough" under `docs/`
|
|
87
87
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"timestamp": "2026-05-24T08:38:00.000Z",
|
|
4
|
+
"agent": "@manager",
|
|
5
|
+
"action": "ORCHESTRATE",
|
|
6
|
+
"requestId": "01JK5V3A4B5C6D7E8F9G0H1J2K",
|
|
7
|
+
"status": "SUCCESS",
|
|
8
|
+
"summary": "Resolved MCP server TypeScript compilation errors, linked the root CLI globally via npm link, and bumped the framework package versions from 0.6.6 to 0.6.7 across both agent-enderun and kentim directories.",
|
|
9
|
+
"files": [
|
|
10
|
+
"/Users/ybekar/Desktop/Projeler/agent-enderun/framework-mcp/src/tools/index.ts",
|
|
11
|
+
"/Users/ybekar/Desktop/Projeler/kentim/framework-mcp/src/tools/index.ts",
|
|
12
|
+
"/Users/ybekar/Desktop/Projeler/agent-enderun/package.json",
|
|
13
|
+
"/Users/ybekar/Desktop/Projeler/agent-enderun/framework-mcp/package.json",
|
|
14
|
+
"/Users/ybekar/Desktop/Projeler/kentim/package.json",
|
|
15
|
+
"/Users/ybekar/Desktop/Projeler/kentim/framework-mcp/package.json"
|
|
16
|
+
],
|
|
17
|
+
"details": {
|
|
18
|
+
"typeFix": "Strongly typed allHandlers in tools/index.ts to avoid the forbidden any type while resolving TS2345.",
|
|
19
|
+
"linking": "Executed npm link globally to expose the agent-enderun CLI command.",
|
|
20
|
+
"versionBump": "Upgraded all references from 0.6.6 to 0.6.7 across configuration and dependency fields."
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
]
|