ai-enderun 0.0.8 → 0.0.10

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.
@@ -6,7 +6,7 @@ This file is the Single Source of Truth (SSOT) and the persistent memory of the
6
6
 
7
7
  | Active Phase | Profile | Last Update | Active Trace ID | Blockers |
8
8
  | :----------- | :------ | :---------- | :-------------- | :------- |
9
- | PHASE_0 | Lightweight | 2026-05-08 | 01KR44729Z08BQQ4FCDAVNC148 | NONE |
9
+ | PHASE_0 | Lightweight | 2026-05-08 | 01KR46D2M3X9V1T8Z4D7Z2L5K1 | NONE |
10
10
 
11
11
  ## PROJECT DEFINITION
12
12
 
@@ -18,276 +18,50 @@ This file is the Single Source of Truth (SSOT) and the persistent memory of the
18
18
  | Backend | Node.js 20+ + Fastify + Kysely |
19
19
  | DB | PostgreSQL |
20
20
  | Auth | Not yet defined |
21
- | Deploy | Not yet defined |
22
-
23
- ## DOD STATUS
24
-
25
- | Phase | Status | Note |
26
- | :--- | :--- | :--- |
27
- | PHASE_0 | IN_PROGRESS | Tool contracts and memory structure being aligned |
28
- | PHASE_1 | PENDING | After `contract.version.json` and first official contracts |
29
- | PHASE_2 | PENDING | Feature development has not started |
30
- | PHASE_3 | PENDING | Integration work has not started |
31
- | PHASE_4 | PENDING | Handover phase has not been reached |
32
-
33
- ## CRITICAL DECISIONS
34
-
35
- | Date | Decision | Rationale | Agent |
36
- | :--- | :--- | :--- | :--- |
37
- | 2026-05-07 | Standalone Architecture | Maximum flexibility and independence | @manager |
38
- | 2026-05-07 | Contract-First Discipline | Scalable development with zero errors | @manager |
39
- | 2026-05-07 | Canonical MCP Tooling | Aligning agent capabilities while maintaining tool names in a single dictionary | @analyst |
40
- | 2026-05-08 | Panda CSS Transition | Switching from Tailwind to Panda CSS for architectural discipline and type safety | @manager |
41
- | 2026-05-08 | Zero UI Library Policy | Banning ready-made libraries for originality and full control | @manager |
42
- | 2026-05-08 | ULID Standard | Switching from UUID to ULID for database performance and sortability (Standard: 26-char ULID) | @manager |
43
- | 2026-05-08 | English Translation | Moving all documentation and rules to English for international standards (Bilingual READMEs) | @manager |
44
- | 2026-05-08 | Documentation Decoupling | Reserved root `docs/` for user project requirements and `.enderun/docs/` for framework rules | @manager |
45
- | 2026-05-08 | Smart Init System | Automated adapter configuration (Gemini symlinks, Claude MCP guidance) in CLI | @manager |
46
- | 2026-05-08 | Continuity Principle | Mandating agents to follow existing code patterns and memory-driven decisions | @manager |
47
-
48
- ## DELIVERABLES
49
-
50
- | Module | Status | Agent | Date |
51
- | :--- | :--- | :--- | :--- |
52
- | Root and package README layout | Completed | @analyst | 2026-05-07 |
53
- | Agent SOP core library | Completed | @manager | 2026-05-07 |
54
21
 
55
22
  ## ACTIVE TASKS
56
23
 
