Phase 1: Fix --checkpoint SHA validation and append semantics (defects 3 + 4) #482

Merged
mph merged 3 commits from IW-436-phase-01 into IW-436 2026-08-30 08:51:49 +00:00
Owner

Phase 01 implementation for IW-436.

Files

Browse changed files: https://code.iterative.works/iterative-works/iw-cli/-/blob/IW-436-phase-01/

Phase 01 implementation for IW-436. ### Files Browse changed files: https://code.iterative.works/iterative-works/iw-cli/-/blob/IW-436-phase-01/
Fix --checkpoint SHA validation and append semantics (defects 3 + 4)
All checks were successful
CI / contract (pull_request) Has been skipped
CI / format (pull_request) Successful in 7s
CI / lint (pull_request) Successful in 7s
CI / compile (pull_request) Successful in 1m15s
CI / dashboard-build (pull_request) Successful in 59s
CI / test (pull_request) Successful in 9m47s
a16b79fd1e
- CONTRACT CHANGE: --checkpoint now accumulates instead of replacing phase_checkpoints (defect 4) — replace silently destroyed earlier phases across two issues and six phases; --clear-checkpoints remains the only way to drop entries and clear-and-set now needs two invocations
- parseCheckpoint rejects a value that is not 7-64 hex characters (defect 3) — the doubled-key form produced 26 malformed context_sha entries in this repository
- parseArrayMode gained unionOnAppend: Boolean; only the checkpoint call site passes it and the other four array fields keep the exclusive clear > replace > append precedence
- Rewrote the test that pinned the defective Replace default — a deliberate contract change and not a test bent to make the fix pass
- Closed the checkpoint coverage gap with 5 phase_checkpoints merge cases that pass against an unmodified ReviewStateUpdater — which is what localises the defect to mode selection; the two Replace cases pin a branch no production path reaches after this fix and are kept on purpose
- ReviewStateValidator and review-state.schema.json deliberately gain no SHA pattern — the validator runs on the merged whole file and would fail the next update of every still-corrupt card
chore(IW-436): update review-state for phase 01
All checks were successful
CI / contract (pull_request) Has been skipped
CI / format (pull_request) Successful in 7s
CI / lint (pull_request) Successful in 8s
CI / compile (pull_request) Successful in 1m17s
CI / dashboard-build (pull_request) Successful in 59s
CI / test (pull_request) Successful in 9m55s
965fc7fb84
mph merged commit c3e00360b7 into IW-436 2026-08-30 08:51:49 +00:00
mph deleted branch IW-436-phase-01 2026-08-30 08:51:49 +00:00
Sign in to join this conversation.
No description provided.