Skip to content

docs: add CanvasNet tooling and architecture diagram - #76

Merged
Malcolmnixon merged 2 commits into
mainfrom
feature/architecture-diagram
Nov 8, 2026
Merged

Malcolmnixon merged 2 commits into
mainfrom
feature/architecture-diagram

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

Pull Request

Description

Adds the CanvasNet tooling (skill, diagram standard, canvasnet.lua Pandoc filter, tool manifest entry) and an architecture diagram (SVG for the user guide, PNG with an absolute URL for the README). The diagram shows sysml2tools (Program), the Tool commands, the Core library, the Language library, the Stdlib, and the inputs and outputs.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code quality improvement

Related Issues

None.

Pre-Submission Checklist

Build and Test

  • Code builds successfully and all tests pass: pwsh ./build.ps1 (not run; docs and tooling only)
  • Code produces zero warnings

Code Quality

  • New code has appropriate XML documentation comments
  • Static analyzer warnings have been addressed

Quality Checks

  • All linters pass: pwsh ./lint.ps1 (passed)

Testing

  • Added unit tests for new functionality
  • Updated existing tests if behavior changed
  • All tests follow the AAA (Arrange, Act, Assert) pattern
  • Test coverage is maintained or improved

Documentation

  • Updated README.md (if applicable)
  • Updated docs/ documentation (if applicable)
  • Added code examples for new features (if applicable)
  • Updated requirements.yaml (if applicable)

Additional Notes

The diagram content was derived from the design docs; please verify it. The user guide Pandoc build embeds the SVG (data:image/svg).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 8, 2026 00:41
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A critical file:read format error prevents the filter from processing every recognized source, and the architecture diagram contains an inaccurate package-boundary label.

1 open issue
What changed in this PR

Adds CanvasNet documentation tooling and a shared SysML2Tools architecture diagram.

Changes:

  • Adds the pinned CanvasNet tool, Pandoc filter, CI version tracking, skill guidance, and diagram documentation standards.
  • Enables CanvasNet processing across the documentation builds with caching and dependency tracking.
  • Adds and references architecture diagram assets in the README and user guide.
File Summary Review notes
README.md References the architecture diagram with an absolute image URL. No findings.
docs/​verification/​definition.yaml Enables the CanvasNet filter for verification documents. No findings.
docs/​user_guide/​introduction.md Adds the architecture diagram to the user guide. Nit (1 vote): Include the required lead-in/reference before the diagram. Nit (1 vote): Update command coverage to include Export, or remove it from the figure.
docs/​user_guide/​definition.yaml Adds image resources, embedded resources, and the CanvasNet filter. No findings.
docs/​requirements_report/​definition.yaml Enables the CanvasNet filter for requirements reports. No findings.
docs/​requirements_doc/​definition.yaml Enables the CanvasNet filter for requirements documentation. No findings.
docs/​layout/​definition.yaml Enables the CanvasNet filter for layout documentation. No findings.
docs/​images/​architecture.svg Adds the maintainable architecture diagram source. Nit (2 votes): Clarify that Core orchestrates renderer output rather than providing the concrete renderers. Nit (1 vote): Use the exact DemaConsulting.SysML2Tools.Core package name. Nit (1 vote): Redraw the Stdlib-to-Language relationship as an external runtime dependency/seed flow.
docs/​filters/​canvasnet.lua Adds CanvasNet rendering, caching, dependency hashing, and image rewriting. Critical (1 vote): Change file:read("a") to file:read("*a"). Moderate (1 vote): Pass --strict and update the failure-behavior documentation. Moderate (1 vote): Reserve an OS-provided or otherwise unique temporary path for concurrent builds.
docs/​design/​definition.yaml Enables the CanvasNet filter for design documentation. No findings.
docs/​code_review_report/​definition.yaml Enables the CanvasNet filter for code review reports. No findings.
docs/​code_review_plan/​definition.yaml Enables the CanvasNet filter for code review plans. No findings.
docs/​code_quality/​definition.yaml Enables the CanvasNet filter for code quality documentation. No findings.
docs/​build_notes/​definition.yaml Enables the CanvasNet filter for build notes. No findings.
AGENTS.md Registers the diagram standard and CanvasNet skill. No findings.
.versionmark.yaml Adds CanvasNet version extraction configuration. No findings.
.github/​workflows/​build.yaml Captures the CanvasNet tool version during documentation builds. No findings.
.github/​standards/​diagram-documentation.md Defines diagram selection, authoring, rendering, and maintenance standards. Nit (1 vote): Replace or supplement the nonexistent docs/sysml2/ authoritative source reference with the actual design documentation or another valid fallback.
.github/​skills/​canvasnet/​SKILL.md Documents CanvasNet usage, rendering, and verification guidance. No findings.
.cspell.yaml Adds CanvasNet to the spelling dictionary. No findings.
.config/​dotnet-tools.json Pins the CanvasNet local tool version. No findings.

Review effort: Lite

Comment thread docs/filters/canvasnet.lua Resolved
@Malcolmnixon
Malcolmnixon merged commit 59a8ef4 into main Nov 8, 2026
9 checks passed
@Malcolmnixon
Malcolmnixon deleted the feature/architecture-diagram branch November 8, 2026 01:04
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.

2 participants