evokit

v0.1.11
io.github.edsml-jz2321/dsh-evokit Checked 3 days ago Published 12 days ago

Measured self-improvement: paired experiments, noise-aware gates and sealed confirmation.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scenario_describe

Describe the bound scenario: epoch id, editable file globs, frozen scorer version, task counts per split, primer, budgets, replay support and readiness flags. Call it first to learn what may be edited and how large each split is; use version_current for the current version id and ledger_history for lineage. Read-only; never reveals confirmation or final task ids. Returns one JSON object.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…

version_current

Return the id of the current base version: the latest adopted or reverted-to snapshot, or the initial snapshot before any adoption. Use it to get the parent for version_create, run_launch and noise_estimate; use ledger_history for the whole base chain. Read-only. Returns {"version": "<sha256>"}.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…

version_create

Store a candidate version of the editable files, either by snapshotting a complete scenario checkout or by applying a unified patch to a parent version. Use it after editing and before proposal_create and run_launch; use version_diff to review a stored change. Writes content-addressed snapshot files and appends a ledger event; it never adopts or changes the current base. Rejects edits outside the editable globs, unsafe paths and patches that do not apply. Returns {version, parent, changed}; identical content always gets the same version id.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…
directorystringPath of a complete scenario checkout on the server host to snapshot. Defaults to the original scenario directory. Do not combine with patch.
parentstringBase version of the change: 64-character lowercase SHA-256 version id, as returned by version_create. Default: current base.
patchstringUnified Git-style patch text, as printed by `git diff`, applied to a temporary checkout of parent. Do not combine with directory.

version_diff

Show the unified text diff of editable files between two stored versions, after verifying both snapshots' content digests. Use it to review a candidate before proposing or gating; use compare_paired to compare measured outcomes instead. Read-only. Returns {parent, child, changed, diff}; binary files are named, not diffed.

ParameterTypeDescription
child *stringVersion after the change: 64-character lowercase SHA-256 version id, as returned by version_create.
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…
parent *stringVersion before the change: 64-character lowercase SHA-256 version id, as returned by version_create.

run_launch

Start or resume one arm: a run of one version over the tasks of the diagnosis or selection split, scored by the scenario. Use it to measure a single version; use run_interleaved to run a parent and candidates side by side. Detached by default: it returns at once while a background worker runs, so poll run_status, then read run_results. Writes run records, results and traces, and costs whatever the scenario's tasks cost (for example model calls). Resuming a run_id with the same parameters only fills missing task slots; changed parameters are refused. Returns the run status object.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…
version *stringVersion to run: 64-character lowercase SHA-256 version id, as returned by version_create.
repeatsintegerTimes each task runs, at least 1. Default 1.
run_idstringArm name. Omit for a new random id; pass an existing id with identical parameters to resume that arm. Run ids are 1 to 80 letters, digits, `_` or `-`, starting with a letter or digit.
smokebooleanRun only the first two tasks of the split as a quick check. Smoke arms cannot be gated or used for noise. Default false.
splitstringTask split: `diagnosis` to explore and read failures, `selection` for gate evidence. Default `selection`. Confirmation and final splits are never available.
waitbooleanBlock until every task finishes instead of returning at once. Default false.
workersintegerParallel task workers, 1 to 256. Default 1.

run_interleaved

Run two or more versions as matched arms in rotating task blocks, so each arm sees every task at nearly the same time. Use it for parent-versus-candidate measurements when latency or cost may drift; use run_launch for one arm or a detached run. Blocks until all arms finish. Writes run records, results and traces, and costs whatever the scenario's tasks cost. Repeating the call with identical arms and parameters resumes and skips committed slots; a new plan needs fresh run ids. Returns each arm's run status, keyed by run id.

ParameterTypeDescription
arms *objectMap of new run id to version id, at least two entries, for example {"parent-1": "<sha256>", "child-1": "<sha256>"}. Run ids are 1 to 80 letters, digits, `_` or `-`, starting with a letter or digit.
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…
repeatsintegerTimes each task runs, at least 1. Default 1.
seedintegerInteger that rotates which arm starts first in each block. Default 0.
splitstringTask split: `diagnosis` to explore and read failures, `selection` for gate evidence. Default `selection`. Confirmation and final splits are never available.
workersintegerParallel task workers, 1 to 256. Default 4.

run_status

Report one arm's progress: state (pending, running, completed or interrupted), completed and expected result counts, and execution errors. Use it to poll a detached run_launch; use run_results for the task rows. Read-only. Returns {run_id, version, split, state, completed, expected, errors}.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…
run_id *stringRun id, as returned by run_launch or named in run_interleaved.

run_results

List one arm's committed task results: task_id, group, repeat, outcome, reason, cost, seconds, output and archived trace path. Use it for raw evidence; use failure_cards for failures only and compare_paired for parent-versus-child deltas. Read-only; partial while the arm is running. Returns an array in stable order.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…
run_id *stringRun id of a diagnosis or selection arm.
limitintegerMaximum items to return, at least 1. Omit to return all remaining items.
offsetintegerZero-based index of the first item to return. Default 0.

