Repository navigation
docs: add upgrade loop spec (#1170) - #1237
Conversation
Preview URL✅ verified live assets: https://squne121.github.io/loop-protocol/pr-1237/ The preview will be removed when this PR is closed. |
|
TEST_VERDICT_MACHINE schema: TEST_VERDICT_MACHINE_V1
repo: squne121/loop-protocol
issue_number: 1170
pr_number: 1237
head_sha: a55e2b1fac84d1b2239bd2a78a34897590499f13
head_ref: worktree-issue-1170-docs-product-features-upgrade-md-upgrade
verdict: pass
issue_contract:
ac1: pass
ac2: pass
ac3: pass
ac4: pass
ac5: pass
ac6: pass
ac7: pass
ac8: pass
ac9: pass
ac10: pass
ac11: pass
ac12: pass
ac13: pass
standard_commands:
pnpm_typecheck: pass
pnpm_lint: pass
pnpm_test: pass
pnpm_build: pass
notes:
- docs-only issue
- verified against current PR head
- no runtime verification required |
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
LOOP_VERDICT_V2:
verdict: APPROVE
reviewed_head_sha: "a55e2b1fac84d1b2239bd2a78a34897590499f13"
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- linked issue #1170 の contract snapshot は
status: go - TEST_VERDICT_MACHINE は current head で PASS
- changed files は
docs/product/features/upgrade.mdのみで Allowed Paths に一致
判定REQUEST_CHANGES 相当。 ただし、この PR は単なる説明文ではなく、#1176 配下の M4 Upgrade Loop の後続実装を縛る 正本 spec です。#1176 は「sortie → resource 獲得 → upgrade → 次 sortie での挙動変化」を親ゴールにし、#1170 merge 後に resource 消費・apply pipeline・次 sortie 反映・HUD 露出の child を切る前提です。 その水準で見ると、まだ後続実装を汚染し得る曖昧さが残っています。 良い点#1170 の当初の敵対的レビューで指摘されていた主要穴はかなり潰れています。 既存 roadmap とも大筋で整合します。M4 は resource 消費・最小 upgrade・次 sortie 反映・ Blocker 1: 保存失敗時の atomicity が二重解釈できる現在の spec は「保存成功時のみ upgrade success」「保存成功時のみ commit」と書いていますが、Failure Rules では M3 の既存実装は Web Storage の 推奨文言: M4 upgrade uses strong atomic visible success.
Implementations MUST build a candidate progression state first, then persist the candidate snapshot.
The live `state.progress` MUST be committed only after snapshot save succeeds.
If implementation mutates live state before save, it MUST restore the exact pre-upgrade progression state on save failure.
`applied in memory but not persisted` is not an allowed success or post-return state for M4 upgrade purchase.Blocker 2:
|
|
TEST_VERDICT_MACHINE schema: TEST_VERDICT_MACHINE_V1
repo: squne121/loop-protocol
issue_number: 1170
pr_number: 1237
head_sha: 2206cec8667480b0e64ca7b57c7c45ad7ea6aa90
head_ref: worktree-issue-1170-docs-product-features-upgrade-md-upgrade
verdict: pass
issue_contract:
ac1: pass
ac2: pass
ac3: pass
ac4: pass
ac5: pass
ac6: pass
ac7: pass
ac8: pass
ac9: pass
ac10: pass
ac11: pass
ac12: pass
ac13: pass
ac14: pass
ac15: pass
ac16: pass
ac17: pass
standard_commands:
pnpm_typecheck: pass
pnpm_lint: pass
pnpm_test: pass
pnpm_build: pass
notes:
- current PR head 2206cec8667480b0e64ca7b57c7c45ad7ea6aa90 で再検証
- atomicity / repeatable:false / multi-tab non-goal の spec hardening 反映済み
- no runtime verification required |
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "2206cec8667480b0e64ca7b57c7c45ad7ea6aa90"
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
docs/product/features/upgrade.mdを新規作成し、M4 Upgrade Loop の正本 spec を追加した。state.progress.resourcesを通貨とする最小 upgrade contract、validate → debit → apply → snapshot順序、保存失敗時の no false success を明文化した。resource.md/persistence.md/playable-roadmap.mdとの authority 境界、storage key matrix、HTTP origin 前提、file://非保証を整理した。受け入れ条件の達成状況
docs/product/features/upgrade.mdを新規作成した。doc_id: feature-upgradeを含めた。related_issue: "#1170"を含めた。parent_issue: "#1176"を含めた。resources is greater than or equal to costとstate.progress.resources >= costの precondition を記載した。costを positive safe integer とし、0/ 負値 /NaN/Infinity/ 小数を禁止した。resourcesAfter = resourcesBefore - costと負値禁止を記載した。validate → debit → apply → snapshotを記載した。no false successを記載した。QuotaExceededError/SecurityErrorを保存失敗モデルに含めた。UpgradeDefinitionschema としてcurrency: resources/cost/target: progress.weaponPowerを記載した。preparation限定、次 sortie 反映、runtime への retroactive 非適用を記載した。persistence.mdの storage key matrix、HTTP origin 前提、file://非保証を記載した。pnpm typecheckが PASS した。pnpm lintが PASS した。pnpm testが PASS した。pnpm buildが PASS した。検証コマンド結果
pnpm typecheck: PASS(型チェック成功)pnpm lint: PASS(lint 成功)pnpm test: PASS(テスト成功)pnpm build: PASS(build 成功)Allowed Paths 遵守
docs/product/features/upgrade.mdのみ。Checks
pnpm typecheckを実行済みpnpm lintを実行済みpnpm testを実行済みpnpm buildを実行済みSchema Change Applicability
not_schema_changeSchema Consumer Inventory
N/A(該当なし)。
not_schema_changeのため consumer inventory は不要。Safety Claim Matrix
N/A(該当なし)
reason: 安全境界・権限・サンドボックス・transport・auth・MCP・native tools の契約は変更していない。
Notes
status: gosnapshot として参照