Skip to content

実装: Session Manifest hook を debounce / async split し PostToolUse ごとの過剰実行を抑制する #1057

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1047"
goal_ref: "PostToolUse ごとに過剰実行される session manifest hook を Claude Code native async + debounce front gate で分割し、main context へのノイズ混入を抑制する"
change_kind: workflow

Parent Issue

#1047

Parent Goal Ref

  • Goal: PostToolUse ごとに過剰実行される session manifest hook を Claude Code native async + debounce front gate で分割し、main context へのノイズ混入を抑制する
  • Desired Destination: 連続 Bash 10 回で producer invocation が 1 回以下、read-only Bash で 0 回、Stop/SubagentStop coordinator が 60 秒以内で exit 0、settings と hook-boundaries が同期している状態

Current Validated Scope

  • .claude/settings.json の PostToolUse を Claude Code native async + debounce entrypoint に向ける
  • docs/dev/hook-boundaries.md の timeout / handler / stderr contract を .claude/settings.json と同期させる
  • .claude/hooks/generate_session_manifest_from_hook.mjs の producer 入口 / sanitized delta / stderr redaction を更新する
  • .claude/hooks/session_manifest_coordinator.sh の timeout 60 秒以内 / machine-readable timeout reason / stderr 10 行以内を更新する
  • .claude/hooks/session_manifest_debounce.mjs を新規追加し、PostToolUse の front gate とする
  • .claude/hooks/tests/test_generate_session_manifest_from_hook.py を更新し、settings / stdout / redaction / delta contract を検証する
  • .claude/hooks/tests/test_session_manifest_coordinator.py を更新し、timeout / fail-open / stderr contract を検証する
  • .claude/hooks/tests/test_session_manifest_debounce.py を新規追加し、debounce / async split の deterministic tests を追加する

Remaining Parent Gaps

  • なし

Outcome

PostToolUse hook が .claude/settings.json の Claude Code native async 設定と session_manifest_debounce.mjs の debounce front gate で動作し、連続 Bash 10 回で producer invocation が 1 回以下、read-only Bash では 0 回、Edit/Write と mutation Bash は sanitized relative path / mutation type だけを delta に残し raw cwd / transcript / absolute path を残さず、PostToolUse path は stdout に additionalContext / decision / manifest JSON を出さず、Stop/SubagentStop coordinator は 60 秒以内で exit 0 し machine-readable timeout reason を返し、stderr は machine-readable かつ 10 行以内で、docs/dev/hook-boundaries.md と .claude/settings.json の timeout / handler / stderr contract が同期している状態。

In Scope

  • .claude/settings.json(PostToolUse を native async + debounce entrypoint に向ける)
  • docs/dev/hook-boundaries.md(timeout / handler / stderr contract を settings と同期)
  • .claude/hooks/generate_session_manifest_from_hook.mjs(sanitized delta / producer 入力の安定化)
  • .claude/hooks/session_manifest_coordinator.sh(Stop/SubagentStop coordinator の timeout / stderr / machine-readable reason)
  • .claude/hooks/session_manifest_debounce.mjs(新規: PostToolUse front gate / debounce)
  • .claude/hooks/tests/test_generate_session_manifest_from_hook.py(stdout / redaction / delta contract)
  • .claude/hooks/tests/test_session_manifest_coordinator.py(timeout / stderr / fail-open contract)
  • .claude/hooks/tests/test_session_manifest_debounce.py(debounce / async split / sanitized delta / stdout silence / stderr redaction)
  • Claude への additionalContext / decision / manifest JSON は PostToolUse path から出さない
  • 連続 Bash / read-only Bash の producer invocation を deterministic test で固定する

Out of Scope

  • session manifest schema の変更
  • .claude/hooks 以外の hook topology 変更
  • assets/ と LICENSES/ の変更
  • manifest 生成の完全廃止
  • external service 前提の検証

