The universal consumer from ADR 0046 — no privilege, just a module that
consumes '#' and writes each event to an append-only trail. Its whole code
is on('#', record); the manifest declares consumes:['#'] and a log dir.
Records module.*, mesh.* and node.* events alike (ADR 0047's namespace).
Type-checks against @novox/mesh-sdk; the handler test records a module
event and a node event with their metadata; the manifest parses against
the consumes-enabled schema.
Claude-Session: https://claude.ai/code/session_01LrgweAeERJYBg88c5cKDzF
16 lines
218 B
JSON
16 lines
218 B
JSON
{
|
|
"module": "audit-logger",
|
|
"version": "1",
|
|
"consumes": [
|
|
"#"
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "log",
|
|
"type": "directory",
|
|
"path": "/var/lib/audit-logger",
|
|
"mode": "0700"
|
|
}
|
|
]
|
|
}
|