[Критический] Единый источник правды для моделей — pre-commit auto-sync #125
Open
opened 2026-05-28 13:39:28 +00:00 by NW
·
3 comments
Labels
Clear labels
agent::agent-architect
agent::capability-analyst
agent::code-skeptic
agent::evaluator
agent::history-miner
agent::lead-developer
agent::orchestrator
agent::sdet-engineer
agent::system-analyst
agent::the-fixer
budget::exhausted
budget::sufficient
budget::warning
cascade::depth-0
cascade::depth-1
cascade::depth-2
cascade::depth-exceeded
cascade::depth-n
dashboard::frozen
evolution::model-change
evolution::new-agent
evolution::new-skill
evolution::new-workflow
evolution::prompt-opt
memory::checkpoint
memory::fresh
memory::recoverable
memory::stale
permission::evolve-system
permission::read-only
permission::violation
permission::write-code
permission::write-config
phase::awaiting-review
phase::drafting-spec
phase::executing
phase::gathering-evidence
phase::refining-prompt
phase::researching
phase::verifying
priority::critical
priority::high
priority::low
priority::medium
quality::blocked
quality::fail
quality::needs-fix
quality::pass
size::l
size::m
size::s
size::xl
size::xs
status::blocked
status::cancelled
status::done
status::in-progress
status::new
status::planned
status::review
status::testing
type::bug
type::chore
type::documentation
type::enhancement
type::feature
type::refactor
type::test
Owned by agent-architect
Owned by capability-analyst
Owned by code-skeptic
Owned by evaluator
Owned by history-miner
Owned by lead-developer
Owned by orchestrator
Owned by sdet-engineer
Owned by system-analyst
Owned by the-fixer
Token budget exhausted
Token budget sufficient
Token budget low
No subagent calls
1-level subagent calls
2-level subagent calls
Depth limit exceeded
Unlimited subagent calls
Dashboard feature freeze — no new features until thaw
Model change evolution
New agent evolution
New skill evolution
New workflow evolution
Prompt optimization evolution
Checkpoint stored
Checkpoint fresh
Checkpoint recoverable
Checkpoint stale
Can evolve system
Read-only access
Security violation
Can write code
Can write config
Agent awaits review
Agent is drafting specification
Agent is executing task
Agent is gathering data
Agent is refining prompts
Research phase — gathering evidence and solutions
Agent is verifying results
Critical priority
High priority
Low priority
Medium priority
Blocked by quality
Quality check failed
Needs fixes
Quality check passed
Large (4-8 hours)
Medium (2-4 hours)
Small (1-2 hours)
Extra large (>8 hours)
Extra small (<1 hour)
Blocked
Cancelled
Completed
Work in progress
New issue, not started
Planned for sprint
Under review
In testing
Something is broken
Maintenance task
Documentation
Improvement
New feature
Code refactoring
Testing
Milestone
No items
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: UniqueSoft/APAW#125
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Проблема
Одно изменение модели требует ручного редактирования 7+ файлов:
kilo-meta.json(источник правды)kilo.jsonc(runtime config) — НЕ обновляется sync-скриптом.kilo/capability-index.yaml(routing) — НЕ обновляется sync-скриптом.kilo/agents/*.mdfrontmatters — обновляетсяsync-agents.cjsKILO_SPEC.md— обновляется скриптомAGENTS.md— обновляется скриптомagent-evolution/data/— обновляется вручнуюРезультат: 6 фикс-коммитов (
56a8444…9f7fea6) устраняли один алиасdeepseek-v4-pro-maxvsdeepseek-v4-pro.Решение
kilo-meta.jsonединственным редактируемым файлом вручнуюsync-agents.cjsдолжен охватыватьkilo.jsoncиcapability-index.yamlAcceptance Criteria
.git/hooks/pre-commit)kilo-meta.jsonи генерирует все производные файлыSINGLE_SOURCE_OF_TRUTH.mdЭстимейт
Medium (8-12K tokens, ~30 мин)
Assignee
@lead-developer
✅ lead-developer completed – Single Source of Truth Pre-Commit Hook
Summary
.git/hooks/pre-commit) created and made executable.node scripts/sync-agents.cjs --fixand updateskilo.jsonc,.kilo/capability-index.yaml, validates YAML frontmatters, and checks stale fallback aliases.Files changed
kilo.jsonc— regenerated fromkilo-meta.json(system-analyst model synced tokimi-k2.6, etc.)SINGLE_SOURCE_OF_TRUTH.md— documentation.git/hooks/Verification Results
node scripts/sync-agents.cjs --check✅system-analystincapability-index.yamlmatcheskimi-k2.6✅Worth noting
sync-agents.cjs --fixtoucheslastSyncinkilo-meta.json, so the hook restores the originalkilo-meta.jsonafter running the sync script to prevent spurious diff checks.groq/llama-3.1-8b-instant,openrouter/qwen/qwen3.6-plus:free) are printed as warnings but do not block commit.✅ Issue #125 — completed
Pre-commit hook created and executable. Hook reads
kilo-meta.jsonand auto-generates all derivative files.AC Checklist:
.git/hooks/pre-commit) exists and is executablekilo-meta.jsonand generates all derivative filessystem-analystin kilo.jsonc updated fromglm-5.1tokimi-k2.6system-analystin capability-index.yaml updatedSINGLE_SOURCE_OF_TRUTH.mdcreatedFiles:
.git/hooks/pre-commit,SINGLE_SOURCE_OF_TRUTH.md,kilo.jsonc,kilo-meta.json,.kilo/capability-index.yaml,scripts/sync-agents.cjsCommit:
a49686e✅ Milestone 78 — Все issues выполнены
Рабочая область: чистая (
git status= empty)Ветка
dev: синхронизирована с origin (0aadd28)Кросс-чекер: PASS (exit 0, 0 FAIL, 0 WARN)
Коммиты (6)
a49686e226c94826362c7e393b166c965020aadd28Метрики
kilo-meta.jsondashboard::frozenсоздан, мораторий зафиксированcapability-index.yamlЧто работает сейчас
git commit→ pre-commit hook → auto-synckilo-meta.json→ все производные файлы → кросс-чекер gate → коммит проходит только если всё чисто.python3 scripts/compute-empirical-scores.py→ генерация отчёта по реальным данным DB.python3 scripts/cross-checker.py→ детерминированная проверка за <1 сек.