diff --git a/docs/language_status/html.md b/docs/language_status/html.md
index 64e1ca566..9bdd1ef7a 100644
--- a/docs/language_status/html.md
+++ b/docs/language_status/html.md
@@ -234,9 +234,10 @@ behaviors are, however, deliberately documented in the test suite rather than fi
tri-comparison sweep) — the #2421 / #2452 embedded-grammar injection descended into **every**
`",
"",
"",
+ # #2492: a `\n"
+ )
+ assert _html_func_names(src) == []
+
+
+def test_html_shader_script_yields_no_function():
+ src = '\n'
+ assert _html_func_names(src) == []
+
+
+def test_html_real_module_script_still_yields_functions():
+ src = (
+ '\n"
+ )
+ assert "boot" in _html_func_names(src)
diff --git a/tests/golden_master_audit.json b/tests/golden_master_audit.json
index df40f0738..2e1999b33 100644
--- a/tests/golden_master_audit.json
+++ b/tests/golden_master_audit.json
@@ -12,8 +12,8 @@
},
"Target Root Name": "data",
"Absolute Project Path": "/srv/storage_16tb/projects/gitgalaxy/language-crucible/data",
- "Analysis ISO Timestamp": "2026-08-30T14:51:34.538657+00:00",
- "Total Scan Duration": "19.87 seconds"
+ "Analysis ISO Timestamp": "2026-08-30T17:26:41.339898+00:00",
+ "Total Scan Duration": "19.95 seconds"
},
"Source Control Footprint (Immutable Anchor)": {
"Active Branch": "HEAD",
@@ -414,7 +414,7 @@
"html": {
"files": 54,
"loc": 4985,
- "impact": 1.5000000000000009
+ "impact": 1.510000000000001
},
"javascript": {
"files": 18,
@@ -4952,7 +4952,7 @@
},
"html/revealjs_decks": {
"file_count": 5,
- "total_mass": 0.18,
+ "total_mass": 0.19,
"avg_exposures": {
"cognitive_load": 2.53,
"safety_score": 21.78,
@@ -912142,7 +912142,7 @@
}
},
"html/revealjs_decks": {
- "Directory Group Magnitude": 0.18,
+ "Directory Group Magnitude": 0.19,
"File Count": 5,
"Ecosystem Fingerprint (Archetypes)": {
"Unclassified": "100.0%"
@@ -912674,7 +912674,7 @@
"Total LOC": 701,
"Coding LOC": 643,
"Documentation LOC": 3,
- "Structural Magnitude": 0.04,
+ "Structural Magnitude": 0.05,
"Control Flow Ratio": "0.0%",
"Popularity Rank": 0,
"Raw Churn Frequency": 0.0,
@@ -912697,24 +912697,13 @@
"Documentation Exposure": "36.3%",
"Hardcoded Payload Artifacts": "0.0%"
},
- "5. Function Analysis": [
- {
- "Function Name": "script",
- "Structural Impact": 1.1,
- "Lines of Code (LOC)": 2,
- "Control Flow Branches": 0,
- "Input Parameters": 0,
- "Control Flow Ratio": "0.0%",
- "Start Line": 142,
- "End Line": 143
- }
- ],
+ "5. Function Analysis": [],
"6. Contextual Mitigations & Amplifications": "None Detected",
"7. Structural Signatures (Net Mitigated Signals)": {
"Control Flow Branches": 0,
"Sequential Logic Declarations": 186,
"Function Parameters": 91,
- "Function/Method Declarations": 1,
+ "Function/Method Declarations": 0,
"Class/Entity Declarations": 1,
"Defensive Programming Constructs": 0,
"Type/Safety Bypasses": 1,
diff --git a/tests/golden_master_zero_dep_audit.json b/tests/golden_master_zero_dep_audit.json
index f7e89f794..da3e2ced1 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": "/srv/storage_16tb/projects/gitgalaxy/language-crucible/data",
- "Analysis ISO Timestamp": "2026-08-30T14:52:14.984219+00:00",
- "Total Scan Duration": "18.41 seconds"
+ "Analysis ISO Timestamp": "2026-08-30T17:27:08.124169+00:00",
+ "Total Scan Duration": "18.53 seconds"
},
"Source Control Footprint (Immutable Anchor)": {
"Active Branch": "HEAD",
@@ -414,7 +414,7 @@
"html": {
"files": 54,
"loc": 4985,
- "impact": 1.5000000000000009
+ "impact": 1.510000000000001
},
"javascript": {
"files": 18,
@@ -4952,7 +4952,7 @@
},
"html/revealjs_decks": {
"file_count": 5,
- "total_mass": 0.18,
+ "total_mass": 0.19,
"avg_exposures": {
"cognitive_load": 2.53,
"safety_score": 21.78,
@@ -912142,7 +912142,7 @@
}
},
"html/revealjs_decks": {
- "Directory Group Magnitude": 0.18,
+ "Directory Group Magnitude": 0.19,
"File Count": 5,
"Ecosystem Fingerprint (Archetypes)": {
"Unclassified": "100.0%"
@@ -912674,7 +912674,7 @@
"Total LOC": 701,
"Coding LOC": 643,
"Documentation LOC": 3,
- "Structural Magnitude": 0.04,
+ "Structural Magnitude": 0.05,
"Control Flow Ratio": "0.0%",
"Popularity Rank": 0,
"Raw Churn Frequency": 0.0,
@@ -912697,24 +912697,13 @@
"Documentation Exposure": "36.3%",
"Hardcoded Payload Artifacts": "0.0%"
},
- "5. Function Analysis": [
- {
- "Function Name": "script",
- "Structural Impact": 1.1,
- "Lines of Code (LOC)": 2,
- "Control Flow Branches": 0,
- "Input Parameters": 0,
- "Control Flow Ratio": "0.0%",
- "Start Line": 142,
- "End Line": 143
- }
- ],
+ "5. Function Analysis": [],
"6. Contextual Mitigations & Amplifications": "None Detected",
"7. Structural Signatures (Net Mitigated Signals)": {
"Control Flow Branches": 0,
"Sequential Logic Declarations": 186,
"Function Parameters": 91,
- "Function/Method Declarations": 1,
+ "Function/Method Declarations": 0,
"Class/Entity Declarations": 1,
"Defensive Programming Constructs": 0,
"Type/Safety Bypasses": 1,
diff --git a/tests/tree_sitter_accuracy_baseline_html.json b/tests/tree_sitter_accuracy_baseline_html.json
index eff3cff8b..92f637e30 100644
--- a/tests/tree_sitter_accuracy_baseline_html.json
+++ b/tests/tree_sitter_accuracy_baseline_html.json
@@ -3,7 +3,7 @@
"args_exact_match": 37,
"corpus_path": "language-crucible/data/html",
"extra_classes": 0,
- "extra_functions": 1,
+ "extra_functions": 0,
"files_scanned": 54,
"found_classes": 0,
"found_functions": 37,