Repository navigation
feat(#402): wire agent_session_manifest/v1 producer to hooks and CI - #426
Conversation
- Add .claude/hooks/generate_session_manifest_from_hook.mjs: hook wrapper that reads stdin hook JSON, constructs producer CLI args, writes artifact atomically (temp + rename), and suppresses manifest from stdout/log - Update .claude/settings.json: Stop/SubagentStop get policy_guard before producer hook (ordering fixed); PostToolUse limited via matcher - Add .github/workflows/session-manifest.yml: push/pull_request trigger, contents: read, persist-credentials: false, upload-artifact@v4 with if-no-files-found: error and private-agent-session-manifest prefix - Add .claude/hooks/tests/test_generate_session_manifest_from_hook.py: 8 structural/unit tests for AC1-AC6 - Update docs/dev/session-recording-policy.md: hook+CI lifecycle, private artifact channel (GitHub Actions artifact only), prohibited channels, Issue / PR comment prohibition, and #412 boundary documented Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
検証結果レポートIssue #402: Agent Session Manifest v1 Producer / Hook Setup
総合判定
```yaml |
squne121
left a comment
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=UNSTABLE
Evidence Check
- AC coverage: 10/10 AC all marked PASS by test-runner (TEST_VERDICT_MACHINE v1, verification_commands_fail: 0, verification_skipped_count: 0)
- Allowed Paths: 遵守 — 変更ファイル5件がすべて Allowed Paths 内 (
.claude/hooks/generate_session_manifest_from_hook.mjs,.claude/hooks/tests/test_generate_session_manifest_from_hook.py,.claude/settings.json,.github/workflows/session-manifest.yml,docs/dev/session-recording-policy.md) - CI Verification:
Generate agent session manifest(PR 追加の新規 workflow) が FAIL。build/lint/python-test/test/typecheckは PASS - 検証コマンド結果: PR 本文に AC1–AC10 + Quality Gates 全 PASS の記録あり
Blockers
-
CI FAIL:
Generate agent session manifestworkflow- 失敗原因:
pnpm/action-setup@v4をversion:キーなしで使用しており、package.jsonにもpackageManagerフィールドがないため "No pnpm version is specified" エラーが発生 - 該当箇所:
.github/workflows/session-manifest.ymlの "Install pnpm" ステップ - 修正案: workflow に
with: version: X.Y.Zを追加、またはpackage.jsonに"packageManager": "[email protected]"を追加 - 参照: https://github.com/squne121/loop-protocol/actions/runs/26536902242
- 失敗原因:
-
Safety Claim Matrix 未記載
- 判定根拠:
.github/workflows/**の変更を含み、.claude/settings.jsonの hook 設定変更(PostToolUse matcher / Stop-SubagentStop 順序)も含む。SKILL.md §4.6 "Safety-sensitive PR" 条件(changed path*workflow*/.github/workflows/**およびpermission,tool,.claude/skills/**周辺キーワード)に合致 - PR 本文に
## Safety Claim Matrixセクションが存在しない → APPROVE 禁止 - 必要な Safety Claim Matrix の列:
Claim/Implemented?/Not controlled/Evidence/Follow-up
- 判定根拠:
Non-blockers
なし
LOOP_VERDICT
LOOP_VERDICT: REQUEST_CHANGES
verdict: request_changes
blockers:
- ci_fail: "Generate agent session manifest" workflow FAIL (pnpm version unspecified in workflow + package.json)
- safety_claim_matrix_missing: PR changes .github/workflows/** and .claude/settings.json hook config; Safety Claim Matrix section absent from PR body
mergeable: MERGEABLE
mergeStateStatus: UNSTABLE
reviewed_head_sha: 33f2a52921d5791649ff35fd7ce5d858e52313b9
follow_up_issue_requests: []
squne121
left a comment
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=UNSTABLE
Evidence Check
- AC coverage: 10/10 AC all marked PASS by test-runner (TEST_VERDICT_MACHINE v1, verification_commands_fail: 0, verification_skipped_count: 0)
- Allowed Paths: 遵守 — 変更ファイル5件がすべて Allowed Paths 内 (
.claude/hooks/generate_session_manifest_from_hook.mjs,.claude/hooks/tests/test_generate_session_manifest_from_hook.py,.claude/settings.json,.github/workflows/session-manifest.yml,docs/dev/session-recording-policy.md) - CI Verification:
Generate agent session manifest(PR 追加の新規 workflow) が FAIL。build/lint/python-test/test/typecheckは PASS - 検証コマンド結果: PR 本文に AC1–AC10 + Quality Gates 全 PASS の記録あり
Blockers
-
CI FAIL:
Generate agent session manifestworkflow- 失敗原因:
pnpm/action-setup@v4をversion:キーなしで使用しており、package.jsonにもpackageManagerフィールドがないため "No pnpm version is specified" エラーが発生 - 該当箇所:
.github/workflows/session-manifest.ymlの "Install pnpm" ステップ - 修正案: workflow に
with: version: X.Y.Zを追加、またはpackage.jsonに"packageManager": "[email protected]"を追加 - 参照: https://github.com/squne121/loop-protocol/actions/runs/26536902242
- 失敗原因:
-
Safety Claim Matrix 未記載
- 判定根拠:
.github/workflows/**の変更を含み、.claude/settings.jsonの hook 設定変更(PostToolUse matcher / Stop-SubagentStop 順序)も含む。SKILL.md §4.6 "Safety-sensitive PR" 条件(changed path*workflow*/.github/workflows/**およびpermission,tool,.claude/skills/**周辺キーワード)に合致 - PR 本文に
## Safety Claim Matrixセクションが存在しない → APPROVE 禁止 - 必要な Safety Claim Matrix の列:
Claim/Implemented?/Not controlled/Evidence/Follow-up
- 判定根拠:
Non-blockers
なし
LOOP_VERDICT
LOOP_VERDICT: REQUEST_CHANGES
verdict: request_changes
blockers:
- ci_fail: "Generate agent session manifest" workflow FAIL (pnpm version unspecified in workflow + package.json)
- safety_claim_matrix_missing: PR changes .github/workflows/** and .claude/settings.json hook config; Safety Claim Matrix section absent from PR body
mergeable: MERGEABLE
mergeStateStatus: UNSTABLE
reviewed_head_sha: 33f2a52921d5791649ff35fd7ce5d858e52313b9
follow_up_issue_requests: []'No pnpm version is specified' エラーが発生していたため、 環境の pnpm バージョン (11.1.2) を明示指定する。 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
検証結果レポートIssue #402: Agent Session Manifest v1 Producer - Hook & Workflow Implementation
品質ゲート結果
CI Check Status
総合判定✅ TEST_VERDICT: PASS
注記
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BEHIND
baseline_only: false
verification_commands_pass: 10
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []テスト実行者: Claude Code (Haiku 4.5) |
squne121
left a comment
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES (iteration 2)
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=BLOCKED
Evidence Check
- AC coverage: 10/10 PASS (TEST_VERDICT_MACHINE v1 confirmed, verification_commands_fail: 0, verification_skipped_count: 0)
- Allowed Paths: 遵守 — 変更 5 ファイルすべて Allowed Paths 内
- CI Verification:
Generate agent session manifestFAIL(後述 Blocker 1)。他チェック(build/lint/test/typecheck/python-test)は pending のため CI 証跡なしだが、TEST_VERDICT_MACHINE の verification_commands_fail: 0 で代替可 - 検証コマンド結果: PR 本文に AC1–AC10 全 PASS の記録あり(pytest 20 passed)
Blockers
-
CI FAIL:
Generate agent session manifestworkflow(新エラー)- pnpm version 固定(
version: '11.1.2')は追加されたが、[email protected] は Node.js v22.13+ を要求するため、workflow のデフォルト Node.js v20.20.2 ではERR_UNKNOWN_BUILTIN_MODULE: node:sqliteで失敗する - 失敗 step: "Install dependencies" (
pnpm install --frozen-lockfile) - 修正案 A: workflow に
actions/setup-node@v4ステップを追加して Node.js >= 22.13 を指定する - 修正案 B: pnpm を Node.js v20 対応バージョン(例:
10.x)に落とし、lockfile が古いバージョンで満足できることを確認する - CI run: https://github.com/squne121/loop-protocol/actions/runs/26537389677/job/78169777663
- pnpm version 固定(
-
Safety Claim Matrix の必須列不足
- PR 本文の
## Safety Claim MatrixはClaimとEvidenceの 2 列のみ - SKILL.md §4.6 が要求する必須列:
Claim/Implemented?/Not controlled/Evidence/Follow-up Not controlled列がないと、PR 本文タイトルに無限定の安全主張があるかどうかの判定自体ができない(fail-closed: APPROVE 禁止)- 各 Claim に対して
Implemented?(yes/partial/no) とNot controlled(制御外の前提条件)とFollow-up(open issue 参照 or N/A)を追加する必要がある
- PR 本文の
Non-blockers
なし
LOOP_VERDICT
LOOP_VERDICT: REQUEST_CHANGES
verdict: request_changes
blockers:
- ci_fail: "Generate agent session manifest workflow fails — [email protected] requires Node.js v22.13+ but runner uses v20.20.2 (ERR_UNKNOWN_BUILTIN_MODULE: node:sqlite)"
- safety_claim_matrix_incomplete: "Safety Claim Matrix missing required columns: Implemented? / Not controlled / Follow-up (SKILL.md §4.6)"
mergeable: MERGEABLE
mergeStateStatus: BLOCKED
reviewed_head_sha: 0d54c406baf482de83a584027f40111595983e02
follow_up_issue_requests: []pnpm 11.1.2 は Node.js v22+ を必要とするが、workflow が v20 を指定していたため ERR_UNKNOWN_BUILTIN_MODULE: node:sqlite が CI で発生していた。 setup-node@v4 の node-version を '20' → '22' に変更して解消する。 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
検証結果レポートIssue #402: Private agent session manifest producer (phase 1: hook + workflow + policy)
品質ゲート(worktree内実行)
CI Checks Status
総合判定
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
baseline_only: false
verification_commands_pass: 10
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []Verification Status: All 10 ACs verified successfully. CI all green. Ready for merge. |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: AC1-AC10 全 PASS(TEST_VERDICT_MACHINE v1 verification_skipped_count: 0)
- Allowed Paths: 5 ファイル全て Issue #402 Allowed Paths 内(
.claude/settings.json/.claude/hooks/generate_session_manifest_from_hook.mjs/.claude/hooks/tests/test_generate_session_manifest_from_hook.py/.github/workflows/session-manifest.yml/docs/dev/session-recording-policy.md) - CI Verification: 全 6 チェック pass(Generate agent session manifest / build / lint / python-test / test / typecheck)
- 検証コマンド結果: PR 本文の
## Verification Resultsに AC1-AC10 の実行結果が具体的に記録済み - Runtime Verification: Issue #402 が
decision: not_applicableのため runtime 証跡検査スキップ(適用外) - Schema Consumer Inventory Gate: 変更ファイルは hook 設定・workflow・policy docs のみ。consumer 境界をまたぐ schema 変更なし(
not_schema_change) - Safety Claim Gate:
.github/workflows/**と.claude/settings.jsonを含むため safety-sensitive 判定。PR 本文に Safety Claim Matrix(5列: Claim / Implemented? / Not controlled / Evidence / Follow-up)あり。全行Not controlled = —、Evidence は各 AC の VC と対応済み(iteration 2 で 5列化完了) - Stop Conditions:
pull_request_target不使用(AC7 PASS)、SessionStart 追加なし(AC3 PASS)、#412 境界は Out of Scope 明示済み
Blockers
- なし
Non-blockers(任意改善)
- なし
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: fa5999812fe0910b7bb8e2f6afdbf94904c1d514
follow_up_issue_requests: []
判定:
|
…plicate skip, stdin context extraction
Blocker 1: settings.json hook commands を exec-form に修正
command: "node", args: ["${CLAUDE_PROJECT_DIR}/.claude/hooks/generate_session_manifest_from_hook.mjs"]
Stop / SubagentStop / PostToolUse の全 manifest producer hook に適用
Blocker 2: producer 失敗時を exit 0 (best-effort) に変更
session をブロックしない。stderr にログを出力するのみ
artifact 書き込み失敗も同様に best-effort
Blocker 3: artifact filename を timestamp + event name ベースに変更
private-agent-session-manifest-{eventName}-{timestamp}-{stableKeySegment}.json
content hash は filename から除去(循環参照回避)
Blocker 4: duplicate skip を stable key ベースに変更
key = hookEventName:toolName:ledgerPhase (base64url encoded)
Date.now() ハッシュ依存を廃止
Blocker 5: hook stdin から session_id / tool_name / tool_use_id / agent_id を抽出
actor-name に tool_name / agent_id を反映
session_id を --actor-session-id として producer に渡す
Blocker 6: session-recording-policy.md を best-effort / #412 境界に downgrade
"private artifact" → "retention-limited GitHub Actions artifact"
#412 完了まで Secret 混入は保証外と明記
HIGH: PostToolUse matcher から Read を除外 (Bash|Edit|Write のみ)
Blocker 7: テスト追加
- exec-form structural test (command="node", args[0]=wrapper)
- duplicate skip integration test (同一入力で 2 回目は skip)
- PostToolUse payload で absolute path が stderr に出ないテスト
- PostToolUse matcher が Read を含まないテスト
phase_instance_id: 3桁数字ゼロパディング形式に修正 (producer validation 準拠)
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
iteration 3 修正完了(fix commit: f64d6db) 対応 Blocker 一覧
品質ゲート |
Verification Results Report — Issue #402, PR #426 (Iteration 3)Acceptance Criteria Verification
Quality Gates
CI StatusAll GitHub Actions checks passing:
Mergeable Status
SummaryTEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
baseline_only: false
verification_commands_pass: 12
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []Verdict: ✅ READY TO MERGE All 10 Acceptance Criteria verified. All quality gates passing. All CI checks green. No test skips. No fallback mechanisms detected. PR is ready for merge. 🤖 Generated with Claude Code |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
AC coverage: AC1-AC10 全 PASS。TEST_VERDICT_MACHINE v1 コメント(iteration 3)に全 AC の検証結果が記録済み。verification_skipped_count: 0。
Allowed Paths 遵守: gh pr diff --name-only の出力は以下の 5 ファイルのみで、全て Issue #402 の Allowed Paths 内。
.claude/hooks/generate_session_manifest_from_hook.mjs.claude/hooks/tests/test_generate_session_manifest_from_hook.py.claude/settings.json.github/workflows/session-manifest.ymldocs/dev/session-recording-policy.md
CI Verification: 全 6 チェック PASS(Generate agent session manifest / build / lint / python-test / test / typecheck)。
検証コマンド結果: PR 本文の Verification Results セクションに AC1-AC10 各コマンドの PASS 記録あり。pytest 20 passed (1.01s)、pnpm 全ゲート PASS。
Runtime Verification: Issue #402 の decision: not_applicable(hook wiring + CI workflow、対話的実行なし)。RV 証跡要件は免除。
Human Review Blockers Resolution (iteration 3)
| Blocker | 修正内容 | 確認 |
|---|---|---|
| B1 exec-form | command: "node", args: ["...mjs"] に分離(Stop/SubagentStop/PostToolUse 全 3 箇所) |
diff 確認済み、構造テスト追加済み |
| B2 exit code | process.exit(0) に統一(best-effort telemetry)、PR 本文・docs 表現を downgrade |
diff 確認済み |
| B3 evidence_source_ref | ファイル名を timestamp + stableKeySegment ベースに変更(循環参照解消) |
diff 確認済み |
| B4 duplicate skip | stable key = hookEventName:toolName:ledgerPhase(Date.now() 依存廃止)、同一入力 2 回 skip integration test 追加 |
diff 確認済み |
| B5 stdin 活用 | session_id / tool_name / agent_id を producer に渡し、絶対パス除去の stderr テスト追加 |
diff 確認済み |
| B6 安全主張 | "private artifact" → "retention-limited GitHub Actions artifact"、#412 境界と保証外明記 | diff 確認済み(docs/session-recording-policy.md, Safety Claim Matrix) |
| B7 テスト追加 | exec-form structural test / duplicate skip integration test / PostToolUse absolute path test 追加(計 24 pytest、20 passed in PR body) | TEST_VERDICT_MACHINE 確認済み |
| HIGH PostToolUse | matcher を Bash|Edit|Write に限定(Read 除外)、matcher 内容テスト追加 |
diff 確認済み(settings.json + test) |
Schema Change Applicability
変更ファイルは hook wiring / CI workflow / docs 更新のみ。docs/schemas/agent-session-manifest.md および docs/dev/schema-governance.md の変更なし。schema_change_applicability: not_schema_change。Schema Consumer Inventory 提出不要。
Safety Claim Matrix
PR 本文の Safety Claim Matrix(5 列構成)を確認。全 Claim に Implemented? Yes、Not controlled —。Secret 境界については「#412 完了まで保証外」と明記し、無限定 safe 主張なし。APPROVE 禁止条件に該当しない。
Blockers
なし
Non-blockers(任意改善)
なし
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: f64d6db3fd74c6a93ab9ed9668a24a8c8c04666d
follow_up_issue_requests: []
結論:
|
…teration 4) - Update session-recording-policy.md: replace "private artifact" framing with "artifact channel + public-safe content contract"; explicitly state that public repo artifacts are accessible via REST API; define public-safe contract table (no absolute paths, no tokens, no transcript text) - Add public-safe verification step to session-manifest.yml workflow: detects absolute path patterns in generated manifest; skips gracefully if no artifact - Add 4 new integration tests (B1 enhanced / B5): artifact JSON creation, duplicate-skip robustness with artifact verified to exist, strict stderr absolute-path redaction for all three event types, exec-form command/args structural check with path-inclusion assertion Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
iteration 4 対応(human review #issuecomment-4558689724 への回答)既修正(iteration 3 / commit f64d6db)以下の指摘はすでに iteration 3 で対応済みです。レビュワーが参照した commit (
iteration 4 で対応
|
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
baseline_only: false
verification_commands_pass: 10
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []検証結果レポートIssue #402: agent-session-manifest-v1-producerworktree: issue-402-agent-session-manifest-v1-producer-claud
品質ゲート結果
CI チェック結果(gh pr checks 426)すべてのチェックが PASS:
総合判定
検証完了: PR #426 のすべての Acceptance Criteria が完全に満たされています。品質ゲート、CI チェック、ユニットテストもすべてパスしています。マージ準備完了です。 |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: AC1-AC10 全 PASS(TEST_VERDICT_MACHINE v1 PASS、verification_skipped_count: 0)
- Allowed Paths: 遵守。変更ファイル 5 件(.claude/settings.json / .claude/hooks/generate_session_manifest_from_hook.mjs / .claude/hooks/tests/test_generate_session_manifest_from_hook.py / .github/workflows/session-manifest.yml / docs/dev/session-recording-policy.md)はすべて Issue #402 Allowed Paths 内
- CI Verification: 6/6 pass(Generate agent session manifest / build / lint / python-test / test / typecheck)
- 検証コマンド結果: verification_commands_pass: 10, verification_commands_fail: 0
Human Review Blockers (issuecomment-4558689724) の解消確認
| Blocker | 解消確認 |
|---|---|
| B1: "private artifact" フレームが public repo では安全境界にならない | docs/dev/session-recording-policy.md に「public repo では REST API 経由で公開アクセス可能」を明記。public-safe content contract テーブル追加。CI に Verify artifact content is public-safe ステップ追加(絶対パス検出で exit 1)。token-like string 検出は #412 担当と明示し warning-only に留めた根拠を policy.md に記載済み |
| B2: exec-form が壊れている | command: "node" + args: ["${CLAUDE_PROJECT_DIR}/..."] の形式を 3 箇所すべてで確認(Stop / SubagentStop / PostToolUse) |
| B3: PostToolUse matcher が広すぎる(Read 含む) | `"matcher": "Bash |
| B4: evidence_source_ref が実ファイル名とズレる | ファイル名に content hash を含めない設計に変更。stable key segment のみ使用。content hash は manifest 内 artifact_sha256 フィールドへ分離 |
| B5: テストが「通っているように見える」だけ | 28 tests(iteration 3: 16 → iteration 4: 28)。新規テスト: test_artifact_json_created_in_artifacts_dir / test_duplicate_skip_robustness_artifact_exists_first / test_stderr_never_contains_absolute_paths / exec-form structural check(test 14)。artifact 実生成・duplicate skip 実挙動・stderr 絶対パス漏洩を検証 |
Safety Claim Matrix
- 存在確認: OK(5 列: Claim / Implemented? / Not controlled / Evidence / Follow-up)
- Not controlled 列: 全 6 行が
—(非空の制御外項目なし) - 無限定安全主張: なし
Schema Change Applicability
- schema_change_applicability: not_schema_change
- 根拠: 変更はすべて wiring 設定・hook 実装・CI workflow・policy doc。schema-governance.md の Initial Known Schemas の consumer 境界をまたぐ変更なし。Schema Consumer Inventory 提出不要
Runtime Verification
- decision: not_applicable(Issue #402 明記)。全 VC は deterministic(ファイル存在確認・pytest・YAML 構造解析)
Blockers
- なし
Non-blockers(任意改善)
- NB1:
Verify artifact content is public-safeステップのトークン検出が warning-only(exit 0)。#412 が完了したら exit 1 に昇格することを推奨
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 2ff93d56d4c2ff47f4a7146194096949616aa8c2
follow_up_issue_requests:
- title: "Verify artifact content is public-safe: token-like string check を exit 1 に昇格"
issue_kind: implementation
severity: optional_follow_up
source:
kind: pr_review
url: "https://github.com/squne121/loop-protocol/pull/426"
note_id: "1"
dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/426:1"
desired_destination: "#412 完了後、CI の token-like string 検出が exit 1 でブロックする状態"
validated_scope_delta: ".github/workflows/session-manifest.yml の Verify artifact content is public-safe ステップで token-like string 検出時に exit 1 を追加"
origin_skill: pr-review-judge
labels:
- triage-required
post-merge-cleanup: 完了 (2026-05-27T21:27:52Z)
FOLLOW_UP_MATERIALIZATION_RESULT_V1:
follow_up_issues:
- request_dedupe_key: "402-followup:manifest-validation-gate-required-check"
issue_number: 432
issue_url: "https://github.com/squne121/loop-protocol/issues/432"
status: created
- request_dedupe_key: "402-followup:blocked-session-manifest-design"
issue_number: 433
issue_url: "https://github.com/squne121/loop-protocol/issues/433"
status: created
note_only_observations:
- summary: "artifacts/ は hook 実行のローカル生成物。.gitignore に追加 + worktree 削除時に cleanup 済み"
- summary: "Parent #242 は child #412 が OPEN のため keep_open(close 不可)" |
Rewrite Japanese comments in check-agent-session-manifests.mjs to English to resolve GitHub hidden/bidi Unicode warnings on .mjs files. Also document the artifact naming convention established in PR #426 (no 'private-' prefix). No functional changes. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…ate topology (A案) (#567) * feat(#434): add production artifact to defaultPatterns and document gate topology (A案) - defaultPatterns に artifacts/agent-session-manifest-ci.json を追加(production artifact) - production gate topology(A案: session-manifest.yml を正本とする)をコメントで明示 - ci.yml は production gate を主張しない旨(A案採用)をコメントに明示 - artifact path 変更時に session-manifest.yml の generate/validate/upload path を 同時更新することをコメントに明示(silent no-op 防止) - upload constraints(if-no-files-found|retention-days)をコメントに明示 - pull_request_target 不使用・Node 22|pnpm 11|node-version 前提をコメントに明示 Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * fix(#434): translate production gate topology comments to English Rewrite Japanese comments in check-agent-session-manifests.mjs to English to resolve GitHub hidden/bidi Unicode warnings on .mjs files. Also document the artifact naming convention established in PR #426 (no 'private-' prefix). No functional changes. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Summary
.claude/hooks/generate_session_manifest_from_hook.mjsthat reads Claude hook stdin JSON, converts to producer CLI args, and writes manifest atomically toartifacts/with duplicate-hash skip.claude/settings.json: Stop/SubagentStop order fixed (policy_guard before producer), PostToolUse limited via matcher, SessionStart excluded.github/workflows/session-manifest.yml: push/pull_request triggers,permissions: contents: read,persist-credentials: false,actions/upload-artifact@v4withprivate-agent-session-manifestprefix,if-no-files-found: error,retention-days: 7docs/dev/session-recording-policy.md: hook+CI lifecycle, private artifact channel policy (GitHub Actions artifact only), prohibited channels (workflow log / Issue / PR comment / git commit / stdout), and 実装: Claude Code / GitHub Actions の Secret 到達面を上流で制限する secure-secret-boundary を導入する #412 boundaryCloses
Closes #402
Contract Snapshot
#402 (comment)
Safety Claim Matrix
.github/workflows/session-manifest.ymlはpull_request_targetを使用しないpull_request_targetは不使用(AC7 VC 確認済み)upload-artifactのみ使用、echo/catで manifest を出さない(AC9 VC 確認済み)matcherで対象 tool を限定(AC4 テスト確認済み)transcript_path/cwdの絶対パスを public output に含めないnode-version: '22'をsetup-node@v4で指定(iteration 2 修正)Verification Results
AC Verification Commands
rg -n 'generate_session_manifest_from_hook' .claude/settings.json→ PASS (3 matches)test -f .claude/hooks/generate_session_manifest_from_hook.mjs→ PASS! rg -n 'SessionStart' .claude/settings.json→ PASS (no match)! rg 'gh issue comment|gh pr comment|echo .*manifest|cat .*manifest' ...→ PASSrg '#412|private channel|GitHub Actions artifact only|Issue / PR comment|workflow log' docs/dev/session-recording-policy.md→ PASSpytest (AC2/AC4/AC5/AC6)
Standard Quality Gates
Allowed Paths Compliance
All changes are within Allowed Paths:
.claude/settings.json.claude/hooks/generate_session_manifest_from_hook.mjs.claude/hooks/tests/test_generate_session_manifest_from_hook.py.github/workflows/session-manifest.ymldocs/dev/session-recording-policy.mdOut of Scope (not implemented)
#412Secret management upstream boundaryFix Notes (iteration 1)
version: '11.1.2'topnpm/action-setup@v4step to fix 'No pnpm version is specified' CI error.github/workflows/**and.claude/settings.jsonhook changes)Fix Notes (iteration 2)
'20'to'22'insetup-node@v4to resolveERR_UNKNOWN_BUILTIN_MODULE: node:sqlite(pnpm 11.1.2 requires Node.js v22+)🤖 Generated with Claude Code