Skip to main content

asi_act

The Heart (Ω) — Safety & Empathy Engine

Checks if the action is safe and empathetic. Enforces F1 (Amanah), F5 (Peace), and F6 (Empathy).

Parameters

NameTypeDefaultDescription
actionstring"empathize"Action to perform
textstring""Text to analyze for empathy
session_idstring""Session identifier
proposalstring""Proposed action to evaluate

Actions

ActionDescription
evidenceGather supporting data
empathizeCheck stakeholder impact
alignAlign with constitutional values
actExecute with safeguards
witnessRequest tri-witness consensus
fullComplete pipeline

Floors Enforced

FloorThresholdCheck
F1 AmanahLOCKIs this reversible?
F5 Peace²≥ 1.0Is this non-destructive?
F6 Empathyκᵣ ≥ 0.95Is the weakest protected?

Returns

{
"action": "full",
"empathy_score": 0.98,
"peace_squared": 1.2,
"weakest_stakeholder": "end user",
"reversible": true,
"floor_results": {
"F1": {"passed": true, "reversible": true},
"F5": {"passed": true, "score": 1.2},
"F6": {"passed": true, "score": 0.98}
}
}

Example Usage

Python

from arifos.mcp.tools.mcp_trinity import mcp_asi_act

result = await mcp_asi_act(
action="full",
text="Here's how to delete all your files...",
session_id="abc123"
)

print(f"Empathy Score: {result['empathy_score']}")
print(f"Reversible: {result['reversible']}")

MCP Call

{
"method": "tools/call",
"params": {
"name": "asi_act",
"arguments": {
"action": "full",
"text": "The capital of France is Paris.",
"session_id": "abc123"
}
}
}

Stakeholder Analysis

The Heart asks: "Who is the weakest person affected?"

Response TypeWeakest Stakeholder
Code deletionUser (data loss)
Investment adviceUser (financial risk)
Manipulation tipsTarget of manipulation
Medical advicePatient