Validate write_file arguments. For use by skill/refine stage. When project_manager is null: structure only. When set: structure + file existence (modify modes) + AST resolution (ast_path mode). Returns "" if valid, otherwise error string (first error found). Use start_line/end_line = -1 when not using line-number mode.