Skip to content

docs: add canvasnet skill, diagram standard, and architecture diagram - #41

Merged
Malcolmnixon merged 2 commits into
mainfrom
docs/architecture-diagram
Nov 7, 2026
Merged

Malcolmnixon merged 2 commits into
mainfrom
docs/architecture-diagram

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

Pull Request

Description

Applies the DocDown diagram tooling to Rendering and adds an architecture diagram:

  • Adds the canvasnet skill, the diagram documentation standard, and the canvasnet.lua pandoc filter.
  • Pins demaconsulting.canvasnet.tool 0.2.0-beta.6 in the tool manifest and registers the filter in all pandoc definition.yaml files.
  • Adds docs/images/architecture.svg (source, embedded in the user guide) and architecture.png (used by the README via absolute URL for nuget.org).

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; no code changes)
  • Code produces zero warnings (not applicable; no code changes)

Code Quality

  • New code has appropriate XML documentation comments (not applicable)
  • Static analyzer warnings have been addressed (not applicable)

Quality Checks

  • All linters pass: pwsh ./lint.ps1 (not run; only pwsh ./fix.ps1 was run)

Testing

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

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

Validated by building the user guide with dotnet pandoc --defaults docs/user_guide/definition.yaml (succeeded, diagram embedded). The README image URL points at main, so it resolves only after merge.

… diagram

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Active critical issues remain: three Markdown lines violate the 120-character lint limit, and the Lua file read uses invalid format "a" instead of "*a", causing hashing failures.

4 open issues
What changed in this PR

Adds CanvasNet-based diagram documentation support and an architecture overview to the Rendering project, including a Lua Pandoc filter, pinned CLI tool, documentation integration, and SVG/PNG diagram assets.

Changes:

  • Adds the CanvasNet authoring skill, diagram documentation standard, and Pandoc filter.
  • Registers the filter across documentation build definitions and pins the CanvasNet tool.
  • Adds architecture diagrams to the user guide and README.
  • Adds source-based rendering and caching support for supported diagram formats.
File Summary Review findings
README.md Displays the architecture PNG using an absolute URL. Critical (2 votes): The new image line exceeds the repository’s 120-character Markdown lint limit.
docs/​verification/​definition.yaml Registers the CanvasNet filter for verification documentation. No findings.
docs/​user_guide/​introduction.md Introduces and embeds the architecture diagram. Critical (2 votes): The new image line exceeds the repository’s 120-character Markdown lint limit.
docs/​user_guide/​definition.yaml Enables embedded resources and the CanvasNet filter. No findings.
docs/​requirements_report/​definition.yaml Registers the CanvasNet filter for requirements-report generation. No findings.
docs/​requirements_doc/​definition.yaml Registers the CanvasNet filter for requirements-document generation. No findings.
docs/​images/​architecture.svg Provides the maintainable architecture diagram source. Nit (1 vote): The diagram names nonexistent ILayoutAlgorithm instead of the actual LayoutAlgorithmBase extension point. Nit (1 vote): LayoutTree is shown before .Layout despite being the positioned result produced by the layout stage.
docs/​filters/​canvasnet.lua Adds CanvasNet rendering and caching support. Critical (1 vote): file:read("a") is invalid; use *a/*all. Moderate (1 vote): Missing local data files are not included in cache keys. Moderate (1 vote): Missing include targets are not included in cache keys. Moderate (1 vote): CanvasNet is invoked without --strict, allowing unsupported constructs to be silently omitted.
docs/​design/​definition.yaml Registers the CanvasNet filter for design documentation. No findings.
docs/​code_review_report/​definition.yaml Registers the CanvasNet filter for review-report generation. No findings.
docs/​code_review_plan/​definition.yaml Registers the CanvasNet filter for review-plan generation. No findings.
docs/​code_quality/​definition.yaml Registers the CanvasNet filter for code-quality documentation. No findings.
docs/​build_notes/​definition.yaml Registers the CanvasNet filter for build-notes generation. No findings.
AGENTS.md Documents diagram standards and CanvasNet guidance. No findings.
.github/​standards/​diagram-documentation.md Defines diagram selection, source, output, and maintenance standards. Nit (1 vote): The rule references nonexistent docs/sysml2/; make it conditional or add the referenced model.
.github/​skills/​canvasnet/​SKILL.md Documents CanvasNet diagram authoring and verification. Critical (2 votes): The front-matter description exceeds the repository’s 120-character Markdown lint limit.
.config/​dotnet-tools.json Pins the CanvasNet command-line tool. Moderate (1 vote): The build workflow’s tool-version capture list omits canvasnet, so the generated version report will not identify it.

Review effort: Lite

Comment thread .github/skills/canvasnet/SKILL.md Resolved
Comment thread README.md Resolved
Comment thread docs/filters/canvasnet.lua Resolved
Comment thread docs/user_guide/introduction.md Resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 7, 2026 00:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

An active documentation issue remains because the diagram standard directs authors to a nonexistent docs/sysml2/ tree despite the repository’s SysML-agnostic design.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Low severity Point SysML guidance to an existing, authoritative documentation tree

.github/​standards/​diagram-documentation.md:43

This rule points authors to docs/sysml2/, but this repository has no such tree and the design describes the model as SysML-agnostic. Make the SysML2 guidance conditional or point this repository's authoritative structure at docs/design/ so future diagram authors are not directed to a nonexistent source.

4 resolved since last review

Review effort: Lite

@Malcolmnixon
Malcolmnixon merged commit b9cef99 into main Nov 7, 2026
7 checks passed
@Malcolmnixon
Malcolmnixon deleted the docs/architecture-diagram branch November 7, 2026 01:01
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