Conversation
…because of 現実のプロジェクトパターン不足 - rust_multifile_main fixture: src/main.rs + src/runner.rs を main レイヤーに含む - 正常系: 両ファイルが main レイヤーとして認識される - 失敗系: runner.rs の dependency violation 検出 - 失敗系: runner.rs への allow_call_patterns 適用 - 失敗系: usecase レイヤーでの allow_call_patterns 違反検出 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…se of main限定の制約が不要 - spec.md: main限定の記述を削除、全レイヤーで定義可能と明記 - website docs (ja/en): Aside caution を削除、全レイヤー対応の説明に変更 - AGENTS.md: 同上 - README.md: allow_call_patterns の説明を更新 - docs/TODO.md: 実装状況サマリー更新 - ci.yml: rust_multifile_main fixture の dogfooding ステップ追加 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
allow_call_patternsの main レイヤー限定制約を撤廃し、全レイヤーで定義可能にtests/fixtures/rust_multifile_main/を新設 —src/main.rs(薄いラッパー)+src/runner.rs(実質エントリ)を同一 main レイヤーに含むパターンrust_multifile_mainfixture を追加背景
main.rsが 1 行の薄いラッパーで、隣のrunner.rsやapp.rsに実質的なロジックがあるパターンが多い。既存 fixture は全てmain/**ディレクトリ or 単一ファイルのみだったTest plan
cargo test --test e2e_multifile_main— 8 テスト全通過cargo test— 全テスト通過(既存テストへの影響なし)rust_multifile_mainfixture) が GitHub Actions で通過すること🤖 Generated with Claude Code