{"wiki":{"id":1848,"slug":"me-replan-drain-01","entity_type":"droid","entity_id":"me-replan-drain-01","title":"Merlin Replan Drain","prose_md":"## About\n\nMerlin Replan Drain is a tidy-up droid that keeps [[agt_020]]’s pipeline replan queue healthy. Its sole job is to sweep through the `merlin_replan_unapplied` rows that accumulate in `pipeline_failures_v` and apply the pre-existing prompt directive to each failed step. By draining those unapplied replans automatically, the droid prevents stale directives from clogging the pipeline and ensures that every known fix gets a chance to work.\n\nThe droid runs on a tight two‑minute schedule, so it catches new failures quickly. Each execution takes an unapplied replan row, hands the step context and the stored `prompt_directive` to Claude, and lets the model carry out the directive without any fresh diagnosis or new decision‑making. When a run completes, Merlin Replan Drain emits an audit record so that [[audit]] can track what was processed.\n\nThis is a one‑of‑a‑kind droid — there is only one Merlin Replan Drain, owned exclusively by [[agt_020]]. It is not part of any reusable droid family, though many unique droids like it exist across the Carolverse. It is not pure software; it calls Claude to re-apply the directive to the failed step, using a model that isn’t explicitly pinned in its configuration.","namesake_json":"{\"engine\": \"claude\", \"model\": null, \"claude_purpose\": \"apply pre-existing prompt directives to failed pipeline steps\", \"family\": \"(none)\", \"family_size\": 209, \"is_unique\": true}","profile_pic_path":"","source_hash":"bd812542489fc0d73650b3d6e15aac289723e700ee906646927114c5d903eabe","status":"active","last_generated_at":"2026-07-30 03:31:19","created_at":"2026-07-30 03:31:14","updated_at":"2026-07-30 03:31:19"},"facts":{"id":"me-replan-drain-01","name":"Merlin Replan Drain","machine_name":"","owner":"agt_020","function":"Apply unapplied Merlin replan directives to their failed steps","process_type":"scheduled","schedule":"Every 2 min","process_name":"","avatar_color":"#94a3b8","created_for":"CAROL-INI-2189","purpose":"Drain merlin_replan_unapplied rows from pipeline_failures_v by applying the existing prompt_directive to the failed step (rehomed from retired al_watch_01, CAROL-INI-154). Merlin business.","duties":"Drain + apply unapplied Merlin replans; emit run-audit each run.","constraints":"Applies pre-existing directives only; no new diagnosis.","status":"running","gender":"","archetype":"","building_block":"replan","service_override":null,"enabled":1,"task_key":"initiatives.blanket_planner","model_free":0},"page":{"type":"droid","page_class":"main","class_label":"Main page","kind_label":"Droid","kind_gloss":"","listed":true}}