Skip to content

clay: make mark bushes optional in %tube#7328

Merged
pkova merged 7 commits into
developfrom
dozreg/lightning-tube-fix
Apr 21, 2026
Merged

clay: make mark bushes optional in %tube#7328
pkova merged 7 commits into
developfrom
dozreg/lightning-tube-fix

Conversation

@dozreg-toplud

@dozreg-toplud dozreg-toplud commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

@bonbud-macryg noticed that mounting a fresh desk created with |new-desk no longer worked.

It turns out that dependency graph construction for mark conversion gates was too strict: it required files for both marks to exist, even though only one mark core is actually needed (for either +grow or +grab contents of the first or the seconds marks respectively). This led to a crash during %hoon -> %mime conversion gate construction, as /mar/mime/hoon does not exist in a fresh desk.

This PR makes marks' bushes optional in %tube case of $bush, so it makes both the bush construction and the bush-to-vase computations more robust.

Note that I removed arm calculation that checked for +grab existence: it seems to me unnecessary since for rab to be succesfull +grab at least needs to exist. I realized the mistake with that: we want to check the top-level battery only and not the entire namespace of a vase. This prompted me to add another arm existence check with +slob in +has-arm.

Tested this by trying to reproduce the bug encountered by @bonbud-macryg, a new desk mounted fine.

@dozreg-toplud dozreg-toplud force-pushed the dozreg/lightning-tube-fix branch from 827dd1d to 5f15fff Compare April 12, 2026 09:26
@dozreg-toplud dozreg-toplud force-pushed the dozreg/lightning-tube-fix branch from 5f15fff to c1bf174 Compare April 12, 2026 09:51
@dozreg-toplud dozreg-toplud force-pushed the dozreg/lightning-tube-fix branch from a81138d to a56ef7a Compare April 12, 2026 15:23
@dozreg-toplud dozreg-toplud force-pushed the dozreg/lightning-tube-fix branch from e211dfb to 041a788 Compare April 13, 2026 16:10
@dozreg-toplud

dozreg-toplud commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

Another small fix: in %grab case we now wrap around the gate with our gate so that the spin hint correctly hints the actication of the gate

@dozreg-toplud

dozreg-toplud commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

Had to revert 041a788 because in %groups some mark conversion gates are iron gates, so |: +6:tub gate had * type as its sample, leading to a nest failure.

@pkova pkova merged commit 7a71a1c into develop Apr 21, 2026
1 check passed
@dozreg-toplud dozreg-toplud deleted the dozreg/lightning-tube-fix branch April 22, 2026 14:52
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.

2 participants