docs(skills): REPL probes for objects created and destroyed at runtime - #472
Merged
Merged
Conversation
Co-Authored-By: jason.han <hanhuijun@gmail.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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.
What and why
Adds a section to
.agents/skills/testing-sysml-repl/SKILL.mdon observing objects a run creates withnewand ends withdestroy(the runtime behavior of #468) through the REPL. It records the three things that are not obvious from the command help:%instantiatealready runs the definition's performed classifier actions, so a detached%actionnever shows the objects they created;%instanceslists session roots only, so runtime-created nested objects are read through their holder (%features #1,%eval in #1 : size(all P::Car), which also counts declared singleton parts); and a destroyed object's lifetime note appears under the alias holding it, with reads through it printing the error text rather than exposing error identity.Documentation only; independent of #468 to merge, though the probes only produce the described output once it has landed.
How it was verified
The probes were run against
bin/sysmlbuilt from #468 on both lifecycle conformance fixtures.Checklist
make testandmake lintpass locallymake docs-countsrun if a gate count moved (none moved)F4,K5) in the body, docs, or changelog