Skip to content

Fix 10 unified command bugs + 11 guardrail tests - #5

Merged
alderpath merged 2 commits into
masterfrom
fix/unified-command-bugs
May 28, 2026
Merged

Fix 10 unified command bugs + 11 guardrail tests#5
alderpath merged 2 commits into
masterfrom
fix/unified-command-bugs

Conversation

@alderpath

Copy link
Copy Markdown
Contributor

Bug fixes:

  • temporal: resolve relative file paths against repo root directories
  • verify: show file, guide, tier in human output (was 'Risk: ?')
  • health: show excess porosity + plain-English guidance (was 'Spectral gap=0')
  • audit: show blast radius, mirror gap, test coverage, PR parity
  • temporal: show phrases tracked + decaying patterns (was just filename)
  • risk --ci: show pass message when no critical files
  • risk --ci --format json: CI gate now fires even with JSON output
  • FEATURE_MATRIX.md: restore lifecycle/timeline/provenance commands

Guardrails (11 new tests):

  • All unified commands: JSON has correct keys, human output non-empty
  • risk --ci --format json: CI gate fires with JSON
  • risk --mode: output varies by mode
  • temporal: relative path resolution

370 tests pass, 0 failures.

alderpath added 2 commits May 28, 2026 17:10
Bug fixes:
- temporal: resolve relative file paths against repo root directories
- verify: show file, guide, tier in human output (was 'Risk: ?')
- health: show excess porosity + plain-English guidance (was 'Spectral gap=0')
- audit: show blast radius, mirror gap, test coverage, PR parity
- temporal: show phrases tracked + decaying patterns (was just filename)
- risk --ci: show pass message when no critical files
- risk --ci --format json: CI gate now fires even with JSON output

Doc fix:
- FEATURE_MATRIX.md: restore lifecycle/timeline/provenance commands

Guardrails:
- 359 tests pass (snapshot updated)
- All unified commands verified to produce non-empty output
Guardrails prevent bug classes from recurring:
- test_risk_json_has_keys: risk output always has expected structure
- test_risk_human_not_empty: human mode produces visible output
- test_risk_ci_gate_fires_with_json: CI gate bypass fixed
- test_risk_mode_varies: mode flag actually changes output
- test_verify_json_has_keys: verify output has expected structure
- test_verify_human_not_empty: human mode produces visible output
- test_health_json_has_keys: health output has expected structure
- test_health_human_not_empty: human mode produces visible output
- test_audit_json_has_keys: audit output has expected structure
- test_audit_human_not_empty: human mode produces visible output
- test_temporal_relative_path_resolves: temporal resolves relative paths

370 total tests, 0 failures.
@alderpath
alderpath merged commit 60e1fdd into master May 28, 2026
8 checks passed
@alderpath
alderpath deleted the fix/unified-command-bugs branch May 28, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant