Skip to content

Add SysML2 architecture model and enhance documentation compliance#110

Merged
Malcolmnixon merged 4 commits into
mainfrom
feature/sysml2-architecture-model
Jul 11, 2026
Merged

Add SysML2 architecture model and enhance documentation compliance#110
Malcolmnixon merged 4 commits into
mainfrom
feature/sysml2-architecture-model

Conversation

@Malcolmnixon

Copy link
Copy Markdown
Member

This pull request introduces significant improvements to the agent automation framework, focusing on enhanced traceability, structured planning, and more rigorous quality validation. Key changes include the addition of a dedicated planning agent, expanded and clarified reporting templates for all agents, and stricter enforcement of companion artifact deliverables across the development lifecycle. The quality assessment process is now more comprehensive, with explicit checks for verification documentation, review sets, and repository structure compliance.

Agent Workflow and Orchestration Enhancements:

  • Added a new planning.agent.md that defines a structured process for codebase investigation, implementation planning, companion artifact identification, risk and feasibility analysis, and explicit reporting of unknowns. The planning agent produces a detailed report and a lean summary for downstream agents.
  • Refactored the implementation agent to use the new planning agent, with improved state transitions and explicit handling of planning results, companion artifact tables, and unknowns. The orchestration report template now references the planning report and clarifies reporting of incomplete or failed states. [1] [2] [3] [4] [5]

Quality Assessment and Compliance Improvements:

  • Expanded the quality agent's evaluation to require cross-referencing with the planning agent's companion artifact table, enforcing that all required artifacts are produced. The compliance checklist now includes new sections for verification documentation, review sets, and repository structure, with detailed criteria for each. [1] [2]
  • Updated the quality report template to include a report file reference and clarified evaluation criteria for all artifact categories.

Reporting and Documentation Consistency:

  • Standardized report templates across all agents (developer, formal-review, lint-fix, planning, implementation, quality), ensuring each includes a **Report** field referencing the saved artifact and consistent summary sections. [1] [2] [3] [4]
  • Updated developer and formal-review agent instructions to clarify companion artifact expectations and reporting requirements. [1] [2]

Tooling and Configuration Updates:

  • Added demaconsulting.sysml2tools.tool to .config/dotnet-tools.json and updated spelling configuration to recognize "sysml". [1] [2]

These changes collectively strengthen the project's compliance automation, traceability, and quality assurance processes.

…gaps

- Wire sysml2tools into dotnet-tools.json, .versionmark.yaml, lint.ps1, and
  the build.yaml design job (render Software Structure diagrams to
  docs/design/generated before Pandoc HTML generation)
- Add docs/sysml2/ model (system + Demo unit) and design-views (Software
  Structure and TemplateDotNetLibrary views)
- Embed rendered SVG diagrams in docs/design/introduction.md and the
  system/unit design docs
- Extensively refactor docs/design/introduction.md to follow the template
  (Purpose, Scope, Software Structure, Folder Layout, Document Conventions,
  Companion Artifact Structure, References)
- Extensively refactor .reviewmark.yaml with new context blocks and
  review-sets (Purpose, Decomposition, Architecture, Design, Verification,
  AllRequirements, Demo, and per-OTS-item sets)
