Skip to content

chore(delegation): remove herdr-core (hc) transport and guard support - #302

Merged
furedea merged 1 commit into
mainfrom
chore/remove-herdr-core-transport
Dec 2, 2026
Merged

furedea merged 1 commit into
mainfrom
chore/remove-herdr-core-transport

Conversation

@furedea

@furedea furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

概要

herdr.app を使わない判断に伴い,herdr-core(hc CLI)の委譲 transport・ガード・所有権管理・sandbox 除外・スキル記述・テストを削除し,T3 Code をメインの transport とする.Herdr TUI(herdr *,herdr-delegation,~/.herdr/worktrees の掃除)は維持する.

  • 削除: agents/hooks/lib/hc_terminal.py,hc_ownership.py,tests/hooks/test_hc_terminal.py,test_hc_ownership.py,agents/skills/delegation/references/hc.md
  • guard_command.py,verification_session.py,literal_words.py,pyproject.toml から hc の参照を削除
  • agents/command_permissions.json の hc 規則 12 件,agents/hooks.json の Bash(hc run *) フック,agents/claude/settings.json の "hc *"(excludedCommands)を削除.hc の呼び出しは sandbox 内に留まり,既定で ask になる
  • delegation/SKILL.md・t3.md・development-cycle/SKILL.md・branches.md・herdr-delegation/SKILL.md・docs/DESIGN*.md から herdr-core / hc の記述を削除(branches.md の手順番号は繰り上げ)
  • ADR-0030 は決定が覆ったため,ADR 規約(置き換えは新しい ADR を書き,古い ADR を削除する)に従い削除し,ADR-0034 を追加

Closes #299

計画コメント: #299 (comment)

検証

  • ruff check / ruff format --check / ty check / adr-check docs/adr: 通過
  • pytest: 6585 passed,2 skipped,1 failed.失敗は tests/hooks/test_model_rules_process.py::test_only_the_op_process_receives_the_token_and_only_allowlisted_variables で,ローカル環境の LC_CTYPE 環境変数に由来し,今回の変更とは無関係(CI で確認する).負荷で不安定だった test_guard_suppression_budget は再実行で通過
  • rg で herdr-core / hc_terminal / hc_ownership / references/hc.md / hc の残存参照がないことを確認(CHANGELOG を除く)

計画からの逸脱

  • ADR-0030 を「superseded/deprecated に更新」ではなく,リポジトリの ADR 規約(ステータスなし,置き換えは削除)に従って削除し ADR-0034 を追加した

🤖 Generated with Claude Code

Carry lanes only on T3 Code, with Herdr TUI panes still available on an
explicit request. Remove the hc guard, terminal ownership record, command
permissions, hook registration, `hc *` sandbox exclusion, the hc skill
reference, and their tests, and replace ADR-0030 with ADR-0034.

Closes #299

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings December 2, 2026 13:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T13:13:21.020172Z 3fac40f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review summary: no P0–P3 findings.

I read the whole diff and grepped the merged checkout. Nothing outside the CHANGELOG and the new ADR-0034 still mentions hc, herdr-core, hc_terminal or hc_ownership.

  • Removals: the guard, verification_session.py, literal_words.py, hooks.json, command_permissions.json, settings.json excludedCommands and pyproject.toml removals are consistent with each other. The hc run hook is gone from hooks.json, and its entry is gone from the hook-coverage test.
  • Tests: the deleted tests only covered the deleted modules. The Bash(hc run *) expectation was dropped from test_herdr_ownership_workspaces.py.
  • ADR: the only remaining ADR-0030 mentions are in ADR-0012. They appear to refer to a different, dotfiles-related decision, so deleting this repo's ADR-0030 leaves no dangling link.
  • Docs: the renumbered steps in branches.md and the T3-only wording in the skills read correctly.

I did not run the test suite. The PR description says one test failed locally on LC_CTYPE (test_only_the_op_process_receives_the_token_and_only_allowlisted_variables) and should be confirmed in CI.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 3fac40fe2e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea
furedea merged commit 4c852da into main Dec 2, 2026
29 checks passed
@furedea
furedea deleted the chore/remove-herdr-core-transport branch December 2, 2026 13:19
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.

chore(delegation): remove herdr-core (hc) transport and guard support

2 participants