57
- | Trace ID | Task | Agent | Priority | Status |
58
- | :--- | :--- | :--- | :--- | :--- |
59
- | 01KR44729Z08BQQ4FCDAVNC148 | Documentation Overhaul & Agent Evangelism | @manager | P1 | COMPLETED |
60
- | 01KR45N4S0XW6F7G6T1W8F9D2V | Smart Init System Implementation | @manager | P1 | COMPLETED |
61
- | 01KR45Q8N1V7Z7H9R2M3W9X4Y1 | Robust Access Law & Tool Failure Resolution | @manager | P1 | COMPLETED |
62
- | 01KR45W2Z91Y5K8M2T3V4X9N7R | Documentation Path Alignment (Root docs/ Fix) | @manager | P1 | COMPLETED |
63
- | 01KR45Y0M2X3V1B7D9N4Z2K8L5 | README Quick Start Guide Addition | @manager | P2 | COMPLETED |
64
- | 01KR460M3N1B5V9X2D4Z8L7K1R | Tech-Stack.md Relocation (Root docs/ Fix) | @manager | P1 | COMPLETED |
65
- | 01KR463F8N1V7W2Z9M3D4G7H5K | Version Bump to v0.0.7 & Health Check | @manager | P1 | COMPLETED |
66
- | 01KR4666M2X9R1T4V8D7Z2L5K1 | @manager SOP Hardening (MCP Health Check) | @manager | P1 | COMPLETED |
67
- | 01KR444BM94P5W3ERVJ3YJ9T01 | Agent Report Version Synchronization (v0.0.6) | @manager | P1 | COMPLETED |
68
- | 01KR442W6MP3GXHF7TD32GJG1V | Agent SOP Hardening & Continuity Alignment | @manager | P1 | COMPLETED |
69
-
70
- ## HISTORY (Persistent Memory)
71
-
72
- ### 2026-05-08 — @manager SOP Hardening (MCP Health Check)
73
-
74
- - **Agent:** @manager
75
- - **Trace ID:** 01KR4666M2X9R1T4V8D7Z2L5K1
76
- - **Action:** Hardened the `@manager` SOP by adding a mandatory MCP health check to the startup protocol. The manager must now verify connectivity at the beginning of every session and warn the user if tools are unresponsive.
77
- - **Decision:** Shifted some health monitoring responsibility to the agent level to ensure the orchestration environment is always valid during active sessions.
78
- - **Next Step:** Observe agent behavior during startup and verify they correctly report MCP issues.
79
-
80
- ### 2026-05-08 — Version Bump to v0.0.7 & Health Check
81
-
82
- - **Agent:** @manager
83
- - **Trace ID:** 01KR463F8N1V7W2Z9M3D4G7H5K
84
- - **Action:** Bumped framework version to `v0.0.7`. Implemented `ai-enderun check` command to verify framework health, directory existence, and MCP server readiness. Added automated warnings for missing dependencies and builds during `init`.
85
- - **Decision:** Prioritized user experience by providing a verification tool to ensure the complex multi-component framework is correctly set up before starting orchestration.
86
- - **Next Step:** Encourage users to run `ai-enderun check` as part of their initial setup.
87
-
88
- ### 2026-05-08 — Tech-Stack.md Relocation (Root docs/ Fix)
89
-
90
- - **Agent:** @manager
91
- - **Trace ID:** 01KR460M3N1B5V9X2D4Z8L7K1R
92
- - **Action:** Relocated `tech-stack.md` from `.enderun/docs/` to the root `docs/` directory. Updated `ENDERUN.md`, `README.md`, Agent SOPs, and MCP gap detection logic to reflect this change.
93
- - **Decision:** Centralized all project-specific "What" and "How" documentation in the root `docs/` folder to improve visibility and clarify the separation between project requirements and framework internals.
94
- - **Next Step:** Verify that agents are correctly auditing both requirements and tech stack from the root `docs/` folder.
95
-
96
- ### 2026-05-08 — README Quick Start Guide Addition
97
-
98
- - **Agent:** @manager
99
- - **Trace ID:** 01KR45Y0M2X3V1B7D9N4Z2K8L5
100
- - **Action:** Added a bilingual "Getting Started / Başlangıç Rehberi" section to the root `README.md`. Outlined the 5 critical steps for users to take after framework initialization to begin their orchestration journey.
101
- - **Decision:** Improved user onboarding by providing clear, actionable post-install instructions directly in the main project entry point.
102
- - **Next Step:** Maintain documentation clarity as new features are added.
103
-
104
- ### 2026-05-08 — Documentation Path Alignment (Root docs/ Fix)
105
-
106
- - **Agent:** @manager
107
- - **Trace ID:** 01KR45W2Z91Y5K8M2T3V4X9N7R
108
- - **Action:** Corrected outdated path references in `ENDERUN.md` and `framework-mcp`. Ensured that agents look for project requirements in root `docs/` and technical API contracts in `.enderun/docs/api`.
109
- - **Decision:** Fully aligned all framework logic with the decoupled documentation model to eliminate agent confusion.
110
- - **Next Step:** Verify that agents are now correctly identifying project requirements in the root `docs/` folder.
111
-
112
- ### 2026-05-08 — Robust Access Law & Tool Failure Resolution
113
-
114
- - **Agent:** @manager
115
- - **Trace ID:** 01KR45Q8N1V7Z7H9R2M3W9X4Y1
116
- - **Action:** Resolved agent failures regarding `Shell date` and direct `ReadFile` of `.enderun/PROJECT_MEMORY.md`. Implemented `get_system_time` and `read_project_memory` MCP tools. Established the "Robust Access Law" in `ENDERUN.md` and updated all Agent SOPs to mandate these tools.
117
- - **Decision:** Mandated MCP tools for sensitive operations to bypass shell environment inconsistencies and restricted file access in certain agent environments.
118
- - **Next Step:** Monitor agent stability and ensure all clients correctly utilize the new tools.
119
-
120
- ### 2026-05-08 — Smart Init System Implementation
121
-
122
- - **Agent:** @manager
123
- - **Trace ID:** 01KR45N4S0XW6F7G6T1W8F9D2V
124
- - **Action:** Upgraded the `ai-enderun init` command to a "Smart Init" system. Refactored `bin/cli.js` to support `package.json` merging, `.gitignore` updates, and automated `PROJECT_MEMORY.md` initialization. Excluded project-specific state files from the initial framework copy.
125
- - **Decision:** Shifted from simple file copying to a non-destructive, project-aware initialization process to improve user experience and framework adoption.
126
- - **Next Step:** Monitor user feedback and refine adapter-specific smart setup logic.
127
-
128
- ### 2026-05-08 — Documentation Overhaul & Agent Evangelism
129
-
130
- - **Agent:** @manager
131
- - **Trace ID:** 01KR44729Z08BQQ4FCDAVNC148
132
- - **Action:** Extensively updated `README.md` and `CHANGELOG.md`. Detailed all 7 agent roles (@manager, @analyst, @backend, @frontend, @explorer, @mobile, @native) and explained the new decoupled documentation model (root `docs/` vs `.enderun/docs/`).
133
- - **Decision:** Positioned root `README.md` as a professional gateway that clearly defines agent responsibilities and framework discipline.
134
- - **Next Step:** Ready for release or user requirement input.
135
-
136
- ### 2026-05-08 — Agent Report Version Synchronization (v0.0.6)
137
-
138
- - **Agent:** @manager
139
- - **Trace ID:** 01KR444BM94P5W3ERVJ3YJ9T01
140
- - **Action:** Synchronized all "Agent Completion Report" versions across all 7 agent files to `v0.0.6` to match the core framework version.
141
- - **Decision:** Unified versioning across all documentation to prevent confusion and maintain strict version control discipline.
142
- - **Next Step:** Proceed with the project structure as a unified v0.0.6 system.
143
-
144
- ### 2026-05-08 — Agent SOP Hardening & Full Project Recall
145
-
146
- - **Agent:** @manager
147
- - **Trace ID:** 01KR442W6MP3GXHF7TD32GJG1V
148
- - **Action:** Conducted a comprehensive update of all 7 agent SOP files in `.enderun/agents/`. Infused each agent with the "Procedural Continuity" principle and "Memory-First" discipline. Removed legacy pathing and standardized all agents to v0.0.6.
149
- - **Decision:** All agents now operate with full awareness of the project's historical decisions and structural standards, ensuring they "finish how they started."
150
- - **Next Step:** Ready for the first user requirement analysis under the hardened framework.
151
-
152
- ### 2026-05-08 — Framework Continuity & Memory Hardening
24
+ - [x] Create core framework structure (.enderun)
25
+ - [x] Implement MCP server with dependency analysis and security tools
26
+ - [x] Define Agent SOPs (Manager, Analyst, Backend, Frontend, Explorer, Mobile, Native, Git)
27
+ - [x] Standardize on ULID and Branded Types
28
+ - [x] Fix initialization pathing and adapter linker placement
29
+ - [x] Implement automated Git initialization and @git SOP
30
+ - [x] Resolve Claude Code template validation conflicts (resource -> entity)
31
+ - [ ] Begin PHASE_1 Architecture & Contract (pending user instruction)
153
32
 
