Skip to content

Complete SliM execution semantics - #6

Merged
killertux merged 1 commit into
masterfrom
feat/slim-execution-semantics
Sep 10, 2026
Merged

killertux merged 1 commit into
masterfrom
feat/slim-execution-semantics

Conversation

@killertux

Copy link
Copy Markdown
Owner

The server previously had branches for all five SliM instructions, but construction, symbol handling, and method dispatch still stopped at string-only named fixtures. This change completes the execution-context semantics needed by SliM V0.5: typed constructors, fixture chaining, recursive symbols, SUT delegation, ordered library fallback, and actor helpers.

Instances, libraries, actors, and symbols now preserve shared SlimObject identity. A whole object-valued class symbol is copied by make without invoking a constructor, including opaque objects; callable fixture objects continue to dispatch through their shared handle. Textual symbol replacement recognizes letter-only names, preserves undefined symbols, handles punctuation and adjacency, walks recursive lists, and is deliberately not applied by assign.

Calls resolve against the named fixture, its annotated SUT, user libraries from newest to oldest, and the built-in helper behavior. getFixture, pushFixture, popFixture, and cloneSymbol support scriptTableActor and object symbol workflows. Imports prefer exact class paths and then the newest matching import.

The fixture macro now supports multiple #[slim(constructor)] functions selected by arity, fallible constructors, a zero-argument Default compatibility path, and #[slim(sut)]. Invalid markers, constructor signatures, SUT signatures, duplicate constructor arities, and unsupported receivers produce checked compile-time diagnostics. Constructor and lookup failures use the documented SliM exception names, and malformed symbol assignments retain their instruction data without executing fixture code.

Validation:

  • cargo test --workspace --all-features
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • git diff --check

A separate Terra implementation agent and an independent Terra reviewer checked this slice against the local feature-completeness plan, the official SliM V0.5 specification, and FitNesse's reference execution behavior. The final review found no remaining actionable issues.

@killertux
killertux merged commit b68ff4f into master Sep 10, 2026
10 checks passed
@killertux
killertux deleted the feat/slim-execution-semantics branch September 10, 2026 16:21
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