From 050b3cafbf77944c9924b9eeda8a6753a29ddc02 Mon Sep 17 00:00:00 2001 From: Floke Date: Wed, 31 Dec 2025 14:27:04 +0000 Subject: [PATCH] fix(gtm): Correct dictionary merge syntax error and add debug logging --- gtm_architect_orchestrator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtm_architect_orchestrator.py b/gtm_architect_orchestrator.py index 9514e886..48d00d3b 100644 --- a/gtm_architect_orchestrator.py +++ b/gtm_architect_orchestrator.py @@ -203,7 +203,7 @@ Output JSON format ONLY. conflict_response = call_openai_chat(full_conflict_prompt, response_format_json=True) conflict_data = json.loads(conflict_response) - final_result = {{**extraction_data, **conflict_data}} + final_result = {**extraction_data, **conflict_data} print(json.dumps(final_result)) def discover_icps(data): @@ -292,6 +292,8 @@ def main(): parser.add_argument("--mode", type=str, required=True, help="Execution mode") args = parser.parse_args() + print(f"DEBUG: Orchestrator v1.2 loaded (Mode: {args.mode})", file=sys.stderr) + if not sys.stdin.isatty(): try: data = json.loads(sys.stdin.read())