ErrorsProject layout and modules · rule
layout.asset_unreferenced
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:
Completing a todo should also clear its reminder. 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 inprompts/. Nothing usesnotes.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:
{ "prompt_version": "1a2b3c4d", "answer": "Yes, the loaf has sesame seeds."}
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, sosesame.jsonbelongs toAnswerQuestionindomains/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:
{ "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.
/// 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.
Related
Markdown for agents: /docs/errors/layout.asset_unreferenced.md.Built from Jadpo's main branch at commit 9080dc3.