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 Validation Job Storage

From Leeroopedia
Knowledge Sources
Domains Distributed_Storage, Job_Queue
Last Updated 2026-10-22 00:00 GMT

Overview

A job queue storage pattern for distributed validation that persists job definitions, per-client results, and final decisions in shared object storage with deduplication and open-job querying.

Description

Validation job storage addresses the problem of coordinating distributed validation work across multiple clients through shared storage. The SkillClaw pattern uses three storage paths: `validation_jobs/` for job definitions (with candidate skill and replay cases), `validation_results/{job_id}/{user_alias}.json` for per-client results, and `validation_decisions/` for final outcomes. The `list_open_jobs` method filters out jobs that already have a decision or have already been submitted by the given user, ensuring each client only sees actionable work. Job IDs are generated from skill name + timestamp + UUID for uniqueness.

Usage

Use this principle when designing systems that need:

  • Job queues in shared object storage (no dedicated queue service)
  • Per-worker result deduplication
  • Idempotent job finalization
  • Open-job querying with exclusion logic

Theoretical Basis

The storage layout is a directory tree in object storage:

# Abstract algorithm (NOT real implementation)
# Storage paths:
#   {prefix}validation_jobs/{job_id}.json          - job definition
#   {prefix}candidate_skills/{job_id}/SKILL.md     - candidate skill
#   {prefix}validation_results/{job_id}/{user}.json - per-client result
#   {prefix}validation_decisions/{job_id}.json     - final decision

def list_open_jobs(store, user_alias):
    all_jobs = store.list_jobs()
    open_jobs = []
    for job in all_jobs:
        if store.load_decision(job.id):  # Already decided
            continue
        if store.load_result(job.id, user_alias):  # Already submitted by this user
            continue
        open_jobs.append(job)
    return open_jobs

Related Pages

Implemented By

Page Connections

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