Weakness axis #8

Style / consistency

Code drifts from your repo's own conventions. Securie learns YOUR style — not generic style.

What this axis covers

Repo-specific pattern learning: how does YOUR codebase name handlers, structure modules, lay out error types, format SQL, sequence imports? Securie extends Ring 0 (the per-tenant Codebase Knowledge Base) to learn your patterns + gate PRs that drift from learned conventions. Different from prettier/eslint: this is REPO-SPECIFIC, not generic style.

Why now

Fast-moving teams and contractors write code that is plausible-looking in isolation but inconsistent with the local repo's conventions. The result is a codebase that gets harder to evolve over time as patterns multiply silently. Style drift is intent drift's cousin.

Where it hides in your codebase

  • Naming: function vs method vs handler vs Action across the same surface
  • Error types: throwing vs Result<T,E> vs error-as-value mixed within a module
  • Module structure: when does code go in /lib vs /app vs /utils?
  • Import order: alphabetical vs functional grouping
  • SQL formatting: uppercase vs lowercase keywords across migrations
  • Test naming: `should_X_when_Y` vs `X_should_Y` vs `it should X`

How Securie handles it

Ring 0 pattern extraction

Securie's Codebase Knowledge Base nightly-refreshes per-tenant style profiles — the dominant patterns in your repo become the local norm. New code that deviates without justification gets flagged.

Per-tenant style-drift gate

PRs that introduce new naming / structure / formatting conventions get a flag with a 'matches established pattern at X, Y, Z' citation. The author can either conform or escalate (intentional new pattern).

Anti-style-drift across PRs

Patterns established by one PR become the norm for the next PR. Securie's tracker prevents three engineers from each picking three different shapes for the same problem.

What this axis is NOT

Not prettier / eslint

Generic formatters apply universal rules. Securie's style/consistency specialist learns YOUR repo's conventions — same code, different repo, different verdict.

Not a comment-only copilot

Copilot suggests code that fits its training distribution. Securie's style specialist gates PRs against YOUR repo's actual distribution.