Skip to content

Add missing stub fields and methods for validator compatibility#1

Merged
ns-fusion merged 1 commit intomainfrom
fix/add-sla-metrics-from-latency-samples
Mar 17, 2026
Merged

Add missing stub fields and methods for validator compatibility#1
ns-fusion merged 1 commit intomainfrom
fix/add-sla-metrics-from-latency-samples

Conversation

@ns-fusion
Copy link
Contributor

The validator code expects certain fields and methods that were missing from the stubs:

  1. SLAMetrics.from_latency_samples() - Creates metrics from raw latency measurements with P95 calculation

  2. Task dataclass - Added fields:

    • validator_hotkey: str
    • path: List[str]
    • created_at: int
    • Changed task_id/chunk_hash/canary to bytes type
    • Renamed deadline_us to deadline
  3. BandwidthChallenge dataclass - Added fields:

    • path: List[str]
    • expected_hops: int

The validator code expects certain fields and methods that were missing
from the stubs:

1. SLAMetrics.from_latency_samples() - Creates metrics from raw latency
   measurements with P95 calculation

2. Task dataclass - Added fields:
   - validator_hotkey: str
   - path: List[str]
   - created_at: int
   - Changed task_id/chunk_hash/canary to bytes type
   - Renamed deadline_us to deadline

3. BandwidthChallenge dataclass - Added fields:
   - path: List[str]
   - expected_hops: int
@ns-fusion ns-fusion merged commit fec91e6 into main Mar 17, 2026
2 of 3 checks 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