Skip to content

Ruas v1.3.0 - Systematic Fuzzy Logic, Architectural Boundary Linter, and MCP lint_architecture

Choose a tag to compare

@fk0u fk0u released this 16 Oct 03:05
· 6 commits to main since this release

🌿 Ruas v1.3.0: Systematic Fuzzy Logic & Architectural Boundary Linter

Ruas v1.3.0 introduces systematic approximate reasoning (Zadeh 1965 / Mamdani FIS), the first continuous Fuzzy Architectural Boundary Linter (ruas lint / ruas check), and the 8th native MCP tool lint_architecture for AI agents.

🌟 Key Highlights

  1. Systematic Fuzzy Inference Engine (FuzzyInferenceEngine):

    • Continuous triangular (trimf), trapezoidal (trapmf), sigmoidal (sigmf), and Gaussian (gaussmf) membership functions.
    • Mamdani fuzzy rule evaluation and centroid defuzzification for structural code fragility, coupling metrics, and code smells.
    • Linguistic membership profiles (Clean, Fair, Fragile, Critical).
  2. Fuzzy Architectural Boundary Linter (ruas lint / ruas check):

    • Zero-dependency glob matcher resolving file paths into architectural layers (domain, application, infrastructure, presentation).
    • Calculates continuous fuzzy violation degrees $\mu_{\text{violation}}(e) \in [0, 1]$ blending edge coupling intensity (calls, extends, imports, references), Bayesian edge confidence, and destination afferent blast radius.
    • Continuous Architectural Purity Score (zsh-100%$) and letter grade (A, B, C, D, F).
    • Automated Clean Architecture generator (ruas lint --init).
    • Strict CI/CD quality gatekeeper mode (ruas check --strict --json).
  3. Fuzzy-Weighted Dijkstra Traversal (ruas path --fuzzy):

    • Computes minimal-friction dependency trajectories through Mamdani FIS edge resistance multipliers (e) \in [1.0, 3.5]$.
    • Seamlessly finds optimal routes bypassing congested hubs and fragile boundary crossings.
  4. Fuzzy Code Smell Detection (ruas smell):

    • Multi-signal defuzzified certainty for dead code candidates and God Components.
  5. AI Agent Tool #8: lint_architecture (MCP):

    • Exposes automated architectural compliance checks directly to Claude Desktop, Cursor, Antigravity, Cline, and other MCP-enabled AI coding agents.
  6. Quality & Test Coverage:

    • 20/20 test suites passing (100/100 tests).
    • 100% clean TypeScript strict typechecking.