Skip to main content

Cost Federation

Skill Verified Active

Consumer-side wiring for ADR-097 Phase 3 federation_spend events — per-peer rolling windows + suspension-threshold check

Purpose

To provide essential consumer-side monitoring for federation spend events, enabling the tracking of per-peer usage and facilitating automated suspension of peers exceeding configured thresholds, in preparation for ADR-097 Phase 3.

Features

  • Consumer-side wiring for federation spend events
  • Per-peer rolling window aggregation (1h, 24h, 7d)
  • Suspension threshold check for peers
  • Handles interim 'no events found' state cleanly
  • Configurable output format (JSON/Markdown) and namespace

Use Cases

  • Establish baseline spend before opening federation traffic to a new peer.
  • Periodically monitor per-peer spend across defined time windows.
  • Verify suspension reasoning after ADR-097 Phase 2/3 lands.
  • Integrate with existing cost-tracking systems by processing event data.

Non-Goals

  • Acting as the producer of federation spend events.
  • Managing or directly enforcing peer suspension (it reports the check).
  • Processing events from namespaces other than the configured one.
  • Providing real-time alerting beyond periodic script execution.

Code Execution

  • info:LoggingThe script outputs results to stdout/stderr, which is captured by the agent. Explicit audit logging to a local file is not implemented but is not strictly necessary for this read-only skill.

Installation

First, add the marketplace

/plugin marketplace add ruvnet/ruflo
/plugin install ruflo-cost-tracker@ruflo

Quality Score

Verified
98 /100
Analyzed about 22 hours ago

Trust Signals

Last commitabout 24 hours ago
Stars50.2k
LicenseMIT
Status
View Source

© 2025 SkillRepo · Find the right skill, skip the noise.