Skip to content

S2: preserve custom SMT options in resident sessions - #16

Merged
kiranandcode merged 1 commit into
mainfrom
s2/resident-smt-options
Sep 11, 2026
Merged

kiranandcode merged 1 commit into
mainfrom
s2/resident-smt-options

Conversation

@kiranandcode

Copy link
Copy Markdown
Collaborator

Resident verification currently rejects every custom SMT setting, even though the retained AIR context already owns the configured solver. Allow --resident --smt-option random-seed=17 and preserve the original ordered settings across rechecks, including provenance and spinoff-all.

ready.smt_options reports the ordered startup name/value pairs so MCP callers can confirm their requested configuration. Settings are applied once through the existing verifier initialization path; rechecks reuse the original solver. Normal Verus resource-budget precedence is unchanged: the per-query budget overrides rlimit-per / reproducible-resource-limit.

Reject the specific settings that break retained scopes: incremental=false, global-declarations=true, and single_check_query=true. Names and values must fit single SMT atoms, preventing a setting from injecting commands. Other settings retain normal cvc5 validation and compatibility rules.

Validation: all 15 resident subprocess tests pass. New tests cross custom settings with two buckets, parallel preparation, provenance, and spinoff contexts. SMT logs show ordered settings applied once per context; repeated valid/invalid checks launch no new solvers and close releases all children. Incompatible settings and embedded commands fail before solver startup. Actual MCP file/Cargo tests pass, including both provenance and spinoff-all with custom settings. Formatting and clippy with -D warnings pass.

Targets main after #14. Independent of the open error-reporting follow-up #15. MCP configuration is included in verus-tools-mcp PR #16.

@kiranandcode
kiranandcode force-pushed the s2/resident-smt-options branch from 3d2d584 to 2effce8 Compare September 11, 2026 13:38
@kiranandcode
kiranandcode merged commit ef941f8 into main Sep 11, 2026
20 checks passed
@kiranandcode
kiranandcode deleted the s2/resident-smt-options branch September 11, 2026 13:47
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