{"wiki":null,"facts":{"id":"bg-s1","name":"Budget Gate","machine_name":"BG-S1","owner":"agt_011","function":"Gates next-task spawn by budget + cycle caps (stub, Gap 14)","process_type":"triggered","schedule":"On demand","process_name":"budget_gate","avatar_color":"#3b82f6","created_for":"Elrond must keep every initiative within its budget envelope and prevent endless review cycles. Specifically, he must control whether the next task can start. BG-S1 is his automated enforcer for that checkpoint.","purpose":"BG-S1 watches the budget and review-cycle meters for Elrond. Before the next task can start, the droid checks whether there's still budget room and available review slots. If yes, it opens the gate. If no, it escalates to Orion. This keeps Elrond from needing to manually verify every task start.","duties":"- Reads initiative budget and review-cycle limits\n- Sums up all spending and counts completed review phases\n- Decides if gate is open (proceed) or closed (limits hit)\n- Escalates to Orion when gate closes\n- Logs gate status to the activity log","constraints":"- Does not decide to continue, re-sequence, or close the initiative; only gates task spawning\n- Does not modify budget or cycle limits; only enforces them\n- Does not spawn tasks itself or handle task replanning (Merlin's domain)\n- Escalates to Orion after 3 database read failures","status":"running","gender":"male","archetype":"gate","building_block":"execute_step","service_override":null}}