# 0008. The agent carries app/; the cp1-agents check allows it | | | |---|---| | Status | Accepted | | Date | 2026-10-29 | | Decided by | Product owner (CP1) | | Requirements changed | cp4-agents' folder rule "no app/" (declarative agents only), adopted as the cp1-agents baseline | ## Context The workspace, `delegate`, the discovery rules and the enforcing hooks are code (ADRs 0002, 0005). The cp4-agents check refuses any `app/`. ## Decision `scripts/check_agents.py` allows `app/` only when `agent.yaml` declares functions, hooks or sub_agents. The Dockerfile must then copy `app/` and `prompts/`, and each sub-agent's prompt must exist. An agent that declares none of these is still refused an `app/`. ## Consequences Kyndryl's modernization-agents CI may hold `app/` to the stricter rule. Confirm before raising a pull request there.