Execution Loop Gate
Last updated: 2026-02-19
Purpose
Validate whether the execution feedback loop is healthy enough to support memory-driven policy evolution.
The gate focuses on:
- Feedback signal volume
run_idaudit linkage coverage- Active-rule freshness against recent feedback
- Negative outcome ratio drift
- Decision linkage coverage for
tools_feedback - Multi-agent governance coverage and cross-tenant policy drift
Command
bash
cd /Users/lucio/Desktop/Aionis
npm run -s job:execution-loop-gate -- --scope defaultStrict warning mode (returns exit code 2 when warning checks fail):
bash
npm run -s job:execution-loop-gate -- --scope default --strict-warningsKey Options
--window-hours <n>: rolling window (default24)--min-feedback-events <n>: minimum feedback rows in window (default10)--min-distinct-runs <n>: minimum distinctrun_id(default3)--min-run-id-coverage <ratio>: minimumrun_idcoverage (default0.8)--max-negative-ratio <ratio>: upper bound for negative outcomes (default0.35)--min-active-feedback-coverage <ratio>: minimum active-rule feedback freshness ratio (default0.6)--max-stale-active-rules <n>: max active rules without recent feedback (default5)--min-decision-link-coverage <ratio>: minimum ratio oftools_feedbackrows that resolve to persisted decisions (default0.95)--min-recall-identity-coverage <ratio>: minimum ratio of recall audits carrying consumer identity (default0.8)--min-private-owner-coverage <ratio>: minimum private-node owner coverage (default1.0)--cross-tenant-drift-min-feedback <n>: min feedback rows per tenant before drift comparison (default5)--max-tenant-negative-ratio-drift <ratio>: max allowed negative-ratio spread across tenants (default0.3)--max-tenant-active-rule-count-drift <n>: max active-rule count spread across tenants (default20)
Health Gate Integration
Use within health gate:
bash
npm run -s job:health-gate -- \
--run-execution-loop-gate \
--strict-warnings \
--execution-loop-arg --window-hours \
--execution-loop-arg 24Note:
- When
--strict-warningsis enabled inhealth-gate, the execution loop gate is also run in strict warning mode. - Without strict mode, this check is informative (non-blocking) unless execution fails at runtime.
Output Shape
JSON contains:
metrics.feedback(total,distinct_runs,run_id_coverage, outcome counts)metrics.rules(active_total,active_with_recent_feedback,stale_active_rules)metrics.decision(tools_feedback_total,linked_decision_id,decision_link_coverage) when provenance schema is presentmetrics.governance.recall_audit(identity coverage + distinct consumers)metrics.governance.lane_boundary(private owner coverage + shared/private totals)metrics.governance.tenant_policy_drift(cross-tenant active-rule and negative-ratio drift)checks[]with thresholds and pass/failsummary.failed_warnings/summary.failed_errors
Operational Interpretation
- Low feedback volume: integration may not be emitting enough outcomes.
- Low
run_idcoverage: auditability gap between execution and feedback. - High stale active-rule count: active policy may drift without current evidence.
- High negative ratio: current policy injection may be unstable for production traffic.