- Reset master to upstream/main (16,697 commits) - Overlay 2,271 local-only files (skills, tools, workspace, configs, apps) - Restore IDENTITY.md and USER.md templates - Build verified, gateway running, Discord working Co-Authored-By: Claude Opus 4.6 <[email protected]>
2.5 KiB
2.5 KiB
EVENTS.md — Event Format and Channels
All communication between system components happens through Redis using structured JSON events.
Universal Event Schema
{
"id": "evt-20260204-00123",
"source": "gpu-box",
"type": "system.alert",
"timestamp": 1738678200,
"severity": "medium",
"payload": {}
}
Channels
james.events.system
Emitted by Watchers.
Examples:
container_downvram_highdisk_fullservice_unhealthy
james.events.mail
Emitted by Mail Agent.
Examples:
important_emailinvoice_detectedsecurity_notice
james.decisions
Emitted by Analyst.
Contains priority, confidence, and suggested actions.
james.actions
Emitted after human or policy approval.
Consumed by Action Router.
james.audit
Immutable log of:
- Events
- Decisions
- Approvals
- Executed actions
Severity Levels
low→ informationalmedium→ notablehigh→ urgentcritical→ immediate attention
Event Types
System Events
system.metricscontainer.stoppedcontainer.restarteddisk.high_usagecpu.high_usagememory.high_usagegpu.vram_highservice.unhealthybackup.failed
Mail Events
mail.action_requiredmail.invoicemail.security_alertmail.newsletter
Decision Events
decision.action_suggesteddecision.approval_requireddecision.denieddecision.no_action
Action Events
action.executedaction.failedaction.pending_approvalaction.allowedaction.denied
Decision Payload (example)
{
"summary": "disk.high_usage on gpu-box",
"priority": "medium",
"confidence": 0.72,
"suggested_actions": [
{
"action": "refresh_status",
"target": "gpu-box",
"reason": "disk.high_usage threshold exceeded"
}
],
"event": {
"id": "evt-20260204-00123",
"type": "disk.high_usage",
"source": "gpu-box",
"severity": "medium"
}
}
Action Payload (example)
{
"decision_id": "evt-20260204-04567",
"decision_event": {
"id": "evt-20260204-00123",
"type": "disk.high_usage",
"source": "gpu-box",
"severity": "medium"
},
"actions": [
{
"action": "refresh_status",
"target": "gpu-box",
"reason": "disk.high_usage threshold exceeded",
"classification": "internal",
"decision_id": null,
"decision_event_id": "evt-20260204-00123",
"requested_by": "gpu-box",
"status": "allowed"
}
]
}