Repository navigation
fix(#699): update test_manifest_schema_has_secret_policy_property to match current schema shape - #716
Conversation
…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]>
Preview URL✅ verified live assets: https://squne121.github.io/loop-protocol/pr-716/ The preview will be removed when this PR is closed. |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=BEHIND
Evidence Check
Self-authored check: PR author squne121 = actor squne121 → posting as --comment per skill constraint.
Linked issue: Closes #699 present in PR body.
Allowed Paths: Only .claude/hooks/tests/test_secret_boundary_contract.py changed. Matches issue contract exactly.
AC coverage:
- AC1 (test PASS): Schema has all expected fields (
value_exposed,mode,producer_contract,runtime_boundary) and NOTboundary_enforced. Test assertions verified structurally via schema read + diff inspection. PR body self-reports PASS. - AC2 (
producer_contractin test): Confirmed at line 553 of test file. - AC3 (
boundary_enforced not inguard): Confirmed at line 559 of test file. - AC4 (schema unchanged):
rg -n "boundary_enforced" docs/schemas/agent-session-manifest.schema.jsonreturns no match (exit 1 = no occurrences). PASS.
CI Verification:
python-testjob: conclusion=success, head_sha=6d80828698630ccaed85a0f1e831a40ce0c2150f (matches PR head). Covers Python test suite.build,test,typecheck,lint,actionlint: all pass on correct head SHA.e2ejob: FAIL — confirmed pre-existing failure on main branch (all 5 recent main branch CI runs also fail withe2e: failure). Unrelated to this test-only change.test_secret_boundary_contract.pyis not in CI's python-test job steps (CI registration deferred to #682 per issue Remaining Parent Gaps).
VC evidence classification:
- AC1 VC has
# preflight-scope: pr_review_onlyannotation (note: invalid marker value; valid values arenorruntime_only). Semantic intent is PR-review-time verification. Structural verification performed: schema fields confirmed viagrepondocs/schemas/agent-session-manifest.schema.json; test assertions confirmed via diff. - AC2, AC3, AC4: independently verified via
rgagainst actual files.
Schema change applicability: not_schema_change — only test file changed, no schema JSON modified.
Safety Claim Gate: Not safety-sensitive (test-only change to Python test assertions).
scope 混入: No scope creep detected. Diff is minimal and exactly matches issue In Scope.
Runtime Verification Applicability: not_applicable per issue contract (test update only, no runtime behavior change).
Blockers
なし
Non-blockers(任意改善)
- Issue #699 の VC1/VC4 の
# preflight-scope: pr_review_onlyは無効なマーカー値(有効値はnまたはruntime_only)。issue-contract-review スキルではhuman_judgmentに分類される typo。本 PR のマージをブロックしないが、後続 Issue 契約では# preflight-scope: nを使うことを推奨する。
LOOP_VERDICT_V2
LOOP_VERDICT_V2:
verdict: APPROVE
reviewed_head_sha: 6d80828698630ccaed85a0f1e831a40ce0c2150f
merge_ready: false
mergeability:
mergeable: MERGEABLE
merge_state_status: BEHIND
blockers: []
required_auto_actions:
- kind: update_branch
executor: implementation-worker
skill: implement-issue.update_branch
blocking_merge_ready: true
mechanical: true
expected_head_sha: 6d80828698630ccaed85a0f1e831a40ce0c2150f
auto_fix_applied: []
follow_up_issue_requests:
- title: "fix: Issue #699 VC1/VC4 preflight-scope marker を pr_review_only から n に修正"
issue_kind: implementation
severity: optional_follow_up
blocking_merge_ready: false
source:
kind: pr_review
url: "https://github.com/squne121/loop-protocol/pull/716"
note_id: "1"
dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/716:1"
desired_destination: "Issue #699 の VC1/VC4 が valid な preflight-scope marker (n) を持ち、issue-contract-review で正しく scope_class: n に分類される"
validated_scope_delta: "Issue #699 body の VC1/VC4 コメント行を `# preflight-scope: pr_review_only` から `# preflight-scope: n` に修正する(VC の意味論変更なし)"
origin_skill: pr-review-judge
labels:
- triage-required
initial_label_profile: hygiene
materialization: deferred
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=BEHIND
Evidence Check
Self-authored check: PR author squne121 = actor squne121 → posting as --comment per skill constraint.
Linked issue: Closes #699 present in PR body.
Allowed Paths: Only .claude/hooks/tests/test_secret_boundary_contract.py changed. Matches issue contract exactly.
AC coverage:
- AC1 (test PASS): Schema has all expected fields (
value_exposed,mode,producer_contract,runtime_boundary) and NOTboundary_enforced. Test assertions verified structurally via schema read + diff inspection. PR body self-reports PASS. - AC2 (
producer_contractin test): Confirmed at line 553 of test file. - AC3 (
boundary_enforced not inguard): Confirmed at line 559 of test file. - AC4 (schema unchanged):
rg -n "boundary_enforced" docs/schemas/agent-session-manifest.schema.jsonreturns no match (exit 1 = no occurrences). PASS.
CI Verification:
python-testjob: conclusion=success, head_sha=6d80828698630ccaed85a0f1e831a40ce0c2150f (matches PR head). Covers Python test suite.build,test,typecheck,lint,actionlint: all pass on correct head SHA.e2ejob: FAIL — confirmed pre-existing failure on main branch (all 5 recent main branch CI runs also fail withe2e: failure). Unrelated to this test-only change.test_secret_boundary_contract.pyis not in CI's python-test job steps (CI registration deferred to #682 per issue Remaining Parent Gaps).
VC evidence classification:
- AC1 VC has
# preflight-scope: pr_review_onlyannotation (note: invalid marker value; valid values arenorruntime_only). Semantic intent is PR-review-time verification. Structural verification performed: schema fields confirmed viagrepondocs/schemas/agent-session-manifest.schema.json; test assertions confirmed via diff. - AC2, AC3, AC4: independently verified via
rgagainst actual files.
Schema change applicability: not_schema_change — only test file changed, no schema JSON modified.
Safety Claim Gate: Not safety-sensitive (test-only change to Python test assertions).
scope 混入: No scope creep detected. Diff is minimal and exactly matches issue In Scope.
Runtime Verification Applicability: not_applicable per issue contract (test update only, no runtime behavior change).
Blockers
なし
Non-blockers(任意改善)
- Issue #699 の VC1/VC4 の
# preflight-scope: pr_review_onlyは無効なマーカー値(有効値はnまたはruntime_only)。issue-contract-review スキルではhuman_judgmentに分類される typo。本 PR のマージをブロックしないが、後続 Issue 契約では# preflight-scope: nを使うことを推奨する。
LOOP_VERDICT_V2
LOOP_VERDICT_V2:
verdict: APPROVE
reviewed_head_sha: 6d80828698630ccaed85a0f1e831a40ce0c2150f
merge_ready: false
mergeability:
mergeable: MERGEABLE
merge_state_status: BEHIND
blockers: []
required_auto_actions:
- kind: update_branch
executor: implementation-worker
skill: implement-issue.update_branch
blocking_merge_ready: true
mechanical: true
expected_head_sha: 6d80828698630ccaed85a0f1e831a40ce0c2150f
auto_fix_applied: []
follow_up_issue_requests:
- title: "fix: Issue #699 VC1/VC4 preflight-scope marker を pr_review_only から n に修正"
issue_kind: implementation
severity: optional_follow_up
blocking_merge_ready: false
source:
kind: pr_review
url: "https://github.com/squne121/loop-protocol/pull/716"
note_id: "1"
dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/716:1"
desired_destination: "Issue #699 の VC1/VC4 が valid な preflight-scope marker (n) を持ち、issue-contract-review で正しく scope_class: n に分類される"
validated_scope_delta: "Issue #699 body の VC1/VC4 コメント行を `# preflight-scope: pr_review_only` から `# preflight-scope: n` に修正する(VC の意味論変更なし)"
origin_skill: pr-review-judge
labels:
- triage-required
initial_label_profile: hygiene
materialization: deferred
結論: REQUEST CHANGES / 現状マージ不可PR #716 の方向性は #536/#537 後の schema shape に合わせる という点では正しいです。ただし、現状は「テスト1個の期待値だけを直して、同じファイル内の旧 Blocker 1:
|
…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]>
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=UNSTABLE
Evidence Check
- AC coverage: ○(全4 AC確認済み)
- AC1:
test_manifest_schema_has_secret_policy_propertyPASS(ローカル直接実行 + CI python-test pass、head SHA c8d3c04) - AC2:
producer_contractが test ファイル内に存在(line 149, 565, 620) - AC3:
boundary_enforced not in sp_propsregression guard が存在(line 571) - AC4:
docs/schemas/agent-session-manifest.schema.jsonにboundary_enforced不在(スキーマ変更なし)
- AC1:
- Allowed Paths: 遵守(
.claude/hooks/tests/test_secret_boundary_contract.pyのみ変更) - CI Verification: python-test pass(head SHA c8d3c04 / run 27063551913); e2e fail + actionlint fail は main でも pre-existing(run 27063368193 で同様に failure)
- Verification Commands: ローカル直接実行で全VC確認済み(42 passed in 0.82s)
Scope Delta 確認
test_sentinel_producer_injection_does_not_leakfixture:boundary_enforced: True削除、producer_contract+runtime_boundaryshape に更新済みtest_manifest_fixture_with_secret_policy_validates_sentinel_absencefixture: 同様に更新済み- deeper contract checks 追加:
requiredフィールドセット、additionalProperties: false、producer_contract型・required、runtime_boundary型・required・allOf確認(schema JSON と整合確認済み) - schema JSON (
docs/schemas/agent-session-manifest.schema.json) は変更なし(Issue #699 Out of Scope と一致)
Schema Change Applicability
schema_change_applicability: not_schema_change(変更はテストファイルのみ。schema JSON は変更なし)
Blockers
なし
Non-blockers
なし
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: c8d3c0462c24add9598b51d581ffa1efb7050590
merge_ready: true
mergeability:
mergeable: MERGEABLE
merge_state_status: UNSTABLE
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=UNSTABLE
Evidence Check
- AC coverage: ○(全4 AC確認済み)
- AC1:
test_manifest_schema_has_secret_policy_propertyPASS(ローカル直接実行 + CI python-test pass、head SHA c8d3c04) - AC2:
producer_contractが test ファイル内に存在(line 149, 565, 620) - AC3:
boundary_enforced not in sp_propsregression guard が存在(line 571) - AC4:
docs/schemas/agent-session-manifest.schema.jsonにboundary_enforced不在(スキーマ変更なし)
- AC1:
- Allowed Paths: 遵守(
.claude/hooks/tests/test_secret_boundary_contract.pyのみ変更) - CI Verification: python-test pass(head SHA c8d3c04 / run 27063551913); e2e fail + actionlint fail は main でも pre-existing(run 27063368193 で同様に failure)
- Verification Commands: ローカル直接実行で全VC確認済み(42 passed in 0.82s)
Scope Delta 確認
test_sentinel_producer_injection_does_not_leakfixture:boundary_enforced: True削除、producer_contract+runtime_boundaryshape に更新済みtest_manifest_fixture_with_secret_policy_validates_sentinel_absencefixture: 同様に更新済み- deeper contract checks 追加:
requiredフィールドセット、additionalProperties: false、producer_contract型・required、runtime_boundary型・required・allOf確認(schema JSON と整合確認済み) - schema JSON (
docs/schemas/agent-session-manifest.schema.json) は変更なし(Issue #699 Out of Scope と一致)
Schema Change Applicability
schema_change_applicability: not_schema_change(変更はテストファイルのみ。schema JSON は変更なし)
Blockers
なし
Non-blockers
なし
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: c8d3c0462c24add9598b51d581ffa1efb7050590
merge_ready: true
mergeability:
mergeable: MERGEABLE
merge_state_status: UNSTABLE
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
概要
test_secret_boundary_contract.py::test_manifest_schema_has_secret_policy_propertyの期待値を #536/#537 後の正しい schema shape に更新する。value_exposed/boundary_enforced/modevalue_exposed/mode/producer_contract/runtime_boundaryassert "boundary_enforced" not in sp_propsdocs/schemas/agent-session-manifest.schema.jsonは変更しない(#536/#537 の廃止設計を維持)。関連 Issue: Closes #699
変更理由
boundary_enforcedは #536/#537(breaking change)で意図的に廃止されたフィールド。廃止理由はboundary_enforced: trueが runtime enforcement 済みと誤読される security semantics 問題。pre-existing failure の原因は schema 欠落ではなく、テストの期待値が #537 後の新 schema shape に追従できていないことだった。
品質ゲート
pnpm typecheckpnpm lintpnpm test(406 テスト)pnpm builduv run pytest test_manifest_schema_has_secret_policy_propertyuv run pytest test_model_routing.py(21 テスト)テスト計画
uv run pytest .claude/hooks/tests/test_secret_boundary_contract.py::test_manifest_schema_has_secret_policy_property -vが PASS することを確認boundary_enforcedがsecret_policy.propertiesに存在しない regression guard が機能することを確認docs/schemas/agent-session-manifest.schema.jsonが変更されていないことを確認Claude Code で生成 — https://claude.com/claude-code