Acceptance Criteria

  • AC1: .claude/hooks/session_manifest_debounce.mjs が追加される
  • AC2: .claude/settings.json で PostToolUse が Claude Code native async + debounce entrypoint を向く
  • AC3: 連続 Bash 10 payload で producer invocation が 1 回以下である
  • AC4: read-only Bash 10 payload で producer invocation が 0 回である
  • AC5: Edit/Write と mutation Bash が sanitized relative path / mutation type だけを delta に残し raw cwd / transcript / absolute path を残さない
  • AC6: PostToolUse path は stdout に additionalContext / decision / manifest JSON を出さない
  • AC7: fake guard/producer の大量 stderr と POSIX/Windows/WSL path を最終 stderr 10 行以内・redacted で処理する
  • AC8: Stop/SubagentStop coordinator は hang する fake guard/producer でも 60 秒以内に exit 0 し machine-readable timeout reason を返す
  • AC9: docs/dev/hook-boundaries.md と .claude/settings.json の timeout / handler / stderr contract が一致している
  • AC10: 対象 pytest 群が PASS する

Verification Commands

# AC1
# baseline-expect: fail
$ test -f .claude/hooks/session_manifest_debounce.mjs

# AC2
# baseline-expect: fail
$ rg -n "session_manifest_debounce.mjs" .claude/settings.json
# baseline-expect: fail
$ rg -n "async" .claude/settings.json

# AC3
# baseline-expect: fail
$ uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q -k "producer_invocation_is_debounced_for_bash_burst"

# AC4
# baseline-expect: fail
$ uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q -k "readonly_bash_skips_producer"

# AC5
# baseline-expect: fail
$ uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q -k "sanitized_delta"

# AC6
# baseline-expect: fail
$ uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q -k "stdout_silent"

# AC7
# baseline-expect: fail
$ uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q -k "stderr_redaction"

# AC8
# preflight-scope: pr_review_only
$ uv run pytest .claude/hooks/tests/test_session_manifest_coordinator.py -q -k "timeout_reason"

# AC9
# preflight-scope: pr_review_only
$ uv run pytest .claude/hooks/tests/test_generate_session_manifest_from_hook.py -q -k "hook_boundaries_sync"

# AC10
# baseline-expect: fail
$ uv run pytest .claude/hooks/tests/test_generate_session_manifest_from_hook.py .claude/hooks/tests/test_session_manifest_coordinator.py .claude/hooks/tests/test_session_manifest_debounce.py -q

Allowed Paths

  • .claude/settings.json
  • docs/dev/hook-boundaries.md
  • .claude/hooks/generate_session_manifest_from_hook.mjs
  • .claude/hooks/session_manifest_coordinator.sh
  • .claude/hooks/session_manifest_debounce.mjs
  • .claude/hooks/tests/test_session_manifest_debounce.py
  • .claude/hooks/tests/test_generate_session_manifest_from_hook.py
  • .claude/hooks/tests/test_session_manifest_coordinator.py

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • session manifest schema 変更が必要になった場合
  • .claude/settings.json の async 設定または docs/dev/hook-boundaries.md の handler / timeout / stderr contract をそろえるために、さらに別ファイル変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • manifest hook の内部構造が変更を受け付けない設計だと判明した場合

Runtime Verification Applicability

  • decision: not_applicable
  • reason: static hook/unit test verification only

Required Skills

  • TypeScript / Node.js ESM
  • Bash / Shell scripting

Scope Delta(任意)

N/A

