Repository navigation
feat: versioned dialect contracts + ReqIF adapter migration - #29
Merged
Merged
Conversation
3 tasks done
Adds dialect::{DialectUrn, Upgrade, DialectError} — the forward-only,
minor/patch-compatible decode contract for versioned wire artifacts,
kept off the canonical typed layer per DESIGN-NOTE-typed-model-layer.md
§2.8 (no SchemaVersion field on the type itself; version metadata lives
on the decoding envelope instead).
Requirement now implements Stereotyped (UfoStereotype::Kind, UFO-A
rigid/sortal Endurant), gaining MbseExport for free.
Migrates ReqIF parsing and the ReqIfBundle -> RequirementGraph adapter
here from kr0ki-core::reqif_adapter, behind a new `reqif` feature
(non-default, matching this crate's existing posture for young/small-
bus-factor optional dependencies — sysml-v2-parser, scxml). The Rust
orphan rule is what forces this: a downstream crate can't impl a
foreign trait for a foreign type, so the ReqIF bridge has to live where
RequirementGraph does. Adds reqif::parse_and_lower as the combined
bytes -> RequirementGraph entry point so a caller with only bytes
depends on zero reqrs API surface directly.
See kr0ki's docs/DESIGN-NOTE-versioned-dialects-and-b00t-loader.md §1-3.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
elasticdotventures
force-pushed
the
feat/mbse-requirements
branch
from
September 20, 2026 11:14
a1f6a89 to
f4d6306
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dialect::{DialectUrn, Upgrade, DialectError}— a forward-only, minor/patch-compatible decode contract for versioned wire artifacts, kept off the canonical typed layer perDESIGN-NOTE-typed-model-layer.md§2.8 (noSchemaVersionfield on the type itself; version metadata lives on the decoding envelope).Requirementnow implementsStereotyped(UfoStereotype::Kind, UFO-A rigid/sortal Endurant), gainingMbseExportfor free.ReqIfBundle -> RequirementGraphadapter here fromkr0ki-core::reqif_adapter, behind a newreqiffeature — non-default, matching this crate's existing posture for young/small-bus-factor optional dependencies (sysml-v2-parser,scxml). The Rust orphan rule forces this: a downstream crate can'timpla foreign trait for a foreign type, so the ReqIF bridge has to live whereRequirementGraphdoes.reqif::parse_and_loweras the combined bytes ->RequirementGraphentry point so a caller with only bytes depends on zeroreqrsAPI surface directly.See kr0ki's
docs/DESIGN-NOTE-versioned-dialects-and-b00t-loader.md§1–3 for the full design rationale.Test plan
cargo test(default features) — 249/249 passcargo test --features reqif— 260/260 passcargo clippy --features reqif --all-targets -- -D warnings— clean