Skip to main content

Module spec

Module spec 

Source
Expand description

Validation spec model (parsed from the TOML the agent points the harness at).

Mirrors tools/scx_forge_agent/spec.toml: [scheduler] (what to build and run), [system] (host/runtime settings), [ai] (model selection), [tracing] (optional perf profiling, event list, and size cap), [workload] (the load to apply, the numeric metric to emit, and how many times to repeat the measurement), and [goal] (what the number means, which direction is better, and the accept threshold). Defaults match the previous Python harness’s .get(...) fallbacks.

StructsΒ§

Ai
Goal
Scheduler
Spec
System
Tracing
Workload

ConstantsΒ§

METRIC_NAME

FunctionsΒ§

default_accept_threshold_stddev πŸ”’
default_build_fix_attempts πŸ”’
default_direction πŸ”’
default_duration πŸ”’
default_max_tool_iterations πŸ”’
default_max_trace_size πŸ”’
default_max_turn_seconds πŸ”’
default_profile πŸ”’
default_rounds πŸ”’
default_runs πŸ”’
default_runtime_fix_attempts πŸ”’
default_stats_interval πŸ”’
default_trace_events πŸ”’
default_true πŸ”’
default_warmup_time πŸ”’
parse_size πŸ”’
Parse a size string into bytes: a plain integer, or an integer with a binary suffix K/M/G (case-insensitive, optional trailing B). 1 K = 1024.