Principle:AMAP ML SkillClaw Validation Job Storage
| 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