Repository navigation
Description
🛑 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
galaxyscopeorchestrator against the 928-file baseline in this degraded environment. - Schema Assertions: * Assert
record_keeper.pyoutputs strict SQLNULLs for PageRank, Betweenness Centrality, and XGBoost ML confidences.- Assert
gpu_recorder.pyandaudit_recorder.pysuccessfully emit their respective-1.0or[BYPASSED]flags. - Assert that the pipeline completes with a
0exit code (no PythonKeyErrororTypeErrorcrashes during translation).
- Assert
📈 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
NULLandis_zero_dependency_modeflags across all output artifacts. - Pipeline fails if any bypassed metric artificially defaults to
0.0.
Activity
Release v2.3.1: Enforce Zero-Dep Data Integrity & Double Golden CI/CD…
fix(data-integrity): enforce zero-dependency mode fallbacks and ci/cd…