musubix7 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,6 +47,8 @@ description: 既存コードを限定読取し、観測事実・推定意図・
47
47
  ## 要求された将来状態と次の確認
48
48
  ```
49
49
 
50
+ 現状の観測挙動を要件文として書くときは EARS(常時・イベント駆動・状態駆動・異常系・オプション)を使ってよい(例: 「割引率が51のとき、現行コードは入力を拒否する」)。ただし上の4分類・根拠・確度の区別は保ち、EARS にしても観測事実を業務要件へ昇格させない。意図が不明な項目は EARS に当てはめず、未知(GAP)に残す。EARS の文を完成させるために挙動・条件・主語を推測で補わない。要求された将来状態を EARS で書く場合も観測事実とは別行にする。EARS の構文は機械検査せず、形が整っていても完全・正しいとは限らない。
51
+
50
52
  形式を満たすためだけのファイル分割・全項目更新・長大なテンプレートは不要。
51
53
 
52
54
  ## 4. 質問・停止と完了
@@ -6,7 +6,7 @@ description: 新規 TypeScript/Node.js、Python、Rust 開発と、musubix7 で
6
6
 
7
7
  明示REQ/TEST対応と変更入力bindingの任意検査は [contracts](references/contracts.md)。native計画・runner・意味レビューを置換しない。
8
8
 
9
- 記録上のTDD順序、安全な導入/更新preview、宣言依存とUTF8 byte上限による資料選択は [helpers](references/helpers.md)。利用できないホスト/OSは未検証として残す。
9
+ 記録上のTDD順序、安全な導入/更新preview、宣言依存とUTF8 byte上限による資料選択、任意のEARS形検査は [helpers](references/helpers.md)。利用できないホスト/OSは未検証として残す。
10
10
 
11
11
  Orca 委譲時だけ使う [任意のhandoff・開始確認・完了受入](references/orca-handoff.md)。識別と正本参照、Skill配置と実session観測の分離、通知待機・再開、最新入力と必須結果の受入を扱う。通常利用や既存manifestは変更しない。
12
12
 
@@ -14,7 +14,7 @@ Orca 委譲時だけ使う [任意のhandoff・開始確認・完了受入](refe
14
14
 
15
15
  設計では意味のある選択肢のトレードオフを短く比べ、正しさと明瞭さを保つ最も単純で十分な方法を選ぶ。実装は依頼と必要な依存に限定し、既存設計・規約・ユーザー編集を尊重する。成功条件に対応する焦点検証と必要な回帰を実施し、実行・再利用・未確認を区別して完了を判断する。[具体的な例](references/workflow.md#簡潔な判断例)。
16
16
 
17
- 1. 新規は不足だけを確認して、機能ごとの唯一の `.sdd/specs/<feature>.md` に目的、除外、観測可能な受入条件、例・反例、仮定、安定 REQ ID とテスト対応、簡潔な設計判断・AI承認を記す。完成後の変更は関連する正本・完了記録・現行コード/設定・テストを限定して読み、正本を複製しない。必要時に [interview](references/interview.md) を読む。
17
+ 1. 新規は不足だけを確認して、機能ごとの唯一の `.sdd/specs/<feature>.md` に目的、除外、観測可能な受入条件、例・反例、仮定、安定 REQ ID とテスト対応、簡潔な設計判断・AI承認を記す。要件文は1要件1IDの EARS 形(常時・イベント駆動・状態駆動・異常系・オプション、複合形)で主語と検証可能な応答を明示し、曖昧語を具体値にする。EARS は書き方であり受入条件・反例・テスト対応を代替せず、構文の機械検査は既定ではしない。任意の `ears.mjs check` は要件文の形だけを検査し([helpers](references/helpers.md#ears-形の任意検査))、形式的に EARS でも完全・正しいとは限らないため、網羅は仕様レビューで確認する。完成後の変更は関連する正本・完了記録・現行コード/設定・テストを限定して読み、正本を複製しない。型の選び方と日本語例は [interview](references/interview.md#要件文は-ears-で書く) を読む。
18
18
  2. 仕様からホストのネイティブ計画機能に作業、依存、明示的完了条件、実際の進捗を記す。完成済み task や失敗履歴を消して使い回さず、新しい変更IDと差分範囲を設ける。計画は仕様のコピーではない。利用不能なら簡潔な引継ぎに残し、scheduler を作らない。
19
19
  3. 機能追加は新機能の正本がなければ作成し、影響する既存正本・必要な設計・計画を先に更新して AI承認する。安定 REQ ID を保って新要件のみ新IDとする。バグは Issue と期待仕様・観測を区別して回帰 test を先に書き、正しい仕様を誤実装に合わせない。いずれも実 assertion Red → 同じテスト Green → 必要な Refactor と関連回帰を行う。挙動不変 refactor は既存 Green を基準とし人工 Red や不要な要件変更をしない。import/compiler/setup error、skip、既存挙動の characterization は Red ではない。実コマンド・結果を記録する。[workflow](references/workflow.md) を参照。
20
20
  4. 要件・仕様・設計・計画・テストの影響と不変の理由を短く記し、API、保存データ/DB、利用者・既存設定の互換性を評価する。必要時だけ移行・rollback/復旧・互換性テストを計画し、破壊・不可逆操作は勝手に実施しない。変更された入力と依存への検証を選び、不明・共通変更は範囲を広げる。結果の再利用は実行済みとは区別する。通常 gate は check 別 current のみを読み、監査履歴を再生しない。既知の対象には Git 不要。変更集合が必要な境界だけで NUL区切りの Git 結果を一括取得・同一実行内で共有し、ファイル単位の反復や HEAD だけの鮮度判断をしない。実行前に未完了を記録してから native command を実行する。[verification](references/verification.md) を参照。
@@ -25,6 +25,18 @@ Node.js 22以上。既存の手動手順、native計画/runner、evidence manife
25
25
 
26
26
  start/endは同じ時計の非負安全整数(例: epoch ms)、前event終了<=次開始。feature/bugfixはred→green。refactorは最初をphase:baseline/status:pass/exitCode:0/assertionFailures:0とし既存Greenを記録する。人工Red不要。各eventのtest/command/testInputsは同一で現在のtest内容と一致させる。テスト本体・関連fixture/config等を含めるかの判断は担当者。inputsには正本/実装/テスト/設定等のGreen時入力を選びbindingする。記録とログの真実性をhashや時刻だけで保証しない。過去記録を更新版helperで受理しても過去成功の信頼度は上がらない。
27
27
 
28
+ ## EARS 形の任意検査
29
+
30
+ `node <skill>/scripts/ears.mjs check [--strict] <spec.md> [<spec.md> ...]`。既定のワークフローの gate ではなく任意。指定されたファイルだけを読み、Git・走査・履歴・ネットワーク・プロジェクトのコード実行はしない。
31
+
32
+ - 対象は先頭セルが `REQ-...` の表の行で、`REQ ID | EARS要件 | 受入条件と反例 | テスト` の4列のものだけ。2列目を [interview](interview.md#要件文は-ears-で書く) の型(常時・イベント駆動・状態駆動・異常系・オプション・複合)と照合する。英語は When/While/Where/If…then/shall、日本語は同ファイルの非規格の対応表現(…とき、…間、…場合は、…なければならない)だけが根拠で、形態素解析はしない。
33
+ - エラー(exit 1): 型なし、1行に複数の応答(`shall` が複数、`かつ`/`そして`、`ならない` が複数)、主語なし、応答なし、検査したファイル間での REQ ID の重複、空セル、検査できた行が0件。
34
+ - 警告(`--strict` のときだけ失敗): 曖昧語(appropriate, fast, quick, user-friendly, as needed/necessary, etc., 適切, 高速, 素早, 迅速, 使いやすい, 必要に応じて, など)、応答内の `、`。
35
+ - 4列でない行(旧形式の表)は `skipped: not an EARS-form table` として別に報告し、合格にしない。
36
+ - 出力は JSON(`ok`、行ごとの `status`/`pattern`/`errors`/`warnings`、`skipped`、`note`)。ファイル不在・usage 誤りは stderr の `ERROR:` で exit 1。
37
+
38
+ 検査するのは文の形だけで、完全・正しさ・目的適合は検査しない。通っても要件が完全・正しいことを意味せず、日本語は誤検出・見逃しがありうる。EARS 規格の validator ではなく、仕様レビュー、受入条件と反例、REQ→テスト対応(`contract.mjs`)、AI承認の代わりにならない。
39
+
28
40
  ## 安全な導入・更新
29
41
 
30
42
  ```text
