Repository navigation
control & .lemon: persist stable object IDs, add describe RPC and core permission gate - #464
Merged
Merged
Conversation
…be + core permission gate
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.
Two small, complementary control-plane foundations:
Stable object IDs persisted in
.lemonfiles (os-flp::lemon::OBJECT_IDS = 204,os-session::lemon_state,os-session::control::ids::advance_past):os_model::Idacross save/reopen for channels, patterns, notes, controls, mixer tracks, occupied effect slots, arrangements, clips, time markers, playlist tracks, and automation points.Idscounters strictly past all restored IDs so newly created objects never collide with restored references..lemonand.flpfiles, and excluded fromsaved_form_inso internal ID bookkeeping never triggers false unsaved-changes prompts.Self-describing control plane & core permission gate (
os-session::control):describeJSON-RPC method (control::describe()) returning protocol version, permission levels (read,propose,edit), every RPC method, and all publicCommandoperations (COMMAND_OPS).require_level,apply_checked_in,propose_checked_in) insideos-session::controlso future local tools and extensions share the same permission enforcement as the RPC adapter.Verification
cargo test --locked -p os-session object_ids— passed (round-trip save/reopen preserves non-default IDs and advances counters past them).cargo test --locked -p os-session permission_and_describe— passed (verifies unique methods/commands manifest and permission gating acrossRead/Propose/Edit).cargo test --locked -p os-app lemon_state_ui— 8 passed, 0 failed (including fullLMexevent round-trip and clean-state check).