Skip to content

Preserve inert ReqIF workflow and revision metadata - #677

Merged
transitrix merged 2 commits into
mainfrom
fix/reqif-inert-metadata
Nov 17, 2026
Merged

transitrix merged 2 commits into
mainfrom
fix/reqif-inert-metadata

Conversation

@vkgeorgia

@vkgeorgia vkgeorgia commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

ReqIF export/import previously dropped documented workflow and revision metadata even when ordinary object values survived. Preserve object workflow_state/revision/revisions and relation recorded_target_revision using a versioned, namespaced tool-extension payload. Existing exports without metadata retain their original shape.

Known malformed payloads, unknown fields/targets, duplicate bindings/JSON keys, values outside the supported lossless YAML dialect and unsupported versions fail before import writes. Documentation describes this bounded mapping and removes stale lifecycle-command guidance; no package-managed lifecycle or suspect-link behavior is introduced.

Validation: the expanded CLI integrity suite passes real disk export/import, nested snapshots, Unicode/escaped strings, empty/zero values, namespace-prefix changes and nine malformed-payload refusal cases, including nested arrays, empty-map list items and duplicate/escaped JSON keys. The same suite fails against the original converter with the expected data-loss findings. Independent ElementTree parsing checks XML structure/namespaces. Notation lint, 114 notation tests, publish manifest, ADL and diff hygiene pass. Third-party interoperability and full ReqIF schema conformance were not tested; no package release is included.

Signed-off-by: transitrix <automation@transitrix.com>
Signed-off-by: transitrix <automation@transitrix.com>

Copy link
Copy Markdown
Owner

Independent review of initial head c7782c71a797a87f08a41532d9962a4a0f94e4c2 requested changes: JSON-compatible metadata was not necessarily representable by the existing YAML dialect. Nested arrays could stringify and empty-map list items could fail after partial output; duplicate JSON keys also used silent last-key precedence.

Head e8d8f1ac42dfdc3dd80c8bba3b9a9bda34eae0a2 adds a pre-write lossless representability check and decoded duplicate-key refusal. Nine malformed-payload cases now cover these findings. Independent re-review and final-head CI are in progress; no approval is inferred from the fix.

Copy link
Copy Markdown
Owner

Independent re-review: APPROVE for exact head e8d8f1ac42dfdc3dd80c8bba3b9a9bda34eae0a2.

The original data-loss/partial-output reproducers and decoded duplicate JSON keys now refuse before destination creation. Fresh actual-CLI probes also preserve JSON-like state strings and repeated keys in separate sibling objects without false duplicate rejection. Unsupported export refuses rather than silently changing data. Expanded integrity tests, notation/manifest/diff checks and exact-head CI pass.

Approval covers the bounded converter and supported YAML dialect; no third-party interoperability or full ReqIF schema certification is asserted.

@transitrix
transitrix merged commit 017ccc3 into main Nov 17, 2026
16 checks passed
@transitrix
transitrix deleted the fix/reqif-inert-metadata branch November 17, 2026 13:59
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.

2 participants