Skip to content

fix(npr7150): list only usages in the mapping and classification registers - #26

Open
HuiJun wants to merge 1 commit into
mainfrom
fix/npr7150-registers-usages
Open

HuiJun wants to merge 1 commit into
mainfrom
fix/npr7150-registers-usages

Conversation

@HuiJun

@HuiJun HuiJun commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The NPR7150 registers listed reusable definitions as project rows:

  • RequirementMappingEntries returned every element carrying @RequirementMapping, so an annotated requirement def became a row of RequirementsMappingRegister and AssuranceTaskRegister.
  • SoftwareClassificationRegister listed a part def specializing SoftwareSystem as a system containing software.

OpenSysML's NPR 7150.2D matrix check counts only usages, so a generated matrix could show a row the check does not credit. Both queries now keep usages only:

RequirementMappingEntries      = WhereType(WhereMetadata(...), type = "RequirementUsage")
SoftwareClassificationRegister = Project(WhereType(WhereType(..., "NPR7150::SoftwareSystem"), type = "PartUsage"), ...)

Only libraries/NPR7150.sysml changes, plus its one checksum line in .meta.json, which write-project-meta.py --check requires; the created time, index, README table and engine-contract.json are untouched.

Checked: validate-libraries.sh is clean (0 errors, 0 warnings), the meta and README checks pass, and with this file vendored into OpenSysML the NPR 7150 demo matrix renders byte-identical to before (it holds no annotated definitions). The filter itself was checked with the equivalent inline queries on a model holding one annotated definition and one usage of each kind: the definition rows drop, the usage rows stay.


Captain opened this PR for Jason
Implemented in session Implement NPR 7150.2D library like NPR 7123.1
Review with Devin · Open in Devin Desktop


…sters

Co-Authored-By: jason.han <hanhuijun@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

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