Skip to content

refactor: name real argument groups instead of mirroring parameters - #256

Merged
furedea merged 2 commits into
mainfrom
refactor/name-real-argument-groups
Oct 21, 2026
Merged

furedea merged 2 commits into
mainfrom
refactor/name-real-argument-groups

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

概要

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

furedea and others added 2 commits October 21, 2026 16:20
Drop the unused Attempt record, pass LintTarget across lint_engine,
move receipt helpers onto VerificationRun, and key session_directory
by SessionKey.

Refs #247

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…dgets

Replace _RenderOptions, which mirrored _render_page's parameters, with a
_Browser(path, wait_ms, timeout_seconds) that runs the process and builds
its headless flags; _render_page now takes the browser and the width.

Refs #247

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea
furedea merged commit 7f13693 into main Oct 21, 2026
11 checks passed
@furedea
furedea deleted the refactor/name-real-argument-groups branch October 21, 2026 08:20
@furedea-agent furedea-agent Bot mentioned this pull request Nov 20, 2026
3 of 4 tasks
furedea added a commit that referenced this pull request Nov 20, 2026
agent-config を v0.3.1 に更新する.`flake.lock` の `agent-config` だけを変える.

| 入力         | 変更前              | 変更後              |
| ------------ | ------------------- | ------------------- |
| agent-config | `2514f2d`(v0.3.0) | `3dfa0ad`(v0.3.1) |

v0.3.1 の主な変更:`gh` の確認の削減(#254,#256,#262),#196 の Jev 規則の修正(#257〜#260).

- [x] `3dfa0ad` が v0.3.1 タグのコミットであることを確認
- [x] `nix flake check --no-build` が通る
- [x] `darwinConfigurations.mba.system` をローカルで build
- [ ] 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant