1.6 KiB
Plan
Read engineering, Graphify and Spec-Kit skills and baseline constitution (v1.1.0). Existing worktree has no tracked .specify configuration; do not overwrite shared scaffolding. Use proportional feature artifacts only.
Impact map
Base clean isolated branch corporate-migration-stdin at 90dcec413d. Existing graph SHA256 6a73473cee9e207543fdeeb668bea544f766200a1b16b8a3a9ce18d4e42e51af, 4304 nodes. Graph build/source binding unverified; query corporate-stage-migrate docker stage subprocess stdin returns only deployment/Compose nodes. Treat as navigation only. Direct source confirms run -> stage -> docker -> subprocess.run; apply_stage and clone psql use data bytes. Backup source Popen separately inherits stdin; restore consumes its stdout. No frontend/backend code changes.
Implementation
- Add explicit subprocess argument regression for absent payload, SQL bytes and empty bytes before implementation; assert backup source uses DEVNULL and restore retains stream stdin in existing transport test.
- Set stdin=DEVNULL only when data is None (input=None is compatible with explicit stdin); for payload use stdin=None so subprocess.run(input=data) creates PIPE. Set backup source Popen stdin=DEVNULL. Preserve restore stream wiring.
- Run focused tests RED, then GREEN and complete existing script suite; inspect diff, commit only owned paths. No release/build is needed for Python-only helper; this is not live Docker/PTY or Stage acceptance.
Consistency
Acceptance, file ownership, and tests align; no CI/process changes or pushes authorised.