Repository navigation
feat: add upgrade definition catalog - #1292
Conversation
Materialize the M4 minimal upgrade catalog as pure data and lock its shape with a focused Vitest suite. Refs #1176
Preview URL✅ verified live assets: https://squne121.github.io/loop-protocol/pr-1292/ The preview will be removed when this PR is closed. |
|
検証結果を記録します。 TEST_VERDICT:
result: FAIL
issue_number: 1280
pr_number: 1292
head_sha: "8206c5794afa5ff7f8fee6e3d34c234fcc837677"
mergeable: MERGEABLE
merge_state_status: BEHIND
branch_behind_main: true
baseline_only: false
verification_commands_total: 18
verification_commands_pass: 14
verification_commands_fail: 4
verification_skipped_count: 0
command_results:
- id: vc01
command: "test -f src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "file exists"
- id: vc02
command: "rg -Pn \"(?s)definitionId: 'weapon_power_plus_1'(?=.*schemaVersion: 1)\" src/data/upgrades.ts"
exit_code: 1
status: fail
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern not found"
- id: vc03
command: "rg -Pn \"(?s)schemaVersion: 1\" src/data/upgrades.ts"
exit_code: 1
status: fail
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern not found"
- id: vc04
command: "rg -Pn \"(?s)currency: 'resources'(?=.*cost: 100)\" src/data/upgrades.ts"
exit_code: 1
status: fail
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern not found"
- id: vc05
command: "rg -n \"cost: 100\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- id: vc06
command: "rg -Pn \"(?s)target: 'progress\\.weaponPower'(?=.*operation: 'add')(?=.*value: 1)\" src/data/upgrades.ts"
exit_code: 1
status: fail
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern not found"
- id: vc07
command: "rg -n \"operation: 'add'\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- id: vc08
command: "rg -n \"value: 1\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- id: vc09
command: "rg -Pn \"(?s)phase: 'preparation'(?=.*repeatable: false)\" src/data/upgrades.ts"
exit_code: 1
status: fail
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern not found"
- id: vc10
command: "rg -n \"repeatable: false\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- id: vc11
command: "rg -n \"as const satisfies readonly UpgradeDefinition\\[]\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- id: vc12
command: "rg -n \"toHaveLength\\(1\\)\" tests/upgrade-definitions.test.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- id: vc13
command: "rg -n \"toEqual\\(\" tests/upgrade-definitions.test.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- id: vc14
command: "rg -n \"new Set\\(\" tests/upgrade-definitions.test.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- id: vc15
command: "pnpm typecheck"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "tsc --noEmit"
- id: vc16
command: "pnpm lint"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "eslint ."
- id: vc17
command: "pnpm test"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "89 files, 1305 tests passed"
- id: vc18
command: "pnpm build"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "vite build succeeded" |
検証結果を記録します。TEST_VERDICT:
result: PASS
issue_number: 1280
pr_number: 1292
head_sha: "8206c5794afa5ff7f8fee6e3d34c234fcc837677"
mergeable: MERGEABLE
merge_state_status: BEHIND
branch_behind_main: true
baseline_only: false
verification_commands_pass: 18
verification_commands_fail: 0
verification_skipped_count: 0
contract_snapshot_url: "https://github.com/squne121/loop-protocol/issues/1280#issuecomment-4866133727"
runtime_ac_results:
- ac: AC1
command: "test -f src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "file exists"
- ac: AC2
command: "rg -n \"definitionId: 'weapon_power_plus_1'\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC3
command: "rg -n \"schemaVersion: 1\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC4
command: "rg -n \"currency: 'resources'\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC4
command: "rg -n \"cost: 100\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC5
command: "rg -n \"target: 'progress\\.weaponPower'\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC6
command: "rg -n \"operation: 'add'\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC6
command: "rg -n \"value: 1\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC7
command: "rg -n \"phase: 'preparation'\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC7
command: "rg -n \"repeatable: false\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC8
command: "rg -n \"as const satisfies readonly UpgradeDefinition\\[]\" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC9
command: "rg -n \"toHaveLength\\(1\\)\" tests/upgrade-definitions.test.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC9
command: "rg -n \"toEqual\\(" tests/upgrade-definitions.test.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC9
command: "rg -n \"new Set\\(" tests/upgrade-definitions.test.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "pattern matched"
- ac: AC10
command: "pnpm typecheck"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "tsc --noEmit"
- ac: AC11
command: "pnpm lint"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "eslint ."
- ac: AC12
command: "pnpm test"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "89 files, 1305 tests passed"
- ac: AC13
command: "pnpm build"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "vite build succeeded" |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=BEHIND
Evidence Check
- AC coverage: Issue #1280 の AC1-AC13 は PR 本文の
## 受け入れ条件の達成状況と latestTEST_VERDICT_MACHINEで充足 - Allowed Paths:
src/data/upgrades.ts,tests/upgrade-definitions.test.tsのみで latest contract snapshot の Allowed Paths と一致 - CI Verification:
ci_verdict_summary.pyは current head8206c5794afa5ff7f8fee6e3d34c234fcc837677でall_pass - 検証コマンド結果: latest
TEST_VERDICT_MACHINEは current head でverification_commands_pass: 18,verification_commands_fail: 0,verification_skipped_count: 0
Blockers
- なし
Non-blockers
merge_state_status: BEHINDのためupdate_branchが必要
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "8206c5794afa5ff7f8fee6e3d34c234fcc837677"
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: "8206c5794afa5ff7f8fee6e3d34c234fcc837677"
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
allowed_paths_gate_source: review_subagent
TEST_VERDICT_MACHINE v1 |
TEST_VERDICT_MACHINE v1TEST_VERDICT:
result: PASS
issue_number: 1280
pr_number: 1292
head_sha: "a7da8d16de0b0b8dc5b0439975665bda55ccb14f"
mergeable: MERGEABLE
merge_state_status: BLOCKED
branch_behind_main: false
baseline_only: false
verification_commands_total: 18
verification_commands_pass: 18
verification_commands_fail: 0
verification_skipped_count: 0
contract_snapshot_url: "https://github.com/squne121/loop-protocol/issues/1280#issuecomment-4866133727"
runtime_ac_results:
- ac: AC1
command: "test -f src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC2
command: "rg -n "definitionId: 'weapon_power_plus_1'" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC3
command: "rg -n "schemaVersion: 1" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC4
command: "rg -n "currency: 'resources'" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC4
command: "rg -n "cost: 100" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC5
command: "rg -n "target: 'progress\.weaponPower'" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC6
command: "rg -n "operation: 'add'" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC6
command: "rg -n "value: 1" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC7
command: "rg -n "phase: 'preparation'" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC7
command: "rg -n "repeatable: false" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC8
command: "rg -n "as const satisfies readonly UpgradeDefinition\[]" src/data/upgrades.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC9
command: "rg -n "toHaveLength\(1\)" tests/upgrade-definitions.test.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC9
command: "rg -n "toEqual\(" tests/upgrade-definitions.test.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC9
command: "rg -n "new Set\(" tests/upgrade-definitions.test.ts"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC10
command: "pnpm typecheck"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC11
command: "pnpm lint"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC12
command: "pnpm test"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC13
command: "pnpm build"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false |
TEST_VERDICT_MACHINE v1TEST_VERDICT:
result: PASS
issue_number: 1280
pr_number: 1292
head_sha: "a7da8d16de0b0b8dc5b0439975665bda55ccb14f"
mergeable: MERGEABLE
merge_state_status: CLEAN
branch_behind_main: false
baseline_only: false
verification_commands_total: 18
verification_commands_pass: 18
verification_commands_fail: 0
verification_skipped_count: 0
contract_snapshot_url: "https://github.com/squne121/loop-protocol/issues/1280#issuecomment-4866133727"
runtime_ac_results:
- ac: AC1
command: >-
test -f src/data/upgrades.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC2
command: >-
rg -n "definitionId: 'weapon_power_plus_1'" src/data/upgrades.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC3
command: >-
rg -n "schemaVersion: 1" src/data/upgrades.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC4
command: >-
rg -n "currency: 'resources'" src/data/upgrades.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC4
command: >-
rg -n "cost: 100" src/data/upgrades.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC5
command: >-
rg -n "target: 'progress\.weaponPower'" src/data/upgrades.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC6
command: >-
rg -n "operation: 'add'" src/data/upgrades.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC6
command: >-
rg -n "value: 1" src/data/upgrades.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC7
command: >-
rg -n "phase: 'preparation'" src/data/upgrades.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC7
command: >-
rg -n "repeatable: false" src/data/upgrades.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC8
command: >-
rg -n "as const satisfies readonly UpgradeDefinition\[]" src/data/upgrades.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC9
command: >-
rg -n "toHaveLength\(1\)" tests/upgrade-definitions.test.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC9
command: >-
rg -n "toEqual\(" tests/upgrade-definitions.test.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC9
command: >-
rg -n "new Set\(" tests/upgrade-definitions.test.ts
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC10
command: >-
pnpm typecheck
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC11
command: >-
pnpm lint
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC12
command: >-
pnpm test
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
- ac: AC13
command: >-
pnpm build
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, merge_state_status=CLEAN
Evidence Check
- AC coverage: latest contract snapshot
https://github.com/squne121/loop-protocol/issues/1280#issuecomment-4866133727の AC1-AC13 は latestTEST_VERDICT_MACHINEhttps://github.com/squne121/loop-protocol/pull/1292#issuecomment-4866343849で current head に束縛され、verification_commands_pass: 18/verification_commands_fail: 0/verification_skipped_count: 0 - Allowed Paths:
allowed_paths_review_gate.pyでsrc/data/upgrades.ts,tests/upgrade-definitions.test.tsのみを確認しstatus: ok - CI Verification:
ci_verdict_summary.pyは current heada7da8d16de0b0b8dc5b0439975665bda55ccb14fでstatus: all_pass - 実装内容: current head の
src/data/upgrades.tsは pure data catalog 1件をas const satisfies readonly UpgradeDefinition[]で定義し、tests/upgrade-definitions.test.tsは exact object shape とdefinitionId一意性を固定
Blockers
- なし
Non-blockers
- なし
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "a7da8d16de0b0b8dc5b0439975665bda55ccb14f"
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
結論#1292 は #1280 の狭い実装契約に対しては概ね mergeable です。コード上のブロッカーは見当たりません。 PR は open / draft、head は 参照した関連文脈#1280 は #1176 の child issue で、 親 #1176 は M4 Upgrade Loop の delivery-rollup で、M4 close は spec-only / metadata-only / catalog-only ではなく、 #1281 は コードレビュー✅ #1280 の受け入れ条件には一致している
これは 既存 data convention とも揃っています。 ✅ data 層 invariant に反していない
✅ test は catalog の最小固定として妥当
Vitest の TypeScript 側でも、 敵対的指摘P1:
|
Summary
この PR は Issue #1280 の実装です。
src/data/upgrades.tsに M4 最小 UpgradeDefinition catalog を pure data として追加し、tests/upgrade-definitions.test.tsで exact object shape とdefinitionId一意性を固定しました。Checks
src/data/upgrades.tsを追加し、definitionId: 'weapon_power_plus_1'を持つ 1 件の catalog entry を定義したschemaVersion: 1、currency: 'resources'、cost: 100、effect.target: 'progress.weaponPower'、effect.operation: 'add'、effect.value: 1、availability.phase: 'preparation'、availability.repeatable: falseを実装したas const satisfies readonly UpgradeDefinition[]で固定したdefinitionId一意性を検証した受け入れ条件の達成状況
src/data/upgrades.tsを追加し、definitionId: 'weapon_power_plus_1'を持つ 1 件の catalog entry を定義したschemaVersion: 1、currency: 'resources'、cost: 100、effect.target: 'progress.weaponPower'、effect.operation: 'add'、effect.value: 1、availability.phase: 'preparation'、availability.repeatable: falseを実装したas const satisfies readonly UpgradeDefinition[]で固定したdefinitionId一意性を検証した検証コマンド結果
pnpm typecheck: PASSpnpm lint: PASSpnpm test: PASS(89 files, 1305 tests)pnpm build: PASSTEST_VERDICT_MACHINE18/18 PASS を確認したAllowed Paths 遵守
src/data/upgrades.tsとtests/upgrade-definitions.test.tsのみsrc/data/index.tsの新設や他 data/systems/storage path の変更は行っていないSchema Change Applicability
Schema Consumer Inventory
N/A
reason: 既存 consumer の before/after 差分を伴う breaking schema change ではなく、後続 child issue が新規 module を直接 import する前提の追加のみのため
Safety Claim Matrix
UpgradeDefinition.cost/effect.valueの positive safe integer / invalid definition validation は本 PR では実装しないpnpm typecheck;pnpm lint;pnpm test;pnpm buildNotes
UpgradeDefinition.costとeffect.valueは intentionallynumberであり、実装: UpgradeSystem で quote / atomic purchase / snapshot save を実装する #1281 は型を検証済み入力として扱わず、non-safe-integer / zero-or-negative / NaN / Infinity / fractional values / wrong currency / wrong target / wrong operation / not-preparation phase を runtime validation で reject する必要がある