Files
Profa 96389efde3 feat: CI/CD best-in-class Phase 1+2 with crypto-secure randomness
Phase 1 — CLI CI-native flags:
- Add --format (text/json/sarif/junit/markdown) and --output to all
  output-producing commands: test, coverage, security, quality, code,
  fleet, task, status
- SARIF v2.1.0 output for security scans (GHAS integration)
- JUnit XML output for test results
- Synchronous --gate mode for quality assess with exit code 0/1

Phase 2 — First-class CI/CD config:
- New `aqe ci run` command reading .aqe-ci.yml config
- Phase pipeline: test → coverage → security → quality-gate
- Per-phase artifacts, thresholds, and continue_on_failure support
- Reusable GitHub Action (.github/actions/aqe/) for external consumers

Security — Replace all Math.random() with crypto-secure alternatives:
- New shared/utils/crypto-random.ts utility (secureRandom, secureRandomInt,
  secureRandomFloat, secureRandomPick, secureRandomShuffle, secureRandomGaussian)
- 136 Math.random() calls replaced across 50 source files
- Covers RL algorithms, neural networks, chaos engineering, benchmarks,
  optimizers, MCP tools, validation, and all domain services

Additional fixes:
- Real V8/istanbul coverage data reader (no more fabricated metrics)
- Dynamic version in SARIF output (no hardcoded strings)
- 32 new unit tests for CI output formatters and config parser
- Test isolation fixes for dream-cycle and reasoning-bank tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 18:38:00 +00:00
..