Skip to content

Port to vCon core-05 (syntax 0.5.0), release 1.0.0 - #8

Merged
howethomas merged 6 commits into
mainfrom
core-05
Nov 18, 2026
Merged

howethomas merged 6 commits into
mainfrom
core-05

Conversation

@howethomas

Copy link
Copy Markdown
Contributor

Retargets vcon-js to draft-ietf-vcon-vcon-core-05: Session and Event objects, 0.4.0 → 0.5.0 migration on load with a report (Appendix A.1, T1–T15), core-05 validation, JWS alg none rejected. Breaking; version 1.0.0. See CHANGELOG/README.

Parity with the Python reference (vcon 1.0.3): migrated 272 real 0.4.0 vCons from across vcon-dev and VCONIC with both libraries. All 248 migratable ones produce byte-identical output and identical reports; the other 24 are vcon-c test wrappers that both reject. Both validators give the same verdict and the same errors on all migrated outputs and on the Appendix B examples (except B6/B7, the JWS forms, which vcon-js treats as valid and vcon-lib reports as missing uuid). The last commit adds the T1 dialog-start check the Python port gained on Nov 15.

387 tests pass; build, lint and examples run. Not published to npm (latest there is 0.5.2).

howethomas and others added 6 commits November 1, 2026 13:36
Replaces the 0.4.0 schema fixture used by the conformance test with the
core-05 Appendix C JSON Schema, and adds the nine Appendix B examples.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add Session, Session_Reference and Event objects, the per-event-type
parameter table, redacted_from/amended_from/redacted_strings, attachment
scoping by dialog or session, empty placeholder Dialogs, and validation of
the core-05 rules including extensions enforcement. Reject JWS alg none on
sign and verify. Add migrate040To050 with a migration report, and migrate
0.4.0 input on load (signed input is not migrated on load). Writers emit
0.5.0. Dialog loses transfer, recording-set, party_history and originator
content; the old names stay as deprecated aliases where noted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port the reference tests for migration (index stability, transfer,
party_history, recording-set, signed input not migrated on load), Session,
Event table, signing and extensions enforcement. Validate the Appendix B
examples and library output against the Appendix C JSON schema. Update the
existing suites for the removed Dialog types and the new attachment scope.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bump to 1.0.0 (breaking: writes syntax 0.5.0). Rewrite the README and the
examples for Sessions and Events and add the migration guide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A differential run against the Python reference found that the port
truncated timestamps to milliseconds (wrong Session duration and, for
starts under a millisecond apart, the wrong earliest start), rounded
durations half up instead of half to even, formatted a derived
consultation-end Event time differently, and accepted out-of-range
date-times such as February 30 and hour 24 by rolling them over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@howethomas
howethomas merged commit cdf699b into main Nov 18, 2026
2 checks passed
@howethomas
howethomas deleted the core-05 branch November 18, 2026 23:54
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