Repository navigation
fix: preserve loadable snapshot on save failure (#857) - #862
Conversation
Keep hasLoadableSnapshot unchanged when reward-claim or quick-save persistence fails, separate HUD feedback by failure source, and cover the failure path without a save readback.
Preview URLPreview removed (PR #862 closed). |
TEST_VERDICT:
result: PASS
head_sha: "414ae7df3fc6f29a6bbfe48203cd22d60c4a89d4"
linked_issue: 857
contract_snapshot_url: "https://github.com/squne121/loop-protocol/issues/857#issuecomment-4697604522"
runtime_verification_applicability: not_applicable
mergeable: MERGEABLE
merge_state_status: UNSTABLE
branch_behind_main: false
baseline_only: false
verification_commands_pass: 6
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []
verification_commands:
- "rtk pnpm typecheck"
- "rtk pnpm lint"
- "rtk pnpm test"
- "rtk pnpm build"
- "rtk pnpm test -- tests/storage.test.ts"
- "rtk pnpm lint" |
squne121
left a comment
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES
Mergeability
- mergeable=MERGEABLE, merge_state_status=UNSTABLE
Evidence Check
- AC coverage: ○ issue #857 の AC1-AC6 は PR 本文と差分 (
src/main.ts,tests/storage.test.ts) で対応を確認 - Allowed Paths: ○ 変更ファイルは
src/main.tsとtests/storage.test.tsのみで、issue #857 の Allowed Paths 内 - CI Verification: × reviewed head SHA
414ae7df3fc6f29a6bbfe48203cd22d60c4a89d4でPR Body Japanese Checkが failure - 検証コマンド結果: ○
TEST_VERDICT_MACHINEは PASS、verification_skipped_count: 0
Blockers
PR Body Japanese Checkが failure のため、CI fail-closed で承認できません。英語のみの prose block が複数残っており、日本語比率チェックを満たしていません。
Non-blockers
- なし
LOOP_VERDICT_V2
verdict: REQUEST_CHANGES
reviewed_head_sha: 414ae7df3fc6f29a6bbfe48203cd22d60c4a89d4
merge_ready: false
mergeability:
mergeable: MERGEABLE
merge_state_status: UNSTABLE
blockers:
- severity: high
summary: reviewed head SHA で required CI の `PR Body Japanese Check` が failure のまま
evidence_refs:
- https://github.com/squne121/loop-protocol/actions/runs/27457936351/job/81165854344
- https://github.com/squne121/loop-protocol/pull/862
- https://github.com/squne121/loop-protocol/pull/862#issuecomment-4697640142
next_action: PR 本文の英語 prose block を日本語中心の記述へ直し、同じ head SHA で check を再実行して成功証跡を更新する
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=CLEAN, draft=true
Evidence Check
- AC coverage: ○ issue #857 の AC1-AC6 は PR 本文と差分 (
src/main.ts,tests/storage.test.ts) で対応を確認 - Allowed Paths: ○ 変更ファイルは
src/main.tsとtests/storage.test.tsのみで、issue #857 の Allowed Paths 内 - CI Verification: ○ reviewed head SHA
414ae7df3fc6f29a6bbfe48203cd22d60c4a89d4でTEST_VERDICT_MACHINEは PASS、required checks も pass - 検証コマンド結果: ○
verification_skipped_count: 0、runtime verification は issue #857 のdecision: deferredと整合
Blockers
- なし
Non-blockers
- PR は現在 draft のため、マージ前に Ready for review へ切り替えが必要です。
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: 414ae7df3fc6f29a6bbfe48203cd22d60c4a89d4
merge_ready: false
mergeability:
mergeable: MERGEABLE
merge_state_status: CLEAN
draft: true
blockers: []
required_auto_actions:
- kind: ready_for_review
summary: draft PR のため、マージ前に Ready for review へ切り替える
evidence_refs:
- https://github.com/squne121/loop-protocol/pull/862
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, draft=true
Evidence Check
- AC coverage: ○ issue #857 の AC1-AC6 は PR 本文と差分 (
src/main.ts,tests/storage.test.ts) で対応を確認 - Allowed Paths: ○ 変更ファイルは
src/main.tsとtests/storage.test.tsのみで、issue #857 の Allowed Paths 内 - CI Verification: ○ reviewed head SHA
414ae7df3fc6f29a6bbfe48203cd22d60c4a89d4でTEST_VERDICT_MACHINEは PASS、rtk gh pr checks 862でも Failed: 0 - 検証コマンド結果: ○
verification_skipped_count: 0、runtime verification は issue #857 のdecision: deferredと整合
Blockers
- なし
Non-blockers
- PR は現在 draft のため、マージ前に Ready for review へ切り替えが必要です。
merge_state_status=UNSTABLEは deploy/retrospective 系 check の揺れを含む live state ですが、現時点の required checks summary は pass です。
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: 414ae7df3fc6f29a6bbfe48203cd22d60c4a89d4
merge_ready: false
mergeability:
mergeable: MERGEABLE
merge_state_status: UNSTABLE
draft: true
blockers: []
required_auto_actions:
- kind: ready_for_review
summary: draft PR のため、マージ前に Ready for review へ切り替える
evidence_refs:
- https://github.com/squne121/loop-protocol/pull/862
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=CLEAN, draft=false
Evidence Check
- AC coverage: ○ issue #857 の AC1-AC6 は PR 本文・差分・linked issue contract snapshot で確認
- Allowed Paths: ○ 変更ファイルは と のみ
- CI Verification: ○ current head SHA で は PASS、CI Checks Summary:
[ok] Passed: 11
[FAIL] Failed: 0 でも Failed: 0 - 検証コマンド結果: ○ 、runtime verification は issue #857 の と整合
Blockers
- なし
LOOP_VERDICT_V2
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=CLEAN, draft=false
Evidence Check
- AC coverage: ○ issue #857 の AC1-AC6 は PR 本文・差分・linked issue contract snapshot で確認
- Allowed Paths: ○ 変更ファイルは
src/main.tsとtests/storage.test.tsのみ - CI Verification: ○ current head SHA
414ae7df3fc6f29a6bbfe48203cd22d60c4a89d4でTEST_VERDICT_MACHINEは PASS、rtk gh pr checks 862でも Failed: 0 - 検証コマンド結果: ○
verification_skipped_count: 0、runtime verification は issue #857 のdecision: deferredと整合
Blockers
- なし
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: 414ae7df3fc6f29a6bbfe48203cd22d60c4a89d4
merge_ready: true
mergeability:
mergeable: MERGEABLE
merge_state_status: CLEAN
draft: false
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: 414ae7d
merge_ready: true
mergeability:
mergeable: MERGEABLE
merge_state_status: CLEAN
draft: false
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
結論:
|
TEST_VERDICT:
result: PASS
head_sha: "80ef5e79fe99dfa7dce038c32112d608c818d48c"
linked_issue: 857
contract_snapshot_url: "https://github.com/squne121/loop-protocol/issues/857#issuecomment-4697604522"
runtime_verification_applicability: deferred
mergeable: MERGEABLE
merge_state_status: CLEAN
branch_behind_main: false
baseline_only: false
verification_commands_pass: 6
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []
verification_commands:
- "rg -n "hadLoadableSnapshot|Result confirmed; progress not saved\.|Quick Save failed\.|Previous local save is still available|No local save is available" src/main.ts"
- "rtk pnpm test -- tests/storage.test.ts"
- "rtk pnpm typecheck"
- "rtk pnpm lint"
- "rtk pnpm test"
- "rtk pnpm build" |
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: \"80ef5e79fe99dfa7dce038c32112d608c818d48c\"
merge_ready: true
mergeability:
mergeable: MERGEABLE
merge_state_status: CLEAN
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
allowed_paths_gate_source: review_subagent
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "80ef5e79fe99dfa7dce038c32112d608c818d48c"
merge_ready: true
mergeability:
mergeable: MERGEABLE
merge_state_status: CLEAN
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
allowed_paths_gate_source: review_subagent
Summary
この節は今回の変更概要です。
persistProgressionSnapshot()の save failure path を、そのまま production wiring に近い形で検証できる最小 seamrunProgressionSave()に寄せました。reward-claimとquick-saveの save failure HUD summary を、今回の結果が reload 後に失われ得ることが伝わる文言へ強めました。tests/storage.test.tsの回帰を helper 直叩き中心から、before/after state・HUD status/summary・保存成功文言非表示・storage.load()no-readback を含む seam 経由の failure-path 検証へ更新しました。受け入れ条件の達成状況
hadLoadableSnapshotを保持し、save failure ではhasLoadableSnapshotを上書きしない seam に置き換えました。false+ failure のとき、production seam 経由で save 後もhasLoadableSnapshot=falseを維持する回帰を追加しました。true+ failure のとき、production seam 経由で save 後もhasLoadableSnapshot=trueを維持する回帰を追加しました。reward-claimfailure はResult confirmed; progress not saved.を表示し、summary で「今回結果が reload 後に失われ得る」ことを伝え、保存成功文言を出さないことを固定しました。quick-savefailure はQuick Save failed.を表示し、既存 snapshot の有無ごとに reload loss risk を伝える summary へ更新しました。runProgressionSave()経由へ寄せ、storage.load()readback を呼ばないことを spy で固定しました。検証コマンド結果
hadLoadableSnapshot保持を確認:rtk grep -n "hadLoadableSnapshot|Result confirmed; progress not saved\.|Quick Save failed\.|Previous local save is still available|No local save is available" src/main.tsrtk pnpm test -- tests/storage.test.tsrtk grep -n "production seam runs|does not report save success|this result may be lost after reload" tests/storage.test.tsrtk pnpm typecheckrtk pnpm lintrtk pnpm testrtk pnpm buildAllowed Paths 遵守
src/main.tsとtests/storage.test.tsのみです。tests/fixtures/agent-session-manifest/temp-invalid-no-markers.mddeletion は既存差分であり、この PR 更新では stage / commit / push していません。Checks
この節は実施済みの品質ゲート一覧です。
pnpm typecheckpnpm lintpnpm testpnpm buildSchema Change Applicability
この節は schema 変更有無の判断です。
not_schema_changeSchema Consumer Inventory
この節は schema producer / consumer の追加変更がないため N/A を明記する欄です。
N/A. schema producer / consumer の追加変更はありません。
Compatibility Decision
この節は互換性判断の補足です。
N/AN/AN/AN/ASafety Claim Matrix
この節は安全境界に変更がないことを示します。
N/A. reason: auth / transport / permission / sandbox / workflow gate には触れていない UI・保存失敗パス修正です。
Notes
この節は補足情報です。
decision: deferredに従い、HTTP origin 上の save -> reload evidence は 実装: PR#854 save→reload 証跡を playtest docs に追加 #860 で扱います。SubAgent Execution Ledger
この節は実行フェーズの記録です。
この ledger は current head
80ef5e79fe99dfa7dce038c32112d608c818d48cに対応しています。実装・ローカル検証・PR body 更新までは完了し、semantic review と pre-merge judgment はこの更新後の GitHub check 完了待ちです。
Closes #857
この PR が merge されたら linked issue を自動で閉じます。