Skip to content

test(local): cover long contract restarts - #556

Merged
HouMinXi merged 1 commit into
mainfrom
dot/70-long-contract-restart-tests
Nov 22, 2026
Merged

HouMinXi merged 1 commit into
mainfrom
dot/70-long-contract-restart-tests

Conversation

@HouMinXi

Copy link
Copy Markdown
Owner

Test-only partial work for #70. This extends the effective --contract coverage added in #552.

Coverage

The test uses the same 5,500-byte UTF-8 contract outside the Git diff for all three restart cases. It seeds two clean LOCAL WORKING rounds with summary A and checks the L1 input, persisted digest, old round records, and independent verify result.

  • A → A keeps the original two rounds and passes verify after cycle 3.
  • A → B and A → raw fallback earn one new round on the first restart. The verifier refuses the one-round window and passes after two more clean rounds earn cycles 3–5.

Verification

67 focused offline tests passed on the published base and patch, including the existing HOLD confirmation regression. Summary, L1 and Runtime replies used fixtures. Ruff lint and formatting, py_compile, git diff --check, and the test inventory check passed. The inventory registers exactly three new cases.

Exercise clean-round reuse and reset on an unchanged long contract
when the effective L1 text stays the same, changes, or falls back to
the original text. Check persisted history and independent verify.
@HouMinXi
HouMinXi marked this pull request as ready for review November 22, 2026 12:46
@HouMinXi
HouMinXi merged commit d156d65 into main Nov 22, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant