Skip to content

feat: integrate RuForecast predictive advisory - #7

Merged
ruvnet merged 1 commit into
mainfrom
feat/ruforecast-advisory
Sep 2, 2026
Merged

ruvnet merged 1 commit into
mainfrom
feat/ruforecast-advisory

Conversation

@ruvnet

@ruvnet ruvnet commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Outcome

Integrates RuForecast into Ruv Drone as an optional, baseline-first predictive advisory with a hard flight-authority boundary.

The feature observes only bounded local battery, link-quality, and mission-progress history. It emits receipt-bound, expiring forecasts and payload-free metrics. Shadow is the default. An explicit canary can only reduce eligibility for new cooperative work.

Architecture

  • Exact pin: ruvnet/RuForecast@59173b55ef51a122db222c9902aeae521713d0a5
  • Dependency: ruforecast-core only; no Burn/model/training runtime
  • Fixed-capacity queue: 128 rows by default, hard validated ceiling
  • Input validation: finite values, physical ranges, strictly increasing timestamps
  • Output validation: RuForecast typed contract, payload-integrity receipt, expiry
  • Rollout: Disabled / Shadow / CanaryReduceOnly
  • Authority: no task creation, position/velocity forecast, topology write, actuation, geofence, collision-avoidance, or fail-safe mutation
  • Optimization: cadence limiting avoids series allocation, canonical hashing, and forecast work on every control tick

ADR-174, operator guide, STRIDE threat model, benchmark protocol, README, and CI matrix are included.

Honest model boundary

RuForecast reports that no learned configuration has reliably beaten last-value and seasonal-naive out of sample. This PR therefore integrates the deterministic baseline and promotion plumbing without claiming learned predictive lift. Learned activation and a future signed LatentMesh forecast summary are tracked in #6.

Validation

  • cargo test --locked --all-targets: 136 passed
  • cargo test --locked --features ruforecast --all-targets: 143 passed
  • cargo test --locked --features latentmesh,ruforecast --all-targets: 198 passed
  • cargo test --locked --no-default-features --all-targets: 136 passed
  • cargo clippy --locked --features latentmesh,ruforecast --all-targets -- -D warnings: passed
  • Deep/dependency/secrets/STRIDE scans with pinned Ruflo 3.25.6: 0 findings
  • cargo audit: 0 vulnerabilities; one allowed, pre-existing unmaintained paste 1.0.15 warning via nalgebra → simba

Benchmarks

Xeon Platinum 8573C, rustc 1.98.0, optimized Criterion profile:

Operation 95% confidence interval
Cadence-limited 128-row observation 183.96–235.14 ns
128-row baseline refresh 11.385–12.003 µs
Reduce-only policy query 690.74–764.99 ps

The sub-nanosecond query is a microbenchmark lower bound, not end-to-end latency. Cadence limiting made the common observation path roughly 50× cheaper than a refresh on this runner.

Rollback

Set rollout to Disabled or build without ruforecast. Existing default behavior and onboard safety remain unchanged.

@ruvnet
ruvnet merged commit eafd7e5 into main Sep 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant