{"service":"HALOWERK govwerk","endpoint":"/v1/vote-buying-detect","method":"POST","content_type":"application/json","inputSchema":{"type":"object","required":["observations"],"additionalProperties":false,"properties":{"observations":{"type":"array","minItems":3,"maxItems":10000,"items":{"type":"object","required":["voter_id","choice","associated_transfer_amount","transfer_age_hours","repeated_counterparty_count"],"additionalProperties":false,"properties":{"voter_id":{"type":"string","minLength":1,"maxLength":128},"choice":{"type":"string","enum":["for","against","abstain"]},"associated_transfer_amount":{"type":"number","minimum":0,"maximum":1000000000000000,"description":"Caller-linked transfer amount in one consistent unit."},"transfer_age_hours":{"type":"number","minimum":0,"maximum":8760,"description":"Hours between transfer and vote."},"repeated_counterparty_count":{"type":"integer","minimum":0,"maximum":100000,"description":"Prior linked transfers with the same counterparty."}}}},"flag_threshold":{"type":"number","minimum":0,"maximum":1,"description":"Risk-score threshold used only for triage."}}},"requestExample":{"observations":[{"voter_id":"voter-1","choice":"for","associated_transfer_amount":12,"transfer_age_hours":240,"repeated_counterparty_count":0},{"voter_id":"voter-2","choice":"against","associated_transfer_amount":10,"transfer_age_hours":180,"repeated_counterparty_count":1},{"voter_id":"voter-3","choice":"for","associated_transfer_amount":900,"transfer_age_hours":2,"repeated_counterparty_count":7}],"flag_threshold":0.7},"operations":[{"method":"POST","inputSchema":{"type":"object","required":["observations"],"additionalProperties":false,"properties":{"observations":{"type":"array","minItems":3,"maxItems":10000,"items":{"type":"object","required":["voter_id","choice","associated_transfer_amount","transfer_age_hours","repeated_counterparty_count"],"additionalProperties":false,"properties":{"voter_id":{"type":"string","minLength":1,"maxLength":128},"choice":{"type":"string","enum":["for","against","abstain"]},"associated_transfer_amount":{"type":"number","minimum":0,"maximum":1000000000000000,"description":"Caller-linked transfer amount in one consistent unit."},"transfer_age_hours":{"type":"number","minimum":0,"maximum":8760,"description":"Hours between transfer and vote."},"repeated_counterparty_count":{"type":"integer","minimum":0,"maximum":100000,"description":"Prior linked transfers with the same counterparty."}}}},"flag_threshold":{"type":"number","minimum":0,"maximum":1,"description":"Risk-score threshold used only for triage."}}},"requestExample":{"observations":[{"voter_id":"voter-1","choice":"for","associated_transfer_amount":12,"transfer_age_hours":240,"repeated_counterparty_count":0},{"voter_id":"voter-2","choice":"against","associated_transfer_amount":10,"transfer_age_hours":180,"repeated_counterparty_count":1},{"voter_id":"voter-3","choice":"for","associated_transfer_amount":900,"transfer_age_hours":2,"repeated_counterparty_count":7}],"flag_threshold":0.7}}],"example_request":{"observations":[{"voter_id":"voter-1","choice":"for","associated_transfer_amount":12,"transfer_age_hours":240,"repeated_counterparty_count":0},{"voter_id":"voter-2","choice":"against","associated_transfer_amount":10,"transfer_age_hours":180,"repeated_counterparty_count":1},{"voter_id":"voter-3","choice":"for","associated_transfer_amount":900,"transfer_age_hours":2,"repeated_counterparty_count":7}],"flag_threshold":0.7},"serviceName":"HALOWERK govwerk","tags":["iot","governance","anomaly"],"outputSchema":{"type":"object","required":["method"],"properties":{"method":{"type":"string"}},"additionalProperties":true},"outputExample":{"flag_threshold":0.7,"cohort_median_positive_transfer":12,"flagged_voter_ids":["voter-3"],"assessments":[{"voter_id":"voter-1","choice":"for","risk_score":0.130079,"flagged_for_review":false,"components":{"cohort_relative_size":0.289065,"within_seven_days":0,"repeated_counterparty":0}},{"voter_id":"voter-2","choice":"against","risk_score":0.15375,"flagged_for_review":false,"components":{"cohort_relative_size":0.252778,"within_seven_days":0,"repeated_counterparty":0.2}},{"voter_id":"voter-3","choice":"for","risk_score":0.995833,"flagged_for_review":true,"components":{"cohort_relative_size":1,"within_seven_days":0.988095,"repeated_counterparty":1}}],"interpretation":"triage_signal_only_not_evidence_of_wrongdoing","method":"transparent transfer-proximity and counterparty-repetition risk heuristic"}}