> For the complete documentation index, see [llms.txt](https://docs.velthoryn.site/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.velthoryn.site/architecture-decisions/decisions.md).

# Overview

This directory contains all Architecture Decision Records (ADRs) for the Velthoryn protocol. Each ADR documents a significant technical decision, its context, and consequences.

***

## Index

| ADR                                                                        | Decision                                                                               | Status   |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------- |
| [ADR-001](/architecture-decisions/adr-001-merkle-compressed-vesting.md)    | Use Merkle-compressed vesting (one tree per campaign, not one PDA per recipient)       | Accepted |
| [ADR-002](/architecture-decisions/adr-002-keccak-256-domain-separation.md) | Use Keccak-256 with domain separation for Merkle hashing                               | Accepted |
| [ADR-003](/architecture-decisions/adr-003-issue-29-per-leaf-ledger.md)     | Issue #29: per-leaf ledger in ClaimRecord (originally deferred, then shipped on-chain) | Accepted |
| [ADR-FE-001](/architecture-decisions/adr-fe-001-shadcn-ui.md)              | Adopt shadcn/ui as the component primitive layer                                       | Accepted |
| [ADR-FE-002](/architecture-decisions/adr-fe-002-e2e-mock-wallet.md)        | E2E mock wallet via localStorage flag                                                  | Accepted |
| [ADR-FE-003](/architecture-decisions/adr-fe-003-campaign-lifecycle.md)     | 8-state CampaignLifecycle enum                                                         | Accepted |
| [ADR-FE-004](/architecture-decisions/adr-fe-004-bankrun-ordering.md)       | Bankrun `warpToSlot` before `setClock`                                                 | Accepted |
| [ADR-FE-005](/architecture-decisions/adr-fe-005-server-side-tx.md)         | Server-side transaction building (tx-builder.ts)                                       | Accepted |
| [ADR-FE-006](/architecture-decisions/adr-fe-006-idl-drift.md)              | Manual claim instruction builder (IDL drift mitigation)                                | Accepted |
| [ADR-FE-007](/architecture-decisions/adr-fe-007-cancel-design.md)          | Cancel design: instant settle vs grace period                                          | Accepted |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.velthoryn.site/architecture-decisions/decisions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
