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