# Serialize deserialize bug

**URL:** <https://forum.sensmetry.com/t/serialize-deserialize-bug/512>\
**Category:** Bug Reports\
**Tags:** automator\
**Created:** [June 26, 2026, 1:37am UTC](https://forum.sensmetry.com/t/serialize-deserialize-bug/512 "2026-06-26T01:37:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Karban](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/robert_karban/32/119_2.png) [@Robert\_Karban](https://forum.sensmetry.com/u/Robert_Karban)\
**Post date:** [June 26, 2026, 1:37am UTC](https://forum.sensmetry.com/t/serialize-deserialize-bug/512/1 "2026-06-26T01:37:52Z")

</div>

Hi All,  
I serialize this model into JSON minimal:

`package FlashlightStarterModel {`  
`package FlashlightSpecificationAndDesign {`  
`package Actions {`  
`action produceDirectedLight {`  
`action provideDCPwr;`  
`action connectDCPwr;`  
`fork fork1;`  
`then provideDCPwr;`  
`then connectDCPwr;`  
`first start then fork1;`  
`} // package Actions`  
`}`  
`} // package FlashlightStarterModel`  
`}`

when I deserialize it back to text I get:

`package FlashlightStarterModel {`  
`package FlashlightSpecificationAndDesign {`  
`package Actions {`  
`action produceDirectedLight {`  
`action provideDCPwr;`  
`action connectDCPwr;`  
`fork fork1;`  
`then provideDCPwr;`  
`then connectDCPwr;`  
`first Actions::Action::start then fork1;`  
`}`  
`} // package Actions`  
`} // package FlashlightSpecificationAndDesign`  
`} // package FlashlightStarterModel`

`This is wrong: first Actions::Action::start then fork1;`

Please advise,

Thanks,

Robert

---

<div class="post-metadata">

**Author:** ![Daumantas](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/daumantas/32/19_2.png) [@Daumantas](https://forum.sensmetry.com/u/Daumantas)\
**Post date:** [June 29, 2026, 6:43am UTC](https://forum.sensmetry.com/t/serialize-deserialize-bug/512/2 "2026-06-29T06:43:55Z")

</div>

Hi,

This happens because minimal options skip serialization of implicit specializations which includes specialization to standard `Actions::Action`, so `start` is effectively not an inherited member after deserialization. You can fix this by resolving sema again

```py
syside.Sema().resolve(
    [document],
    index=syside.Environment.get_default().index(),
    stdlib=syside.Environment.get_default().lib,
)

```

I will have a look into fixing the missing global reference modifier `~::`.

---

<div class="post-metadata">

**Author:** ![Daumantas](https://yyz2.discourse-cdn.com/flex008/user_avatar/forum.sensmetry.com/daumantas/32/19_2.png) [@Daumantas](https://forum.sensmetry.com/u/Daumantas)\
**Post date:** [June 29, 2026, 11:08am UTC](https://forum.sensmetry.com/t/serialize-deserialize-bug/512/3 "2026-06-29T11:08:08Z")

</div>

> [@Daumantas](#):
>
> I will have a look into fixing the missing global reference modifier `~::`.

Fixed for the next release.