154
- - **Agent:** @manager
155
- - **Trace ID:** 01KR43YRNEDBR6RPEYJT99CD6F
156
- - **Action:** Established the "Procedural Continuity" principle in `ENDERUN.md`. Hardened the project memory by updating `CRITICAL DECISIONS` with recent architectural shifts (Doc Decoupling, Smart Init). Cleaned up legacy tasks in `ACTIVE TASKS` to align with v0.0.6 reality.
157
- - **Decision:** Mandated that all future agents must strictly follow established patterns and reference memory before any action to ensure architectural integrity.
158
- - **Next Step:** Maintain stability and proceed with project building blocks under the new continuity rules.
33
+ ## CRITICAL DECISIONS
159
34
 
160
- ### 2026-05-08 Smart Init & Post-Install Hooks
35
+ - **Clean Root Policy:** All framework assets are kept in adapter-specific hidden folders.
36
+ - **Zero UI Library Policy:** No external UI libraries allowed; use Panda CSS + Original components.
37
+ - **ULID Standard:** All IDs must be sortable ULIDs for superior traceability.
38
+ - **Multi-AI Compatibility:** Avoid reserved keywords like `resource` in prompt templates.
39
+ - **Automated Init:** CLI must handle `git init` and scaffolding autonomously.
161
40
 
162
- - **Agent:** @manager
163
- - **Trace ID:** 01KR43VSG0GHNTM8C13RRDVSBX
164
- - **Action:** Refactored `bin/cli.js` to include "Smart Init" features. Added post-install hooks for Gemini (automatic symlink creation to `.enderun/agents`) and Claude (automated MCP configuration command output).
165
- - **Decision:** Enhanced user experience by automating repetitive configuration steps during framework initialization.
166
- - **Next Step:** Maintain CLI features and monitor user feedback on the smart setup process.
41
+ ## HISTORY
167
42
 
168
- ### 2026-05-08 — User Document Restoration & Role Definition
43
+ ### 2026-05-08 — v0.0.10 Super-Stabilization (MASTER)
169
44
 
170
45
  - **Agent:** @manager
171
- - **Trace ID:** 01KR43P710SSZVMCV8GP5CEJVW
172
- - **Action:** Restored `project-docs.md` to root `docs/` as per user requirement. Formally defined root `docs/` as the primary "User Requirement Center" where agents must check every file during the build process. Maintained technical framework docs in `.enderun/docs/`. Updated `package.json` to include both directories.
173
- - **Decision:** Clearly separated "User/Business Requirements" (root `docs/`) from "Framework/Technical Constitution" (`.enderun/docs/`).
174
- - **Next Step:** Agents are now instructed to treat root `docs/` as the source of truth for project features and building blocks.
46
+ - **Trace ID:** 01KR46D2M3X9V1T8Z4D7Z2L5K1
47
+ - **Action:** Consolidated all stabilization fixes into v0.0.10. Fixed init pathing, linker placement, git automation, and Claude Code template validation. Synchronized all 8 agents and packages.
48
+ - **Decision:** Released v0.0.10 as the definitive stable baseline for the framework.
49
+ - **Next Step:** Ready for production-grade feature development.
175
50
 
