`) -- a `\b` between two non-word
+ # characters can never fire, so Angular's structural directive
+ # never matched. Pulled out with no leading `\b` (self-delimiting).
"branch": re.compile(
- r'<(?:details|summary|noscript)\b|\b(?:v-if|ng-if|\*ngIf|x-if|hx-swap)="[^"]*"|\{%\s*(?:if|elif|else|endif)\s*[^%]*%\}|\{\{#if\s+[^}]+\}\}',
+ r'<(?:details|summary|noscript)\b|\b(?:v-if|ng-if|x-if|hx-swap)="[^"]*"|\*ngIf="[^"]*"|\{%\s*(?:if|elif|else|endif)\s*[^%]*%\}|\{\{#if\s+[^}]+\}\}',
re.I,
),
# 2. args (Parameters / Coupling)
@@ -4794,8 +4799,16 @@ class PrismConfigSchema(TypedDict):
# --- PHASE 2: RISK ENGINE (Structural Integrity & Debt) ---
# 6. safety (Defensive Programming / Validation)
# Browser security and validation constraints.
+ # BUG FIX: `pattern="..."`/`sandbox="..."`/`rel="noopener..."`/
+ # `integrity="..."` were inside the shared `\b(...)\b` group.
+ # Each ends on a literal `"`, and the char immediately after a
+ # closing attribute quote (a space or `>`) is also non-word --
+ # `\b` between two non-word characters can never fire, so all
+ # four never matched. Pulled out with no trailing `\b`
+ # (self-delimiting on the closing quote).
"safety": re.compile(
- r'\b(?:required|readonly|disabled|pattern="[^"]*"|sandbox="[^"]*"|rel="noopener(?: noreferrer)?"|integrity="[^"]*")\b|
`) with no `=` at
+ # all -- the old pattern required `[ \t]*=` unconditionally
+ # after every alternative, so the dominant real-world form of
+ # these two never matched. Made the `=...` suffix optional only
+ # for hidden/inert; the rest (class/style/tabindex/etc.) always
+ # require an explicit value in real markup, so they keep the
+ # mandatory `=`.
"decorators": re.compile(
- r'\b(?:class|style|hidden|inert|tabindex|draggable|spellcheck|dir|lang|translate)[ \t]*=|hx-[a-z-]+="[^"]*"|x-[a-z-]+="[^"]*"|v-[a-z-]+="[^"]*"',
+ r"\b(?:hidden|inert)\b(?:[ \t]*=)?"
+ r"|\b(?:class|style|tabindex|draggable|spellcheck|dir|lang|translate)[ \t]*="
+ r'|hx-[a-z-]+="[^"]*"|x-[a-z-]+="[^"]*"|v-[a-z-]+="[^"]*"',
re.I,
),
# 20. generics (Generics / Type Parameters)
"generics": re.compile(r"
]*>", re.I),
# 21. comprehensions (Iterators / Comprehensions)
# Declarative array iteration in markup.
+ # BUG FIX: same leading-`\b`-before-`*` trap as `branch` above --
+ # `*ngFor` is always preceded by whitespace in real markup, so
+ # the shared leading `\b` (boundary between two non-word chars)
+ # never fired. Pulled out with no leading `\b`.
"comprehensions": re.compile(
- r'\b(?:v-for|ng-repeat|\*ngFor|x-for)="[^"]*"|\{%\s*for\b[^%]*%\}|\{\{#each\b[^}]*\}\}',
+ r'\b(?:v-for|ng-repeat|x-for)="[^"]*"|\*ngFor="[^"]*"|\{%\s*for\b[^%]*%\}|\{\{#each\b[^}]*\}\}',
re.I,
),
# 22. scientific (Numerical / Compute Libraries)
@@ -4880,7 +4912,15 @@ class PrismConfigSchema(TypedDict):
),
# 23. heat_triggers (Metaprogramming & Reflection)
# Extreme logic heat: heavy inline styles and JS pollution.
- "reflection_metaprogramming": re.compile(r'style="[^"]*;"|\bon[a-z]+="[^"]*"', re.I),
+ # BUG FIX: `style="[^"]*;"` required a literal trailing `;`
+ # immediately before the closing quote. CSS allows omitting the
+ # last declaration's semicolon, and most real inline styles
+ # (hand-written or minified) don't carry one -- confirmed
+ # `style="color:red"` and `style="color:red;font-size:12px"`
+ # (multi-declaration, no trailing `;`) never matched under the
+ # old pattern. Dropped the semicolon requirement; presence of
+ # any inline style attribute is the actual intent here.
+ "reflection_metaprogramming": re.compile(r'style="[^"]*"|\bon[a-z]+="[^"]*"', re.I),
# 24. import (Dependency Inclusions)
"import": re.compile(
r'')
+ assert m and m.group(1) == "app.js"
+ m2 = pattern.search(' ')
+ assert m2 and m2.group(1) == "styles.css"
+
+
+def test_html_func_start_and_class_start_no_capture_group_expected():
+ # func_start/class_start don't capture a name in html (unlike many
+ # languages) -- they anchor on the tag keyword itself. Confirm the match
+ # span is the tag, and that they don't collide with each other.
+ func_start = HTML_RULES["func_start"]
+ class_start = HTML_RULES["class_start"]
+ assert func_start.search("-->")
+ assert not dead_code.search("this is live, uncommented code
")
+
+ macros = HTML_RULES["macros"]
+ assert macros.search('')
+ assert not macros.search("")
+
+
+def test_html_lexical_family_no_block_terminator_state_to_confuse():
+ """
+ Lexical-family audit (Rule per how_to_add_a_language.md): none of
+ html's rules track open/close comment-block state themselves -- every
+ keyword-presence rule matches via flat scanning. Confirms a stray
+ closing `-->` with no matching opener doesn't fool any rule into a
+ false structural match.
+ """
+ branch = HTML_RULES["branch"]
+ stray_close = 'some text --> '
+ assert branch.search(stray_close), "branch should still see v-if regardless of the stray --> before it"
+
+
+def test_html_redos_immunity_sweep():
+ """
+ ReDoS immunity sweep across html's unbounded-quantifier rules (mostly
+ `[^"]*"`-delimited attribute values, each a single quantifier bounded
+ by its own closing delimiter with no adjacent overlapping-charset
+ quantifier to backtrack against). Verified via a systematic scaling
+ sweep before writing this test (payload shapes: unterminated quotes,
+ parens, angle brackets, template braces, hyphen-chains, dotted calls,
+ at n=2000/8000/32000) -- nothing in html's rules exceeded 0.5s at
+ n=32000 against any shape, confirming linear behavior throughout. This
+ test locks that in with assert_redos_immune's subprocess-kill timeout.
+ """
+ assert_redos_immune(HTML_RULES["args"], ' ')
+ assert HTML_RULES["safety"].search(" ")
diff --git a/tests/golden_master_audit.json b/tests/golden_master_audit.json
index 8885b8b8..745c45ea 100644
--- a/tests/golden_master_audit.json
+++ b/tests/golden_master_audit.json
@@ -12,8 +12,8 @@
},
"Target Root Name": "data",
"Absolute Project Path": "/home/joe/nyx_projects/language-crucible/data",
- "Analysis ISO Timestamp": "2026-07-29T01:29:06.121501+00:00",
- "Total Scan Duration": "25.27 seconds"
+ "Analysis ISO Timestamp": "2026-07-29T02:40:34.453045+00:00",
+ "Total Scan Duration": "23.83 seconds"
},
"Source Control Footprint (Immutable Anchor)": {
"Active Branch": "main",
@@ -196,7 +196,7 @@
}
},
"health": {
- "avg_cognitive_load": 23.496,
+ "avg_cognitive_load": 23.539,
"avg_safety_score": 23.301,
"avg_tech_debt": 25.419,
"avg_documentation": 28.636
@@ -1664,7 +1664,7 @@
"file_count": 3,
"total_mass": 5.62,
"avg_exposures": {
- "cognitive_load": 2.45,
+ "cognitive_load": 4.66,
"safety_score": 0.0,
"tech_debt": 0.0,
"verification": 1.53,
@@ -1740,7 +1740,7 @@
"total_mass": 17.25,
"avg_exposures": {
"cognitive_load": 0.0,
- "safety_score": 1.8,
+ "safety_score": 1.72,
"tech_debt": 0.0,
"verification": 1.15,
"api_exposure": 6.74,
@@ -1764,7 +1764,7 @@
"file_count": 4,
"total_mass": 7.76,
"avg_exposures": {
- "cognitive_load": 6.27,
+ "cognitive_load": 14.64,
"safety_score": 0.0,
"tech_debt": 0.0,
"verification": 1.68,
@@ -289506,7 +289506,7 @@
},
"Average Risk Exposures": {
"Cognitive Load Exposure": "0.0%",
- "Error & Exception Exposure": "1.8%",
+ "Error & Exception Exposure": "1.72%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "1.15%",
"API Exposure": "6.74%",
@@ -289705,26 +289705,26 @@
},
"3. Architectural Profile": {
"Repository Archetype": "file_cluster_0",
- "Repository Drift (Z-Score)": 9.273,
+ "Repository Drift (Z-Score)": 9.361,
"Repository Fingerprint": {
- "file_cluster_0": 9.273,
- "file_cluster_1": 10.66,
- "file_cluster_2": 10.081,
- "file_cluster_3": 11.996,
- "file_cluster_4": 10.894,
- "file_cluster_5": 11.271,
- "file_cluster_6": 11.084,
- "file_cluster_7": 10.418,
- "file_cluster_8": 9.77,
- "file_cluster_9": 10.858,
- "file_cluster_10": 12.126,
- "file_cluster_11": 11.076,
- "file_cluster_12": 11.394,
- "file_cluster_13": 10.343,
- "file_cluster_14": 14.441,
- "file_cluster_15": 11.614,
- "file_cluster_16": 10.933,
- "file_cluster_17": 10.418
+ "file_cluster_0": 9.361,
+ "file_cluster_1": 10.755,
+ "file_cluster_2": 10.176,
+ "file_cluster_3": 12.066,
+ "file_cluster_4": 10.976,
+ "file_cluster_5": 11.359,
+ "file_cluster_6": 11.162,
+ "file_cluster_7": 10.514,
+ "file_cluster_8": 9.87,
+ "file_cluster_9": 10.936,
+ "file_cluster_10": 12.196,
+ "file_cluster_11": 11.13,
+ "file_cluster_12": 11.371,
+ "file_cluster_13": 10.428,
+ "file_cluster_14": 14.501,
+ "file_cluster_15": 11.689,
+ "file_cluster_16": 11.019,
+ "file_cluster_17": 10.499
},
"File Archetype": null,
"File Drift (Z-Score)": 0.0,
@@ -289742,7 +289742,7 @@
},
"4. Vulnerability & Risk Exposures": {
"Cognitive Load Exposure": "0.0%",
- "Error & Exception Exposure": "3.6%",
+ "Error & Exception Exposure": "3.44%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "2.3%",
"API Exposure": "13.49%",
@@ -289769,7 +289769,7 @@
"Function Parameters": 70,
"Function/Method Declarations": 0,
"Class/Entity Declarations": 7,
- "Defensive Programming Constructs": 23,
+ "Defensive Programming Constructs": 25,
"Type/Safety Bypasses": 1,
"High-Risk Execution Commands": 0,
"I/O and Network Boundaries": 28,
@@ -289782,11 +289782,11 @@
"UI / View Layer Components": 25,
"Closures and Anonymous Functions": 0,
"Global State Dependencies": 0,
- "Decorators and Annotations": 135,
+ "Decorators and Annotations": 136,
"Generic Type Abstractions": 0,
"Collection Iterators / Comprehensions": 0,
"Scientific & Mathematical Operations": 0,
- "Metaprogramming & Reflection": 0,
+ "Metaprogramming & Reflection": 1,
"Module Dependencies (Imports)": 2,
"Authorship Metadata": 0,
"Planned Work (TODOs)": 0,
@@ -294001,7 +294001,7 @@
"Static: Literature & Documentation": "25.0%"
},
"Average Risk Exposures": {
- "Cognitive Load Exposure": "6.27%",
+ "Cognitive Load Exposure": "14.64%",
"Error & Exception Exposure": "0.0%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "1.68%",
@@ -294201,26 +294201,26 @@
},
"3. Architectural Profile": {
"Repository Archetype": "file_cluster_8",
- "Repository Drift (Z-Score)": 6.452,
+ "Repository Drift (Z-Score)": 6.666,
"Repository Fingerprint": {
- "file_cluster_0": 7.365,
- "file_cluster_1": 7.852,
- "file_cluster_2": 6.969,
- "file_cluster_3": 9.969,
- "file_cluster_4": 8.94,
- "file_cluster_5": 8.949,
- "file_cluster_6": 9.083,
- "file_cluster_7": 7.77,
- "file_cluster_8": 6.452,
- "file_cluster_9": 8.843,
- "file_cluster_10": 10.167,
- "file_cluster_11": 9.312,
- "file_cluster_12": 9.171,
- "file_cluster_13": 8.281,
- "file_cluster_14": 12.845,
- "file_cluster_15": 9.563,
- "file_cluster_16": 8.611,
- "file_cluster_17": 8.209
+ "file_cluster_0": 7.529,
+ "file_cluster_1": 8.029,
+ "file_cluster_2": 7.16,
+ "file_cluster_3": 10.049,
+ "file_cluster_4": 9.095,
+ "file_cluster_5": 9.098,
+ "file_cluster_6": 9.212,
+ "file_cluster_7": 7.949,
+ "file_cluster_8": 6.666,
+ "file_cluster_9": 8.985,
+ "file_cluster_10": 10.235,
+ "file_cluster_11": 9.282,
+ "file_cluster_12": 8.515,
+ "file_cluster_13": 8.421,
+ "file_cluster_14": 12.954,
+ "file_cluster_15": 9.65,
+ "file_cluster_16": 8.753,
+ "file_cluster_17": 8.374
},
"File Archetype": null,
"File Drift (Z-Score)": 0.0,
@@ -294234,10 +294234,10 @@
"Raw Churn Frequency": 0.0,
"Authorship Centralization": 0.0,
"Ownership Entropy": 0.0,
- "Raw Cognitive Density": 0.217
+ "Raw Cognitive Density": 0.435
},
"4. Vulnerability & Risk Exposures": {
- "Cognitive Load Exposure": "10.62%",
+ "Cognitive Load Exposure": "22.08%",
"Error & Exception Exposure": "0.0%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "2.3%",
@@ -294282,7 +294282,7 @@
"Generic Type Abstractions": 0,
"Collection Iterators / Comprehensions": 0,
"Scientific & Mathematical Operations": 0,
- "Metaprogramming & Reflection": 0,
+ "Metaprogramming & Reflection": 1,
"Module Dependencies (Imports)": 0,
"Authorship Metadata": 0,
"Planned Work (TODOs)": 0,
@@ -294381,26 +294381,26 @@
},
"3. Architectural Profile": {
"Repository Archetype": "file_cluster_8",
- "Repository Drift (Z-Score)": 6.272,
+ "Repository Drift (Z-Score)": 6.613,
"Repository Fingerprint": {
- "file_cluster_0": 7.207,
- "file_cluster_1": 7.705,
- "file_cluster_2": 6.745,
- "file_cluster_3": 9.851,
- "file_cluster_4": 8.801,
- "file_cluster_5": 8.819,
- "file_cluster_6": 8.952,
- "file_cluster_7": 7.621,
- "file_cluster_8": 6.272,
- "file_cluster_9": 8.707,
- "file_cluster_10": 10.048,
- "file_cluster_11": 9.177,
- "file_cluster_12": 9.04,
- "file_cluster_13": 8.127,
- "file_cluster_14": 12.734,
- "file_cluster_15": 9.436,
- "file_cluster_16": 8.475,
- "file_cluster_17": 8.038
+ "file_cluster_0": 7.475,
+ "file_cluster_1": 7.985,
+ "file_cluster_2": 7.053,
+ "file_cluster_3": 9.995,
+ "file_cluster_4": 9.047,
+ "file_cluster_5": 9.056,
+ "file_cluster_6": 9.164,
+ "file_cluster_7": 7.904,
+ "file_cluster_8": 6.613,
+ "file_cluster_9": 8.936,
+ "file_cluster_10": 10.177,
+ "file_cluster_11": 9.187,
+ "file_cluster_12": 8.252,
+ "file_cluster_13": 8.357,
+ "file_cluster_14": 12.906,
+ "file_cluster_15": 9.593,
+ "file_cluster_16": 8.705,
+ "file_cluster_17": 8.302
},
"File Archetype": null,
"File Drift (Z-Score)": 0.0,
@@ -294414,7 +294414,7 @@
"Raw Churn Frequency": 0.0,
"Authorship Centralization": 0.0,
"Ownership Entropy": 0.0,
- "Raw Cognitive Density": 0.357
+ "Raw Cognitive Density": 0.429
},
"4. Vulnerability & Risk Exposures": {
"Cognitive Load Exposure": "5.0%",
@@ -294462,7 +294462,7 @@
"Generic Type Abstractions": 0,
"Collection Iterators / Comprehensions": 0,
"Scientific & Mathematical Operations": 0,
- "Metaprogramming & Reflection": 0,
+ "Metaprogramming & Reflection": 1,
"Module Dependencies (Imports)": 0,
"Authorship Metadata": 0,
"Planned Work (TODOs)": 0,
@@ -294561,26 +294561,26 @@
},
"3. Architectural Profile": {
"Repository Archetype": "file_cluster_8",
- "Repository Drift (Z-Score)": 6.351,
+ "Repository Drift (Z-Score)": 6.769,
"Repository Fingerprint": {
- "file_cluster_0": 7.28,
- "file_cluster_1": 7.769,
- "file_cluster_2": 6.975,
- "file_cluster_3": 9.91,
- "file_cluster_4": 8.885,
- "file_cluster_5": 8.878,
- "file_cluster_6": 9.018,
- "file_cluster_7": 7.688,
- "file_cluster_8": 6.351,
- "file_cluster_9": 8.779,
- "file_cluster_10": 10.113,
- "file_cluster_11": 9.262,
- "file_cluster_12": 9.108,
- "file_cluster_13": 8.228,
- "file_cluster_14": 12.832,
- "file_cluster_15": 9.506,
- "file_cluster_16": 8.54,
- "file_cluster_17": 8.182
+ "file_cluster_0": 7.543,
+ "file_cluster_1": 8.115,
+ "file_cluster_2": 7.346,
+ "file_cluster_3": 10.103,
+ "file_cluster_4": 9.174,
+ "file_cluster_5": 9.171,
+ "file_cluster_6": 9.284,
+ "file_cluster_7": 8.037,
+ "file_cluster_8": 6.769,
+ "file_cluster_9": 9.065,
+ "file_cluster_10": 10.29,
+ "file_cluster_11": 9.31,
+ "file_cluster_12": 8.373,
+ "file_cluster_13": 8.511,
+ "file_cluster_14": 13.044,
+ "file_cluster_15": 9.713,
+ "file_cluster_16": 8.829,
+ "file_cluster_17": 8.499
},
"File Archetype": null,
"File Drift (Z-Score)": 0.0,
@@ -294594,10 +294594,10 @@
"Raw Churn Frequency": 0.0,
"Authorship Centralization": 0.0,
"Ownership Entropy": 0.0,
- "Raw Cognitive Density": 0.185
+ "Raw Cognitive Density": 0.556
},
"4. Vulnerability & Risk Exposures": {
- "Cognitive Load Exposure": "9.46%",
+ "Cognitive Load Exposure": "31.48%",
"Error & Exception Exposure": "0.0%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "2.3%",
@@ -294638,11 +294638,11 @@
"UI / View Layer Components": 3,
"Closures and Anonymous Functions": 0,
"Global State Dependencies": 0,
- "Decorators and Annotations": 6,
+ "Decorators and Annotations": 7,
"Generic Type Abstractions": 0,
"Collection Iterators / Comprehensions": 0,
"Scientific & Mathematical Operations": 0,
- "Metaprogramming & Reflection": 0,
+ "Metaprogramming & Reflection": 2,
"Module Dependencies (Imports)": 0,
"Authorship Metadata": 0,
"Planned Work (TODOs)": 0,
@@ -294924,7 +294924,7 @@
"Static: Literature & Documentation": "33.3%"
},
"Average Risk Exposures": {
- "Cognitive Load Exposure": "2.45%",
+ "Cognitive Load Exposure": "4.66%",
"Error & Exception Exposure": "0.0%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "1.53%",
@@ -295304,26 +295304,26 @@
},
"3. Architectural Profile": {
"Repository Archetype": "file_cluster_8",
- "Repository Drift (Z-Score)": 7.321,
+ "Repository Drift (Z-Score)": 7.483,
"Repository Fingerprint": {
- "file_cluster_0": 7.916,
- "file_cluster_1": 8.259,
- "file_cluster_2": 8.902,
- "file_cluster_3": 10.184,
- "file_cluster_4": 9.233,
- "file_cluster_5": 8.782,
- "file_cluster_6": 9.192,
- "file_cluster_7": 7.974,
- "file_cluster_8": 7.321,
- "file_cluster_9": 9.099,
- "file_cluster_10": 10.234,
- "file_cluster_11": 9.501,
- "file_cluster_12": 9.346,
- "file_cluster_13": 8.753,
- "file_cluster_14": 13.736,
- "file_cluster_15": 9.617,
- "file_cluster_16": 8.795,
- "file_cluster_17": 9.308
+ "file_cluster_0": 8.045,
+ "file_cluster_1": 8.403,
+ "file_cluster_2": 9.03,
+ "file_cluster_3": 10.246,
+ "file_cluster_4": 9.361,
+ "file_cluster_5": 8.91,
+ "file_cluster_6": 9.3,
+ "file_cluster_7": 8.123,
+ "file_cluster_8": 7.483,
+ "file_cluster_9": 9.215,
+ "file_cluster_10": 10.286,
+ "file_cluster_11": 9.464,
+ "file_cluster_12": 8.743,
+ "file_cluster_13": 8.864,
+ "file_cluster_14": 13.823,
+ "file_cluster_15": 9.687,
+ "file_cluster_16": 8.912,
+ "file_cluster_17": 9.433
},
"File Archetype": null,
"File Drift (Z-Score)": 0.0,
@@ -295337,10 +295337,10 @@
"Raw Churn Frequency": 0.0,
"Authorship Centralization": 0.0,
"Ownership Entropy": 0.0,
- "Raw Cognitive Density": 0.185
+ "Raw Cognitive Density": 0.37
},
"4. Vulnerability & Risk Exposures": {
- "Cognitive Load Exposure": "7.35%",
+ "Cognitive Load Exposure": "13.98%",
"Error & Exception Exposure": "0.0%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "2.3%",
@@ -295385,7 +295385,7 @@
"Generic Type Abstractions": 0,
"Collection Iterators / Comprehensions": 0,
"Scientific & Mathematical Operations": 0,
- "Metaprogramming & Reflection": 0,
+ "Metaprogramming & Reflection": 1,
"Module Dependencies (Imports)": 0,
"Authorship Metadata": 0,
"Planned Work (TODOs)": 0,
diff --git a/tests/golden_master_zero_dep_audit.json b/tests/golden_master_zero_dep_audit.json
index 7aac62e4..a9656e9e 100644
--- a/tests/golden_master_zero_dep_audit.json
+++ b/tests/golden_master_zero_dep_audit.json
@@ -12,8 +12,8 @@
},
"Target Root Name": "data",
"Absolute Project Path": "/home/joe/nyx_projects/language-crucible/data",
- "Analysis ISO Timestamp": "2026-07-29T01:29:38.552228+00:00",
- "Total Scan Duration": "23.59 seconds"
+ "Analysis ISO Timestamp": "2026-07-29T02:41:03.794482+00:00",
+ "Total Scan Duration": "22.26 seconds"
},
"Source Control Footprint (Immutable Anchor)": {
"Active Branch": "main",
@@ -196,7 +196,7 @@
}
},
"health": {
- "avg_cognitive_load": 23.496,
+ "avg_cognitive_load": 23.539,
"avg_safety_score": 23.301,
"avg_tech_debt": 25.419,
"avg_documentation": 28.636
@@ -1664,7 +1664,7 @@
"file_count": 3,
"total_mass": 5.62,
"avg_exposures": {
- "cognitive_load": 2.45,
+ "cognitive_load": 4.66,
"safety_score": 0.0,
"tech_debt": 0.0,
"verification": 1.53,
@@ -1740,7 +1740,7 @@
"total_mass": 17.25,
"avg_exposures": {
"cognitive_load": 0.0,
- "safety_score": 1.8,
+ "safety_score": 1.72,
"tech_debt": 0.0,
"verification": 1.15,
"api_exposure": 6.74,
@@ -1764,7 +1764,7 @@
"file_count": 4,
"total_mass": 7.76,
"avg_exposures": {
- "cognitive_load": 6.27,
+ "cognitive_load": 14.64,
"safety_score": 0.0,
"tech_debt": 0.0,
"verification": 1.68,
@@ -289506,7 +289506,7 @@
},
"Average Risk Exposures": {
"Cognitive Load Exposure": "0.0%",
- "Error & Exception Exposure": "1.8%",
+ "Error & Exception Exposure": "1.72%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "1.15%",
"API Exposure": "6.74%",
@@ -289705,26 +289705,26 @@
},
"3. Architectural Profile": {
"Repository Archetype": "file_cluster_0",
- "Repository Drift (Z-Score)": 9.273,
+ "Repository Drift (Z-Score)": 9.361,
"Repository Fingerprint": {
- "file_cluster_0": 9.273,
- "file_cluster_1": 10.66,
- "file_cluster_2": 10.081,
- "file_cluster_3": 11.996,
- "file_cluster_4": 10.894,
- "file_cluster_5": 11.271,
- "file_cluster_6": 11.084,
- "file_cluster_7": 10.418,
- "file_cluster_8": 9.77,
- "file_cluster_9": 10.858,
- "file_cluster_10": 12.126,
- "file_cluster_11": 11.076,
- "file_cluster_12": 11.394,
- "file_cluster_13": 10.343,
- "file_cluster_14": 14.441,
- "file_cluster_15": 11.614,
- "file_cluster_16": 10.933,
- "file_cluster_17": 10.418
+ "file_cluster_0": 9.361,
+ "file_cluster_1": 10.755,
+ "file_cluster_2": 10.176,
+ "file_cluster_3": 12.066,
+ "file_cluster_4": 10.976,
+ "file_cluster_5": 11.359,
+ "file_cluster_6": 11.162,
+ "file_cluster_7": 10.514,
+ "file_cluster_8": 9.87,
+ "file_cluster_9": 10.936,
+ "file_cluster_10": 12.196,
+ "file_cluster_11": 11.13,
+ "file_cluster_12": 11.371,
+ "file_cluster_13": 10.428,
+ "file_cluster_14": 14.501,
+ "file_cluster_15": 11.689,
+ "file_cluster_16": 11.019,
+ "file_cluster_17": 10.499
},
"File Archetype": null,
"File Drift (Z-Score)": 0.0,
@@ -289742,7 +289742,7 @@
},
"4. Vulnerability & Risk Exposures": {
"Cognitive Load Exposure": "0.0%",
- "Error & Exception Exposure": "3.6%",
+ "Error & Exception Exposure": "3.44%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "2.3%",
"API Exposure": "13.49%",
@@ -289769,7 +289769,7 @@
"Function Parameters": 70,
"Function/Method Declarations": 0,
"Class/Entity Declarations": 7,
- "Defensive Programming Constructs": 23,
+ "Defensive Programming Constructs": 25,
"Type/Safety Bypasses": 1,
"High-Risk Execution Commands": 0,
"I/O and Network Boundaries": 28,
@@ -289782,11 +289782,11 @@
"UI / View Layer Components": 25,
"Closures and Anonymous Functions": 0,
"Global State Dependencies": 0,
- "Decorators and Annotations": 135,
+ "Decorators and Annotations": 136,
"Generic Type Abstractions": 0,
"Collection Iterators / Comprehensions": 0,
"Scientific & Mathematical Operations": 0,
- "Metaprogramming & Reflection": 0,
+ "Metaprogramming & Reflection": 1,
"Module Dependencies (Imports)": 2,
"Authorship Metadata": 0,
"Planned Work (TODOs)": 0,
@@ -294001,7 +294001,7 @@
"Static: Literature & Documentation": "25.0%"
},
"Average Risk Exposures": {
- "Cognitive Load Exposure": "6.27%",
+ "Cognitive Load Exposure": "14.64%",
"Error & Exception Exposure": "0.0%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "1.68%",
@@ -294201,26 +294201,26 @@
},
"3. Architectural Profile": {
"Repository Archetype": "file_cluster_8",
- "Repository Drift (Z-Score)": 6.452,
+ "Repository Drift (Z-Score)": 6.666,
"Repository Fingerprint": {
- "file_cluster_0": 7.365,
- "file_cluster_1": 7.852,
- "file_cluster_2": 6.969,
- "file_cluster_3": 9.969,
- "file_cluster_4": 8.94,
- "file_cluster_5": 8.949,
- "file_cluster_6": 9.083,
- "file_cluster_7": 7.77,
- "file_cluster_8": 6.452,
- "file_cluster_9": 8.843,
- "file_cluster_10": 10.167,
- "file_cluster_11": 9.312,
- "file_cluster_12": 9.171,
- "file_cluster_13": 8.281,
- "file_cluster_14": 12.845,
- "file_cluster_15": 9.563,
- "file_cluster_16": 8.611,
- "file_cluster_17": 8.209
+ "file_cluster_0": 7.529,
+ "file_cluster_1": 8.029,
+ "file_cluster_2": 7.16,
+ "file_cluster_3": 10.049,
+ "file_cluster_4": 9.095,
+ "file_cluster_5": 9.098,
+ "file_cluster_6": 9.212,
+ "file_cluster_7": 7.949,
+ "file_cluster_8": 6.666,
+ "file_cluster_9": 8.985,
+ "file_cluster_10": 10.235,
+ "file_cluster_11": 9.282,
+ "file_cluster_12": 8.515,
+ "file_cluster_13": 8.421,
+ "file_cluster_14": 12.954,
+ "file_cluster_15": 9.65,
+ "file_cluster_16": 8.753,
+ "file_cluster_17": 8.374
},
"File Archetype": null,
"File Drift (Z-Score)": 0.0,
@@ -294234,10 +294234,10 @@
"Raw Churn Frequency": 0.0,
"Authorship Centralization": 0.0,
"Ownership Entropy": 0.0,
- "Raw Cognitive Density": 0.217
+ "Raw Cognitive Density": 0.435
},
"4. Vulnerability & Risk Exposures": {
- "Cognitive Load Exposure": "10.62%",
+ "Cognitive Load Exposure": "22.08%",
"Error & Exception Exposure": "0.0%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "2.3%",
@@ -294282,7 +294282,7 @@
"Generic Type Abstractions": 0,
"Collection Iterators / Comprehensions": 0,
"Scientific & Mathematical Operations": 0,
- "Metaprogramming & Reflection": 0,
+ "Metaprogramming & Reflection": 1,
"Module Dependencies (Imports)": 0,
"Authorship Metadata": 0,
"Planned Work (TODOs)": 0,
@@ -294381,26 +294381,26 @@
},
"3. Architectural Profile": {
"Repository Archetype": "file_cluster_8",
- "Repository Drift (Z-Score)": 6.272,
+ "Repository Drift (Z-Score)": 6.613,
"Repository Fingerprint": {
- "file_cluster_0": 7.207,
- "file_cluster_1": 7.705,
- "file_cluster_2": 6.745,
- "file_cluster_3": 9.851,
- "file_cluster_4": 8.801,
- "file_cluster_5": 8.819,
- "file_cluster_6": 8.952,
- "file_cluster_7": 7.621,
- "file_cluster_8": 6.272,
- "file_cluster_9": 8.707,
- "file_cluster_10": 10.048,
- "file_cluster_11": 9.177,
- "file_cluster_12": 9.04,
- "file_cluster_13": 8.127,
- "file_cluster_14": 12.734,
- "file_cluster_15": 9.436,
- "file_cluster_16": 8.475,
- "file_cluster_17": 8.038
+ "file_cluster_0": 7.475,
+ "file_cluster_1": 7.985,
+ "file_cluster_2": 7.053,
+ "file_cluster_3": 9.995,
+ "file_cluster_4": 9.047,
+ "file_cluster_5": 9.056,
+ "file_cluster_6": 9.164,
+ "file_cluster_7": 7.904,
+ "file_cluster_8": 6.613,
+ "file_cluster_9": 8.936,
+ "file_cluster_10": 10.177,
+ "file_cluster_11": 9.187,
+ "file_cluster_12": 8.252,
+ "file_cluster_13": 8.357,
+ "file_cluster_14": 12.906,
+ "file_cluster_15": 9.593,
+ "file_cluster_16": 8.705,
+ "file_cluster_17": 8.302
},
"File Archetype": null,
"File Drift (Z-Score)": 0.0,
@@ -294414,7 +294414,7 @@
"Raw Churn Frequency": 0.0,
"Authorship Centralization": 0.0,
"Ownership Entropy": 0.0,
- "Raw Cognitive Density": 0.357
+ "Raw Cognitive Density": 0.429
},
"4. Vulnerability & Risk Exposures": {
"Cognitive Load Exposure": "5.0%",
@@ -294462,7 +294462,7 @@
"Generic Type Abstractions": 0,
"Collection Iterators / Comprehensions": 0,
"Scientific & Mathematical Operations": 0,
- "Metaprogramming & Reflection": 0,
+ "Metaprogramming & Reflection": 1,
"Module Dependencies (Imports)": 0,
"Authorship Metadata": 0,
"Planned Work (TODOs)": 0,
@@ -294561,26 +294561,26 @@
},
"3. Architectural Profile": {
"Repository Archetype": "file_cluster_8",
- "Repository Drift (Z-Score)": 6.351,
+ "Repository Drift (Z-Score)": 6.769,
"Repository Fingerprint": {
- "file_cluster_0": 7.28,
- "file_cluster_1": 7.769,
- "file_cluster_2": 6.975,
- "file_cluster_3": 9.91,
- "file_cluster_4": 8.885,
- "file_cluster_5": 8.878,
- "file_cluster_6": 9.018,
- "file_cluster_7": 7.688,
- "file_cluster_8": 6.351,
- "file_cluster_9": 8.779,
- "file_cluster_10": 10.113,
- "file_cluster_11": 9.262,
- "file_cluster_12": 9.108,
- "file_cluster_13": 8.228,
- "file_cluster_14": 12.832,
- "file_cluster_15": 9.506,
- "file_cluster_16": 8.54,
- "file_cluster_17": 8.182
+ "file_cluster_0": 7.543,
+ "file_cluster_1": 8.115,
+ "file_cluster_2": 7.346,
+ "file_cluster_3": 10.103,
+ "file_cluster_4": 9.174,
+ "file_cluster_5": 9.171,
+ "file_cluster_6": 9.284,
+ "file_cluster_7": 8.037,
+ "file_cluster_8": 6.769,
+ "file_cluster_9": 9.065,
+ "file_cluster_10": 10.29,
+ "file_cluster_11": 9.31,
+ "file_cluster_12": 8.373,
+ "file_cluster_13": 8.511,
+ "file_cluster_14": 13.044,
+ "file_cluster_15": 9.713,
+ "file_cluster_16": 8.829,
+ "file_cluster_17": 8.499
},
"File Archetype": null,
"File Drift (Z-Score)": 0.0,
@@ -294594,10 +294594,10 @@
"Raw Churn Frequency": 0.0,
"Authorship Centralization": 0.0,
"Ownership Entropy": 0.0,
- "Raw Cognitive Density": 0.185
+ "Raw Cognitive Density": 0.556
},
"4. Vulnerability & Risk Exposures": {
- "Cognitive Load Exposure": "9.46%",
+ "Cognitive Load Exposure": "31.48%",
"Error & Exception Exposure": "0.0%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "2.3%",
@@ -294638,11 +294638,11 @@
"UI / View Layer Components": 3,
"Closures and Anonymous Functions": 0,
"Global State Dependencies": 0,
- "Decorators and Annotations": 6,
+ "Decorators and Annotations": 7,
"Generic Type Abstractions": 0,
"Collection Iterators / Comprehensions": 0,
"Scientific & Mathematical Operations": 0,
- "Metaprogramming & Reflection": 0,
+ "Metaprogramming & Reflection": 2,
"Module Dependencies (Imports)": 0,
"Authorship Metadata": 0,
"Planned Work (TODOs)": 0,
@@ -294924,7 +294924,7 @@
"Static: Literature & Documentation": "33.3%"
},
"Average Risk Exposures": {
- "Cognitive Load Exposure": "2.45%",
+ "Cognitive Load Exposure": "4.66%",
"Error & Exception Exposure": "0.0%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "1.53%",
@@ -295304,26 +295304,26 @@
},
"3. Architectural Profile": {
"Repository Archetype": "file_cluster_8",
- "Repository Drift (Z-Score)": 7.321,
+ "Repository Drift (Z-Score)": 7.483,
"Repository Fingerprint": {
- "file_cluster_0": 7.916,
- "file_cluster_1": 8.259,
- "file_cluster_2": 8.902,
- "file_cluster_3": 10.184,
- "file_cluster_4": 9.233,
- "file_cluster_5": 8.782,
- "file_cluster_6": 9.192,
- "file_cluster_7": 7.974,
- "file_cluster_8": 7.321,
- "file_cluster_9": 9.099,
- "file_cluster_10": 10.234,
- "file_cluster_11": 9.501,
- "file_cluster_12": 9.346,
- "file_cluster_13": 8.753,
- "file_cluster_14": 13.736,
- "file_cluster_15": 9.617,
- "file_cluster_16": 8.795,
- "file_cluster_17": 9.308
+ "file_cluster_0": 8.045,
+ "file_cluster_1": 8.403,
+ "file_cluster_2": 9.03,
+ "file_cluster_3": 10.246,
+ "file_cluster_4": 9.361,
+ "file_cluster_5": 8.91,
+ "file_cluster_6": 9.3,
+ "file_cluster_7": 8.123,
+ "file_cluster_8": 7.483,
+ "file_cluster_9": 9.215,
+ "file_cluster_10": 10.286,
+ "file_cluster_11": 9.464,
+ "file_cluster_12": 8.743,
+ "file_cluster_13": 8.864,
+ "file_cluster_14": 13.823,
+ "file_cluster_15": 9.687,
+ "file_cluster_16": 8.912,
+ "file_cluster_17": 9.433
},
"File Archetype": null,
"File Drift (Z-Score)": 0.0,
@@ -295337,10 +295337,10 @@
"Raw Churn Frequency": 0.0,
"Authorship Centralization": 0.0,
"Ownership Entropy": 0.0,
- "Raw Cognitive Density": 0.185
+ "Raw Cognitive Density": 0.37
},
"4. Vulnerability & Risk Exposures": {
- "Cognitive Load Exposure": "7.35%",
+ "Cognitive Load Exposure": "13.98%",
"Error & Exception Exposure": "0.0%",
"Tech Debt Exposure": "0.0%",
"Testing Exposure": "2.3%",
@@ -295385,7 +295385,7 @@
"Generic Type Abstractions": 0,
"Collection Iterators / Comprehensions": 0,
"Scientific & Mathematical Operations": 0,
- "Metaprogramming & Reflection": 0,
+ "Metaprogramming & Reflection": 1,
"Module Dependencies (Imports)": 0,
"Authorship Metadata": 0,
"Planned Work (TODOs)": 0,