agentfootprint
Version:
The explainable agent framework — backtrack a wrong answer to the exact context that caused it (evidence, not guesses). Built on footprintjs.
29 lines • 1.28 kB
JavaScript
;
/**
* IntegrityRecorder — forwards `agentfootprint.integrity.*` emits to the
* dispatcher.
*
* Pattern: Factory over EmitBridge (the credentialRecorder shape, exactly).
* Role: Bridges Context Integrity findings so consumers observe them via
* `agent.on('agentfootprint.integrity.context_error', …)` and
* `agent.on('agentfootprint.integrity.*', …)`.
* Emits: agentfootprint.integrity.context_error
*
* Attached WITH the domain (9.60.0) — the credential.* lesson, applied
* again: a findings channel nobody can subscribe to is decoration, which
* is the precise decay this whole family exists to prevent. Zero-cost when
* nothing fires: EmitBridge drops an event with no listener before meta.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.integrityRecorder = void 0;
const EmitBridge_js_1 = require("./EmitBridge.js");
function integrityRecorder(options) {
return new EmitBridge_js_1.EmitBridge({
id: options.id ?? 'agentfootprint.integrity-recorder',
prefix: 'agentfootprint.integrity.',
dispatcher: options.dispatcher,
getRunContext: options.getRunContext,
});
}
exports.integrityRecorder = integrityRecorder;
//# sourceMappingURL=IntegrityRecorder.js.map