Skip to content

feat: Harden invariant discipline and remove redundant tests#595

Merged
zharinov merged 3 commits into
masterfrom
fix/invariant-discipline
Jul 18, 2026
Merged

feat: Harden invariant discipline and remove redundant tests#595
zharinov merged 3 commits into
masterfrom
fix/invariant-discipline

Conversation

@zharinov

@zharinov zharinov commented Jul 18, 2026

Copy link
Copy Markdown
Member

Plotnik now distinguishes failures by where they originate. Invalid queries, I/O failures, format limits reached by user-supplied data, and runtime capacity exhaustion remain Result or diagnostic paths. Once input has passed validation, missing artifacts, invalid indexes, inconsistent graph state, and impossible enum cases are treated as programmer errors. The change replaces silent fallbacks and debug-only checks with unconditional assertions carrying local context, and makes enum policy matches exhaustive so future variants cannot inherit behavior accidentally.

The same cleanup removes low-level unit tests that duplicate the retained snapshot, compile-diagnostic, fuzz, and integration suites. Their test-only helpers, module declarations, and dependencies are removed with them. Public query and bytecode formats remain unchanged.

@zharinov zharinov changed the title Harden invariant discipline and remove redundant tests feat: Harden invariant discipline and remove redundant tests Jul 18, 2026
@zharinov
zharinov marked this pull request as ready for review July 18, 2026 12:24
@zharinov
zharinov merged commit c0d573a into master Jul 18, 2026
8 checks passed
@zharinov
zharinov deleted the fix/invariant-discipline branch July 18, 2026 12:24
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