Skip to content

feat: Wave 3 — SC→REQ traceability, float helpers, orphan fixes#79

Open
avrabe wants to merge 1 commit intomainfrom
feat/wave3-links-float-helpers
Open

feat: Wave 3 — SC→REQ traceability, float helpers, orphan fixes#79
avrabe wants to merge 1 commit intomainfrom
feat/wave3-links-float-helpers

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Apr 13, 2026

Summary

  • Traceability links: All 19 system constraints linked to requirements (constraint-has-requirement: 0% → 100%). All 24 controller constraints linked to requirements. REQ-2 orphan fixed. CP-1/CP-2/CP-3 orphans fixed.
  • Float canonicalization refactor: Extract NaN/subnormal helpers (F32_CANONICAL_NAN, canonicalize_f32(), is_f32_subnormal(), etc.). Pure refactor for auditability of H-1.4/H-1.5 mitigations.

Rivet metrics (cumulative across all waves)

Metric Session start Now
Artifacts 144 188
Validation errors 55 6 (safety-goal context warnings)
Coverage 45.4% 78.6%
Orphans 4 0
constraint-has-requirement 0% 100%
stpa-hazards-have-safety-goals 0% 100%

Test plan

  • All pre-commit hooks pass
  • rivet validate — 6 errors (safety-goal context, not blocking), 0 broken cross-refs
  • CI checks

🤖 Generated with Claude Code

Traceability links:
- Link all 19 system constraints to implementing requirements via
  constraint-satisfies (constraint-has-requirement: 0% → 100%)
- Link all 24 controller constraints to implementing requirements
  via satisfies links
- Fix REQ-2 orphan (link to DD-3, DD-6)
- Fix CP-1/CP-2/CP-3 orphans (add acted-on-by controller links)

Float canonicalization refactor:
- Extract F32/F64_CANONICAL_NAN constants
- Extract is_f32/f64_subnormal() and canonicalize_f32/f64() helpers
- Replace inline checks across 8 arithmetic fold sites
- Pure refactor, no behavioral change

Trace: SC-1, REQ-1, REQ-2, H-1
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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