You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ROADMAP.md Horizon 1: "Write probe-derived data to the testnet contract on a schedule."
The publisher cron is live (.github/workflows/reputation-cron.yml "Publisher tick" step → POST /api/publisher/tick → runBatch under lock, verified against the deployed testnet contract). But packages/publisher/src/batch.ts reads exclusively from outcome_log (execution outcomes). The probe-derived signals the roadmap names — uptime, quote latency (p50/p95), quote drift — are computed by lib/reputation/probe.ts and stored in probe_samples, but never reach the contract. The cron currently publishes the wrong data class for this roadmap bullet.
Requirements
Extend the publisher batch to aggregate per-anchor probe-derived signals (uptime ratio, latency p50/p95, drift flag counts) over a configurable window from the probe_samples store.
Include these signals in the on-chain payload alongside execution outcomes; version the payload shape so the consumer crate can distinguish.
Context
ROADMAP.md Horizon 1: "Write probe-derived data to the testnet contract on a schedule."
The publisher cron is live (
.github/workflows/reputation-cron.yml"Publisher tick" step →POST /api/publisher/tick→runBatchunder lock, verified against the deployed testnet contract). Butpackages/publisher/src/batch.tsreads exclusively fromoutcome_log(execution outcomes). The probe-derived signals the roadmap names — uptime, quote latency (p50/p95), quote drift — are computed bylib/reputation/probe.tsand stored inprobe_samples, but never reach the contract. The cron currently publishes the wrong data class for this roadmap bullet.Requirements
probe_samplesstore.Dependencies
Estimated file changes
packages/publisher/src/batch.ts,lib/reputation/store.ts(query helper if missing),packages/publishertests.Refs: ROADMAP.md line 37 (H1 bullet d). Part of the D0xx Horizon 1 workstream (new: D070).