From 766b89cde05cd667b12aa508ea38d22466df9603 Mon Sep 17 00:00:00 2001 From: peppa-bot Date: Thu, 26 Nov 2026 19:52:21 +0000 Subject: [PATCH 1/2] =?UTF-8?q?SBX-1:=20hello.txt=20=D1=81=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=D0=B2=D0=B5=D1=82=D1=81=D1=82=D0=B2=D0=B8=D0=B5=D0=BC=20?= =?UTF-8?q?=D0=B8=20=D0=B5=D0=B3=D0=BE=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- hello.txt | 1 + openspec/changes/sbx-1-hello/.openspec.yaml | 2 ++ openspec/changes/sbx-1-hello/design.md | 15 +++++++++++ openspec/changes/sbx-1-hello/proposal.md | 25 +++++++++++++++++++ .../sbx-1-hello/specs/hello-file/spec.md | 14 +++++++++++ openspec/changes/sbx-1-hello/tasks.md | 5 ++++ scripts/test-site.sh | 4 +++ 7 files changed, 66 insertions(+) create mode 100644 hello.txt create mode 100644 openspec/changes/sbx-1-hello/.openspec.yaml create mode 100644 openspec/changes/sbx-1-hello/design.md create mode 100644 openspec/changes/sbx-1-hello/proposal.md create mode 100644 openspec/changes/sbx-1-hello/specs/hello-file/spec.md create mode 100644 openspec/changes/sbx-1-hello/tasks.md diff --git a/hello.txt b/hello.txt new file mode 100644 index 0000000..0ea322e --- /dev/null +++ b/hello.txt @@ -0,0 +1 @@ +Привет! Это песочница Пеппы. diff --git a/openspec/changes/sbx-1-hello/.openspec.yaml b/openspec/changes/sbx-1-hello/.openspec.yaml new file mode 100644 index 0000000..7ed429c --- /dev/null +++ b/openspec/changes/sbx-1-hello/.openspec.yaml @@ -0,0 +1,2 @@ +schema: spec-driven +created: 2026-11-26 diff --git a/openspec/changes/sbx-1-hello/design.md b/openspec/changes/sbx-1-hello/design.md new file mode 100644 index 0000000..70ba06e --- /dev/null +++ b/openspec/changes/sbx-1-hello/design.md @@ -0,0 +1,15 @@ +# Design: sbx-1-hello + +## Context +Песочница проверяет работу Пеппы. Задача — создать `hello.txt` с приветствием. +Язык выбрал PM: русский. + +## Decisions +- `hello.txt` лежит в корне репозитория, а не в `site/`: это файл проекта, а не часть + страницы продукта, поэтому правило «тексты только в `site/i18n`» к нему не относится. +- Кодировка UTF-8, одна строка с переводом строки в конце. +- Проверка добавлена в `scripts/test-site.sh` (он уже стоит в `checks.test`), чтобы + не трогать `.peppa/project.json` и `.gitea/`. + +## Risks +Нет. diff --git a/openspec/changes/sbx-1-hello/proposal.md b/openspec/changes/sbx-1-hello/proposal.md new file mode 100644 index 0000000..94aa94f --- /dev/null +++ b/openspec/changes/sbx-1-hello/proposal.md @@ -0,0 +1,25 @@ +# SBX-1: hello.txt с приветствием + +Задача Пеппы: SBX-1. Проверка цикла Пеппы на простом изменении. + +## Why + +Песочнице нужен минимальный результат, на котором видно весь путь задачи: план, +изменение, проверки, ревью. PM выбрал язык приветствия — русский (вопрос #21). + +## What Changes + +- Файл `hello.txt` в корне репозитория с приветствием на русском. +- Проверка в `scripts/test-site.sh`: файл есть, не пустой и содержит «Привет». + +## Capabilities + +### New Capabilities +- `hello-file`: файл приветствия в корне репозитория. + +### Modified Capabilities +— + +## Impact + +Только новый файл и одна проверка в существующем скрипте; сайт и деплой не меняются. diff --git a/openspec/changes/sbx-1-hello/specs/hello-file/spec.md b/openspec/changes/sbx-1-hello/specs/hello-file/spec.md new file mode 100644 index 0000000..0c16bb4 --- /dev/null +++ b/openspec/changes/sbx-1-hello/specs/hello-file/spec.md @@ -0,0 +1,14 @@ +## ADDED Requirements + +### Requirement: Файл приветствия +В корне репозитория SHALL лежать файл `hello.txt` в UTF-8 с приветствием на русском языке. + +#### Scenario: Файл содержит приветствие +- **GIVEN** рабочая копия репозитория на основной ветке +- **WHEN** открываешь файл `hello.txt` в корне +- **THEN** в нём строка «Привет! Это песочница Пеппы.» + +#### Scenario: Файл пропал или пуст +- **GIVEN** в рабочей копии нет `hello.txt` или он пустой +- **WHEN** запускаются проверки `bash scripts/test-site.sh` +- **THEN** проверки падают с сообщением «hello.txt: нет приветствия» diff --git a/openspec/changes/sbx-1-hello/tasks.md b/openspec/changes/sbx-1-hello/tasks.md new file mode 100644 index 0000000..8fbb35e --- /dev/null +++ b/openspec/changes/sbx-1-hello/tasks.md @@ -0,0 +1,5 @@ +## 1. Приветствие + +- [x] 1.1 Создать `hello.txt` в корне с текстом «Привет! Это песочница Пеппы.» +- [x] 1.2 Добавить проверку `hello.txt` в `scripts/test-site.sh` +- [x] 1.3 Прогнать проверки `bash .gitea/peppa-check.sh <проверка>` для lint, typecheck, test, build diff --git a/scripts/test-site.sh b/scripts/test-site.sh index 4a8c570..96b6f35 100644 --- a/scripts/test-site.sh +++ b/scripts/test-site.sh @@ -49,6 +49,10 @@ for l in "${LANGS[@]}"; do else pass "$l: тексты соответствуют словарю"; fi done +# SBX-1, сценарии «Файл содержит приветствие», «Файл пропал или пуст» +if [[ -s hello.txt ]] && grep -q 'Привет' hello.txt; then pass "hello.txt: приветствие на месте" +else fail "hello.txt: нет приветствия"; fi + # Сценарии «Страница открывается по ссылке», «Несуществующий адрес», проверка здоровья на $PORT if command -v python3 >/dev/null 2>&1 && command -v curl >/dev/null 2>&1; then port=$(python3 -c 'import socket; s = socket.socket(); s.bind(("127.0.0.1", 0)); print(s.getsockname()[1])') -- 2.45.2 From b437f2b8b8766c37f9ce661c99f6f9ddf3bd2c4e Mon Sep 17 00:00:00 2001 From: peppa-bot Date: Thu, 26 Nov 2026 19:52:27 +0000 Subject: [PATCH 2/2] =?UTF-8?q?SBX-1:=20=D0=B0=D1=80=D1=85=D0=B8=D0=B2=20c?= =?UTF-8?q?hange,=20=D1=81=D0=BF=D0=B5=D0=BA=D0=B0=20hello-file,=20=D0=BF?= =?UTF-8?q?=D0=B0=D0=BC=D1=8F=D1=82=D1=8C=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA?= =?UTF-8?q?=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- .peppa/memory.md | 1 + .../2026-11-26-sbx-1-hello}/.openspec.yaml | 0 .../2026-11-26-sbx-1-hello}/design.md | 0 .../2026-11-26-sbx-1-hello}/proposal.md | 0 .../specs/hello-file/spec.md | 0 .../2026-11-26-sbx-1-hello}/tasks.md | 0 openspec/specs/hello-file/spec.md | 19 +++++++++++++++++++ 7 files changed, 20 insertions(+) rename openspec/changes/{sbx-1-hello => archive/2026-11-26-sbx-1-hello}/.openspec.yaml (100%) rename openspec/changes/{sbx-1-hello => archive/2026-11-26-sbx-1-hello}/design.md (100%) rename openspec/changes/{sbx-1-hello => archive/2026-11-26-sbx-1-hello}/proposal.md (100%) rename openspec/changes/{sbx-1-hello => archive/2026-11-26-sbx-1-hello}/specs/hello-file/spec.md (100%) rename openspec/changes/{sbx-1-hello => archive/2026-11-26-sbx-1-hello}/tasks.md (100%) create mode 100644 openspec/specs/hello-file/spec.md diff --git a/.peppa/memory.md b/.peppa/memory.md index f0da349..c81b107 100644 --- a/.peppa/memory.md +++ b/.peppa/memory.md @@ -10,3 +10,4 @@ ## Соглашения - Тексты страницы — только в `site/i18n/{ru,kk,en}.json` (в HTML ключи `data-i18n`), слова — из `docs/glossary.md`; список «Нельзя» продублирован в `scripts/test-site.sh` (`banned`) — меняй оба. Технические детали — в `
` «Подробнее». +- `hello.txt` в корне (SBX-1) — файл проекта, не страница: правило i18n к нему не относится; его проверяет `scripts/test-site.sh`. diff --git a/openspec/changes/sbx-1-hello/.openspec.yaml b/openspec/changes/archive/2026-11-26-sbx-1-hello/.openspec.yaml similarity index 100% rename from openspec/changes/sbx-1-hello/.openspec.yaml rename to openspec/changes/archive/2026-11-26-sbx-1-hello/.openspec.yaml diff --git a/openspec/changes/sbx-1-hello/design.md b/openspec/changes/archive/2026-11-26-sbx-1-hello/design.md similarity index 100% rename from openspec/changes/sbx-1-hello/design.md rename to openspec/changes/archive/2026-11-26-sbx-1-hello/design.md diff --git a/openspec/changes/sbx-1-hello/proposal.md b/openspec/changes/archive/2026-11-26-sbx-1-hello/proposal.md similarity index 100% rename from openspec/changes/sbx-1-hello/proposal.md rename to openspec/changes/archive/2026-11-26-sbx-1-hello/proposal.md diff --git a/openspec/changes/sbx-1-hello/specs/hello-file/spec.md b/openspec/changes/archive/2026-11-26-sbx-1-hello/specs/hello-file/spec.md similarity index 100% rename from openspec/changes/sbx-1-hello/specs/hello-file/spec.md rename to openspec/changes/archive/2026-11-26-sbx-1-hello/specs/hello-file/spec.md diff --git a/openspec/changes/sbx-1-hello/tasks.md b/openspec/changes/archive/2026-11-26-sbx-1-hello/tasks.md similarity index 100% rename from openspec/changes/sbx-1-hello/tasks.md rename to openspec/changes/archive/2026-11-26-sbx-1-hello/tasks.md diff --git a/openspec/specs/hello-file/spec.md b/openspec/specs/hello-file/spec.md new file mode 100644 index 0000000..50942fc --- /dev/null +++ b/openspec/specs/hello-file/spec.md @@ -0,0 +1,19 @@ +# hello-file Specification + +## Purpose +TBD - created by archiving change sbx-1-hello. Update Purpose after archive. + +## Requirements + +### Requirement: Файл приветствия +В корне репозитория SHALL лежать файл `hello.txt` в UTF-8 с приветствием на русском языке. + +#### Scenario: Файл содержит приветствие +- **GIVEN** рабочая копия репозитория на основной ветке +- **WHEN** открываешь файл `hello.txt` в корне +- **THEN** в нём строка «Привет! Это песочница Пеппы.» + +#### Scenario: Файл пропал или пуст +- **GIVEN** в рабочей копии нет `hello.txt` или он пустой +- **WHEN** запускаются проверки `bash scripts/test-site.sh` +- **THEN** проверки падают с сообщением «hello.txt: нет приветствия» -- 2.45.2