Fix #338: land the sim tier #350
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!350
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-338-sim"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Lands the sim tier specified in docs/go/15_testing.md §4 (child of #331): new internal/sim package (Cluster harness + 11 of 12 TestSim_ scenarios against FaultStore op counts, budgets asserted per §4.1/§4.8 with the law-6 reconciliation written down), real make sim + contract-fs recipes, sim joins ci, D3 corrected to the actual .PHONY set.
Proving safety exposed three real wal liveness bugs, fixed minimally in the same change (each regression-pinned, doc 05 amended): orphan sweep deleting concurrently-committed segments; unbounded orphan-backlog growth on failed batches (failure-path sweep); wiped version token never healing on guard-reject (token adopt into empty slot).
Gaps stated, not dropped: G1 base-rebuild kill hook (needs maintain machinery), G2 same-head checkpoint retry 412 (pinned), G3 SIGTERM delivery (e2e).
Verification: make sim green (~12s); safety 3x3 Chaos(0.05) + seeds green incl. 8/8 parallel runs; -race clean (sim + wal); covergate >=95% (sim 96.5%, wal 95.4%); gofmt/vet clean. Store surface untouched (no contract run needed).
Note: branch is fix/issue-338-sim (fix/issue-338 is held by a parallel active worktree at /tmp/opencode/walhub-338 — may be a duplicate effort worth coordinating).