Skip to content

Suppression Policy & Managed Technical Debt

Uncontrolled suppressions mask architectural decay. When engineering teams treat ignore comments as a quick workaround, documentation quality degrades silently until broken links and security breaches reach production.

Zenzic replaces unmonitored ignore tags with a Managed Technical Debt Governance Framework. In Zenzic, a suppression is not an escape hatch — it is an explicit assumption of architectural responsibility. Every suppression is audited, costs Quality Score points, and is bounded by a strict Suppression CAP.


Technical Debt Taxonomy

  • Managed Technical Debt (Clean/Bounded)


  • Explicitly declared exceptions with audit trails

  • Bounded by the strict suppression_cap ceiling
  • Emits [MANAGED DEBT] audit status in CLI & CI
  • Deducts Quality Score points to reflect true visibility

  • Uncontrolled Architectural Drift


  • Unmonitored ignore tags scattered across codebases

  • Hidden security vulnerabilities (credentials, path traversals)
  • Zero audit trails or visibility into debt growth
  • Causes silent PR breakages and customer-facing 404s

Suppression Evaluation Cascade

The following diagram illustrates how Zenzic evaluates file finding codes against directory policies, per-file ignores, inline comments, and the Inviolable Security Override:

flowchart TD
    A["Static Analysis Finding"] --> B{"Is Code Non-Suppressible? (Z2xx)"}
    B -->|Yes: Z201-Z205 Security Breach| C["FATAL SECURITY OVERRIDE (Exit 2/3)\nSuppression Blocked"]
    B -->|No: Standard Finding| D{"Directory Policy Exempt? (Level 4)"}
    D -->|Yes| E["POLICY_EXEMPTION (0 Debt Pts)"]
    D -->|No| F{"Per-File Ignore Matched? (Level 2)"}
    F -->|Yes| G["PER_FILE_IGNORE (+1 Debt Pt)"]
    F -->|No| H{"Inline Comment Present? (Level 1)"}
    H -->|Yes| I["INLINE_IGNORE (+1 Debt Pt)"]
    H -->|No| J["EMIT FINDING (Exit 1)"]

    style C fill:#ef4444,color:#fff
    style E fill:#10b981,color:#fff
    style G fill:#f59e0b,color:#fff
    style I fill:#f59e0b,color:#fff
    style J fill:#e11d48,color:#fff

Four Suppression Governance Levels

Zenzic provides four distinct suppression levels designed for specific architectural contexts:

  • Level 1: Inline Comment


    <!-- zenzic:ignore: ZXXX --> placed at the end of a line. Silences a finding on a single line.

    Cost: 1 Debt Point

  • Level 2: Per-File Ignore


    [governance.per_file_ignores] in .zenzic.toml. Silences a specific rule across a file glob.

    Cost: 1 Debt Point per entry

  • Level 3: Exclusion Zone


    excluded_dirs or excluded_file_patterns in .zenzic.toml. Removes directories from evaluation.

    Cost: 0 Debt Points (Not audited)

  • Level 4: Directory Policy


    [governance.directory_policies] in .zenzic.toml. Strategic organizational exemptions for legacy doc trees.

    Cost: 0 Debt Points ([POLICY_EXEMPTION])


Suppressible vs. Inviolable Security Surface

Zenzic enforces a strict boundary between suppressible quality checks and inviolable security requirements:

Rule Category Codes Description Suppressible? Execution Impact
Link Integrity Z101Z124 Broken links, missing anchors, orphan links ✅ Yes Deducts score / Exit 1
Reference Graph Z301Z303 Dangling reference definitions ✅ Yes Deducts score / Exit 1
Graph Topology Z401Z406 Missing directory indexes, orphan pages ✅ Yes Deducts score / Exit 1
Content Quality Z501Z506 Placeholder text, untagged code blocks ✅ Yes Deducts score / Exit 1
Brand Governance Z601Z603 Brand obsolescence, dead suppressions ✅ Yes Deducts score / Exit 1
Security Surface Z201 Credential Scanner (Tokens, API Keys) NEVER Fatal Exit 2
Security Surface Z202Z203 Path Traversal Guard (Boundary Violation) NEVER Fatal Exit 3

Inviolable Security Surface (Z201–Z205)

Security findings (Z201 Credential Scanner, Z202/Z203 Path Traversal Guard) unconditionally bypass all directory policies, per-file ignores, and inline comments. They are non-suppressible security facts that trigger exit codes 2 and 3 regardless of any TOML configuration.


Suppression CAP & Technical Debt Ledger

While suppressions (<!-- zenzic:ignore -->, directory_policies, per_file_ignores) are permitted, they are now formally tracked as Technical Debt.

The zenzic audit command generates a Technical Debt Ledger that exposes all active suppressions, tracks suppression_cap consumption, and identifies suppression hotspots across the documentation tree.

.zenzic.toml
[governance]
suppression_cap = 30
suppression_cap_fail_hard = true

The CLI and CI pipelines report active debt state in the audit footer and through formal zenzic audit reports:

Terminal
🔒 Suppression Audit: 2/30 (inline: 2, per-file: 0) [MANAGED DEBT]

If active suppressions exceed suppression_cap, Zenzic emits [CAP_EXCEEDED] and fails the quality gate with Exit 1.