marin-taskcompendium 0.2.340.dev45224558563__tar.gz → 0.2.341.dev45233397198__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/PKG-INFO +6 -6
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/README.md +2 -4
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/pyproject.toml +6 -6
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/source_quality.py +1 -20
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/runtime/models.py +0 -33
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/runtime/resources.py +1 -1
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/runtime/shell.py +2 -11
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_runtime.py +3 -115
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_source_quality.py +2 -6
- marin_taskcompendium-0.2.340.dev45224558563/src/taskcompendium/pipeline/environment_inventory.py +0 -49
- marin_taskcompendium-0.2.340.dev45224558563/src/taskcompendium/runtime/episode.py +0 -112
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/.gitignore +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/chat.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/answers.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/code.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/delivery.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/evaluation_jee.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/json_schema.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/nemotron_ultra.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/pi_trajectory.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/preference.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/script_grader.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/structure_closure.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/convert/tasks.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/direct_chat.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/ejection.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/evaluation/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/evaluation/corpus.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/evaluation/metrics.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/evaluation/response.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/evaluation/selection.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/evaluation/spec.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/examples/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/examples/ejection.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/fetch.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/grader.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/grading.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/grading_result.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/harbor/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/harbor/compare.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/harbor/records.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/harbor/snapshots.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/identity.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/econevals.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/assets/NOTICE.txt +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/assets/checkpoint_prompts.json +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/assets/code_protocol.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/assets/crux_input.txt +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/assets/crux_output.txt +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/assets/lm-evaluation-harness-MIT.txt +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/assets/python_prepare.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/assets/simpleqa.LICENSE +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/biomedical.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/code.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/commonsense.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/facts_grounding.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/financebench.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/grader.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/instructions.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/judge_prompts.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/lexam.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/long_context.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/math.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/mmlu_redux.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/physics_verified.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/reasoning.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/amc.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/choices.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/facts_grounding.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/genomeqa.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/harness_generation.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/ifbench/VENDORED.md +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/ifbench/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/ifbench/instructions.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/ifbench/instructions_registry.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/ifbench/instructions_util.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/instruction_spec.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/instructions.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/jee.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/lexam.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/lm-evaluation-harness-MIT.txt +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/long_context.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/longbench_v2.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/main.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/math.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/minerva.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/nupa.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/nupa_preparation.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/olympiad.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/relations.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/scorers/zeroeval.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/simpleqa.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evalchemy/supergpqa.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evaluation_harness.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/evaluation_nupa.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/fewshot.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/genomeqa.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/longbench_v2.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/nemo_predicted_action.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/importers/swe.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/models.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/README.md +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/assessment.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/assessment_review.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/audit_schema.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/chat_requests.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/controls.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/conversion.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/curriculum/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/curriculum/alignment.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/curriculum/coverage.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/curriculum/embedding.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/curriculum/models.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/curriculum/task_alignment.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/evaluation.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/execution_telemetry.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/filtering.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/fingerprints.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/inputs.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/models.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/query_cache.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/review.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/review_requests.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/sampling.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/semantics.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/shard_outputs.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/source_processing.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/source_verification.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/sources.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/stages.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/transforms.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/pipeline/verification.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/runtime/__init__.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/runtime/environment.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/runtime/grading.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/runtime/local.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/runtime/output_capture.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/runtime/staging.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/runtime/task_grading.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/source_fingerprints.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/src/taskcompendium/submission.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/conftest.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/fixtures/nemo/predicted-action.json +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/fixtures/nemo/predicted-action.provenance.json +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/fixtures/review/stack_pytest_long_evidence.json +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/pipeline_stages.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_answer_formats.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_assessment.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_chat_requests.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_chat_review.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_checkpoint_harness.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_controls.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_conversion.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_convert_answers.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_convert_json_schema.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_convert_nemotron_ultra.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_convert_preference.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_convert_script_grader.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_convert_structure_closure.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_curriculum_coverage.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_environment.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evalchemy_code.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evalchemy_facts_grounding.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evalchemy_instructions.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evalchemy_jee.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evalchemy_judged.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evalchemy_lexam.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evalchemy_math.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evalchemy_mmlu_redux.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evalchemy_nupa.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evalchemy_supergpqa.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evaluation.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_evaluation_response.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_execution_telemetry.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_genomeqa.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_grader_package.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_harbor_compare.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_local_runtime.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_longbench_v2.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_multiple_choice_verifier.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_nemo_predicted_action.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_output_capture.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_pipeline.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_review_evidence.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_schema.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_script_grader.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_source_processing.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_source_verification.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_submission_grading.py +0 -0
- {marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/tests/test_task_embeddings.py +0 -0
{marin_taskcompendium-0.2.340.dev45224558563 → marin_taskcompendium-0.2.341.dev45233397198}/PKG-INFO
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: marin-taskcompendium
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.341.dev45233397198
|
|
4
4
|
Summary: Semantic task contracts, submission extraction, and shared grading
|
|
5
5
|
Requires-Python: <3.14,>=3.12
|
|
6
|
-
Requires-Dist: marin-rigging==0.2.
|
|
7
|
-
Requires-Dist: marin-shellbox==0.2.
|
|
8
|
-
Requires-Dist: marin-verifyit[judge,math,reasoning-gym,schema]==0.2.
|
|
6
|
+
Requires-Dist: marin-rigging==0.2.341.dev45233397198
|
|
7
|
+
Requires-Dist: marin-shellbox==0.2.341.dev45233397198
|
|
8
|
+
Requires-Dist: marin-verifyit[judge,math,reasoning-gym,schema]==0.2.341.dev45233397198
|
|
9
9
|
Requires-Dist: pydantic>=2.0
|
|
10
10
|
Requires-Dist: tomli>=2.0.1
|
|
11
11
|
Requires-Dist: tomlkit>=0.13
|
|
12
12
|
Provides-Extra: pipeline
|
|
13
13
|
Requires-Dist: datasets<6,>=5.0.1; extra == 'pipeline'
|
|
14
14
|
Requires-Dist: ijson>=3.3; extra == 'pipeline'
|
|
15
|
-
Requires-Dist: marin-finestore==0.2.
|
|
16
|
-
Requires-Dist: marin-zephyr==0.2.
|
|
15
|
+
Requires-Dist: marin-finestore==0.2.341.dev45233397198; extra == 'pipeline'
|
|
16
|
+
Requires-Dist: marin-zephyr==0.2.341.dev45233397198; extra == 'pipeline'
|
|
17
17
|
Requires-Dist: numpy>=1.26; extra == 'pipeline'
|
|
18
18
|
Requires-Dist: pyarrow>=15.0; extra == 'pipeline'
|
|
19
19
|
Requires-Dist: tiktoken>=0.8; extra == 'pipeline'
|
|
@@ -111,7 +111,7 @@ For text and numeric tasks, the `AnswerCall` format adds `submit_answer(answer:
|
|
|
111
111
|
|
|
112
112
|
### Files and state
|
|
113
113
|
|
|
114
|
-
`answer_type=file` names a file result. `answer_type=workspace_state` names the final filesystem workspace. `answer_type=state` names arbitrary resulting environment state, including provider state outside a filesystem. Acquiring these results requires an actor runtime. These tasks still declare an `answer_format`, but grading does not read it. `file` and `workspace_state` answers require a grader with an environment. In-process grading uses supplied evidence; the
|
|
114
|
+
`answer_type=file` names a file result. `answer_type=workspace_state` names the final filesystem workspace. `answer_type=state` names arbitrary resulting environment state, including provider state outside a filesystem. Acquiring these results requires an actor runtime. These tasks still declare an `answer_format`, but grading does not read it. `file` and `workspace_state` answers require a grader with an environment. In-process grading uses supplied evidence; the TaskCompendium shell runtime captures declared output files. The `structured_exact` mode compares JSON values and ordered arrays. Numbers compare by value by default (`16` equals `16.0`); booleans remain distinct. Set `numeric_types="strict"` to require exact numeric scalar types.
|
|
115
115
|
|
|
116
116
|
`answer_type=json` is a JSON answer from the model, independent of environment state. `JsonValueAnswer` parses the complete final chat text into a `JsonSubmission` for `structured_exact`. `StateSubmission` is evidence acquired from an environment by its runtime. `structured_exact` accepts either. The `JsonAnswer` format instead unwraps an `answer` string for text or numeric tasks, or a JSON number for numeric tasks. Both JSON formats accept one Markdown code fence enclosing the whole reply and reject extra prose, duplicate keys at every nesting level, and nonfinite numbers. Tool-call arguments are decoded before entering the conversation evidence. Runtimes own provider-response decoding and may report malformed tool-call arguments as a structural submission failure with reward `0.0`. Both historical and final calls contain typed argument objects.
|
|
117
117
|
|
|
@@ -335,9 +335,7 @@ unadvertised ejections, and continuation after ejection are `submission_failure`
|
|
|
335
335
|
`0.0`. Completed ejection calls in the source conversation are historical input.
|
|
336
336
|
|
|
337
337
|
`answer_submission` dispatches ejection before the normal answer-format extractor, without
|
|
338
|
-
passing expected answers or solvability labels into extraction.
|
|
339
|
-
the terminal call and stops before executing it or any other call in its batch. Runtime
|
|
340
|
-
failures remain infrastructure errors without a reward.
|
|
338
|
+
passing expected answers or solvability labels into extraction.
|
|
341
339
|
|
|
342
340
|
Generate paired missing-information, contradictory-constraint, and guideline examples as
|
|
343
341
|
serialized TaskSpecs:
|
|
@@ -4,14 +4,14 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "marin-taskcompendium"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.341.dev45233397198"
|
|
8
8
|
description = "Semantic task contracts, submission extraction, and shared grading"
|
|
9
9
|
requires-python = ">=3.12,<3.14"
|
|
10
10
|
dependencies = [
|
|
11
|
-
"marin-rigging==0.2.
|
|
11
|
+
"marin-rigging==0.2.341.dev45233397198",
|
|
12
12
|
"pydantic>=2.0",
|
|
13
|
-
"marin-verifyit[judge,math,reasoning-gym,schema]==0.2.
|
|
14
|
-
"marin-shellbox==0.2.
|
|
13
|
+
"marin-verifyit[judge,math,reasoning-gym,schema]==0.2.341.dev45233397198",
|
|
14
|
+
"marin-shellbox==0.2.341.dev45233397198",
|
|
15
15
|
# The runtime staging copies tomli's package directory for the 3.10 grader machines.
|
|
16
16
|
"tomli>=2.0.1",
|
|
17
17
|
"tomlkit>=0.13",
|
|
@@ -22,8 +22,8 @@ pipeline = [
|
|
|
22
22
|
"ijson>=3.3",
|
|
23
23
|
"tiktoken>=0.8",
|
|
24
24
|
"datasets>=5.0.1,<6",
|
|
25
|
-
"marin-zephyr==0.2.
|
|
26
|
-
"marin-finestore==0.2.
|
|
25
|
+
"marin-zephyr==0.2.341.dev45233397198",
|
|
26
|
+
"marin-finestore==0.2.341.dev45233397198",
|
|
27
27
|
"numpy>=1.26",
|
|
28
28
|
"pyarrow>=15.0",
|
|
29
29
|
]
|
|
@@ -23,7 +23,7 @@ from taskcompendium.pipeline.models import (
|
|
|
23
23
|
ReviewStatus,
|
|
24
24
|
TaskAudit,
|
|
25
25
|
)
|
|
26
|
-
from taskcompendium.pipeline.sampling import
|
|
26
|
+
from taskcompendium.pipeline.sampling import seeded_order, seeded_sample
|
|
27
27
|
from taskcompendium.runtime.resources import resource_bytes
|
|
28
28
|
|
|
29
29
|
SOURCE_QUALITY_REVISION = "8"
|
|
@@ -176,25 +176,6 @@ def sample_quality_rows(records: Iterator[dict], *, policy: SourceQualityPolicy)
|
|
|
176
176
|
return QualitySample(inputs, eligible, dict(exclusions), dict(contracts), tuple(selected))
|
|
177
177
|
|
|
178
178
|
|
|
179
|
-
def merge_quality_samples(samples: Iterator[QualitySample], *, policy: SourceQualityPolicy) -> QualitySample:
|
|
180
|
-
inputs = 0
|
|
181
|
-
exclusions: Counter[str] = Counter()
|
|
182
|
-
contracts: Counter[str] = Counter()
|
|
183
|
-
|
|
184
|
-
def shard_samples() -> Iterator[tuple[int, tuple[str, ...]]]:
|
|
185
|
-
nonlocal inputs
|
|
186
|
-
for sample in samples:
|
|
187
|
-
inputs += sample.input_count
|
|
188
|
-
exclusions.update(sample.exclusions)
|
|
189
|
-
contracts.update(sample.contracts)
|
|
190
|
-
yield sample.eligible_count, sample.task_ids
|
|
191
|
-
|
|
192
|
-
eligible, selected = merge_sample_rows(
|
|
193
|
-
shard_samples(), size=policy.sample_size, key=partial(seeded_order, seed=policy.seed)
|
|
194
|
-
)
|
|
195
|
-
return QualitySample(inputs, eligible, dict(exclusions), dict(contracts), tuple(selected))
|
|
196
|
-
|
|
197
|
-
|
|
198
179
|
def source_quality_report(
|
|
199
180
|
sample: QualitySample,
|
|
200
181
|
reviews: Sequence[ReviewRecord],
|
|
@@ -3,23 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
"""Execution evidence kept separately from task definitions and review findings."""
|
|
5
5
|
|
|
6
|
-
from collections.abc import Sequence
|
|
7
6
|
from dataclasses import dataclass
|
|
8
7
|
from enum import StrEnum
|
|
9
|
-
from typing import Protocol
|
|
10
8
|
|
|
11
9
|
from pydantic import BaseModel, ConfigDict
|
|
12
10
|
|
|
13
11
|
from taskcompendium.models import (
|
|
14
|
-
AssistantMessage,
|
|
15
12
|
ConversationEvent,
|
|
16
13
|
ConversationTrace,
|
|
17
|
-
FunctionCall,
|
|
18
|
-
FunctionDefinition,
|
|
19
14
|
GradingAttempt,
|
|
20
15
|
StateSubmission,
|
|
21
16
|
TaskResource,
|
|
22
|
-
TaskSpec,
|
|
23
17
|
decode_json_value,
|
|
24
18
|
)
|
|
25
19
|
from taskcompendium.runtime.resources import resource_bytes
|
|
@@ -56,30 +50,3 @@ class RolloutRecord(BaseModel):
|
|
|
56
50
|
return RuntimeEvidence(
|
|
57
51
|
{f"/{resource.path}": resource_bytes(resource) for resource in self.artifacts}, self.state_json
|
|
58
52
|
)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@dataclass(frozen=True)
|
|
62
|
-
class ActorTask:
|
|
63
|
-
"""Model-facing projection: no verifier, fixture state, or control files."""
|
|
64
|
-
|
|
65
|
-
id: str
|
|
66
|
-
tools: tuple[FunctionDefinition, ...]
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
class Actor(Protocol):
|
|
70
|
-
def respond(self, task: ActorTask, events: Sequence[ConversationEvent]) -> AssistantMessage: ...
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
class Environment(Protocol):
|
|
74
|
-
@property
|
|
75
|
-
def tools(self) -> tuple[FunctionDefinition, ...]: ...
|
|
76
|
-
|
|
77
|
-
async def step(self, call: FunctionCall) -> str: ...
|
|
78
|
-
async def evidence(self) -> RuntimeEvidence: ...
|
|
79
|
-
async def close(self) -> None: ...
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
class EnvironmentFactory(Protocol):
|
|
83
|
-
@property
|
|
84
|
-
def identity(self) -> dict: ...
|
|
85
|
-
async def create(self, task: TaskSpec) -> Environment: ...
|
|
@@ -9,10 +9,10 @@ import json
|
|
|
9
9
|
import os
|
|
10
10
|
import uuid
|
|
11
11
|
from collections.abc import Sequence
|
|
12
|
-
from dataclasses import
|
|
12
|
+
from dataclasses import dataclass, field
|
|
13
13
|
from pathlib import Path
|
|
14
14
|
from tempfile import TemporaryDirectory
|
|
15
|
-
from typing import
|
|
15
|
+
from typing import Literal
|
|
16
16
|
|
|
17
17
|
from pydantic import BaseModel, ConfigDict, Field
|
|
18
18
|
from shellbox.machine import (
|
|
@@ -21,7 +21,6 @@ from shellbox.machine import (
|
|
|
21
21
|
Machine,
|
|
22
22
|
MachineFactory,
|
|
23
23
|
MachineSpec,
|
|
24
|
-
QemuBundle,
|
|
25
24
|
)
|
|
26
25
|
|
|
27
26
|
from taskcompendium.models import (
|
|
@@ -151,14 +150,6 @@ async def run_shell_call(
|
|
|
151
150
|
)
|
|
152
151
|
|
|
153
152
|
|
|
154
|
-
def machine_spec_identity(machine_spec: MachineSpec) -> dict[str, Any]:
|
|
155
|
-
"""Serialize machine parameters with a JSON-compatible local bundle path."""
|
|
156
|
-
identity = asdict(machine_spec)
|
|
157
|
-
if isinstance(machine_spec.source, QemuBundle):
|
|
158
|
-
identity["source"] = {"path": str(machine_spec.source.path)}
|
|
159
|
-
return identity
|
|
160
|
-
|
|
161
|
-
|
|
162
153
|
async def upload_resources(
|
|
163
154
|
machine: Machine, resources: Sequence[TaskResource], timeout: float, *, user: str | None
|
|
164
155
|
) -> None:
|
|
@@ -38,15 +38,12 @@ from verifyit.spec import (
|
|
|
38
38
|
spec_from_table,
|
|
39
39
|
)
|
|
40
40
|
|
|
41
|
-
from taskcompendium.ejection import mark_unsolvable
|
|
42
|
-
from taskcompendium.examples.ejection import ejection_examples
|
|
43
41
|
from taskcompendium.grader import verifyit_package
|
|
44
42
|
from taskcompendium.grading_result import GradingFailure, Outcome
|
|
45
43
|
from taskcompendium.identity import canonical_sha256
|
|
46
44
|
from taskcompendium.importers.evalchemy.code import convert_python
|
|
47
45
|
from taskcompendium.importers.nemo_predicted_action import import_row
|
|
48
46
|
from taskcompendium.models import (
|
|
49
|
-
AnswerCall,
|
|
50
47
|
AnswerType,
|
|
51
48
|
AssistantToolCalls,
|
|
52
49
|
CommandSemantics,
|
|
@@ -67,7 +64,6 @@ from taskcompendium.models import (
|
|
|
67
64
|
RewardFile,
|
|
68
65
|
RewardFileFormat,
|
|
69
66
|
ScriptGrader,
|
|
70
|
-
ShellToolBinding,
|
|
71
67
|
Source,
|
|
72
68
|
TaskSpec,
|
|
73
69
|
TextMessage,
|
|
@@ -75,15 +71,13 @@ from taskcompendium.models import (
|
|
|
75
71
|
from taskcompendium.pipeline.inputs import ConversionContext
|
|
76
72
|
from taskcompendium.pipeline.models import CheckStatus, RawRow
|
|
77
73
|
from taskcompendium.pipeline.verification import verify_task
|
|
78
|
-
from taskcompendium.runtime.episode import ScriptedActor, run_episode
|
|
79
74
|
from taskcompendium.runtime.grading import SPEC_PATH, STAGING_ARCHIVE, grade_empty_in_sandbox, grade_in_sandbox
|
|
80
|
-
from taskcompendium.runtime.models import RuntimeEvidence,
|
|
75
|
+
from taskcompendium.runtime.models import RuntimeEvidence, grading_attempt
|
|
81
76
|
from taskcompendium.runtime.resources import inline_resource
|
|
82
77
|
from taskcompendium.runtime.shell import (
|
|
83
78
|
CONTROL_PATH,
|
|
84
79
|
OUTPUT_PATH,
|
|
85
80
|
ShellFactory,
|
|
86
|
-
ShellToolConfig,
|
|
87
81
|
upload_resources,
|
|
88
82
|
)
|
|
89
83
|
from taskcompendium.runtime.task_grading import grade_task
|
|
@@ -255,8 +249,7 @@ def test_resource_upload_preserves_nested_bytes_executable_modes_and_last_write(
|
|
|
255
249
|
asyncio.run(scenario())
|
|
256
250
|
|
|
257
251
|
|
|
258
|
-
|
|
259
|
-
def test_unresolved_actor_build_never_creates_a_machine(shell_task, entrypoint):
|
|
252
|
+
def test_unresolved_actor_build_never_creates_a_machine(shell_task):
|
|
260
253
|
requirements = shell_task.environment_requirements.model_copy(
|
|
261
254
|
update={"docker_build": DockerBuildContext(files=(inline_resource("Dockerfile", b"FROM mutable:latest"),))}
|
|
262
255
|
)
|
|
@@ -264,10 +257,7 @@ def test_unresolved_actor_build_never_creates_a_machine(shell_task, entrypoint):
|
|
|
264
257
|
machines = FileMachines()
|
|
265
258
|
factory = ShellFactory(machines, GRADER_MACHINE, {}, 10, 1024)
|
|
266
259
|
with pytest.raises(UnsupportedMachineSpec):
|
|
267
|
-
|
|
268
|
-
asyncio.run(factory.create(task))
|
|
269
|
-
else:
|
|
270
|
-
asyncio.run(run_episode(task, ScriptedActor(()), factory, max_steps=1, control="fixture"))
|
|
260
|
+
asyncio.run(factory.create(task))
|
|
271
261
|
assert machines.machines == []
|
|
272
262
|
|
|
273
263
|
|
|
@@ -730,55 +720,6 @@ async def test_shell_uploads_public_files_without_oracle_and_captures_submission
|
|
|
730
720
|
await fresh.close()
|
|
731
721
|
|
|
732
722
|
|
|
733
|
-
@pytest.mark.asyncio
|
|
734
|
-
@pytest.mark.parametrize("task_owned", [False, True])
|
|
735
|
-
async def test_episode_provides_shell_tool_and_collects_nested_output(shell_task, task_owned):
|
|
736
|
-
binding = ShellToolConfig(name="terminal", command_parameter="cmd")
|
|
737
|
-
name, parameter = ("Bash", "script") if task_owned else (binding.name, binding.command_parameter)
|
|
738
|
-
task = shell_task.model_copy(
|
|
739
|
-
update={
|
|
740
|
-
"environment_requirements": EnvironmentRequirements(
|
|
741
|
-
command_semantics=CommandSemantics.SHELL_SIMULATOR, capabilities=("shell", "filesystem")
|
|
742
|
-
),
|
|
743
|
-
"output_paths": ("/workspace/submission",),
|
|
744
|
-
}
|
|
745
|
-
)
|
|
746
|
-
if task_owned:
|
|
747
|
-
task = task.model_copy(
|
|
748
|
-
update={
|
|
749
|
-
"interaction_tools": (
|
|
750
|
-
FunctionDefinition(
|
|
751
|
-
name=name,
|
|
752
|
-
parameters={
|
|
753
|
-
"type": "object",
|
|
754
|
-
"properties": {parameter: {"type": "string"}},
|
|
755
|
-
"required": [parameter],
|
|
756
|
-
"additionalProperties": False,
|
|
757
|
-
},
|
|
758
|
-
),
|
|
759
|
-
),
|
|
760
|
-
"tool_bindings": {name: ShellToolBinding(command_parameter=parameter)},
|
|
761
|
-
}
|
|
762
|
-
)
|
|
763
|
-
actor = ScriptedActor(
|
|
764
|
-
(
|
|
765
|
-
AssistantToolCalls(
|
|
766
|
-
calls=(
|
|
767
|
-
ConversationToolCall(
|
|
768
|
-
call_id="write",
|
|
769
|
-
name=name,
|
|
770
|
-
arguments={parameter: "mkdir -p submission/nested; printf answer > submission/nested/result"},
|
|
771
|
-
),
|
|
772
|
-
)
|
|
773
|
-
),
|
|
774
|
-
)
|
|
775
|
-
)
|
|
776
|
-
factory = ShellFactory(ShellSimMachineFactory(), MachineSpec(PackageSpec()), {}, 1, 1024, shell_tool=binding)
|
|
777
|
-
rollout = await run_episode(task, actor, factory, max_steps=2, control="fixture")
|
|
778
|
-
assert rollout.termination == Termination.FINAL_MESSAGE
|
|
779
|
-
assert rollout.evidence().files == {"/workspace/submission/nested/result": b"answer"}
|
|
780
|
-
|
|
781
|
-
|
|
782
723
|
@pytest.mark.asyncio
|
|
783
724
|
async def test_grader_setup_uses_prepared_cwd_before_explicit_grader_command(shell_task, tmp_path):
|
|
784
725
|
grader = ScriptGrader(
|
|
@@ -892,26 +833,6 @@ async def test_shell_commands_use_required_directory_and_variables(shell_task, m
|
|
|
892
833
|
await environment.close()
|
|
893
834
|
|
|
894
835
|
|
|
895
|
-
@dataclass(frozen=True)
|
|
896
|
-
class UnavailableFactory:
|
|
897
|
-
@property
|
|
898
|
-
def identity(self):
|
|
899
|
-
return {"backend": "unavailable"}
|
|
900
|
-
|
|
901
|
-
async def create(self, task):
|
|
902
|
-
raise RuntimeError("Machine service unavailable")
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
@pytest.mark.asyncio
|
|
906
|
-
async def test_environment_failure_is_recorded_without_reward(script_grading_task):
|
|
907
|
-
rollout = await run_episode(
|
|
908
|
-
script_grading_task, ScriptedActor(()), UnavailableFactory(), max_steps=2, control="failure"
|
|
909
|
-
)
|
|
910
|
-
assert rollout.termination == Termination.INFRA_ERROR
|
|
911
|
-
assert rollout.artifacts == ()
|
|
912
|
-
assert rollout.detail == "Machine service unavailable"
|
|
913
|
-
|
|
914
|
-
|
|
915
836
|
def test_nemo_import_accepts_untyped_source_messages_and_checks_actions():
|
|
916
837
|
path = Path(__file__).parent / "fixtures/nemo/predicted-action.json"
|
|
917
838
|
data = json.loads(path.read_text())
|
|
@@ -923,39 +844,6 @@ def test_nemo_import_accepts_untyped_source_messages_and_checks_actions():
|
|
|
923
844
|
assert task.context.events[-1].content == data["responses_create_params"]["input"][-1]["content"]
|
|
924
845
|
|
|
925
846
|
|
|
926
|
-
@pytest.mark.asyncio
|
|
927
|
-
async def test_episode_stops_at_ejection_without_executing_or_continuing():
|
|
928
|
-
task = mark_unsolvable(ejection_examples(1, AnswerCall())[0])
|
|
929
|
-
task = task.model_copy(
|
|
930
|
-
update={
|
|
931
|
-
"environment_requirements": EnvironmentRequirements(
|
|
932
|
-
command_semantics=CommandSemantics.SHELL_SIMULATOR, capabilities=("shell", "filesystem")
|
|
933
|
-
),
|
|
934
|
-
"output_paths": ("/workspace/continued",),
|
|
935
|
-
}
|
|
936
|
-
)
|
|
937
|
-
ejection = AssistantToolCalls(
|
|
938
|
-
calls=(ConversationToolCall(call_id="eject", name="eject_button", arguments={"reason": "No solution"}),)
|
|
939
|
-
)
|
|
940
|
-
actor = ScriptedActor(
|
|
941
|
-
(
|
|
942
|
-
ejection,
|
|
943
|
-
AssistantToolCalls(
|
|
944
|
-
calls=(
|
|
945
|
-
ConversationToolCall(call_id="write", name="shell", arguments={"command": "printf bad > continued"}),
|
|
946
|
-
)
|
|
947
|
-
),
|
|
948
|
-
)
|
|
949
|
-
)
|
|
950
|
-
factory = ShellFactory(ShellSimMachineFactory(), MachineSpec(PackageSpec()), {}, 1, 1024)
|
|
951
|
-
rollout = await run_episode(task, actor, factory, max_steps=2, control="ejection")
|
|
952
|
-
assert rollout.termination == Termination.FINAL_MESSAGE
|
|
953
|
-
assert rollout.events == (*task.context.events, ejection)
|
|
954
|
-
assert rollout.evidence().files == {}
|
|
955
|
-
result = grade_task(task, grading_attempt(ConversationTrace(events=rollout.events), rollout.evidence()))
|
|
956
|
-
assert (result.status, result.reward) == (Outcome.GRADED, 1.0), result.error
|
|
957
|
-
|
|
958
|
-
|
|
959
847
|
@pytest.mark.asyncio
|
|
960
848
|
async def test_grader_setup_cannot_overwrite_captured_candidate_files(shell_task, tmp_path):
|
|
961
849
|
grader = ScriptGrader(
|
|
@@ -33,7 +33,6 @@ from taskcompendium.pipeline.source_quality import (
|
|
|
33
33
|
SourceQualityPolicy,
|
|
34
34
|
SourceQualityStatus,
|
|
35
35
|
contract_signature,
|
|
36
|
-
merge_quality_samples,
|
|
37
36
|
sample_quality_rows,
|
|
38
37
|
source_quality_report,
|
|
39
38
|
)
|
|
@@ -207,7 +206,7 @@ def test_census_rejection_uses_exact_population_success_fraction(good, expected)
|
|
|
207
206
|
assert report.defect_fraction == (10 - good) / 10
|
|
208
207
|
|
|
209
208
|
|
|
210
|
-
def
|
|
209
|
+
def test_sampling_preserves_population_exclusions_and_ignores_input_order():
|
|
211
210
|
audits = []
|
|
212
211
|
for index in range(80):
|
|
213
212
|
source = Source(dataset="fixture", revision="1", row=str(index), importer_revision="1")
|
|
@@ -278,10 +277,7 @@ def test_sampling_preserves_population_exclusions_and_ignores_partition_order():
|
|
|
278
277
|
audits.append(audit.model_dump(mode="json"))
|
|
279
278
|
policy = SourceQualityPolicy(sample_size=25)
|
|
280
279
|
whole = sample_quality_rows(iter(audits), policy=policy)
|
|
281
|
-
|
|
282
|
-
(sample_quality_rows(iter(audits[i::7]), policy=policy) for i in range(7)), policy=policy
|
|
283
|
-
)
|
|
284
|
-
assert whole == split == sample_quality_rows(iter(reversed(audits)), policy=policy)
|
|
280
|
+
assert whole == sample_quality_rows(iter(reversed(audits)), policy=policy)
|
|
285
281
|
assert whole.input_count == 80 and whole.eligible_count == 60
|
|
286
282
|
assert whole.exclusions == {"exact_semantic_duplicate": 10, "normalization:converter_error": 5, "check:failed": 5}
|
|
287
283
|
assert all(int(task_id) >= 20 for task_id in whole.task_ids)
|
marin_taskcompendium-0.2.340.dev45224558563/src/taskcompendium/pipeline/environment_inventory.py
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# Copyright The Marin Authors
|
|
2
|
-
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
"""Collect bounded file inventories through Shellbox for static task review."""
|
|
5
|
-
|
|
6
|
-
from shellbox.machine import Command, MachineFactory, MachineSpec
|
|
7
|
-
|
|
8
|
-
from taskcompendium.pipeline.models import EnvironmentInventory
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
async def inspect_environment(
|
|
12
|
-
factory: MachineFactory,
|
|
13
|
-
spec: MachineSpec,
|
|
14
|
-
*,
|
|
15
|
-
environment_id: str,
|
|
16
|
-
roots: tuple[str, ...],
|
|
17
|
-
timeout: float,
|
|
18
|
-
output_limit_bytes: int,
|
|
19
|
-
) -> EnvironmentInventory:
|
|
20
|
-
"""Inspect files in a fresh machine, preserving scope and truncation evidence.
|
|
21
|
-
|
|
22
|
-
The caller supplies the pinned image or guest identity and selected backend.
|
|
23
|
-
ShellSim inventories describe its virtual filesystem, not a Harbor OCI image.
|
|
24
|
-
"""
|
|
25
|
-
if not roots or any(not root.startswith("/") for root in roots):
|
|
26
|
-
raise ValueError("Inventory roots must be explicit absolute paths")
|
|
27
|
-
machine = await factory.create(spec)
|
|
28
|
-
try:
|
|
29
|
-
result = await machine.run(
|
|
30
|
-
Command(
|
|
31
|
-
("find", *roots, "-type", "f", "-print0"),
|
|
32
|
-
cwd="/",
|
|
33
|
-
timeout=timeout,
|
|
34
|
-
output_limit_bytes=output_limit_bytes,
|
|
35
|
-
)
|
|
36
|
-
)
|
|
37
|
-
if result.exit_code != 0:
|
|
38
|
-
raise RuntimeError(f"Environment inventory failed: {result.stderr.decode(errors='replace')}")
|
|
39
|
-
# Discard a partial final path if the machine truncated the byte stream.
|
|
40
|
-
paths = result.stdout.split(b"\0")[:-1]
|
|
41
|
-
return EnvironmentInventory(
|
|
42
|
-
environment_id=environment_id,
|
|
43
|
-
origin=f"Shellbox {type(factory).__module__}.{type(factory).__name__}: find -type f -print0",
|
|
44
|
-
roots=roots,
|
|
45
|
-
paths=tuple(sorted(path.decode("utf-8", errors="replace") for path in paths)),
|
|
46
|
-
complete=not result.stdout_truncated,
|
|
47
|
-
)
|
|
48
|
-
finally:
|
|
49
|
-
await machine.close()
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
# Copyright The Marin Authors
|
|
2
|
-
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
"""Drive an actor through executed tools, preserving observations and artifacts."""
|
|
5
|
-
|
|
6
|
-
import json
|
|
7
|
-
from collections.abc import Sequence
|
|
8
|
-
from dataclasses import dataclass, field
|
|
9
|
-
|
|
10
|
-
from taskcompendium.models import (
|
|
11
|
-
TOOL_ARGUMENTS_OBJECT_ERROR,
|
|
12
|
-
AnswerCall,
|
|
13
|
-
AssistantMessage,
|
|
14
|
-
ConversationEvent,
|
|
15
|
-
FunctionCall,
|
|
16
|
-
FunctionDefinition,
|
|
17
|
-
TaskSpec,
|
|
18
|
-
TextMessage,
|
|
19
|
-
ToolResult,
|
|
20
|
-
require_resolved_environment,
|
|
21
|
-
)
|
|
22
|
-
from taskcompendium.runtime.models import (
|
|
23
|
-
Actor,
|
|
24
|
-
ActorTask,
|
|
25
|
-
Environment,
|
|
26
|
-
EnvironmentFactory,
|
|
27
|
-
RolloutRecord,
|
|
28
|
-
RuntimeEvidence,
|
|
29
|
-
Termination,
|
|
30
|
-
)
|
|
31
|
-
from taskcompendium.runtime.resources import inline_resource
|
|
32
|
-
from taskcompendium.submission import answer_call_tool, visible_format
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
@dataclass
|
|
36
|
-
class ScriptedActor:
|
|
37
|
-
"""A deterministic control trajectory, consumed once per fresh episode."""
|
|
38
|
-
|
|
39
|
-
responses: Sequence[AssistantMessage]
|
|
40
|
-
index: int = field(default=0, init=False)
|
|
41
|
-
|
|
42
|
-
def respond(self, task: ActorTask, events: Sequence[ConversationEvent]) -> AssistantMessage:
|
|
43
|
-
del task, events
|
|
44
|
-
if self.index == len(self.responses):
|
|
45
|
-
return TextMessage(role="assistant", content="Done.")
|
|
46
|
-
response = self.responses[self.index]
|
|
47
|
-
self.index += 1
|
|
48
|
-
return response
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
async def run_episode(
|
|
52
|
-
task: TaskSpec,
|
|
53
|
-
actor: Actor,
|
|
54
|
-
factory: EnvironmentFactory,
|
|
55
|
-
*,
|
|
56
|
-
max_steps: int,
|
|
57
|
-
control: str,
|
|
58
|
-
) -> RolloutRecord:
|
|
59
|
-
"""Run a fresh episode; a final message completes it, while exhaustion truncates it."""
|
|
60
|
-
if max_steps <= 0:
|
|
61
|
-
raise ValueError("A positive turn budget is required")
|
|
62
|
-
require_resolved_environment(task.environment_requirements)
|
|
63
|
-
events = list(task.context.events)
|
|
64
|
-
environment: Environment | None = None
|
|
65
|
-
termination = Termination.STEP_LIMIT
|
|
66
|
-
evidence = RuntimeEvidence({}, "{}")
|
|
67
|
-
detail = ""
|
|
68
|
-
try:
|
|
69
|
-
environment = await factory.create(task)
|
|
70
|
-
final_tools = task.final_tools
|
|
71
|
-
if isinstance(visible_format(task.answer_format), AnswerCall):
|
|
72
|
-
final_tools = (*final_tools, FunctionDefinition.model_validate(answer_call_tool()["function"]))
|
|
73
|
-
tools = (*environment.tools, *final_tools)
|
|
74
|
-
final_names = {tool.name for tool in final_tools}
|
|
75
|
-
public = ActorTask(task.id, tools)
|
|
76
|
-
for _ in range(max_steps):
|
|
77
|
-
response = actor.respond(public, events)
|
|
78
|
-
if isinstance(response, TextMessage) and response.role != "assistant":
|
|
79
|
-
raise ValueError("An actor must return an assistant message")
|
|
80
|
-
events.append(response)
|
|
81
|
-
if isinstance(response, TextMessage):
|
|
82
|
-
termination = Termination.FINAL_MESSAGE
|
|
83
|
-
break
|
|
84
|
-
if any(call.name in final_names for call in response.calls):
|
|
85
|
-
termination = Termination.FINAL_MESSAGE
|
|
86
|
-
break
|
|
87
|
-
for call in response.calls:
|
|
88
|
-
if call.name not in {tool.name for tool in tools}:
|
|
89
|
-
observation = json.dumps({"error": "Tool is not advertised"})
|
|
90
|
-
elif not isinstance(call.arguments, dict):
|
|
91
|
-
observation = json.dumps({"error": TOOL_ARGUMENTS_OBJECT_ERROR})
|
|
92
|
-
else:
|
|
93
|
-
observation = await environment.step(FunctionCall(name=call.name, arguments=call.arguments))
|
|
94
|
-
events.append(ToolResult(call_id=call.call_id, content=observation))
|
|
95
|
-
evidence = await environment.evidence()
|
|
96
|
-
except (OSError, RuntimeError) as error:
|
|
97
|
-
termination, detail = Termination.INFRA_ERROR, str(error)
|
|
98
|
-
finally:
|
|
99
|
-
if environment is not None:
|
|
100
|
-
try:
|
|
101
|
-
await environment.close()
|
|
102
|
-
except (OSError, RuntimeError) as error:
|
|
103
|
-
termination, detail = Termination.INFRA_ERROR, str(error)
|
|
104
|
-
return RolloutRecord(
|
|
105
|
-
task_id=task.id,
|
|
106
|
-
control=control,
|
|
107
|
-
events=tuple(events),
|
|
108
|
-
termination=termination,
|
|
109
|
-
artifacts=tuple(inline_resource(path.removeprefix("/"), data) for path, data in sorted(evidence.files.items())),
|
|
110
|
-
state_json=evidence.state_json,
|
|
111
|
-
detail=detail,
|
|
112
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|