Skip to content

feat(#500): replace boundary_enforced with producer_contract + runtime_boundary in secret_policy - #532

Merged
squne121 merged 7 commits into
mainfrom
worktree-issue-500-generate-session-manifest-mjs-secret-pol
May 31, 2026
Merged

squne121 merged 7 commits into
mainfrom
worktree-issue-500-generate-session-manifest-mjs-secret-pol

Conversation

@squne121

@squne121 squne121 commented May 31, 2026 •

Copy link
Copy Markdown
Owner

Summary

Closes

Closes #500

Schema Change Applicability

schema_change_applicability: not_schema_change
rationale: >
  The schema JSON (docs/schemas/agent-session-manifest.schema.json) was already updated
  in PR #537 (feat(#536): split secret policy runtime and static schema), which introduced
  the producer_contract + runtime_boundary structure. This PR only implements the producer
  output to match the already-updated schema. No schema JSON is modified in this PR.
  Consumer boundary impact: not_applicable — schema was updated upstream.

Verification

Command Result
pnpm typecheck PASS
pnpm test 277/277 PASS (15 files)
rg -c "secret_policy" scripts/generate-session-manifest.mjs 1
rg -n "value_exposed" scripts/generate-session-manifest.mjs match
rg -n "producer_contract" scripts/generate-session-manifest.mjs match
rg -n "runtime_boundary" scripts/generate-session-manifest.mjs match
rg -n "presence_only" scripts/generate-session-manifest.mjs match
rg -n "secret_policy" tests/agent-session-manifest-producer.test.ts match

Contract Snapshot

🤖 Generated with Claude Code

…#500)

Adds static producer contract secret_policy field to manifest JSON output.
The field declares value_exposed:false / boundary_enforced:true / mode:presence_only
as a static contract declaration, not a runtime attestation.
Adds deep-equal assertions in agent-session-manifest-producer.test.ts to
prevent regression of the producer contract.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@squne121

Copy link
Copy Markdown
Owner Author

Verification Report (TEST_VERDICT_MACHINE v1)

Issue #500: Generate session manifest (MJS) with secret_policy field per contract

AC Command Result Exit Code Status
AC1 rg -c "secret_policy" scripts/generate-session-manifest.mjs 1 occurrence found 0 PASS
AC2 rg -n "value_exposed" scripts/generate-session-manifest.mjs value_exposed: false found (line 393) 0 PASS
AC3 rg -n "boundary_enforced" scripts/generate-session-manifest.mjs boundary_enforced: true found (lines 390, 394) 0 PASS
AC4 rg -n "presence_only" scripts/generate-session-manifest.mjs mode: 'presence_only' found (line 395) 0 PASS
AC5 rg -n "secret_policy" tests/agent-session-manifest-producer.test.ts Deep-equal assertions added (lines 943-981) 0 PASS
AC6 pnpm test Test Files: 15 passed, Tests: 268 passed 0 PASS
AC7 pnpm typecheck TypeScript compilation successful 0 PASS

Summary

  • Total ACs: 7
  • PASS: 7
  • FAIL: 0
  • SKIP: 0

All Acceptance Criteria are satisfied.

TEST_VERDICT:
  result: PASS
  mergeable: MERGEABLE
  merge_state_status: BLOCKED
  branch_behind_main: false
  baseline_only: false
  verification_commands_pass: 7
  verification_commands_fail: 0
  verification_skipped_count: 0
  runtime_ac_results: []

Verified at: 2026-05-31 12:33 UTC
Worktree: .claude/worktrees/issue-500-generate-session-manifest-mjs-secret-pol
Branch: worktree-issue-500-generate-session-manifest-mjs-secret-pol

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Verdict: APPROVE

Mergeability

  • mergeable=MERGEABLE, mergeStateStatus=CLEAN

Evidence Check

  • AC coverage: 7/7 PASS(diff を直接確認。AC1-4: generate-session-manifest.mjs line 390-395 の secret_policy ブロック確認。AC5: tests に deep-equal assertion 2 件(standard args / github_action actor)確認。AC6/AC7: CI head_sha=ac73e7fa1f51b93d62b9c19a0e9e8d8b3012a81a で test・typecheck ともに conclusion=success)
  • Allowed Paths: 遵守(変更ファイルは scripts/generate-session-manifest.mjs と tests/agent-session-manifest-producer.test.ts の 2 件のみ。Issue #500 の Allowed Paths と完全一致)
  • CI Verification: CI_CHECK_RUN_SCOPED 条件を満たす(head_sha 一致・全ジョブ success・test/typecheck が linked issue の VC に対応)。run/26702220295 で test/typecheck/lint/build/e2e/python-test すべて success
  • 検証コマンド結果: PR 本文の Verification テーブルに各 rg コマンド・pnpm test(268/268 PASS)・pnpm typecheck の結果を記載。diff による直接確認で一致を検証済み

Additional Checks

  • Schema Change Applicability: not_schema_change(schema ファイルへの変更なし。内部ロジック追加のみ)
  • Safety Claim Gate: not_applicable(変更ファイルが safety-sensitive パスに該当しない。diff・PR 本文にも safety boundary キーワードなし)
  • boundary_enforced コメント: static producer contract であることが diff コメントで明示済み(runtime attestation ではない)

Blockers

なし

Non-blockers

なし

LOOP_VERDICT

verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: ac73e7fa1f51b93d62b9c19a0e9e8d8b3012a81a
recommendations: []
follow_up_issue_requests: []

@squne121

Copy link
Copy Markdown
Owner Author

判定: REQUEST_CHANGES

PR #532 は Issue #500 の狭いAC、つまり scripts/generate-session-manifest.mjs が固定の secret_policy を出力し、2件の producer test で exact match する、という点は機械的に満たしています。変更ファイルも scripts/generate-session-manifest.mjs と tests/agent-session-manifest-producer.test.ts の2つだけで、PR本文も value_exposed:false / boundary_enforced:true / mode:"presence_only" を固定追加すると説明しています。([GitHub]1)

ただし、このままマージすると boundary_enforced:true が実行時境界の証明に見えるため、セキュリティ監査データとして危険です。既存レビューコメントでは APPROVE になっていますが、私はここは覆すべきだと見ます。([GitHub]2)


Blocker 1: boundary_enforced:true が「静的契約」なのか「実行時証跡」なのか破綻している

追加コードのコメントは、boundary_enforced: true を「静的な producer contract であり runtime attestation ではない」と明記しています。([GitHub]3)
一方、schema 側の boundary_enforced の説明は “secret_boundary_guard PreToolUse hook was active during this session” です。つまり、現在の schema 上は「このセッション中に hook が有効だった」という実行時状態を表すフィールドです。([GitHub]4)

この2つは両立しません。今回の producer は、hook 実行証跡を見ずに常に true を出します。さらに test も github_action / ci_check の manifest で boundary_enforced:true を固定期待しており、この曖昧さを仕様として固定化しています。([GitHub]5)

Issue #412 は、secret value が agent_session_manifest / telemetry pipeline に入らないよう、Claude Code hook、GitHub Actions、workflow 権限、sentinel fixture まで含めた「上流境界」を求めていました。特に PreToolUse guard の fail-closed 動作や sentinel fixture による raw/hash/base64/hex/urlencoded 形の非混入確認がACに含まれています。([GitHub]6)
その文脈で boundary_enforced:true を無条件出力すると、後続 consumer は「実行時に境界が有効だった」と誤読できます。

修正要求

どちらかに寄せるべきです。

案A: 静的契約として扱うなら、フィールド名・schema・docsを変える。
例:

"secret_policy": {
  "value_exposed": false,
  "mode": "presence_only",
  "producer_contract_declared": true,
  "runtime_boundary_verified": false
}

または現行名を残すなら、schema description を「runtime attestation ではない」と明示し、別フィールドで hook_attested / boundary_runtime_verified を追加する。

案B: 現行 schema の意味を維持するなら、hook 証跡なしに boundary_enforced:true を出してはいけない。
secret_boundary_guard の実行ログ、hook metadata、または検証済み環境入力がある場合のみ true。それ以外は false または field absent にする。

現Issue #500は schema変更・dynamic化を out of scope にしていますが、これは単なる実装詳細ではなく security claim の意味論衝突 なので、スコープを拡張するか、別Issueを先に切ってこのPRを Draft のまま止めるべきです。([GitHub]7)


Blocker 2: schema contract としてはまだ閉じていない

PR #500 の背景では、PR #495 / Issue #412 で schema 側に secret_policy が入ったが producer が出していなかったため、今回 producer を追従させる、という流れです。([GitHub]7)
しかし現在の schema は root required に secret_policy を含めていません。required は schema, manifest_id, recorded_at, repository, actor, phase, redaction などに限られています。([GitHub]4)

さらに secret_policy object 内にも required が見当たりません。JSON Schema / Ajv の仕様上、properties は「その key が存在した場合の値」を検証するだけで、key の存在自体は required がないと要求されません。([Ajv]8)
つまり、producer は出すようになっても、schema contract としては secret_policy 欠落や {} を十分に拒否できない 可能性があります。

これは #500 の allowed paths 外なので、このPRだけで schema を直せとは言いません。ただし、レビューコメントやPR説明で「schema contract が完了した」とは言うべきではありません。最低限、follow-up issue を必須化してください。

推奨 schema follow-up:

{
  "required": [
    "schema",
    "manifest_id",
    "recorded_at",
    "repository",
    "actor",
    "phase",
    "redaction",
    "secret_policy"
  ],
  "properties": {
    "secret_policy": {
      "type": "object",
      "required": ["value_exposed", "boundary_enforced", "mode"],
      "additionalProperties": false
    }
  }
}

ただし、上の boundary_enforced は Blocker 1 の意味論を解消してから入れるべきです。


外部実装との照合

GitHub Actions の secrets API は secret の一覧・metadata を扱えますが、secret value 自体を返す設計ではありません。GitHubのREST docsでも、list secrets は secrets を列挙するもので、レスポンス例は name, created_at, updated_at, visibility 等の metadata です。([GitHub Docs]9)
したがって mode:"presence_only" / value_exposed:false という方向性自体は妥当です。

また GitHub Actions では fork PR からの workflow には原則 secrets が渡らず、GITHUB_TOKEN も read-only になります。一方、pull_request_target は base repository context で動くため、untrusted code を checkout/build/run すると write 権限や secrets の露出リスクがあります。([GitHub Docs]10)
Issue #412 が pull_request_target 禁止、workflow secrets 非参照、presence boolean only を求めたのは、この脅威モデルと整合します。([GitHub]6)

OWASPのSecrets Management観点でも、secret を平文転送しない、rotate/revoke/expiry を管理する、という基本原則があり、manifest で value を出さず presence/metadata に留める設計は正しいです。([OWASP Cheat Sheet Series]11)
問題はそこではなく、境界が実際に enforcement されたかの証跡を、静的宣言で代替している点です。


Non-blocking だが直すべき点

  1. GitHub comment 出力経路の exact assertion が足りない
    docs: session 記録 Kill Switch policy と検証コマンド整備 (session-recording-policy.md) #242 は public GitHub comment に agent_session_manifest metadata を許容しつつ raw transcript を禁止する方針です。([GitHub]12)
    今回の test は JSON object の producer 出力を見ていますが、実際の配布面である github-comment format から extract して secret_policy を exact assert する test を追加した方が安全です。

  2. コメントの参照先がやや不正確
    追加コメントは docs/dev/secret-policy.md を参照しますが、その文書は secret category / current mode / secret publication policy の説明が中心です。([GitHub]13)
    boundary_enforced や presence_only の machine-readable contract は schema / session-recording policy / 実装: Claude Code / GitHub Actions の Secret 到達面を上流で制限する secure-secret-boundary を導入する #412 側の文脈が強いので、コメントは agent-session-manifest.schema.json と関連Issueを参照した方がよいです。

  3. 検証コマンドの rg -c "secret_policy" は品質ゲートとして弱い
    出現回数は仕様ではありません。docsやhelpに追記した瞬間に壊れます。代わりに producer 出力を jq -e で exact compare し、schema validate する方が堅いです。


レビューコメント案

REQUEST_CHANGES

`secret_policy` を producer 出力へ追加する方向性は #500 のACに合っていますが、`boundary_enforced:true` の意味論が壊れています。

schema は `boundary_enforced` を「secret_boundary_guard PreToolUse hook がこの session 中に active だったか」と説明しています。一方、この実装コメントは `boundary_enforced:true` を runtime attestation ではなく static producer contract と説明し、実際の hook 証跡を確認せず常に true を出しています。これは downstream consumer に「実行時境界が enforcement された」と誤認させる security telemetry です。

修正案:
- static contract なら `producer_contract_declared` 等に rename し、runtime attestation 用 field を別に追加する。
- 現行 `boundary_enforced` の意味を維持するなら、hook 証跡がある場合だけ true にする。
- 少なくとも schema/docs/follow-up issue でこの semantic split を明文化するまで merge しない。

また schema は root required に `secret_policy` を含まず、object 内 required もないため、schema contract としてはまだ閉じていません。これは #500 の allowed paths 外なら follow-up 必須で扱うべきです。

結論として、固定 secret_policy 追加そのものは妥当。ただし boundary_enforced:true を静的宣言として出す現在形は、監査・セキュリティ文脈では過大主張です。ここを解消するまでマージ不可です。

@squne121

Copy link
Copy Markdown
Owner Author

判断: Stop Condition 発動として扱います

PR #532 の実装は Issue #500 の狭い AC、すなわち producer が secret_policy 固定値を出す、という観点では成立しています。しかし secret_policy.boundary_enforced の schema description は "secret_boundary_guard PreToolUse hook was active during this session" を表しており、これは runtime attestation に読めます。

一方、PR の実装コメントは boundary_enforced: true を static producer contract と明記しており、runtime hook 実行証跡ではありません。この状態で merge すると、consumer が boundary_enforced: true を実行時保証として扱う危険があります。

Issue #500 の Allowed Paths は scripts/generate-session-manifest.mjs と関連テストに限定されており、schema の意味論修正または hook/wrapper/CI attestation 実装はこの PR の正当な修正範囲外です。

したがって、この PR は as-is merge せず、次の follow-up を先に切るべきです。

  • boundary_enforced を runtime attestation として扱うなら、hook/wrapper/CI 証跡を producer に渡し、証跡がある場合だけ true にする。
  • static producer contract として扱うなら、schema description と field 名を修正し、boundary_enforced という runtime enforcement に読める名称を避ける。

推奨は後者ではなく、runtime と static を分離することです:

  • producer_contract.declared
  • runtime_boundary.attested
  • runtime_boundary.evidence_ref

この分離後に、PR #532 の実装を再利用するか、field 名・schema contract を更新した上で再実装してください。

@squne121

Copy link
Copy Markdown
Owner Author

結論: REQUEST CHANGES

PR #532 は Issue #500 の表面的な AC は満たしていますが、secret_policy.boundary_enforced: true の意味が schema / upstream security contract と衝突しているため、このまま merge すべきではありません。

PR は scripts/generate-session-manifest.mjs に secret_policy = { value_exposed: false, boundary_enforced: true, mode: 'presence_only' } を固定出力し、コメントで「static producer contract であり runtime attestation ではない」と説明しています。差分上もその実装です。 しかし main の agent-session-manifest.schema.json では boundary_enforced の説明が “Whether secret_boundary_guard PreToolUse hook was active during this session.” になっており、これは静的宣言ではなく runtime state の意味です。

Blocker 1: boundary_enforced: true が runtime attestation に見える

Claude Code の hooks は、設定された lifecycle event / matcher / handler によって発火し、PreToolUse hook は permission-mode check より前に動作して deny で tool call をブロックできます。つまり「境界が enforced された」と言うなら、少なくとも該当 hook が存在し、該当 session で有効だったことを示す runtime 証跡が必要です。

この PR は hook 実行有無を観測せず、producer が走っただけで boundary_enforced: true を出します。PR コメントでは「runtime attestation ではない」と明記していますが、schema の説明は逆です。これは downstream consumer にとって危険な semantic lie です。

修正要求:

どちらかに寄せてください。

  1. boundary_enforced を本当に runtime attestation として扱う

hook evidence がある場合だけ true

evidence がない場合は false または null

その場合、Issue #500 の固定値要求自体を見直す必要があります

  1. static producer contract として扱う

boundary_enforced という名前・schema description が不適切

producer_contract_declared: true など別名にするか、schema docs を更新する follow-up ではなく同時に整合させる必要があります

Allowed Paths 的に schema 修正が out of scope なら、この PR は Stop Condition に該当します。Issue #500 自身も「固定契約・キー集合・スキーマ・型定義の変更が必要になった場合」を停止条件にしています。

Blocker 2: Issue #500 の AC は狭すぎ、危険な意味の固定値を検出できない

Issue #500 の AC は value_exposed=false、boundary_enforced=true、mode="presence_only" の存在と値、pnpm test、pnpm typecheck に限定されています。 PR はその通りに deep-equal test を 2 件追加しています。

しかしこの test は「値が固定で出る」ことだけを保証し、「その値が schema / security contract と意味的に正しい」ことを保証しません。特に boundary_enforced は固定 true にした時点で、hook が無効・未設定・未発火でも true になります。

修正要求:

最低限、以下のテストを追加してください。

it('does not claim runtime boundary enforcement without runtime hook evidence', () => {
// 現仕様で true を固定するなら、このテストは落ちるべき。
// 仕様を static contract にするなら、field 名または schema description を変えるべき。
})

または、runtime evidence を CLI 引数で受けて、未指定時は boundary_enforced: false にしてください。

Blocker 3: PR 本文の mergeability 証跡が自己矛盾している

PR は Draft です。GitHub 表示上も Draft で、PR 本文の merge state は一時的に BLOCKED と記載されています。 一方、後続コメントでは APPROVE / mergeStateStatus: CLEAN とあります。

これは実装上の blocker ではありませんが、レビュー証跡としては不安定です。PR が Draft のままなら、少なくとも「review request ready」状態にしてから最終判断すべきです。

Non-blocker: secret_policy schema 側は optional のまま

PR #495 の議論では、generate-session-manifest.mjs が secret_policy を出していないことが follow-up として切られ、今回の #500 がその解消に相当します。 その観点では、producer output に追加した方向性自体は正しいです。

ただし schema の root required には secret_policy が含まれていません。 JSON Schema の additionalProperties: false は未知フィールドを禁止できますが、required に入っていないフィールドの存在は強制しません。 既存互換のため optional にする判断は理解できますが、今後「新規 producer output では必須」という producer contract test を維持してください。

貼り付け用レビューコメント

Verdict: REQUEST_CHANGES

Issue #500 の表面的 AC は満たしていますが、secret_policy.boundary_enforced: true の意味が危険です。

この PR は generate-session-manifest.mjs で常に以下を固定出力しています。

{
  "value_exposed": false,
  "boundary_enforced": true,
  "mode": "presence_only"
}

しかし docs/schemas/agent-session-manifest.schema.json の boundary_enforced description は “Whether secret_boundary_guard PreToolUse hook was active during this session.” であり、runtime hook active state を意味しています。PR 側コメントでは「static producer contract であり runtime attestation ではない」と説明していますが、schema の意味と矛盾します。

これは downstream consumer に「この session では secret_boundary_guard が実際に enforcement された」と誤読させる semantic lie です。Claude Code の PreToolUse hook は permission-mode より前に発火して deny 可能な実 runtime enforcement 機構なので、boundary_enforced を true にするなら hook 実行・有効化の evidence が必要です。

修正要求

以下のどちらかに揃えてください。

1. boundary_enforced を runtime attestation として扱う:

hook evidence がある場合のみ true

evidence がない場合は false または null

producer test もその分岐を検証する



2. static producer contract として扱う:

field 名または schema description を変更する

boundary_enforced に runtime hook active の意味を持たせない

Allowed Paths 外の schema 修正が必要なら Issue #500 の Stop Condition に従って停止・再スコープする




現状の「常に true を出すが runtime attestation ではない」は、schema contract と security semantics が一致していないため merge 不可です。

## 最終判定

`value_exposed: false` と `mode: presence_only` の追加は妥当です。  
`boundary_enforced: true` の固定出力だけが致命的です。

**LOOP_VERDICT: REQUEST_CHANGES**

…e_boundary in secret_policy

Aligns generate-session-manifest.mjs output with the new schema structure
introduced in PR #537 (feat(#536): split secret policy runtime and static schema).
Removes boundary_enforced (ambiguous runtime/static meaning) and replaces with
explicit producer_contract (static declaration) and runtime_boundary (attested:false,
evidence_ref:null) fields. Updates AC5 deep-equal assertions in
agent-session-manifest-producer.test.ts to match the new structure.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@squne121 squne121 changed the title feat: add secret_policy field to generate-session-manifest.mjs output (#500) feat(#500): replace boundary_enforced with producer_contract + runtime_boundary in secret_policy May 31, 2026

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Verdict: REQUEST_CHANGES

Mergeability

  • mergeable=MERGEABLE, mergeStateStatus=CLEAN

Evidence Check

  • AC coverage: AC1-AC7 の実装は差分から確認できる。ただし AC3 は Issue 本文では boundary_enforced: true と記載されているが、タスク説明・スキーマ更新(PR #537)後の実質的な AC3 = producer_contract.declared: true として対応済み。
  • Allowed Paths: 変更ファイルは scripts/generate-session-manifest.mjs, tests/agent-session-manifest-producer.test.ts の 2 ファイルのみ。Allowed Paths 完全準拠。
  • CI Verification: 全 7 チェック(build/e2e/lint/python-test/test/typecheck/validate-generated-artifact)が pass。CI run 26708831036 の headSha = 468ec10133434f4a287e621743b3c7a1e65ebace が PR headRefOid と一致し CI_CHECK_RUN_SCOPED 条件を満たす。
  • 検証コマンド結果: PR 本文の Verification テーブルに AC1〜AC7 全件の結果記載あり(rg × 5 コマンド + pnpm test 277/277 + pnpm typecheck PASS)。

Blockers

  1. Schema Change Applicability セクション欠如(schema_change_applicability 明示なし)
    • PR は scripts/generate-session-manifest.mjs に secret_policy フィールドを追加しており、agent_session_manifest/v1 schema の producer 出力を変更している。
    • PR diff を見ただけでは consumer 境界への影響が not_schema_change と断言できない(schema-governance.md の fail-closed 判定ルールが適用される)。
    • PR 本文に ## Schema Change Applicability セクションが存在しない。
    • skill の判定ルール: ## Schema Change Applicability セクションが存在しない → APPROVE 禁止(not_schema_change の明示がない限り)
    • 対処: PR 本文に ## Schema Change Applicability セクションを追加し、schema_change_applicability: not_schema_change を明示した上でその根拠(schema JSON は PR #537 で既に更新済み、本 PR は producer 実装のみ)を記載するか、または schema_change / uncertain として Schema Consumer Inventory を提出する。

Non-blockers

  • 前回 blockers(iteration 0)は両方解消されている: (1) producer_contract + runtime_boundary 構造への対応完了、(2) テストの deep-equal assertion 更新完了。
  • runtime_boundary.attested: false により static contract と runtime attestation の意味論が明確に分離されており、Issue の設計意図(コード内コメントで "MUST NOT be interpreted as runtime attestation" を明示)と整合している。
  • 2 つのテストケース(ai_agent actor と github_action actor)が追加されており、assertion の信頼性が向上している。

LOOP_VERDICT

verdict: REQUEST_CHANGES
blockers:
  - id: schema_change_applicability_missing
    description: "PR 本文に ## Schema Change Applicability セクションが存在しない。schema_change_applicability: not_schema_change の明示が必要(または schema_change/uncertain として Schema Consumer Inventory を提出)。"
    rule: PR_REVIEW_JUDGE_APPROVE_PROHIBITION_SKIP_FALLBACK (schema 4.5 gate)
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 468ec10133434f4a287e621743b3c7a1e65ebace
recommendations: []
follow_up_issue_requests: []

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Verdict: APPROVE

Mergeability

  • mergeable=MERGEABLE, mergeStateStatus=CLEAN

Evidence Check

  • AC coverage: AC1 ✓ (value_exposed key present), AC2 ✓ (value_exposed:false), AC3 ✓ (producer_contract.declared:true per schema updated in #537), AC4 ✓ (mode:"presence_only"), AC5 ✓ (deep-equal assertions in 2 test cases), AC6 ✓ (CI test job pass, 277/277), AC7 ✓ (CI typecheck job pass)
  • Allowed Paths: 遵守 — 変更ファイルは scripts/generate-session-manifest.mjs と tests/agent-session-manifest-producer.test.ts のみ。Allowed Paths と完全一致。
  • CI Verification: CI_CHECK_RUN_SCOPED 条件を満たす。head_sha=468ec10133434f4a287e621743b3c7a1e65ebace で CI run と PR head が一致。job test(pnpm test)conclusion=success、job typecheck(pnpm typecheck)conclusion=success。全 7 job pass(test/lint/typecheck/python-test/build/e2e/validate-generated-artifact)。
  • 検証コマンド結果: PR 本文の Verification テーブルに AC1〜AC7 全コマンドの結果記載あり。CI pass により AC6/AC7 は独立証跡で確認済み。
  • Schema Change Applicability: not_schema_change セクションあり。根拠(スキーマは #537 で更新済み、本 PR は producer 実装のみ)が diff と一致。Schema Consumer Inventory 提出不要。
  • Safety-sensitive 判定: 非該当(changed paths が safety-sensitive パターンに非一致、diff キーワードに safety 関連語なし)。

Blockers

なし

Non-blockers

  • AC3 の Issue 本文 Outcome/AC3 記述(boundary_enforced: true)が実装済み構造(producer_contract.declared: true)と表記上乖離しているが、PR #537 のスキーマ更新後の正しい実装であり、orchestrator 指定 AC3 producer_contract.declared: true と一致。Issue 本文の Outcome/AC3 記述を #537 schema 変更後の構造に合わせて更新する follow-up を検討可(optional)。

LOOP_VERDICT

verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 468ec10133434f4a287e621743b3c7a1e65ebace
recommendations: []
follow_up_issue_requests:
  - title: "fix(#500): update Issue #500 AC3 wording to reflect producer_contract structure after schema split in #537"
    issue_kind: implementation
    severity: optional_follow_up
    source:
      kind: pr_review
      url: "https://github.com/squne121/loop-protocol/pull/532"
      note_id: "1"
    dedupe_key: "follow-up:squne121/loop-protocol:pr/532:1"
    desired_destination: "Issue #500 の AC3 表記が #537 schema 変更後の producer_contract 構造と一致している"
    validated_scope_delta: "Issue #500 本文の AC3 / Outcome 記述を boundary_enforced から producer_contract.declared 構造に更新する"
    origin_skill: pr-review-judge
    labels:
      - triage-required

@squne121
squne121 marked this pull request as ready for review May 31, 2026 09:39
@squne121
squne121 merged commit f6a196d into main May 31, 2026
7 checks passed
@squne121
squne121 deleted the worktree-issue-500-generate-session-manifest-mjs-secret-pol branch May 31, 2026 09:39
@squne121

Copy link
Copy Markdown
Owner Author

post-merge-cleanup: 完了 (2026-05-31T18:45:00Z)

  • status: partial(worktree 手動確認要)
  • 次アクション: tests/fixtures/agent-session-manifest/temp-unsupported.txt の扱いを決定後 worktree を削除
FOLLOW_UP_MATERIALIZATION_RESULT_V1:
  schema_version: 1
  materialized_by: post-merge-cleanup
  follow_up_issues:
    - request_dedupe_key: "follow-up:squne121/loop-protocol:pr/532:boundary-enforced-semantics-split"
      status: skipped_resolved
      issue: null
      reason: "PR #537 + PR #532 で producer_contract + runtime_boundary 構造に置換済み。懸念は解消されている。"

    - request_dedupe_key: "follow-up:squne121/loop-protocol:pr/532:schema-required-secret-policy"
      status: created
      issue:
        number: 549
        url: "https://github.com/squne121/loop-protocol/issues/549"
      reason: null

    - request_dedupe_key: "follow-up:squne121/loop-protocol:pr/532:runtime-boundary-test"
      status: skipped_resolved
      issue: null
      reason: "runtime_boundary.attested: false がテストで deep-equal 検証済み(PR #532 AC5)。"

  note_only_observations:
    - dedupe_key: "worktree-cleanup:issue-500"
      source_url: "https://github.com/squne121/loop-protocol/pull/532"
      source_note_id: "cleanup"
      summary: |
        worktree .claude/worktrees/issue-500-generate-session-manifest-mjs-secret-pol に
        tests/fixtures/agent-session-manifest/temp-unsupported.txt(未追跡)が存在。
        削除またはコミット後に `git worktree remove` を手動実行してください。
        branch worktree-issue-500-generate-session-manifest-mjs-secret-pol はリモート削除済み。

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.

実装: generate-session-manifest.mjs に secret_policy フィールド出力を追加する

1 participant