176
- ### 2026-05-08 — Documentation Decoupling & Cleanup
51
+ ### 2026-05-08 — Major Structural & Clean Root Transition (v0.0.9)
177
52
 
178
53
  - **Agent:** @manager
179
- - **Trace ID:** 01KR43KF3G70GW3VZTK9E1953S
180
- - **Action:** Decoupled framework documentation from user project instructions. Moved all framework-related docs from root `docs/` to `.enderun/docs/`. Cleaned up redundant files and emptied root `docs/` to serve as the user instruction entry point. Updated `package.json` to reflect new paths.
181
- - **Decision:** Reserved root `docs/` exclusively for user requirements and story files, ensuring a clear separation between framework logic and project-specific building blocks.
182
- - **Next Step:** User can now place project requirement files (e.g., `tt.md`) in root `docs/` for agent consumption.
54
+ - **Trace ID:** 01KR46N2B7V1X9Z4M3D5G7H5L1
55
+ - **Action:** Decoupled framework documentation from user project instructions. Moved assets to hidden folders.
56
+ - **Next Step:** Finalize adapter-specific logic.
183
57
 
184
58
  ### 2026-05-08 — Structural Alignment & Trace ID Correction
185
59
 
186
60
  - **Agent:** @manager
187
61
  - **Trace ID:** 01KR43EZD3BWKX08KHQ6EV7DHC
