-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(ledger): 台帳パーサを lib-ledger crate へ抽出する #403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -428,7 +428,7 @@ | |
|
|
||
| > **動機**: `is_table_row` は行頭 `|` を要求するのに対し、`is_separator_row` は `split_cells` の結果だけを見るため**パイプを 1 つも含まない行が通る**。`split_cells("---")` は `["---"]` を返し、全セルが `-` のみなので真になる。 | ||
| > | ||
| > **2026-08-07 に実コードで確認済み** ([ledger.rs:262-272](../src/cli-nightly-task-select/src/ledger.rs#L262-L272))。markdown の水平線 `---` は本 todo ファイル自身が使っており、台帳に現れうる。表の直前に水平線があると、それをセパレータ行と誤認して表構造の解釈がずれる。 | ||
| > **2026-08-07 に実コードで確認済み** ([lib.rs:262-272](../src/lib-ledger/src/lib.rs#L262-L272))。markdown の水平線 `---` は本 todo ファイル自身が使っており、台帳に現れうる。表の直前に水平線があると、それをセパレータ行と誤認して表構造の解釈がずれる。 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# is_separator_row の定義行を確認する
rg -n 'fn is_separator_row' src/lib-ledger/src/lib.rsRepository: aloekun/claude-code-hook-test Length of output: 213 🏁 Script executed: #!/bin/bash
sed -n '352,366p' src/lib-ledger/src/lib.rs
sed -n '426,434p' docs/todo20.mdRepository: aloekun/claude-code-hook-test Length of output: 1070 リンクの行アンカーを更新してください。
🤖 Prompt for AI Agents |
||
| > | ||
| > [ADR-072](adr/adr-072-nightly-todo-loop.md) 決定 2 が「台帳の曖昧さはすべて停止側へ」と定めた fail-closed 設計の coverage hole にあたる。 | ||
| > | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| [package] | ||
| name = "lib-ledger" | ||
| version = "0.1.0" | ||
| edition = "2021" | ||
|
|
||
| [lib] | ||
| name = "lib_ledger" | ||
| path = "src/lib.rs" | ||
|
|
||
| [dependencies] | ||
| # 外部 crate 依存を持たない。本 crate は夜間ループが「何を実装してよいか」を決める | ||
| # 台帳の解釈を担い、無人経路の入口にあたる。供給元が増えるほど攻撃面が広がるため、 | ||
| # 依存を足さないこと自体が設計上の制約 (移設元 cli-nightly-task-select から継承)。 | ||
|
|
||
| # [profile.release] は workspace root (Cargo.toml) に集約 (ADR-026) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
保護対象の件数を更新してください。
src/lib-ledger/**の追加後、Line 113 の列挙は 8 件です。しかし Line 119 は「リストに載せた 7 つ」と記載しています。7を8に更新するか、件数の記載を削除してください。🤖 Prompt for AI Agents