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 # 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:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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