Skip to content

fix(extraction): resolve unvalidated tri-comparison ledger shapes for Obj-C, Swift, Tcl, TS - #2224

Merged
squid-protocol merged 22 commits into
mainfrom
fix/tri-comparison-sweep-final-issues
Aug 24, 2026
Merged

fix(extraction): resolve unvalidated tri-comparison ledger shapes for Obj-C, Swift, Tcl, TS#2224
squid-protocol merged 22 commits into
mainfrom
fix/tri-comparison-sweep-final-issues

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

This PR completes the manual validation sweep for the remaining unvalidated tri-comparison shapes, resulting in accuracy fixes for Objective-C, Swift, Tcl, and TypeScript.

Defect Fixes:

  • Objective-C: Updated func_start to correctly match unparenthesized return types (e.g., - unsigned char next_input_block).
  • Swift: Modified detector.py normalizer to preserve standard operator characters (e.g., ==), preventing them from collapsing into Unknown_Block.
  • Tcl: Updated func_start to optionally consume the inline brace-wrapped argument list so it isn't mistaken for the function body by the balanced-brace finder.
  • TypeScript: Fixed arrow function func_start branch to permit up to 3 levels of nested parentheses in the return type, enabling extraction of const fn = <T>(): (returnType<...>) => {.

Closed Issues

Closes #2214
Closes #2217
Closes #2218
Closes #2220

(Issues #2215, #2216, and #2219 were also investigated but closed as working-as-intended.)

Baseline Updates

  • Golden Masters: Updated tests/golden_master_audit.json and tests/golden_master_zero_dep_audit.json to reflect the recovered symbols and corresponding metrics shifts.
  • Tree-sitter: Regenerated baseline accuracy data for Obj-C, Swift, and TypeScript to lock in the improved recall.
  • Tri-Comparison: Applied final manual validation verdicts to tri_comparison_ledger.json and regenerated the SVG chart and markdown report.

… Obj-C, Swift, Tcl, TS

This commit resolves a batch of unvalidated tri-comparison shapes by improving extraction accuracy:
- **Objective-C**: Updated `func_start` to correctly match unparenthesized return types (e.g., `- unsigned char next_input_block`).
- **Swift**: Modified `detector.py` normalizer to preserve standard operator characters (e.g., `==`), preventing them from collapsing into `Unknown_Block`.
- **Tcl**: Updated `func_start` to optionally consume the inline brace-wrapped argument list so it isn't mistaken for the function body by the balanced-brace finder.
- **TypeScript**: Fixed arrow function `func_start` branch to permit up to 3 levels of nested parentheses in the return type, enabling extraction of `const fn = <T>(): (returnType<...>) => {`.

Closes #2214
Closes #2217
Closes #2218
Closes #2220

Also updates all relevant baselines (Tree-sitter accuracy, Crucible Golden Masters, Tri-comparison Ledger/Chart).
@squid-protocol
squid-protocol force-pushed the fix/tri-comparison-sweep-final-issues branch from 2d3ad00 to 8c513ef Compare August 24, 2026 20:15
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit e7d0826 into main Aug 24, 2026
30 checks passed
@squid-protocol
squid-protocol deleted the fix/tri-comparison-sweep-final-issues branch August 24, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant