Skip to content

chore(release): v0.4.3#200

Merged
avrabe merged 3 commits intomainfrom
feat/v043-sexpr-followups
Apr 23, 2026
Merged

chore(release): v0.4.3#200
avrabe merged 3 commits intomainfrom
feat/v043-sexpr-followups

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Apr 23, 2026

Summary

Workspace version bump 0.4.2 → 0.4.3, CHANGELOG entry covering the eight v0.4.3 changes that have already landed on `main`, and the five new artifact entries tying each feature to REQ/DD.

What's in v0.4.3

Docs + examples enriched with realistic ASIL attributes so the worked examples in `docs/getting-started.md` are runnable against the shipped fixture.

New artifacts

  • DD-061 — build-system emitters are namespaced and loud-on-failure
  • FEAT-130 — rivet variant features/value/attr
  • FEAT-131 — rivet variant explain
  • DD-062 — matches regex + count-compare validated at lower time
  • FEAT-132 — count-compare lowering + matches parse-time regex
  • FEAT-133 — Rivet Delta SVG render
  • FEAT-134 — stamp filter + warn-skip

Test plan

  • `cargo test --workspace` green (41 test binaries)
  • `cargo build --workspace` green at 0.4.3
  • `rivet validate` — only pre-existing SPAR `aadl-component` schema errors remain (unrelated)

Implements: REQ-046
Refs: REQ-004, REQ-010, DD-050, DD-058

🤖 Generated with Claude Code

avrabe and others added 3 commits April 23, 2026 07:21
Answers "why did my variant pick/skip feature X?" — a dev/debug UX gap
called out in the v0.4.3 scope.

Two modes:

  # Full audit: every effective feature + origin, unselected features,
  # and the constraint list
  rivet variant explain --model fm.yaml --variant prod.yaml

  # Single-feature focus: origin, attribute values, and every
  # constraint that mentions the feature
  rivet variant explain --model fm.yaml --variant prod.yaml asil-c

Each effective feature carries an origin:
  - `selected`        — user listed it under `selects:`
  - `mandatory`       — parent group is mandatory, or is the root
  - `implied by <X>`  — a constraint forced it in once <X> was selected
  - `allowed`         — present but not proven mandatory

`--format json` emits a structured audit for scripts (dashboard uses
the same shape for the variant sidebar).

Coverage:
  - explain_single_feature_shows_origin_and_attrs (text mode)
  - explain_single_feature_json_mode
  - explain_full_variant_audit_lists_origins_and_unselected

Docs: new "Debugging" subsection in docs/getting-started.md under the
variant management chapter, with an origin table.

Implements: REQ-046
Refs: DD-050

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ic model

Adds realistic `attributes:` to examples/variant/feature-model.yaml
for every market (eu/us/cn with compliance+locale) and every ASIL
level (asil-numeric + required analysis techniques). These match the
worked examples in docs/getting-started.md so users can run the
snippets against the shipped fixture and see the same output.

New integration test `every_format_renders_realistic_example`
exercises all 7 --format values against the enriched example and
asserts each output contains the variant name and the asil-c marker
(in whatever casing the format uses). Catches regressions that pass
on toy models but break on constraint-driven inclusion, multi-attr
features, or non-trivial tree depth.

Implements: REQ-046
Refs: DD-050

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Workspace version bump 0.4.2 → 0.4.3, CHANGELOG entry covering the
v0.4.3 changes that have already landed on main:

- rivet variant features/value/attr for 7 build systems (#197)
- docs: variant emitter walkthrough + exit-code contract (#198)
- rivet variant explain for debugging solve outcomes (#199)
- test: enrich eu-adas-c example + per-format smoke (#199)
- sexpr count-compare + matches parse-time regex (#196)
- SCRC Phase 1 clippy restriction lint escalation (#195)
- Rivet Delta SVG render for email/mobile (#193)
- stamp --missing-provenance filter + warn-skip (#192)

v043-artifacts.yaml gains five new entries matching the implementations:
  - DD-061  build-system emitters are namespaced and loud-on-failure
  - FEAT-130 rivet variant features/value/attr
  - FEAT-131 rivet variant explain
  - DD-062  matches regex + count-compare validated at lower time
  - FEAT-132 count-compare lowering + matches parse-time regex
  - FEAT-133 Rivet Delta SVG render for email/mobile
  - FEAT-134 rivet stamp filter + warn-skip

All 41 test binaries green. rivet validate: only pre-existing SPAR
aadl-component schema errors remain (unrelated to this release).

Implements: REQ-046
Refs: REQ-004, REQ-010, DD-050, DD-058

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit 54b3ad5 into main Apr 23, 2026
2 checks passed
@avrabe avrabe deleted the feat/v043-sexpr-followups branch April 23, 2026 05:30
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 06f10b9 Previous: bcfcb2d Ratio
store_insert/10000 13993221 ns/iter (± 1685130) 11507652 ns/iter (± 499515) 1.22

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link
Copy Markdown

📐 Rivet artifact delta

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

Graph

graph LR
  DD_061["DD-061"]:::added
  DD_062["DD-062"]:::added
  FEAT_130["FEAT-130"]:::added
  FEAT_131["FEAT-131"]:::added
  FEAT_132["FEAT-132"]:::added
  FEAT_133["FEAT-133"]:::added
  FEAT_134["FEAT-134"]:::added
  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
Added
  • DD-061
  • DD-062
  • FEAT-130
  • FEAT-131
  • FEAT-132
  • FEAT-133
  • FEAT-134

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

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

avrabe added a commit that referenced this pull request Apr 23, 2026
Missed in the v0.4.3 release bump (#200). Docs-check VersionConsistency
invariant fails CI on the v0.4.3 tag because the VS Code extension
package stayed at 0.4.2 while workspace moved to 0.4.3.

Platform packages stay at 0.4.1 intentionally — release-npm.yml
overwrites them at publish time via jq.

Trace: skip
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