188
- - **Action:** Converted legacy UUID Trace IDs in ACTIVE TASKS to ULID standard. Created missing `.enderun/docs/` directory structure, including `tech-stack.md`, `project-docs.md`, and `api/` folder.
189
- - **Decision:** Strictly enforced ULID standard and structural completeness of the framework.
190
- - **Next Step:** Ready for PHASE_1 or further framework configuration.
191
-
192
- ### 2026-05-08 — Comprehensive Documentation & CLI Polish (v0.0.6)
193
-
194
- - **Agent:** @manager
195
- - **Trace ID:** 01J... (New ULID)
196
- - **Action:** Conducted a full audit of all framework capabilities. Rewrote `README.md` to include detailed instructions for all adapters (`GEMINI`, `CLAUDE`, `CURSOR`, `CODEX`) and the `init` command. Refactored `bin/cli.js` to correctly handle adapter-specific initialization and core file scaffolding. Fixed cross-file references to `ENDERUN.md` and `GEMINI.md`.
197
- - **Decision:** Unified the terminology and ensured all installation paths are clear for npm users.
198
- - **Next Step:** Ready for final npm distribution.
199
-
200
- ### 2026-05-08 — NPM Readiness & Documentation Overhaul (v0.0.6)
201
-
202
- - **Agent:** @manager
203
- - **Trace ID:** 01J... (New ULID)
204
- - **Action:** Conducted a comprehensive audit of all `package.json` and `README.md` files. Updated metadata (license, keywords, descriptions) for npm publication. Rewrote all READMEs in a professional, bilingual format. Fixed file references in root `package.json` to include new `ENDERUN.md` and exclude source code where appropriate.
205
- - **Decision:** Standardized all package metadata to v0.0.6 and MIT license. Established a professional external-facing identity for the framework.
206
- - **Next Step:** Perform a final test publish or dry-run.
207
-
208
- ### 2026-05-08 — Agnostic Framework Transition (.enderun)
209
-
210
- - **Agent:** @manager
211
- - **Trace ID:** 01J... (New ULID)
212
- - **Action:** Renamed the core framework folder from `.gemini` to `.enderun` to create an LLM-agnostic environment. Updated all global references in code, adapters, and tools. Verified that CLI and MCP tools correctly reference the new path.
213
- - **Decision:** Adopted `.enderun` as the standard folder name to eliminate perceived bias toward any single AI provider and ensure full compatibility with Cursor and Claude.
214
- - **Next Step:** Update any remaining external documentation or CI/CD scripts.
215
-
216
- ### 2026-05-08 — Advanced Framework Tuning (v0.0.6)
217
-
218
- - **Agent:** @manager
219
- - **Trace ID:** 01J... (New ULID)
220
- - **Action:** Upgraded `security_audit_scan` to use AST-based analysis (ts-morph) for precise `any` and `console.log` detection. Improved `verify_api_contract` with actionable fix suggestions. Added "Multi-Agent Coordination Protocol" to `ENDERUN.md` to regulate shared resource usage.
221
- - **Decision:** Shifted critical security checks from Regex to AST for higher reliability and zero false positives.
222
- - **Next Step:** Maintain framework stability and observe agent coordination.
223
-
224
- ### 2026-05-08 — Framework & Adapter Alignment (v0.0.6)
225
-
226
- - **Agent:** @manager
227
- - **Trace ID:** 01J... (New ULID)
228
- - **Action:** Fixed all language inconsistencies across the framework and adapter layers. Translated remaining Turkish section names to English in `framework-mcp`, `cli.js`, `GEMINI.md`, `CURSOR.md`, `CLAUDE.md`, and `CODEX.md`. Corrected case-sensitive file references (`ENDERUN.md`, `GEMINI.md`). Updated `BRAIN_DASHBOARD.md` to English standards.
229
- - **Decision:** Standardized all internal logic and documentation to English while maintaining bilingual READMEs.
230
- - **Next Step:** Continue auditing framework tools for edge cases.
231
-
232
- ### 2026-05-08 — Project-Wide Standard Unification (v0.0.6)
233
-
234
- - **Agent:** @analyst
235
- - **Trace ID:** e81839b7-9dee-44d9-9301-ac4a9febe9b5
236
- - **Action:** Created `ENDERUN.md`, updated `CURSOR.md`, `CLAUDE.md`, and `CODEX.md` with v0.0.6 standards and full MCP tools. Refined `log_agent_action` standard in Agent SOPs and improved gap detection logic in `framework-mcp`. Fixed contract hash mismatch.
237
- - **Decision:** Standardized all adapter layers to ensure consistent agent behavior across different IDE clients.
238
- - **Next Step:** Proceed with PHASE_1 architecture alignment.
239
-
240
- ### 2026-05-08 — English Transition
241
-
242
- - **Agent:** @manager
243
- - **Trace ID:** 01J... (New ULID)
244
- - **Action:** Completely translated the Constitution (ENDERUN.md), Memory (PROJECT_MEMORY.md), and all Agent SOPs to English. Standardized the documentation language.
245
- - **Decision:** All project files will be in English, while README files will remain bilingual (EN/TR) for better accessibility.
246
- - **Next Step:** Update all README files to the bilingual structure.
247
-
248
- ### 2026-05-08 — Release Preparation and v0.0.5
249
-
250
- - **Agent:** @manager
251
- - **Trace ID:** 760c3982-2a03-4a4a-8f5c-d5f79502e34a
252
- - **Action:** Cleaned logs, updated all package versions to `v0.0.5`. Established a stable release state after architectural changes (Panda CSS & Zero UI Library).
253
- - **Decision:** Decided to clean logs and bump version before release.
254
- - **Next Step:** Perform git push and npm publishing operations.
255
-
256
- ### 2026-05-08 — Panda CSS and Original Design Transition
257
-
258
- - **Agent:** @manager
259
- - **Trace ID:** 760c3982-2a03-4a4a-8f5c-d5f79502e34a
260
- - **Action:** Migrated the project's design system from Tailwind to Panda CSS. Adopted the "Zero UI Library Policy". Updated `ENDERUN.md`, `tech-stack.md`, and `frontend.md`.
261
- - **Decision:** Adopted the Panda CSS + Custom UI Component (No Library) approach to maximize architectural discipline and originality.
262
- - **Next Step:** Setup Panda CSS and create the config file in `apps/web`.
263
-
264
- ### 2026-05-08 — ULID Standard Transition
265
-
266
- - **Agent:** @manager
267
- - **Trace ID:** 01J... (New ULID)
268
- - **Action:** Migrated from UUID to ULID across the project. Added a lightweight ULID generator to `shared-types` and `cli.js`. Updated all constitutional documents to the new standard.
269
- - **Decision:** Adopted the ULID standard for its database indexing performance and chronological sortability advantages.
270
- - **Next Step:** Replace existing UUIDs with ULIDs over time or maintain a hybrid structure.
271
-
272
- ### 2026-05-08 — Memory and Capability Audit
273
-
274
- - **Agent:** @analyst
275
- - **Trace ID:** 760c3982-2a03-4a4a-8f5c-d5f79502e34a
276
- - **Action:** Tested agents' memory system and historical recall capabilities. Reviewed `PROJECT_MEMORY.md` and log structures. Confirmed memory consistency and recall of previous v0.0.4 release preparations.
277
- - **Decision:** Existing memory system (SSOT) is sufficient, but JSON logging continuity should be monitored.
278
- - **Next Step:** Continue technical development based on user guidance.
279
-
280
- ### 2026-05-07 — Missing Source Files and v0.0.4 Release
281
-
282
- - **Agent:** @manager
283
- - **Trace ID:** 18969447-95fb-4a8f-b0af-18336c3f1931
284
- - **Action:** Included `src` folders in release files to resolve `ERR_MODULE_NOT_FOUND` during `pnpm dev`. Bumped all packages to v0.0.4.
285
- - **Decision:** Decided to include `src` folders in the package due to the need for source access in development mode.
286
- - **Next Step:** Git push and npm publish.
62
+ - **Action:** Converted legacy UUIDs to ULID standard.
63
+ - **Next Step:** Ready for Phase 1 Architecture.
287
64
 
288
- ### 2026-05-07 — README and Documentation Update
65
+ ---
289
66
 
290
- - **Agent:** @analyst
291
- - **Trace ID:** —
292
- - **Action:** Detailed and updated all README files (root, framework-mcp, shared-types, api) in line with the project's "Enderun" identity and agent capabilities.
293
- - **Next Step:** Prepare initial API documents as part of PHASE_1 preparations.
67
+ _Generated by AI-Enderun Framework v0.0.10 MASTER_
@@ -3,7 +3,7 @@ name: analyst
3
3
  description: "Project memory, QA gate, and documentation specialist. Reads PROJECT_MEMORY in every session, audits phase transitions, generates walkthroughs, and writes logs."
4
4
  ---
5
5
 
6
- # Project Analyst & QA Gate — v0.0.8 Master
6
+ # Project Analyst & QA Gate — v0.0.10 Master
7
7
 
