{"wiki":null,"facts":{"id":"el-cl-01","name":"Initiative Closer","machine_name":"EL-CL-01","owner":"agt_011","function":"Runs the post-commit close-event hooks when an initiative status is committed","process_type":"triggered","schedule":"On status change","process_name":"initiative_closer","avatar_color":"#ef4444","created_for":"Elrond is accountable for the build pipelines close machinery. When an initiatives status is committed, the post-commit close-event hooks must be performed by a named, accountable droid rather than loose logic inside the initiatives app (Design #146 / #173, cookbook 272).","purpose":"The Initiative Closer runs the four post-commit close-event hooks after the PUT handler commits a status change: flips the orion.bypass dispatch_queue lock on terminal status (INI-446), rolls component actuals into running averages on close (INI-682), runs quality scoring plus the rolling-average regression check on close (INI-322), and runs the per-initiative audit plus follow-on filer on any terminal state (INI-465/623/636) - exactly as they ran inside the app before phase 3. Carries the write-side quality scoring engine so the scoring hook is self-contained.","duties":"- Triggered whenever an initiative status is committed through the initiatives app PUT handler.\n- Runs each of the four close-event hooks as a separate best-effort step; one failing never blocks the others.\n- On terminal status, flips the bypass dispatch lock and runs the audit plus follow-on filer.\n- On close, rolls up component actuals and computes and persists the quality score.\n- Records a session_event and a Palantir post on every close.","constraints":"- Owns and closes its own database connections; never relies on a callers connection.\n- Behavior is preserved exactly from the app (phase 3 is a relocation, not a refactor).\n- Does NOT hold the close gate (status guard, terminal-reopen guard, closure review-must-pass guard) - those stay in the app endpoint before the UPDATE.\n- Reached only through the initiatives apps shared shim, never imported by the app directly.\n- Does not touch the bypass book, cookbook, or initiative status rows beyond what the original hooks did.","status":"running","gender":"male","archetype":"author","building_block":"judge","service_override":null}}