From f97a86af4eea92df8a366e2bc9b29c1adcca8537 Mon Sep 17 00:00:00 2001 From: Christoph Weniger Date: Fri, 5 Jun 2026 23:59:06 +0200 Subject: [PATCH] Add seconds to auto-generated run directory names Output dirs now use YYMMDD-HHMMSS-adj-noun instead of YYMMDD-HHMM-adj-noun, preventing collisions when multiple runs are launched within the same minute. Co-Authored-By: Claude Sonnet 4.6 --- falcon/cli.py | 2 +- falcon/core/run_name.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/falcon/cli.py b/falcon/cli.py index ce9f6ee..311db6f 100644 --- a/falcon/cli.py +++ b/falcon/cli.py @@ -6,7 +6,7 @@ falcon graph [--config FILE] Run directory behavior: - - If --output not specified, generates: output/adj-noun-YYMMDD-HHMM + - If --output not specified, generates: output/YYMMDD-HHMMSS-adj-noun - If --output exists with config.yml, resumes from saved config - Otherwise, loads ./config.yml and saves resolved config to output dir """ diff --git a/falcon/core/run_name.py b/falcon/core/run_name.py index f007713..8495cf8 100644 --- a/falcon/core/run_name.py +++ b/falcon/core/run_name.py @@ -6,11 +6,11 @@ def generate_run_name() -> str: - """Generate a memorable run name: YYMMDD-HHMM-adjective-noun.""" - date = datetime.now().strftime("%y%m%d") - time = datetime.now().strftime("%H%M") + """Generate a memorable run name: YYMMDD-HHMMSS-adjective-noun.""" + now = datetime.now() + date_time = now.strftime("%y%m%d-%H%M%S") slug = generate_slug(2) - return f"{date}-{time}-{slug}" + return f"{date_time}-{slug}" def generate_run_dir(base_dir: str = "output") -> str: