FUZZ-012
- Minimal template / frontmatter
wf/m.formula.toml.j2: formula = "m" / version = 1 / type = "workflow" / [[steps]] id = "a" title = "A"- Input
{"operation":"render","working_directory":"<ws>","template":"wf/m.formula.toml.j2","rendered_formula":"<ws>/build/out.formula.toml","compose_variables":{},"bead_variables":{}} (process cwd != working_directory)- Expected
- A relative template resolves against working_directory, so the render succeeds from any cwd (ADR-0021 line 207 'All paths resolve relative to working_directory'; help bead request table).
- Observed
- Exit 3 BEADS_TEMPLATE_PATH_INVALID 'invalid template path: wf/m.formula.toml.j2'. Succeeds only when cwd == working_directory. origin/develop behaves the same (pre-existing). Reproduced 3/3 by the coordinator.
- Requirement / ADR
- ADR-0021 paths paragraph; help bead request table; ADR-0023 Authorization and confinement
- Requirement / ADR follow-up
- No new ADR needed; the contract already states the rule.
- Root cause
- validate_request canonicalizes request.template (and normalize_output the rendered_formula) as given, so relative paths resolve against the process cwd.
- Recommended fix
- Join relative template/rendered_formula onto the canonical working_directory before canonicalizing and confining.