vcon 0.9.2: emit vcon syntax param, drop empty defaults, add WTF analysis helper#64
Merged
Conversation
…TF analysis helper
- build_new() now sets "vcon": "0.4.0" per draft-ietf-vcon-vcon-core-02 §4.1.1
(deprecated in draft, retained for parser compatibility)
- build_new() no longer initializes empty group: [] / redacted: {} defaults
- Add add_wtf_transcription_analysis() sibling to ..._attachment for callers
preferring analysis[] placement
- 253 passing, 7 pre-existing skips
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
build_new()now sets"vcon": "0.4.0"perdraft-ietf-vcon-vcon-core-02§4.1.1. The field is deprecated in the draft ("The extension mechanism replaces the need for schema versioning") but retained for parser compatibility — emitting it by default avoids surprises with strict consumers.build_new()no longer initializes empty"group": []and"redacted": {}. The speckit reservesgroup; downstream consumers no longer need to strip these defaults before serializing. Both fields are still populated lazily by their setters.add_wtf_transcription_analysis()— sibling ofadd_wtf_transcription_attachmentthat places a WTF transcription intoanalysis[](type: "transcription",vendor,product,schema,encoding: "json", JSON-stringified body). Use the new helper when transcripts are derived analysis output; use the existing_attachmenthelper for the canonical attachments[] placement shown in the speckit example.Compatibility note
Removing the empty
group/redacteddefaults is a shape change. Any consumer that doesvcon_dict["group"](subscript) on a freshbuild_new()output will now KeyError. Library internals already use.get(). Audit downstream code that reads these fields directly.Test plan
vcon-0.9.2-py3-none-any.whlandvcon-0.9.2.tar.gzviapoetry build.Vcon.build_new()emits"vcon": "0.4.0", omitsgroup/redacted,add_wtf_transcription_analysiswrites one analysis entry and registers thewtf_transcriptionextension.🤖 Generated with Claude Code