Individual skill

evo-parallel-determinism

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.

tasks-evolved/parallel-tfidf-search/environment/skills/evo-parallel-determinism/SKILL.md

Read pinned source

Source commit 84ca182da055fafb6453dcec4a6defdbbfd987c1

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
Yes
Repository scan complete
No
Skill scan complete
No
Observed behavior
Local scripts
Last checked
Nov 6, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
97
Repository last updated
Sep 10, 2026
License
Apache-2.0

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Parallel Determinism

## Overview
Ensures parallel results match sequential exactly by handling:
- Floating-point accumulation order
- Tie-breaking in result sorting
- Pickling compatibility for multiprocessing
- Safe context selection (fork vs spawn)

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