fermilink.implement.state module¶
- fermilink.implement.state.append_result(path, *, iteration, commit, status, score, complete, description)[source]¶
- Parameters:
path (Path)
iteration (int)
commit (str)
status (str)
score (float | int | str)
complete (bool)
description (str)
- Return type:
None
- fermilink.implement.state.archive_worker_memory(source_path, run_dir)[source]¶
- Parameters:
source_path (Path)
run_dir (Path)
- Return type:
Path | None
- fermilink.implement.state.autogen_root(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.contract_path(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.ensure_autogen_root(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.ensure_executable(path)[source]¶
- Parameters:
path (Path)
- Return type:
None
- fermilink.implement.state.ensure_implement_root(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.ensure_memory_file(path, *, package_id, goal_rel, contract_rel, branch_name)[source]¶
- Parameters:
path (Path)
package_id (str)
goal_rel (str)
contract_rel (str)
branch_name (str)
- Return type:
bool
- fermilink.implement.state.ensure_program_file(path, *, content)[source]¶
- Parameters:
path (Path)
content (str)
- Return type:
bool
- fermilink.implement.state.ensure_results_file(path)[source]¶
- Parameters:
path (Path)
- Return type:
bool
- fermilink.implement.state.goal_analysis_path(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.goal_copy_path(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.implement_root(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.load_json_file(path)[source]¶
- Parameters:
path (Path)
- Return type:
dict[str, Any] | None
- fermilink.implement.state.load_state(path)[source]¶
- Parameters:
path (Path)
- Return type:
dict[str, Any] | None
- fermilink.implement.state.memory_path(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.plan_path(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.program_path(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.recent_results_text(path, *, limit=8)[source]¶
- Parameters:
path (Path)
limit (int)
- Return type:
str
- fermilink.implement.state.reset_worker_memory_file(path, *, package_id, goal_rel, contract_rel, controller_memory_rel, results_rel, worker_iteration)[source]¶
- Parameters:
path (Path)
package_id (str)
goal_rel (str)
contract_rel (str)
controller_memory_rel (str)
results_rel (str)
worker_iteration (int)
- Return type:
None
- fermilink.implement.state.results_path(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.run_lock_path(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.runs_root(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.safe_relative(path, root)[source]¶
- Parameters:
path (Path)
root (Path)
- Return type:
str
- fermilink.implement.state.state_path(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.validation_runner_path(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path
- fermilink.implement.state.worker_memory_path(project_root)[source]¶
- Parameters:
project_root (Path)
- Return type:
Path