Add Version: 1.0 to all contracts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 17:16:50 +03:00
parent ed8ba09226
commit 0c829182a1
12 changed files with 24 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
# Contract: Controls + Selection
Version: 1.0
## Shared Base
- This pattern inherits the shared `table-management` contract:

View File

@@ -1,5 +1,7 @@
# Contract: Forms + Validation + Suggestions
Version: 1.0
## Form Structure
- Group fields semantically and keep labels explicit.

View File

@@ -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`.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.**

View File

@@ -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.**

View File

@@ -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**:

View File

@@ -1,5 +1,7 @@
# Contract: Import / Export Workflows
Version: 1.0
## Import Workflow
Recommended stages:

View File

@@ -1,5 +1,7 @@
# Contract: Modal Workflows
Version: 1.0
## State Machine
Every modal has exactly these states:

View File

@@ -1,5 +1,7 @@
# Contract: Module Versioning
Version: 1.0
## Purpose
Единое правило версионирования внутренних слоёв приложения:

View File

@@ -1,5 +1,7 @@
# Contract: Table Management (Shared)
Version: 1.0
## Scope
Defines one canonical, reusable interaction model for table-driven operator/admin screens.