Skip to content

fix(reqif): import fails on a title-less SPEC-OBJECT (REQ-123, F2)#376

Merged
avrabe merged 1 commit into
mainfrom
fix/req-123-reqif-titleless
May 31, 2026
Merged

fix(reqif): import fails on a title-less SPEC-OBJECT (REQ-123, F2)#376
avrabe merged 1 commit into
mainfrom
fix/req-123-reqif-titleless

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented May 31, 2026

Bug-hunt finding (REQ-123, f2-silent-failure). A SPEC-OBJECT with no ReqIF.Name and no @LONG-NAME imported as an artifact with an empty required title via unwrap_or_default(). Import now Errs naming the object. Completes the ReqIF F2 sweep (REQ-119 + REQ-120 + REQ-123). Regression test; all 46 reqif tests green; clippy --all-targets clean. Marks REQ-123 implemented.

Bug-hunt finding (f2-silent-failure, 3/3 lens-confirmed). A SPEC-OBJECT with no
`ReqIF.Name` attribute and no `@LONG-NAME` imported as an artifact with an empty
`title` (a required base field) via `.unwrap_or_default()` — a silently-invalid
artifact that masked the missing required field.

Import now returns an Err naming the object when the title would be empty,
surfacing the missing field at import instead of producing a degraded artifact.
Completes the ReqIF F2 silent-failure sweep (REQ-119 enum drop, REQ-120
directory swallow, REQ-123 empty title). Regression test
`parse_reqif_fails_on_titleless_spec_object`; all 46 reqif tests green.

Implements: REQ-123
Verifies: REQ-123
Refs: REQ-004

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

📐 Rivet artifact delta

Change Count
Added 0
Removed 0
Modified 1
Downstream impacted (depth ≤ 5) 0

Graph

graph LR
  REQ_123["REQ-123"]:::modified
  classDef added fill:#d4edda,stroke:#28a745,color:#155724
  classDef removed fill:#f8d7da,stroke:#dc3545,color:#721c24
  classDef modified fill:#fff3cd,stroke:#ffc107,color:#856404
  classDef overflow fill:#e2e3e5,stroke:#6c757d,color:#495057,stroke-dasharray: 3 3
Loading
Modified
ID Changes
REQ-123

📎 Full HTML dashboard attached as workflow artifact rivet-delta-pr-376download from the workflow run.

Posted by rivet-delta workflow. The graph shows only changed artifacts; open the HTML dashboard (above) for full context.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 267cbaa into main May 31, 2026
20 of 39 checks passed
@avrabe avrabe deleted the fix/req-123-reqif-titleless branch May 31, 2026 23:15
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