Skip to content

fix: MTMT opening error + skill updates for per-page flow numbering - #144

Merged
Hacks4Snacks merged 2 commits into
mainfrom
hacks4snacks/spitviewflownmbering
Oct 21, 2026
Merged

Hacks4Snacks merged 2 commits into
mainfrom
hacks4snacks/spitviewflownmbering

Conversation

@Hacks4Snacks

Copy link
Copy Markdown
Owner

This PR includes changes to improve agent flow numbering when there are multiple views and to address an issue with threat models opening in MTMT.

Comment on lines +132 to +140
foreach (string name in threat.Properties.Keys.OrderBy(name => name, StringComparer.Ordinal))
{
if (!metadata.PropertiesMetaData.Any(datum => string.Equals(datum.Name, name, StringComparison.Ordinal)))
{
// MTMT initializes and saves only declared properties, including private override markers.
bool mitigation = string.Equals(name, "Mitigation", StringComparison.Ordinal);
metadata.PropertiesMetaData.Add(Datum(name, name, "tmforge:threat-property:" + name, mitigation ? 2 : 0, !mitigation));
}
}
@Hacks4Snacks
Hacks4Snacks merged commit 58dfae8 into main Oct 21, 2026
17 checks passed
@Hacks4Snacks
Hacks4Snacks deleted the hacks4snacks/spitviewflownmbering branch October 21, 2026 14:08
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