@@ -9,10 +9,32 @@
9
9
  承認: AI承認(判断者・日付)。人間承認ではない。
10
10
  ## 目的と除外
11
11
  ## 受入条件
12
- | ID | 観測可能な条件 | 例と反例 | テスト・コマンド |
13
- | REQ-F-001 | ... | ... | TEST-F-001 / ... |
12
+ | REQ ID | EARS要件 | 受入条件と反例 | テスト |
13
+ |---|---|---|---|
14
+ | REQ-F-001 | 割引率が0~50の整数のとき、注文システムは割引後金額を返さなければならない | 観測可能な条件(例: 50は適用、反例: 51は拒否) | TEST-F-001 / ... |
14
15
  ## 設計判断
15
16
  ## 仮定と未解決事項
16
17
  ```
17
18
 
18
19
  仕様には goal、exclusions、acceptance、examples/counterexamples、assumptions を明示する。必要なアクセスや不可逆な操作が承認待ちなら、想像で進めず具体的に保留する。通常の節目ごとの owner 承認は不要。
20
+
21
+ ## 要件文は EARS で書く
22
+
23
+ 要件文は EARS(Easy Approach to Requirements Syntax)の形で書く。仕様の言語は利用者の言語に従う。EARS は要件文の書き方であり、観測可能な受入条件・反例・REQ→テスト対応・1機能1正本・AI承認の記録は従来どおり必要で、EARS はそれらの代わりにならない。
24
+
25
+ | 型 | 使う場面 | 英語の形 | 日本語の例 |
26
+ |---|---|---|---|
27
+ | 常時 | 条件なしに常に成り立つ | The `<system>` shall ... | システムは金額を円の整数で保持しなければならない |
28
+ | イベント駆動 | 出来事を契機に応答する | When `<trigger>`, the `<system>` shall ... | 注文が確定したとき、注文システムは在庫を減らさなければならない |
29
+ | 状態駆動 | ある状態の間だけ成り立つ | While `<state>`, the `<system>` shall ... | カートが空の間、画面は注文ボタンを無効にしなければならない |
30
+ | 異常系 | 望ましくない状況への対応 | If `<condition>`, then the `<system>` shall ... | 在庫が不足している場合は、注文システムは注文を拒否しなければならない |
31
+ | オプション | 機能・構成がある場合だけ | Where `<feature>`, the `<system>` shall ... | クーポン機能を備える場合、注文システムは割引を適用しなければならない |
32
+
33
+ 複合形は「While 状態, When 契機, ...」のように組み合わせる(例: 会員の間、購入を確定したとき、システムはポイントを付与しなければならない)。条件を重ねすぎて読めなくなる場合は要件を分ける。日本語の対応表現は案内であり、規格化された文法ではない。語順に厳密さを求めず、型と主語・応答が読み取れればよい。
34
+
35
+ - 1つの REQ ID に要件を1つ。複数の応答や条件は ID を分ける。
36
+ - 主語(システム・画面・API 等)を明示し、検証できる応答を1つ書く。
37
+ - 「適切に」「素早く」「使いやすい」など曖昧な語は、具体値・範囲・単位に置き換える。用語と有効範囲は定義する。
38
+ - 通常・異常・境界・状態の各ケースは、要件か受入条件・反例のどれかに必ず現れるよう確認する。
39
+
40
+ musubix7 は既定のワークフローでは EARS の構文を機械的に検査しない。任意の `node <skill>/scripts/ears.mjs check <spec.md>` は、上の表の形に沿うかだけを検査する([helpers](helpers.md#ears-形の任意検査))。EARS の形をしていることは、要件が完全・正しいことを意味しない。目的への適合と抜け(通常・異常・境界・状態)は仕様レビューで確認する。自己確認では、各 REQ が EARS の型に沿って主語と検証可能な応答を持ち、曖昧語が残っていないかを見る。
@@ -1,6 +1,6 @@
1
1
  # 実装と引継ぎ
2
2
 
3
- 正本の ID から対象テストを決める。ホストの計画機能に仕様 ID、依存、各完了条件、現状を保持する。開始前に未完了を完了にしない。テスト runner はプロジェクト固有のものを使う。
3
+ 正本の ID から対象テストを決める。新規・変更する要件文は EARS 形([interview](interview.md#要件文は-ears-で書く))で書き、完了前の仕様確認で EARS 形・主語・曖昧語を見直す(既定では機械検査せず、任意の `ears.mjs check` は形だけを検査する。網羅は仕様レビューで確認する)。ホストの計画機能に仕様 ID、依存、各完了条件、現状を保持する。開始前に未完了を完了にしない。テスト runner はプロジェクト固有のものを使う。
4
4
 
5
5
  設計前に目的・成功条件・根拠、前提と未解決点、対象・非対象を確認する。複数案で判断が変わる場合はトレードオフを短く比較し、正しさと明瞭さを保つ最小の方法を選ぶ。実装・差分レビューでは依頼と必要な依存のみを変更し、その理由を示す。無関係な変更・整形やユーザー編集の破棄はしない。成功条件に対応する焦点検証と必要な回帰を行い、結果の鮮度を確認する。失敗・未確認を完了とせず、実行・再利用・未確認を区別する。
6
6
 
@@ -0,0 +1,103 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { resolve } from 'node:path';
3
+ import { pathToFileURL } from 'node:url';
4
+
5
+ const NOTE = 'Checked the sentence form only against the patterns in references/interview.md (Japanese mapping is ' +
6
+ 'non-standard guidance, heuristic, may give false positives/negatives). Passing does not mean complete, correct or ' +
7
+ 'fit for purpose, and does not replace spec review, acceptance criteria/counterexamples, REQ-to-test mapping or AI approval.';
8
+ const AMBIGUOUS = [/\bappropriate(?:ly)?\b/i, /\bfast(?:er)?\b/i, /\bquick(?:ly)?\b/i, /\buser-friendly\b/i,
9
+ /\bas (?:needed|necessary)\b/i, /\betc\b\.?/i, /適切/, /高速/, /素早/, /迅速/, /使いやすい/, /必要に応じて/, /など/];
10
+ const FINISH = /(?:し)?なければならない$/;
11
+ const PATTERNS = { when: 'event', while: 'state', where: 'optional', if: 'unwanted' };
12
+ const ONE = 'more than one response in a row (one requirement per ID)';
13
+
14
+ const cells = (line) => line.trim().replace(/^\|/, '').replace(/\|$/, '').split(/(?<!\\)\|/).map((c) => c.trim());
15
+
16
+ function english(text) {
17
+ const clauses = [];
18
+ let rest = text;
19
+ for (let m; (m = /^(While|When|Where|If)\b([^,]*),\s*(then\b\s*)?/i.exec(rest));) {
20
+ if (m[1].toLowerCase() === 'if' && !m[3]) return { error: 'no EARS pattern (If needs "then")' };
21
+ clauses.push(m[1].toLowerCase());
22
+ rest = rest.slice(m[0].length);
23
+ }
24
+ const parts = rest.split(/\bshall\b/i);
25
+ if (parts.length === 1) return { error: 'no EARS pattern (missing "shall")' };
26
+ if (parts.length > 2) return { error: ONE };
27
+ const subject = parts[0].replace(/^(?:the|a|an)\b/i, '').trim();
28
+ if (!subject || /^(?:While|When|Where|If)\b/i.test(subject)) return { error: 'missing subject' };
29
+ if (!parts[1].trim()) return { error: 'missing response' };
30
+ return { clauses };
31
+ }
32
+
33
+ function japanese(text) {
34
+ const clauses = [];
35
+ let rest = text.replace(/[。.]$/, '');
36
+ for (let m; (m = /^(.+?)(とき|場合|間)は?、\s*/.exec(rest));) {
37
+ clauses.push(m[2] === 'とき' ? 'when' : m[2] === '間' ? 'while' : /(?:備える|有する|有効な)場合/.test(m[0]) ? 'where' : 'if');
38
+ rest = rest.slice(m[0].length);
39
+ }
40
+ if (!FINISH.test(rest)) return { error: 'no EARS pattern (expected ...なければならない)' };
41
+ if ((rest.match(/ならない/g) ?? []).length > 1 || /かつ|そして/.test(rest)) return { error: ONE };
42
+ const m = /^(.*?)(?:は|が|も)(.*)$/.exec(rest);
43
+ if (!m || !m[1].trim()) return { error: 'missing subject' };
44
+ const response = m[2].replace(FINISH, '').trim();
45
+ if (!response) return { error: 'missing response' };
46
+ return { clauses, warning: response.includes('、') ? 'response contains "、": confirm it is a single response' : undefined };
47
+ }
48
+
49
+ export function checkRequirement(text) {
50
+ if (!text) return { errors: ['empty requirement'], warnings: [] };
51
+ const r = /[\u3040-\u30ff\u4e00-\u9fff]/.test(text) ? japanese(text) : english(text);
52
+ const warnings = AMBIGUOUS.filter((re) => re.test(text)).map((re) => `ambiguous word: ${re.exec(text)[0]}`);
53
+ if (r.warning) warnings.push(r.warning);
54
+ if (r.error) return { errors: [r.error], warnings };
55
+ const n = r.clauses.length;
56
+ return { pattern: n === 0 ? 'ubiquitous' : n === 1 ? PATTERNS[r.clauses[0]] : 'complex', errors: [], warnings };
57
+ }
58
+
59
+ export function checkEars(files, { strict = false, read = (file) => readFileSync(file, 'utf8') } = {}) {
60
+ const requirements = [];
61
+ const skipped = [];
62
+ const ids = new Set();
63
+ for (const file of files) {
64
+ read(file).split(/\r?\n/).forEach((line, index) => {
65
+ if (!/^\s*\|\s*REQ-[A-Za-z0-9_-]+\s*\|/.test(line)) return;
66
+ const row = cells(line);
67
+ const where = { file, line: index + 1, id: row[0] };
68
+ if (row.length !== 4) {
69
+ skipped.push({ ...where, reason: 'skipped: not an EARS-form table (expected 4 columns: REQ ID | EARS要件 | 受入条件と反例 | テスト)' });
70
+ return;
71
+ }
72
+ const result = checkRequirement(row[1]);
73
+ if (ids.has(row[0])) result.errors.push(`duplicate REQ ID: ${row[0]}`);
74
+ ids.add(row[0]);
75
+ requirements.push({ ...where, status: result.errors.length ? 'fail' : 'pass', ...result });
76
+ });
77
+ }
78
+ const sum = (key) => requirements.reduce((n, r) => n + r[key].length, 0);
79
+ const errors = sum('errors');
80
+ const warnings = sum('warnings');
81
+ const empty = requirements.length === 0;
82
+ return { ok: !empty && errors === 0 && !(strict && warnings > 0), strict, errors, warnings,
83
+ checked: requirements.length, skippedCount: skipped.length,
84
+ ...(empty ? { problem: 'no EARS-form requirement rows were checked; nothing is validated' } : {}),
85
+ requirements, skipped, note: NOTE };
86
+ }
87
+
88
+ if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) {
89
+ try {
90
+ const [action, ...rest] = process.argv.slice(2);
91
+ const flags = rest.filter((arg) => arg.startsWith('--'));
92
+ const files = rest.filter((arg) => !arg.startsWith('--'));
93
+ if (action !== 'check' || files.length === 0 || flags.some((flag) => flag !== '--strict')) {
94
+ throw new Error('usage: ears.mjs check [--strict] <spec.md> [<spec.md> ...]');
95
+ }
96
+ const result = checkEars(files, { strict: flags.length > 0 });
97
+ console.log(JSON.stringify(result));
98
+ if (!result.ok) process.exitCode = 1;
99
+ } catch (error) {
100
+ console.error(`ERROR: ${error.message}`);
101
+ process.exitCode = 1;
102
+ }
103
+ }
package/README-ja.md CHANGED
@@ -9,17 +9,59 @@ GitHub Copilot CLI と Claude Code で利用できます。どちらか一方の
9
9
 
10
10
  [実践記事:musubix7によるAI Codingガイド(Gitソース)](https://github.com/nahisaho/musubix7/blob/main/docs/ai-coding-guide-ja.md) — ショッピングサイトの複合料金・在庫・注文を実際に作り、要件定義からRed→Green、HTTP・ブラウザ確認、完了記録までを再現します。
11
11
 
12
- **0.1.5は未公開候補(Unreleased)です。2026-11-29の確認時点でnpm `latest`は0.1.4です。**
13
- 候補には`technical-writing`のwrite/review共通の日本語Markdown太字spacing規約と、
12
+ [Orca Bot経由のアプリ開発手順(日本語、Gitソース)](https://github.com/nahisaho/musubix7/blob/main/docs/orca-bot-app-development-guide-ja.md) — 最初にBotのメリット・デメリットと選び方を説明し、ローカルタスクボードの依頼・SDD/TDD・受入・継続変更へ進みます。比較対象はBot workerが起動した別の直接Copilot CLI実行です。
13
+
14
+ **0.1.7は任意のEARS形検査`ears.mjs`を加えます。** registryの現在の状態は`npm view musubix7 dist-tags`で確認してください。このREADMEでは断定しません。
15
+ 詳細は下の0.1.7の節を参照してください。過去の版(0.1.6、0.1.5)は日付付きの履歴として記録します。
16
+
17
+ **0.1.5の履歴記録: 2026-11-29T05:07:25.703Z UTC(日本時間14:07)にnpmへ公開されました。**
18
+ `technical-writing`のwrite/review共通の日本語Markdown太字spacing規約と、
14
19
  英日リリース説明の更新を含みます。CLI、3つのSkill、optionalのOrca handoff、
15
20
  GiNZA helper、Windows修正は0.1.4に存在し、0.1.5で新規追加した機能ではありません。
16
- 既存の27ファイル配布はCLI、Skill全体、optional Python依存宣言・notice、英日README、
21
+ 公開済み0.1.5のarchive(58,445 bytes、27 entries、SHA256
22
+ `2569e5ee61ea8c64118195ca506652cb6101bd9931f9eb6a675a711e10d632b5`)は
23
+ 準備済みarchiveとバイト単位で一致します。
24
+ [`v0.1.5` source tag](https://github.com/nahisaho/musubix7/tree/v0.1.5) は
25
+ `04cc365e521f8b0af3eb625c99c45c26725c3583`を指します。0.1.5ではGitHub Releaseを作成していません。
26
+ 27ファイル配布はCLI、Skill全体、optional Python依存宣言・notice、英日README、
17
27
  MITライセンスを含みます。変更履歴・開発証跡・Python環境・モデルは同梱しません。
18
- 公開済み0.1.4のregistry archiveはその検証済みarchiveと不変の`v0.1.4` sourceに
19
- 全bytesが一致しますが、今回の候補とは異なります。同梱READMEは準備時の説明を保持します。
20
- 別途承認された [`v0.1.5` source tag](https://github.com/nahisaho/musubix7/tree/v0.1.5) は
21
- 準備済みsourceを示し、npm公開やGitHub Release公開とは別です。
22
- 0.1.5はnpm未公開のままで、所有者が手動公開します。
28
+ その後の`main`のGit限定変更は0.1.5 archiveに含みません。
29
+
30
+ **0.1.7: 任意のEARS形検査([#42](https://github.com/nahisaho/musubix7/issues/42))。**
31
+ 0.1.6のarchiveと比べて、0.1.7は同梱ファイルとして`sdd-tdd`のhelper`scripts/ears.mjs`を1つ加え
32
+ (27 entriesから28 entriesへ。`musubix init`が両hostへコピーします)、`sdd-tdd`の`SKILL.md`・`references/helpers.md`・
33
+ `references/interview.md`・`references/workflow.md`、英日README、`package.json`を変更します。
34
+ archiveのそれ以外は0.1.6と同じです。`docs/`と`examples/`はGit限定でarchiveに含みません。
35
+ `node <skill>/scripts/ears.mjs check [--strict] <spec.md>...`
36
+ は任意の補助でgateではなく、既定のワークフローでは必須ではありません。指定されたファイルだけを読み、
37
+ `REQ ID | EARS要件 | 受入条件と反例 | テスト`の各行の文の形だけを、5つのEARS型と複合形に照らして検査します
38
+ (1応答・主語あり。曖昧語は警告で`--strict`では失敗)。この4列でない行(旧形式の表など)は合格でなく「skipped」と報告します。
39
+ 日本語の検査は`references/interview.md`の非規格の対応表現だけを根拠にした経験則です。
40
+ 通っても要件が完全・正しい・目的に適合するとは限らず、EARS規格のvalidatorではなく、仕様レビュー・受入条件・
41
+ REQ→テスト対応・AI承認の代わりにもなりません。この検査はリポジトリのtestだけで実行しており、
42
+ 実際のCopilot/Claudeのhostセッションでは実行しておらず、GiNZAとOS matrixも再実行していません。
43
+ [helperガイド](.github/skills/sdd-tdd/references/helpers.md#ears-形の任意検査)を参照してください。
44
+
45
+ **0.1.6の履歴記録(2026-11-29): EARS書式の要件定義。** 0.1.6は2026-11-29T07:36:17.843Z UTC(日本時間16:36)にnpmへ公開されました。公開済みarchive
46
+ (61,190 bytes、27 entries、SHA256
47
+ `ce9b263bd3a72df6c4d9a311137057a044dafa3fcb376a3294d9f048cce2a08d`)は、
48
+ [GitHub Release v0.1.6](https://github.com/nahisaho/musubix7/releases/tag/v0.1.6)添付のarchive、および
49
+ [`v0.1.6` source tag](https://github.com/nahisaho/musubix7/tree/v0.1.6)
50
+ (annotated tag、peeled commitは`1a4aa4fbc8fe3464e01a0deacaf515277fe9b4fb`)の同梱ファイルと一致します。
51
+ 0.1.6 archiveに同梱のREADME(0.1.6のnpmページの表示)は、公開前の文面
52
+ (「Unreleased候補、`latest`は0.1.5」)を含みます。READMEはarchiveに含まれ、公開後は変更できないためです。
53
+ 0.1.6の内容は次のとおりでした。
54
+ `sdd-tdd`は`.sdd/specs/<feature>.md`の要件を、1要件1REQ IDのEARS形(常時・イベント駆動・
55
+ 状態駆動・異常系・オプション、複合形)で書くよう案内し、表は
56
+ `REQ ID | EARS要件 | 受入条件と反例 | テスト`にします。日本語の対応表現は案内であり、
57
+ 規格化された文法ではありません。EARSは要件文の書き方にすぎず、受入条件・反例・REQ→テスト対応は
58
+ 引き続き必要です。`existing-code-requirements`は現状の観測挙動をEARSで書けますが、観測事実・
59
+ 推定意図・未知・要求された将来状態は混同しません。0.1.6の変更はSkill文面のみで、EARS構文の機械検査は
60
+ ありませんでした。EARSの形をしていても完全・正しいとは限りません。実際のホスト実行による検証はしておらず、
61
+ real-host挙動・GiNZA・OS matrixは再実行していません。
62
+ 0.1.5のarchiveと比べて同梱ファイルで異なったのは、`sdd-tdd`の`SKILL.md`・
63
+ `references/interview.md`・`references/workflow.md`、`existing-code-requirements`の`SKILL.md`、
64
+ 英日README、`package.json`だけです。Orca Botガイドと`examples/`はGit限定でarchiveに含みませんでした。
23
65
 
24
66
  musubix7は、要件の確認、仕様、計画、テスト、完了判断をつなぐ**プロセスハーネス**です。
25
67
  独自のモデルやエージェント実行基盤ではありません。コーディング、テスト実行、計画、承認操作は
@@ -67,19 +109,24 @@ node ../musubix7-skills/bin/musubix.mjs init
67
109
 
68
110
  取得先を変更する場合は3行すべてのパスを揃えてください。表示される導入元commitを控え、
69
111
  最後のコマンドも導入先rootで実行します。**Gitのmainには文書Skillと以下のsource向け説明があります。
70
- Git sourceとnpm公開は別であり、公開済み0.1.4のarchiveは`v0.1.4` source tagと一致しますが、
71
- 0.1.5候補やその後の`main`のGit限定変更は含みません。
112
+ Git sourceとnpm公開は別であり、`docs/`や`examples/`などのGit限定変更はどのnpm archiveにも含まれません。
113
+ 公開済みarchiveは各release source tagと一致します(0.1.5は`v0.1.5`、0.1.6は`v0.1.6`)。
72
114
  そのsourceから導入する場合は、確認したsourceのローカルbin/musubix.mjsを使います。**
73
115
 
74
116
  ### npm でインストールする方法(推奨)
75
117
 
76
- [npmの0.1.4](https://www.npmjs.com/package/musubix7/v/0.1.4)は所有者が手動で
77
- **2026-11-28の04:56:12.148 UTC**(**日本時間13:56:12.148**)に公開しました。
78
- **2026-11-29** の確認時点でnpm `latest`は **0.1.4** で、
79
- [`v0.1.4`のソースtag](https://github.com/nahisaho/musubix7/tree/v0.1.4)は存在します。
80
- このtagに対応するGitHub Releaseは別の公開物であり、まだ公開されていません。
81
- registry archiveと全27ファイルは検証済みarchiveおよびtagのsource
82
- `d143ee1b35db199f3036534ff69905f2f2e1de02`と一致し、その後のGit文書変更とは区別します。
118
+ registryの現在の`latest`は`npm view musubix7 dist-tags`で確認してください。下の`@latest`はその版を選びます。
119
+ 過去の版の日付付き記録: 0.1.6は2026-11-29の07:36:17.843 UTC(日本時間16:36)に公開され、
120
+ [`v0.1.6`のソースtag](https://github.com/nahisaho/musubix7/tree/v0.1.6)と
121
+ [GitHub Release](https://github.com/nahisaho/musubix7/releases/tag/v0.1.6)があります。
122
+ そのregistry archiveはReleaseに添付したarchive(61,190 bytes、27 entries、SHA256
123
+ `ce9b263bd3a72df6c4d9a311137057a044dafa3fcb376a3294d9f048cce2a08d`)と一致し、
124
+ tag以降のGit文書変更はarchiveに含まれません。
125
+ 過去の版の[npm 0.1.5](https://www.npmjs.com/package/musubix7/v/0.1.5)
126
+ (2026-11-29の05:07:25.703 UTC公開、tag
127
+ [`v0.1.5`](https://github.com/nahisaho/musubix7/tree/v0.1.5)は`04cc365`、27 entries、SHA256
128
+ `2569e5ee61ea8c64118195ca506652cb6101bd9931f9eb6a675a711e10d632b5`、GitHub Releaseなし)も
129
+ 引き続き取得できます。
83
130
  旧0.1.0/0.1.1は不完全な配布版のため、この導入には使わないでください。
84
131
 
85
132
  公開済みのSkillを使う場合は、導入先プロジェクトrootで実行します。
@@ -132,7 +179,7 @@ Claudeの相対リンク方式や更新preview→確認→applyは
132
179
  `sdd-tdd`を明示し、最初の小さな機能から始めます。
133
180
 
134
181
  1. 目的・成功条件・対象外を確認し、判断に影響する不明点だけを解決します。
135
- 2. `.sdd/specs/<feature>.md`に唯一の仕様、受入条件、例・反例、安定REQ IDとテスト対応を記します。
182
+ 2. `.sdd/specs/<feature>.md`に唯一の仕様として、EARS形の要件(0.1.6以降)、受入条件、例・反例、安定REQ IDとテスト対応を記します。
136
183
  3. ホストの計画機能で依存・完了条件を整理し、プロジェクト標準runnerで意味あるassertionの**Red**を実行します。
137
184
  4. **同じテスト**を最小実装で**Green**にし、必要ならrefactorと影響する回帰を行います。
138
185
  5. 仕様・実装・テストを照合し、必要な検証・証拠・レビューを揃えてDoneを記録します。失敗・skip・未実施は成功にしません。
@@ -248,8 +295,8 @@ Botsのplugin・installer・runtimeではありません。確認済みの識別
248
295
  `.claude/skills/sdd-tdd/references/orca-handoff.md`に配置されます。
249
296
  musubix7専用のBots installerはありません。導入元commit/versionと配置内容を確認し、
250
297
  hostに`sdd-tdd`とこのreferenceの読取を明示依頼してください。
251
- 配置・発見は実行の証明ではありません。上記のとおりnpm `latest`は**0.1.3**ですが、
252
- このsourceのプロファイルが公開archiveに含まれるかは未検証です。
298
+ 配置・発見は実行の証明ではありません。プロファイルは`sdd-tdd`の同梱ファイルです。
299
+ ある版の内容は、その版を導入して配置されたファイルで確認してください。
253
300
 
254
301
  Orcaも使う場合は、導入済みの`orca-cli` Skillに従って実行ファイルを解決し、
255
302
  そのOrcaビルドが提供するガイドを読みます。次の例の`ORCA`は解決した実行ファイルの
package/README.md CHANGED
@@ -9,20 +9,67 @@ English | [日本語](README-ja.md)
9
9
 
10
10
  [Hands-on AI coding guide (Japanese, Git source)](https://github.com/nahisaho/musubix7/blob/main/docs/ai-coding-guide-ja.md) — Build a shopping site with compound pricing, inventory and orders, from requirements through Red/Green, HTTP/browser checks, and completion records.
11
11
 
12
- **0.1.5 is an Unreleased candidate; npm `latest` is still 0.1.4 as checked on 2026-11-29.**
13
- The candidate adds shared Japanese Markdown bold-spacing guidance for
14
- `technical-writing` write/review and updates bilingual release documentation.
15
- The CLI, three Skills, optional Orca handoff, GiNZA helper and Windows
16
- corrections already existed in 0.1.4; they are not new 0.1.5 features.
17
- The unchanged 27-file distribution includes the CLI, complete Skills, optional
18
- Python requirements/notices, bilingual READMEs and MIT licenses. Changelogs,
19
- development evidence, Python environments and models are not bundled.
20
- The published 0.1.4 registry archive matches its verified archive and immutable
21
- `v0.1.4` source byte for byte, not this candidate. Its READMEs retain preparation-time
22
- wording. The separately authorized
23
- [`v0.1.5` source tag](https://github.com/nahisaho/musubix7/tree/v0.1.5)
24
- identifies the prepared source, not an npm publication or GitHub Release.
25
- 0.1.5 remains unpublished on npm; the owner will publish manually.
12
+ [Orca Bot application development guide (Japanese, Git source)](https://github.com/nahisaho/musubix7/blob/main/docs/orca-bot-app-development-guide-ja.md) — Start with Bot advantages, disadvantages, and selection criteria, then develop a local task board through requests, specifications, TDD, acceptance, and a follow-up change. The comparison uses a separate direct Copilot CLI run launched by the Bot worker.
13
+
14
+ **0.1.7 adds an optional EARS form check, `ears.mjs`.** For the current registry state, run
15
+ `npm view musubix7 dist-tags`; this README does not assert it. See the 0.1.7 section below.
16
+ Earlier releases (0.1.6, 0.1.5) are recorded below as dated history.
17
+
18
+ **Release 0.1.5 (historical record): published on npm on 2026-11-29T05:07:25.703Z UTC (14:07 JST).**
19
+ It adds shared Japanese Markdown bold-spacing guidance for `technical-writing`
20
+ write/review and updates bilingual release documentation. The CLI, three Skills,
21
+ optional Orca handoff, GiNZA helper and Windows corrections already existed in 0.1.4;
22
+ they are not new 0.1.5 features.
23
+ The published 0.1.5 archive (58,445 bytes, 27 entries, SHA256
24
+ `2569e5ee61ea8c64118195ca506652cb6101bd9931f9eb6a675a711e10d632b5`) matches the
25
+ prepared archive byte for byte. The
26
+ [`v0.1.5` source tag](https://github.com/nahisaho/musubix7/tree/v0.1.5) points to
27
+ `04cc365e521f8b0af3eb625c99c45c26725c3583`. No GitHub Release has been created.
28
+ The 27-file distribution includes the CLI, complete Skills, optional Python
29
+ requirements/notices, bilingual READMEs and MIT licenses. Changelogs, development
30
+ evidence, Python environments and models are not bundled. Later Git-only changes on
31
+ `main` are not in the 0.1.5 archive.
32
+
33
+ **0.1.7: optional EARS form check ([#42](https://github.com/nahisaho/musubix7/issues/42)).**
34
+ Compared with the 0.1.6 archive, 0.1.7 adds one shipped file, the `sdd-tdd` helper `scripts/ears.mjs`
35
+ (28 entries instead of 27; `musubix init` copies it to both hosts), and changes the `sdd-tdd`
36
+ `SKILL.md`, `references/helpers.md`, `references/interview.md` and `references/workflow.md`,
37
+ both READMEs and `package.json`. Everything else in the archive is unchanged from 0.1.6.
38
+ `docs/` and `examples/` are Git-only and not in the archive.
39
+ `node <skill>/scripts/ears.mjs check [--strict] <spec.md>...`
40
+ is an opt-in helper, not a gate and not required by the default workflow. It reads only the given files and checks only the sentence form of
41
+ each `REQ ID | EARS requirement | acceptance condition and counterexample | test` row against the
42
+ five EARS patterns and the combined form (one response, explicit subject; ambiguous words are warnings,
43
+ failures with `--strict`). Rows that are not in that 4-column shape (such as old-format tables) are reported as skipped, not passed.
44
+ The Japanese check relies only on the non-standard mapping in `references/interview.md`
45
+ and is heuristic. Passing does not mean a requirement is complete, correct or fit for purpose; it is
46
+ not an EARS standard validator and does not replace spec review, acceptance criteria, REQ-to-test
47
+ mapping or AI approval. The check was run only with the repository's tests; it was not run in
48
+ real Copilot or Claude host sessions, and the GiNZA and OS matrix were not rerun for it.
49
+ See the [helper guide](.github/skills/sdd-tdd/references/helpers.md#ears-形の任意検査).
50
+
51
+ **0.1.6 (historical record, dated 2026-11-29): EARS-format requirements.** 0.1.6 was published on npm at
52
+ 2026-11-29T07:36:17.843Z UTC (16:36 JST). The published archive (61,190 bytes, 27 entries, SHA256
53
+ `ce9b263bd3a72df6c4d9a311137057a044dafa3fcb376a3294d9f048cce2a08d`) is identical to the
54
+ archive attached to the [GitHub Release v0.1.6](https://github.com/nahisaho/musubix7/releases/tag/v0.1.6)
55
+ and to the shipped files at the [`v0.1.6` source tag](https://github.com/nahisaho/musubix7/tree/v0.1.6)
56
+ (annotated tag; peeled commit `1a4aa4fbc8fe3464e01a0deacaf515277fe9b4fb`).
57
+ The README bundled inside the 0.1.6 archive (shown on the npm page of 0.1.6) carries
58
+ pre-publication wording ("Unreleased candidate, `latest` is 0.1.5"), because a README ships in
59
+ its archive and cannot be changed after publication. The 0.1.6 content was: `sdd-tdd` guides writing each requirement in `.sdd/specs/<feature>.md`
60
+ in EARS form (ubiquitous, event-driven, state-driven, unwanted-behaviour, optional-feature and
61
+ combined patterns; Japanese phrasing is guidance, not a standardized grammar), one requirement
62
+ per REQ ID, with the table `REQ ID | EARS requirement | acceptance condition and counterexample | test`.
63
+ EARS only shapes the sentence; acceptance conditions, counterexamples and REQ-to-test mapping
64
+ remain required. `existing-code-requirements` may describe current observed behaviour in EARS
65
+ without merging facts, inferred intent, unknowns and requested future changes. The 0.1.6 change was
66
+ Skill text only: 0.1.6 did not mechanically validate EARS syntax, and EARS-shaped does not mean
67
+ complete or correct. It was not verified with real host runs; the real-host
68
+ behaviour, GiNZA and OS matrix were not rerun.
69
+ Compared with the 0.1.5 archive, only these shipped files differed: the `sdd-tdd` `SKILL.md`,
70
+ `references/interview.md` and `references/workflow.md`, the `existing-code-requirements`
71
+ `SKILL.md`, both READMEs and `package.json`. The Orca Bot guide and `examples/` are Git-only
72
+ and were not in the archive.
26
73
 
27
74
  musubix7 is a **process harness** connecting requirements, specifications, planning,
28
75
  tests, and completion checks. It is not a model or an agent runtime. Your host CLI
@@ -70,19 +117,24 @@ node ../musubix7-skills/bin/musubix.mjs init
70
117
  If you change the checkout location, update all three paths. Keep the printed
71
118
  source commit for reference, and run the final command from the target root too.
72
119
  **Git `main` contains the writing Skill and the source documentation below.
73
- Git source and npm publication are separate: the published 0.1.4 archive matches
74
- the `v0.1.4` source tag, not the 0.1.5 candidate or later Git-only changes on `main`. Use the checked source's local
120
+ Git source and npm publication are separate: Git-only changes on `main` (such as `docs/` and `examples/`)
121
+ are not in any npm archive; published archives match their release source tags (0.1.5 matches `v0.1.5`, 0.1.6 matches `v0.1.6`). Use the checked source's local
75
122
  `bin/musubix.mjs` when installing from that source.**
76
123
 
77
124
  ### Install with npm (recommended)
78
125
 
79
- [npm 0.1.4](https://www.npmjs.com/package/musubix7/v/0.1.4) was manually published by the owner on
80
- **2026-11-28 at 04:56:12.148 UTC** (**13:56:12.148 JST**).
81
- As checked on **2026-11-29**, npm `latest` is **0.1.4**, and the
82
- [`v0.1.4` source tag](https://github.com/nahisaho/musubix7/tree/v0.1.4) exists.
83
- A separate GitHub Release has not been published for this tag.
84
- The registry archive and all 27 files match the verified archive and tagged
85
- source `d143ee1b35db199f3036534ff69905f2f2e1de02`; later Git documentation is separate.
126
+ Run `npm view musubix7 dist-tags` for the registry's current `latest`; `@latest` below resolves
127
+ to it. Dated records of past releases: 0.1.6 was published on **2026-11-29 at 07:36:17.843 UTC**
128
+ (**16:36 JST**) with its [`v0.1.6` source tag](https://github.com/nahisaho/musubix7/tree/v0.1.6) and
129
+ [GitHub Release](https://github.com/nahisaho/musubix7/releases/tag/v0.1.6); that registry archive matches the
130
+ archive attached to the Release (61,190 bytes, 27 entries, SHA256
131
+ `ce9b263bd3a72df6c4d9a311137057a044dafa3fcb376a3294d9f048cce2a08d`).
132
+ Git documentation after a tag is separate and not in the archive.
133
+ The earlier release [npm 0.1.5](https://www.npmjs.com/package/musubix7/v/0.1.5)
134
+ (published 2026-11-29 at 05:07:25.703 UTC, tag
135
+ [`v0.1.5`](https://github.com/nahisaho/musubix7/tree/v0.1.5) at `04cc365`, 27 entries, SHA256
136
+ `2569e5ee61ea8c64118195ca506652cb6101bd9931f9eb6a675a711e10d632b5`, no GitHub Release),
137
+ remains available.
86
138
  Earlier 0.1.0/0.1.1 are incomplete distributions;
87
139
  do not use them for this installation.
88
140
 
@@ -145,7 +197,7 @@ successful execution of the process.
145
197
  Explicitly request `sdd-tdd` and start with one small feature.
146
198
 
147
199
  1. Clarify the goal, success conditions, and exclusions; resolve only unknowns that affect decisions.
148
- 2. Write the single specification in `.sdd/specs/<feature>.md`, with acceptance criteria, examples/counterexamples, stable REQ IDs, and test mappings.
200
+ 2. Write the single specification in `.sdd/specs/<feature>.md`, with EARS-form requirements (since 0.1.6), acceptance criteria, examples/counterexamples, stable REQ IDs, and test mappings.
149
201
  3. Use the host's planning facilities for dependencies and completion criteria, then run a meaningful failing assertion: **Red**, using the project's native runner.
150
202
  4. Make **the same test Green** with minimal implementation; refactor and run affected regressions as needed.
151
203
  5. Reconcile specification, implementation, and tests; collect required checks, evidence, and review before recording Done. Failures, skips, and unperformed checks are not success.
@@ -276,8 +328,8 @@ root. The profile is part of `sdd-tdd`, at
276
328
  `.claude/skills/sdd-tdd/references/orca-handoff.md` for Claude; there is no separate
277
329
  musubix7 Bots installer. Confirm the source commit/version and installed contents,
278
330
  then explicitly ask the host to read `sdd-tdd` and this reference. Placement or
279
- discovery does not prove execution. npm `latest` is **0.1.3**, as described above;
280
- this source profile's inclusion in the published archive has not been verified.
331
+ discovery does not prove execution. The profile is a shipped file of
332
+ `sdd-tdd`; to check what a given version contains, install it and inspect the placed files.
281
333
 
282
334
  If you also use Orca, resolve its executable using your installed `orca-cli`
283
335
  Skill, then read the guides supplied by that Orca build. In the following
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musubix7",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Small SDD/TDD, requirements and technical writing Agent Skills",
5
5
  "license": "MIT",
6
6
  "repository": {