Skip to content

# [CI/CD] Wire Zero-Dependency Mode into Golden Repo Regression Pipeline #107

Closed

Description

@squid-protocol

🛑 Problem Statement

GitGalaxy is architected to execute resilient SAST in air-gapped or restricted environments via Zero-Dependency Mode (triggered when networkx, tiktoken, xgboost, and pyyaml are unavailable).

We are actively patching the output translation layers to enforce strict NULL fallbacks for bypassed topological and ML metrics to ensure data provenance. However, our current CI/CD pipeline only tests the "Full Dependency" execution path. We lack an automated regression gate to guarantee that these NULL values correctly propagate through the AST-free parsing engine without triggering schema type-errors, silent fallbacks, or data drift.

🎯 Objective

Expand the existing CI/CD "Golden Crucible" test suite to execute a secondary, stripped-down environment pass (Zero-Dependency Mode). This will mathematically guarantee absolute data provenance and NULL metric integrity before any core engine updates are merged.

🧪 Test Suite Thoroughness (The Baseline)

The GitGalaxy Golden Repo Test Suite is an enterprise-grade regression crucible. It deterministically analyzes 928 files across 50+ programming languages in a single pass.

For this implementation, the suite will cross-examine every single metric the engine produces (from Cognitive Load to State Flux and API mappings) to ensure that the transition between Full-Dependency and Zero-Dependency environments yields mathematically identical structural extractions, with only the expected C-backed features safely degrading to NULL.

🛠️ Proposed Implementation

  • CI Matrix Expansion: Add a secondary job or execution step to the GitHub Actions workflow that actively uninstalls or isolates the "Big Four" libraries prior to execution.
  • Golden Repo Execution: Run the galaxyscope orchestrator against the 928-file baseline in this degraded environment.
  • Schema Assertions: * Assert record_keeper.py outputs strict SQL NULLs for PageRank, Betweenness Centrality, and XGBoost ML confidences.
    • Assert gpu_recorder.py and audit_recorder.py successfully emit their respective -1.0 or [BYPASSED] flags.
    • Assert that the pipeline completes with a 0 exit code (no Python KeyError or TypeError crashes during translation).

📈 Impact & DevSecOps Value

  • Target Domains: CI/CD Quality Gating, Data Provenance, Air-Gapped Static Analysis, Regression Testing.
  • Value: Prevents future PRs from silently reintroducing the "False Zero" data-poisoning bug, ensuring GitGalaxy remains a highly trusted, mathematically sound tool for enterprise compliance.

✅ Acceptance Criteria

  • CI/CD workflow contains a dedicated "Zero-Dependency" test matrix.
  • Golden Repo (928 files, 50+ langs) successfully maps in the restricted environment.
  • Pipeline explicitly asserts the correct propagation of NULL and is_zero_dependency_mode flags across all output artifacts.
  • Pipeline fails if any bypassed metric artificially defaults to 0.0.

Activity

  1. added
    data-integrity
    on Jul 5, 2026
  2. added a commit that references this issue on Jul 20, 2026
    e7e1acf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    data-integrity

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions