Repository navigation
Bound artifact expressions, type expansion, and input rendering - #103
Open
arthurianresolve wants to merge 12 commits into
Open
arthurianresolve wants to merge 12 commits into
arthurianresolve wants to merge 12 commits into
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
This was referenced Nov 9, 2026
This was referenced Nov 10, 2026
arthurianresolve
added a commit
to arthurianresolve/DSRs
that referenced
this pull request
Nov 19, 2026
Integrate krypticmouse#103 — Bound artifact expressions, type expansion, and input rendering
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Fix
Validate constraint expressions when signatures are built. Reject expressions over 1,024 bytes and operations outside the permitted AST, then bound multiplication and evaluation fuel. This addresses the resource-exhaustion path in [BUG][Medium]- Constraint expressions can request unbounded allocations #99.
Detect recursive class references and enforce a depth limit during artifact validation and schema rendering. This addresses [BUG][Medium]- Recursive classes can exhaust validation or rendering stacks #102, where recursive definitions could otherwise keep expanding.
Evaluate nested class assertions during output coercion and report failing hard assertions ([BUG][Low]- Nested class assertions are skipped during output coercion #109).
Propagate Jinja input-rendering errors to the runtime instead of panicking; detect sum overflow and reuse the input context across renders ([BUG][Low]- Jinja input render error panics a prediction #110).
Bound container nesting in the
.dsrstext parser and serialized-program validation ([BUG][Low]- Unbounded program nesting can exhaust parsing or validation stacks #111).Validate overlay model IDs before baking and canonical printing ([BUG][Low]- Invalid overlay model ID can panic during bake #112).
Cache the last compiled system prompt per signature and reuse one alias-aware Jinja context per input render. Keep live inputs, demos, scoped instructions and feedback fresh.
Share immutable programs through
Interpreter::load_shared(Arc<Program>, env)when rebinding models, while keeping bindings and invocation state independent. Document ownership and lifetime rules in the runtime ownership ADR.Fixes #99
Fixes #102
Fixes #109
Fixes #110
Fixes #111
Fixes #112
Fixes #24
Fixes #25
Related work
Shared support commit:
f5815bcnormalizes.dsrsfixture line endings for Windows and is present in the companion fix branches.Testing
2b4590f0174dc05582347b8da75b6b58fbce9ca0passed 209 tests with--no-default-featuresand 247 with defaultdata/cachefeatures (2 live tests ignored in each offline run). These are focused library and integration suites, not the full workspace test suite.git diff --check— passed.AI Disclosure