hermes-agent/tests/cron
Victor Kyriazakos 58ff0fd302 fix(cron): relay-fronted Slack delivery — synthetic creation-thread capture + preflight fronted-platform blindness
Bug 1: relay-fronted Slack in thread-per-message mode stamps each top-level
message's own id as source.thread_id (session KEYING, native thread_ts
parity). Cron origin capture persisted that stamp as durable routing, so
every delivery landed inside the ephemeral thread spawned around the
creation message instead of the top-level conversation. Fix at the source:
_origin_from_env drops a Slack thread id equal to the creation message's
own id (genuine in-thread creations keep theirs). Fire-time repair for
already-persisted jobs: deliver=origin and the explicit-target Slack
re-attach treat an origin thread as stale when the origin chat is the
configured Slack home chat — top-level (or the home target's configured
thread) wins; non-home working threads are preserved.

Bug 2: _preflight_check_delivery and cron_delivery_targets validated
deliver prefixes against get_connected_platforms(), which only sees
natively configured platforms — a relay-only deployment ({relay}) rejected
'slack:CHAT' with 'no gateway credentials configured' although fire-time
routing (resolve_delivery_transport + RelayAdapter.fronts_platform)
delivers it. New gateway.relay.relay_fronted_platforms() (env-derived from
GATEWAY_RELAY_PLATFORMS — the same source that seeds the live adapter's
identity set, so validation and routing cannot disagree) is unioned into
the connected set when the relay is connected. Native topologies keep the
strict credential check unchanged.
2026-08-13 10:46:13 -07:00
..
__init__.py
…
conftest.py
…
test_agent_scheduling_gate.py feat(cron): config-gated agent scheduling in cron context 2026-08-13 09:42:39 -07:00
test_blueprint_catalog.py
…
test_claim_job_for_fire.py
…
test_codex_execution_paths.py
…
test_compute_next_run_last_run_at.py
…
test_cron_context_from.py
…
test_cron_created_delivery.py fix(cron): apply create-time origin resolution to the update path too 2026-08-13 09:42:39 -07:00
test_cron_direct_api_call_62151.py
…
test_cron_direct_api_call_watchdog.py
…
test_cron_inactivity_timeout.py
…
test_cron_kanban_env_isolation.py
…
test_cron_no_agent.py fix(cron): load .env on no_agent path so standalone ticks resolve delivery home channels 2026-08-10 10:58:05 +05:30
test_cron_origin_synthetic_thread.py fix(cron): relay-fronted Slack delivery — synthetic creation-thread capture + preflight fronted-platform blindness 2026-08-13 10:46:13 -07:00
test_cron_profile_isolation.py
…
test_cron_prompt_injection_skill.py
…
test_cron_provider_pin.py
…
test_cron_relay_delivery_guards.py fix(cron): relay-fronted Slack delivery — synthetic creation-thread capture + preflight fronted-platform blindness 2026-08-13 10:46:13 -07:00
test_cron_script.py test: run os-specific tests on their real host, not a faked one 2026-08-09 22:09:49 -04:00
test_cron_workdir.py
…
test_cronjob_schema.py
…
test_execution_ledger.py
…
test_file_permissions.py
…
test_idle_tick_config_skip.py
…
test_jobs.py test(cron): regression coverage for Windows encoding cluster 2026-08-08 12:29:35 -07:00
test_jobs_changed_notify.py
…
test_jobs_crossprocess_lock.py
…
test_jobs_file_ownership.py
…
test_jobs_shrink_merge_80624.py
…
test_monitor_kind.py fix: post-merge audit follow-ups for #81138/#81139/#81141/#81148 2026-08-08 05:21:09 -07:00
test_notepad.py fix: post-merge audit follow-ups for #81138/#81139/#81141/#81148 2026-08-08 05:21:09 -07:00
test_parallel_pool.py
…
test_preflight_config.py
…
test_reasoning_config_per_model.py
…
test_relay_fronted_delivery.py fix(cron): deliver to relay-fronted platforms via canonical home_channel (#84300) 2026-08-12 14:48:54 +10:00
test_rewrite_skill_refs.py
…
test_run_one_job.py
…
test_scheduler.py
…
test_scheduler_cron_session_isolation.py
…
test_scheduler_mcp_init.py
…
test_scheduler_provider.py
…
test_scheduler_shutdown_guard.py
…
test_script_claim_heartbeat.py
…
test_sessiondb_init_hang.py
…
test_shutdown_interrupt.py
…
test_suggestions.py
…
test_terminal_cwd_lock.py
…
test_ticker_stall_60703.py
…
test_usage_audit_logger.py
…