Commit b9efe81
docs: 実装とのドリフト解消・ステータス同期・参照表現の汎用化 (#194)
* docs: 実装とのドリフト解消・ステータス同期・参照表現の汎用化
ドキュメント全体を実装と照合し、ドリフト/陳腐化/内部矛盾を解消する。
実装とのドリフト:
- import-logic.md / csv-format.md: notes / alternativeLabel / extensions は
永続化済みなのに「非保存」と記載していた箇所を修正(db-schema.md とも整合)
- CSV エクスポートのヘッダー記述を実コードに合わせる(独自 16 列・OpenSALT 13 列、
alternativeLabel / notes / Notes 列、#identifier / #notes メタデータ)
- FR-2.5: sort/orderBy/filter/fields は「無視」ではなく実装済み(不正値 400 +
X-Total-Count)に修正
ステータス同期:
- phases.md / FR: Phase 3 の Discovery・notes 系・OpenSALT Excel round-trip・
GET /CFDocuments クエリパラメータを「完了」に。xlsx / rubric の CLI を FR-10 に追加
- NFR-4.3 を NG-2(認証はスコープ外)と整合。NFR-7.1 をランタイム中立な表現に
- deployment.md の alembic 実行コマンドに uv run を付与(コンテナ内で解決可能に)
その他:
- db-schema.md: tenant.slug、cf_document の package_extensions /
definitions_extensions / cf_package_uri_source を追記
- cli.md: ファイル不在時の終了コード差・tenant update の対象オプションを明確化
- 参照表現の汎用化: 下流のデプロイ/管理レイヤーを固有名ではなく汎用表現に統一し、
実装済みで履歴的価値のみの設計メモ cli-command-redesign.md を削除
EN/JA 両面を同期。
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* docs: Codex レビュー指摘の追加ドリフト解消(notes/extensions・rubric 親スコープ UNIQUE)
PR #194 のレビューで見つかった残存ドリフト 3 件を修正:
- api-spec.md: 「notes / alternativeLabel / extensions は Phase 1 で省略・
Pydantic に含めない」という旧説明を、永続化・往復・API 出力される現状に修正
- db-schema.md: cf_rubric_criterion / cf_rubric_criterion_level を旧グローバル
UNIQUE 前提から親スコープ UNIQUE(#187)に修正。cf_item_uri_source 列を追記。
「全テーブルが UNIQUE(tenant_id, identifier)」の記述に親スコープ例外を明記
- import-logic.md: CFRubrics upsert を「identifier 一致」から親スコープ一致
(Criterion=親 CFRubric 内 / Level=親 CFRubricCriterion 内)に明確化。
CSV ルーブリックインポートの Step 4 も同様に明確化
EN/JA 両面を同期。
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent eedaa28 commit b9efe81
12 files changed
Lines changed: 120 additions & 217 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| |||
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
562 | | - | |
| 562 | + | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| |||
0 commit comments