Skip to content

fix(refinement): 全終端理由で follow-up materialization 結果を出力 (#1321) - #1832

Closed
squne121 wants to merge 2 commits into
mainfrom
worktree-issue-1321-follow-up-materialization-all-reasons
Closed

squne121 wants to merge 2 commits into
mainfrom
worktree-issue-1321-follow-up-materialization-all-reasons

Conversation

@squne121

@squne121 squne121 commented Jul 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • 全 termination reason の終了コメントに、候補なしを明示する canonical な FOLLOW_UP_MATERIALIZATION_RESULT_V1 を追加しました。
  • approved、human_escalation、superseded_by_decision と publisher 転送を pytest で検証しました。

Checks

実行済みの検証結果です。

  • uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_follow_up_materialization_all_reasons.py を PASS と確認しました。
  • uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_render_termination_report.py .claude/skills/issue-refinement-loop/tests/test_publish_termination_report.py を PASS と確認しました。

Schema Change Applicability

  • decision: schema_change
  • reason: 終端コメントの machine-readable output に FOLLOW_UP_MATERIALIZATION_RESULT_V1 を追加する additive 変更です。

Schema Consumer Inventory

既存 consumer と更新要否を確認した一覧です。

変更対象 schema: FOLLOW_UP_MATERIALIZATION_RESULT_V1

before/after 差分:

# before
# termination report の出力には follow-up materialization result が存在しない。

# after
FOLLOW_UP_MATERIALIZATION_RESULT_V1:
  schema_version: 1
  materialized_by: issue-refinement-loop
  follow_up_issues: []
  note_only_observations: []

Consumer 列挙(実行結果):

$ rg -l "FOLLOW_UP_MATERIALIZATION_RESULT_V1" .claude/skills/issue-refinement-loop
.claude/skills/issue-refinement-loop/tests/test_follow_up_materialization_all_reasons.py
.claude/skills/issue-refinement-loop/tests/test_publish_termination_report.py
.claude/skills/issue-refinement-loop/references/termination-policy.md
.claude/skills/issue-refinement-loop/references/follow-up-materialization.md
.claude/skills/issue-refinement-loop/scripts/render_termination_report.py

Consumer 更新状況:

Consumer ファイル 更新有無 備考
scripts/render_termination_report.py 更新済み 全 terminal route で canonical empty result を安全な YAML block として出力する。
tests/test_follow_up_materialization_all_reasons.py 更新済み 3 reason、空配列、publisher 転送を検証する。
tests/test_publish_termination_report.py 不要 renderer body をそのまま controlled issue-comment publisher へ転送する既存責務であり、回帰テストが PASS。
references/termination-policy.md 不要 全 reason と空配列必須の既存 SSOT は変更不要。
references/follow-up-materialization.md 不要 materialization 結果の既存定義を変更しない。

Compatibility Decision(互換性判断)

  • change_type: additive
  • compatibility: backward_compatible
  • migration_required: no
  • migration_or_followup: N/A
  • reason: 既存の終端本文へ必須 marker と空配列を追加するだけで、既存 publisher の転送経路を変更しません。

Safety Claim Matrix

Claim Implemented? Not controlled Evidence Follow-up
終端 renderer は全 reason で canonical empty result を 1 回だけ出力する。 yes - #1321 の AC1–AC4 pytest PASS -
publisher は renderer が返した本文を controlled issue-comment lane に転送する。 yes - test_follow_up_materialization_all_reasons.py の publisher 転送テスト PASS -

実装到達根拠

  • 対象 HEAD: 31ac20913386ef2b0a91057fbf1de491a9286af2。
  • AC1(approved): uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_follow_up_materialization_all_reasons.py -k approved_includes_follow_up_materialization_result を実行し、1 passed。
  • AC2(human_escalation): uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_follow_up_materialization_all_reasons.py -k human_escalation_includes_follow_up_materialization_result を実行し、1 passed。
  • AC3(superseded_by_decision): uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_follow_up_materialization_all_reasons.py -k superseded_includes_follow_up_materialization_result を実行し、1 passed。
  • AC4(空配列と publisher 転送): uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_follow_up_materialization_all_reasons.py -k empty_arrays_are_not_omitted_or_publisher_transfers_it を実行し、1 passed。
  • AC5(既存回帰): uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_render_termination_report.py .claude/skills/issue-refinement-loop/tests/test_publish_termination_report.py を実行し、162 passed。
  • Allowed Paths 判定: 変更は scripts/render_termination_report.py と tests/test_follow_up_materialization_all_reasons.py のみで、いずれも 実装: termination report に全 termination reason で FOLLOW_UP_MATERIALIZATION_RESULT_V1 を出力する #1321 の Allowed Paths 内です。Ruff 修復の # noqa: E402 は後者の既存 import に限定し、producer receipt・publisher 実体・materialization semantics は変更していません。

Notes

@github-actions

Copy link
Copy Markdown
Contributor

Preview URL

✅ verified live assets: https://squne121.github.io/loop-protocol/pr-1832/

The preview will be removed when this PR is closed.

@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, merge_state_status=CLEAN

Evidence Check

  • #1321 の contract snapshot、AC1–AC5、Verification Commands、Allowed Paths は current head 31ac20913386ef2b0a91057fbf1de491a9286af2 と照合済みです。
  • Allowed Paths gate は ok、CI run 30403805886 は成功です。
  • ただし最上位証跡 TEST_VERDICT_MACHINE/v2 は未成立です。protected producer run 30404405491 は producer receipt の schema-required command_manifest_sha256 欠落で fail-closed し、trusted verdict を公開できていません。

Blockers

  • protected producer を修復し、current head および PR body SHA sha256:9bcc1f23640e4a2c8a9721923f1a6ac56d9b7bdb8a6253f2f5ac70b50afe53cc に再束縛された成功済み TEST_VERDICT_MACHINE/v2 を提示してください。

LOOP_VERDICT_V2

LOOP_VERDICT_V2:
  verdict: REQUEST_CHANGES
  reviewed_head_sha: "31ac20913386ef2b0a91057fbf1de491a9286af2"
  merge_ready: false
  mergeability:
    mergeable: "MERGEABLE"
    merge_state_status: "CLEAN"
  blockers:
    - "TEST_VERDICT_MACHINE/v2 が producer receipt の command_manifest_sha256 欠落で fail-closed し、current-head trusted verification が未成立。"
  required_auto_actions: []
  auto_fix_applied: []
  follow_up_issue_requests: []
  allowed_paths_gate:
    status: "ok"
  allowed_paths_gate_source: "review_subagent"

@squne121

Copy link
Copy Markdown
Owner Author

#1860 Owner Decision(2026-07-30)に基づき、PR #1875(Issue #1873実装)が本PRとsupersede関係にある旨を記録する。

PR #1875は render_termination_report.py(本PRが拡張対象としていたrenderer)と publish_termination_report.py のtermination publisher部分を撤去し、専用termination publisher経路そのものを廃止した。本PRの目標(FOLLOW_UP_MATERIALIZATION_RESULT_V1をrendererへ配線する拡張)は、対象renderer自体が存在しなくなるため成立しない。

独立した残存scope(materialization result自体を伝える別経路の必要性)が見つからなかったため、本PRをmergeせずcloseする。

@squne121 squne121 closed this Jul 31, 2026
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.

実装: termination report に全 termination reason で FOLLOW_UP_MATERIALIZATION_RESULT_V1 を出力する

1 participant