Skip to content

0.1.3: clickable diagrams, bridge in the edit hook, requirement text checks, gaps by layer - #6

Merged
MichaelD-42 merged 3 commits into
mainfrom
feat/navigable-svg
Nov 7, 2026
Merged

MichaelD-42 merged 3 commits into
mainfrom
feat/navigable-svg

Conversation

@MichaelD-42

@MichaelD-42 MichaelD-42 commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

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 from needs.json), and each use case oval to #<id>. CSS classes get an s2k- prefix, a box is highlighted on hover, link underlines are off, and the SVG scales to the column width.
  • The docs inline the SVG with .. raw:: html / :file:, because links inside an <img> can't be clicked. This changes traceability.rst in the template and the example, and the example's model.rst. The template comment and the sysml-docs skill now say how to embed diagrams this way.
  • Limits (marked shortcut:): links assume the trace page is at the docs root and the use case diagrams sit on the page that imports model-needs.json. The internal diagrams from sysml diagram --internal stay plain images.

Earlier feedback for the agents

  • Edit hook runs the bridge. After a clean sysml check, the hook runs sysml 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.
  • Requirement text checks. sysml2kit needs warns on a system requirement without exactly one shall, or with TBD, etc., as appropriate, user-friendly or fast (the list in structure.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] reads schema_violations.json and 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 with schemas.json.
  • Updated: rflp-reviewer, the rflp, sysml-docs and sysml-author skills, structure.md, the README and the glossary.

Verified

Locally: 41/41 unit tests and 23/23 acceptance checks, with sysml built from v0.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 validate passing, and a click in Chrome from SR-003 in the trace graph to model.html#SR-003.

🤖 Generated with Claude Code

MichaelD-42 and others added 3 commits November 7, 2026 18:40
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 MichaelD-42 changed the title Clickable diagrams: link trace and use case elements to their needs (0.1.3) 0.1.3: clickable diagrams, bridge in the edit hook, requirement text checks, gaps by layer Nov 7, 2026
@MichaelD-42
MichaelD-42 merged commit 7cfc3b4 into main Nov 7, 2026
5 checks passed
@MichaelD-42
MichaelD-42 deleted the feat/navigable-svg branch November 7, 2026 17:52
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant