hermes-agent/tests/cron
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Austin Pickett 69a96a7311 fix(cron): detect a routed fire from its home, not a ticker-only marker
The dashboard's manual Run now binds the sibling profile via
web_server_cron._cron_store_scope, not the ticker's _profile_cron_scope,
so the marker-based routed_profile_fire() stayed False there: the routed
profile's .env was reloaded into the shared os.environ and the managed
external-worker handoff serialized multiplex_active=False.

routed_profile_fire() now compares the fire's active HERMES_HOME with
get_routing_process_hermes_home(), so every entry point (ticker,
dashboard Run now, CLI, gateway forward) and the external-worker handoff
share one answer. Regression test drives the real dashboard fire path
A -> B -> A with no_agent jobs.
2026-09-29 22:57:48 -04:00
..
__init__.py test: add unit tests for 8 untested modules 2026-02-26 13:27:58 +03:00
conftest.py test(cron): keep script-run tests off the host's PM store 2026-09-27 15:04:50 +05:30
test_agent_scheduling_gate.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_atomic_paused_creation.py test(cron): preserve rejected creation exit status 2026-09-07 08:27:50 -07:00
test_blueprint_catalog.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_bot_chat_cli_home.py fix(cron): bot-chat delivery cap bounds the bot's turn, not its exit linger 2026-09-18 10:29:13 -07:00
test_bot_chat_delivery_child_env.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_bot_chat_own_profile_multiplex_home.py test(cron): own-profile bot-chat turn from a multiplexed tick runs in the ticking home 2026-09-23 08:09:47 -07:00
test_bot_chat_pending.py fix(cron): degraded-delivery marker is recognised by its record, not its text 2026-09-20 17:55:54 +05:30
test_bot_chat_pending_identity.py fix(cron): bot-chat delivery cap bounds the bot's turn, not its exit linger 2026-09-18 10:29:13 -07:00
test_bot_chat_timeout_marker.py refactor(cron): degraded marker is a plain body wrapped by the standard cronjob header 2026-09-20 17:55:54 +05:30
test_bot_chat_warning_replay.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_catchup_policy.py feat(cron): let planned downtime skip missed recurring runs 2026-09-12 01:51:59 -07:00
test_claim_job_for_fire.py fix(cron): let a skewed early fire own its armed slot 2026-09-15 06:07:32 -07:00
test_cleanup_timeout.py fix(cron): one host ticker owns every profile's cron, per profile 2026-09-21 02:52:15 -07:00
test_codex_execution_paths.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_compute_next_run_dst.py fix(cron): return a strictly-later next run when the base sits in the DST fall-back hour 2026-09-13 16:46:45 -07:00
test_compute_next_run_last_run_at.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_context_from_response_extraction.py fix(cron): drop the is_cron_silence_response alias; trim tests to three invariants 2026-09-20 15:31:21 -07:00
test_continuity_silent_audits.py fix(cron): preserve continuity across silent audit ticks 2026-09-07 08:18:20 -07:00
test_cron_bot_chat_delivery.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 15:26:34 -04:00
test_cron_context_from.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_cron_created_delivery.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_cron_delivery_redaction.py fix(cron): bot-chat redaction test seams the spawn helper on both scheduler_delivery shapes 2026-09-18 09:30:54 -07:00
test_cron_direct_api_call.py test: drop tests that cannot fail or duplicate a same-file keeper 2026-09-29 15:58:55 +05:30
test_cron_direct_api_call_watchdog.py fix(agent): keep openai-codex stale floor/hard cap for inline cron Codex (#69734) 2026-09-25 21:28:32 +05:30
test_cron_emfile_stall.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_cron_empty_payload.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_cron_empty_turn_stays_silent.py fix(ux): plain-language, actionable user-facing messages (core) 2026-09-15 04:12:13 -07:00
test_cron_failure_deliver.py feat(notifications): opt-in suppression of user-channel warning notifications 2026-09-18 01:43:35 +05:30
test_cron_failure_notice_copy.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_cron_failure_summarizer_inactivity.py fix(ux): plain-language, actionable user-facing messages (core) 2026-09-15 04:12:13 -07:00
test_cron_home_target_profile_scope.py simplify(compat): cron scheduler — drop 82 re-exports, repoint 8 callers + 33 test files 2026-09-03 13:38:36 -07:00
test_cron_import_error_skew_hint.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_cron_inactivity_timeout.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_cron_incidents.py fix(cron): order execution, delivery and incident history by instant, not by text 2026-09-28 19:07:43 +05:30
test_cron_incidents_resolve.py fix(cron): a successful run resolves the job's open incidents; a repeat re-opens them 2026-09-14 09:19:32 -07:00
test_cron_kanban_env_isolation.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_cron_live_bot_delivery.py fix(cron): bot-chat delivery cap bounds the bot's turn, not its exit linger 2026-09-18 10:29:13 -07:00
test_cron_live_delivery_confirmation.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_cron_manage_profile_scope.py test: make tests/ mirror the source tree; drop issue numbers from filenames 2026-09-13 09:18:02 -07:00
test_cron_mcp_toolset_empty_block.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_cron_memory_contract.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_cron_multiplex_desktop_ticker_scope.py fix(cron): detect a routed fire from its home, not a ticker-only marker 2026-09-29 22:57:48 -04:00
test_cron_multiplex_inflight_release.py fix(cron): release a profile's in-flight claim under the key it registered with 2026-09-21 02:52:15 -07:00
test_cron_multiplex_liveness_and_pools.py fix(cron): release a profile's in-flight claim under the key it registered with 2026-09-21 02:52:15 -07:00
test_cron_multiplex_profile_route_preflight.py fix(pm): isolate bootstrap dependencies and unify YAML on ruamel 2026-09-11 12:23:51 -04:00
test_cron_multiplex_served_profile_parity.py fix(multiplex): cron, kanban, /loop and completion paths for a served profile match its standalone gateway 2026-09-11 19:58:07 -07:00
test_cron_multiplex_shared_route_delivery.py merge: connector UI e2e v2 into bundled onboarding (rebuilt) 2026-09-11 21:10:19 -04:00
test_cron_multiplex_tick_ownership.py fix(cron): release a profile's in-flight claim under the key it registered with 2026-09-21 02:52:15 -07:00
test_cron_next_run_profile_timezone.py fix(timezone): make profile-keyed tz cache atomic and add cron persistence regression 2026-08-31 09:58:40 -07:00
test_cron_no_agent.py test(cron): use env bash shebang in the restored routed no_agent tests 2026-09-29 22:57:48 -04:00
test_cron_non_push_origin.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_cron_origin_synthetic_thread.py test(cron): pin the near one-shot thread origin through the cronjob_manage create handler 2026-09-20 15:54:45 -07:00
test_cron_pinned_job_fallback.py fix(cron): a pinned job never falls back to the global fallback chain (#120312) 2026-09-23 10:42:18 -04:00
test_cron_pre_agent_fallback_notice.py fix: surface the pre-agent provider fallback on the TUI/Desktop gateway and cron too 2026-09-19 01:27:29 -07:00
test_cron_profile_isolation.py test: prune low-value tests suite-wide (wave 1) — 46,820 → 28,106 test functions 2026-07-29 13:10:23 -07:00
test_cron_prompt_injection_skill.py refactor(cron): pass monitor context as a plain kwarg; trim salvage tests to two 2026-09-15 18:30:59 -07:00
test_cron_provider_pin.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_cron_reasoning_effort.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_cron_reconnect_only_rejection.py fix(cron): trim the reconnect-only retention salvage to two router-driven invariants (#125363, salvage #125455) 2026-09-28 05:28:05 -07:00
test_cron_relay_delivery_guards.py simplify(compat): cron scheduler — drop 82 re-exports, repoint 8 callers + 33 test files 2026-09-03 13:38:36 -07:00
test_cron_relay_run_forward.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_cron_run_metrics.py feat(telemetry): gateway platform health, delivery, first-reply latency and cron run metrics 2026-09-28 12:43:03 -07:00
test_cron_run_stale_claim_reap.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_cron_script.py refactor(cron): simplify the interpreter salvage after review 2026-09-28 02:32:05 +05:30
test_cron_thread_seed_dm_keying.py fix(cron): seed Telegram forum-topic cron threads on the group slot topic replies key 2026-09-16 17:18:44 -07:00
test_cron_tick_stale_yield.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_cron_ticker_drift.py test(cron): trim ticker-drift tests to two loop-agnostic invariants 2026-09-18 09:17:29 -07:00
test_cron_timezone_migration_catchup.py test(cron): crash-safety tests claim the fire before asserting not-due 2026-09-12 01:51:59 -07:00
test_cron_windows_venv_abi.py test(cron,gateway): drop dead Windows venv setup; say why selected_venv is patched (#122183) 2026-09-26 19:57:55 +05:30
test_cron_workdir.py feat(cron): allow Python scripts to use an external interpreter 2026-09-28 02:32:05 +05:30
test_cronjob_gateway_liveness.py test: drop tests that cannot fail or duplicate a same-file keeper 2026-09-29 15:58:55 +05:30
test_dead_owner_claim_reclaim.py refactor(cron): reap throttle keyed by hermes_home_key 2026-09-20 17:59:57 +05:30
test_delivery_queue.py fix(cron): order execution, delivery and incident history by instant, not by text 2026-09-28 19:07:43 +05:30
test_delivery_queue_retention_race.py fix(cron): serialize delivery deduplication with terminal retention 2026-09-07 05:58:24 -07:00
test_dispatch_lateness_stamp.py fix(cron): surface missed-fire catch-up lateness in hermes cron list / status 2026-09-01 08:31:37 -07:00
test_due_scan_dst_fold.py test(cron): keep two DST fall-back invariants (due gate, real elapsed timers) 2026-09-23 10:37:15 -07:00
test_due_stale_cron_edit.py test(cron): stale hand-edit without manual marker still re-anchors 2026-08-27 20:39:20 +05:30
test_duration_dst.py fix(cron): preserve elapsed durations across DST changes 2026-09-13 16:46:45 -07:00
test_estop.py test: estop gateway stub answers get_command like a real MessageEvent 2026-09-28 12:43:03 -07:00
test_execution_ledger.py fix(cron): order execution, delivery and incident history by instant, not by text 2026-09-28 19:07:43 +05:30
test_external_worker_secret_sources.py fix(cron): trim external-worker plugin discovery salvage to the bar (#121929, salvage #121950) 2026-09-28 05:28:05 -07:00
test_file_permissions.py test: consolidate backend contracts around real caller boundaries 2026-09-13 15:10:31 -04:00
test_fire_claim_lost_after_delivery.py test: synchronize observable state and reuse prepared PM fixtures 2026-09-21 14:49:05 -04:00
test_fire_forward_failure_stamp.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_idle_tick_config_skip.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_inflight_stale_guard.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_jobs.py fix(cron): an Infinity or negative repeat.completed no longer breaks load_jobs 2026-09-26 23:00:54 +05:30
test_jobs_changed_notify.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_jobs_crossprocess_lock.py fix: complete cron jobs lock salvage 2026-06-15 06:29:00 -07:00
test_jobs_file_ownership.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_jobs_shrink_merge.py fix(cron): fail closed inside the merge peek; keep merge on mergeable repairs 2026-09-27 18:30:44 +05:30
test_lifecycle_guard_budget.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_lifecycle_guard_heredoc_walk.py fix(cron): an oversized or live-SQLite cron script raises the named refusal, not the lifecycle verdict 2026-09-18 09:35:16 -07:00
test_lifecycle_guard_live_db.py fix(cron): serialize lifecycle script reads with sqlite locks 2026-09-11 06:21:48 -07:00
test_media_delivery_parity.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_media_send_timeout.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_mirror_origin_fallback.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_misfire_backstop_oneshot_grace.py fix(cron): misfire backstop honors the one-shot grace window (#93526) 2026-08-23 23:33:29 -07:00
test_misfire_catchup.py test(cron): keep two DST fall-back invariants (due gate, real elapsed timers) 2026-09-23 10:37:15 -07:00
test_missed_window_catchup.py fix(cron): fire one catch-up for a slot missed during a restart gap (#107485) 2026-09-12 01:51:59 -07:00
test_monitor_kind.py fix(cron): only accept a Python executable as a job interpreter 2026-09-28 02:32:05 +05:30
test_notepad.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_oneshot_dispatch_failure_run_claim.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_oneshot_grace_due_scan.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_oneshot_guard_warning.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 15:26:34 -04:00
test_owner_start_time_drift.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_parallel_pool.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_persisted_error_rearm_legality.py fix: re-arm wedged cron jobs to next legal occurrence, cache cadence 2026-08-17 16:55:00 +05:30
test_preflight_config.py fix(cron): a pinned job never falls back to the global fallback chain (#120312) 2026-09-23 10:42:18 -04:00
test_preflight_credential_verdict_names_home.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_preflight_managed_routes.py fix(cron): satellite route lookup reads the primary's layered config (#121212, salvage #121595) 2026-09-28 05:28:05 -07:00
test_quota_hold.py refactor(cron): simplify quota-hold recovery plumbing 2026-09-24 16:59:23 +05:30
test_recurring_persisted_error_recovery.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_recurring_wedge_selfheal.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_relay_fronted_delivery.py fix(cron): live-lane text send uses the already-authorized transport (#115656) 2026-09-19 22:34:21 -07:00
test_restart_safe_worker.py fix(cron): detect a routed fire from its home, not a ticker-only marker 2026-09-29 22:57:48 -04:00
test_retirement_dispatch.py fix(serve): hold work admission through cooperative retirement 2026-09-17 00:34:50 -05:00
test_rewrite_skill_refs.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_run_error_diagnostics.py fix(cron): make failed runs diagnosable without verbose delivery errors 2026-09-07 08:18:56 -07:00
test_run_one_job.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_scheduled_occurrence.py fix(cron): a due slot skipped as already completed is logged, not silent 2026-09-15 18:31:26 -07:00
test_scheduler.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 10:48:07 -04:00
test_scheduler_completion_verification.py simplify(compat): terminal/file/environments — drop 42 re-exports/aliases, repoint 20 callers + 41 test files 2026-09-03 13:29:55 -07:00
test_scheduler_cron_session_isolation.py simplify(compat): approval — drop 43 facade re-exports + _command_detection_variants late-bind seam, repoint 30 callers + 46 test files 2026-09-03 13:49:57 -07:00
test_scheduler_provider.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_scheduler_shutdown_guard.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_script_claim_heartbeat.py test(cron): publish the descendant pid atomically 2026-09-24 12:47:41 -04:00
test_sessiondb_init_hang.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_shutdown_interrupt.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_stale_module_leaf_imports.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_stale_running_recovery.py test(cron): two invariant tests for the live-owner stale-claim bound 2026-09-20 17:59:57 +05:30
test_suggestions.py Merge remote-tracking branch 'origin/main' into ethie/pm-clean 2026-09-23 07:02:44 -04:00
test_terminal_job_rearm.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_ticker_stall.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_ticker_startup_survival.py fix(chronos): a 403 invalid_client from NAS hands cron fires to the built-in ticker (#97494) 2026-09-18 20:07:21 -07:00
test_timezone.py Merge origin/main into ethie/pm-clean 2026-09-23 19:51:34 -04:00
test_unreachable_retry.py test(cron): say which failure's notice the yield case releases 2026-09-26 20:52:42 +05:30
test_upgrade_module_skew.py refactor(cron): probe name covers both bounds; delattr fails loudly; one-line facade import 2026-09-18 12:54:24 +05:30
test_usage_audit_logger.py test: purge low-value tests, lane py05 (339 removed) 2026-09-23 03:15:26 -07:00
test_warning_delivery_policy.py feat(notifications): opt-in suppression of user-channel warning notifications 2026-09-18 01:43:35 +05:30
test_warning_execution_outcome.py feat(notifications): opt-in suppression of user-channel warning notifications 2026-09-18 01:43:35 +05:30
test_warning_transport_contract.py feat(notifications): opt-in suppression of user-channel warning notifications 2026-09-18 01:43:35 +05:30
test_worktree_maintenance_isolation.py fix(pm): close runtime publication and updater audit gaps 2026-09-06 11:45:41 -04:00