Files
msd-core/.changeset/patient-yaks-click.md
Tom Boucher 0d4d78550f fix(#3188): null absent planning-doc paths in init phase queries (#3430)
* fix(#3188): null absent planning-doc paths in init phase queries

The init phase-op / plan-phase / execute-phase queries emitted a non-null
absolute requirements_path / state_path / roadmap_path even when the named
file did not exist — built with a bare path.join and no existence check,
unlike the conditional sibling fields (patterns_path, context_path, ...) in
the same payload. Consumers (e.g. ultraplan-phase.md:104 'requirements_path
is not null') therefore read missing files.

Each of the three reading sites now returns null when the file is absent and
its absolute path when present. The project/milestone-bootstrap and doc-ingest
emitters that use these paths as write-targets for not-yet-created files are
intentionally unchanged.

* chore(#3188): backfill changeset pr: 3430

---------

Co-authored-by: sim <sim@local>
2026-08-13 23:50:22 -04:00

888 B

type, pr
type pr
Fixed 3430

The init phase-op, init plan-phase and init execute-phase queries no longer hand consumers a fully-formed absolute path for a REQUIREMENTS.md/STATE.md/ROADMAP.md that does not exist. Those three fields were built with a bare path.join and no existence check, so a non-null value was indistinguishable from the file actually being there — even as the conditional sibling fields in the same payload (patterns_path, context_path, ...) already returned null for absent files, and ultraplan-phase.md explicitly gates its REQUIREMENTS.md read on requirements_path is not null. Each of the three reading sites now returns null when the file is absent and its absolute path when present. The project/milestone-bootstrap and doc-ingest emitters that use these paths as write-targets for not-yet-created files are intentionally unchanged. (#3188)