Evo parallel determinism

From OpenLAIR/OpenSkill · View interactive version

Evo parallel determinism is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. Provides patterns and utilities to ensure parallel TF-IDF results are identical to the sequential baseline, addressing floating-point ordering, tie-breaking, and pickling compatibility.

How to use this skill

Skill file

Parallel Determinism

Overview

Ensures parallel results match sequential exactly by handling:

Key Principles

  1. FP Ordering: Iterate query terms in same order as sequential (dict insertion order)
  2. Tie-breaking: Sort by (-score, doc_id) for deterministic ordering
  3. Pickling: Define NamedTuples/dataclasses at module level
  4. Context: Use 'fork' on Linux for performance (copy-on-write)

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-parallel-determinism/scripts')
from utils import (
    deterministic_score_accumulation,
    stable_sort_results,
    get_safe_mp_context
)

Functions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.