diff --git a/conductor/edit_workflow.md b/conductor/edit_workflow.md index 24e5667a..896ab411 100644 --- a/conductor/edit_workflow.md +++ b/conductor/edit_workflow.md @@ -109,13 +109,7 @@ If you mismatch any of these, the file will fail to parse. Run `py_check_syntax` ### 9. No Diagnostic Noise in Production Code (Added 2026-06-09) -`sys.stderr.write(f"[XYZ_DIAG] ...")` lines added to `src/*.py` for debugging are technical debt the moment they ship. If you need to instrument for a one-time investigation: - -- Write the diag output to a log file: `tests/artifacts/.diag.log` -- Or to a standalone diagnostic script under `/tmp/diag_.py` that imports the production module and exercises it -- Or read the production source with `get_file_slice` and reason about it directly - -Do NOT add diag lines to `src/*.py` "temporarily." If you must add them for a single test run, they are part of the same atomic commit as the fix — they do not live uncommitted in the working tree. If you "revert everything," that means the diag lines are also reverted. +See `conductor/code_styleguides/python.md` §"AI-Agent Specific Conventions" (the canonical home for this rule). ## Step-by-Step Workflow for gui_2.py