Merge pull request 'fix: fix: disinto planner schedule — daily at 07:00 UTC (#407)' (#415) from action/issue-407 into main

This commit is contained in:
johba 2026-03-20 18:29:03 +01:00
commit 0cfba943b7

View file

@ -2,20 +2,20 @@
# ============================================================================= # =============================================================================
# planner-run.sh — Cron wrapper: direct planner execution via Claude + formula # planner-run.sh — Cron wrapper: direct planner execution via Claude + formula
# #
# Runs weekly (or on-demand). Guards against concurrent runs and low memory. # Runs daily (or on-demand). Guards against concurrent runs and low memory.
# Creates a tmux session with Claude (opus) reading formulas/run-planner.toml. # Creates a tmux session with Claude (opus) reading formulas/run-planner.toml.
# No action issues — the planner is a nervous system component, not work. # No action issues — the planner is a nervous system component, not work.
# #
# The planner plans for ALL projects (harb + disinto) but is itself disinto # Usage:
# infrastructure — always sources projects/disinto.toml. # planner-run.sh [projects/disinto.toml] # project config (default: disinto)
# ============================================================================= # =============================================================================
set -euo pipefail set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
FACTORY_ROOT="$(dirname "$SCRIPT_DIR")" FACTORY_ROOT="$(dirname "$SCRIPT_DIR")"
# Source disinto project config — the planner is disinto infrastructure # Accept project config from argument; default to disinto (planner is disinto infrastructure)
export PROJECT_TOML="$FACTORY_ROOT/projects/disinto.toml" export PROJECT_TOML="${1:-$FACTORY_ROOT/projects/disinto.toml}"
# shellcheck source=../lib/env.sh # shellcheck source=../lib/env.sh
source "$FACTORY_ROOT/lib/env.sh" source "$FACTORY_ROOT/lib/env.sh"
# shellcheck source=../lib/agent-session.sh # shellcheck source=../lib/agent-session.sh