- Move system-level design/reqstream/verification docs to top level to match
  the reference template convention, fix heading depths and mandatory
  sections in design/verification docs, and add the missing OTS design
  (docs/design/ots.md + docs/design/ots/*.md) and verification
  (docs/verification/ots.md) documentation
- Remove an unrequested/untraceable NuGet package metadata interface claim
  from the system design flagged by formal review

Verified via dotnet reqstream/versionmark/reviewmark/sysml2tools --lint,
markdownlint-cli2, cspell, yamllint, dotnet format, and formal-review agents
(gpt-5.4-mini) across all affected review-sets.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 11, 2026 15:52

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.

Pull request overview

This PR introduces a SysML2-based architecture model under docs/sysml2/, integrates SysML2Tools into linting/CI, and updates documentation/standards to enforce stricter structure and traceability expectations across requirements, design, verification, and review-sets.

Changes:

  • Added a SysML2 model + rendered design views, and integrated SysML2Tools into lint.ps1 and the CI docs build.
  • Restructured and expanded design/verification documentation (including new OTS overview + per-OTS design docs) and updated Pandoc definition manifests.
  • Updated agent orchestration docs/templates and multiple standards to formalize heading-depth rules, review-set structure, and artifact expectations.

Reviewed changes

Copilot reviewed 51 out of 52 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
requirements.yaml Updates root ReqStream include path for system-level requirements.
lint.ps1 Adds SysML2Tools linting when docs/sysml2 exists.
docs/verification/template-dot-net-library/demo.md Adjusts heading depth/structure and replaces requirements-coverage table with acceptance criteria.
docs/verification/template-dot-net-library.md Renames “Strategy” → “Approach” and removes requirements-coverage table.
docs/verification/ots.md Adds repository-level OTS verification overview document.
docs/verification/introduction.md Updates verification intro prose and companion-artifact structure wording.
docs/verification/definition.yaml Updates verification document assembly inputs and adds ots.md.
docs/sysml2/views/design-views.sysml Defines named views for rendered design diagrams.
docs/sysml2/model/template-dot-net-library/demo.sysml Adds SysML2 unit part definition for Demo with artifact references.
docs/sysml2/model/template-dot-net-library.sysml Adds SysML2 system part definition + composition.
docs/reqstream/template-dot-net-library.yaml Adds system-level requirements file for the Template DotNet Library.
docs/design/template-dot-net-library/demo.md Enhances unit design doc and embeds SysML2-generated diagram.
docs/design/template-dot-net-library.md Updates system design structure and embeds SysML2-generated diagram.
docs/design/ots/xunit.md Adds OTS integration design for xUnit.
docs/design/ots/weasyprint.md Adds OTS integration design for WeasyPrint.
docs/design/ots/versionmark.md Adds OTS integration design for VersionMark.
docs/design/ots/sonarmark.md Adds OTS integration design for SonarMark.
docs/design/ots/sarifmark.md Adds OTS integration design for SarifMark.
docs/design/ots/reviewmark.md Adds OTS integration design for ReviewMark.
docs/design/ots/reqstream.md Adds OTS integration design for ReqStream.
docs/design/ots/pandoc.md Adds OTS integration design for Pandoc.
docs/design/ots/fileassert.md Adds OTS integration design for FileAssert.
docs/design/ots/buildmark.md Adds OTS integration design for BuildMark.
docs/design/ots.md Adds repository-level OTS integration design overview document.
docs/design/introduction.md Updates design intro to reference SysML2 model and embeds rendered diagram.
docs/design/definition.yaml Updates design document assembly inputs to include new system-level + OTS docs.
AGENTS.md Updates agent guidance to prefer SysML2 model, adds sysml2 folder, and standardizes reporting fields.
.versionmark.yaml Adds SysML2Tools version extraction to VersionMark configuration.
.reviewmark.yaml Expands needs-review patterns and refactors review-sets (adds SysML2 coverage).
.github/workflows/build.yaml Adds SysML2Tools rendering step and captures tool version for sysml2tools.
.github/standards/verification-documentation.md Updates verification-doc structure rules and mandatory section expectations.
.github/standards/testing-principles.md Trims redundant header content; keeps core testing principles.
.github/standards/technical-documentation.md Adds explicit heading-depth rule and clarifies generated-folder policy.
.github/standards/sysml2-modeling.md Introduces SysML2 modeling standard (structure, views, build/lint integration).
.github/standards/software-items.md Extends item taxonomy (adds Shared Package) and updates artifact model.
.github/standards/reviewmark-usage.md Updates ReviewMark conventions (context files, patterns, hierarchy) and adds SysML2 coverage.
.github/standards/reqstream-usage.md Updates ReqStream structure guidance (system file at root; shared packages) and examples.
.github/standards/design-documentation.md Updates design-doc structure rules to incorporate SysML2-derived structure and heading-depth rule.
.github/standards/csharp-testing.md Trims redundant header text; keeps quality checks.
.github/standards/csharp-language.md Trims redundant header text; keeps examples/standards.
.github/standards/coding-principles.md Tightens wording and formatting of core coding principles and anti-patterns.
.github/skills/sysml2tools-query/SKILL.md Adds a skill guide for querying the SysML2 model via SysML2Tools.
.github/agents/template-sync.agent.md Adds a new template-sync orchestrator agent definition.
.github/agents/software-architect.agent.md Updates terminology to include Shared Package.
.github/agents/quality.agent.md Expands quality checklist to include planning-table cross-references and verification docs.
.github/agents/planning.agent.md Adds a new planning agent definition and report template.
.github/agents/lint-fix.agent.md Standardizes lint-fix report metadata fields.
.github/agents/implementation.agent.md Refactors implementation agent to use the new planning agent and updated report fields.
.github/agents/formal-review.agent.md Clarifies ReviewMark file ordering (context vs files) and standardizes report metadata.
.github/agents/developer.agent.md Adds template-counterpart check for newly created files and standardizes report metadata.
.cspell.yaml Adds “sysml” to spelling dictionary.
.config/dotnet-tools.json Adds demaconsulting.sysml2tools.tool as a local .NET tool.
Comments suppressed due to low confidence (1)

docs/design/template-dot-net-library.md:5

  • This SVG is generated by SysML2Tools into docs/design/generated/, not alongside this markdown file. As written, the image reference will be broken in the rendered Design document unless it points at the generated folder.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/design/introduction.md
Comment thread docs/design/template-dot-net-library/demo.md
Comment thread docs/design/ots.md
Comment thread docs/verification/ots.md
Comment thread .reviewmark.yaml
Comment thread .github/standards/reqstream-usage.md
- Add sysml2tools as an OTS item, mirroring the other pipeline tools: create
  docs/reqstream/ots/sysml2tools.yaml, docs/design/ots/sysml2tools.md,
  docs/verification/ots/sysml2tools.md; wire into requirements.yaml,
  docs/design/definition.yaml, docs/verification/definition.yaml,
  docs/design/ots.md, docs/verification/ots.md, docs/design/introduction.md,
  and add an OTS-SysML2Tools review-set to .reviewmark.yaml
- Fix References sections in docs/design/introduction.md and
  docs/verification/introduction.md to use document-name-only bullets
  instead of direct URL links to internal docs/ source files, per the
  technical-documentation.md standard, as flagged by formal review
- Remove an unrequested/untraceable NuGet package metadata interface claim
  from the system design flagged by formal review

Verified via dotnet reqstream/reviewmark/sysml2tools --lint, markdownlint-cli2,
cspell, yamllint, dotnet format, and formal-review agents (gpt-5.4-mini)
across all affected review-sets, including the new OTS-SysML2Tools set.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 11, 2026 16:17

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.

Pull request overview

Copilot reviewed 54 out of 55 changed files in this pull request and generated 7 comments.

Comment thread .github/workflows/build.yaml
Comment thread docs/design/definition.yaml
Comment thread docs/verification/ots/sysml2tools.md Outdated
Comment thread docs/verification/ots/sysml2tools.md Outdated
Comment thread docs/verification/ots/sysml2tools.md Outdated
Comment thread docs/verification/ots/sysml2tools.md Outdated
Comment thread docs/verification/ots/sysml2tools.md Outdated
…Assert SVG checks

- build.yaml referenced SysML2Tools_LintSelfTest/SysML2Tools_RenderSvgSelfTest requirement
  evidence, but never ran dotnet sysml2tools --validate to produce that TRX, causing
  ReqStream --enforce to fail CI with 2 unsatisfied requirements. Add the missing
  "Run SysML2Tools self-validation" step in the design-docs job, matching FileAssert's
  reference implementation placement (before the render step).
- Add direct FileAssert checks (SysML2Tools_SoftwareStructureViewSvg,
  SysML2Tools_TemplateDotNetLibraryViewSvg) asserting each rendered view's SVG exists in
  docs/design/generated/ and is well-formed XML with an <svg> root element, strengthening
  Template-OTS-SysML2Tools-Render's evidence beyond the tool's internal self-test fixture.
- Update docs/design/ots/sysml2tools.md and docs/verification/ots/sysml2tools.md to
  document the new FileAssert-based verification evidence.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 11, 2026 16:33

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.

Pull request overview

Copilot reviewed 55 out of 56 changed files in this pull request and generated 8 comments.

Comments suppressed due to low confidence (1)

docs/design/template-dot-net-library.md:55

  • The system design’s build/verification OTS dependency list omits SysML2Tools, even though this PR adds SysML2Tools integration (lint + render) and dedicated design/verification artifacts. The Dependencies section should include SysML2Tools for completeness and to keep it consistent with docs/design/ots.md and docs/design/ots/sysml2tools.md.

Comment thread docs/verification/ots/sysml2tools.md Outdated
Comment thread docs/verification/ots/sysml2tools.md Outdated
Comment thread docs/verification/ots/sysml2tools.md Outdated
Comment thread docs/verification/ots/sysml2tools.md Outdated
Comment thread docs/verification/ots/sysml2tools.md Outdated
Comment thread docs/verification/ots/sysml2tools.md Outdated
Comment thread docs/verification/ots/sysml2tools.md Outdated
Comment thread .github/standards/verification-documentation.md
All 11 OTS verification documents started at heading depth 1 (# {Item} Verification)
instead of depth 2, inconsistent with docs/design/ots/*.md (which correctly start at
depth 2) and with the sibling FileAssert repository's reference implementation. Shift
each file's headings down one level: top heading is now ##, with Required
Functionality/Verification Approach/Test Scenarios/Requirements Coverage at ### and
individual test scenario names at ####.

Verified via markdownlint-cli2, cspell, dotnet reviewmark --lint, and formal-review
agents (gpt-5.4-mini) on TemplateDotNetLibrary-Verification and OTS-SysML2Tools.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 11, 2026 16:51

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.

Pull request overview

Copilot reviewed 65 out of 66 changed files in this pull request and generated 1 comment.

Comment thread .github/agents/planning.agent.md
@Malcolmnixon Malcolmnixon merged commit 4e3beaa into main Jul 11, 2026
7 checks passed
@Malcolmnixon Malcolmnixon deleted the feature/sysml2-architecture-model branch July 11, 2026 18:43
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