You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
architecture.json / <include> mismatch: 'agentic_update_python.prompt' declares dependency on module 'sync_order' ('sync_order_python.prompt') but the prompt has no <include> or <pdd-dependency> of that module's prompt
Why This Matters
PDD currently treats <pdd-dependency> as the authoritative architectural dependency declaration. A plain implementation include can be context without being an architecture edge.
If sync decides a dependency belongs in architecture.json, it must either:
add/preserve the matching <pdd-dependency>...prompt</pdd-dependency> in the prompt, or
avoid adding that architecture dependency.
Writing only one side creates immediate validation failure.
After pdd sync, architecture dependencies and prompt dependency metadata should remain consistent.
Acceptance Criteria
Add a regression using the chore: PDD sync for #1054 #1055 shape: a prompt gains a selected/interface include of pdd/sync_order.py but no <pdd-dependency>sync_order_python.prompt</pdd-dependency>.
Sync must not produce a validate-arch-includes mismatch.
If sync intentionally adds sync_order_python.prompt to architecture dependencies, it must also update the prompt metadata source accordingly.
pdd checkup --validate-arch-includes passes after the sync.
Problem
PR #1055 for #1054 produced an architecture / prompt dependency mismatch.
On
origin/main,agentic_update_python.prompthad this architecture dependency:In sync commit
632f9193e34560debb3d9aa3df287e0e49cf97ef, rootarchitecture.jsonchanged it to:But
pdd/prompts/agentic_update_python.promptstill only declares:It includes
pdd/sync_order.pyonly as helper/source context:That made CI fail:
Why This Matters
PDD currently treats
<pdd-dependency>as the authoritative architectural dependency declaration. A plain implementation include can be context without being an architecture edge.If sync decides a dependency belongs in
architecture.json, it must either:<pdd-dependency>...prompt</pdd-dependency>in the prompt, orWriting only one side creates immediate validation failure.
Likely Areas To Inspect
pdd/auto_deps_architecture.pypdd/architecture_sync.py::update_architecture_from_promptpdd syncpdd/architecture_include_validation.py::cross_validate_architecture_with_prompt_includesExpected
After
pdd sync, architecture dependencies and prompt dependency metadata should remain consistent.Acceptance Criteria
pdd/sync_order.pybut no<pdd-dependency>sync_order_python.prompt</pdd-dependency>.validate-arch-includesmismatch.sync_order_python.promptto architecture dependencies, it must also update the prompt metadata source accordingly.pdd checkup --validate-arch-includespasses after the sync.Related