diff --git a/gitgalaxy/core/detector.py b/gitgalaxy/core/detector.py index 1fcf0113..005306bb 100644 --- a/gitgalaxy/core/detector.py +++ b/gitgalaxy/core/detector.py @@ -2114,10 +2114,29 @@ def _find_slash_terminator(text: str, content_start: int) -> int: # Macro Shields (Strictly Gated to C-Family) if lang_id in ("c", "cpp", "objective-c", "cs", "swift"): lines = safe_code.splitlines(keepends=True) - in_dead_branch = False - dead_nesting_depth = 0 + # Per-open-#if branch policy. Each stack entry is a (policy, side) + # pair where policy is the #if condition's static truth value and + # side is which branch of that #if we are currently in: + # policy True (#if 1 / #if true) -> first branch alive, #else dead + # policy False (#if 0 / #if false) -> first branch dead, #else alive + # policy None (unknown, e.g. #if FOO / #ifdef FOO) + # -> scan BOTH branches. This is the + # #1720 fix: tree-sitter ground truth + # parses both, and implementations + # living in #else were being blanked. + # any() over the stack: an inner #if inside an outer dead region stays + # dead even if its own condition would flip it; #endif pops restore it. + branch_stack: list[tuple[Optional[bool], str]] = [] in_multiline_macro = False + def _branch_dead(entry: tuple[Optional[bool], str]) -> bool: + policy, side = entry + if policy is True: + return side == "else" + if policy is False: + return side == "first" + return False + for i in range(len(lines)): line = lines[i] stripped = line.lstrip() @@ -2129,17 +2148,18 @@ def _find_slash_terminator(text: str, content_start: int) -> int: continue if stripped.startswith("#"): - if stripped.startswith("#if"): - if in_dead_branch: - dead_nesting_depth += 1 - elif stripped.startswith(("#else", "#elif")): - if not in_dead_branch and dead_nesting_depth == 0: - in_dead_branch = True - elif stripped.startswith("#endif") and in_dead_branch: - if dead_nesting_depth > 0: - dead_nesting_depth -= 1 - else: - in_dead_branch = False + if re.match(r"#if\b", stripped): + branch_stack.append((self._classify_preproc_condition(stripped[3:].strip()), "first")) + elif stripped.startswith("#ifdef ") or stripped.startswith("#ifndef "): + branch_stack.append((None, "first")) + elif re.match(r"#elif\b", stripped) and branch_stack: + # an #elif starts a fresh condition on the else side + branch_stack[-1] = (self._classify_preproc_condition(stripped[5:].strip()), "first") + elif stripped.startswith("#else") and branch_stack: + policy, _ = branch_stack[-1] + branch_stack[-1] = (policy, "else") + elif stripped.startswith("#endif") and branch_stack: + branch_stack.pop() if stripped.startswith("#define") and stripped.rstrip(" \t\r\n").endswith("\\"): in_multiline_macro = True @@ -2147,13 +2167,39 @@ def _find_slash_terminator(text: str, content_start: int) -> int: lines[i] = " " * (len(line) - 1) + "\n" if line.endswith("\n") else " " * len(line) continue - if in_dead_branch: + if any(_branch_dead(e) for e in branch_stack): lines[i] = " " * (len(line) - 1) + "\n" if line.endswith("\n") else " " * len(line) safe_code = "".join(lines) return safe_code + @staticmethod + def _classify_preproc_condition(condition: str) -> Optional[bool]: + """ + Returns the static truth value of a C-family preprocessor #if condition, + or None when it cannot be evaluated without a macro table. + + Recognized constants (after stripping C comments and whitespace): + True -- "1", "true", "TRUE" + False -- "0", "false", "FALSE" + None -- everything else (macro names, defined(X), expressions) + + Used by _build_brace_safe_stream's macro shield so #else branches that + genuinely contain implementations are scanned instead of blindly blanked + (#1720): only a statically-true #if (#if 1) makes its #else branch dead, + and only a statically-false #if (#if 0) makes its first branch dead. + """ + if condition is None: + return None + # strip C-style comments and surrounding whitespace + cond = re.sub(r"/\*.*?\*/|//.*$", "", condition, flags=re.S).strip() + if cond in ("1", "true", "TRUE", "True"): + return True + if cond in ("0", "false", "FALSE", "False"): + return False + return None + def _slice_by_braces( self, code: str, diff --git a/tests/core_engine/test_detector.py b/tests/core_engine/test_detector.py index c304b72d..d723b644 100644 --- a/tests/core_engine/test_detector.py +++ b/tests/core_engine/test_detector.py @@ -413,6 +413,102 @@ def test_detector_c_macro_dead_branch_shield(): assert result["equations"]["high_risk_execution"] == 0, "Failed to scrub dead preprocessor branches!" +def test_detector_c_macro_else_branch_is_scanned_issue_1720(): + """ + Regression test for #1720: the preprocessor shield used to assume the + first branch of every #if/#ifdef is the active one and blindly blanked + the #else branch, so real implementations living in #else were silently + dropped from extraction. With an unknown condition (e.g. #if FEATURE_FLAG) + the shield now scans BOTH branches; only statically-decidable conditions + (#if 0 / #if 1) prune a branch. + """ + opt_detector = StructuralExtractor("c", MOCK_LANG_DEFS) + code = ( + "#if FEATURE_FLAG\n" + "int fastImplementation() {\n" + " return 1;\n" + "}\n" + "#else\n" + "int portableImplementation() {\n" + " return 2;\n" + "}\n" + "#endif\n" + ) + + result = opt_detector.splice(code, "") + + names = [f["name"] for f in result["functions"]] + assert "fastImplementation" in names, "First branch of an unknown #if must still be scanned!" + assert "portableImplementation" in names, ( + "#1720: implementation living in the #else branch was dropped from extraction!" + ) + + +def test_detector_c_macro_static_truth_prunes_branches(): + """ + Companion to the #1720 fix: statically-decidable #if conditions still + prune the dead branch. #if 0 => first branch dead, #else alive; + #if 1 => first branch alive, #else dead. Nested blocks must also honor + the outer branch's liveness (any() over the open-#if stack). + """ + opt_detector = StructuralExtractor("c", MOCK_LANG_DEFS) + + code_if_zero = "#if 0\nint deadFast() {\n return 1;\n}\n#else\nint aliveFallback() {\n return 2;\n}\n#endif\n" + names_zero = [f["name"] for f in opt_detector.splice(code_if_zero, "")["functions"]] + assert "deadFast" not in names_zero, "#if 0 first branch must be pruned!" + assert "aliveFallback" in names_zero, "#if 0 #else branch must survive!" + + code_if_one = "#if 1\nint aliveFast() {\n return 1;\n}\n#else\nint deadFallback() {\n return 2;\n}\n#endif\n" + names_one = [f["name"] for f in opt_detector.splice(code_if_one, "")["functions"]] + assert "aliveFast" in names_one, "#if 1 first branch must survive!" + assert "deadFallback" not in names_one, "#if 1 #else branch must be pruned!" + + +def test_detector_c_macro_no_space_boundaries_issue_1764(): + """ + Regression test for a bug where `#if(1)` or `#elif(0)` (valid C preprocessor + syntax without a space) failed to push onto the branch stack because + `startswith("#if ")` was used. This led to premature `#endif` pops and + desynced branch nesting. + """ + opt_detector = StructuralExtractor("c", MOCK_LANG_DEFS) + code = ( + "#if 0\n" + "int deadOne() { return 1; }\n" + "#if(1)\n" + "int deadTwo() { return 2; }\n" + "#endif\n" + "int deadThree() { return 3; }\n" # should stay dead -- still inside outer #if 0, before #else + "#else\n" + "int aliveOne() { return 4; }\n" + "#endif\n" + ) + + result = opt_detector.splice(code, "") + names = [f["name"] for f in result["functions"]] + + assert "deadThree" not in names, "Premature pop caused dead code to be scanned as alive!" + assert "aliveOne" in names, "Valid #else branch was dropped due to stack desync!" + + code_nested = ( + "#if 0\n" + "int a() { return 1; }\n" + "#else\n" + "int b() { return 2; }\n" + "#if 1\n" + "int c() { return 3; }\n" + "#else\n" + "int d() { return 4; }\n" + "#endif\n" + "int e() { return 5; }\n" + "#endif\n" + ) + names_nested = [f["name"] for f in opt_detector.splice(code_nested, "")["functions"]] + assert set(names_nested) == {"b", "c", "e"}, ( + "Nested #if liveness was not honored: expected only b, c, e, got %r" % names_nested + ) + + def test_detector_nested_function_is_counted_as_own_node_braces(): """ #1041: the brace-slicing guard used to skip any match whose start fell @@ -2255,12 +2351,7 @@ def test_detector_ts_param_function_type_annotation_not_counted_as_function(): # The object-literal arrow property must still be counted: its line # is preceded by `{`/`,`, never `(`. - object_code = ( - "export const Either = {\n" - " URI,\n" - " ap: (fab, fa) => ({ fab, fa }),\n" - "}\n" - ) + object_code = "export const Either = {\n URI,\n ap: (fab, fa) => ({ fab, fa }),\n}\n" satellites2, _ = detector._slice_by_braces(object_code, lang, rules, 0, {}) names2 = [s["name"] for s in satellites2] assert "ap" in names2, f"[{lang}] object-literal arrow property dropped: {names2}" diff --git a/tests/golden_master_audit.json b/tests/golden_master_audit.json index b621c972..08817ce1 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-08-17T00:25:50.228862+00:00", - "Total Scan Duration": "49.61 seconds" + "Analysis ISO Timestamp": "2026-08-17T00:43:56.367306+00:00", + "Total Scan Duration": "49.6 seconds" }, "Source Control Footprint (Immutable Anchor)": { "Active Branch": "HEAD", @@ -196,10 +196,10 @@ } }, "health": { - "avg_cognitive_load": 24.686, + "avg_cognitive_load": 24.763, "avg_safety_score": 38.602, "avg_tech_debt": 23.32, - "avg_documentation": 21.507 + "avg_documentation": 21.506 }, "composition": { "xml": { @@ -245,7 +245,7 @@ "c": { "files": 44, "loc": 74236, - "impact": 100817.62 + "impact": 103331.12 }, "batch": { "files": 3, @@ -295,7 +295,7 @@ "cpp": { "files": 33, "loc": 44831, - "impact": 58783.01999999999 + "impact": 59719.92 }, "csharp": { "files": 8, @@ -641,9 +641,9 @@ }, "c/sqlite": { "file_count": 2, - "total_mass": 9960.96, + "total_mass": 9954.46, "avg_exposures": { - "cognitive_load": 45.81, + "cognitive_load": 45.8, "safety_score": 49.78, "tech_debt": 4.01, "verification": 40.0, @@ -698,13 +698,13 @@ }, "cpp/godot": { "file_count": 16, - "total_mass": 38718.82, + "total_mass": 39639.12, "avg_exposures": { "cognitive_load": 59.79, - "safety_score": 73.57, + "safety_score": 73.56, "tech_debt": 22.49, "verification": 55.29, - "api_exposure": 5.28, + "api_exposure": 5.29, "concurrency": 0.0, "state_flux": 81.22, "dead_code": 2.11, @@ -1021,11 +1021,11 @@ }, "c/cpython": { "file_count": 8, - "total_mass": 33171.04, + "total_mass": 35273.84, "avg_exposures": { - "cognitive_load": 66.29, + "cognitive_load": 72.91, "safety_score": 86.01, - "tech_debt": 35.03, + "tech_debt": 34.97, "verification": 70.29, "api_exposure": 13.77, "concurrency": 0.0, @@ -1078,7 +1078,7 @@ }, "assembly/cosmopolitan": { "file_count": 4, - "total_mass": 1965.06, + "total_mass": 1953.56, "avg_exposures": { "cognitive_load": 26.18, "safety_score": 38.28, @@ -1091,7 +1091,7 @@ "spec_match": 76.67, "stability": 50.0, "churn": 0.0, - "documentation": 35.97, + "documentation": 35.96, "secrets_risk": 0.0 } }, @@ -1116,7 +1116,7 @@ }, "c/micropython": { "file_count": 12, - "total_mass": 11109.94, + "total_mass": 11101.74, "avg_exposures": { "cognitive_load": 49.19, "safety_score": 53.58, @@ -1135,9 +1135,9 @@ }, "cobol/gnucobol_internals": { "file_count": 5, - "total_mass": 15231.85, + "total_mass": 15668.75, "avg_exposures": { - "cognitive_load": 44.54, + "cognitive_load": 48.32, "safety_score": 68.48, "tech_debt": 14.48, "verification": 48.92, @@ -1148,7 +1148,7 @@ "spec_match": 100.0, "stability": 50.0, "churn": 0.0, - "documentation": 45.97, + "documentation": 45.89, "secrets_risk": 0.0 } }, @@ -1952,7 +1952,7 @@ }, "livecode/core": { "file_count": 11, - "total_mass": 26635.82, + "total_mass": 26652.42, "avg_exposures": { "cognitive_load": 33.19, "safety_score": 56.39, @@ -14697,7 +14697,7 @@ } }, "cpp/godot": { - "Directory Group Magnitude": 38718.82, + "Directory Group Magnitude": 39639.12, "File Count": 16, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "81.2%", @@ -14705,10 +14705,10 @@ }, "Average Risk Exposures": { "Cognitive Load Exposure": "59.79%", - "Error & Exception Exposure": "73.57%", + "Error & Exception Exposure": "73.56%", "Tech Debt Exposure": "22.49%", "Testing Exposure": "55.29%", - "API Exposure": "5.28%", + "API Exposure": "5.29%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "81.22%", "Commented Logic Exposure": "2.11%", @@ -15678,16 +15678,16 @@ "Total LOC": 9612, "Coding LOC": 7665, "Documentation LOC": 454, - "Structural Magnitude": 9876.4, + "Structural Magnitude": 9878.0, "Control Flow Ratio": "79.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.386 + "Raw Cognitive Density": 1.387 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "92.31%", + "Cognitive Load Exposure": "92.32%", "Error & Exception Exposure": "96.25%", "Tech Debt Exposure": "97.25%", "Testing Exposure": "80.0%", @@ -18402,6 +18402,16 @@ "Start Line": 7948, "End Line": 7950 }, + { + "Function Name": "get_game_view_plugin", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 8278, + "End Line": 8280 + }, { "Function Name": "EditorNode::open_setting_override", "Structural Impact": 1.6, @@ -19489,16 +19499,16 @@ "Total LOC": 4040, "Coding LOC": 3258, "Documentation LOC": 95, - "Structural Magnitude": 7029.66, + "Structural Magnitude": 7487.06, "Control Flow Ratio": "92.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.517 + "Raw Cognitive Density": 1.531 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "94.56%", + "Cognitive Load Exposure": "94.79%", "Error & Exception Exposure": "99.68%", "Tech Debt Exposure": "14.64%", "Testing Exposure": "80.0%", @@ -19543,6 +19553,16 @@ "Start Line": 760, "End Line": 2411 }, + { + "Function Name": "OPCODE_WHILE", + "Structural Impact": 457.4, + "Lines of Code (LOC)": 1653, + "Control Flow Branches": 264, + "Input Parameters": 1, + "Control Flow Ratio": "98.5%", + "Start Line": 757, + "End Line": 2409 + }, { "Function Name": "OPCODE", "Structural Impact": 64.2, @@ -20724,20 +20744,20 @@ "Total LOC": 5377, "Coding LOC": 4227, "Documentation LOC": 374, - "Structural Magnitude": 6806.44, + "Structural Magnitude": 7266.44, "Control Flow Ratio": "93.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.563 + "Raw Cognitive Density": 1.564 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "94.34%", + "Cognitive Load Exposure": "94.35%", "Error & Exception Exposure": "98.81%", "Tech Debt Exposure": "11.52%", "Testing Exposure": "80.0%", - "API Exposure": "7.09%", + "API Exposure": "7.3%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "100.0%", "Commented Logic Exposure": "8.84%", @@ -20759,24 +20779,24 @@ "End Line": 2632 }, { - "Function Name": "Main::start", - "Structural Impact": 384.7, - "Lines of Code (LOC)": 878, - "Control Flow Branches": 240, + "Function Name": "Main::setup2", + "Structural Impact": 675.2, + "Lines of Code (LOC)": 1512, + "Control Flow Branches": 423, "Input Parameters": 1, - "Control Flow Ratio": "92.0%", - "Start Line": 3987, - "End Line": 4864 + "Control Flow Ratio": "94.4%", + "Start Line": 3007, + "End Line": 4518 }, { - "Function Name": "Main::setup2", - "Structural Impact": 375.3, - "Lines of Code (LOC)": 887, - "Control Flow Branches": 233, + "Function Name": "Main::start", + "Structural Impact": 506.5, + "Lines of Code (LOC)": 1390, + "Control Flow Branches": 308, "Input Parameters": 1, - "Control Flow Ratio": "98.3%", - "Start Line": 3007, - "End Line": 3893 + "Control Flow Ratio": "92.2%", + "Start Line": 3987, + "End Line": 5376 }, { "Function Name": "Main::print_help", @@ -20828,6 +20848,16 @@ "Start Line": 490, "End Line": 524 }, + { + "Function Name": "Main::test_cleanup", + "Structural Impact": 20.1, + "Lines of Code (LOC)": 91, + "Control Flow Branches": 10, + "Input Parameters": 1, + "Control Flow Ratio": "90.9%", + "Start Line": 881, + "End Line": 971 + }, { "Function Name": "Main::test_entrypoint", "Structural Impact": 19.4, @@ -20838,6 +20868,16 @@ "Start Line": 974, "End Line": 1000 }, + { + "Function Name": "Main::test_setup", + "Structural Impact": 18.2, + "Lines of Code (LOC)": 136, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "88.9%", + "Start Line": 743, + "End Line": 878 + }, { "Function Name": "get_files_with_extension", "Structural Impact": 16.7, @@ -21050,8 +21090,8 @@ "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 12, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 20, - "State Mutations / Variable Reassignments": 4077, + "Exposed API / Public Exports": 22, + "State Mutations / Variable Reassignments": 4075, "Commented-out Code (Dead Logic)": 4, "Structured Documentation Blocks": 10, "Unit Test Assertions": 0, @@ -23941,9 +23981,9 @@ "Identity Proof": "Sibling Anchor (C++)" }, "2. Topological Coordinates": { - "X": -87.0, - "Y": 89.59, - "Z": 3636.74 + "X": -86.95, + "Y": 89.6, + "Z": 3636.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -23955,16 +23995,16 @@ "Total LOC": 945, "Coding LOC": 670, "Documentation LOC": 81, - "Structural Magnitude": 507.0, + "Structural Magnitude": 509.2, "Control Flow Ratio": "12.5%", "Popularity Rank": 1, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.467 + "Raw Cognitive Density": 1.47 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "72.26%", + "Cognitive Load Exposure": "72.31%", "Error & Exception Exposure": "88.16%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "80.0%", @@ -24249,6 +24289,16 @@ "Start Line": 165, "End Line": 165 }, + { + "Function Name": "_emit_editor_state_changed", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 371, + "End Line": 371 + }, { "Function Name": "_block", "Structural Impact": 1.1, @@ -24349,6 +24399,16 @@ "Start Line": 559, "End Line": 559 }, + { + "Function Name": "is_part_of_edited_scene", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 639, + "End Line": 639 + }, { "Function Name": "is_group_processing", "Structural Impact": 1.1, @@ -26496,9 +26556,9 @@ "Identity Proof": "Sibling Anchor (C++)" }, "2. Topological Coordinates": { - "X": -361.44, + "X": -361.45, "Y": 52.28, - "Z": 2591.54 + "Z": 2591.57 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -26510,17 +26570,17 @@ "Total LOC": 1244, "Coding LOC": 873, "Documentation LOC": 82, - "Structural Magnitude": 408.46, + "Structural Magnitude": 407.56, "Control Flow Ratio": "34.1%", "Popularity Rank": 1, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.086 + "Raw Cognitive Density": 1.081 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "64.79%", - "Error & Exception Exposure": "78.37%", + "Cognitive Load Exposure": "64.54%", + "Error & Exception Exposure": "78.19%", "Tech Debt Exposure": "9.36%", "Testing Exposure": "80.0%", "API Exposure": "6.17%", @@ -26624,6 +26684,16 @@ "Start Line": 67, "End Line": 67 }, + { + "Function Name": "redraw_request", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 111, + "End Line": 113 + }, { "Function Name": "is_on_render_thread", "Structural Impact": 1.1, @@ -26647,7 +26717,7 @@ "High-Risk Execution Commands": 1, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 326, + "State Mutations / Variable Reassignments": 324, "Commented-out Code (Dead Logic)": 2, "Structured Documentation Blocks": 4, "Unit Test Assertions": 0, @@ -29075,15 +29145,15 @@ } }, "c/cpython": { - "Directory Group Magnitude": 33171.04, + "Directory Group Magnitude": 35273.84, "File Count": 8, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" }, "Average Risk Exposures": { - "Cognitive Load Exposure": "66.29%", + "Cognitive Load Exposure": "72.91%", "Error & Exception Exposure": "86.01%", - "Tech Debt Exposure": "35.03%", + "Tech Debt Exposure": "34.97%", "Testing Exposure": "70.29%", "API Exposure": "13.77%", "Concurrency Exposure": "0.0%", @@ -29277,9 +29347,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1391.44, - "Y": 145.71, - "Z": -1755.68 + "X": -1390.94, + "Y": 145.69, + "Z": -1761.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -29291,16 +29361,16 @@ "Total LOC": 3840, "Coding LOC": 3294, "Documentation LOC": 244, - "Structural Magnitude": 4545.98, + "Structural Magnitude": 6161.48, "Control Flow Ratio": "68.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.083 + "Raw Cognitive Density": 1.526 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "78.08%", + "Cognitive Load Exposure": "94.47%", "Error & Exception Exposure": "90.27%", "Tech Debt Exposure": "9.09%", "Testing Exposure": "80.0%", @@ -29315,6 +29385,36 @@ "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ + { + "Function Name": "_Py_CheckRecursiveCall", + "Structural Impact": 620.8, + "Lines of Code (LOC)": 1677, + "Control Flow Branches": 309, + "Input Parameters": 2, + "Control Flow Ratio": "80.9%", + "Start Line": 282, + "End Line": 1958 + }, + { + "Function Name": "_Py_ReachedRecursionLimitWithMargin", + "Structural Impact": 561.2, + "Lines of Code (LOC)": 1732, + "Control Flow Branches": 273, + "Input Parameters": 2, + "Control Flow Ratio": "72.2%", + "Start Line": 28, + "End Line": 1759 + }, + { + "Function Name": "_Py_EnterRecursiveCallUnchecked", + "Structural Impact": 477.3, + "Lines of Code (LOC)": 1739, + "Control Flow Branches": 275, + "Input Parameters": 1, + "Control Flow Ratio": "72.9%", + "Start Line": 52, + "End Line": 1790 + }, { "Function Name": "initialize_locals", "Structural Impact": 226.7, @@ -29545,16 +29645,6 @@ "Start Line": 3409, "End Line": 3444 }, - { - "Function Name": "_Py_ReachedRecursionLimitWithMargin", - "Structural Impact": 18.5, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 9, - "Input Parameters": 2, - "Control Flow Ratio": "75.0%", - "Start Line": 28, - "End Line": 50 - }, { "Function Name": "_PyEval_GetIter", "Structural Impact": 17.7, @@ -29565,16 +29655,6 @@ "Start Line": 1169, "End Line": 1202 }, - { - "Function Name": "_Py_CheckRecursiveCall", - "Structural Impact": 17.6, - "Lines of Code (LOC)": 40, - "Control Flow Branches": 8, - "Input Parameters": 2, - "Control Flow Ratio": "80.0%", - "Start Line": 282, - "End Line": 321 - }, { "Function Name": "_PyEval_LoadName", "Structural Impact": 17.6, @@ -29935,16 +30015,6 @@ "Start Line": 2773, "End Line": 2790 }, - { - "Function Name": "_Py_EnterRecursiveCallUnchecked", - "Structural Impact": 7.7, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "80.0%", - "Start Line": 52, - "End Line": 64 - }, { "Function Name": "_PyEval_GetFrameLocals", "Structural Impact": 7.7, @@ -31359,18 +31429,18 @@ "Total LOC": 8326, "Coding LOC": 6573, "Documentation LOC": 821, - "Structural Magnitude": 7722.56, + "Structural Magnitude": 8237.26, "Control Flow Ratio": "63.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.038 + "Raw Cognitive Density": 1.409 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "75.5%", - "Error & Exception Exposure": "87.32%", - "Tech Debt Exposure": "32.24%", + "Cognitive Load Exposure": "92.7%", + "Error & Exception Exposure": "87.3%", + "Tech Debt Exposure": "31.74%", "Testing Exposure": "80.0%", "API Exposure": "13.63%", "Concurrency Exposure": "0.0%", @@ -31379,10 +31449,20 @@ "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "99.7%", + "Documentation Exposure": "99.71%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ + { + "Function Name": "dictiter_iternextitem", + "Structural Impact": 486.1, + "Lines of Code (LOC)": 1888, + "Control Flow Branches": 276, + "Input Parameters": 1, + "Control Flow Ratio": "64.6%", + "Start Line": 5994, + "End Line": 7881 + }, { "Function Name": "_PyDict_FromKeys", "Structural Impact": 82.8, @@ -31573,6 +31653,16 @@ "Start Line": 1942, "End Line": 2009 }, + { + "Function Name": "dictiter_iternextkey_lock_held", + "Structural Impact": 34.5, + "Lines of Code (LOC)": 66, + "Control Flow Branches": 17, + "Input Parameters": 2, + "Control Flow Ratio": "85.0%", + "Start Line": 5524, + "End Line": 5589 + }, { "Function Name": "dictiter_iternextvalue_lock_held", "Structural Impact": 34.4, @@ -32123,16 +32213,6 @@ "Start Line": 3756, "End Line": 3792 }, - { - "Function Name": "dictiter_iternextitem", - "Structural Impact": 11.6, - "Lines of Code (LOC)": 35, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 5994, - "End Line": 6028 - }, { "Function Name": "frozendict_or", "Structural Impact": 11.4, @@ -32273,16 +32353,6 @@ "Start Line": 6700, "End Line": 6720 }, - { - "Function Name": "_PyObject_ManagedDictValidityCheck", - "Structural Impact": 9.7, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 5, - "Input Parameters": 1, - "Control Flow Ratio": "83.3%", - "Start Line": 7399, - "End Line": 7423 - }, { "Function Name": "dictitems_contains", "Structural Impact": 9.6, @@ -32523,6 +32593,16 @@ "Start Line": 7329, "End Line": 7343 }, + { + "Function Name": "_Py_dict_lookup_threadsafe_stackref", + "Structural Impact": 7.4, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 4, + "Control Flow Ratio": "66.7%", + "Start Line": 1704, + "End Line": 1716 + }, { "Function Name": "new_dict", "Structural Impact": 7.3, @@ -33353,6 +33433,16 @@ "Start Line": 938, "End Line": 944 }, + { + "Function Name": "_Py_dict_lookup_threadsafe", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 1696, + "End Line": 1702 + }, { "Function Name": "unicodekeys_lookup_generic", "Structural Impact": 2.5, @@ -33673,6 +33763,26 @@ "Start Line": 209, "End Line": 214 }, + { + "Function Name": "set_keys", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 269, + "End Line": 273 + }, + { + "Function Name": "set_values", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 275, + "End Line": 279 + }, { "Function Name": "insertion_resize", "Structural Impact": 2.0, @@ -33863,6 +33973,26 @@ "Start Line": 195, "End Line": 200 }, + { + "Function Name": "split_keys_entry_added", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 263, + "End Line": 267 + }, + { + "Function Name": "load_keys_nentries", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 281, + "End Line": 285 + }, { "Function Name": "unicode_get_hash", "Structural Impact": 1.7, @@ -34056,7 +34186,7 @@ "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 1319, - "State Mutations / Variable Reassignments": 3300, + "State Mutations / Variable Reassignments": 3298, "Commented-out Code (Dead Logic)": 5, "Structured Documentation Blocks": 5, "Unit Test Assertions": 291, @@ -34119,7 +34249,7 @@ "Design Short Vars": 185, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 68, + "Orphaned Logic": 67, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -34183,9 +34313,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1986.47, + "X": -1986.28, "Y": 137.89, - "Z": -1506.98 + "Z": -1506.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -34197,20 +34327,20 @@ "Total LOC": 2451, "Coding LOC": 1936, "Documentation LOC": 235, - "Structural Magnitude": 2540.12, + "Structural Magnitude": 2509.42, "Control Flow Ratio": "61.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.98 + "Raw Cognitive Density": 1.324 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "71.49%", + "Cognitive Load Exposure": "90.87%", "Error & Exception Exposure": "91.29%", "Tech Debt Exposure": "8.75%", "Testing Exposure": "80.0%", - "API Exposure": "13.67%", + "API Exposure": "13.66%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "100.0%", "Commented Logic Exposure": "4.91%", @@ -34341,16 +34471,6 @@ "Start Line": 762, "End Line": 791 }, - { - "Function Name": "print_stack", - "Structural Impact": 13.7, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 8, - "Input Parameters": 1, - "Control Flow Ratio": "80.0%", - "Start Line": 1284, - "End Line": 1302 - }, { "Function Name": "framelocalsproxy_new", "Structural Impact": 13.6, @@ -34371,16 +34491,6 @@ "Start Line": 734, "End Line": 760 }, - { - "Function Name": "tos_char", - "Structural Impact": 12.1, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 7, - "Input Parameters": 1, - "Control Flow Ratio": "53.8%", - "Start Line": 1267, - "End Line": 1282 - }, { "Function Name": "framelocalsproxy_getitem", "Structural Impact": 11.9, @@ -34671,16 +34781,6 @@ "Start Line": 714, "End Line": 721 }, - { - "Function Name": "print_stacks", - "Structural Impact": 3.9, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 1304, - "End Line": 1311 - }, { "Function Name": "frame_tp_clear", "Structural Impact": 3.9, @@ -35033,7 +35133,7 @@ "Type/Safety Bypasses": 25, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 7, - "Exposed API / Public Exports": 472, + "Exposed API / Public Exports": 471, "State Mutations / Variable Reassignments": 1144, "Commented-out Code (Dead Logic)": 1, "Structured Documentation Blocks": 0, @@ -38087,7 +38187,7 @@ "Total LOC": 12874, "Coding LOC": 9970, "Documentation LOC": 1437, - "Structural Magnitude": 11317.9, + "Structural Magnitude": 11321.2, "Control Flow Ratio": "61.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -41221,6 +41321,16 @@ "Start Line": 7337, "End Line": 7346 }, + { + "Function Name": "update_all_slots", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 11977, + "End Line": 11986 + }, { "Function Name": "fixup_slot_dispatchers", "Structural Impact": 3.2, @@ -42222,7 +42332,7 @@ } }, "livecode/core": { - "Directory Group Magnitude": 26635.82, + "Directory Group Magnitude": 26652.42, "File Count": 11, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" @@ -44115,7 +44225,7 @@ "Total LOC": 7360, "Coding LOC": 5338, "Documentation LOC": 634, - "Structural Magnitude": 7073.66, + "Structural Magnitude": 7090.26, "Control Flow Ratio": "64.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -44125,7 +44235,7 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "35.42%", - "Error & Exception Exposure": "95.46%", + "Error & Exception Exposure": "95.44%", "Tech Debt Exposure": "81.19%", "Testing Exposure": "80.0%", "API Exposure": "0.0%", @@ -45279,6 +45389,16 @@ "Start Line": 3699, "End Line": 3714 }, + { + "Function Name": "MCStringConvertToSysString", + "Structural Impact": 8.1, + "Lines of Code (LOC)": 42, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "40.0%", + "Start Line": 6669, + "End Line": 6710 + }, { "Function Name": "MCStringMutableCopy", "Structural Impact": 8.0, @@ -45309,6 +45429,16 @@ "Start Line": 4553, "End Line": 4574 }, + { + "Function Name": "MCStringCreateWithSysString", + "Structural Impact": 8.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 6723, + "End Line": 6743 + }, { "Function Name": "__MCStringCountGraphemesInRange", "Structural Impact": 7.9, @@ -45699,6 +45829,16 @@ "Start Line": 5114, "End Line": 5124 }, + { + "Function Name": "MCStringConvertToSysString", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 3, + "Control Flow Ratio": "33.3%", + "Start Line": 6712, + "End Line": 6721 + }, { "Function Name": "MCStringConvertToCString", "Structural Impact": 4.2, @@ -46382,7 +46522,7 @@ "High-Risk Execution Commands": 5, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 0, - "State Mutations / Variable Reassignments": 3725, + "State Mutations / Variable Reassignments": 3721, "Commented-out Code (Dead Logic)": 9, "Structured Documentation Blocks": 883, "Unit Test Assertions": 0, @@ -62749,13 +62889,13 @@ } }, "cobol/gnucobol_internals": { - "Directory Group Magnitude": 15231.85, + "Directory Group Magnitude": 15668.75, "File Count": 5, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" }, "Average Risk Exposures": { - "Cognitive Load Exposure": "44.54%", + "Cognitive Load Exposure": "48.32%", "Error & Exception Exposure": "68.48%", "Tech Debt Exposure": "14.48%", "Testing Exposure": "48.92%", @@ -62766,7 +62906,7 @@ "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "45.97%", + "Documentation Exposure": "45.89%", "Hardcoded Payload Artifacts": "0.0%" }, "Files": { @@ -62797,7 +62937,7 @@ "Total LOC": 7364, "Coding LOC": 6537, "Documentation LOC": 315, - "Structural Magnitude": 10873.84, + "Structural Magnitude": 10878.84, "Control Flow Ratio": "78.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -63991,6 +64131,16 @@ "Start Line": 5856, "End Line": 5868 }, + { + "Function Name": "lock_record", + "Structural Impact": 2.9, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 1967, + "End Line": 1979 + }, { "Function Name": "cob_file_sort_init_key", "Structural Impact": 2.7, @@ -64001,6 +64151,16 @@ "Start Line": 7062, "End Line": 7070 }, + { + "Function Name": "unlock_record", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1981, + "End Line": 1987 + }, { "Function Name": "cob_file_set_lock", "Structural Impact": 2.1, @@ -64217,9 +64377,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -5269.94, - "Y": -79.48, - "Z": -3494.59 + "X": -5271.61, + "Y": -79.95, + "Z": -3493.04 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -64231,16 +64391,16 @@ "Total LOC": 2689, "Coding LOC": 2299, "Documentation LOC": 138, - "Structural Magnitude": 2953.68, + "Structural Magnitude": 3385.58, "Control Flow Ratio": "71.6%", "Popularity Rank": 1, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.012 + "Raw Cognitive Density": 1.399 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "73.51%", + "Cognitive Load Exposure": "92.38%", "Error & Exception Exposure": "92.09%", "Tech Debt Exposure": "38.29%", "Testing Exposure": "80.0%", @@ -64251,10 +64411,20 @@ "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "94.52%", + "Documentation Exposure": "94.08%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ + { + "Function Name": "cob_decimal_set_display", + "Structural Impact": 641.6, + "Lines of Code (LOC)": 1470, + "Control Flow Branches": 327, + "Input Parameters": 2, + "Control Flow Ratio": "68.4%", + "Start Line": 1219, + "End Line": 2688 + }, { "Function Name": "cob_decimal_get_binary", "Structural Impact": 87.1, @@ -64265,16 +64435,6 @@ "Start Line": 1418, "End Line": 1519 }, - { - "Function Name": "cob_add_packed", - "Structural Impact": 73.3, - "Lines of Code (LOC)": 107, - "Control Flow Branches": 33, - "Input Parameters": 3, - "Control Flow Ratio": "91.7%", - "Start Line": 875, - "End Line": 981 - }, { "Function Name": "cob_decimal_do_round", "Structural Impact": 73.3, @@ -64305,16 +64465,6 @@ "Start Line": 1058, "End Line": 1170 }, - { - "Function Name": "cob_display_add_int", - "Structural Impact": 48.3, - "Lines of Code (LOC)": 86, - "Control Flow Branches": 21, - "Input Parameters": 3, - "Control Flow Ratio": "77.8%", - "Start Line": 2091, - "End Line": 2176 - }, { "Function Name": "cob_decimal_set_binary", "Structural Impact": 45.7, @@ -64405,16 +64555,6 @@ "Start Line": 607, "End Line": 655 }, - { - "Function Name": "cob_decimal_set_display", - "Structural Impact": 27.3, - "Lines of Code (LOC)": 62, - "Control Flow Branches": 13, - "Input Parameters": 2, - "Control Flow Ratio": "81.2%", - "Start Line": 1219, - "End Line": 1280 - }, { "Function Name": "cob_set_packed_int", "Structural Impact": 26.4, @@ -64435,16 +64575,6 @@ "Start Line": 542, "End Line": 605 }, - { - "Function Name": "display_sub_int", - "Structural Impact": 24.8, - "Lines of Code (LOC)": 48, - "Control Flow Branches": 9, - "Input Parameters": 4, - "Control Flow Ratio": "69.2%", - "Start Line": 2042, - "End Line": 2089 - }, { "Function Name": "cob_decimal_print", "Structural Impact": 24.6, @@ -64505,16 +64635,6 @@ "Start Line": 1577, "End Line": 1608 }, - { - "Function Name": "display_add_int", - "Structural Impact": 19.9, - "Lines of Code (LOC)": 41, - "Control Flow Branches": 7, - "Input Parameters": 4, - "Control Flow Ratio": "63.6%", - "Start Line": 2000, - "End Line": 2040 - }, { "Function Name": "cob_decimal_set_double", "Structural Impact": 18.3, @@ -64525,16 +64645,6 @@ "Start Line": 730, "End Line": 784 }, - { - "Function Name": "cob_complement_packed", - "Structural Impact": 16.1, - "Lines of Code (LOC)": 40, - "Control Flow Branches": 9, - "Input Parameters": 1, - "Control Flow Ratio": "90.0%", - "Start Line": 834, - "End Line": 873 - }, { "Function Name": "cob_decimal_get_display", "Structural Impact": 14.5, @@ -114242,7 +114352,7 @@ } }, "c/micropython": { - "Directory Group Magnitude": 11109.94, + "Directory Group Magnitude": 11101.74, "File Count": 12, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" @@ -116926,9 +117036,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": 1135.44, + "X": 1135.39, "Y": -108.66, - "Z": -2592.0 + "Z": -2592.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -116940,7 +117050,7 @@ "Total LOC": 1408, "Coding LOC": 981, "Documentation LOC": 258, - "Structural Magnitude": 1447.62, + "Structural Magnitude": 1439.42, "Control Flow Ratio": "70.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -116994,16 +117104,6 @@ "Start Line": 1115, "End Line": 1263 }, - { - "Function Name": "gc_mark_subtree", - "Structural Impact": 40.0, - "Lines of Code (LOC)": 72, - "Control Flow Branches": 20, - "Input Parameters": 2, - "Control Flow Ratio": "76.9%", - "Start Line": 501, - "End Line": 572 - }, { "Function Name": "gc_info", "Structural Impact": 37.5, @@ -117014,6 +117114,16 @@ "Start Line": 755, "End Line": 826 }, + { + "Function Name": "gc_mark_subtree", + "Structural Impact": 31.8, + "Lines of Code (LOC)": 70, + "Control Flow Branches": 19, + "Input Parameters": 1, + "Control Flow Ratio": "79.2%", + "Start Line": 503, + "End Line": 572 + }, { "Function Name": "gc_setup_area", "Structural Impact": 30.3, @@ -119319,14 +119429,14 @@ } }, "c/sqlite": { - "Directory Group Magnitude": 9960.96, + "Directory Group Magnitude": 9954.46, "File Count": 2, "Ecosystem Fingerprint (Archetypes)": { "Static: Literature & Documentation": "50.0%", "Unclassified": "50.0%" }, "Average Risk Exposures": { - "Cognitive Load Exposure": "45.81%", + "Cognitive Load Exposure": "45.8%", "Error & Exception Exposure": "49.78%", "Tech Debt Exposure": "4.01%", "Testing Exposure": "40.0%", @@ -119525,7 +119635,7 @@ "Total LOC": 6076, "Coding LOC": 4862, "Documentation LOC": 876, - "Structural Magnitude": 9952.44, + "Structural Magnitude": 9945.94, "Control Flow Ratio": "68.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -119534,7 +119644,7 @@ "Raw Cognitive Density": 1.511 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "91.62%", + "Cognitive Load Exposure": "91.61%", "Error & Exception Exposure": "99.56%", "Tech Debt Exposure": "8.03%", "Testing Exposure": "80.0%", @@ -120459,16 +120569,6 @@ "Start Line": 3276, "End Line": 3285 }, - { - "Function Name": "SetPrint", - "Structural Impact": 3.9, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 3445, - "End Line": 3461 - }, { "Function Name": "SetAdd", "Structural Impact": 3.9, @@ -120609,16 +120709,6 @@ "Start Line": 1578, "End Line": 1585 }, - { - "Function Name": "PlinkPrint", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 3464, - "End Line": 3475 - }, { "Function Name": "lemon_free_all", "Structural Impact": 2.4, @@ -341564,7 +341654,7 @@ } }, "assembly/cosmopolitan": { - "Directory Group Magnitude": 1965.06, + "Directory Group Magnitude": 1953.56, "File Count": 4, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" @@ -341581,7 +341671,7 @@ "Specification Exposure": "76.67%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "35.97%", + "Documentation Exposure": "35.96%", "Hardcoded Payload Artifacts": "0.0%" }, "Files": { @@ -341598,9 +341688,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -4898.96, - "Y": 134.99, - "Z": 1492.07 + "X": -4898.77, + "Y": 135.0, + "Z": 1491.97 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -342368,9 +342458,9 @@ "Identity Proof": "Ecosystem Consensus Lock (70% Local Dominance)" }, "2. Topological Coordinates": { - "X": -4348.44, - "Y": 124.76, - "Z": 1788.95 + "X": -4348.4, + "Y": 124.77, + "Z": 1788.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -342525,9 +342615,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -4638.77, - "Y": 160.66, - "Z": 900.76 + "X": -4638.67, + "Y": 160.65, + "Z": 900.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -342753,9 +342843,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -4614.86, + "X": -4614.76, "Y": 101.25, - "Z": 1292.98 + "Z": 1292.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -342767,7 +342857,7 @@ "Total LOC": 1128, "Coding LOC": 911, "Documentation LOC": 134, - "Structural Magnitude": 1552.92, + "Structural Magnitude": 1541.42, "Control Flow Ratio": "74.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -342780,14 +342870,14 @@ "Error & Exception Exposure": "97.99%", "Tech Debt Exposure": "9.75%", "Testing Exposure": "80.0%", - "API Exposure": "12.18%", + "API Exposure": "12.15%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "100.0%", "Commented Logic Exposure": "5.12%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "99.0%", + "Documentation Exposure": "98.96%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ @@ -342961,16 +343051,6 @@ "Start Line": 391, "End Line": 403 }, - { - "Function Name": "StrRChr", - "Structural Impact": 7.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "75.0%", - "Start Line": 248, - "End Line": 258 - }, { "Function Name": "AccessCommand", "Structural Impact": 7.4, @@ -343061,16 +343141,6 @@ "Start Line": 232, "End Line": 237 }, - { - "Function Name": "BaseName", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 260, - "End Line": 263 - }, { "Function Name": "ShowUsage", "Structural Impact": 2.8, @@ -343103,7 +343173,7 @@ "Type/Safety Bypasses": 9, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 4, - "Exposed API / Public Exports": 148, + "Exposed API / Public Exports": 147, "State Mutations / Variable Reassignments": 773, "Commented-out Code (Dead Logic)": 1, "Structured Documentation Blocks": 1, @@ -424811,9 +424881,9 @@ "Identity Proof": "Single Indicator (Ext: .csv)" }, "2. Topological Coordinates": { - "X": -5362.89, + "X": -5362.63, "Y": 187.56, - "Z": 1320.67 + "Z": 1320.61 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -424968,9 +425038,9 @@ "Identity Proof": "Single Indicator (Ext: .tsv)" }, "2. Topological Coordinates": { - "X": -5603.05, + "X": -5602.79, "Y": 221.85, - "Z": 1440.28 + "Z": 1440.22 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435323,9 +435393,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5187.68, + "X": -5187.45, "Y": 14.4, - "Z": 1847.18 + "Z": 1847.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", diff --git a/tests/golden_master_zero_dep_audit.json b/tests/golden_master_zero_dep_audit.json index 86879918..a505549f 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-08-17T00:26:46.611817+00:00", - "Total Scan Duration": "47.31 seconds" + "Analysis ISO Timestamp": "2026-08-17T00:44:54.750431+00:00", + "Total Scan Duration": "47.96 seconds" }, "Source Control Footprint (Immutable Anchor)": { "Active Branch": "HEAD", @@ -196,10 +196,10 @@ } }, "health": { - "avg_cognitive_load": 24.686, + "avg_cognitive_load": 24.763, "avg_safety_score": 38.602, "avg_tech_debt": 23.32, - "avg_documentation": 21.507 + "avg_documentation": 21.506 }, "composition": { "xml": { @@ -245,7 +245,7 @@ "c": { "files": 44, "loc": 74236, - "impact": 100817.62 + "impact": 103331.12 }, "batch": { "files": 3, @@ -295,7 +295,7 @@ "cpp": { "files": 33, "loc": 44831, - "impact": 58783.01999999999 + "impact": 59719.92 }, "csharp": { "files": 8, @@ -641,9 +641,9 @@ }, "c/sqlite": { "file_count": 2, - "total_mass": 9960.96, + "total_mass": 9954.46, "avg_exposures": { - "cognitive_load": 45.81, + "cognitive_load": 45.8, "safety_score": 49.78, "tech_debt": 4.01, "verification": 40.0, @@ -698,13 +698,13 @@ }, "cpp/godot": { "file_count": 16, - "total_mass": 38718.82, + "total_mass": 39639.12, "avg_exposures": { "cognitive_load": 59.79, - "safety_score": 73.57, + "safety_score": 73.56, "tech_debt": 22.49, "verification": 55.29, - "api_exposure": 5.28, + "api_exposure": 5.29, "concurrency": 0.0, "state_flux": 81.22, "dead_code": 2.11, @@ -1021,11 +1021,11 @@ }, "c/cpython": { "file_count": 8, - "total_mass": 33171.04, + "total_mass": 35273.84, "avg_exposures": { - "cognitive_load": 66.29, + "cognitive_load": 72.91, "safety_score": 86.01, - "tech_debt": 35.03, + "tech_debt": 34.97, "verification": 70.29, "api_exposure": 13.77, "concurrency": 0.0, @@ -1078,7 +1078,7 @@ }, "assembly/cosmopolitan": { "file_count": 4, - "total_mass": 1965.06, + "total_mass": 1953.56, "avg_exposures": { "cognitive_load": 26.18, "safety_score": 38.28, @@ -1091,7 +1091,7 @@ "spec_match": 76.67, "stability": 50.0, "churn": 0.0, - "documentation": 35.97, + "documentation": 35.96, "secrets_risk": 0.0 } }, @@ -1116,7 +1116,7 @@ }, "c/micropython": { "file_count": 12, - "total_mass": 11109.94, + "total_mass": 11101.74, "avg_exposures": { "cognitive_load": 49.19, "safety_score": 53.58, @@ -1135,9 +1135,9 @@ }, "cobol/gnucobol_internals": { "file_count": 5, - "total_mass": 15231.85, + "total_mass": 15668.75, "avg_exposures": { - "cognitive_load": 44.54, + "cognitive_load": 48.32, "safety_score": 68.48, "tech_debt": 14.48, "verification": 48.92, @@ -1148,7 +1148,7 @@ "spec_match": 100.0, "stability": 50.0, "churn": 0.0, - "documentation": 45.97, + "documentation": 45.89, "secrets_risk": 0.0 } }, @@ -1952,7 +1952,7 @@ }, "livecode/core": { "file_count": 11, - "total_mass": 26635.82, + "total_mass": 26652.42, "avg_exposures": { "cognitive_load": 33.19, "safety_score": 56.39, @@ -14697,7 +14697,7 @@ } }, "cpp/godot": { - "Directory Group Magnitude": 38718.82, + "Directory Group Magnitude": 39639.12, "File Count": 16, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "81.2%", @@ -14705,10 +14705,10 @@ }, "Average Risk Exposures": { "Cognitive Load Exposure": "59.79%", - "Error & Exception Exposure": "73.57%", + "Error & Exception Exposure": "73.56%", "Tech Debt Exposure": "22.49%", "Testing Exposure": "55.29%", - "API Exposure": "5.28%", + "API Exposure": "5.29%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "81.22%", "Commented Logic Exposure": "2.11%", @@ -15678,16 +15678,16 @@ "Total LOC": 9612, "Coding LOC": 7665, "Documentation LOC": 454, - "Structural Magnitude": 9876.4, + "Structural Magnitude": 9878.0, "Control Flow Ratio": "79.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.386 + "Raw Cognitive Density": 1.387 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "92.31%", + "Cognitive Load Exposure": "92.32%", "Error & Exception Exposure": "96.25%", "Tech Debt Exposure": "97.25%", "Testing Exposure": "80.0%", @@ -18402,6 +18402,16 @@ "Start Line": 7948, "End Line": 7950 }, + { + "Function Name": "get_game_view_plugin", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 8278, + "End Line": 8280 + }, { "Function Name": "EditorNode::open_setting_override", "Structural Impact": 1.6, @@ -19489,16 +19499,16 @@ "Total LOC": 4040, "Coding LOC": 3258, "Documentation LOC": 95, - "Structural Magnitude": 7029.66, + "Structural Magnitude": 7487.06, "Control Flow Ratio": "92.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.517 + "Raw Cognitive Density": 1.531 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "94.56%", + "Cognitive Load Exposure": "94.79%", "Error & Exception Exposure": "99.68%", "Tech Debt Exposure": "14.64%", "Testing Exposure": "80.0%", @@ -19543,6 +19553,16 @@ "Start Line": 760, "End Line": 2411 }, + { + "Function Name": "OPCODE_WHILE", + "Structural Impact": 457.4, + "Lines of Code (LOC)": 1653, + "Control Flow Branches": 264, + "Input Parameters": 1, + "Control Flow Ratio": "98.5%", + "Start Line": 757, + "End Line": 2409 + }, { "Function Name": "OPCODE", "Structural Impact": 64.2, @@ -20724,20 +20744,20 @@ "Total LOC": 5377, "Coding LOC": 4227, "Documentation LOC": 374, - "Structural Magnitude": 6806.44, + "Structural Magnitude": 7266.44, "Control Flow Ratio": "93.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.563 + "Raw Cognitive Density": 1.564 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "94.34%", + "Cognitive Load Exposure": "94.35%", "Error & Exception Exposure": "98.81%", "Tech Debt Exposure": "11.52%", "Testing Exposure": "80.0%", - "API Exposure": "7.09%", + "API Exposure": "7.3%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "100.0%", "Commented Logic Exposure": "8.84%", @@ -20759,24 +20779,24 @@ "End Line": 2632 }, { - "Function Name": "Main::start", - "Structural Impact": 384.7, - "Lines of Code (LOC)": 878, - "Control Flow Branches": 240, + "Function Name": "Main::setup2", + "Structural Impact": 675.2, + "Lines of Code (LOC)": 1512, + "Control Flow Branches": 423, "Input Parameters": 1, - "Control Flow Ratio": "92.0%", - "Start Line": 3987, - "End Line": 4864 + "Control Flow Ratio": "94.4%", + "Start Line": 3007, + "End Line": 4518 }, { - "Function Name": "Main::setup2", - "Structural Impact": 375.3, - "Lines of Code (LOC)": 887, - "Control Flow Branches": 233, + "Function Name": "Main::start", + "Structural Impact": 506.5, + "Lines of Code (LOC)": 1390, + "Control Flow Branches": 308, "Input Parameters": 1, - "Control Flow Ratio": "98.3%", - "Start Line": 3007, - "End Line": 3893 + "Control Flow Ratio": "92.2%", + "Start Line": 3987, + "End Line": 5376 }, { "Function Name": "Main::print_help", @@ -20828,6 +20848,16 @@ "Start Line": 490, "End Line": 524 }, + { + "Function Name": "Main::test_cleanup", + "Structural Impact": 20.1, + "Lines of Code (LOC)": 91, + "Control Flow Branches": 10, + "Input Parameters": 1, + "Control Flow Ratio": "90.9%", + "Start Line": 881, + "End Line": 971 + }, { "Function Name": "Main::test_entrypoint", "Structural Impact": 19.4, @@ -20838,6 +20868,16 @@ "Start Line": 974, "End Line": 1000 }, + { + "Function Name": "Main::test_setup", + "Structural Impact": 18.2, + "Lines of Code (LOC)": 136, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "88.9%", + "Start Line": 743, + "End Line": 878 + }, { "Function Name": "get_files_with_extension", "Structural Impact": 16.7, @@ -21050,8 +21090,8 @@ "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 12, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 20, - "State Mutations / Variable Reassignments": 4077, + "Exposed API / Public Exports": 22, + "State Mutations / Variable Reassignments": 4075, "Commented-out Code (Dead Logic)": 4, "Structured Documentation Blocks": 10, "Unit Test Assertions": 0, @@ -23941,9 +23981,9 @@ "Identity Proof": "Sibling Anchor (C++)" }, "2. Topological Coordinates": { - "X": -87.0, - "Y": 89.59, - "Z": 3636.74 + "X": -86.95, + "Y": 89.6, + "Z": 3636.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -23955,16 +23995,16 @@ "Total LOC": 945, "Coding LOC": 670, "Documentation LOC": 81, - "Structural Magnitude": 507.0, + "Structural Magnitude": 509.2, "Control Flow Ratio": "12.5%", "Popularity Rank": 1, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.467 + "Raw Cognitive Density": 1.47 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "72.26%", + "Cognitive Load Exposure": "72.31%", "Error & Exception Exposure": "88.16%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "80.0%", @@ -24249,6 +24289,16 @@ "Start Line": 165, "End Line": 165 }, + { + "Function Name": "_emit_editor_state_changed", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 371, + "End Line": 371 + }, { "Function Name": "_block", "Structural Impact": 1.1, @@ -24349,6 +24399,16 @@ "Start Line": 559, "End Line": 559 }, + { + "Function Name": "is_part_of_edited_scene", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 639, + "End Line": 639 + }, { "Function Name": "is_group_processing", "Structural Impact": 1.1, @@ -26496,9 +26556,9 @@ "Identity Proof": "Sibling Anchor (C++)" }, "2. Topological Coordinates": { - "X": -361.44, + "X": -361.45, "Y": 52.28, - "Z": 2591.54 + "Z": 2591.57 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -26510,17 +26570,17 @@ "Total LOC": 1244, "Coding LOC": 873, "Documentation LOC": 82, - "Structural Magnitude": 408.46, + "Structural Magnitude": 407.56, "Control Flow Ratio": "34.1%", "Popularity Rank": 1, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.086 + "Raw Cognitive Density": 1.081 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "64.79%", - "Error & Exception Exposure": "78.37%", + "Cognitive Load Exposure": "64.54%", + "Error & Exception Exposure": "78.19%", "Tech Debt Exposure": "9.36%", "Testing Exposure": "80.0%", "API Exposure": "6.17%", @@ -26624,6 +26684,16 @@ "Start Line": 67, "End Line": 67 }, + { + "Function Name": "redraw_request", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 111, + "End Line": 113 + }, { "Function Name": "is_on_render_thread", "Structural Impact": 1.1, @@ -26647,7 +26717,7 @@ "High-Risk Execution Commands": 1, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 326, + "State Mutations / Variable Reassignments": 324, "Commented-out Code (Dead Logic)": 2, "Structured Documentation Blocks": 4, "Unit Test Assertions": 0, @@ -29075,15 +29145,15 @@ } }, "c/cpython": { - "Directory Group Magnitude": 33171.04, + "Directory Group Magnitude": 35273.84, "File Count": 8, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" }, "Average Risk Exposures": { - "Cognitive Load Exposure": "66.29%", + "Cognitive Load Exposure": "72.91%", "Error & Exception Exposure": "86.01%", - "Tech Debt Exposure": "35.03%", + "Tech Debt Exposure": "34.97%", "Testing Exposure": "70.29%", "API Exposure": "13.77%", "Concurrency Exposure": "0.0%", @@ -29277,9 +29347,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1391.44, - "Y": 145.71, - "Z": -1755.68 + "X": -1390.94, + "Y": 145.69, + "Z": -1761.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -29291,16 +29361,16 @@ "Total LOC": 3840, "Coding LOC": 3294, "Documentation LOC": 244, - "Structural Magnitude": 4545.98, + "Structural Magnitude": 6161.48, "Control Flow Ratio": "68.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.083 + "Raw Cognitive Density": 1.526 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "78.08%", + "Cognitive Load Exposure": "94.47%", "Error & Exception Exposure": "90.27%", "Tech Debt Exposure": "9.09%", "Testing Exposure": "80.0%", @@ -29315,6 +29385,36 @@ "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ + { + "Function Name": "_Py_CheckRecursiveCall", + "Structural Impact": 620.8, + "Lines of Code (LOC)": 1677, + "Control Flow Branches": 309, + "Input Parameters": 2, + "Control Flow Ratio": "80.9%", + "Start Line": 282, + "End Line": 1958 + }, + { + "Function Name": "_Py_ReachedRecursionLimitWithMargin", + "Structural Impact": 561.2, + "Lines of Code (LOC)": 1732, + "Control Flow Branches": 273, + "Input Parameters": 2, + "Control Flow Ratio": "72.2%", + "Start Line": 28, + "End Line": 1759 + }, + { + "Function Name": "_Py_EnterRecursiveCallUnchecked", + "Structural Impact": 477.3, + "Lines of Code (LOC)": 1739, + "Control Flow Branches": 275, + "Input Parameters": 1, + "Control Flow Ratio": "72.9%", + "Start Line": 52, + "End Line": 1790 + }, { "Function Name": "initialize_locals", "Structural Impact": 226.7, @@ -29545,16 +29645,6 @@ "Start Line": 3409, "End Line": 3444 }, - { - "Function Name": "_Py_ReachedRecursionLimitWithMargin", - "Structural Impact": 18.5, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 9, - "Input Parameters": 2, - "Control Flow Ratio": "75.0%", - "Start Line": 28, - "End Line": 50 - }, { "Function Name": "_PyEval_GetIter", "Structural Impact": 17.7, @@ -29565,16 +29655,6 @@ "Start Line": 1169, "End Line": 1202 }, - { - "Function Name": "_Py_CheckRecursiveCall", - "Structural Impact": 17.6, - "Lines of Code (LOC)": 40, - "Control Flow Branches": 8, - "Input Parameters": 2, - "Control Flow Ratio": "80.0%", - "Start Line": 282, - "End Line": 321 - }, { "Function Name": "_PyEval_LoadName", "Structural Impact": 17.6, @@ -29935,16 +30015,6 @@ "Start Line": 2773, "End Line": 2790 }, - { - "Function Name": "_Py_EnterRecursiveCallUnchecked", - "Structural Impact": 7.7, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "80.0%", - "Start Line": 52, - "End Line": 64 - }, { "Function Name": "_PyEval_GetFrameLocals", "Structural Impact": 7.7, @@ -31359,18 +31429,18 @@ "Total LOC": 8326, "Coding LOC": 6573, "Documentation LOC": 821, - "Structural Magnitude": 7722.56, + "Structural Magnitude": 8237.26, "Control Flow Ratio": "63.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.038 + "Raw Cognitive Density": 1.409 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "75.5%", - "Error & Exception Exposure": "87.32%", - "Tech Debt Exposure": "32.24%", + "Cognitive Load Exposure": "92.7%", + "Error & Exception Exposure": "87.3%", + "Tech Debt Exposure": "31.74%", "Testing Exposure": "80.0%", "API Exposure": "13.63%", "Concurrency Exposure": "0.0%", @@ -31379,10 +31449,20 @@ "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "99.7%", + "Documentation Exposure": "99.71%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ + { + "Function Name": "dictiter_iternextitem", + "Structural Impact": 486.1, + "Lines of Code (LOC)": 1888, + "Control Flow Branches": 276, + "Input Parameters": 1, + "Control Flow Ratio": "64.6%", + "Start Line": 5994, + "End Line": 7881 + }, { "Function Name": "_PyDict_FromKeys", "Structural Impact": 82.8, @@ -31573,6 +31653,16 @@ "Start Line": 1942, "End Line": 2009 }, + { + "Function Name": "dictiter_iternextkey_lock_held", + "Structural Impact": 34.5, + "Lines of Code (LOC)": 66, + "Control Flow Branches": 17, + "Input Parameters": 2, + "Control Flow Ratio": "85.0%", + "Start Line": 5524, + "End Line": 5589 + }, { "Function Name": "dictiter_iternextvalue_lock_held", "Structural Impact": 34.4, @@ -32123,16 +32213,6 @@ "Start Line": 3756, "End Line": 3792 }, - { - "Function Name": "dictiter_iternextitem", - "Structural Impact": 11.6, - "Lines of Code (LOC)": 35, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 5994, - "End Line": 6028 - }, { "Function Name": "frozendict_or", "Structural Impact": 11.4, @@ -32273,16 +32353,6 @@ "Start Line": 6700, "End Line": 6720 }, - { - "Function Name": "_PyObject_ManagedDictValidityCheck", - "Structural Impact": 9.7, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 5, - "Input Parameters": 1, - "Control Flow Ratio": "83.3%", - "Start Line": 7399, - "End Line": 7423 - }, { "Function Name": "dictitems_contains", "Structural Impact": 9.6, @@ -32523,6 +32593,16 @@ "Start Line": 7329, "End Line": 7343 }, + { + "Function Name": "_Py_dict_lookup_threadsafe_stackref", + "Structural Impact": 7.4, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 4, + "Control Flow Ratio": "66.7%", + "Start Line": 1704, + "End Line": 1716 + }, { "Function Name": "new_dict", "Structural Impact": 7.3, @@ -33353,6 +33433,16 @@ "Start Line": 938, "End Line": 944 }, + { + "Function Name": "_Py_dict_lookup_threadsafe", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 1696, + "End Line": 1702 + }, { "Function Name": "unicodekeys_lookup_generic", "Structural Impact": 2.5, @@ -33673,6 +33763,26 @@ "Start Line": 209, "End Line": 214 }, + { + "Function Name": "set_keys", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 269, + "End Line": 273 + }, + { + "Function Name": "set_values", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 275, + "End Line": 279 + }, { "Function Name": "insertion_resize", "Structural Impact": 2.0, @@ -33863,6 +33973,26 @@ "Start Line": 195, "End Line": 200 }, + { + "Function Name": "split_keys_entry_added", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 263, + "End Line": 267 + }, + { + "Function Name": "load_keys_nentries", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 281, + "End Line": 285 + }, { "Function Name": "unicode_get_hash", "Structural Impact": 1.7, @@ -34056,7 +34186,7 @@ "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 1319, - "State Mutations / Variable Reassignments": 3300, + "State Mutations / Variable Reassignments": 3298, "Commented-out Code (Dead Logic)": 5, "Structured Documentation Blocks": 5, "Unit Test Assertions": 291, @@ -34119,7 +34249,7 @@ "Design Short Vars": 185, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 68, + "Orphaned Logic": 67, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -34183,9 +34313,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1986.47, + "X": -1986.28, "Y": 137.89, - "Z": -1506.98 + "Z": -1506.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -34197,20 +34327,20 @@ "Total LOC": 2451, "Coding LOC": 1936, "Documentation LOC": 235, - "Structural Magnitude": 2540.12, + "Structural Magnitude": 2509.42, "Control Flow Ratio": "61.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.98 + "Raw Cognitive Density": 1.324 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "71.49%", + "Cognitive Load Exposure": "90.87%", "Error & Exception Exposure": "91.29%", "Tech Debt Exposure": "8.75%", "Testing Exposure": "80.0%", - "API Exposure": "13.67%", + "API Exposure": "13.66%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "100.0%", "Commented Logic Exposure": "4.91%", @@ -34341,16 +34471,6 @@ "Start Line": 762, "End Line": 791 }, - { - "Function Name": "print_stack", - "Structural Impact": 13.7, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 8, - "Input Parameters": 1, - "Control Flow Ratio": "80.0%", - "Start Line": 1284, - "End Line": 1302 - }, { "Function Name": "framelocalsproxy_new", "Structural Impact": 13.6, @@ -34371,16 +34491,6 @@ "Start Line": 734, "End Line": 760 }, - { - "Function Name": "tos_char", - "Structural Impact": 12.1, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 7, - "Input Parameters": 1, - "Control Flow Ratio": "53.8%", - "Start Line": 1267, - "End Line": 1282 - }, { "Function Name": "framelocalsproxy_getitem", "Structural Impact": 11.9, @@ -34671,16 +34781,6 @@ "Start Line": 714, "End Line": 721 }, - { - "Function Name": "print_stacks", - "Structural Impact": 3.9, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 1304, - "End Line": 1311 - }, { "Function Name": "frame_tp_clear", "Structural Impact": 3.9, @@ -35033,7 +35133,7 @@ "Type/Safety Bypasses": 25, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 7, - "Exposed API / Public Exports": 472, + "Exposed API / Public Exports": 471, "State Mutations / Variable Reassignments": 1144, "Commented-out Code (Dead Logic)": 1, "Structured Documentation Blocks": 0, @@ -38087,7 +38187,7 @@ "Total LOC": 12874, "Coding LOC": 9970, "Documentation LOC": 1437, - "Structural Magnitude": 11317.9, + "Structural Magnitude": 11321.2, "Control Flow Ratio": "61.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -41221,6 +41321,16 @@ "Start Line": 7337, "End Line": 7346 }, + { + "Function Name": "update_all_slots", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 11977, + "End Line": 11986 + }, { "Function Name": "fixup_slot_dispatchers", "Structural Impact": 3.2, @@ -42222,7 +42332,7 @@ } }, "livecode/core": { - "Directory Group Magnitude": 26635.82, + "Directory Group Magnitude": 26652.42, "File Count": 11, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" @@ -44115,7 +44225,7 @@ "Total LOC": 7360, "Coding LOC": 5338, "Documentation LOC": 634, - "Structural Magnitude": 7073.66, + "Structural Magnitude": 7090.26, "Control Flow Ratio": "64.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -44125,7 +44235,7 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "35.42%", - "Error & Exception Exposure": "95.46%", + "Error & Exception Exposure": "95.44%", "Tech Debt Exposure": "81.19%", "Testing Exposure": "80.0%", "API Exposure": "0.0%", @@ -45279,6 +45389,16 @@ "Start Line": 3699, "End Line": 3714 }, + { + "Function Name": "MCStringConvertToSysString", + "Structural Impact": 8.1, + "Lines of Code (LOC)": 42, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "40.0%", + "Start Line": 6669, + "End Line": 6710 + }, { "Function Name": "MCStringMutableCopy", "Structural Impact": 8.0, @@ -45309,6 +45429,16 @@ "Start Line": 4553, "End Line": 4574 }, + { + "Function Name": "MCStringCreateWithSysString", + "Structural Impact": 8.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 6723, + "End Line": 6743 + }, { "Function Name": "__MCStringCountGraphemesInRange", "Structural Impact": 7.9, @@ -45699,6 +45829,16 @@ "Start Line": 5114, "End Line": 5124 }, + { + "Function Name": "MCStringConvertToSysString", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 3, + "Control Flow Ratio": "33.3%", + "Start Line": 6712, + "End Line": 6721 + }, { "Function Name": "MCStringConvertToCString", "Structural Impact": 4.2, @@ -46382,7 +46522,7 @@ "High-Risk Execution Commands": 5, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 0, - "State Mutations / Variable Reassignments": 3725, + "State Mutations / Variable Reassignments": 3721, "Commented-out Code (Dead Logic)": 9, "Structured Documentation Blocks": 883, "Unit Test Assertions": 0, @@ -62749,13 +62889,13 @@ } }, "cobol/gnucobol_internals": { - "Directory Group Magnitude": 15231.85, + "Directory Group Magnitude": 15668.75, "File Count": 5, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" }, "Average Risk Exposures": { - "Cognitive Load Exposure": "44.54%", + "Cognitive Load Exposure": "48.32%", "Error & Exception Exposure": "68.48%", "Tech Debt Exposure": "14.48%", "Testing Exposure": "48.92%", @@ -62766,7 +62906,7 @@ "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "45.97%", + "Documentation Exposure": "45.89%", "Hardcoded Payload Artifacts": "0.0%" }, "Files": { @@ -62797,7 +62937,7 @@ "Total LOC": 7364, "Coding LOC": 6537, "Documentation LOC": 315, - "Structural Magnitude": 10873.84, + "Structural Magnitude": 10878.84, "Control Flow Ratio": "78.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -63991,6 +64131,16 @@ "Start Line": 5856, "End Line": 5868 }, + { + "Function Name": "lock_record", + "Structural Impact": 2.9, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 1967, + "End Line": 1979 + }, { "Function Name": "cob_file_sort_init_key", "Structural Impact": 2.7, @@ -64001,6 +64151,16 @@ "Start Line": 7062, "End Line": 7070 }, + { + "Function Name": "unlock_record", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1981, + "End Line": 1987 + }, { "Function Name": "cob_file_set_lock", "Structural Impact": 2.1, @@ -64217,9 +64377,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -5269.94, - "Y": -79.48, - "Z": -3494.59 + "X": -5271.61, + "Y": -79.95, + "Z": -3493.04 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -64231,16 +64391,16 @@ "Total LOC": 2689, "Coding LOC": 2299, "Documentation LOC": 138, - "Structural Magnitude": 2953.68, + "Structural Magnitude": 3385.58, "Control Flow Ratio": "71.6%", "Popularity Rank": 1, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.012 + "Raw Cognitive Density": 1.399 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "73.51%", + "Cognitive Load Exposure": "92.38%", "Error & Exception Exposure": "92.09%", "Tech Debt Exposure": "38.29%", "Testing Exposure": "80.0%", @@ -64251,10 +64411,20 @@ "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "94.52%", + "Documentation Exposure": "94.08%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ + { + "Function Name": "cob_decimal_set_display", + "Structural Impact": 641.6, + "Lines of Code (LOC)": 1470, + "Control Flow Branches": 327, + "Input Parameters": 2, + "Control Flow Ratio": "68.4%", + "Start Line": 1219, + "End Line": 2688 + }, { "Function Name": "cob_decimal_get_binary", "Structural Impact": 87.1, @@ -64265,16 +64435,6 @@ "Start Line": 1418, "End Line": 1519 }, - { - "Function Name": "cob_add_packed", - "Structural Impact": 73.3, - "Lines of Code (LOC)": 107, - "Control Flow Branches": 33, - "Input Parameters": 3, - "Control Flow Ratio": "91.7%", - "Start Line": 875, - "End Line": 981 - }, { "Function Name": "cob_decimal_do_round", "Structural Impact": 73.3, @@ -64305,16 +64465,6 @@ "Start Line": 1058, "End Line": 1170 }, - { - "Function Name": "cob_display_add_int", - "Structural Impact": 48.3, - "Lines of Code (LOC)": 86, - "Control Flow Branches": 21, - "Input Parameters": 3, - "Control Flow Ratio": "77.8%", - "Start Line": 2091, - "End Line": 2176 - }, { "Function Name": "cob_decimal_set_binary", "Structural Impact": 45.7, @@ -64405,16 +64555,6 @@ "Start Line": 607, "End Line": 655 }, - { - "Function Name": "cob_decimal_set_display", - "Structural Impact": 27.3, - "Lines of Code (LOC)": 62, - "Control Flow Branches": 13, - "Input Parameters": 2, - "Control Flow Ratio": "81.2%", - "Start Line": 1219, - "End Line": 1280 - }, { "Function Name": "cob_set_packed_int", "Structural Impact": 26.4, @@ -64435,16 +64575,6 @@ "Start Line": 542, "End Line": 605 }, - { - "Function Name": "display_sub_int", - "Structural Impact": 24.8, - "Lines of Code (LOC)": 48, - "Control Flow Branches": 9, - "Input Parameters": 4, - "Control Flow Ratio": "69.2%", - "Start Line": 2042, - "End Line": 2089 - }, { "Function Name": "cob_decimal_print", "Structural Impact": 24.6, @@ -64505,16 +64635,6 @@ "Start Line": 1577, "End Line": 1608 }, - { - "Function Name": "display_add_int", - "Structural Impact": 19.9, - "Lines of Code (LOC)": 41, - "Control Flow Branches": 7, - "Input Parameters": 4, - "Control Flow Ratio": "63.6%", - "Start Line": 2000, - "End Line": 2040 - }, { "Function Name": "cob_decimal_set_double", "Structural Impact": 18.3, @@ -64525,16 +64645,6 @@ "Start Line": 730, "End Line": 784 }, - { - "Function Name": "cob_complement_packed", - "Structural Impact": 16.1, - "Lines of Code (LOC)": 40, - "Control Flow Branches": 9, - "Input Parameters": 1, - "Control Flow Ratio": "90.0%", - "Start Line": 834, - "End Line": 873 - }, { "Function Name": "cob_decimal_get_display", "Structural Impact": 14.5, @@ -114242,7 +114352,7 @@ } }, "c/micropython": { - "Directory Group Magnitude": 11109.94, + "Directory Group Magnitude": 11101.74, "File Count": 12, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" @@ -116926,9 +117036,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": 1135.44, + "X": 1135.39, "Y": -108.66, - "Z": -2592.0 + "Z": -2592.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -116940,7 +117050,7 @@ "Total LOC": 1408, "Coding LOC": 981, "Documentation LOC": 258, - "Structural Magnitude": 1447.62, + "Structural Magnitude": 1439.42, "Control Flow Ratio": "70.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -116994,16 +117104,6 @@ "Start Line": 1115, "End Line": 1263 }, - { - "Function Name": "gc_mark_subtree", - "Structural Impact": 40.0, - "Lines of Code (LOC)": 72, - "Control Flow Branches": 20, - "Input Parameters": 2, - "Control Flow Ratio": "76.9%", - "Start Line": 501, - "End Line": 572 - }, { "Function Name": "gc_info", "Structural Impact": 37.5, @@ -117014,6 +117114,16 @@ "Start Line": 755, "End Line": 826 }, + { + "Function Name": "gc_mark_subtree", + "Structural Impact": 31.8, + "Lines of Code (LOC)": 70, + "Control Flow Branches": 19, + "Input Parameters": 1, + "Control Flow Ratio": "79.2%", + "Start Line": 503, + "End Line": 572 + }, { "Function Name": "gc_setup_area", "Structural Impact": 30.3, @@ -119319,14 +119429,14 @@ } }, "c/sqlite": { - "Directory Group Magnitude": 9960.96, + "Directory Group Magnitude": 9954.46, "File Count": 2, "Ecosystem Fingerprint (Archetypes)": { "Static: Literature & Documentation": "50.0%", "Unclassified": "50.0%" }, "Average Risk Exposures": { - "Cognitive Load Exposure": "45.81%", + "Cognitive Load Exposure": "45.8%", "Error & Exception Exposure": "49.78%", "Tech Debt Exposure": "4.01%", "Testing Exposure": "40.0%", @@ -119525,7 +119635,7 @@ "Total LOC": 6076, "Coding LOC": 4862, "Documentation LOC": 876, - "Structural Magnitude": 9952.44, + "Structural Magnitude": 9945.94, "Control Flow Ratio": "68.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -119534,7 +119644,7 @@ "Raw Cognitive Density": 1.511 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "91.62%", + "Cognitive Load Exposure": "91.61%", "Error & Exception Exposure": "99.56%", "Tech Debt Exposure": "8.03%", "Testing Exposure": "80.0%", @@ -120459,16 +120569,6 @@ "Start Line": 3276, "End Line": 3285 }, - { - "Function Name": "SetPrint", - "Structural Impact": 3.9, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 3445, - "End Line": 3461 - }, { "Function Name": "SetAdd", "Structural Impact": 3.9, @@ -120609,16 +120709,6 @@ "Start Line": 1578, "End Line": 1585 }, - { - "Function Name": "PlinkPrint", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 3464, - "End Line": 3475 - }, { "Function Name": "lemon_free_all", "Structural Impact": 2.4, @@ -341564,7 +341654,7 @@ } }, "assembly/cosmopolitan": { - "Directory Group Magnitude": 1965.06, + "Directory Group Magnitude": 1953.56, "File Count": 4, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" @@ -341581,7 +341671,7 @@ "Specification Exposure": "76.67%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "35.97%", + "Documentation Exposure": "35.96%", "Hardcoded Payload Artifacts": "0.0%" }, "Files": { @@ -341598,9 +341688,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -4898.96, - "Y": 134.99, - "Z": 1492.07 + "X": -4898.77, + "Y": 135.0, + "Z": 1491.97 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -342368,9 +342458,9 @@ "Identity Proof": "Ecosystem Consensus Lock (70% Local Dominance)" }, "2. Topological Coordinates": { - "X": -4348.44, - "Y": 124.76, - "Z": 1788.95 + "X": -4348.4, + "Y": 124.77, + "Z": 1788.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -342525,9 +342615,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -4638.77, - "Y": 160.66, - "Z": 900.76 + "X": -4638.67, + "Y": 160.65, + "Z": 900.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -342753,9 +342843,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -4614.86, + "X": -4614.76, "Y": 101.25, - "Z": 1292.98 + "Z": 1292.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -342767,7 +342857,7 @@ "Total LOC": 1128, "Coding LOC": 911, "Documentation LOC": 134, - "Structural Magnitude": 1552.92, + "Structural Magnitude": 1541.42, "Control Flow Ratio": "74.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -342780,14 +342870,14 @@ "Error & Exception Exposure": "97.99%", "Tech Debt Exposure": "9.75%", "Testing Exposure": "80.0%", - "API Exposure": "12.18%", + "API Exposure": "12.15%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "100.0%", "Commented Logic Exposure": "5.12%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "99.0%", + "Documentation Exposure": "98.96%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ @@ -342961,16 +343051,6 @@ "Start Line": 391, "End Line": 403 }, - { - "Function Name": "StrRChr", - "Structural Impact": 7.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "75.0%", - "Start Line": 248, - "End Line": 258 - }, { "Function Name": "AccessCommand", "Structural Impact": 7.4, @@ -343061,16 +343141,6 @@ "Start Line": 232, "End Line": 237 }, - { - "Function Name": "BaseName", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 260, - "End Line": 263 - }, { "Function Name": "ShowUsage", "Structural Impact": 2.8, @@ -343103,7 +343173,7 @@ "Type/Safety Bypasses": 9, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 4, - "Exposed API / Public Exports": 148, + "Exposed API / Public Exports": 147, "State Mutations / Variable Reassignments": 773, "Commented-out Code (Dead Logic)": 1, "Structured Documentation Blocks": 1, @@ -424811,9 +424881,9 @@ "Identity Proof": "Single Indicator (Ext: .csv)" }, "2. Topological Coordinates": { - "X": -5362.89, + "X": -5362.63, "Y": 187.56, - "Z": 1320.67 + "Z": 1320.61 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -424968,9 +425038,9 @@ "Identity Proof": "Single Indicator (Ext: .tsv)" }, "2. Topological Coordinates": { - "X": -5603.05, + "X": -5602.79, "Y": 221.85, - "Z": 1440.28 + "Z": 1440.22 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435323,9 +435393,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5187.68, + "X": -5187.45, "Y": 14.4, - "Z": 1847.18 + "Z": 1847.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified",