Repository navigation
docs(agents): treat lint limits as design signals - #255
Merged
Merged
Conversation
An argument limit exists to keep functions focused and data modeled, so packing arguments into an anonymous object only hides the signal. State the fixes to prefer and allow grouping only into a named domain type. Co-Authored-By: Claude Opus 5.5 <[email protected]>
furedea
added a commit
that referenced
this pull request
Oct 21, 2026
…256) ## 概要 lint の引数上限を避けるためだけに作られていたグルーピングを,PR #255 の方針(上限は設計シグナルとして扱う)に沿って直します.振る舞いは変えていません. Refs #247 ## 変更内容 | グルーピング | 対応 | 理由 | | --- | --- | --- | | `guard_command.py` の `Attempt(kind, command, payload)` | derive(削除) | `command` は一度も読まれておらず,`record(verdict, kind, payload)` で足ります.`decide` 内の `command` 取り出しも記録専用だったので削除しました(`command_verdict` が同じ try 内で同じ値を取り出すため挙動は同じです). | | `lint_engine.py` の `tuple[tuple[str, Path], ...]` | real concept | 関数境界を越える (language, path) の組を `LintTarget(language, path)` と命名しました.`checker` の引数形は変えていません. | | `session_gate.py` の `VerificationRun` | move | 引数を渡すためだけに組み立てていたので,`current_receipt` と `configuration_failure` を `VerificationRun` のメソッドにしました. | | `session_store.session_directory` の 3 引数 | real concept(既存型の再利用) | 既存の `SessionKey` を受け取るようにし,呼び出し元とテストを更新しました. | | `verify_page.py` の `_RenderOptions(width, wait_ms, timeout_seconds)` | move | `_render_page` の引数を写しただけの型でした.プロセス実行とヘッドレス用フラグを持つ `_Browser(path, wait_ms, timeout_seconds)` に置き換えました.`wait_ms`(仮想時間予算)と `timeout_seconds` はどちらもブラウザ起動ごとの時間予算です.width と組む viewport 型は実在の概念にならないので作っていません.`_render_page(html_path, browser, width)` は 3 引数になります. | ## 確認 - `uv run --frozen ruff format --check` / `ruff check` / `ty check`: 成功 - `uv run --frozen pytest -q`: 1877 passed - `lefthook run pre-commit --all-files`: 成功 - 数値系 lint の無効化は追加していません.ブラウザを使うテストはサンドボックスで実行できないため,CI の結果で確認します. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
4 tasks
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.
概要
agents/AGENTS.mdの関数の指針に 1 行だけ足し,直し方の順番と,まとめてよい条件をはっきりさせる.受け入れ条件
背景
🤖 Generated with Claude Code