Principle:AMAP ML SkillClaw Distributed Validation Publishing
| Knowledge Sources | |
|---|---|
| Domains | Distributed_Validation, Publishing_Gate |
| Last Updated | 2026-10-22 00:00 GMT |
Overview
A distributed publishing gate that collects validation results from multiple independent clients and publishes candidate skills only when approval count and mean score thresholds are met across the collective.
Description
Distributed validation publishing addresses the problem of making publication decisions based on distributed validation results. The SkillClaw server's `_finalize_validation_jobs` method collects all results for each job from all participating clients. A candidate is `publish_ready` when: enough clients have submitted results (`validation_required_results`), enough of those are approvals (`validation_required_approvals`), the mean score meets the threshold (`validation_min_mean_score`), and rejections are within limits (`validation_max_rejections`). If ready, the skill is uploaded via `_resolve_and_upload` and the decision is saved. If `reject_ready` (too many rejections), the candidate is rejected. Otherwise, the job stays open for more results.
Usage
Use this principle when designing systems that need:
- Aggregated decision-making from distributed validators
- Threshold-based publishing with multiple criteria
- Idempotent finalization (safe to call repeatedly)
Job lifecycle management (open → published/rejected)
Theoretical Basis
The publishing decision aggregates distributed results:
# Abstract algorithm (NOT real implementation)
async def finalize_jobs(store, upload_fn):
for job in store.list_jobs():
results = store.list_results(job.id)
approvals = [r for r in results if r.decision == "accept"]
if len(results) >= required_results:
if len(approvals) >= required_approvals:
mean_score = mean(r.score for r in approvals)
if mean_score >= min_mean_score:
upload_fn(job.candidate_skill)
store.save_decision(job.id, "published")
elif len(results) - len(approvals) >= max_rejections:
store.save_decision(job.id, "rejected")