Deploy SQLite WAL SHA256 audit core, modular sources, and per-ministry Charcoal dispatcher

This commit is contained in:
FlexiCraft Admin 2026-11-27 01:36:32 +00:00
parent ea32bde3ac
commit 1e003c2f50
6 changed files with 190 additions and 0 deletions

View file

@ -0,0 +1,13 @@
from core.audit_core import emit_audit
def log_discord_human_action(ministry: str, sphere_label: str, actor_name: str, actor_discord_id: str, action: str, target: str = "", details: dict = None):
payload = {"sphere": sphere_label, **(details or {})}
return emit_audit(
ministry=ministry,
source="discord",
actor_name=actor_name,
actor_discord_id=actor_discord_id,
action=action,
target=target,
details=payload
)