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
Critical fix: the previous stampFormSpecOnTriggerEvent approach (events.update
on the trigger event post-cmc.createInvite) does NOT propagate to the
capability offer event. The CMC plugin's capability-mint hook snapshots
the trigger event content into a separate offer event (under
:_cmc:_internal:offer:<capId>) AT MINT TIME — once. Subsequent updates
to the trigger event are not reflected in the offer event, so the patient
cannot see hdsFormSpec via cmc.readOffer pre-accept.
Workaround: bypass cmc.createInvite (which doesn't accept arbitrary
extra content) and call events.create directly with hdsFormSpec already
in content. The mint hook then copies hdsFormSpec into the offer event
naturally.
verify-formspec.mjs ran against demo with all 7 checks passing:
- A3: trigger event carries hdsFormSpec ✓
- A4: capability offer pre-accept carries hdsFormSpec ✓ (was FAIL pre-fix)
- A5/A7: patient accepts + mirrored snapshot preserved ✓
- B1/B3/B5: chat-only flow with hds-noop placeholder ✓
stampFormSpecOnTriggerEvent kept as @deprecated for doctor-side analytics.
0 commit comments