process: add internal OpenSpec workflow
This commit is contained in:
parent
a37c6a78f4
commit
d50f297eb5
20 changed files with 1627 additions and 6 deletions
43
openspec/README.md
Normal file
43
openspec/README.md
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# OpenSpec в ChessPenguin
|
||||
|
||||
Статус: гибридный процесс, утверждён владельцем 2026-12-03. OpenSpec дополняет текущий процесс и не заменяет независимые функциональные и визуальные проверки.
|
||||
|
||||
## Источники истины
|
||||
|
||||
| Документ | Роль |
|
||||
| --- | --- |
|
||||
| `AGENTS.md` | Инварианты продукта и обязательные правила работы |
|
||||
| `docs/decisions.md` | Журнал явных решений владельца; имеет приоритет над предложениями |
|
||||
| `docs/dev/tasks.md` | Общий бэклог и статусы задач |
|
||||
| `docs/architecture.md` | Описание реализованной системы |
|
||||
| `openspec/specs/` | Постепенно формируемые канонические требования по отдельным возможностям |
|
||||
| `openspec/changes/<change>/` | Предложение, дельта требований, дизайн и чек-лист одного активного изменения |
|
||||
| `docs/qa/` | Датированные доказательства проверок и непроверенные остатки |
|
||||
|
||||
Предложение в `openspec/changes/` не является решением владельца до его явного подтверждения. Исторические `research/`, `design/` и `qa/` массово в specs не импортируются: они содержат отменённые варианты и результаты проверок конкретных версий. Канонические specs создаются постепенно при работе с соответствующей возможностью.
|
||||
|
||||
## Границы применения
|
||||
|
||||
OpenSpec используется для новых изменений, которым нужны согласование поведения и проверяемые требования. Маленькие исправления и простая запись в бэклог могут идти прежним коротким путём, если оркестратор не выбрал формальный change.
|
||||
|
||||
У каждого change один проверяемый результат и отдельная ветка; несвязанные правки в него не добавляются. Связь с общей задачей указывается в `docs/dev/tasks.md`. В OpenCode применяются официальные skills `/openspec-propose`, `/openspec-apply-change` и `/openspec-archive-change` (или эквивалентный явный запрос оркестратору).
|
||||
|
||||
Перед `apply` владелец получает план на проверку. После реализации действуют обычные роли и независимая QA. Для UI обязателен отдельный дизайн-ревьюер, не автор реализации, с реальными снимками приложения. Невыполненные платформенные проверки остаются открытыми и не разрешают архивирование как полностью проверенного изменения. `validate --strict` выполняется после создания артефактов, после их изменения и перед архивированием.
|
||||
|
||||
## Зафиксированный CLI
|
||||
|
||||
Инициализировано OpenSpec **2.3.0**, MIT, project scope, только tool `opencode`, core profile. Kimi Code владелец с 2026-12-03 не использует; альтернативные skills и инструкции для него не поддерживаются. Официальные источники:
|
||||
|
||||
- <https://github.com/Fission-AI/OpenSpec>
|
||||
- <https://www.npmjs.com/package/@fission-ai/openspec>
|
||||
- <https://openspec.dev/docs/supported-tools>
|
||||
|
||||
Глобальная установка и глобальные настройки не нужны. Из корня репозитория:
|
||||
|
||||
```sh
|
||||
scripts/dev/openspec.sh list
|
||||
scripts/dev/openspec.sh status --change <name>
|
||||
scripts/dev/openspec.sh validate --help
|
||||
```
|
||||
|
||||
Скрипт использует точную версию пакета и отключает телеметрию через `OPENSPEC_TELEMETRY=0`. Сгенерированные skills находятся в `.agents/skills/`; после смены версии CLI их обновление и diff проверяются отдельно, а не молча. Перед любым `openspec update` обязателен `openspec update . --dry-run --json`: CLI может предложить изменить и глобальный `~/.config/openspec/config.json`. Без отдельного решения глобальные файлы не изменяются.
|
||||
0
openspec/changes/archive/.gitkeep
Normal file
0
openspec/changes/archive/.gitkeep
Normal file
42
openspec/config.yaml
Normal file
42
openspec/config.yaml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
schema: spec-driven
|
||||
|
||||
context: |
|
||||
Language: Russian
|
||||
All artifacts must be written in Russian.
|
||||
Keep OpenSpec structural headings and SHALL/MUST keywords in English.
|
||||
|
||||
ChessPenguin is an existing local chess application. Before planning or applying
|
||||
a change, read AGENTS.md, docs/dev/tasks.md, docs/decisions.md and
|
||||
docs/architecture.md. Confirmed owner decisions outrank research and proposals.
|
||||
OpenSpec proposals are not owner decisions until the owner explicitly approves them.
|
||||
Existing research, design and QA documents are history and evidence, not a bulk
|
||||
import source for canonical specs. Build openspec/specs incrementally, only for
|
||||
capabilities touched by new changes.
|
||||
|
||||
rules:
|
||||
proposal:
|
||||
- State the verified current behavior, the proposed change and explicit out-of-scope boundaries.
|
||||
- For product choices, present options with a recommendation and cost; never record the recommendation as an owner decision.
|
||||
- Link relevant existing tasks, decisions, research, design and QA instead of duplicating their history.
|
||||
specs:
|
||||
- Write observable, independently testable requirements and scenarios, including errors and compatibility boundaries when relevant.
|
||||
- Preserve AGENTS.md product invariants and existing confirmed decisions.
|
||||
- Do not turn unverified behavior, rejected alternatives or historical QA results into current requirements.
|
||||
tasks:
|
||||
- Assign concrete verification commands and behavioral scenarios; never mark an unrun check as passed.
|
||||
- For UI changes, require an independent design reviewer who did not implement the UI and real application screenshots.
|
||||
- Require independent functional QA and updates to docs/dev/tasks.md and, for substantial decisions, docs/decisions.md.
|
||||
- Keep platform-specific checks pending when the required platform or SDK is unavailable; do not archive them as completed.
|
||||
|
||||
operations:
|
||||
apply:
|
||||
guidance:
|
||||
- Follow the existing orchestrator and role profiles; parallel agents must own non-overlapping files.
|
||||
- Check off a task only after its implementation and stated verification are complete; preserve original user files and PGN.
|
||||
- Keep docs/qa as dated evidence and distinguish implemented, verified, recommended and awaiting owner input.
|
||||
archive:
|
||||
guidance:
|
||||
- Run validate --strict after artifact edits and before archiving; investigate findings instead of bypassing them.
|
||||
- Archive only after independent functional QA and, for UI, independent visual acceptance with real screenshots.
|
||||
- Do not archive when mandatory platform checks remain unrun or requirements are merely implemented but unverified.
|
||||
- Sync only accepted and verified behavior into canonical specs; leave rejected proposals and historical evidence outside specs.
|
||||
0
openspec/specs/.gitkeep
Normal file
0
openspec/specs/.gitkeep
Normal file
Loading…
Add table
Add a link
Reference in a new issue