Skip to content

feat(delegation): herdr-core のレーンを --no-parent ではなく --no-notify で起動する - #297

Merged
furedea merged 1 commit into
mainfrom
feat/start-hc-lanes-with-no-notify
Dec 2, 2026
Merged

furedea merged 1 commit into
mainfrom
feat/start-hc-lanes-with-no-notify

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

概要

herdr-core のレーンを hc run --no-parent ではなく --no-notify で起動し,親子関係は残して親への通知だけを切る.

  • 親のターミナルを閉じたときはレーンも終わる(評価する親がいないレーンを残さない).
  • claude だけが再起動しシェルが残る場合はレーンは残る(親はシェルのターミナル).
  • blocked・error・exit の通知は親の PTY に打ち込まれない.親は背景の hc wait で同じ状態を知る.
  • 親が herdr-core の外(T3 Code,普通の端末)で動く場合は,従来どおり親子関係は成立しない.

変更内容

  • agents/hooks/lib/hc_terminal.py: RUN の文法で --no-parent の代わりに --no-notify を必須にした.--no-parent,--outlive-parent,--parent は文法の外なので ask になる.
  • tests/hooks/test_hc_terminal.py, tests/hooks/test_hc_ownership.py: 新しい起動形式に更新し,--no-notify のないレーン,--no-parent,--outlive-parent,--parent がそれぞれ ask になることを固定した.
  • agents/skills/delegation/references/hc.md: Guard Contract と Start を --no-notify に更新し,その理由を書いた.Wait の手順(turn の数え方)は変えていない.
  • docs/adr/0030_...md: ADR-0030 の Chosen option は変わらないので,その場で編集した.--no-parent の記述を --no-notify とその理由に置き換え,捨てた「--no-parent で起動」と「通知を有効のままにする」を Considered Options に加えた.この詳細だけでは Decision Test を満たさないため,別 ADR にはしない.

検証

  • uv run pytest tests/hooks/test_hc_terminal.py tests/hooks/test_hc_ownership.py: 126 件成功
  • uv run ruff check, uv run ruff format --check, uv run ty check: 成功
  • 変更した Markdown は dprint check で問題なし

Closes #295

🤖 Generated with Claude Code

…--no-parent

Keep the parent link so closing the parent terminal ends its lanes, and only
stop hc from typing notes about a lane into the parent terminal. The guard now
requires --no-notify and asks for --no-parent, --outlive-parent, and --parent.

Closes #295

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@furedea

furedea commented Dec 2, 2026

Copy link
Copy Markdown
Owner

@codex review

@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-02T10:57:41.722073Z 68c1e29 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.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review (read-only): no findings.

The grammar change in hc_terminal.py is consistent. --no-notify is now required, and --no-parent, --outlive-parent and --parent fall outside the grammar, so they ask. The new tests cover each of those cases. The remaining --no-parent mentions in the repo are only in the tests, the ADR's rejected options and the hc.md prohibition. I could not run the test suite in this environment, so I did not confirm the 126 passing tests the PR reports. The ADR's claims about hc behaviour (the parent link, the typed notes) also can't be checked from this repo.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 68c1e2931b

ℹ️ 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 34d251b into main Dec 2, 2026
29 checks passed
@furedea
furedea deleted the feat/start-hc-lanes-with-no-notify branch December 2, 2026 11:16
furedea pushed a commit that referenced this pull request Dec 2, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.8.0](v0.7.0...v0.8.0)
(2026-12-02)


### ⚠ BREAKING CHANGES

* **adr:** drop the ADR front matter and adr-check
([#301](#301))

### Features

* **adr:** drop the ADR front matter and adr-check
([#301](#301))
([971cccf](971cccf))
* **adr:** keep only current decisions in ADRs
([#294](#294))
([f27eb15](f27eb15))
* **delegation:** herdr-core のレーンを --no-parent ではなく --no-notify で起動する
([#297](#297))
([34d251b](34d251b))
* **settings:** allow GitHub Actions log host in Claude sandbox network
policy ([#304](#304))
([e832155](e832155))


### Performance Improvements

* **delegation:** speed up lane CI waits and polling intervals
([#300](#300))
([f68c8a2](f68c8a2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
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.

herdr-core のレーンを --no-parent ではなく --no-notify で起動する

1 participant