From 86c7dc9ded7656937d40bf7b05fdc8bef65717ae Mon Sep 17 00:00:00 2001 From: agent-admin Date: Fri, 24 Apr 2026 17:56:32 -0400 Subject: [PATCH] =?UTF-8?q?config:=20default=20timezone=20=E2=86=92=20Amer?= =?UTF-8?q?ica/Indiana/Indianapolis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Deployment is in Fort Wayne, IN (Eastern — most of central/eastern Indiana uses America/Indiana/Indianapolis). Upstream defaulted to America/Chicago which would have caused staleness-gate and daily-log date rollover to fire an hour off from local wall-clock. Override still available via MEMORIA_TZ env var for other deployments. Unknown zone behaviour unchanged (warn + fall back to system local). FORK.md env-var table + divergences section updated to match. --- FORK.md | 8 +++++--- scripts/config.py | 12 +++++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/FORK.md b/FORK.md index e89209c..b62654d 100644 --- a/FORK.md +++ b/FORK.md @@ -69,10 +69,12 @@ injection). What's below is the delta. ### Configurability -- **Timezone.** `TIMEZONE` (default `America/Chicago`) is now wired +- **Timezone.** `TIMEZONE` (default `America/Indiana/Indianapolis` — + Eastern time, Fort Wayne / central-eastern Indiana) is now wired through `zoneinfo.ZoneInfo` and used by `now_iso()` / `today_iso()` / `maybe_trigger_compilation()`. Override via `MEMORIA_TZ`. Unknown zones - log a warning and fall back to system local time. + log a warning and fall back to system local time. Upstream defaulted + to `America/Chicago`; we diverge to match deployment. - **Compile trigger.** The upstream 6 PM hardcoded gate is replaced with a staleness-based trigger: compile fires if the daily log changed AND `MEMORIA_COMPILE_INTERVAL_MIN` minutes (default 60) have elapsed since @@ -99,7 +101,7 @@ injection). What's below is the delta. | Var | Default | Purpose | |-----|---------|---------| -| `MEMORIA_TZ` | `America/Chicago` | Timezone for date/time operations | +| `MEMORIA_TZ` | `America/Indiana/Indianapolis` | Timezone for date/time operations | | `MEMORIA_COMPILE_INTERVAL_MIN` | `60` | Minutes between auto-compile triggers | | `MEMORIA_MAX_LOG_CHARS` | `100000` | Daily-log chunk threshold | | `MEMORIA_COMPILE_MODEL` | `sonnet` | Model for `compile.py` | diff --git a/scripts/config.py b/scripts/config.py index d964577..3441d52 100644 --- a/scripts/config.py +++ b/scripts/config.py @@ -22,11 +22,13 @@ LOG_FILE = KNOWLEDGE_DIR / "log.md" STATE_FILE = SCRIPTS_DIR / "state.json" # ── Timezone ─────────────────────────────────────────────────────────── -# Configurable via the MEMORIA_TZ environment variable (falls back to -# America/Chicago to preserve upstream's default for users who don't set it). -# If the zone name is unknown (missing tzdata, typo), log a warning and fall -# back to the system local timezone via astimezone() with no argument. -TIMEZONE = os.environ.get("MEMORIA_TZ", "America/Chicago") +# Configurable via the MEMORIA_TZ environment variable. Default is +# America/Indiana/Indianapolis (Eastern — covers Fort Wayne and most of +# central/eastern Indiana). Upstream defaulted to America/Chicago; we +# diverge to match our actual deployment. If the zone name is unknown +# (missing tzdata, typo), log a warning and fall back to the system local +# timezone via astimezone() with no argument. +TIMEZONE = os.environ.get("MEMORIA_TZ", "America/Indiana/Indianapolis") try: TZ: ZoneInfo | None = ZoneInfo(TIMEZONE)