You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add the SysML2 self-model of the software structure - #143
Adds docs/sysml2/, a SysML v2 self-model of SysML2Tools' software structure, following the template's sysml2-modeling.md standard and the Rendering repository's docs/sysml2/ pattern. This addresses the missing self-model flagged by review in #141.
Model: 78 .sysml files modeling 4 systems, 19 subsystems, 52 units, and 13 OTS items, plus 137 dependency statements and 24 views.
Design docs:docs/design/introduction.md replaces the hand-maintained structure tree and OTS list with the rendered SoftwareStructureView. 57 design documents embed their system or subsystem view.
Tooling:
demaconsulting.sysml2tools.tool 0.3.0-beta.3 (the latest published) is pinned in the tool manifest.
lint.ps1 runs sysml2tools lint over the model.
CI self-validates the tool and renders the views into docs/design/generated.
VersionMark captures the tool version.
ReviewMark and FileAssert configuration is added, along with OTS requirements and verification for the tool.
Dogfooding: all 78 files lint clean with the published tool and with the current main build (default and --strict-unresolved).
Software Structure view (published tool):
Tool system view:
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)
Before submitting this pull request, ensure you have completed the following:
Build and Test
Code builds successfully and all tests pass: pwsh ./build.ps1 (6365 tests, 0 failures)
Code produces zero warnings
Code Quality
New code has appropriate XML documentation comments (not applicable; no C# changes)
Static analyzer warnings have been addressed (not applicable)
Quality Checks
Please run the following checks before submitting:
All linters pass: pwsh ./lint.ps1 (passed, including the new sysml2tools lint step)
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
The views are spec-conformant General Views of part definitions: each definition shows its parts compartment, as in Rendering's self-model. Making the views show composition trees and dependency edges is being evaluated against the OMG Pilot and will be a follow-up.
CI renders with the pinned published tool (0.3.0-beta.3), so the generated design diagrams use that release's notation until the pin is bumped.
Model the four systems, 19 subsystems, 52 units and 13 OTS items under docs/sysml2, lint the model from lint.ps1 with the pinned published sysml2tools, render the views into the design document, and cover the model in ReviewMark and the OTS requirements.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
A moderate documentation-modeling issue remains because ExportCommand’s filter parser/evaluator collaborator is missing from the self-model, causing dependency and impact queries to be incomplete.
Adds a SysML v2 self-model for SysML2Tools and integrates it into documentation, linting, CI rendering, version tracking, and requirements verification.
Changes:
Adds SysML model files describing systems, subsystems, units, dependencies, OTS items, metadata, and documentation views.
Replaces the hand-maintained software-structure tree with rendered SysML2 diagrams embedded throughout the design documentation.
Adds published-tool validation, model linting, CI rendering, FileAssert, ReviewMark, VersionMark, and OTS requirements and verification integration.
File
Description
requirements.yaml
Registers the SysML2Tools OTS requirements in the repository requirements configuration.
lint.ps1
Adds linting of the SysML2 self-model to the repository lint workflow.
docs/verification/ots/sysml2tools.md
Documents verification scenarios and evidence for the published SysML2Tools package.
docs/verification/ots.md
Lists the SysML2Tools OTS verification documentation.
docs/verification/definition.yaml
Registers the SysML2Tools verification document.
docs/sysml2/views/design-views.sysml
Declares the rendered software-structure and subsystem design views.
Declare every package exactly once: one uniquely named package per model
file (<System>_<Item>), with explicit private imports between packages and
qualified cross-package dependency targets. Parenthesize the view filter
(filter not (@sysml::Documentation)). View content is unchanged; rendered
output is byte-identical with the published tool.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Active moderate, nit, and critical findings remain, including a missing dependency, inaccurate verification coverage, and a lint gate that does not enforce unresolved-reference failures.
…wording, fail lint on sysml2tools warnings
- ExportCommand depends on FilterExpressionEvaluator; QueryCommand on QueryVerb and SysmlNode.
- DiagnosticFormatter doc no longer claims export uses it.
- OTS design/verification/requirement text states exactly what the published self-test proves
and that unresolved references are warnings until --strict-unresolved is available.
- lint.ps1 fails on any sysml2tools warning line (pinned 0.3.0-beta.3 rejects --strict-unresolved).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add the repository-wide uniqueness rule with a subsystem-path-qualified
fallback, and use one repository-level views package, matching
demaconsulting/SysML2Tools#143 (SysML2ToolsDesignViews).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Malcolmnixon
pushed a commit
to demaconsulting/Agents
that referenced
this pull request
Nov 20, 2026
Add the repository-wide uniqueness rule with a subsystem-path-qualified
fallback, and use one repository-level views package, matching
demaconsulting/SysML2Tools#143 (SysML2ToolsDesignViews).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
An active moderate finding remains because the self-test model omits dependencies for collaborators it directly exercises, causing dependency and impact queries to be incomplete.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Add Validation's missing workspace, rendering, and export dependencies
Validation directly loads workspaces, invokes DiagramRenderer with the SVG/PNG renderers, and constructs the export result/serializer (see src/DemaConsulting.SysML2Tools.Tool/SelfTest/Validation.cs:300-358, 412-415, 674-696). The model currently records only Context, Program, and PathHelpers, so dependency and impact queries omit the collaborators exercised by the self-test runner. Add dependencies for WorkspaceLoader, DiagramRenderer, OtsDependencies::DemaRendering, and the Tool ExportCommand unit.
* SysML2: one uniquely named package per file; no package merging
SysML v2 has no package merging; same-named root packages in different
files are duplicate members of the global namespace (Pilot: "Duplicate
of other owned member name"). Declare one uniquely named package per
file, named {System}_{Subsystem}Subsystem / {System}_{Unit}, reference
other files through private import or qualified names, and write
filter not (@x); with parentheses.
See demaconsulting/SysML2Tools#143, #146, #147.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* SysML2: repository-wide unique package names; one {RepoName}DesignViews
Add the repository-wide uniqueness rule with a subsystem-path-qualified
fallback, and use one repository-level views package, matching
demaconsulting/SysML2Tools#143 (SysML2ToolsDesignViews).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* SysML2: address review wording
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Malcolm Nixon <Malcolm.Nixon@hiarc.inc>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Malcolmnixon
added a commit
to demaconsulting/Agents
that referenced
this pull request
Nov 20, 2026
* SysML2: one uniquely named package per file; no package merging
SysML v2 has no package merging; same-named root packages in different
files are duplicate members of the global namespace (Pilot: "Duplicate
of other owned member name"). Declare one uniquely named package per
file, named {System}_{Subsystem}Subsystem / {System}_{Unit}, reference
other files through private import or qualified names, and write
filter not (@x); with parentheses.
See demaconsulting/SysML2Tools#143, #146, #147.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* SysML2: repository-wide unique package names; one {RepoName}DesignViews
Add the repository-wide uniqueness rule with a subsystem-path-qualified
fallback, and use one repository-level views package, matching
demaconsulting/SysML2Tools#143 (SysML2ToolsDesignViews).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* SysML2: address review wording
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Malcolm Nixon <Malcolm.Nixon@hiarc.inc>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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
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.
Pull Request
Description
Adds
docs/sysml2/, a SysML v2 self-model of SysML2Tools' software structure, following the template'ssysml2-modeling.mdstandard and the Rendering repository'sdocs/sysml2/pattern. This addresses the missing self-model flagged by review in #141..sysmlfiles modeling 4 systems, 19 subsystems, 52 units, and 13 OTS items, plus 137dependencystatements and 24 views.docs/design/introduction.mdreplaces the hand-maintained structure tree and OTS list with the renderedSoftwareStructureView. 57 design documents embed their system or subsystem view.demaconsulting.sysml2tools.tool0.3.0-beta.3 (the latest published) is pinned in the tool manifest.lint.ps1runssysml2tools lintover the model.docs/design/generated.--strict-unresolved).Software Structure view (published tool):
Tool system view:
Type of Change
Related Issues
Follows up the review comments on #141.
Pre-Submission Checklist
Before submitting this pull request, ensure you have completed the following:
Build and Test
pwsh ./build.ps1(6365 tests, 0 failures)Code Quality
Quality Checks
Please run the following checks before submitting:
pwsh ./lint.ps1(passed, including the newsysml2tools lintstep)Testing
Documentation
Additional Notes
partscompartment, as in Rendering's self-model. Making the views show composition trees and dependency edges is being evaluated against the OMG Pilot and will be a follow-up.