agent-enderun 0.7.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.enderun/BRAIN_DASHBOARD.md +46 -0
- package/.enderun/PROJECT_MEMORY.md +46 -0
- package/.enderun/STATUS.md +62 -0
- package/.enderun/agents/agent_army_schema.json +85 -0
- package/.enderun/agents/analyst/agent.json +23 -0
- package/.enderun/agents/analyst/prompt.md +213 -0
- package/.enderun/agents/backend/agent.json +24 -0
- package/.enderun/agents/backend/prompt.md +327 -0
- package/.enderun/agents/devops/agent.json +61 -0
- package/.enderun/agents/devops/prompt.md +127 -0
- package/.enderun/agents/explorer/agent.json +22 -0
- package/.enderun/agents/explorer/prompt.md +115 -0
- package/.enderun/agents/frontend/agent.json +24 -0
- package/.enderun/agents/frontend/prompt.md +313 -0
- package/.enderun/agents/git/agent.json +22 -0
- package/.enderun/agents/git/prompt.md +99 -0
- package/.enderun/agents/manager/agent.json +48 -0
- package/.enderun/agents/manager/prompt.md +231 -0
- package/.enderun/agents/mobile/agent.json +21 -0
- package/.enderun/agents/mobile/prompt.md +81 -0
- package/.enderun/agents/native/agent.json +21 -0
- package/.enderun/agents/native/prompt.md +86 -0
- package/.enderun/agents/orchestrator/agent.json +53 -0
- package/.enderun/agents/orchestrator/prompt.md +124 -0
- package/.enderun/agents/qa/agent.json +57 -0
- package/.enderun/agents/qa/prompt.md +69 -0
- package/.enderun/agents/schema/agent-lifecycle-schema.json +65 -0
- package/.enderun/agents/security/agent.json +54 -0
- package/.enderun/agents/security/prompt.md +154 -0
- package/.enderun/claude.md +19 -0
- package/.enderun/cursor.md +19 -0
- package/.enderun/gemini.md +19 -0
- package/.enderun/knowledge/corporate-governance/analyst-contract-integrity-guide.md +92 -0
- package/.enderun/knowledge/corporate-governance/audit-logging-standard.md +59 -0
- package/.enderun/knowledge/corporate-governance/backend-high-risk-endpoint-guide.md +125 -0
- package/.enderun/knowledge/corporate-governance/branded-types-law.md +77 -0
- package/.enderun/knowledge/corporate-governance/contract-drift-detection-simulation.md +92 -0
- package/.enderun/knowledge/corporate-governance/corporate-governance-playbook.md +89 -0
- package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-checklist.md +56 -0
- package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-simulation.md +144 -0
- package/.enderun/knowledge/corporate-governance/corporate-project-scaffolding-sop.md +103 -0
- package/.enderun/knowledge/corporate-governance/domain-error-handling-standard.md +75 -0
- package/.enderun/knowledge/corporate-governance/frontend-high-risk-modal-guide.md +211 -0
- package/.enderun/knowledge/corporate-governance/governance-baseline-briefing-template.md +54 -0
- package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow-simulation.md +167 -0
- package/.enderun/knowledge/corporate-governance/high-risk-actions-managerapproval.md +76 -0
- package/.enderun/knowledge/corporate-governance/high-risk-security-modal-hermes-flow.md +49 -0
- package/.enderun/knowledge/corporate-governance/manager-first-30-days-guide.md +112 -0
- package/.enderun/knowledge/corporate-governance/manager-first-three-briefings.md +79 -0
- package/.enderun/knowledge/deployment_checklist.md +7 -0
- package/{.antigravitycli → .enderun}/knowledge/framework_vs_user_project_boundary.md +3 -3
- package/{.antigravitycli → .enderun}/knowledge/frontend_professionalization_guidelines.md +17 -20
- package/{.antigravitycli → .enderun}/knowledge/hermes_live_test_guidelines.md +9 -9
- package/{.antigravitycli → .enderun}/knowledge/hermes_protocol.md +2 -2
- package/{.antigravitycli → .enderun}/knowledge/manager_authority_audit_enforcement.md +11 -11
- package/{.antigravitycli → .enderun}/knowledge/project_scaffold_guidelines.md +8 -8
- package/{.antigravitycli → .enderun}/knowledge/reference_application_guidelines.md +7 -7
- package/.enderun/logs/analyst.json +1 -0
- package/.enderun/logs/backend.json +1 -0
- package/.enderun/logs/devops.json +1 -0
- package/.enderun/logs/explorer.json +1 -0
- package/.enderun/logs/frontend.json +1 -0
- package/.enderun/logs/git.json +1 -0
- package/.enderun/logs/manager.json +1 -0
- package/.enderun/logs/mobile.json +1 -0
- package/.enderun/logs/native.json +1 -0
- package/.enderun/logs/orchestrator.json +1 -0
- package/.enderun/logs/qa.json +1 -0
- package/.enderun/logs/security.json +1 -0
- package/.enderun/memory-graph/agent-contexts/analyst.json +1 -0
- package/.enderun/memory-graph/agent-contexts/backend.json +1 -0
- package/.enderun/memory-graph/agent-contexts/devops.json +1 -0
- package/.enderun/memory-graph/agent-contexts/explorer.json +1 -0
- package/.enderun/memory-graph/agent-contexts/frontend.json +1 -0
- package/.enderun/memory-graph/agent-contexts/git.json +1 -0
- package/.enderun/memory-graph/agent-contexts/manager.json +1 -0
- package/.enderun/memory-graph/agent-contexts/mobile.json +1 -0
- package/.enderun/memory-graph/agent-contexts/native.json +1 -0
- package/.enderun/memory-graph/agent-contexts/orchestrator.json +1 -0
- package/.enderun/memory-graph/agent-contexts/qa.json +1 -0
- package/.enderun/memory-graph/agent-contexts/security.json +1 -0
- package/.enderun/memory-graph/graph.json +26 -0
- package/.enderun/memory-graph/shared-facts.json +52 -0
- package/.enderun/monitoring/.gitkeep +0 -0
- package/.enderun/queue/README.md +36 -0
- package/ENDERUN.md +4 -4
- package/README.md +233 -109
- package/bin/cli.js +13 -2138
- package/bin/hermes-sandbox.js +0 -0
- package/bin/validate-agent-army.js +3 -3
- package/claude.md +19 -0
- package/cursor.md +19 -0
- package/docs/architecture/approval-flows.md +2 -37
- package/docs/backend/error-handling.md +2 -51
- package/docs/frontend/component-patterns.md +2 -47
- package/docs/getting-started.md +7 -15
- package/docs/roadmap.md +2 -2
- package/framework-mcp/README.md +3 -9
- package/framework-mcp/dist/index.js +0 -0
- package/framework-mcp/dist/schemas.js +3 -3
- package/framework-mcp/dist/tools/framework.js +17 -10
- package/framework-mcp/dist/tools/governance.js +696 -0
- package/framework-mcp/dist/tools/index.js +14 -12
- package/framework-mcp/dist/tools/memory.js +106 -0
- package/framework-mcp/dist/tools/monitoring.js +294 -0
- package/framework-mcp/dist/tools/orchestration.js +368 -0
- package/framework-mcp/dist/tools/pipeline.js +267 -0
- package/framework-mcp/dist/utils.js +25 -3
- package/framework-mcp/package.json +3 -3
- package/framework-mcp/src/schemas.ts +3 -45
- package/framework-mcp/src/tools/framework.ts +18 -10
- package/framework-mcp/src/tools/governance.ts +891 -0
- package/framework-mcp/src/tools/index.ts +14 -12
- package/framework-mcp/src/tools/memory.ts +103 -0
- package/framework-mcp/src/tools/monitoring.ts +351 -0
- package/framework-mcp/src/tools/orchestration.ts +439 -0
- package/framework-mcp/src/tools/pipeline.ts +353 -0
- package/framework-mcp/src/utils.ts +24 -3
- package/framework-mcp/tsconfig.json +2 -1
- package/gemini.md +19 -0
- package/package.json +16 -20
- package/.antigravitycli/BRAIN_DASHBOARD.md +0 -43
- package/.antigravitycli/ENDERUN.md +0 -253
- package/.antigravitycli/PROJECT_MEMORY.md +0 -78
- package/.antigravitycli/STATUS.md +0 -21
- package/.antigravitycli/agents/agent_army_schema.json +0 -79
- package/.antigravitycli/agents/analyst/agent.json +0 -55
- package/.antigravitycli/agents/backend/agent.json +0 -58
- package/.antigravitycli/agents/explorer/agent.json +0 -50
- package/.antigravitycli/agents/frontend/agent.json +0 -56
- package/.antigravitycli/agents/git/agent.json +0 -53
- package/.antigravitycli/agents/manager/agent.json +0 -82
- package/.antigravitycli/agents/mobile/agent.json +0 -52
- package/.antigravitycli/agents/native/agent.json +0 -56
- package/.antigravitycli/assets/manager.png +0 -0
- package/.antigravitycli/blueprints/README.md +0 -82
- package/.antigravitycli/blueprints/backend/errors/config/meta.json +0 -16
- package/.antigravitycli/blueprints/backend/errors/domain-error.ts +0 -64
- package/.antigravitycli/knowledge/README.md +0 -22
- package/.antigravitycli/knowledge/database_governance_guidelines.md +0 -118
- package/.antigravitycli/knowledge/deployment_checklist.md +0 -133
- package/.antigravitycli/knowledge/documentation_ownership.md +0 -122
- package/.antigravitycli/knowledge/documentation_ownership_status.md +0 -122
- package/.antigravitycli/knowledge/enterprise_capabilities_reference.md +0 -149
- package/.antigravitycli/knowledge/enterprise_frontend_adaptation.md +0 -232
- package/.antigravitycli/knowledge/enterprise_project_adaptation.md +0 -168
- package/.antigravitycli/knowledge/frontend_real_battle_test_protocol.md +0 -162
- package/antigravity.md +0 -15
- package/docs/architecture/decisions/README.md +0 -31
- package/docs/architecture/notification-strategy.md +0 -38
- package/docs/backend/audit-logging.md +0 -34
- package/docs/frontend/forms.md +0 -40
- package/docs/frontend/notifications.md +0 -37
- package/framework-mcp/dist/tools/academy.js +0 -182
- package/framework-mcp/dist/tools/database.js +0 -57
- package/framework-mcp/dist/tools/repository.js +0 -101
- package/framework-mcp/dist/tools/scaffold.js +0 -132
- package/framework-mcp/src/tools/academy.ts +0 -180
- package/framework-mcp/src/tools/database.ts +0 -54
- package/framework-mcp/src/tools/repository.ts +0 -101
- package/framework-mcp/src/tools/scaffold.ts +0 -150
- /package/{.antigravitycli/messages → .enderun/benchmarks}/.gitkeep +0 -0
- /package/{.antigravitycli → .enderun}/cli-commands.json +0 -0
- /package/{.antigravitycli → .enderun}/config.json +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/api_design_rules.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/async_error_handling.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/blueprint_driven_construction.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/branded_types_pattern.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/code_review_checklist.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/contract_versioning.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/database_migration.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/git_commit_strategy.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/legacy_onboarding.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/monitoring_setup.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/performance_guidelines.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/repository_patterns.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/responsive_design_standards.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/security_scanning.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/testing_standards.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/troubleshooting_guide.md +0 -0
- /package/{.antigravitycli → .enderun}/knowledge/zero_ui_library_policy.md +0 -0
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
# Enterprise Frontend Adaptation Framework
|
|
2
|
-
|
|
3
|
-
**Version:** 1.0
|
|
4
|
-
**Owner:** @manager
|
|
5
|
-
**Created:** May 24, 2026
|
|
6
|
-
**Purpose:** Elevate the @frontend agent to professional-grade maturity (9.0+) in large, complex, and legacy corporate projects. This document translates the "shape yourself to the user's project" (D004) principle into concrete, enforceable frontend rules.
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## 1. Core Philosophy (Non-Negotiable Rules)
|
|
11
|
-
|
|
12
|
-
The single greatest mistake in enterprise frontend development is imposing "our way" of doing things on an established system.
|
|
13
|
-
|
|
14
|
-
**Supreme Rule for @frontend:**
|
|
15
|
-
|
|
16
|
-
> **"Shape yourself to the user's existing project. Work within the established structure, maintain the existing quality thresholds, and respect the conventions of the active development teams."**
|
|
17
|
-
|
|
18
|
-
This means:
|
|
19
|
-
- If a project already uses Tailwind CSS + shadcn/ui, **do not** try to force the "Zero UI Library" rule.
|
|
20
|
-
- If a project uses a feature-sliced or domain-driven folder layout, **do not** suddenly dictate placing all components in a flat `ui/` directory.
|
|
21
|
-
- If a project is a massive monorepo and `packages/ui` already exists, **do not** blindly apply the "no shared package creation" rule; adapt to their setup with @manager oversight.
|
|
22
|
-
- If the codebase is legacy, **do not** force a complete rewrite into modern compound component patterns.
|
|
23
|
-
|
|
24
|
-
**The Primary Mission of @frontend:** Accept the reality of the existing system and build the **most professional, accessible, and performant** solutions possible within that specific context.
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## 2. Enterprise Frontend Discovery Protocol (EFDP)
|
|
29
|
-
|
|
30
|
-
When entering a new or unknown large corporate project, @frontend **must never** start writing code immediately. It must first execute the following discovery protocol.
|
|
31
|
-
|
|
32
|
-
### 2.1 Architectural Discovery (Mandatory)
|
|
33
|
-
|
|
34
|
-
- **Identify the existing UI organization pattern:**
|
|
35
|
-
- Feature-based (e.g., `/features/users`, `/features/orders`)
|
|
36
|
-
- Technical layer (e.g., `/components`, `/pages`, `/hooks`)
|
|
37
|
-
- Domain-driven
|
|
38
|
-
- Hybrid
|
|
39
|
-
- **Locate where shared components reside:**
|
|
40
|
-
- `src/components/ui/`
|
|
41
|
-
- `packages/ui/`
|
|
42
|
-
- `libs/design-system/`
|
|
43
|
-
- Elsewhere?
|
|
44
|
-
- **Detect design tokens and the styling system in use:**
|
|
45
|
-
- Panda CSS
|
|
46
|
-
- Tailwind CSS + custom configuration
|
|
47
|
-
- SCSS + design tokens
|
|
48
|
-
- CSS-in-JS (Emotion, styled-components)
|
|
49
|
-
- Other?
|
|
50
|
-
- **Determine component library status:**
|
|
51
|
-
- No library (fully custom)
|
|
52
|
-
- Project-internal custom component sets
|
|
53
|
-
- Popular library usage (MUI, Ant Design, shadcn/ui, Chakra UI, etc.)
|
|
54
|
-
- In-house corporate design system
|
|
55
|
-
|
|
56
|
-
### 2.2 Team and Process Discovery
|
|
57
|
-
|
|
58
|
-
- Who actively maintains this frontend codebase? (Single team vs. multiple distinct teams?)
|
|
59
|
-
- How are design system changes managed? (Is there an RFC process? How are reviews handled?)
|
|
60
|
-
- Are there established accessibility and performance standards? (Is there a checklist or active performance budget?)
|
|
61
|
-
- What is the testing culture? (Cypress, Playwright, Vitest + React Testing Library, or no tests?)
|
|
62
|
-
|
|
63
|
-
### 2.3 Risks and Constraints Discovery
|
|
64
|
-
|
|
65
|
-
- Which pages are performance-critical? (Dashboards, reporting panels, admin consoles?)
|
|
66
|
-
- Where is PII and sensitive data displayed?
|
|
67
|
-
- Is mobile responsiveness or native shell support (e.g., PWA, React Native shell) mandatory?
|
|
68
|
-
- What are the legacy browser support requirements? (Old Safari, legacy corporate browsers, etc.)
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
## 3. Design System & Component Library Decision Matrix
|
|
73
|
-
|
|
74
|
-
This matrix governs one of the most critical integration decisions in enterprise work:
|
|
75
|
-
|
|
76
|
-
| Existing System | Mandatory @frontend Behavior | @manager Approval Required? |
|
|
77
|
-
|-----------------|-----------------------------|-----------------------------|
|
|
78
|
-
| No design system | Scaffolds the 8-10 core components (Button, Input, Modal, Table, Card, etc.) using Panda or the existing styling engine | No (Initial bootstrap) |
|
|
79
|
-
| Project-internal `components/ui` exists | **Reuse** existing components, write new components in the same directories using identical patterns | No |
|
|
80
|
-
| `packages/ui` or `libs/design-system` exists | Accept this package as the **primary source of truth**. Propose additions to this package only with @manager approval | Yes (Written approval) |
|
|
81
|
-
| Popular library in use (MUI, AntD, shadcn) | Do not suggest "re-writing it". **Accept** the library and write thin, accessible wrappers on top | Yes (Major architectural decision) |
|
|
82
|
-
| Tailwind + shadcn/ui combination | Flexible Zero UI Policy. Work smoothly within the established Tailwind/shadcn ecosystem | Yes (Written approval) |
|
|
83
|
-
|
|
84
|
-
**Golden Rule:** Never adopt a "this project was designed incorrectly, we must fix it" attitude. Focus on adding value to the existing investment.
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## 4. Incremental Adoption in Legacy & Large Codebases
|
|
89
|
-
|
|
90
|
-
Most enterprise codebases contain legacy modules. @frontend must follow these rules strictly:
|
|
91
|
-
|
|
92
|
-
### 4.1 Incremental Migration Rules
|
|
93
|
-
|
|
94
|
-
- **Never** propose "rewriting the entire UI".
|
|
95
|
-
- When writing a new feature or page:
|
|
96
|
-
- Reuse existing components where possible.
|
|
97
|
-
- If a new component is mandatory, position it as the **new standard** (designed to slowly phase out legacy ones).
|
|
98
|
-
- If a massive page is being redesigned, modernize it **piece by piece** (Strangler Fig Pattern).
|
|
99
|
-
- Never independently undertake dropping legacy components. This requires an explicit @manager briefing + a migration plan.
|
|
100
|
-
|
|
101
|
-
### 4.2 "Modern Islands" Strategy
|
|
102
|
-
|
|
103
|
-
Every high-quality, accessible component or hook you write serves as a "modern island" in that project. Over time, other developers adopt these patterns. This is the most effective and lowest-risk modernization strategy.
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
## 5. Data-Heavy Enterprise UI Standards
|
|
108
|
-
|
|
109
|
-
The most complex areas in enterprise apps are dashboards, admin panels, complex forms, and massive data tables.
|
|
110
|
-
|
|
111
|
-
### Mandatory Standards
|
|
112
|
-
|
|
113
|
-
- **Tables:** Always evaluate virtualization (TanStack Table + react-window or similar). Virtualization is mandatory if displaying 50+ rows.
|
|
114
|
-
- **Forms:** For complex forms (10+ fields), a form state management library (react-hook-form + zod is recommended) must be used. Manual state management is forbidden.
|
|
115
|
-
- **Dashboards:**
|
|
116
|
-
- Progressive loading, streaming, or Suspense is mandatory for heavy data-fetching panels.
|
|
117
|
-
- Each widget must independently manage its loading and error states.
|
|
118
|
-
- **Admin Panels:** High-risk actions must integrate a confirmation modal and @manager approval workflows (as defined in agent protocols).
|
|
119
|
-
|
|
120
|
-
---
|
|
121
|
-
|
|
122
|
-
## 6. Performance and Accessibility in the Enterprise Context
|
|
123
|
-
|
|
124
|
-
### Performance
|
|
125
|
-
|
|
126
|
-
- Bundle size analysis must be executed for every major new feature.
|
|
127
|
-
- Code splitting (route-level + component-level dynamic imports) is mandatory in large-scale apps.
|
|
128
|
-
- Image optimization and proper font loading must be evaluated in every project.
|
|
129
|
-
- Core Web Vitals targets (LCP < 2.5s, INP < 200ms, CLS < 0.1) serve as the benchmark; projects set realistic budgets.
|
|
130
|
-
|
|
131
|
-
### Accessibility (WCAG 2.2 AA)
|
|
132
|
-
|
|
133
|
-
- Keyboard navigation and focus trap management are heavily checked in complex UI layers (modals, slide-out drawers, custom dropdowns).
|
|
134
|
-
- ARIA usage is verified for correctness, not just presence (no ARIA is better than bad ARIA).
|
|
135
|
-
- Color contrast ratios and touch target minimums (44x44px) are non-negotiable.
|
|
136
|
-
|
|
137
|
-
---
|
|
138
|
-
|
|
139
|
-
## 7. Testing in Large Corporate Projects
|
|
140
|
-
|
|
141
|
-
Testing discipline is critical because the ripple effect of changes in large projects is vast.
|
|
142
|
-
|
|
143
|
-
**Mandatory Rules:**
|
|
144
|
-
- Component tests must be written for every newly introduced shared component.
|
|
145
|
-
- Integration tests must be written for critical admin and financial checkout flows.
|
|
146
|
-
- Visual regression testing (e.g., Chromatic, Percy) must be evaluated at the design system level if budget and processes exist.
|
|
147
|
-
- Automated gates must flag contract breaking changes immediately when frontend tests fail.
|
|
148
|
-
|
|
149
|
-
---
|
|
150
|
-
|
|
151
|
-
## 8. Enterprise RED LINES for @frontend
|
|
152
|
-
|
|
153
|
-
The following actions are **strictly forbidden**:
|
|
154
|
-
|
|
155
|
-
- Writing code in your own custom style while ignoring the project's existing design system or component library.
|
|
156
|
-
- Proposing or creating a new `packages/ui` or `libs/design-system` in a monorepo without explicit @manager approval.
|
|
157
|
-
- Initiating a massive migration in a legacy codebase to "modernize everything" without prior authorization.
|
|
158
|
-
- Criticizing or dismissing a working, established UI library (MUI, AntD, etc.) as "bad" or "legacy".
|
|
159
|
-
- Exposing high-risk admin actions on the UI without hooking them to @manager briefings and approval checks.
|
|
160
|
-
|
|
161
|
-
### 8.1 User Notification & Feedback Standards (Mandatory Toaster)
|
|
162
|
-
|
|
163
|
-
User feedback must be **centralized and consistent** in enterprise environments.
|
|
164
|
-
|
|
165
|
-
**Mandatory Rule:**
|
|
166
|
-
- All user notifications (success, error, warning, info), confirmation dialogues, high-risk warnings, and `managerApproval` status feedback **must** be routed exclusively through the Toaster.
|
|
167
|
-
- Using `window.alert()`, `window.confirm()`, or custom non-toaster alert components is **strictly forbidden**.
|
|
168
|
-
- In high-risk workflows, inform users with clear, accessible, and consistent toaster messages.
|
|
169
|
-
- The toaster implementation must comply with accessibility guidelines (correct ARIA live regions, keyboard support).
|
|
170
|
-
|
|
171
|
-
---
|
|
172
|
-
|
|
173
|
-
## 9. Documentation Ownership: Framework vs. User Project
|
|
174
|
-
|
|
175
|
-
Documentation ownership must remain absolutely clear in large projects:
|
|
176
|
-
|
|
177
|
-
### Framework Documentation (Agent Enderun)
|
|
178
|
-
- Location: `.antigravitycli/knowledge/`
|
|
179
|
-
- Content: **Mandatory rules**, patterns, and governance standards that all agents must follow across any project.
|
|
180
|
-
- Examples:
|
|
181
|
-
- Notification Toaster requirement
|
|
182
|
-
- Zero UI Library policy definitions
|
|
183
|
-
- `managerApproval` workflow guidelines
|
|
184
|
-
- Enterprise Frontend Adaptation rules
|
|
185
|
-
|
|
186
|
-
### User Project Documentation
|
|
187
|
-
|
|
188
|
-
The user's application must maintain its own technical decisions, folder conventions, and style rules **within its own folder structure**.
|
|
189
|
-
|
|
190
|
-
**Mandatory Rule:**
|
|
191
|
-
- @frontend (and all other agents) must write all documents generated for the user's project (architecture decisions, toaster setup, modal details, component patterns, etc.) **directly into the user project's own `docs/` folder**.
|
|
192
|
-
- These documents are **never** written inside `.antigravitycli/` (neither `.antigravitycli/docs/` nor `.antigravitycli/knowledge/`).
|
|
193
|
-
|
|
194
|
-
**Recommended Locations (Inside the User Project):**
|
|
195
|
-
- General architecture decisions and ADRs → `docs/` (project root)
|
|
196
|
-
- Frontend-specific guidelines and patterns → `docs/frontend/` or `apps/web/docs/`
|
|
197
|
-
- Backend-specific standards → `docs/backend/`
|
|
198
|
-
- Project toaster integration details and confirmation modal specs → `docs/frontend/notifications.md` or `docs/architecture/approval-flows.md`
|
|
199
|
-
|
|
200
|
-
**Key Boundary Distinction:**
|
|
201
|
-
- **Framework Rules** (e.g., “All notifications must use the Toaster,” “High-risk actions require `managerApproval`”) → `.antigravitycli/knowledge/`
|
|
202
|
-
- **User Project Implementation** (e.g., which toaster library is installed, how custom modals are built, approval flows layout) → User project's own `docs/` directory
|
|
203
|
-
|
|
204
|
-
**Agent Responsibility:**
|
|
205
|
-
@frontend must actively generate and maintain these project-specific docs within the user's `docs/` folder. A professional agent delivers not just code, but sustainable, well-documented systems.
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
## 10. Enforcement and Responsibility
|
|
210
|
-
|
|
211
|
-
- This framework will be integrated directly into `frontend.md` and enforced as **mandatory**.
|
|
212
|
-
- If @frontend fails to comply with these rules, the task is marked as "incomplete".
|
|
213
|
-
- @manager, @analyst, and @explorer actively audit compliance.
|
|
214
|
-
- For every major task, @frontend must submit the "Enterprise Adaptation Checklist".
|
|
215
|
-
|
|
216
|
-
---
|
|
217
|
-
|
|
218
|
-
## 11. Maturity Roadmap
|
|
219
|
-
|
|
220
|
-
Enforcing this framework systematically increases @frontend's corporate readiness score:
|
|
221
|
-
- Initial: 6.5/10
|
|
222
|
-
- Target (Post-integration & testing): 9.0/10
|
|
223
|
-
|
|
224
|
-
**Next Actions:**
|
|
225
|
-
1. Integrate this framework directly into `.antigravitycli/agents/frontend.md` as core instructions.
|
|
226
|
-
2. Align `frontend_professionalization_guidelines.md` with these directives.
|
|
227
|
-
3. Establish the Enterprise Frontend Adaptation Checklist.
|
|
228
|
-
4. Log progress in the Risk Tracking Dashboard under "@frontend Weakness".
|
|
229
|
-
|
|
230
|
-
---
|
|
231
|
-
|
|
232
|
-
**This framework is the cornerstone of @frontend's transition to a truly professional, enterprise-ready agent.**
|
|
@@ -1,168 +0,0 @@
|
|
|
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) → `.antigravitycli/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 `.antigravitycli/` is strictly forbidden.
|
|
161
|
-
|
|
162
|
-
Detailed rule: `.antigravitycli/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.
|
|
@@ -1,162 +0,0 @@
|
|
|
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 `.antigravitycli/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 `.antigravitycli/`), 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 `.antigravitycli/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 `.antigravitycli/knowledge/enterprise_frontend_adaptation.md` and/or `.antigravitycli/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.*
|
package/antigravity.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Agent Enderun — Antigravity Adapter
|
|
2
|
-
|
|
3
|
-
This file is the entry point for Antigravity CLI. The project's "Supreme Law" and all instructions are located in the following file:
|
|
4
|
-
|
|
5
|
-
👉 **[.agents/ENDERUN.md](.agents/ENDERUN.md)**
|
|
6
|
-
|
|
7
|
-
### 🤖 AGENT DIRECTIVE
|
|
8
|
-
You are ALWAYS operating as `@manager` (Team-Lead) by default — on every message, every turn. The user does NOT need to type `@manager`. Typing a specific agent (e.g. `@backend`) explicitly will override this and activate that specialist role directly. You are responsible for analysis and delegation.
|
|
9
|
-
|
|
10
|
-
⚠️ **CRITICAL STARTUP REQUIREMENT:**
|
|
11
|
-
At the start of every new session/conversation or first turn, before you perform any task or respond to the user:
|
|
12
|
-
1. You **MUST** read `.agents/PROJECT_MEMORY.md` immediately (using the `read_project_memory` tool or the most specific file viewing tool) to restore the project's state, active phase, Trace ID, and recent history.
|
|
13
|
-
2. You **MUST** read `.agents/agents/manager/agent.json` (or the specialist's JSON file in `.agents/agents/{agent_name}/agent.json` if explicitly overridden) to load your role-specific rules, workflows, and checklists.
|
|
14
|
-
|
|
15
|
-
Please read the Supreme Law thoroughly before taking any action.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Architecture Decision Records (ADRs)
|
|
2
|
-
|
|
3
|
-
Use this directory to store all major architectural and technical choices made during the development of your corporate applications. Storing decisions as markdown-based ADRs creates a strong institutional memory, allowing future developers and AI agents to quickly understand the rationale behind the system's design.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 📝 ADR Template
|
|
8
|
-
|
|
9
|
-
Every new ADR must follow this exact format:
|
|
10
|
-
|
|
11
|
-
```markdown
|
|
12
|
-
# ADR [ID]: [Title of Decision]
|
|
13
|
-
|
|
14
|
-
**Date:** YYYY-MM-DD
|
|
15
|
-
**Status:** [Proposed | Approved | Superseded | Retired]
|
|
16
|
-
**Author:** [Agent Name | Developer Name]
|
|
17
|
-
|
|
18
|
-
## Context
|
|
19
|
-
Provide brief background details regarding the problem we are solving, technical constraints, and why a decision is necessary.
|
|
20
|
-
|
|
21
|
-
## Decision
|
|
22
|
-
Detail the chosen path, technologies, patterns, or libraries being adopted.
|
|
23
|
-
|
|
24
|
-
## Consequences
|
|
25
|
-
Outline the positive, negative, and neutral impacts of this decision on the codebase, performance, and maintenance.
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
> [!IMPORTANT]
|
|
31
|
-
> **Traceability:** Every ADR must include the active **Trace ID** under which it was generated to maintain 100% development accountability.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# Notification Strategy & Toast Patterns
|
|
2
|
-
|
|
3
|
-
This document defines the central notification patterns for all web applications, ensuring consistent, responsive, and highly accessible user feedback.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 🎨 Toast Design Tokens
|
|
8
|
-
|
|
9
|
-
All notifications must be categorized under these specific fütüristik statuses:
|
|
10
|
-
|
|
11
|
-
- **SUCCESS (Emerald Green):** For completed asynchronous actions.
|
|
12
|
-
- **ERROR (Ruby Red):** For blocked operations or aborted transactions.
|
|
13
|
-
- **INFO (Neon Blue):** For background jobs and non-blocking events.
|
|
14
|
-
- **WARNING (Amber Orange):** For dangerous or high-risk state mutations.
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## 💻 Technical Integration (Sonner Toaster)
|
|
19
|
-
|
|
20
|
-
The frontend applications must use the custom Sonner Toaster wrapped in a highly accessible container:
|
|
21
|
-
|
|
22
|
-
```tsx
|
|
23
|
-
import { toast } from "sonner";
|
|
24
|
-
|
|
25
|
-
// Standard Success Toast
|
|
26
|
-
toast.success("User role updated successfully.", {
|
|
27
|
-
description: "Trace ID: 01JK5V3A4B5...",
|
|
28
|
-
action: {
|
|
29
|
-
label: "Undo",
|
|
30
|
-
onClick: () => handleRollback()
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
> [!TIP]
|
|
38
|
-
> **Accessibility:** Every toast notification must carry an explicit `role="alert"` or `role="status"` attribute to ensure compatible screen-reader audio feedback.
|