{"wiki":{"id":800,"slug":"el-ri-01","entity_type":"droid","entity_id":"el-ri-01","title":"Initiative Review Inferer","prose_md":"## About\n\nThe Initiative Review Inferer is a trigger-driven droid owned by [[agt_011]] that watches plan steps in the [[initiatives]] app. Its job is to recognise when a phase of work is complete and flip the initiative's status to \"reviewing\" so the next stage of the workflow can begin. It was extracted from the app's own logic rather than rewritten, which means it preserves the original behaviour exactly.\n\nWhen a plan step is marked done, the Inferer runs after the step's status is committed. It re-reads the committed step, counts the done steps in that phase, and only acts if every step in the phase is done and no review row already exists for that phase. When those conditions are met, it flips the initiative to reviewing, records a session event, and posts to [[palantir]]. It never raises errors and is best-effort by design.\n\nThe name \"Initiative Review Inferer\" is unique to this droid, but it belongs to a larger reviewer family of 31 droids run by multiple agents including [[agt_001]], [[agt_002]], [[agt_003]], [[agt_008]], [[agt_011]], [[agt_012]], [[agt_013]], [[agt_020]], [[agt_023]], [[agt_025]], [[agt_027]], [[agt_028]], and [[agt_031]]. It is pure software — verified by source trace to make no Claude calls — so it has no model or Claude purpose.","namesake_json":"{\"engine\": \"software\", \"model\": null, \"claude_purpose\": null, \"family\": \"reviewer\", \"family_size\": 31, \"is_unique\": true}","profile_pic_path":"avatars/droid/el-ri-01.png","source_hash":"3726e5ef482b3ea7d8c22be2f1bba83b80cf8af039b6424afb789aa07a847df0","status":"being_built","last_generated_at":"2026-08-05 00:48:35","created_at":"2026-07-26 03:36:26","updated_at":"2026-08-05 03:39:32"},"facts":{"id":"el-ri-01","name":"Initiative Review Inferer","machine_name":"EL-RI-01","owner":"agt_011","function":"Infers the reviewing transition: when a plan step flips to done and all steps in its phase are done with no prior review, flips the initiative status to reviewing","process_type":"triggered","schedule":"On plan-step update (step flips to done)","process_name":"initiative_review_inference","avatar_color":"#10b981","created_for":"Elrond is accountable for the build pipelines review machinery. When a plan steps completion finishes a phase, the inference that moves the initiative into the reviewing state must be performed by a named, accountable droid rather than loose logic inside the initiatives app (Design #146 / #173, cookbook 272, CAROL-INI-867 phase 5).","purpose":"The Initiative Review Inferer infers the reviewing transition. When a plan step is marked done it re-reads the steps committed status, counts the steps in that steps phase, and if every step in the phase is done AND no initiative_reviews row exists yet for that phase it flips the initiatives status to reviewing - exactly as it ran inside the app before phase 5. It does NOT review anything itself (that is the reviewer droid sr-01); it only INFERS the reviewing flip that the Manager then reads to trigger the reviewer. Carries its own DB handle so it is self-contained.","duties":"- Triggered whenever a plan step is updated through the initiatives app plan-step endpoint, after the step status commit.\n- Re-reads the steps committed status and only proceeds when it is done.\n- Counts the phases steps and checks whether every step in the phase is done.\n- Checks for an existing review row for that phase before doing anything.\n- Flips the initiative to status reviewing only when the phase is fully done and no review exists yet.\n- Records a session_event and a Palantir post whenever it actually flips to reviewing.","constraints":"- Owns and closes its own database connections; never relies on a callers connection.\n- Runs AFTER the plan-step status commit (commit step first, then infer) to avoid a WAL write race.\n- Behavior is preserved exactly from the app (phase 5 is a relocation, not a refactor) modulo the self-contained-connection transform and re-reading the committed step status instead of the request payload.\n- Never raises; returns a structured dict and is best-effort.\n- Reached only through the initiatives apps shared shim, never imported by the app directly.\n- Does not review (that is sr-01); it only infers the reviewing flip. Does not touch the bypass book, cookbook, or initiative status rows beyond the reviewing flip the original logic performed.","status":"running","gender":"male","archetype":"reviewer","building_block":"review_initiative","service_override":null,"enabled":1,"task_key":"initiatives.review_verdict","model_free":0},"page":{"type":"droid","page_class":"main","class_label":"Main page","kind_label":"Droid","kind_gloss":"","listed":true}}