You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add patches to fix issues with the Bluetooth and digitalCredentials CDDL integration
Remove the hack that was written to ignore those as being incomplete
The update_cddl run adds the previously missing command and events to the generated bindings
🔧 Implementation Notes
Each gap is closed by a CDDL overlay in common/bidi that redefines the aggregate (DigitalCredentialsCommand, BluetoothEvent), applied through the existing override_cddl_files
Deletes METHOD_DOMAIN_MAP from the JS generator: the model now takes the method's <domain>. prefix as-is (as Ruby and Python already do) and the TypeScript stage fails on a domain missing from DOMAIN_FILES, instead of silently filing unknown domains under common, which is what let these slip.
🤖 AI assistance
AI assisted (complete below)
Tool(s): Claude Code (Fable 5.1)
What was generated: the overlays and wiring, the diagnosis of the common fallback, and this description
I reviewed all AI output and can explain the change
💡 Additional Considerations
Should open upstream PRs to w3c-fedid/digital-credentials and WebBluetoothCG/web-bluetooth so Selenium does not have to support a workaround
🔄 Types of changes
New feature (non-breaking change which adds functionality and tests!) — one command and two events in the internal BiDi protocol layers
• Replace incomplete-method allowlisting with spec-shaped overlays for missing Bluetooth and Digital
Credentials aggregates.
• Generate one Digital Credentials command and two Bluetooth events across BiDi bindings.
• Reject unmapped JavaScript generator domains instead of silently routing them to common.
➕ Keeps aggregate definitions authoritative in their originating specifications
➖ Blocks complete bindings until both specifications and the pinned Webref revision update
➖ Leaves current generated bindings incomplete
2. Patch the projected model directly
➕ Avoids adding local CDDL productions
➕ Can inject missing methods after parsing
➖ Encodes specification exceptions in generator logic
➖ Risks inconsistent behavior across language generators
➖ Bypasses normal CDDL completeness and directionality analysis
Recommendation: Use the PR's CDDL overlays as the interim solution because they repair discovery at the shared specification layer and benefit every language generator consistently. Submit corresponding upstream specification fixes, then remove each overlay once the pinned Webref revision contains the corrected aggregates.
Files changed (14) +220 / -93
Enhancement (5) +126 / -23
generate_bidi.mjsAdd Digital Credentials output and strict domain validation+9/-21
Add Digital Credentials output and strict domain validation
• Adds TypeScript file, class, and name-prefix mappings for Digital Credentials. Method domains now come directly from their protocol prefix, and generation fails when a domain lacks an explicit output mapping.
digital-credentials-command.cddlDefine the missing Digital Credentials command aggregate+7/-0
Define the missing Digital Credentials command aggregate
• Adds a temporary spec-shaped aggregate exposing 'setVirtualWalletBehavior' to command discovery. The comments document when the overlay can be removed.
schema.jsonRegenerate the shared schema with missing BiDi methods+68/-27
Regenerate the shared schema with missing BiDi methods
• Adds the Digital Credentials command and two Bluetooth events with corrected directionality. Regenerates aggregate definitions and selectors so downstream bindings can consume the methods.
titusfortner
changed the title
[build] replace the BiDi KNOWN_INCOMPLETE allowlist with spec-shaped CDDL overlays
[build] update BiDi schema generation to include external spec methods missing due to upstream spec omissions
Sep 20, 2026
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
B-buildIncludes scripting, bazel and CI integrationsB-devtoolsIncludes everything BiDi or Chrome DevTools relatedC-nodejsJavaScript BindingsC-pyPython BindingsC-rbRuby Bindings
2 participants
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.
🔗 Related Issues
Builds on #18055
💥 What does this PR do?
update_cddlrun adds the previously missing command and events to the generated bindings🔧 Implementation Notes
common/bidithat redefines the aggregate (DigitalCredentialsCommand,BluetoothEvent), applied through the existingoverride_cddl_filesMETHOD_DOMAIN_MAPfrom the JS generator: the model now takes the method's<domain>.prefix as-is (as Ruby and Python already do) and the TypeScript stage fails on a domain missing fromDOMAIN_FILES, instead of silently filing unknown domains undercommon, which is what let these slip.🤖 AI assistance
commonfallback, and this description💡 Additional Considerations
🔄 Types of changes