compare_paired

Compare two complete arms task by task: fixes, breaks, net score change, per-task deltas, per-group tables, and cost and latency ratios. Use it to judge a candidate against its parent; use gate_check to record a decision with noise and budget checks. Both arms must be complete, error-free and match on tasks, split, repeats and anchors. Read-only. Returns the comparison object.

ParameterTypeDescription
aggregation *stringHow repeats combine per task: `majority` for pass/fail outcomes (ties count as failure) or `mean` for numeric scores.
child_run *stringRun id of the candidate arm.
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…
parent_run *stringRun id of the parent (incumbent) arm.

noise_estimate

Measure the current base's run-to-run noise from one repeated arm and record the estimate that gate_check requires. Use it once per base, on a complete, non-smoke selection arm of the current version with at least two repeats; use compare_paired for candidate effects. Appends a noise record to the ledger. Returns noise_id, per-task flip rates, net spread, threshold and method; pass noise_id to gate_check.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…
run_id *stringRun id of a complete selection arm of the current base.

failure_cards

List failure cards for one arm: every task with outcome below 1, or, with parent_run and change, the tasks this arm fixed or broke against the parent. Use it to diagnose before proposing; use run_results for all rows, and failures_similar (HB workspaces) to search failures across runs. A card has task_id, group, outcome, reason, payload summary, output and trace pointer unless the scenario renders its own. Also saves the cards to the record store for later search, overwriting identical entries; nothing else changes. Returns an array.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…
run_id *stringRun id of the arm to read.
aggregationstringRepeat aggregation for the paired comparison: `mean` (default) or `majority`.
changestring`fix` for tasks that improved against parent_run, `break` for tasks that got worse. Omit to list all failures.
detailsbooleanInclude payload summaries, outputs and trace pointers. False returns a compact index of task_id, group, outcome and reason; start with false on large runs. Default true.
groupstringReturn only cards of this exact task group.
limitintegerMaximum items to return, at least 1. Omit to return all remaining items.
offsetintegerZero-based index of the first item to return. Default 0.
parent_runstringRun id of the parent arm to pair with; required by change.

proposal_create

Record a falsifiable proposal for a candidate version before testing it: targets, mechanism, predicted effect, falsification criterion and prior attempt. Use it after version_create and before running and gating the candidate; use proposal_list to read earlier proposals. Checks that targets are editable and cover every changed file, pins the current base as parent and snapshots the improver playbook. Appends to the ledger; runs and adopts nothing. Returns the stored proposal with its new id.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…
proposal *objectProposal object with exactly five fields: targets, mechanism, predicted_effect, falsification and prior {attempt, difference}.
version *stringCandidate version, different from the current base: 64-character lowercase SHA-256 version id, as returned by version_create.

proposal_list

List every recorded proposal in creation order, rejected ones included, with id, parent, version, prediction, playbook version and a not_confirmed flag. Use it to find a proposal_id for gate_check or a prior attempt; use ledger_history for adoptions and the base chain. Read-only. Returns an array.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…

gate_check

Judge whether a proposal's candidate may be adopted and record the verdict. It checks frozen anchors, that the proposal's parent is still the current base, an editable-only diff, a scan for task-specific literals, complete non-smoke selection arms of parent and candidate, cost and latency budgets, scenario quality guards and the recorded noise threshold. Use it after compare_paired looks promising; use ledger_adopt (operator profile) to act on a passing verdict, because this tool never changes the current base. Appends one verdict record per call. Returns {id, verdict, reasons, threshold, comp…

ParameterTypeDescription
aggregation *stringHow repeats combine per task: `majority` for pass/fail outcomes (ties count as failure) or `mean` for numeric scores.
child_run *stringRun id of a complete, non-smoke selection arm of the proposal's candidate, on the same tasks and repeats.
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…
noise_id *stringnoise_id from noise_estimate on this parent in this epoch.
parent_run *stringRun id of a complete, non-smoke selection arm of the proposal's parent.
proposal_id *stringProposal id from proposal_create for the candidate.
genericbooleanAttest that the mechanism generalizes beyond the observed tasks. Any passing verdict requires true. Default false.
rationalestringWhy the change is generic and safe. Required for an adopt-no-harm verdict. Default empty.

ledger_history

Read the public lineage: current base, base chain (initial version plus every adoption and revert), queued runner-ups and the append-only public event list. Use it to audit what was adopted and when; use meta_metrics for aggregate rates. Read-only; private confirmation and final events are hidden. Returns {current, base_chain, runner_ups, events}.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…

meta_metrics

Report aggregate improvement metrics: proposal and adoption counts, acceptance rate, mean absolute prediction error, gain per cost unit, total experiment cost and confirmation measurement counts. Use it to judge how well proposals predict and pay off; use ledger_history for individual events. Read-only. Returns one JSON object.

ParameterTypeDescription
config *stringPath of the scenario YAML file on the server host, absolute or relative to the server's working directory, for example `scenario.yaml`. It selects the workspace; a server started with --config rejects…