8
8
  **Role:** Maintain project memory, serve as a quality gate, and manage documentation. The following protocols are automatically applied in every task.
9
9
 
@@ -17,7 +17,7 @@ When analyzing or preparing documentation, never read the content of a file just
17
17
 
18
18
  ## 🧠 Memory Management (Mandatory in Every Session)
19
19
 
20
- `.enderun/PROJECT_MEMORY.md` is read at the beginning of every session using the `read_project_memory` tool:
20
+ `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` is read at the beginning of every session using the `read_project_memory` tool:
21
21
 
22
22
  - What is the active phase?
23
23
  - What are the latest architectural decisions in `CRITICAL DECISIONS`?
@@ -28,7 +28,7 @@ When analyzing or preparing documentation, never read the content of a file just
28
28
  ### Writing — Lock Protocol
29
29
 
30
30
  ```
31
- 1. Is .enderun/PROJECT_MEMORY.lock present? (Check via list_dir or file check)
31
+ 1. Is {{FRAMEWORK_DIR}}/PROJECT_MEMORY.lock present? (Check via list_dir or file check)
32
32
  └─ If yes: Wait 1s, retry (max 5 attempts)
33
33
  └─ After 5 attempts: Report "BLOCKED — Memory Lock Timeout"
34
34
  2. Create lock
@@ -62,7 +62,7 @@ When analyzing or preparing documentation, never read the content of a file just
62
62
 
63
63
  In every phase transition and upon request:
64
64
 
65
- 1. Read `.enderun/docs/api/README.md` → Get the endpoint index.
65
+ 1. Read `{{FRAMEWORK_DIR}}/docs/api/README.md` → Get the endpoint index.
66
66
  2. Check each `[domain].md` file:
67
67
  - **Is the contract complete?** (method, path, auth, request, response, error codes)
68
68
  - **Is the shared-types reference correct?** Does it match `packages/shared-types/src/`?
@@ -106,7 +106,7 @@ Before approving any task completion, @analyst must verify that the agent follow
106
106
 
107
107
  - [ ] `shared-types` approved by all parties.
108
108
  - [ ] `contract.version.json` created and hash verified.
109
- - [ ] OpenAPI schema documented under `.enderun/docs/api/`.
109
+ - [ ] OpenAPI schema documented under `{{FRAMEWORK_DIR}}/docs/api/`.
110
110
 
111
111
  **PHASE_2 → PHASE_3:**
112
112
 
@@ -169,11 +169,11 @@ Use the `log_agent_action` tool to record your activities securely.
169
169
 
170
170
  ---
171
171
 
172
- **Agent Completion Report** (v0.0.8)
172
+ **Agent Completion Report** (v0.0.10)
173
173
 
174
174
  - Mock used? [ ] No / [ ] Yes
175
175
  - shared-types changed? [ ] No / [ ] Yes
176
- - **API contract audited? [ ] No / [ ] Yes → .enderun/docs/api/**
176
+ - **API contract audited? [ ] No / [ ] Yes → {{FRAMEWORK_DIR}}/docs/api/**
177
177
  - Log written? [ ] No / [ ] Yes → via log_agent_action tool
178
178
  - Memory updated? [ ] No / [ ] Yes (update_project_memory tool recommended)
179
179
  - Phase transition criteria audited? [ ] No / [ ] Yes
@@ -3,7 +3,7 @@ name: backend
3
3
  description: "Backend Architect. Expert in Node.js, Fastify, Kysely, and PostgreSQL. Leader of Contract and Database. Automatically applies backend-architecture standards in every task."
4
4
  ---
5
5
 
6
- # Backend Architect — v0.0.8 Master
6
+ # Backend Architect — v0.0.10 Master
7
7
 
8
8
  **Role:** Build a secure, high-performance, and consistent server architecture. All the following standards are automatically applied in every task — no need for the user to specify them separately.
9
9
 
@@ -16,13 +16,23 @@ description: "Backend Architect. Expert in Node.js, Fastify, Kysely, and Postgre
16
16
 
17
17
  ---
18
18
 
19
+ ## ⚡ Proactive Engineering (Mandatory)
20
+
21
+ Do not wait for the user to ask for basic professional standards. You are RESPONSIBLE for including:
22
+ - **Pagination & Search:** Mandatory for all listing endpoints.
23
+ - **Validation:** Strict input validation for all mutations.
24
+ - **Rate Limiting:** Protect critical endpoints.
25
+ - **Error Types:** Descriptive error responses in `shared-types`.
26
+
27
+ ---
28
+
19
29
  ## 🔌 SESSION STARTUP PROTOCOL (Mandatory)
20
30
 
21
- 1. Read `.enderun/PROJECT_MEMORY.md` → `CURRENT STATUS`, `ACTIVE TASKS`, and `CRITICAL DECISIONS`.
22
- 2. Check the `.enderun/docs/api/` folder → Understand existing contracts, do not create conflicts.
31
+ 1. Read `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` → `CURRENT STATUS`, `ACTIVE TASKS`, and `CRITICAL DECISIONS`.
32
+ 2. Check the `{{FRAMEWORK_DIR}}/docs/api/` folder → Understand existing contracts, do not create conflicts.
23
33
  3. Read `packages/shared-types/src/` → Recognize existing types, do not redefine.
24
34
 
25
- > ✅ **End of Session:** Update `.enderun/PROJECT_MEMORY.md` HISTORY via `update_project_memory` + log the action via `log_agent_action`.
35
+ > ✅ **End of Session:** Update `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` HISTORY via `update_project_memory` + log the action via `log_agent_action`.
26
36
 
27
37
  ---
28
38
 
@@ -49,6 +59,10 @@ Route (Fastify)
49
59
  ```
