Jadpo is experimental and not ready for production. These docs follow the compiler's main branch as of 29 Nov 2026. What's built · Install 0.6.0
jadpo
ReferenceErrors

ErrorsProject layout and modules · rule

layout.asset_unreferenced

On this page

A file that isn't Jadpo sits in a code folder, and no declaration uses it.

Area 1, Project layout and modules; not declinable; the next step is usually the agent's.

Why Jadpo refuses it

Everything in domains/ and shared/ is the app's code, or a file the code uses: an email's templates, a prompt's text and its recordings. Each sits beside the declaration that uses it, named after it, so a reader who opens a folder sees only what the app runs. A file nothing uses is left behind by a rename, or was never the app's, and a reviewer can't tell which without asking.

What it looks like

Notes about the planning domain are kept beside its actions.

domains/planning/actions/notes.md:

example
Completing a todo should also clear its reminder.
jadpo checkcheck failed: 1 error, 2 files

error notes.md isn't used by any declaration

--> domains/planning/actions/notes.md

reason
A code folder holds Jadpo and the files its declarations use: an email's templates beside it in emails/, and a prompt's text and recordings beside it in prompts/. Nothing uses notes.md.
next
Move it out of domains/, or delete it if nothing needs it (agent)
rule
layout.asset_unreferenced
help
https://jadpo.dev/docs/errors/layout.asset_unreferenced

(agent) at the end of the next: line means your coding agent can make the fix itself.

A recording of a prompt's answer sits in recordings/<prompt>/ beside the prompt it records. One whose folder names no prompt is used by nothing, here because the prompt was renamed from answer_question to answer_customer:

domains/support/prompts/recordings/answer_question/sesame.json:

example
{  "prompt_version": "1a2b3c4d",  "answer": "Yes, the loaf has sesame seeds."}
jadpo checkcheck failed: 1 error, 2 files

error sesame.json isn't used by any declaration

--> domains/support/prompts/recordings/answer_question/sesame.json

reason
A recording sits in recordings/<prompt>/ beside the prompt it records, so sesame.json belongs to AnswerQuestion in domains/support/prompts/answer_question.jadpo, and no prompt there is called that.
next
Move it to the recordings of the prompt it records, or delete it if nothing will use it (agent)
rule
layout.asset_unreferenced
help
https://jadpo.dev/docs/errors/layout.asset_unreferenced

How to fix it

If the file is the app's, put it beside the declaration that uses it, named after it: here, move the recording to domains/support/prompts/recordings/answer_customer/sesame.json.

domains/support/prompts/recordings/answer_customer/sesame.json:

example
{  "prompt_version": "1a2b3c4d",  "answer": "Yes, the loaf has sesame seeds."}

The recording is now one of AnswerCustomer's, which a test's fake can answer with.

If it isn't, move it out of the code folder, to the project's root or docs/, or delete it if nothing needs it.

example
/// Marks a todo done. Completing a todo also clears its reminder.action complete_todo() -> Unit {}

The note now lives where a reader looks for it: on the action it is about.

Markdown for agents: /docs/errors/layout.asset_unreferenced.md.Built from Jadpo's main branch at commit 9080dc3.