diff --git a/.ai/standards/api_design.md b/.ai/standards/api_design.md index 19eeb4e2..38b3cb7b 100644 --- a/.ai/standards/api_design.md +++ b/.ai/standards/api_design.md @@ -1,5 +1,5 @@ # [DEF:Std:API_FastAPI:Standard] -# @TIER: CRITICAL +# @COMPLEXITY: 5 # @PURPOSE: Unification of all FastAPI endpoints following GRACE-Poly. # @LAYER: UI (API) # @INVARIANT: All non-trivial route logic must be wrapped in `belief_scope`. @@ -9,7 +9,7 @@ Every API route file must start with a module definition header: ```python # [DEF:ModuleName:Module] -# @TIER: [CRITICAL | STANDARD | TRIVIAL] +# @COMPLEXITY: [1-5] # @SEMANTICS: list, of, keywords # @PURPOSE: High-level purpose of the module. # @LAYER: UI (API) diff --git a/.ai/standards/architecture.md b/.ai/standards/architecture.md index 684f36cf..6b3ba2b5 100644 --- a/.ai/standards/architecture.md +++ b/.ai/standards/architecture.md @@ -1,5 +1,5 @@ # [DEF:Std:Architecture:Standard] -# @TIER: CRITICAL +# @COMPLEXITY: 5 # @PURPOSE: Core architectural decisions and service boundaries. # @LAYER: Infra # @INVARIANT: ss-tools MUST remain a standalone service (Orchestrator). @@ -15,11 +15,9 @@ ## 2. COMPONENT BOUNDARIES * **Plugins:** All business logic must be encapsulated in Plugins (`backend/src/plugins/`). * **TaskManager:** All long-running operations MUST be handled by the TaskManager. -* **Security:** Independent RBAC system managed in `auth.db`. ## 3. INTEGRATION STRATEGY * **Superset API:** Communication via REST API. -* **Database:** Local SQLite for metadata (`tasks.db`, `auth.db`, `migrations.db`). * **Filesystem:** Local storage for backups and git repositories. # [/DEF:Std:Architecture] diff --git a/.ai/standards/constitution.md b/.ai/standards/constitution.md index c1170d62..201ac951 100644 --- a/.ai/standards/constitution.md +++ b/.ai/standards/constitution.md @@ -1,5 +1,5 @@ # [DEF:Std:Constitution:Standard] -# @TIER: CRITICAL +# @COMPLEXITY: 5 # @PURPOSE: Supreme Law of the Repository. High-level architectural and business invariants. # @VERSION: 2.3.0 # @LAST_UPDATE: 2026-02-19 @@ -23,7 +23,6 @@ ### IV. Security & RBAC * **Permissions:** Every Plugin must define unique permission strings (e.g., `plugin:name:execute`). -* **Auth:** Mandatory registration in `auth.db`. ### V. Independent Testability * **Requirement:** Every feature must define "Independent Tests" for isolated verification. diff --git a/.ai/standards/plugin_design.md b/.ai/standards/plugin_design.md index c702d53b..a31f205c 100644 --- a/.ai/standards/plugin_design.md +++ b/.ai/standards/plugin_design.md @@ -1,5 +1,5 @@ # [DEF:Std:Plugin:Standard] -# @TIER: CRITICAL +# @COMPLEXITY: 5 # @PURPOSE: Standards for building and integrating Plugins. # @LAYER: Domain (Plugin) # @INVARIANT: All plugins MUST inherit from `PluginBase`. diff --git a/.ai/standards/semantics.md b/.ai/standards/semantics.md index 01d6f79f..04bf6235 100644 --- a/.ai/standards/semantics.md +++ b/.ai/standards/semantics.md @@ -30,7 +30,7 @@ ## III. ТОПОЛОГИЯ ФАЙЛА (СТРОГИЙ ПОРЯДОК) 1. **HEADER (Заголовок):**[DEF:filename:Module] - @COMPLEXITY: [1|2|3|4|5] *(алиас: `@C:`; legacy `@TIER` допустим только для обратной совместимости)* + @COMPLEXITY: [1|2|3|4|5] *(алиас: `@C:`)* @SEMANTICS: [keywords] @PURPOSE: [Однострочная суть] @LAYER: [Domain | UI | Infra] @@ -92,10 +92,6 @@ - Для UI требуются UX-контракты. - Использование `belief_scope` строго обязательно. -**Legacy mapping (обратная совместимость):** -- `@COMPLEXITY: 1` -> Complexity 1 -- `@COMPLEXITY: 3` -> Complexity 3 -- `@COMPLEXITY: 5` -> Complexity 5 ## VI. ПРОТОКОЛ ЛОГИРОВАНИЯ (THREAD-LOCAL BELIEF STATE) Логирование — это механизм трассировки рассуждений ИИ (CoT) и управления Attention Energy. Архитектура использует Thread-local storage (`_belief_state`), поэтому `ID` прокидывается автоматически. diff --git a/.ai/standards/ui_design.md b/.ai/standards/ui_design.md index b0f4a3e9..b74087a6 100644 --- a/.ai/standards/ui_design.md +++ b/.ai/standards/ui_design.md @@ -1,5 +1,5 @@ # [DEF:Std:UI_Svelte:Standard] -# @TIER: CRITICAL +# @COMPLEXITY: 5 # @PURPOSE: Unification of all Svelte components following GRACE-Poly (UX Edition). # @LAYER: UI # @INVARIANT: Every component MUST have `` anchors and UX tags. @@ -28,7 +28,7 @@ Each Svelte file must follow this structure: