Add Version: 1.0 to all contracts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# Contract: Controls + Selection
|
# Contract: Controls + Selection
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## Shared Base
|
## Shared Base
|
||||||
|
|
||||||
- This pattern inherits the shared `table-management` contract:
|
- This pattern inherits the shared `table-management` contract:
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Contract: Forms + Validation + Suggestions
|
# Contract: Forms + Validation + Suggestions
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## Form Structure
|
## Form Structure
|
||||||
|
|
||||||
- Group fields semantically and keep labels explicit.
|
- Group fields semantically and keep labels explicit.
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Contract: REST API Conventions (Go Web Applications)
|
# Contract: REST API Conventions (Go Web Applications)
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## URL Naming
|
## URL Naming
|
||||||
|
|
||||||
- Resources are plural nouns: `/api/assets`, `/api/components`, `/api/pricelists`.
|
- Resources are plural nouns: `/api/assets`, `/api/components`, `/api/pricelists`.
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Contract: Background Tasks (Go Web Applications)
|
# Contract: Background Tasks (Go Web Applications)
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## Core Rule
|
## Core Rule
|
||||||
|
|
||||||
All long-running operations (> ~300ms or uncertain duration) must run as background tasks.
|
All long-running operations (> ~300ms or uncertain duration) must run as background tasks.
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Contract: Go Code Style and Project Conventions
|
# Contract: Go Code Style and Project Conventions
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## Logging
|
## Logging
|
||||||
|
|
||||||
See `kit/patterns/go-logging/contract.md` for full rules.
|
See `kit/patterns/go-logging/contract.md` for full rules.
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Contract: Database Patterns (Go / MySQL / MariaDB)
|
# Contract: Database Patterns (Go / MySQL / MariaDB)
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## MySQL Transaction Cursor Safety (CRITICAL)
|
## MySQL Transaction Cursor Safety (CRITICAL)
|
||||||
|
|
||||||
**Never execute SQL on the same transaction while iterating over a query result cursor.**
|
**Never execute SQL on the same transaction while iterating over a query result cursor.**
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Contract: Logging (Go Web Applications)
|
# Contract: Logging (Go Web Applications)
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## Core Rule
|
## Core Rule
|
||||||
|
|
||||||
**All logging goes to the server binary's stdout/stderr — never to the browser console.**
|
**All logging goes to the server binary's stdout/stderr — never to the browser console.**
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Contract: Project Bible (bible-local/)
|
# Contract: Project Bible (bible-local/)
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## Purpose
|
## Purpose
|
||||||
|
|
||||||
`bible-local/` is the single source of truth for everything **specific to this project**:
|
`bible-local/` is the single source of truth for everything **specific to this project**:
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Contract: Import / Export Workflows
|
# Contract: Import / Export Workflows
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## Import Workflow
|
## Import Workflow
|
||||||
|
|
||||||
Recommended stages:
|
Recommended stages:
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Contract: Modal Workflows
|
# Contract: Modal Workflows
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## State Machine
|
## State Machine
|
||||||
|
|
||||||
Every modal has exactly these states:
|
Every modal has exactly these states:
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Contract: Module Versioning
|
# Contract: Module Versioning
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## Purpose
|
## Purpose
|
||||||
|
|
||||||
Единое правило версионирования внутренних слоёв приложения:
|
Единое правило версионирования внутренних слоёв приложения:
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Contract: Table Management (Shared)
|
# Contract: Table Management (Shared)
|
||||||
|
|
||||||
|
Version: 1.0
|
||||||
|
|
||||||
## Scope
|
## Scope
|
||||||
|
|
||||||
Defines one canonical, reusable interaction model for table-driven operator/admin screens.
|
Defines one canonical, reusable interaction model for table-driven operator/admin screens.
|
||||||
|
|||||||
Reference in New Issue
Block a user