feat(live): immutable simulator registry with scoped publication - #241
Merged
Merged
Conversation
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.
Approved simulators now persist as immutable, owner-scoped assets with behavioral/visual provenance. A preloaded registry reuses compatible code without network work in
app_for, while each returned contract is independent. Private teaching context stays private; public reuse requires an explicit trusted source.Build claims elect one paid builder per scope/key and fence publication atomically. Expired potentially billed work becomes indeterminate instead of being automatically retried. Revocation is permanent and checked on every authenticated HTML request, which carries the sandbox CSP and
private, no-store.Validation: 3,151 offline tests pass; 117 real database tests pass (4 existing gated skips), including independent-connection arbitration and a real Supabase REST publish/reload/revoke roundtrip. Ruff and database lint pass; Python/style, test and security reviewers approved. CI now starts the local REST gateway for the adapter test. See
documentation/live-simulator-registry.mdfor scope and operations.Authenticated browser mounting and two actual learner interaction histories are the integration ticket; this slice establishes their durable storage and serving boundary.
Closes #235.