Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:AMAP ML SkillClaw Distributed Validation Publishing

From Leeroopedia
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:

publish=(Nresults≥Nrequired)∧(Napprovals≥Nrequired_approvals)∧(S¯≥Smin)∧(Nrejections≤Nmax_rej)

# 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")

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment