Epic: #75
Target: galaxyscope.py (CLI Argument Parsing) & record_keeper.py
Context & Strategic Value
GitGalaxy already contains incredibly powerful database archiving (record_keeper.py) and delta tracking capabilities. However, these are currently internal capabilities. To be enterprise-ready, we need to expose these as CLI flags so DevOps engineers can use GitGalaxy to break builds in CI/CD pipelines and archive specific release candidates for compliance audits.
Implementation Tasks
Validation
- Create a test CI job that runs
python galaxyscope.py --fail-on-misra=20.0 against a repository with high goto usage. Verify the script returns a non-zero exit code.
- Run the engine with
--compliance-vault and verify the gitgalaxy_vault.db SQLite file is cleanly generated with full table schemas.
Epic: #75
Target:
galaxyscope.py(CLI Argument Parsing) &record_keeper.pyContext & Strategic Value
GitGalaxy already contains incredibly powerful database archiving (
record_keeper.py) and delta tracking capabilities. However, these are currently internal capabilities. To be enterprise-ready, we need to expose these as CLI flags so DevOps engineers can use GitGalaxy to break builds in CI/CD pipelines and archive specific release candidates for compliance audits.Implementation Tasks
--fail-on-risk(e.g.,--fail-on-risk=80.0).--fail-on-misra(e.g.,--fail-on-misra=50.0).galaxyscope.pyexit logic: If the final delta telemetry breaches either of these thresholds, trigger a nativesys.exit(1)to fail the CI/CD job.--compliance-vault.record_keeper.pySQLite generation is skipped during standard rapid runs, but engages fully when the--compliance-vaultflag is present to generate a cold-storage database.Validation
python galaxyscope.py --fail-on-misra=20.0against a repository with highgotousage. Verify the script returns a non-zero exit code.--compliance-vaultand verify thegitgalaxy_vault.dbSQLite file is cleanly generated with full table schemas.