Repository navigation
docs: Herdr cold restart capability spike (#2571) の結果を記録する - #2579
Merged
Merged
Conversation
…-restore-spike.mdに記録する #2571のcausal proof canary(disposable named Herdr session + outer pane方式)を実機実行し、 feasibility_verdict: partially_feasible_with_constraints を確定した。前回のPython subprocess 経由起動で発生していたghostty error -2 blockerを、outer pane内で実PTY付きにherdr TUIを 常駐させる方式で回避した。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
…を明記する Verification Command(rg -n "herdr --version")が値のみの記載では一致しなかったため、 baselineテーブルにコマンド文字列自体を明記して修正する。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
Contributor
Preview URLPreview removed (PR #2579 closed). |
8 tasks
…をper-block basisで満たす YAML frontmatterを repo規約(fenced yaml block、bare --- frontmatterではない)に合わせて修正し、 日本語比率が閾値未満だった見出しブロックに日本語を追加した。PR body側のJapanese Content Check もper-block判定に合わせて修正済み。 Co-Authored-By: Claude Sonnet 5 <[email protected]>
This was referenced Sep 8, 2026
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(概要)
docs/dev/task-context-herdr-cold-restore-spike.mdに記録する。feasibility_verdict: partially_feasible_with_constraintsspikeの目的
Herdr cold restart経路でのproject-scoped dispatcher/PATH-shim interceptionが実現可能かを、disposable named Herdr sessionに対する実際のcold restart canaryのcausal runtime proofで判定し、#2569(実装Issue)の着手判断材料とする。production code実装(#2569)はスコープ外とする。
実現可能性の判定
partially_feasible_with_constraintsと判定した。claude --resume・同一conversation continuityは、いずれもcausalに成立することを実機で確認した。herdr --env PATH=...注入だけでは対話シェルのrc処理(~/.local/bin等の再prepend)に上書きされてしまい、単独では不十分であることも確認した。--claude-bin型)の採用が必須の追加制約となる。causal runtime evidenceの要約
前回試行のblocker(Python subprocess経由でのHerdr TUI起動が
ghostty error -2で失敗した事象)を、今回はouter pane方式(human default session内に専用outer pane/workspaceを1つ作成し、その実PTY上でdisposable named Herdr TUIを起動、親からは--sessionflagで制御する方式)で解消した。lp2571-repro-<nonce>(人間のdefault sessionとは完全に名前空間分離)exec <absolute-path> "$@"型、symlinkは不使用)+ run-scoped nonce + receipt + ambient decoyの3点セットにより、意図したforwarderのみが実行されたことを確認した。claude --resume <session-id>を実行し、同一conversationのcontinuity(事前に記憶させたcanary tokenの正確な想起)を確認した。fresh shell / 人間による再注入なしの検証結果
cold restart後、人間による手動PATH再注入を一切行わず
command -v claudeを実行したところ、real native claude(shim未適用の状態)に解決されることを実機で確認した。これはHerdr側がPATH等のenvironment varsをsession restoreで保存・復元しないという公式docsの記述と整合するcausal proofである。receipt / decoyの検証結果
claude)は一貫して未発火であることを確認した。continuityの検証結果
claude --resume <session-id>実行後、事前に記憶させたcanary tokenを正確に想起した。同一Claude conversationへの復帰を確認した。real Claude pinningの検証結果
forwarder scriptは、pre-shim段階で解決したreal native claude絶対pathを固定的にexec対象へ埋め込んでおり、
command -v claudeへのfallbackを行わない設計のため、self-recursionのリスクは構造的に排除されている。cleanupの結果
herdr session list --jsonで消失を確認済み。herdr workspace closeで除去済み。変更ファイル
docs/dev/task-context-herdr-cold-restore-spike.md(新規)Allowed Pathsの遵守
Issue #2571 のAllowed Pathsが許可する
docs/dev/task-context-herdr-cold-restore-spike.mdのみを変更した。コード変更は不要だった(既存資産・raw herdr CLIコマンドのみで再現可能なcanaryを実機実行できたため)。検証結果
Issue #2571 記載のVerification Commandsを全てローカルで実行し、全てPASSであることを確認した(
test -f、各種rg -n、rg -c "feasibility_verdict"≥ 1)。独立検証を行うtest-runner SubAgentによる再実行でも同様に全12件PASSを確認済み。runtime evidenceの公開安全性について
run_worktree_agent_runtime_smoke.pyPR 実装: worktree 内の Claude Code/Codex CLI runtime smoke を herdr で観測する共有 Skill を追加する #1921 P1 fix-delta、session_idをevidenceに含めない方針)に合わせてredact済みである。Closes #2571(マージ後に本Issueを自動クローズする)