Repository navigation
0.1.3: clickable diagrams, bridge in the edit hook, requirement text checks, gaps by layer - #6
Merged
Merged
Conversation
Each box in the trace graph links to its need's anchor (docname from needs.json), and each use case oval to its need on the model page. The docs inline both SVGs with `.. raw:: html :file:`, since links in an <img> cannot be clicked; CSS classes get an s2k- prefix because inlined styles apply to the whole page, and the SVG scales to the column as the image did. The acceptance test checks that every trace link resolves to an anchor in the built HTML. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bump the plugin and package to 0.1.3 so installed plugins pick up the clickable diagrams, and pin new projects' sysml2kit to the v0.1.3 tag. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… layer - The PostToolUse hook runs `sysml export` + `sysml2kit needs` after a clean `sysml check`, so duplicate ids, link ends without a short name and requirement text warnings reach the agent on the edit that caused them (0.6 s on the example), not at `make docs`. - `sysml2kit needs` warns on a system requirement without exactly one `shall` or with a vague term (TBD, etc., as appropriate, user-friendly, fast). Warnings do not fail the build; the reviewer blocks on them. - `sysml2kit gaps <needs dir> [--layer R|F|L|V]` reads schema_violations.json and lists each RFLP rule violation with its layer and file:line, exiting 1 while any remain. The reviewer uses it instead of filtering build output by rule id. A test keeps its rule-to-layer table in step with schemas.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
MichaelD-42
added a commit
that referenced
this pull request
Nov 29, 2026
0.1.3: clickable diagrams, bridge in the edit hook, requirement text checks, gaps by layer
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.
Release 0.1.3. Two parts: clickable diagrams, and catching RFLP problems at edit time instead of at
make docs.Clickable diagrams
Clicking a box in the trace graph or an oval in a use case diagram opens that need in the docs. From there the need's own link lists (satisfies, verified by, …) lead on from element to element.
render.py: each trace box links to<docname>.html#<id>(docname fromneeds.json), and each use case oval to#<id>. CSS classes get ans2k-prefix, a box is highlighted on hover, link underlines are off, and the SVG scales to the column width... raw:: html/:file:, because links inside an<img>can't be clicked. This changestraceability.rstin the template and the example, and the example'smodel.rst. The template comment and thesysml-docsskill now say how to embed diagrams this way.shortcut:): links assume the trace page is at the docs root and the use case diagrams sit on the page that importsmodel-needs.json. The internal diagrams fromsysml diagram --internalstay plain images.Earlier feedback for the agents
sysml check, the hook runssysml export+sysml2kit needs. Duplicate ids, link ends without a short name and requirement text warnings now reach the agent on the edit that caused them. Takes 0.6 s on the example.sysml2kit needswarns on a system requirement without exactly oneshall, or with TBD, etc., as appropriate, user-friendly or fast (the list instructure.md). Warnings don't fail the build; the reviewer blocks on them, and judges what matching can't.sysml2kit gaps <needs dir> [--layer R|F|L|V]readsschema_violations.jsonand prints one line per RFLP rule violation: layer, rule, id, file:line, message. It exits 1 while any remain. The reviewer uses it instead of filtering build output by rule id. Rules not in its table (one a project adds) are always shown, and a test keeps the table in step withschemas.json.rflp-reviewer, therflp,sysml-docsandsysml-authorskills,structure.md, the README and the glossary.Verified
Locally: 41/41 unit tests and 23/23 acceptance checks, with
sysmlbuilt fromv0.1.4-kit.1. New acceptance cases: every trace link resolves to an anchor; the hook passes a clean model, reports a duplicate id, and reports a TBD requirement. Also ruff clean,claude plugin validatepassing, and a click in Chrome from SR-003 in the trace graph tomodel.html#SR-003.🤖 Generated with Claude Code