Activity

  1. added
    enhancement
    phase/implementation
    triage-required
    agent/implementer
    on Jun 20, 2026
  2. squne121 commented on Jun 21, 2026

    @squne121
    OwnerAuthor

    判定

    #1057 は目的自体は妥当です。PostToolUse ごとの manifest 生成が agent main context を汚染する、という問題設定は親 #1047 の「Hook / preflight / context 肥大化によるトークン浪費を根絶する」方針と整合しています。#1057 は parent #1047 の最後の child として、generate_session_manifest_from_hook.mjs、session_manifest_coordinator.sh、新規 session_manifest_debounce.mjs、新規 pytest を対象にしています。

    ただし、このまま実装着手すると、見かけ上 AC を満たすだけの弱い実装が通る可能性が高いです。主な問題は、async split / timeout / stderr 上限 / debounce の責務境界が、現行 hook topology と Allowed Paths に対して詰め切れていない点です。#1057 と親 #1047 は現時点でコメントなしでした。

    重大ブロッカー

    1. async split を本当にやるなら .claude/settings.json がスコープ外なのは矛盾

    現行の PostToolUse hook は .claude/settings.json で matcher: "Bash|Edit|Write"、command: "node"、args: generate_session_manifest_from_hook.mjs、timeout: 60 として登録されています。Stop / SubagentStop の coordinator はどちらも timeout: 180 です。

    Claude Code の native async hook は hook 設定側で async: true を指定する方式です。さらに async hook は background 実行になり、block/control decision を返せず、出力は次ターンで扱われます。つまり、#1057 の「async 化した hook は routing decision を Claude に返さない」という AC は Claude Code の仕様と整合しますが、それを native async として実装するには settings 側の変更が必要です。([Claude API Docs]1) ([Claude API Docs]1)

    一方、#1057 の Allowed Paths には .claude/settings.json も docs/dev/hook-boundaries.md も含まれていません。これは設計上の穴です。選択肢は二つです。

    1. Native async を使う
      .claude/settings.json と docs/dev/hook-boundaries.md を Allowed Paths に追加し、hook topology と正本ドキュメントを更新する。

    2. script-level async split に限定する
      settings は同期 hook のまま、session_manifest_debounce.mjs が stdin を即時分類・enqueue し、Node の detached worker を spawn(..., { detached: true, stdio: "ignore" }) + unref() で起動する。ただしこの場合、Issue 本文は “Claude Code native async” ではなく “script-level async split” と明記すべきです。Node の detached child を親終了後も動かすには、親 stdio に接続しないことと unref() が必要です。([Node.js]2)

    現状の contract では、この分岐が曖昧です。

    2. 現行の duplicate skip は debounce ではない

    generate_session_manifest_from_hook.mjs は stable key を hookEventName、sessionId、toolName、ledgerPhase、payloadDigest などから作っています。 さらに main では tool_use_id は「現在 producer には渡していない」として未使用にしていますが、payload 全体の digest は hookCtx から計算されるため、tool_use_id や tool_input.command が変われば別 digest になり得ます。

    つまり、現行の “duplicate skip” は「同一 payload の二重発火」を抑えるだけで、10 回連続 Bash のような異なる payload 群を 1 回にまとめる debounce ではありません。#1057 の AC2 は「連続 Bash 10 回で manifest 生成が 10 回走らないこと」ですが、現行 verification は rg -q "debounce" 程度で、実動作を証明できません。

    必要なのは、少なくとも以下です。

    • tool_use_id、timestamp、transcript path など volatile field を debounce key から除外する。
    • Bash は tool_input.command をそのまま digest に含めない。read-only / mutation / unknown に分類する。
    • Edit / Write は file path や operation type を sanitized relative path で delta record に残す。
    • debounce window 内の PostToolUse は producer を即時実行せず、spool / state file に集約する。
    • Stop / SubagentStop coordinator で未 flush の debounce state を flush する。

    3. Stop/SubagentStop の 60 秒要件が現状では満たせない

    #1057 は「Stop/SubagentStop の coordinator は timeout 60 秒以下またはタイムアウト理由を machine-readable に返す」としています。 しかし現行 settings では Stop / SubagentStop の timeout は 180 秒です。

    また、session_manifest_coordinator.sh 自体は scope-rollup capture、guard、producer を順に実行しますが、各 step を timeout で包んでいません。guard と producer の stderr もそのまま cat しています。

    これは AC6 だけでなく AC4 にも抵触します。session_recording_policy_guard.sh は失敗時に changed files と rerun command を複数行で出し、cd '$repo_root' のような絶対パスを含む可能性があります。

    修正方針は、coordinator 内で総 deadline を持つことです。例として、capture / guard / producer / flush の各 step を timeout で包み、stderr は一度 temp file に集め、最後に 最大 10 行の machine-readable summary だけを出すべきです。

    4. docs/dev/hook-boundaries.md との drift が発生する

    docs/dev/hook-boundaries.md は .claude/settings.json に設定された全 hook の責務分類、fail policy、exit code contract、stdout/stderr contract、agent routing の正本だと記述しています。 そこでは Stop / SubagentStop coordinator が timeout: 180、stderr contract が diagnostic_on_failure_max_10_lines と定義されています。

    #1057 で timeout を 60 秒以下にする、PostToolUse を debounce / async split する、stderr を 10 行以内にするなら、この正本も更新対象です。にもかかわらず Allowed Paths に含まれていません。これは実装後に hook-boundaries check / reviewer で drift 扱いになるリスクがあります。

    5. stderr 10 行以内・path redaction が弱い

    現行の sanitizeForStderr() は /... 形式の POSIX absolute path を <path> に置換するだけです。Windows 形式の C:\Users\... は対象外です。

    Claude Code の PostToolUse は完了済み tool call を block できず、stderr は Claude に見える非ブロッキングエラーとして扱われます。Stop / SubagentStop は exit 2 で stop を妨げる可能性があります。([Claude API Docs]1) したがって「best-effort telemetry だから雑な stderr でよい」ではなく、stderr の量と内容を強制的に絞る必要があります。

    最低限、以下を test に入れるべきです。

    • POSIX path、Windows path、WSL path を含む fake producer stderr。
    • 100 行 stderr を出す fake guard / producer。
    • coordinator が出す最終 stderr が 10 行以内。
    • raw transcript_path、raw cwd、raw command body が stderr に出ない。

    6. Native async だけでは debounce にならない

    Claude Code の async hook は background process として動きますが、複数回発火した hook 間の dedupe は行いません。つまり、PostToolUse 10 回に対して native async worker を 10 個起動すれば、main context の待ち時間は減っても、artifact 生成・I/O・stderr・プロセス数の問題は残ります。([Claude API Docs]1)

    したがって architecture は 同期の軽量 front gate + 非同期 worker であるべきです。front gate は 1 秒未満で read-only skip / debounce enqueue / worker 起動判定だけを行い、producer 本体は直接呼ばない。これがないと、Issue の本質である「過剰実行の抑制」ではなく「過剰実行の background 化」になります。

    推奨する実装契約

    #1057 は次のように contract を補強した方がよいです。

    Allowed Paths の修正

    Native async を採用するなら追加:

    • .claude/settings.json
    • docs/dev/hook-boundaries.md
    • 必要なら tests/test_hook_boundaries_doc.py

    script-level async に限定するなら、Issue 本文に以下を明記:

    • .claude/settings.json は変更しない。
    • async split は Claude Code native async ではなく、session_manifest_debounce.mjs 内部の enqueue + detached worker で実現する。
    • その場合でも hook-boundaries の記述更新が必要かを判断する。

    session_manifest_debounce.mjs の責務

    • stdin JSON を読む。
    • PostToolUse + Bash を read-only / mutation / unknown に分類する。
    • read-only Bash は producer を起動せず exit 0。
    • Edit / Write / mutation Bash は debounce state に enqueue。
    • volatile fields を除いた debounce key を使う。
    • stdout は常に empty。
    • additionalContext / decision は出さない。
    • stderr は原則 silent、出す場合も machine-readable かつ 10 行以内。
    • detached worker を使うなら Node の spawn + detached:true + stdio:"ignore" + unref() を使う。([Node.js]2)

    generate_session_manifest_from_hook.mjs の修正

    • SESSION_MANIFEST_ARTIFACTS_DIR / SESSION_MANIFEST_PRODUCER / SESSION_MANIFEST_DEBOUNCE_DIR の env override を追加し、pytest が real artifacts/ を汚さないようにする。
    • stable key から volatile fields を除外する。
    • lock file に TTL / stale lock recovery を持たせる。
    • openSync(..., "wx") の exclusive create は方向性として妥当ですが、Node docs は x flag が network filesystem では機能しない場合があると注意しています。ローカル repo 前提なら許容、ただし stale lock は必要です。([Node.js]3)

    session_manifest_coordinator.sh の修正

    • 総 timeout を 60 秒未満、例: 55 秒にする。
    • capture / guard / producer / debounce flush を個別 timeout で包む。
    • stderr を各 step で temp file に集め、最後に summary 化する。
    • timeout 時も exit 0。
    • 出力例を SESSION_MANIFEST_COORDINATOR_RESULT_V1 の JSON/YAML で固定する。
    • Stop/SubagentStop では pending debounce state を flush する。

    Acceptance Criteria の差し替え案

    現在の AC は rg ベースが多く、実動作を縛れません。次のように置き換えるべきです。

    - [ ] AC1: `.claude/hooks/session_manifest_debounce.mjs` が追加され、PostToolUse stdin を受けて exit 0 / stdout empty で返る
    - [ ] AC2: 10 個の連続 PostToolUse Bash payload(unique tool_use_id、debounce window 内)で producer invocation が 1 回以下である
    - [ ] AC3: 10 個の read-only Bash payload では producer invocation が 0 回である
    - [ ] AC4: Edit / Write payload は sanitized relative path と mutation type を debounce delta に記録し、raw cwd / transcript_path を含めない
    - [ ] AC5: PostToolUse debounce path は stdout に `additionalContext` / `decision` / manifest JSON を出さない
    - [ ] AC6: fake guard / fake producer が 100 行 stderr を出しても hook stderr は 10 行以内である
    - [ ] AC7: fake guard / fake producer が hang しても Stop/SubagentStop coordinator は 60 秒以内に exit 0 し、machine-readable timeout reason を出す
    - [ ] AC8: POSIX / Windows / WSL absolute path が stderr に漏れない
    - [ ] AC9: stale lock が残っていても TTL 後に回復できる
    - [ ] AC10: `uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q` が PASS する

    Claude/Codex に投げる実行プロンプト

    Issue #1057 を実装する前に contract を敵対的に補強してください。
    
    必ず確認すること:
    - #1057 本文、parent #1047、既存 `.claude/settings.json`
    - `.claude/hooks/generate_session_manifest_from_hook.mjs`
    - `.claude/hooks/session_manifest_coordinator.sh`
    - `docs/dev/hook-boundaries.md`
    - 既存 hook tests
    
    方針:
    1. #1057 の “async split” が Claude Code native async なのか script-level async split なのかを明確化する。
    2. native async を使うなら `.claude/settings.json` と `docs/dev/hook-boundaries.md` を Allowed Paths に追加する必要がある。追加できない場合は script-level async split として実装する。
    3. PostToolUse は同期 front gate で read-only skip / debounce enqueue だけを行い、producer を毎回起動しない。
    4. 10 回連続 Bash で producer が 10 回走らないことを pytest で実測する。`rg "debounce"` のような文字列検査で代替しない。
    5. Edit / Write は sanitized delta を記録する。raw cwd / transcript_path / absolute path は出力しない。
    6. Stop/SubagentStop coordinator は 60 秒以内に exit 0 し、timeout 時は machine-readable reason を stderr 10 行以内で返す。
    7. fake producer / fake guard を使い、real `artifacts/` を汚さない deterministic tests にする。
    
    停止条件:
    - `.claude/settings.json` または `docs/dev/hook-boundaries.md` の変更が必要だが Issue の Allowed Paths に追加されていない場合は、実装を止めて Issue contract 修正案を提示する。
    - session manifest schema 変更が必要になった場合は止める。
    - 外部サービス、権限昇格、秘密情報読み取りが必要になった場合は止める。
    

    最優先の修正は、Allowed Paths と async/timeout の矛盾解消、次に AC2/AC4/AC6 を実動作テストへ置換です。これを直さないと、#1057 は「ノイズ削減の Issue」なのに、別種の非同期ノイズと contract drift を増やす可能性があります。

  3. squne121 commented on Jun 21, 2026

    @squne121
    OwnerAuthor

    更新内容

    • async split を .claude/settings.json の Claude Code native async と session_manifest_debounce.mjs の front gate に明示
    • Allowed Paths / Current Validated Scope / In Scope に settings, hook-boundaries, coordinator, debounce, tests を追加
    • Outcome / AC / Verification Commands / Stop Conditions / Runtime Verification Applicability を deterministic contract に差し替え

    ガード結果

    • check_vc_scope.py: PASS
    • guard-issue-body.py: PASS
    • contract_readiness_check.py: go
  4. squne121 commented on Jun 21, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-06-21T02:51:07Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1057
      body_sha256: "sha256:dd99111d4b00c11030a9824f5fe651a148ad169633ceae37e095e7e937557393"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        vc_preflight: pass
      source: ensure_contract_snapshot_auto
  5. squne121 commented on Jun 21, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-06-21T03:08:02Z)

    • PR: fix: debounce session manifest hook noise #1074
    • Worktree: .claude/worktrees/issue-1057-session-manifest-debounce
    • Branch: worktree-issue-1057-session-manifest-debounce
    • Contract snapshot: 実装: Session Manifest hook を debounce / async split し PostToolUse ごとの過剰実行を抑制する #1057 (comment)
    • Verification:
      • test -f .claude/hooks/session_manifest_debounce.mjs
      • rg -n "session_manifest_debounce.mjs" .claude/settings.json
      • rg -n "async" .claude/settings.json
      • uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q -k "producer_invocation_is_debounced_for_bash_burst"
      • uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q -k "readonly_bash_skips_producer"
      • uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q -k "sanitized_delta"
      • uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q -k "stdout_silent"
      • uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q -k "stderr_redaction"
      • uv run pytest .claude/hooks/tests/test_session_manifest_coordinator.py -q -k "timeout_reason"
      • uv run pytest .claude/hooks/tests/test_generate_session_manifest_from_hook.py -q -k "hook_boundaries_sync"
      • uv run pytest .claude/hooks/tests/test_generate_session_manifest_from_hook.py .claude/hooks/tests/test_session_manifest_coordinator.py .claude/hooks/tests/test_session_manifest_debounce.py -q
    • Changed files:
      • .claude/settings.json
      • docs/dev/hook-boundaries.md
      • .claude/hooks/generate_session_manifest_from_hook.mjs
      • .claude/hooks/session_manifest_coordinator.sh
      • .claude/hooks/session_manifest_debounce.mjs
      • .claude/hooks/tests/test_generate_session_manifest_from_hook.py
      • .claude/hooks/tests/test_session_manifest_coordinator.py
      • .claude/hooks/tests/test_session_manifest_debounce.py
  6. squne121 commented on Jun 21, 2026

    @squne121
    OwnerAuthor

    Iteration 2 fix delta を反映しました。PR: #1074, head: d8ed7ea。修正: coordinator guard non-zero/timeout 時の producer 非起動、debounce flush の unowned worker lock release 廃止、関連テスト更新、scope-rollup capture 復元。検証: pnpm lint; uv run pytest .claude/hooks/tests/test_session_manifest_coordinator.py -q -k timeout_reason; uv run pytest .claude/hooks/tests/test_session_manifest_debounce.py -q -k flush_does_not_release_unowned_worker_lock; uv run pytest .claude/hooks/tests/test_scope_rollup_capture.py -q; uv run pytest .claude/hooks/tests/test_generate_session_manifest_from_hook.py .claude/hooks/tests/test_session_manifest_coordinator.py .claude/hooks/tests/test_session_manifest_debounce.py -q; uv run --locked pytest .claude/hooks/tests/ -q --ignore=.claude/hooks/tests/test_secret_boundary_contract.py。GitHub Actions required checks lint/python-test/deploy-pr は pass。現時点の PR 状態は MERGEABLE / BEHIND です。

  7. squne121 commented on Jun 21, 2026

    @squne121
    OwnerAuthor

    iteration 3 fix delta を反映しました。PR: #1074, head: 7e99e1d。修正: Stop/SubagentStop flush の live lock timeout/warn と stale recovery、保守的 Bash classifier、producer timeout/maxBuffer/killSignal と worker.lock 回復、event spool から raw cwd/transcript/absolute path 排除、scope-rollup capture を coordinator の timeout/redaction 管理下へ統合、hook-boundaries 本文 stale 検出を checker に追加。検証: pnpm lint; uv run pytest .claude/hooks/tests/test_generate_session_manifest_from_hook.py .claude/hooks/tests/test_session_manifest_coordinator.py .claude/hooks/tests/test_session_manifest_debounce.py -q; uv run --locked pytest .claude/hooks/tests/ -q --ignore=.claude/hooks/tests/test_secret_boundary_contract.py; uv run python3 scripts/check_hook_boundaries.py。PR body も Safety Claim Matrix / Verification を更新済みです。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementationtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions