ruvnet/ruflo · error
Audit service not found
Error message
Audit service not found
What it means
The 'federation audit' CLI handler found no audit service in the initialized plugin context. The plugin is up but the audit component is absent (not provided by this build or failed to register), so the audit command cannot execute.
Source
Thrown at v3/@claude-flow/plugin-agent-federation/src/cli-commands.ts:173
console.log(`Known Peers: ${status.knownPeers}`);
console.log(`Healthy: ${status.healthy}`);
}
},
},
{
name: 'federation audit',
description: 'Query and export federation audit logs',
options: [
{ name: 'compliance', description: 'Compliance mode filter (hipaa, soc2, gdpr)', type: 'string' },
{ name: 'since', description: 'ISO 8601 start date', type: 'string' },
{ name: 'export', short: 'e', description: 'Export format (json, csv, ndjson)', type: 'string' },
{ name: 'limit', short: 'l', description: 'Maximum results', type: 'number', default: 50 },
],
handler: async (args) => {
const context = getContext();
if (!context) throw new Error('Plugin not initialized');
const audit = context.services.get<import('./domain/services/audit-service.js').AuditService>('federation:audit');
if (!audit) throw new Error('Audit service not found');
const exportFormat = args['export'] as string | undefined;
const query = {
since: args['since'] ? new Date(args['since'] as string) : undefined,
limit: args['limit'] as number,
};
if (exportFormat) {
const output = await audit.export(query, exportFormat as any);
console.log(output);
} else {
const events = await audit.query(query);
console.log(JSON.stringify(events, null, 2));
}
},
},
{
name: 'federation trust elevate',View on GitHub (pinned to fa13ee4ad6)
Solutions
- Register/inject the audit service during plugin initialization.
- Verify the service key used for lookup matches the registration key.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: A CLI command requests the audit service but it is not registered in the plugin's service container.
Common situations: Audit service disabled or not wired during plugin setup, or wrong service key used.
AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18).
Data as JSON: /api/errors/8a05f9c5665f7421.
Report an issue: GitHub.