Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#2192"
goal_ref: "agent_improvement_candidate/v1 に stable finding identity と versioned delta-evaluation representation contract を追加し、#2237 が delta evaluation を生成し #2238 が永続化できる schema boundary を確定する(publication handoff 自体は本 Issue の Out of Scope であり、#2237 -> human authorization -> #2238 の既存 ownership を変更しない)"
change_kind: codeParent Issue
Parent Goal Ref
- Goal: Claude-GPT 運用ログの継続的レトロスペクティブと改善提案を行う agent-retrospective Skill を確立する(導入: Claude-GPT運用ログの継続的レトロスペクティブと改善提案を行う agent-retrospective Skill を確立する #2192)。
- Desired Destination:
.claude/skills/agent-retrospective/配下に run identity・candidate lifecycle・publication handoff まで一貫した schema/Skill/SubAgent/永続化を備えた Skill を確立する。
Current Validated Scope
.claude/skills/agent-retrospective/schemas/agent_improvement_candidate_v1.schema.jsonを additive に拡張し、versionedfinding_contractenvelope(存在する場合のみ内部を all-or-none required とする)として stable finding identity・claim_class・public-safe evidence reference・baseline/expected/current signal・evaluation event history・5軸の delta representation(evaluation_status/presence_delta/signal_delta/delta_status/indeterminate_reason)を追加する。.claude/skills/agent-retrospective/scripts/validate_retrospective_schema.pyをcompute_finding_identity()/validate_finding_identity()(格納済み identity の再計算照合)・finding_contractenvelope の all-or-none 構造検証・delta 判定表の相互排他性検証に対応させる。.claude/skills/agent-retrospective/schemas/fixtures/配下に新規/更新 fixture を追加し、5-state summary(new/resolved/recurrent/regressed/unchanged)に加えてindeterminateとrecurrent + signal_delta regressedの同時表現を証明する。.claude/skills/agent-retrospective/scripts/tests/配下に新規テストを追加する(CI 収録済みディレクトリ、.github/ci/python-test-plan.jsonに既存登録)。- 既存 candidate データ(
finding_contractを持たない legacy record)は、finding_contractを追加しなくても schema validation に通り続ける(syntactic backward compatibility)ことを保証しつつ、そのような record はdelta_capability: legacy_unavailableとして明示的に識別可能にする(identity を自動生成・backfill しない)。
Remaining Parent Gaps
- 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237(Orchestrator Skill / retrospective-runtime-observer・retrospective-evaluator SubAgent 実装。delta 算出の producer)は本 Issue のスキーマ契約確定を prerequisite とする。本 Issue 完了後に着手する。
- publication handoff(
RETROSPECTIVE_PUBLISH_REQUEST_V1相当、#2237(prepare-only)→ Human 承認 →#2238(controlled publisher が Issue comment 投稿・readback・idempotency/optimistic concurrency を担う)という既存 ownership)の実装自体は本 Issue の Out of Scope。本 Issue はこの ownership を変更しない。 -
agent_retrospective_run/v1側に evidence metadata(fetch_started_at/fetch_completed_at/resource_updated_at_min/resource_updated_at_max)を追加する追随修正は ADR 0007 Remaining Parent Gaps 記載の既存 gap であり、本 Issue の Out of Scope。 - value-level safety(secret / PII / absolute path / private GitHub content / prompt injection の検出・redaction)は
#2239(agent-retrospective のセキュリティ境界・evaluation・live smoke)の責務であり、本 Issue の Out of Scope。本 Issue は typed public-safe evidence reference の schema 形状のみを定義する。
Outcome
.claude/skills/agent-retrospective/schemas/agent_improvement_candidate_v1.schema.json が、既存 legacy record を壊さないまま、finding_contract versioned envelope(存在時 all-or-none required)として stable finding identity(compute_finding_identity()/validate_finding_identity() による決定論的算出・再計算照合込み)・ADR 0007 準拠 9値 claim_class・typed public-safe evidence_ref・型付き signal(baseline/expected/current)・evaluation event history・相互排他的な delta 判定軸(evaluation_status/presence_delta/signal_delta/delta_status/indeterminate_reason)を machine-readable に表現できる状態になり、既存 fixture が新 schema でも valid のまま、かつ新規 fixture/pytest が「finding identity の決定論性・改ざん耐性」「5軸 delta 判定表の全パス(indeterminate と recurrent + regressed 同時表現を含む)」「candidate lifecycle 8状態と ALLOWED_TRANSITIONS の exact transition graph が不変であること」「legacy record が delta_capability: legacy_unavailable として識別されること」を証明して pytest が全件 PASS している状態。
Runtime Verification Applicability
- decision: not_applicable
- reason: 本 Issue は JSON Schema 定義・validator・fixture・pytest によるスキーマ構造検証が中心であり、
docs/dev/runtime-verification-policy.mdの適用判定スキーマ上、実行時挙動(runtime behavior)を伴う変更ではない。schema 拡張の意味的妥当性は静的検証(schema validation + fixture-based pytest)で完結する。判断が変わる場合は同 policy の判定スキーマに従い再評価する。
Background
- 本 Issue は Issue 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237(実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237)の OWNER review(実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237 (comment) , verdict:
REQUEST_CHANGES,recommended_disposition: reframe_in_place)の P0-3 指摘「delta evaluation・publication handoff の所有者不在」から分離された follow-up Issue である。 - Parent: 導入: Claude-GPT運用ログの継続的レトロスペクティブと改善提案を行う agent-retrospective Skill を確立する #2192
- 関連: 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237(本 Issue のスキーマ契約確定を prerequisite とする。delta 算出ロジックの producer)、実装: agent-retrospective の run 永続化と agent_retro_index/v1 統合を実装する #2238(永続化・event history の consumer)、検証: agent-retrospective のsecurity boundary・evaluation・dual-runtime smokeを統合検証する #2239(value-level safety の owner)、実装: agent-retrospective の agent_retrospective_run/v1・agent_improvement_candidate/v1 schema と validator を実装する #2235(
agent_improvement_candidate/v1の起源 schema Issue。既に CLOSED・PR merge済みであり、本文自体は historical contract のため不用意に書き換えず、本 Issue から参照するに留める)。 - ADR:
docs/adr/0007-agent-retrospective-boundaries.mdの Decision 7(agent_retro_index/v1は既存の derived index のままとし、run/candidate の一次記録という責務を持たせない)を維持すること。 - 本 Issue の直前 approve(body_sha256 f2a28825...、2026-08-21T15:23:36Z)は意味論的な契約レビューではなかった。 修正されたのは Verification Commands の allowlist 違反のみであり、契約自体(finding identity アルゴリズム、delta 状態モデル、migration 定義、public safety 境界、AC/VC の意味論的十分性)は未検証のままだった。OWNER が改めて anchor comment(実装: agent-retrospective candidate schema に stable finding identity と delta evaluation contract を追加する #2288 (comment) , 2026-08-22T00:01:23Z, verdict:
REQUEST_CHANGES,recommended_disposition: reframe_in_place)で 8 件の blocking findings を指摘し、本改訂はそれに対応する reframe である。
OWNER レビュー指摘(2026-08-22, blocking findings)と対応方針
- stable_finding_identity_contract_is_not_defined → 「採用する設計」節・In Scope に
finding_contract.identity(FINDING_IDENTITY_V1:algorithm: sha256-jcs-v1、typed key =repository_id/claim_class/subject_ref/rule_id、value: sha256:<64hex>)を明示し、candidate_id(既存 lifecycle record identity)とfinding_identity(cross-run semantic identity)の役割・cardinality を分離した。 - candidate_and_finding_cardinality_is_ambiguous →
candidate : finding = 1 : 1を MVP scope として明示的に固定した(複数 finding 集約は別設計として Stop Conditions に記載)。 - delta_five_state_model_is_not_mutually_exclusive →
evaluation_status(classified/indeterminate)・presence_delta(new/active/resolved/recurrent/still_absent)・signal_delta(improved/unchanged/regressed/unknown)を分離軸として追加し、delta_status(5値)は互換用 summary として残しつつ判定表と precedence を固定した。 - indeterminate_and_partial_evidence_handling_is_missing →
source_coverage(complete/partial/unavailable/blocked)とindeterminate_reasonを追加し、「source coverage が不完全な場合はresolvedと判定しない」ことを判定表に明記した。 - backward_compatibility_is_mislabeled_as_migration → migration policy を「legacy record はそのまま読み取るが delta 評価対象外(
delta_capability: legacy_unavailable)、identity の自動 backfill は禁止」に固定し、AC8 を syntactic backward compatibility ではなく legacy record の識別可能性の証明に置き換えた。 - public_safety_scope_conflicts_with_child_6 → value-level safety(secret/PII/absolute path/private content/prompt injection の検出・redaction)を
#2239の責務として明記し、本 Issue の scope を「evidence_refを typed object にする」「raw evidence field を schema に定義しない」「決定論的に拒否可能な値(field allowlist 違反等)のみ validator で拒否する」に限定した。 - machine_contract_claims_publication_handoff_outside_scope → Machine-Readable Contract の
goal_refから publication handoff 解消の過大主張を除去し、schema boundary 確定のみに縮小した。publication ownership(#2237prepare-only → human authorization →#2238controlled publisher)は本 Issue が変更しないことを明記した。 - verification_commands_do_not_prove_the_acceptance_criteria → grep ベース VC(
rg -c/rg -nの存在確認)をすべて廃止し、専用 pytest(negative test・判定表全パス・exact transition graph assertion 込み)に置換した。
採用する設計(OWNER decision、2026-08-22 改訂)
-
新しい第三の persistent finding schema や
agent_retro_index/v1を finding/delta state の正本にはしない。 -
既存の
agent_improvement_candidate/v1(.claude/skills/agent-retrospective/schemas/agent_improvement_candidate_v1.schema.jsonに実在、Child 2 成果物)を additive に拡張する。 -
既存 candidate との後方互換性は、個別フィールドをすべて optional にする方式ではなく、
finding_contractという versioned envelope 全体を optional にし、envelope が存在する場合は内部を all-or-none required にすることで実現する。finding_contract absent -> legacy lifecycle-only candidate -> delta_capability: legacy_unavailable -> delta 評価対象外(identity の自動生成・backfill を禁止) finding_contract present -> identity / claim_class / evaluations をすべて必須 -> 部分的 record は拒否 -
candidate_id(既存 lifecycle record の identity)とfinding_contract.identity(複数 run 間で同一 finding を照合する cross-run semantic identity)の役割を分離し、candidate : finding = 1 : 1 に固定する(1 candidate に複数 finding を集約する設計は別スコープとする)。 -
finding_contract.identityは次の typed key に限定する(自由記述の title/description、source_run_ref/base_sha/source_set_digest/timestamp/evidence fingerprint は identity 計算に含めない。これらは run/occurrence ごとに変化するため、含めると同一 finding が毎回別 ID になる)。FINDING_IDENTITY_V1: algorithm: sha256-jcs-v1 key: repository_id: "<stable repository identity>" claim_class: "<ADR 0007 の 9 値 enum>" subject_ref: kind: "repository_path | issue | pull_request | workflow | runtime | external_resource" value: "<normalized stable reference>" rule_id: "<controlled failure-mode identifier>" value: "sha256:<64hex>" # value = "sha256:" + SHA256(JCS(FINDING_IDENTITY_V1.key)) # hash preimage は `FINDING_IDENTITY_V1.key` のみであり、`algorithm` フィールドは preimage に含めない # (`algorithm` は envelope 側の namespace 識別子として別途 `finding_contract.identity.algorithm` に保持する)。 # JCS は RFC 8785 に厳密準拠する: object property は再帰的に sort するが、array element の順序は変更しない # (`key` には配列フィールドが存在しないため実質的に影響しないが、将来 array を追加する場合も set 扱いは禁止)。 # 非制御 Unicode はそのまま serialize し(`ensure_ascii=False` 相当)、NaN/Infinity は禁止する。
-
validator は
compute_finding_identity(identity_key) -> strとvalidate_finding_identity(candidate) -> Noneを実装し、格納済みfinding_contract.identity.valueを再計算値と照合して不一致(stale/copied/fabricated ID)を reject する。 -
delta 判定は 5 状態 summary(互換用)と、相互排他的な分離軸を併存させる。
evaluations: - evaluation_id: "sha256:..." evaluated_run_ref: base_sha: "<40hex>" source_set_digest: "<64hex>" previous_evaluation_ref: "sha256:... | null" observed: true | false source_coverage: complete | partial | unavailable | blocked evaluation_status: classified | indeterminate presence_delta: new | active | resolved | recurrent | still_absent signal_delta: improved | unchanged | regressed | unknown delta_status: new | resolved | recurrent | regressed | unchanged indeterminate_reason: source_partial | source_unavailable | source_blocked | baseline_missing | comparator_missing | null baseline_signal: {} current_signal: {} expected_signal: {} evidence_refs: [] classified_at: "<date-time>" classifier_version: "delta-evaluator/v1"
判定表(正規化):
prior なし + current observed -> presence_delta = new, delta_status = new prior active + current not observed + source_coverage = complete -> presence_delta = resolved, delta_status = resolved prior resolved + current observed -> presence_delta = recurrent, delta_status = recurrent -> signal_delta は improved/unchanged/regressed を別途保持(recurrent と regressed の同時表現を許容) prior active + current observed + signal_delta = regressed -> delta_status = regressed prior active + current observed + signal_delta = improved または unchanged -> delta_status = unchanged(summary) source_coverage が partial/unavailable/blocked -> evaluation_status = indeterminate -> delta_status を設定しない(indeterminate を resolved と判定してはいけない)recurrentとregressedが同時に成立する場合、delta_status(互換用 summary 単一 enum)はrecurrentを優先する precedence を固定し、詳細情報はsignal_delta側で保持する。 -
baseline_signal/current_signal/expected_signalは型なし object ではなく、typed union を用いる。signal: signal_type: boolean | integer | number | enum | digest value: <typed value> unit: "<optional controlled unit>" comparator: eq | ne | lt | lte | gt | gte | present | absent worse_direction: higher | lower | different | not_applicable tolerance: "<optional number>"
-
evidence_refは raw evidence を含まない typed object に限定する(value-level safety 検証は#2239の責務であり、本 Issue は field allowlist と決定論的に拒否可能な値のみを扱う)。evidence_ref: ref_type: public_github_resource | repository_blob | runtime_receipt | external_primary_source source_id: github | repository | runtime | web resource_identity: "<typed, normalized public-safe identifier>" projection_digest: "sha256:<64hex>"
projection_digestは raw secret/raw private content の hash ではなく、redaction 済み public-safe projection から算出する値として扱う(redaction 実装自体は#2239の責務)。evidence fingerprint は finding identity には含めない(「今回何を根拠に観測したか」と「何の問題か」を分離するため)。 -
delta_statusとcandidate_statusを混同しない。candidate_statusは既存 lifecycleproposed / accepted / implementation_issue_created / implemented / validating / validated / rejected / supersededのまま維持し、validate_transition()(validate_retrospective_schema.py)の状態遷移契約(ALLOWED_TRANSITIONSの exact mapping)を一切変更しない。delta_statusを含むfinding_contract.evaluations[]は retrospective run ごとに算出される観測結果であり、candidate_statusとは独立した別軸として扱う。
In Scope
agent_improvement_candidate_v1.schema.jsonへの additive フィールド拡張(新規 top-levelrequired昇格は行わず、既存必須 key セットを変更しない)finding_contract(versioned envelope。absent の場合は既存 legacy record として扱う。present の場合、内部のschema_version/identity/claim_class/evaluationsをdependentRequired/if-thenで all-or-none required にする)finding_contract.identity(FINDING_IDENTITY_V1形状。algorithm/key/valueを持つ)finding_contract.claim_class(ADR 0007 Decision 2 の 9 値 exact enum)finding_contract.evaluations[](evaluation event history。各要素はevaluation_id/evaluated_run_ref/previous_evaluation_ref/observed/source_coverage/evaluation_status/presence_delta/signal_delta/delta_status/indeterminate_reason/baseline_signal/current_signal/expected_signal/evidence_refs/classified_at/classifier_versionを持つ typed unionsignal・typedevidence_refを使用する)
validate_retrospective_schema.pyの validator 更新compute_finding_identity(identity_key) -> str/validate_finding_identity(candidate) -> None(格納済み identity の再計算照合。stale/copied/fabricated ID を reject)finding_contractenvelope の all-or-none 構造検証- 5軸 delta 判定表の相互排他性検証(
indeterminateはdelta_status未設定を強制、recurrent+regressed同時表現を許容しつつ summary precedence を検証) evidence_refの field allowlist 検証(additionalProperties: falseに加えて raw evidence field が存在しないことを明示確認)candidate_statusの既存ALLOWED_TRANSITIONS/validate_transition()の exact mapping が変更されていないことを assert する専用テストの追加
schemas/fixtures/配下の fixture 追加・更新- 既存
agent_improvement_candidate_v1.valid.json/.invalid.jsonの後方互換確認(legacy record がfinding_contractなしで valid のまま) finding_contractpresent の正常系 fixture(判定表の各分岐:new/resolved(source complete 前提)/recurrent+regressed同時/unchanged/indeterminate(partial source で resolved にならないケース含む))finding_contractの invalid fixture(partial envelope、malformed identity、copied/stale identity、invalid claim class、incomplete source coverage での resolved 判定、evidence/baseline なしでの classified、raw/free-text evidence、evaluation と history の不整合)
- 既存
scripts/tests/配下への新規 pytest 追加(下記 Acceptance Criteria / Verification Commands 参照)- 既存 candidate データの非破壊 migration path の明示(
finding_contractabsent の legacy record は schema validation を通り続けるがdelta_capability: legacy_unavailableとして識別可能にする。identity の自動 backfill は行わない)
Out of Scope
agent_retrospective_run/v1schema への evidence metadata 追加(ADR 0007 Remaining Parent Gaps の既存追随修正であり本 Issue の対象外)- publication handoff(
RETROSPECTIVE_PUBLISH_REQUEST_V1相当の型・controlled publisher 実装)自体。ownership は#2237(prepare-only)→ human authorization →#2238(controlled publisher)のまま変更しない。 - 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237 の Orchestrator Skill / SubAgent 実装そのもの(delta 算出ロジックの producer)
- 実装: agent-retrospective の run 永続化と agent_retro_index/v1 統合を実装する #2238 の永続化・optimistic concurrency 実装そのもの(evaluation event history の consumer)
- value-level safety(secret scanning、PII 判定、absolute path 検出、private GitHub content 判定、prompt injection 検出・redaction、malicious payload の end-to-end 隔離確認)は
#2239の責務であり本 Issue の対象外。本 Issue は typed public-safeevidence_refの schema 形状(field allowlist と決定論的に拒否可能な値の検証)のみを扱う。 agent_retro_index/v1(docs/dev/agent-retro-index.md)への責務追加(ADR 0007 Decision 7 により derived index の位置づけを維持する)- delta 算出ロジック(実際に前回 run と比較して
delta_status/presence_delta/signal_deltaを計算する実行可能コードの実装)。本 Issue は schema/validator/fixture レベルで判定表の意味を machine-readable に表現・検証できることを保証するに留まり、算出ロジックそのものは#2237以降の実装 Issue の責務とする。 - 1 candidate に複数 finding を集約する cardinality 設計(本 Issue は
candidate : finding = 1 : 1に固定する)
Acceptance Criteria
- AC1: schema が additive に拡張され backward compatible であること(既存 fixture
agent_improvement_candidate_v1.valid.jsonが新 schema でも valid のまま、かつfinding_contractを持たない legacy record として扱われる) - AC2:
compute_finding_identity()が deterministic であり、かつvalidate_finding_identity()が改ざん耐性を持つこと。FINDING_IDENTITY_V1.keyは配列フィールドを持たないため、配列順序の正規化・set 扱いは本 AC の対象外とする(sha256-jcs-v1は RFC 8785 JCS に厳密準拠し、object property のみ再帰的に sort し、array element 順序は変更しない)。少なくとも次の negative test を含む: (a) identity 入力を変えて古い ID をコピーした record を reject する、(b) object key 順の違いで同一 ID になる(RFC 8785 JCS 準拠の object property 再帰的 sort)、(c) 非 ASCII 文字を含む key 値でも RFC 8785 準拠の digest(ensure_ascii=False相当の UTF-8 serialize)になる、(d) algorithm version 違いで別 namespace になり、未対応 algorithm は helper 側で fail-closed に reject される、(e)source_run_ref/base_sha/source_set_digest/timestamp が変わっても同一 finding ID が維持される、(f)claim_class/subject_ref/rule_idが変われば別 ID になる - AC3: delta 判定表の全パスを fixture 化し pytest が検証すること。少なくとも
new/resolved(source coverage complete 前提)/recurrent(+signal_delta: regressedの同時表現)/unchanged(signal_deltaの値ごとに区別されたケースを含む)/indeterminate(partial source coverage でresolvedに確定しないケースを含む)を含む - AC4:
delta_statusを含むfinding_contractとcandidate_statusが独立フィールドとして共存し、candidate_statusの既存 8 状態 lifecycle とALLOWED_TRANSITIONSの exact transition graph(mapping 全体)が一切変更されていないことを専用テストが assert すること - AC5:
evidence_refが raw evidence(transcript 全文・secret・absolute local path 等)を含む property を一切持たない typed object であることを、schema のadditionalProperties: falseと専用 pytest の両方で検証すること - AC6:
finding_contract.claim_classが ADR 0007 Decision 2 の 9 値 exact enum(code_content/code_authorship_timing/internal_loop_review_verdict/github_native_review_state/review_comment/mergeability/issue_intent/external_fact/runtime_behavior)に制約されており、それ以外の値が reject されることを専用 pytest が検証すること - AC7: 既存 invalid fixture(
agent_improvement_candidate_v1.invalid.json)が引き続き schema validation に失敗すること(regression なし)に加え、finding_contractの不変条件違反を示す新規 invalid fixture(partial envelope、malformed identity、copied/stale identity、invalid claim class、incomplete source coverage での resolved 判定、evidence/baseline なしでの classified、raw/free-text evidence、evaluation と history の不整合)が全て validation に失敗すること - AC8: migration policy が「
finding_contractabsent の legacy record は schema validation を通るがdelta_capability: legacy_unavailableとして識別可能であり、identity が自動生成・backfill されないこと」を専用 pytest が証明すること
Verification Commands
# AC1
$ uv run pytest .claude/skills/agent-retrospective/scripts/tests/test_validate_retrospective_schema.py -k test_candidate_valid_fixture_passes_schema_validation -v
# AC2
$ uv run pytest .claude/skills/agent-retrospective/scripts/tests/test_finding_identity.py -v
# AC3
$ uv run pytest .claude/skills/agent-retrospective/scripts/tests/test_delta_evaluation_contract.py -v
# AC4
$ uv run pytest .claude/skills/agent-retrospective/scripts/tests/test_candidate_status_transitions.py::test_candidate_status_allowed_transitions_exact_mapping_unchanged -v
# AC5
$ uv run pytest .claude/skills/agent-retrospective/scripts/tests/test_public_safe_evidence_refs.py -v
# AC6
$ uv run pytest .claude/skills/agent-retrospective/scripts/tests/test_claim_class_enum_contract.py::test_claim_class_exact_enum_matches_adr_0007 -v
# AC7
$ uv run pytest .claude/skills/agent-retrospective/scripts/tests/test_validate_retrospective_schema.py -k "test_candidate_invalid_fixture_fails_schema_validation or test_finding_contract_invalid_fixtures_fail_schema_validation" -v
# AC8
$ uv run pytest .claude/skills/agent-retrospective/scripts/tests/test_candidate_migration.py -vAC1 は既存 valid fixture が拡張後 schema でも valid のままであり、finding_contract を持たない legacy record として扱われることを確認する(exit 0)。AC2 は compute_finding_identity()/validate_finding_identity() の決定論性と、6 種の negative test(stale ID コピー・key 順違い・配列順序違い・algorithm version 違い・run 参照変化への非依存・controlled subject/rule 変化での ID 変化)が全て PASS することを確認する。AC3 は判定表の全分岐(indeterminate、recurrent+regressed 同時表現、source coverage partial 時の resolved 非確定を含む)を証明する新規テストが PASS することを確認する。AC4 は candidate_status の ALLOWED_TRANSITIONS exact mapping を assert する専用テストが PASS することを確認する。AC5 は evidence_ref が raw evidence field を持たないことを schema 構造と専用 pytest の両方で確認する(exit 0)。AC6 は claim_class が ADR 0007 の 9 値 exact enum に制約され、それ以外の値が reject されることを確認する。AC7 は既存 invalid fixture と finding_contract 不変条件違反を示す新規 invalid fixture が全て validation に失敗する(exit 非0 相当を pytest 内で assert)ことを確認する。AC8 は legacy record の delta_capability: legacy_unavailable 識別と identity 自動生成禁止を証明する新規テストが PASS することを確認する。
Allowed Paths
.claude/skills/agent-retrospective/schemas/agent_improvement_candidate_v1.schema.json.claude/skills/agent-retrospective/schemas/fixtures/agent_improvement_candidate_v1.valid.json.claude/skills/agent-retrospective/schemas/fixtures/agent_improvement_candidate_v1.invalid.json.claude/skills/agent-retrospective/schemas/fixtures/(新規追加するfinding_contract/delta 判定表 fixture ファイル).claude/skills/agent-retrospective/scripts/validate_retrospective_schema.py.claude/skills/agent-retrospective/scripts/tests/test_validate_retrospective_schema.py.claude/skills/agent-retrospective/scripts/tests/test_finding_identity.py(新規).claude/skills/agent-retrospective/scripts/tests/test_delta_evaluation_contract.py(新規).claude/skills/agent-retrospective/scripts/tests/test_candidate_migration.py(新規).claude/skills/agent-retrospective/scripts/tests/test_public_safe_evidence_refs.py(新規).claude/skills/agent-retrospective/scripts/tests/test_candidate_status_transitions.py(新規).claude/skills/agent-retrospective/scripts/tests/test_claim_class_enum_contract.py(新規)docs/adr/0007-agent-retrospective-boundaries.md(本 Issue の実装内容が ADR の Remaining Parent Gaps や既存記述と矛盾する場合の追記のみ。既存 Decision 本文の意味変更は行わない)
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- 補足(Allowed Paths 外の変更の具体例):
.claude/skills/agent-retrospective/scripts/collect_snapshot.py等の既存 producer コードの出力形式が新 required フィールドと非互換になり修正が必要になった場合 - 補足(In Scope 固定契約変更の具体例):
candidate_statusの既存ALLOWED_TRANSITIONS/validate_transition()契約自体を変更しないと AC4 を満たせないことが判明した場合 - 補足(新規 Issue 起票の具体例):
evidence_refの value-level safety 検証(secret/PII/absolute path/private content/prompt injection)が本 Issue の Allowed Paths や#2239の既存責務範囲を超える共通 validator の新設を要すると判明した場合 - 補足(後続 Phase 波及の具体例): 新しい第三の永続 finding schema や
agent_retro_index/v1への state 追加が必要になり ADR 0007 Decision 7 との整合を要する場合、またはcandidate : finding = 1 : 1の cardinality 前提を崩し複数 finding 集約が必要になる場合 finding_contract.identityの typed key(repository_id/claim_class/subject_ref/rule_id)だけでは cross-run で finding を一意に同定できないことが判明した場合は、追加の identity 入力の要否を人間に確認する- 既存 candidate データの migration が非破壊で行えないことが判明した場合、または
delta_capability: legacy_unavailableの識別だけでは 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237/実装: agent-retrospective の run 永続化と agent_retro_index/v1 統合を実装する #2238 の consumer 要件を満たせないことが判明した場合は、破壊的変更や追加設計の許容可否を人間に確認する
Dependencies / Related Issues
- Parent: 導入: Claude-GPT運用ログの継続的レトロスペクティブと改善提案を行う agent-retrospective Skill を確立する #2192
- 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237 は本 Issue のスキーマ契約確定を prerequisite とする(delta 算出ロジックの producer。実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237 は本 Issue マージ後に再着手する)
- 実装: agent-retrospective の run 永続化と agent_retro_index/v1 統合を実装する #2238 は evaluation event history の永続化・optimistic concurrency の consumer
- 検証: agent-retrospective のsecurity boundary・evaluation・dual-runtime smokeを統合検証する #2239 は value-level safety(secret/PII/absolute path/private content/prompt injection)の owner
- 実装: agent-retrospective の agent_retrospective_run/v1・agent_improvement_candidate/v1 schema と validator を実装する #2235(
agent_improvement_candidate/v1の起源 schema Issue、CLOSED・PR merge済み。本文は historical contract のため書き換えず参照のみ) - ADR:
docs/adr/0007-agent-retrospective-boundaries.md
Required Skills
なし
Required Design References
- docs/adr/0007-agent-retrospective-boundaries.md
- .claude/skills/agent-retrospective/schemas/agent_improvement_candidate_v1.schema.json
- .claude/skills/agent-retrospective/scripts/validate_retrospective_schema.py
Delivery Rule
1 Issue = 1 PR。worktree で作業し、Draft PR を既定とする。
Activity
squne121 commentedon Aug 21, 2026
Scope Overlap Preflight(
issue_overlap_preflight/v1){ "schema_version": "issue_overlap_preflight/v1", "decision": "overlap_requires_comment", "reason_code": "allowed_paths_overlap", "policy_class": "C1", "matched_issues": [2101, 435], "overlapping_paths": ["docs/adr/0007-agent-retrospective-boundaries.md"] }docs/adrを broad に Allowed Paths 宣言)、research: scope_cvs_in_scope_mismatch の Unicode/日本語 tokenization 設計判断 #435(同じくdocs/adrを broad 宣言)とのdocs/adr/0007-agent-retrospective-boundaries.mdのディレクトリ単位の広域重複。docs/adr配下の broad path 宣言であり、調査: visual-impact-policy の same-run producer authenticity 保証(固定 producer / full-SHA pinned reusable workflow / artifact attestation)採用可否を決定する #2101 は visual-impact-policy workflow の full-SHA pinning、research: scope_cvs_in_scope_mismatch の Unicode/日本語 tokenization 設計判断 #435 は Unicode/日本語 tokenization 設計判断が主題で、いずれも0007-agent-retrospective-boundaries.mdを対象にした具体的な編集意図を持たない。本 Issue(実装: agent-retrospective candidate schema に stable finding identity と delta evaluation contract を追加する #2288)が実際に触れるのは0007-agent-retrospective-boundaries.mdの Remaining Parent Gaps 追記のみであり、file-level の実 conflict は想定されない(導入: AIエージェント運用をminimal harnessへ縮退し、過剰なcontrol-planeを廃止する #1860 Owner Decision: declared Allowed Paths の文字列重複は起票停止理由にしない)。squne121 commentedon Aug 21, 2026
issue-refinement-loop 終了報告
approvedapprove(BLOCKERS: 0)sha256:f2a28825354d98184b6c6d99e680d969e320280b2efeadcf1891cc910949c6d3実施内容
run_refinement_preflight.py):STATUS: pass/NEXT_ACTION: proceed(structural repair 不要、disposition_summary: no_missing_fields_detected)。run_root_review_pipeline.py produce、review 1回目):VERDICT: needs-fix、blocker 6件。すべて## Verification Commandsの VC preflight allowlist 違反(baseline_vc_preflight.pyの allowlist はuv run pytest/uv run python3 -m pytestの bare form のみ許可し、--lockedフラグ併用の-m pytest形式、および pytest 以外の直接スクリプト呼び出しはcommand_not_allowed)。issue-editorへ委譲、rewrite): AC1/AC2/AC3/AC4/AC7/AC8 の VC コマンド 6行を以下のように修正。uv run --locked python3 validate_retrospective_schema.py ...)を、既存テストtest_validate_retrospective_schema.py内の該当 pytest(test_candidate_valid_fixture_passes_schema_validation/test_candidate_invalid_fixture_fails_schema_validation)を-k指定する bareuv run pytest形式に置換。uv run --locked python3 -m pytest ...を bareuv run pytest ...形式に置換(--lockedを除去)。rgコマンド)は allowlist 違反なしのため変更なし。sha256:f2a28825...):VERDICT: approve、BLOCKERS: 0、STATUS: contract ready。gate-final-review:final_review_allowed: true(reason なし)。Step 4.5 Follow-up Materialization
新規 follow-up Issue の起票候補は検出されなかった(Out of Scope 項目は既に #2237 / ADR 0007 Remaining Parent Gaps で追跡済み)。
Final Gate
issue-contract-review(実装着手直前の preflight)は本ループのスコープ外であり未実行のため、LOOP_HANDOFF_RESULT_V1.contract_review.gate_resultはmissing_goとして報告する。実装着手前にissue-contract-reviewの実行が必要。残課題
issue-contract-reviewを実行しstatus: goを得た上でimpl-review-loop(またはimplement-issue)へ handoff すること。squne121 commentedon Aug 22, 2026
結論
「第3の finding schema や derived index を新設せず、既存
agent_improvement_candidate/v1を additive に拡張する」という大方針は妥当です。ADR 0007 は run/candidate の一次状態を2 schemaに限定しており、OWNER判断でも candidate schema 拡張案が選ばれています。ただし、現在の #2288 は「フィールドを追加できること」と「複数run間で同一findingを安定して照合し、5状態を正しく判定できること」を混同しています。現状のまま実装すると、JSON Schemaとpytestは通るものの、#2237のevaluatorと#2238の永続化層が相互運用できない可能性が高いです。
また、直前の
issue-refinement-loopのapproveは意味論的レビューではありません。報告上、修正されたのはVerification Commandsのallowlist違反6件だけで、それ以外の契約は変更されていません。さらに最終 handoff はissue-contract-review未実行のためmissing_go/blockedのままです。P0-1 — stable finding identity のアルゴリズムが定義されていない
現行 schema には、すでに
candidate_idが「Stable identifier for this improvement candidate」として存在します。#2288 はさらにfinding_identityを追加しますが、両者の関係が定義されていません。少なくとも次が未確定です。
candidate_idとfinding_identityは同値なのか、別のidentity domainなのか特に
source_run_ref、base_sha、source_set_digest、timestamp、evidence fingerprintをfinding identityに含めてはいけません。これらはrunやoccurrenceごとに変化するため、同一findingが毎回別IDになります。現行validator自身もsource_set_digestをsemantic finding identityではなく、runのidempotency用途に限定しています。Schemaの
descriptionに「決定論的」と書くだけでは強制になりません。JSON Schemaのdescriptionやdefaultはannotationであり、validation時に値を計算・補完しません。(JSON Schema)必要な修正
MVPでは、次のようにidentity入力を明示的なtyped keyへ限定するのが安全です。
計算規約は次のとおりに固定します。
JCSはhash用の不変JSON表現を提供しますが、配列順序は変更せず、Unicode normalizationも行いません。そのためidentity keyには自由記述のtitle・descriptionを使わず、controlled tokenとtyped referenceだけを使うべきです。どうしても自然言語を含める場合は、JCSの前段でNFC・case・空白などの正規化規則を別途固定する必要があります。([RFCエディタ]2)
validatorには以下が必要です。
格納済みIDと再計算値が異なる場合はrejectしなければなりません。「同じ入力を2回計算して同じIDになる」だけでは、改ざん済みIDや誤った入力集合を検出できません。
P0-2 — additive optional fields ではdelta contractが成立しない
#2288 は後方互換性のため、新フィールドをすべてoptionalまたはdefault-fill可能にする方針です。
この設計では、次のような不完全なrecordがすべてvalidになり得ます。
{"delta_status": "resolved"}{"finding_identity": "abc"}{"evidence_refs": [], "occurrence_history": []}つまり、個別フィールドのenumや型は検査できても、「finding identity・claim class・evaluation run・evidence・delta resultが一つの整合した評価単位を構成する」という不変条件がありません。
必要な修正
既存recordとの互換性は、全フィールドを個別optionalにするのではなく、versioned envelope全体をoptionalにし、envelopeが存在する場合は内部をrequiredにすることで実現すべきです。
{ "candidate_id": "cand-0001", "candidate_status": "proposed", "...existing fields...": "...", "finding_contract": { "schema_version": "finding-delta/v1", "identity": { "algorithm": "sha256-jcs-v1", "key": {}, "value": "sha256:..." }, "claim_class": "code_content", "evaluations": [] } }規則は次の二択にします。
JSON Schema 2020-12では、あるpropertyが存在するとき他のpropertyを要求する
dependentRequiredや、if/thenでこのall-or-none制約を表現できます。(JSON Schema)MVPでは
candidate_idを既存lifecycle recordのidentity、finding_contract.identityを複数run間で照合するsemantic finding identityとし、candidate : finding = 1 : 1 に固定するのが最小です。1 candidateに複数findingを集約する設計は、candidate lifecycleの意味まで変えるため別設計になります。P0-3 — 5状態が相互排他的ではない
new / resolved / recurrent / regressed / unchangedは同じ軸の状態ではありません。new / resolved / recurrentはpresenceと履歴の状態regressedはseverityやsignalの比較結果unchangedはpresenceまたはsignalのいずれを指すのか不明例えば、解消後に再発し、以前より悪化したfindingは同時に
recurrentかつregressedです。単一enumではどちらかの情報を捨てる必要があります。さらに、GitHub/Web/runtime sourceが
partial、unavailable、blockedの場合、「見つからなかった」ことをresolvedと判断してはいけません。ADR 0007はsourceごとの観測範囲とcomplete/partial等の区別を要求していますが、#2288のdelta enumにはindeterminateがありません。必要な修正
5状態を親契約との互換用summaryとして残しつつ、内部では軸を分離します。
最低限の判定表は明文化が必要です。
単一enumを維持する場合でも、少なくとも
recurrentとregressedが競合した場合のprecedenceを固定しなければ、Claude Code側とClaude-GPT側で異なる分類になり得ます。P0-4 —
occurrence_historyではなく evaluation event history が必要occurrence_historyを「run referenceとobserved timestampの配列」とするだけでは、以下を再現できません。また現行の
source_run_refは「このcandidateを生成したrun」への参照です。継続的に同じcandidateを評価する場合、origin runとcurrent evaluation runを同じfieldで表せません。必要な修正
source_run_refはoriginとしてimmutableに保ち、各評価eventに別のrun referenceを持たせます。#2238のoptimistic concurrencyとround-trip persistenceは、このevent historyを正本として扱う必要があります。#2238はすでにcandidate state永続化を責務に含め、#2288をprerequisiteとしています。
P0-5 — 後方互換性をmigrationと呼んでいる
現行valid fixtureは、任意文字列の
candidate_id、proseのtitle/description、source_run_refなどしか持っていません。claim class、affected subject、failure mode、signal、evidence fingerprintがないため、stable finding identityを事後的に正しく算出する材料がありません。既存fixtureが引き続きschema validationを通ることは、syntactic backward compatibilityです。delta-enabled recordへのmigrationではありません。
さらにJSON Schemaの
defaultは欠落値を埋めません。(JSON Schema)必要な修正
migration policyは次のいずれかに固定する必要があります。
推奨: legacy recordはそのまま読み取るがdelta評価対象外
finding_contractabsentdelta_capability: legacy_unavailable相当人間レビュー付き一回限りbackfill
heuristic migration
AC8は「既存fixtureが通る」ではなく、次を検証すべきです。
P0-6 — public safety の責務が #2239 と衝突している
現行candidate schemaは明確に、schemaが強制するのはfield allowlistまでで、secret、PII、absolute path等のvalue-level safetyはChild 6の責務だと記載しています。ADR 0007も、field allowlistとvalue-level validator/redactionを二層に分けています。
一方、#2288は
validate_retrospective_schema.pyに以下の検出を追加しようとしています。しかし、#2239はまさにinjection resistance、redaction、negative matrixを所有し、schema/Skill/永続化実装の変更をOut of Scopeにしています。
さらに、任意のfree-textからprompt injectionを完全検出することはできません。OWASPもfree-text内の注入命令の完全検出は未解決であり、fixed schemaは明白なケースを捕捉する防御層にすぎないとしています。推奨される本質的な対策は、structured output、隔離、least privilege、backend enforcement、人間承認です。([OWASP Foundation]4)
必要な修正
#2288の責務は次までに限定すべきです。
evidence_refsをfree-textではなくtyped objectにする次は#2239に残します。
projection_digestはraw secretやraw private contentのhashではなく、redaction済みpublic-safe projectionから算出すべきです。P0-7 — Machine-Readable Contract がpublication handoffを過大主張している
#2288の
goal_refは「delta evaluation・publication handoffの所有者不在を解消する」としていますが、本文ではpublication handoffをOut of Scopeにしています。publicationの実際の責務分離はすでに次の形です。
この分離は#2237のOWNERレビューでも提示されています。
したがって#2288のgoalは次へ縮小すべきです。
publication handoffについては「本Issueが解消する」のではなく、
#2237 -> human authorization -> #2238の既存ownershipを変更しない、と明記します。P1 —
baseline_signal/expected_signalが型なしではregressedを判定できない単なるstringや任意objectでは、次を決定できません。
最低限、次のtyped unionが必要です。
qualitative findingでは
severity: info | low | medium | high | criticalのようなclosed enumを使い、順位規則を固定する方が安全です。P1 — evidence fingerprint の対象が未定義
evidence fingerprintについて、次が定義されていません。JCSはobject propertyをsortしますが、array element orderは維持します。複数evidenceをsetとして扱うなら、JCSの前にstable keyでsortする規約が必要です。([RFCエディタ]2)
また、evidence fingerprintはfinding identityに含めない方がよいです。新しい証跡が追加されただけで別findingになってしまうためです。identityは「何の問題か」、evidence fingerprintは「今回何を根拠に観測したか」と分離します。
P1 — 現在のAC/VCは新契約を証明しない
AC2
「同一入力から同一IDになる」だけでは不十分です。
必要なnegative test:
AC3
5つのfixtureがschemaを通ることは「enumの5値を表現できる」証明であり、分類の正しさを証明しません。
最低でも前述の判定表をfixture化し、
indeterminate、recurrent + signal regressed、partial sourceでresolved拒否を含める必要があります。AC4
既存テストファイル全体のPASSだけでは、candidate lifecycle graphが完全に不変とは限りません。
ALLOWED_TRANSITIONSのexact mappingをassertする専用テストが必要です。AC5
現在のVC:
は不適切です。
raw_transcriptという1語だけのblacklistであり、ADR 0007のallowlistモデルを証明しません専用pytestへ置換すべきです。
AC6
ではproperty名の存在しか確認できません。ADR 0007の9値exact enumをassertする必要があります。ADRが定義するclaim class表には、code content、GitHub review系、issue intent、external fact、runtime behavior等の明示的なauthority modelがあります。
AC7
現行invalid fixtureは
candidate_status: in_reviewがenum外だから失敗するだけです。新しいfinding contractの不変条件が壊れていても、このfixtureは失敗し続けます。新規invalid fixtureとして少なくとも以下が必要です。
AC8
「旧fixtureがvalid」はmigrationではなくbackward compatibilityです。legacy recordをdelta evaluatorがどう扱うかまで検証してください。
なお、既存refinementで許可されたbare command形式を維持し、grepではなく次のようなpytestへ集約するのが妥当です。
推奨する修正後契約
修正後に最低限必要なAcceptance Criteria
既存candidate fixtureはvalidのままだが、
finding_contractなしのrecordはdelta評価不可として識別される。finding_contractが存在する場合、identity、claim class、evaluation historyがall-or-noneで必須になる。finding identityの入力集合、canonicalization、algorithm、namespace/versionがnormativeに固定される。
validatorがfinding identityを再計算し、stale・copied・fabricated IDを拒否する。
candidate_idとfinding_identityの役割、1:1 cardinality、origin/current run referenceの区別が固定される。claim class enumがADR 0007のexact 9値と一致する。
5状態の判定表、状態のprecedence、partial/unavailable時の
indeterminate処理が固定される。recurrentとregressedを同時に表現できるよう、presenceとsignalの軸が分離される。evidence referenceはtyped public-safe projectionに限定され、raw textやraw transcriptを受け付けない。
candidate lifecycleの既存8状態とexact transition graphが一切変更されていないことを専用テストで証明する。
legacy recordにidentityを自動生成しないmigration policyがテストされる。
実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237、実装: agent-retrospective の run 永続化と agent_retro_index/v1 統合を実装する #2238、#2239のconsumer contractと責務が同期される。
推奨アクション
#2288は実装へ進めず、まず本文を
reframe_in_placeしてください。修正順序は次です。finding_contractversioned envelope、identity algorithm、1:1 cardinality、legacy modeを固定する。indeterminate、presence/signal分離、event historyを固定する。issue-contract-reviewを実行し、現在のmissing_goを解消する。現在の契約は「schema field追加Issue」としては実装可能に見えますが、親ゴールである継続的delta evaluationの正本としては不十分です。
REQUEST_CHANGES / blocked / reframe_in_placeが妥当です。squne121 commentedon Aug 22, 2026
issue-refinement-loop 終了報告
termination_reason: approvedOWNER anchor comment(issuecomment-5376621173、REQUEST_CHANGES、
recommended_disposition: reframe_in_place)で指摘された8件の blocking findings を反映して Issue 本文を全面 reframe し、issue-refinement-loopの Step 2 review(root_review_pipeline)でVERDICT: approve(BLOCKERS: 0)を取得した。Iteration 経緯
codebase-investigatorにより anchor comment の技術的主張(finding_identity未定義、source_set_digestの idempotency 限定用途、ADR 0007、直前 approve が VC 修正のみだった点、issue-contract-review未実行、VC が意味論を証明していない点、child 実装: agent-retrospective の Orchestrator Skill と retrospective-runtime-observer・retrospective-evaluator SubAgent を実装する #2237/実装: agent-retrospective の run 永続化と agent_retro_index/v1 統合を実装する #2238 の前提関係)を fact-check し、7件 SUPPORTED / 1件 INCONCLUSIVE と判定。issue-editorが本文を全面 reframe(FINDING_IDENTITY_V1typed key契約、candidate:finding=1:1 cardinality、5軸 delta 判定表、indeterminate扱い、legacy migration方針、public safety scope 切り分け、publication handoff scope 縮小、VCのpytest全面置換)。→ review:needs-fix(3 blockers: 主観表現\bimproved?\b、pytest exit5×2)。-kフィルタから::node-id 形式に修正。→ review:needs-fix(2 blockers:VCP_EXISTING_FILE_MISSIN— 既存ファイルへの新規テスト関数参照が非正規形状)。test_candidate_status_transitions.py::...、test_claim_class_enum_contract.py::...、対応する Allowed Paths 追加)。→ review:approve(BLOCKERS: 0)。Final Gate
## Verification Commandsセクションを実際に検証しstatus: goを得た通常経路(Final Gate 成功)。REVIEWED_BODY_SHA256:sha256:cadf58b82adaf61ae4be1c35615fa4c752347fb1ae330fabda1fee1688960ae8deterministic_checks: C1–C13 すべてpassまたはn/aNon-blocking Improvement(未反映・情報提供のみ)
scope_cvs_in_scope_mismatch(jaccard 0.292 < 0.3、severity: warning)— Current Validated Scope と## In Scopeのトークン一致率が低い。non-blocking のため本 loop では未反映。必要であれば別途## Background/ Scope Delta への追記を検討。squne121 commentedon Aug 22, 2026
implement-issue: 実装完了 (2026-08-22)
.claude/worktrees/issue-2288-agent-retrospective-candidate-schema-staworktree-issue-2288-agent-retrospective-candidate-schema-staceff842337018856df540936e0b64f15026d9bdaVerification Commands 結果(Issue 本文記載どおり実行、全 PASS)
追加検証
agent_improvement_candidate_v1.valid.json)はfinding_contractなしで引き続き valid(AC1)agent_improvement_candidate_v1.invalid.json)は引き続き invalid(AC7 回帰なし)candidate_statusのALLOWED_TRANSITIONSexact mapping は変更なし(AC4)Runtime Verification Applicability
decision: not_applicable(Issue 本文記載どおり)。schema/validator/fixture/pytest によるスキーマ構造検証のみで完結しており、runtime AC/VC/証跡は対象外です。後続
fix: finding identity/delta contract を人間レビュー指摘(P0-1〜P1-1)に合わせて修正する (#…
実装: agent_improvement_candidate/v1 に finding_contract versioned envel…