Implements the remaining observers from RFC #58548 (@thebizfixer), accepted as the design basis in the #64231 batch disposition: - on_kanban_worker_spawned: fires in the dispatch loop after spawn_fn returns and the worker PID is durably persisted (the RFC timing contract), in both the ready and review lanes. - on_kanban_worker_exited: tick-derived from detect_crashed_workers; fires after every reclaim/accounting txn has committed, carrying exit_kind / exit_code / outcome / retry_status. - on_kanban_worker_stale_claim: fires when release_stale_claims reclaims a TTL-expired claim; live-PID claim extensions and deferred reclaims stay silent. - on_kanban_task_updated: task-mutation boundary observer carrying changed_fields (field names only); fired by assign_task, set_model_override, and set_reasoning_effort, and by the dashboard plugin API's direct-SQL priority/title/body editors (single and bulk) through the new kanban_db.notify_task_updated seam. - on_kanban_dispatch_tick: re-port of PR #56066 (@laboratoiresonore), renamed per the taxonomy and fired strictly AFTER _dispatch_tick_lock is released; the sweeper found the original fired inside the lock, where a slow subscriber could extend the single-writer critical section and stall a sibling dispatcher. All five are observer-only (return values ignored), fire after the relevant write txn commits, and short-circuit on has_hook() so nothing is built when no consumer registers; every fire site is fully best-effort so a broken plugin can never break dispatch or a task mutation. No config surface added. Existing plugins and hook payloads are untouched. Mutation-boundary scope: every user-facing task-FIELD editor fires (assignee, priority, title, body, model/provider override, reasoning effort). Deliberately not wired: status transitions (they belong to the lifecycle hook family), dispatcher bookkeeping columns (worker_pid, workspace_path, claim columns — surfaced through the worker hooks instead), link/comment/attachment tables (not task-row writes), and the dispatcher's default-assignee auto-assign (already surfaced via DispatchResult.auto_assigned_default in the tick payload). notify_task_updated is the seam for wiring further paths. Docs: new rows plus a detail section in the shipped plugin-hook catalog. Tests: 30 new (9 worker lifecycle, 8 dispatch tick, 8 task updated, 5 dashboard mutation boundary), including a lock-probe contract test that fails if the tick hook ever fires inside the dispatch lock. Refs: RFC #58548, #64231 batch disposition, folds #56066. |
||
|---|---|---|
| .. | ||
| dashboard_auth | ||
| data | ||
| observability | ||
| proxy | ||
| subcommands | ||
| web_routers | ||
| __init__.py | ||
| _early_recovery.py | ||
| _parser.py | ||
| _scan_venv_blockers.py | ||
| _startup_fast.py | ||
| _subprocess_compat.py | ||
| active_sessions.py | ||
| agent_import.py | ||
| agent_plugins.py | ||
| approval_mode.py | ||
| approval_transport.py | ||
| approvals_suggest.py | ||
| approvals_test.py | ||
| auth.py | ||
| auth_commands.py | ||
| azure_detect.py | ||
| backup.py | ||
| bang_shell.py | ||
| banner.py | ||
| blueprint_cmd.py | ||
| browser_connect.py | ||
| build_info.py | ||
| bundles.py | ||
| callbacks.py | ||
| checkpoints.py | ||
| claw.py | ||
| cli_agent_setup_mixin.py | ||
| cli_billing_mixin.py | ||
| cli_commands_mixin.py | ||
| cli_output.py | ||
| clipboard.py | ||
| codex_models.py | ||
| codex_runtime_plugin_migration.py | ||
| codex_runtime_switch.py | ||
| colors.py | ||
| commands.py | ||
| completion.py | ||
| config.py | ||
| config_defaults.py | ||
| config_migrations.py | ||
| console_engine.py | ||
| container_boot.py | ||
| context_switch_guard.py | ||
| copilot_auth.py | ||
| credential_lifecycle.py | ||
| cron.py | ||
| curator.py | ||
| curses_ui.py | ||
| dashboard_procs.py | ||
| dashboard_register.py | ||
| debug.py | ||
| default_soul.py | ||
| dep_ensure.py | ||
| diagnostics_upload.py | ||
| dingtalk_auth.py | ||
| doctor.py | ||
| doctor_live.py | ||
| dump.py | ||
| env_loader.py | ||
| fallback_cmd.py | ||
| fallback_config.py | ||
| focus_view.py | ||
| gateway.py | ||
| gateway_enroll.py | ||
| gateway_windows.py | ||
| goals.py | ||
| gui_uninstall.py | ||
| heartbeat.py | ||
| hooks.py | ||
| init_command.py | ||
| input_sanitize.py | ||
| inventory.py | ||
| journey.py | ||
| kanban.py | ||
| kanban_db.py | ||
| kanban_decompose.py | ||
| kanban_diagnostics.py | ||
| kanban_specify.py | ||
| kanban_swarm.py | ||
| lifecycle.py | ||
| linux_desktop_entry.py | ||
| logs.py | ||
| main.py | ||
| managed_scope.py | ||
| managed_uv.py | ||
| mcp_catalog.py | ||
| mcp_config.py | ||
| mcp_picker.py | ||
| mcp_security.py | ||
| mcp_startup.py | ||
| mem_trim.py | ||
| memory_oauth.py | ||
| memory_setup.py | ||
| middleware.py | ||
| migrate.py | ||
| moa_cmd.py | ||
| moa_config.py | ||
| model_catalog.py | ||
| model_cost_guard.py | ||
| model_normalize.py | ||
| model_search.py | ||
| model_setup_flows.py | ||
| model_switch.py | ||
| models.py | ||
| nous_account.py | ||
| nous_auth_keepalive.py | ||
| nous_billing.py | ||
| nous_subscription.py | ||
| npm_engine.py | ||
| onepassword_secrets_cli.py | ||
| oneshot.py | ||
| pairing.py | ||
| partial_compress.py | ||
| personality.py | ||
| pets.py | ||
| platform_actions.py | ||
| platforms.py | ||
| plugin_capabilities.py | ||
| plugin_dev.py | ||
| plugin_index.py | ||
| plugin_packs.py | ||
| plugins.py | ||
| plugins_cmd.py | ||
| portal_cli.py | ||
| profile_describer.py | ||
| profile_distribution.py | ||
| profiles.py | ||
| projects_cmd.py | ||
| projects_db.py | ||
| prompt_size.py | ||
| prompt_stash.py | ||
| provider_catalog.py | ||
| providers.py | ||
| proxy_cli.py | ||
| psutil_android.py | ||
| pt_input_extras.py | ||
| pty_bridge.py | ||
| pty_session.py | ||
| relaunch.py | ||
| resource_limits.py | ||
| route_identity.py | ||
| runtime_provider.py | ||
| secret_prompt.py | ||
| secrets_cli.py | ||
| security_advisories.py | ||
| security_audit.py | ||
| security_audit_startup.py | ||
| send_cmd.py | ||
| service_manager.py | ||
| session_export.py | ||
| session_export_html.py | ||
| session_export_md.py | ||
| session_filters.py | ||
| session_listing.py | ||
| session_lost_and_found.py | ||
| session_recap.py | ||
| session_recovery.py | ||
| sessions_cmd.py | ||
| setup.py | ||
| setup_hidden_env.py | ||
| setup_whatsapp_cloud.py | ||
| sizefmt.py | ||
| skills_config.py | ||
| skills_hub.py | ||
| skin_cmd.py | ||
| skin_engine.py | ||
| slack_cli.py | ||
| slash_exec.py | ||
| sqlite_runtime.py | ||
| sqlite_safe_read.py | ||
| sqlite_util.py | ||
| status.py | ||
| stdio.py | ||
| suggestions_cmd.py | ||
| telegram_managed_bot.py | ||
| timefmt.py | ||
| timeouts.py | ||
| tips.py | ||
| tools_config.py | ||
| toolset_validation.py | ||
| uninstall.py | ||
| update_cmd.py | ||
| update_lock.py | ||
| urllib_security.py | ||
| vercel_auth.py | ||
| verify_cmd.py | ||
| voice.py | ||
| web_deps.py | ||
| web_git.py | ||
| web_models.py | ||
| web_server.py | ||
| webhook.py | ||
| win_pty_bridge.py | ||
| windows_ssh_runtime.py | ||
| write_approval_commands.py | ||
| xai_retirement.py | ||