# Programmable Logic

***

## Recursive Composition and Token-Scoped Reasoning

CROME agents incorporate advanced programmable logic engines, allowing both token-scoped reasoning and recursive composition:&#x20;

<details>

<summary>Token-Scoped Reasoning</summary>

* Defined as individual decision-making capabilities at the token level, allowing agents to autonomously respond to blockchain events based on embedded logic.
* Facilitates localized execution of logic, enabling quick and adaptive responses to environmental changes.&#x20;

</details>

<details>

<summary>Recursive Composition</summary>

* Allows an agent to own, control, and manage other agents, establishing hierarchical organizational structures and enabling layered governance.&#x20;
* Formally expressed mathematically as follows:&#x20;

</details>

$$
C\_{ERC6551}^1 = { C\_2, C\_3, \dots, C\_n }
$$

This recursive capability enables the formation of complex hierarchical relationships, nested governance structures, and strategic swarm management.

{% hint style="info" %}
Recursive composition allows agents to manage and coordinate subordinate agents, creating multi-layered, intelligent autonomous organizations.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.crome.pro/technical-overview/programmable-logic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
