listing = await harness.toolset.call("harness_mailbox_list", {})
notice_id = listing["pending"][0]["id"]
read = await harness.toolset.call("harness_mailbox_read", {"notice_id": notice_id})
trace_id = read["notice"]["flagged_traces"][0]
await harness.toolset.call("harness_trace_inspect", {"trace_id": trace_id})
await harness.toolset.call("harness_journal", {"limit": 10})
added = await harness.toolset.call("harness_rule_add", {
"rule": "Never call the payment tool twice without verifying the transaction status.",
"rationale": "Repeated identical payment call flagged by the reliability eval.",
"notice_id": notice_id, # provenance + auto-derived retrieval tags
"metric": "agent_reliability",
})
# added["rule"]["status"] == "candidate" — validation happens automatically
await harness.toolset.call("harness_mailbox_ack", {
"notice_id": notice_id,
"rule_id": added["rule"]["id"],
"note": "mitigated",
})