Summary: Rules to implement: how the installer works, security gate thresholds, acceptance test scenarios, upstream tracking, documentation conventions. These documents tell implementers what to build. 概要: 実装するルール:インストーラーの仕組み、セキュリティ門の基準、受入試験のシナリオ、上流追従、文書規約。これらの文書は実装者に何を構築すべきかを伝えます。
- Version / 版: 0.3 — 2026-11-10. Learned: the installer specification also governs the scripts that run before the installer, so an index line must name them (ADR-08). / インストーラーの仕様は、インストーラーの前に動くスクリプトも定めるので、索引の行にも名指しする(ADR-08)。
- Version / 版: 0.2 — 2026-11-06. Learned: a glossary term is only explained for the reader when its note and REF-01 link sit at the first prose use, counting lower-case and plural forms, so first-use notes with links were added in both halves (SPEC-06 §3). / 用語注と REF-01 へのリンクは、小文字や複数形も含めた本文の初出に置かなければ読者に届かないと分かったため、英和両方の初出にリンク付きの用語注を補った(SPEC-06 §3)。
- Version / 版: 0.1 — 2026-11-05. Learned: the installer, the security gate and the acceptance tests had to be written down as rules before any code, otherwise each implementer would fill the gaps differently. / インストーラー、セキュリティの門、受入試験は、コードより先に規則として書いておかないと、実装する人ごとに隙間の埋め方が変わると分かった。
- Normative for: SPEC-00 Overview through SPEC-06 Documentation Conventions.
- Related: ../README.md · policy/ · decisions/ · reference/REF-01_Glossary.md
A specification is a rule book that implementers must follow. This folder contains:
| ID | File | Purpose |
|---|---|---|
| SPEC-00 | 00_overview.md | Component map, milestones, roles, the big picture. |
| SPEC-01 | 01_manifest.md | The manifest: which upstream commits and PRs the installer builds. |
| SPEC-02 | 02_installer_cli.md | The grdm-dev CLI, install.sh and the per-OS prerequisite scripts: host checks, secrets, compose, build, health, reports. |
| SPEC-03 | 03_security_gate.md | SBOM, CVE scan, static analysis, ZAP, AI red team, per-milestone thresholds. |
| SPEC-04 | 04_acceptance_tests.md | Playwright Python acceptance: success and rejection cases per feature. |
| SPEC-05 | 05_upstream_tracking.md | Daily mirror and diff report, weekly AI integration PR, COS reference tracking. |
| SPEC-06 | 06_documentation_conventions.md | How every document is written. |
- Name the file
NN_<Topic>.md(two-digit number, next available). - Follow SPEC-06 documentation conventions.
- Link to related policies (POL-NN) and decisions (ADR-NN).
- Create a decision record if the specification records a choice.
- The owner approves; QAE (the role that checks that the work is correct; see REF-01) writes specifications for new features.
flowchart TD
P[Policy: position] --> S[Spec: rules to implement]
A[Decision record: why we chose this] --> S
S --> C[Code: implement the rule]
「仕様」は実装する人が守るルールブックです。このフォルダには次が含まれます:
| ID | ファイル | 目的 |
|---|---|---|
| SPEC-00 | 00_overview.md | 部品の地図、節目、役割、全体像。 |
| SPEC-01 | 01_manifest.md | マニフェスト:どの上流のコミットと PR を組むか。 |
| SPEC-02 | 02_installer_cli.md | grdm-dev CLI、install.sh、OS ごとの前提条件スクリプト:ホスト判定、秘密、compose、ビルド、健康確認、報告。 |
| SPEC-03 | 03_security_gate.md | SBOM、CVE スキャン、静的解析、ZAP、AI レッドチーム、節目ごとの基準。 |
| SPEC-04 | 04_acceptance_tests.md | Playwright Python 受入:機能ごとの成功・拒否ケース。 |
| SPEC-05 | 05_upstream_tracking.md | 日次ミラーと差分報告、週次の AI 統合 PR、COS 参照追跡。 |
| SPEC-06 | 06_documentation_conventions.md | すべての文書の書き方。 |
- ファイル名を
NN_<題>.md(2 桁の番号、次に空いているもの)にする。 - SPEC-06 文書規約に従う。
- 関連する方針(POL-NN)と決定(ADR-NN)へリンクする。
- 仕様が選択を記録する場合は決定の記録を作成する。
- 所有者が承認;QAE(QA担当。成果が正しいか検査する役割。REF-01)が新機能の仕様を書く。
flowchart TD
P[方針:立場] --> S[仕様:実装するルール]
A[決定の記録:なぜこの道を選んだか] --> S
S --> C[コード:ルールを実装]
| Term | English note | 日本語注 |
|---|---|---|
| Specification | A rule book that implementers must follow. | 実装する人が守るルールブック。 |
| Policy | A statement of our position on what we will and will not do. | 我々が何をし、何をしないかの立場。 |
| Decision record (ADR) | A note explaining why we chose one way and not another. | なぜその道を選び、ほかを選ばなかったかのメモ。 |
| Implementation | Writing code that follows the spec. | 仕様に従ってコードを書くこと。 |
| Milestone | A checkpoint with a pass/fail test. | 合否の試験がある関門。 |
| Acceptance test | A check that the whole thing does what the user asked for. | 全体が利用者の望みどおりに動くかの確認。 |