sampling-policy

Implement performance-based sampling logic to reduce verification latency in the Verify harness.

Updated May 11, 2026
One-click install
npx skills add https://github.com/AesopScott/mojo --skill sampling-policy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sampling-policy
Source: https://github.com/AesopScott/mojo/tree/main/harnesses/skills/sampling-policy
Command: npx skills add https://github.com/AesopScott/mojo --skill sampling-policy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses performance bottlenecks in the Verify harness by enabling sampled verification, which reduces latency and resource consumption while maintaining necessary trust boundaries.

Core Features & Use Cases

  • Performance Tuning: Switch between every-call verification and sampled verification to optimize throughput.
  • Risk-Based Verification: Apply rigorous checks only where risk dictates, allowing for faster processing of low-risk operations.
  • Use Case: When a high-volume API route is experiencing latency due to exhaustive verification, use this Skill to implement a sampling policy that verifies a statistically significant subset of requests instead of every single call.

Quick Start

Use the sampling-policy skill to define a new verification threshold for the current performance-constrained harness.

Frequently Asked Questions about sampling-policy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce verification latency in high-throughput systems?

To reduce verification latency in high-throughput systems, implement sampled verification within the Verify harness. This approach verifies a statistically significant subset of requests instead of every single call, significantly lowering operational bottlenecks and resource consumption.

What is sampled verification and when do I need it for API performance optimization?

Sampled verification is a performance tuning technique that switches from every-call verification to checking a subset of requests. You need it for API performance optimization when high-volume routes experience latency due to exhaustive full-call verification and require faster processing of low-risk operations.

How do I configure a sampling policy for a high-volume API route?

To configure a sampling policy for a high-volume API route, define a new verification threshold within your performance-constrained harness. This setup requires configuring sampling rates, setting boundary definitions, and implementing observability hooks to maintain trust boundaries during throughput optimization.

Does sampled verification work for regression testing and maintaining safety boundaries?

Yes, sampled verification works for regression testing by applying rigorous checks only where risk dictates. By configuring boundary definitions and observability hooks, the sampling policy ensures that safety and regression testing are maintained while processing low-risk operations at a faster rate.

What are the limitations of using sampled verification instead of every-call verification?

The main limitation of sampled verification is that it skips full-call verification on a subset of requests, which requires careful boundary definitions to avoid missing critical regressions. It should only be used when exhaustive verification creates operational bottlenecks and risk-based checks are viable.