Repository navigation
feat(#536): split secret policy runtime and static schema - #537
Conversation
Separate runtime attestation from the static producer contract in agent_session_manifest schema and cover the new contract with Ajv tests.
検証結果レポートIssue #536: secret_policy.boundary_enforced の意味論を再設計し runtime attestation と static producer contract を schema 上で分離する
総合判定
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BLOCKED
branch_behind_main: false
baseline_only: false
verification_commands_pass: 4
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: [] |
検証結果レポートIssue #536: secret_policy.boundary_enforced の意味論を再設計し runtime attestation と static producer contract を schema 上で分離する
総合判定
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
branch_behind_main: false
baseline_only: false
verification_commands_pass: 4
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: [] |
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT
schema-only 変更として Issue #536 の contract と整合しており、Changed Paths は Allowed Paths 内に閉じています。secret_policy.boundary_enforced の曖昧性は schema から除去され、static producer declaration と runtime attestation が別 object に分離されました。PR body には Schema Consumer Inventory / Safety Claim Matrix / compatibility follow-up が記載され、CI checks も全件 success です。
LOOP_VERDICT:
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: e1159dd830a9644f0435e88f44fbb5e22cfb12ed
recommendations: []
follow_up_issue_requests: []
結論REQUEST CHANGES。as-is merge は推奨しません。 PR #537 の方向性、つまり ただし、現差分には 契約の穴 と ドキュメント不整合 が残っています。特に ブロッカー 1:
|
Require runtime_boundary.evidence_ref, sync the human-facing schema doc, and validate evidence linkage semantically.
検証結果レポートIssue #536: secret_policy.boundary_enforced の意味論を再設計し runtime attestation と static producer contract を schema 上で分離する
対応したレビュー指摘
総合判定
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
branch_behind_main: false
baseline_only: false
verification_commands_pass: 4
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: [] |
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT
review comment #issuecomment-4585772075 の blocker 4 点に対応しました。schema では runtime_boundary.evidence_ref を常時 required とし、attested: true では non-empty string、attested: false では explicit null を要求します。さらに semantic validator で secret_policy.runtime_boundary.evidence_ref と evidence[].source_ref の整合を検査し、human-facing schema doc と PR 本文も新 contract に同期しました。
LOOP_VERDICT:
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 0528f7f08938f0f59d3f52246d18221f204ff270
recommendations:
- "PR #532 / Issue #500 は merge 前に new secret_policy shape へ rewrite が必要"
follow_up_issue_requests: []…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]>
…e_boundary in secret_policy (#532) * feat: add secret_policy field to generate-session-manifest.mjs output (#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]> * feat(#500): replace boundary_enforced with producer_contract + runtime_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]> --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>
…match current schema shape Update stale test expectations from boundary_enforced to the correct #536/#537 schema shape (producer_contract + runtime_boundary) and add regression guard asserting boundary_enforced is absent from the schema. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…hema contract checks - Replace boundary_enforced: True fixtures in test_sentinel_producer_injection_does_not_leak and test_manifest_fixture_with_secret_policy_validates_sentinel_absence with correct #537 shape (producer_contract + runtime_boundary) - Add deeper contract checks to test_manifest_schema_has_secret_policy_property: required fields, additionalProperties: false, producer_contract/runtime_boundary subschema structure, and runtime_boundary.allOf conditional evidence contract Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…match current schema shape (#716) * fix(#699): update test_manifest_schema_has_secret_policy_property to match current schema shape Update the stale test expectation to match the schema shape introduced in #536/#537. The test was expecting the deprecated 'boundary_enforced' field which was intentionally removed in #537 (breaking change) and replaced by 'producer_contract' (static declaration) and 'runtime_boundary' (runtime attestation). - Replace 'boundary_enforced' assertion with 'producer_contract' and 'runtime_boundary' assertions - Add regression guard: assert 'boundary_enforced' not in sp_props Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * fix(#699): update legacy boundary_enforced fixtures and add deeper schema contract checks - Replace boundary_enforced: True fixtures in test_sentinel_producer_injection_does_not_leak and test_manifest_fixture_with_secret_policy_validates_sentinel_absence with correct #537 shape (producer_contract + runtime_boundary) - Add deeper contract checks to test_manifest_schema_has_secret_policy_property: required fields, additionalProperties: false, producer_contract/runtime_boundary subschema structure, and runtime_boundary.allOf conditional evidence contract Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Summary
docs/schemas/agent-session-manifest.schema.jsonから曖昧なsecret_policy.boundary_enforcedを削除し、producer_contractとruntime_boundaryを別 object として追加runtime_boundary.evidence_refを常に required にし、attested: trueでは non-empty/non-whitespace string、attested: falseではnullのみ許可する条件付き schema を追加docs/schemas/agent-session-manifest.mdを新 shape に更新し、human-facing SSOT から旧boundary_enforced記述を除去scripts/lib/agent-session-manifest-validation.mjsにruntime_boundary.evidence_refと top-levelevidence[]の semantic link check を追加tests/agent-session-manifest.test.tsに missing/null/whitespace/mixed-legacy/linkage の回帰 tests を追加Closes #536
Checks
secret_policy.boundary_enforcedを schema から削除したsecret_policy.producer_contractとsecret_policy.runtime_boundaryを別 object として定義し、description / type / required を明示したattested/evidence_ref条件を検証したpnpm testが PASS した検証コマンド結果
pnpm testpnpm typecheckpnpm lintpnpm buildAllowed Paths 遵守
docs/schemas/agent-session-manifest.schema.jsontests/agent-session-manifest.test.tsdocs/schemas/agent-session-manifest.mdscripts/lib/agent-session-manifest-validation.mjsSchema Change Applicability
schema_changeagent_session_manifest/v1.secret_policysecret_policyの contract shape 自体を変更し、legacy key を削除して新しい nested object を導入したためSchema Consumer Inventory
Before
After
tests/agent-session-manifest.test.tsscripts/lib/agent-session-manifest-validation.mjsattested: trueのevidence_refが top-levelevidence[]に link していることを semantic validation で確認tests/agent-session-manifest-producer.test.tssecret_policyを出力しておらず、この PR は schema-onlydocs/schemas/agent-session-manifest.mdscripts/generate-session-manifest.mjs#536完了後に別 PR で新 shape へ合わせるCompatibility Decision
breakingsecret_policy.boundary_enforcedshape は新 schema で invalid になるIssue #500 / PR #532 で producer を新 shape へ更新する。main 現在値は secret_policy 未出力のため本 PR 単体では後方互換を壊さないSafety Claim Matrix
tests/agent-session-manifest.test.tsvalid caseattested: trueは runtime evidence なしで valid にならないattested: falseでevidence_ref欠落が通らないevidence_refreject testboundary_enforcedshape は fail-close で reject されるContract Snapshot
#536 (comment)
Notes
docs/schemas/agent-session-manifest.mdと semantic validator まで同 PR で同期したsecret_policy.boundary_enforcedを削除するsecret_policy.producer_contractを emit するsecret_policy.runtime_boundary.attested=falseを emit するsecret_policy.runtime_boundary.evidence_ref=nullを emit する