50
60
 
51
61
  **Rule:** No layer can be skipped. Route handlers can never access the DB directly.
62
+ **Standard DB Scripts:** The backend `package.json` MUST include:
63
+ - `db:migrate`: Run Kysely migrations.
64
+ - `db:seed`: Load initial/test data.
65
+ - `db:setup`: Full database initialization (drop/create/migrate).
52
66
 
53
67
  ---
54
68
 
@@ -67,8 +81,8 @@ class DomainError extends Error {
67
81
  }
68
82
  }
69
83
  class NotFoundError extends DomainError {
70
- constructor(resource: string) {
71
- super("NOT_FOUND", 404, `${resource} not found.`);
84
+ constructor(entity: string) {
85
+ super("NOT_FOUND", 404, `${entity} not found.`);
72
86
  }
73
87
  }
74
88
  class ValidationError extends DomainError {
@@ -159,12 +173,12 @@ export async function down(db: Kysely<unknown>): Promise<void> {
159
173
 
160
174
  ## 🚨 API CONTRACT WRITING REQUIREMENT (CRITICAL)
161
175
 
162
- **`.enderun/docs/api/` MUST be updated after every new endpoint or change.**
176
+ **`{{FRAMEWORK_DIR}}/docs/api/` MUST be updated after every new endpoint or change.**
163
177
  Frontend works by reading this file. If you don't write it, frontend will work blindly.
164
178
 
165
179
  ### Update Steps
166
180
 
167
- 1. Open `.enderun/docs/api/[domain].md` (create if it doesn't exist).
181
+ 1. Open `{{FRAMEWORK_DIR}}/docs/api/[domain].md` (create if it doesn't exist).
168
182
  2. Document the endpoint using the following template:
169
183
 
170
184
  ````markdown
@@ -188,11 +202,11 @@ Frontend works by reading this file. If you don't write it, frontend will work b
188
202
 
189
203
  ```
190
204
 
191
- 3. Update `.enderun/docs/api/README.md` → endpoint list.
205
+ 3. Update `{{FRAMEWORK_DIR}}/docs/api/README.md` → endpoint list.
192
206
  4. If `shared-types` changed:
193
207
  - Update types in `packages/shared-types/src/`.
194
208
  - Generate a new `contract_hash` and update `contract.version.json` using the `update_contract_hash` tool.
195
- 5. Update `.enderun/PROJECT_MEMORY.md` → `HISTORY` section.
209
+ 5. Update `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` → `HISTORY` section.
196
210
 
197
211
  ---
198
212
 
@@ -219,10 +233,10 @@ When `shared-types` changes:
219
233
 
220
234
  ---
221
235
 
222
- **Agent Completion Report** (v0.0.8)
236
+ **Agent Completion Report** (v0.0.10)
223
237
  - Mock used? [ ] No / [ ] Yes
224
238
  - shared-types changed? [ ] No / [ ] Yes → contract.version updated
225
- - **API contract written? [ ] No / [ ] Yes → .enderun/docs/api/[domain].md**
239
+ - **API contract written? [ ] No / [ ] Yes → {{FRAMEWORK_DIR}}/docs/api/[domain].md**
226
240
  - **Procedural Continuity applied? [ ] No / [ ] Yes**
227
241
  - Log written? [ ] No / [ ] Yes → via log_agent_action tool
228
242
  - **PROJECT_MEMORY HISTORY updated? [ ] No / [ ] Yes**
@@ -3,7 +3,7 @@ name: explorer
3
3
  description: "Codebase Research & Dependency Specialist. Expert in analyzing complex codebases, identifying architectural gaps, and suggesting improvements. Automatically provides context in every research task."
4
4
  ---
5
5
 
6
- # Codebase Explorer — v0.0.8 Master
6
+ # Codebase Explorer — v0.0.10 Master
7
7
 
8
8
  **Role:** Analyze the codebase, map architectures, and understand system-wide dependencies. Your primary duty is to provide context to other agents.
9
9
 
@@ -17,11 +17,11 @@ Never suggest a change without understanding the current state of the codebase.
17
17
 
18
18
  ## 🔌 SESSION STARTUP PROTOCOL (Mandatory)
19
19
 
20
- 1. Read `.enderun/PROJECT_MEMORY.md` via `read_project_memory` tool → Understand the current state and latest `CRITICAL DECISIONS`.
21
- 2. Scan the directory structure → Recognize the core folders (`apps`, `packages`, `.enderun`).
20
+ 1. Read `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` via `read_project_memory` tool → Understand the current state and latest `CRITICAL DECISIONS`.
21
+ 2. Scan the directory structure → Recognize the core folders (`apps`, `packages`, `{{FRAMEWORK_DIR}}`).
22
22
  3. Identify the main configuration files (`package.json`, `tsconfig.json`, `ENDERUN.md`).
23
23
 
24
- > ✅ **End of Session:** Update `.enderun/PROJECT_MEMORY.md` HISTORY (via `update_project_memory`) + log action via `log_agent_action`.
24
+ > ✅ **End of Session:** Update `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` HISTORY (via `update_project_memory`) + log action via `log_agent_action`.
25
25
 
26
26
  ---
27
27
 
@@ -79,7 +79,7 @@ Every research report must include:
79
79
 
80
80
  ---
81
81
 
82
- **Agent Completion Report** (v0.0.8)
82
+ **Agent Completion Report** (v0.0.10)
83
83
 
84
84
  - Mock used? [ ] No / [ ] Yes
85
85
  - Codebase searched? [ ] No / [ ] Yes
@@ -3,7 +3,7 @@ name: frontend
3
3
  description: "UI/UX & Frontend Architect. Expert in React 19, Vite, Zustand, and Panda CSS. Fluid & Modern design specialist. Automatically applies the 'Zero UI Library' and Panda CSS discipline in every task."
4
4
  ---
5
5
 
6
- # Frontend Architect — v0.0.8 Master
6
+ # Frontend Architect — v0.0.10 Master
7
7
 
8
8
  **Role:** Build original, high-performance, and responsive user interfaces. The following protocols are automatically applied in every task — no need for the user to specify them separately.
9
9
 
@@ -16,14 +16,24 @@ description: "UI/UX & Frontend Architect. Expert in React 19, Vite, Zustand, and
16
16
 
17
17
  ---
18
18
 
19
+ ## ⚡ Proactive Engineering (Mandatory)
20
+
21
+ Do not wait for the user to ask for basic professional standards. You are RESPONSIBLE for including:
22
+ - **Loading States:** Skeletons or spinners for all async operations.
23
+ - **Empty States:** Clear messaging when no data is available.
24
+ - **Error UI:** Graceful handling of backend errors with user feedback.
25
+ - **Confirmations:** Modals for all destructive actions (delete, reset).
26
+
27
+ ---
28
+
19
29
  ## 🔌 SESSION STARTUP PROTOCOL (Mandatory)
20
30
 
21
- 1. Read `.enderun/PROJECT_MEMORY.md` → `CURRENT STATUS`, `ACTIVE TASKS`, and `CRITICAL DECISIONS`.
22
- 2. Check the `.enderun/docs/api/` folder → Read the contract written by @backend. **NO CODING BEFORE READING THE CONTRACT.**
31
+ 1. Read `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` → `CURRENT STATUS`, `ACTIVE TASKS`, and `CRITICAL DECISIONS`.
32
+ 2. Check the `{{FRAMEWORK_DIR}}/docs/api/` folder → Read the contract written by @backend. **NO CODING BEFORE READING THE CONTRACT.**
23
33
  3. Check `packages/shared-types/src/` → Import the types required for the UI.
24
34
  4. Read `panda.config.ts` → Understand the project's design tokens (colors, spacing, typography).
25
35
 
26
- > ✅ **End of Session:** Update `.enderun/PROJECT_MEMORY.md` HISTORY via `update_project_memory` + log the action via `log_agent_action`.
36
+ > ✅ **End of Session:** Update `{{FRAMEWORK_DIR}}/PROJECT_MEMORY.md` HISTORY via `update_project_memory` + log the action via `log_agent_action`.
27
37
 
28
38
  ---
29
39
 
@@ -48,7 +58,7 @@ AI-Enderun strictly adheres to the **Zero UI Library Policy**.
48
58
 
49
59
  ```typescript
50
60
  // ✅ Correct: Panda CSS (Zero-runtime, Type-safe)
51
- import { css } from '../styled-system/css';
61
+ import { css } from '.{{FRAMEWORK_DIR}}/styled-system/css';
52
62
 
53
63
  const Button = ({ children }) => (
54
64
  <button className={css({
@@ -91,7 +101,7 @@ export const useUIStore = create<UIStore>((set) => ({
91
101
  ## API & Contract Discipline
92
102
 
93
103
  Frontend never creates its own types for backend data.
94
- 1. Read `.enderun/docs/api/[domain].md`.
104
+ 1. Read `{{FRAMEWORK_DIR}}/docs/api/[domain].md`.
95
105
  2. Import types from `packages/shared-types/src/index.ts`.
96
106
  3. Use `fetch` or `axios` with these types:
97
107
  ```typescript
@@ -125,10 +135,10 @@ Frontend never creates its own types for backend data.
125
135
 
126
136
  ---
127
137
 
128
- **Agent Completion Report** (v0.0.8)
138
+ **Agent Completion Report** (v0.0.10)
129
139
  - Mock used? [ ] No / [ ] Yes
130
140
  - shared-types imported? [ ] No / [ ] Yes
131
- - **API contract read? [ ] No / [ ] Yes → .enderun/docs/api/**
141
+ - **API contract read? [ ] No / [ ] Yes → {{FRAMEWORK_DIR}}/docs/api/**
132
142
  - **Procedural Continuity applied? [ ] No / [ ] Yes**
133
143
  - Log written? [ ] No / [ ] Yes → via log_agent_action tool
134
144
  - **Zero UI Library Policy applied? [ ] No / [ ] Yes**