validate


Description:

public static async string validate (ProjectManager? project_manager, string file_path, string content, string ast_path, string location, int start_line, int end_line, bool complete_file, bool overwrite)

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.