# Config link and contract hooks **🟡 Intermediate · Lesson 34** SpellbookConfiguration hooks, families 3+4: LINKING and CONTRACTS - the dynamic arc becomes observable. Register on the owner book and watch its side of the story: on_conduit_post_link - a link opened on_contract_created - a spell entered a contract on_contract_removed - it left on_conduit_post_unlink - the link died (lesson 27's sever) This closes the loop: everything lessons 21-27 DO, these hooks SEE. ## Before you run Use the [Intermediate guide](../../intermediate/index.md) for prerequisite concepts. Run from a checkout with Melder installed and Python 3.14 free-threading selected. The collection download includes the level's local helper modules. ## Run the saved script ```bash python UX_and_AIX_experiences/02_intermediate/34_config_link_and_contract_hooks.py ``` ```powershell py -3.14t UX_and_AIX_experiences/02_intermediate/34_config_link_and_contract_hooks.py ``` {download}`Download this collection <../../downloads/intermediate-examples.zip>` · [Source on GitHub](https://github.com/Synaptic724/melder/blob/90d52e0a12cb0743d62568d5a19ce954a54443bc/UX_and_AIX_experiences/02_intermediate/34_config_link_and_contract_hooks.py) ## Public surface linking + contract hooks across link -> pull -> sever ## Code ```{literalinclude} ../../downloads/02_intermediate/34_config_link_and_contract_hooks.py :language: python :linenos: ``` ## Check the outcome The script contains its own assertions or demonstrated refusal paths. Run it to evaluate those checks against your installed version. The code above is taken directly from the saved file; no run output is invented here. [More intermediate examples](index.md) · [Level guide](../../intermediate/index.md) ## Related guides - [Lifecycle hooks](../../intermediate/hooks.md)