Repository navigation
FlowGuard v0.1.1
[0.1.1] - 2026-11-11
Hardened across 33 flagship open-source repositories (18,795 source files · 130,981 symbols · 566 cross-language bridges · 29/33 zero-false-positive PASS) and 69 adversarial torture, mutation fuzzing & contract assertions.
Fixed & Hardened (33-Repository Real-World Stress-Test Sweep)
- Ruby
@@class_varInfinite Loop Fix (src/lang-presets.mjs): Fixed a P0 non-terminating loop instripLeadingAttributesAndAnnotationswhen encountering Ruby@@configclass variables (sidekiq), adding strictlang !== "ruby"and non-progress loop guards. - Svelte 5 Runes & Composite Container State Tracking (
src/file-parser.mjs,src/graph-builder.mjs,src/fingerprint.mjs):- Recognizes
$effect/$derivedreactive dependency trackers (track*),.sveltetemplate member reads ({#if state.prop}) and native Svelte 5onclick={...}event attributes,#privatenested chain reads (this.#field.sub), and composite sibling container delegation (this.root.field = ...) while preserving strict SSOT isolation (bits-ui). - Classifies
.storybook/storiesdirectories and.stories.*files assandboxzone.
- Recognizes
- Unity / Harmony IL Weaving & Advanced C# Semantics (
src/lexer.mjs,src/lang-presets.mjs,src/file-parser.mjs,src/flow-verifier.mjs):- Quote-aware balanced
{...}expression scanning (scanBalancedBraceExpr) for C#$"{string.Join(", ", items)}"and Pythonf"{fn('a')}"interpolations, plus{{literal escape handling (BepInEx). - Supports
unsafeC# class/struct/constructor modifiers, event/delegate callback signatures (+= Handler,(object sender, EventArgs e)), and[HarmonyFinalizer]/[HarmonyReversePatch]/OnEnable/OnDisableentry hooks.
- Quote-aware balanced
- C++ / CUDA Systems Scale &
ctx_http⇄ Svelte REST Bridges (src/lexer.mjs,src/lang-presets.mjs,src/file-parser.mjs):- Added
.cu/.cuhCUDA support (27 source extensions across 11+ language families) and parenthesized brace enclosure guard (: pimpl(new impl{}) {) preventing C++ constructor body truncation (llama.cpp). - Tracks C++ non-
constlvalue reference out-parameters (T & out), C#ref/out, PHP&$param, Win32/POSIX/C11 atomic intrinsics (Interlocked*,__atomic_*,atomic_fetch_*), and CUDA runtime side-effects (cudaMemcpy*,cudaStreamSynchronize). - Connects C++
cpp-httplib/ctx_httproutes (svr.Get,ctx_http.post) to frontend dynamic base-URL fetches (fetch(`${base}/props`)), and recognizes Python@*.register*dynamic plugin decorators.
- Added
- Dedicated Dart Language Support & Polyglot Lexer Precision (
src/lang-presets.mjs,src/lexer.mjs,src/file-parser.mjs,src/graph-builder.mjs):- Dedicated
dartfamily ({required T x}/[T? y]parameter groups,this.field/super.fieldpromoted constructors,package:import resolution, and"""triple-quoted strings). - Full expression token preservation inside
${...},#{...}, and Swift\(... )string interpolations; C++ multi-brace member initializer chains (: types_{...}, named_args_{}); Swift bodylessprotocolbounds, implicit returns, andT.Type = T.selfmetatype parameters; Ruby paren-lessdef,attr_reader/attr_accessor, block-mutating.delete_if { ... }, and implicit returns beforeend/rescue/else.
- Dedicated
- Zero-Noise Control/Data-Flow & Side-Effect Precision (
src/file-parser.mjs,src/flow-verifier.mjs):$-aware identifier boundaries (makeIdentRegex) supporting JS/TS$id/$/$tooltipalongside PHP$varand Kotlin/Dart"$tag".- Nested closure body stripping (
stripNestedClosureBodies) so inner.map(() => { return x; })returns never leakhasReturnValue = trueto outer throwing/void functions (uptime-kuma). - Optional-chaining (
?.) member calls, non-localObject.assign/ property / reactive.valuealias mutations, callback parameter invocations,[subscript continuations, and call-graph-scoped (outEdges+sameLangFamily)IGNORED_PURE_CALLverification.
- Inline
#[cfg(test)]& Multiplatform Zone Isolation (src/fingerprint.mjs,src/graph-builder.mjs,src/bridge-linker.mjs):- Prevents
prodRust modules and cross-boundary bridges from linking to inline#[cfg(test)] mod testssymbols (axum,SwitchHosts) while preservingprod -> sandbox/testfile leak detection. - Classifies KMP
*Testsource sets,test-dts/.test-d.ts,mockwebserver*,*-testing-support,docs_src/, andexample_*accurately.
- Prevents
- Expanded Full-Stack Bridges & Dispatch Contract Reconciliation (
src/file-parser.mjs,src/bridge-linker.mjs,src/graph-builder.mjs):- Parameterized
#[tauri::command(async)], Socket.iosocket.emit⇄socket.on(ws:*), Vue Options APImethods: {}, Laravelroutes/api.php, FastAPIAPIRouter(prefix=...)+ OpenAPI SDK{ url: "/api/v1/..." }sub-router mount matching, plusCALLBACK_DISPATCH_SIGNATURE,DELEGATE_OR_CALLBACK_SIGNATURE, andINTERFACE_CONTRACT_SIGNATUREprotection.
- Parameterized
Added & Improved
- Transitive Barrel Re-Export & Import Alias Resolution (
src/file-parser.mjs,src/graph-builder.mjs): Multi-hop resolution across JS/TS/Vueexport * from/export { a } from, Rustpub mod/pub use, Python__init__.py, andimport { orig as alias }bindings. - Container-Scoped & ES2022
#privateState Ownership SSOT (src/file-parser.mjs,src/graph-builder.mjs,src/flow-tools.mjs): IsolatesContainer.fieldand#privatefields per class/hierarchy while reconciling cross-file public.propreads; recognizes ES2022#privatearrow methods and TypeScript multi-property object return types (: Promise<{ a: T; b: U }> {). - Vue / Svelte SFC
<script>Isolation (src/file-parser.mjs): Whitespace-masks<template>and<style>blocks with 1:1 line/byte offset preservation while wiring@click/v-on:/on:/onclick={...}handlers as UISources. - HTTP Method-Aware Multi-Handler REST Bridges (
src/file-parser.mjs,src/bridge-linker.mjs): DistinguishesGET/POST/PUT/DELETE/PATCHon identical dynamic routes and binds decorator/attribute routes (@app.delete,#[get],[HttpGet],@GetMapping,#[Route]) directly to their target handlers. - Non-Source Git Diff Guard & Explicit
fullScan(src/flow-verifier.mjs,src/server.mjs): IntroducesscanMode(INCREMENTAL_GIT_DIFF/NON_SOURCE_DIFF_ONLY/FULL_WORKSPACE) andfullScan/--fullCLI flag so doc-only diffs never trigger accidental full-repo scans. - Per-File AST Snapshot Cache (
src/graph-builder.mjs): Stat-keyed(size, mtimeMs)per-file snapshot cache (16xfaster warmforceRebuildverification on 1,200-symbol repositories). - 69-Assertion Adversarial Torture, Fuzzing & Contract Suite (
test/torture-suite.mjs): Expanded from 50 to 69 zero-dependency assertions across 11+ language families, Svelte 5 Runes, Unity/Harmony C#, C++/CUDA, and MCP/Hook contracts.
Full Changelog: v0.1.0...v0.1.1