ithrl 0.1.0__py3-none-any.whl
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.
- ithrl/__init__.py +1 -0
- ithrl/__main__.py +6 -0
- ithrl/adapters/__init__.py +49 -0
- ithrl/adapters/_jsonl.py +266 -0
- ithrl/adapters/codex/__init__.py +5 -0
- ithrl/adapters/codex/context.py +204 -0
- ithrl/adapters/codex/decisions.py +224 -0
- ithrl/adapters/codex/discovery.py +60 -0
- ithrl/adapters/codex/parser.py +191 -0
- ithrl/adapters/contracts.py +106 -0
- ithrl/adapters/copilot/__init__.py +5 -0
- ithrl/adapters/copilot/context.py +182 -0
- ithrl/adapters/copilot/decisions.py +294 -0
- ithrl/adapters/copilot/discovery.py +28 -0
- ithrl/adapters/copilot/parser.py +283 -0
- ithrl/adapters/discovery.py +220 -0
- ithrl/adapters/errors.py +52 -0
- ithrl/adapters/registry.py +433 -0
- ithrl/behavior.py +138 -0
- ithrl/calibration.py +434 -0
- ithrl/case/__init__.py +33 -0
- ithrl/case/contracts.py +88 -0
- ithrl/case/evidence.py +169 -0
- ithrl/case/filesystem.py +340 -0
- ithrl/case/source.py +208 -0
- ithrl/case/source_context.py +119 -0
- ithrl/case/source_storage.py +234 -0
- ithrl/case/storage.py +377 -0
- ithrl/cli/__init__.py +968 -0
- ithrl/cli/extract.py +478 -0
- ithrl/cli/native.py +484 -0
- ithrl/cli/output.py +786 -0
- ithrl/cli/paths.py +24 -0
- ithrl/cli/sampled.py +485 -0
- ithrl/cli/sampled_output.py +472 -0
- ithrl/cli/sampled_reduction.py +1036 -0
- ithrl/cli/sampled_session.py +342 -0
- ithrl/cli/shrink.py +523 -0
- ithrl/context.py +465 -0
- ithrl/decisions.py +271 -0
- ithrl/examples/synthetic-trace.json +46 -0
- ithrl/execution/__init__.py +68 -0
- ithrl/execution/budget.py +146 -0
- ithrl/execution/contracts.py +426 -0
- ithrl/execution/preflight.py +346 -0
- ithrl/experiment.py +453 -0
- ithrl/extraction.py +206 -0
- ithrl/measurement.py +315 -0
- ithrl/observations.py +1148 -0
- ithrl/path_safety.py +100 -0
- ithrl/reduce/__init__.py +53 -0
- ithrl/reduce/contracts.py +508 -0
- ithrl/reduce/engine.py +901 -0
- ithrl/reduce/search.py +178 -0
- ithrl/results/__init__.py +49 -0
- ithrl/results/models.py +294 -0
- ithrl/results/storage.py +485 -0
- ithrl/results/summary.py +420 -0
- ithrl/results/validation.py +611 -0
- ithrl/run_state.py +1135 -0
- ithrl/runner/__init__.py +44 -0
- ithrl/runner/codex/__init__.py +17 -0
- ithrl/runner/codex/capability.py +708 -0
- ithrl/runner/codex/configuration.py +529 -0
- ithrl/runner/codex/isolation.py +396 -0
- ithrl/runner/codex/materialize.py +358 -0
- ithrl/runner/codex/policy.py +67 -0
- ithrl/runner/codex/protocol.py +649 -0
- ithrl/runner/codex/protocol_contracts.py +171 -0
- ithrl/runner/codex/runner.py +533 -0
- ithrl/runner/codex/runtime_configuration.py +264 -0
- ithrl/runner/codex/schema.py +527 -0
- ithrl/runner/codex/transcript.py +130 -0
- ithrl/runner/codex/worker.py +175 -0
- ithrl/runner/contracts.py +419 -0
- ithrl/runner/copilot/__init__.py +18 -0
- ithrl/runner/copilot/capability.py +825 -0
- ithrl/runner/copilot/configuration.py +201 -0
- ithrl/runner/copilot/isolation.py +374 -0
- ithrl/runner/copilot/materialize.py +484 -0
- ithrl/runner/copilot/policy.py +110 -0
- ithrl/runner/copilot/protocol/__init__.py +18 -0
- ithrl/runner/copilot/protocol/contracts.py +74 -0
- ithrl/runner/copilot/protocol/decoding.py +93 -0
- ithrl/runner/copilot/protocol/parser.py +418 -0
- ithrl/runner/copilot/protocol/state.py +130 -0
- ithrl/runner/copilot/runner.py +425 -0
- ithrl/runner/copilot/worker.py +351 -0
- ithrl/runner/evidence.py +345 -0
- ithrl/runner/fake.py +107 -0
- ithrl/runner/registry.py +90 -0
- ithrl/runner/runtime/__init__.py +50 -0
- ithrl/runner/runtime/contracts.py +157 -0
- ithrl/runner/runtime/output.py +184 -0
- ithrl/runner/runtime/process.py +954 -0
- ithrl/runner/runtime/protection.py +562 -0
- ithrl/runner/runtime/state.py +282 -0
- ithrl/runner/validation.py +376 -0
- ithrl/sampling.py +412 -0
- ithrl/statistics.py +276 -0
- ithrl/synthetic.py +511 -0
- ithrl/timestamps.py +26 -0
- ithrl/workflow.py +570 -0
- ithrl-0.1.0.dist-info/METADATA +118 -0
- ithrl-0.1.0.dist-info/RECORD +108 -0
- ithrl-0.1.0.dist-info/WHEEL +4 -0
- ithrl-0.1.0.dist-info/entry_points.txt +2 -0
- ithrl-0.1.0.dist-info/licenses/LICENSE +201 -0
ithrl/runner/__init__.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Runner contracts, built-in implementations, and composition helpers."""
|
|
2
|
+
|
|
3
|
+
from ithrl.runner.contracts import (
|
|
4
|
+
Candidate,
|
|
5
|
+
NativeOutputReference,
|
|
6
|
+
PreparedAttempt,
|
|
7
|
+
ProviderAcceptanceState,
|
|
8
|
+
RunAccounting,
|
|
9
|
+
Runner,
|
|
10
|
+
RunnerCancelled,
|
|
11
|
+
RunnerError,
|
|
12
|
+
RunnerErrorCode,
|
|
13
|
+
RunResult,
|
|
14
|
+
TokenUsage,
|
|
15
|
+
ToolCall,
|
|
16
|
+
prepare_candidate,
|
|
17
|
+
)
|
|
18
|
+
from ithrl.runner.evidence import AttemptEvidence
|
|
19
|
+
from ithrl.runner.fake import FakeRunner
|
|
20
|
+
from ithrl.runner.registry import RunnerRegistry, RunnerResolution, built_in_runner_registry
|
|
21
|
+
from ithrl.runner.validation import validate_run_result, validate_runner_error
|
|
22
|
+
|
|
23
|
+
__all__ = [
|
|
24
|
+
"AttemptEvidence",
|
|
25
|
+
"Candidate",
|
|
26
|
+
"FakeRunner",
|
|
27
|
+
"NativeOutputReference",
|
|
28
|
+
"PreparedAttempt",
|
|
29
|
+
"ProviderAcceptanceState",
|
|
30
|
+
"RunAccounting",
|
|
31
|
+
"RunResult",
|
|
32
|
+
"Runner",
|
|
33
|
+
"RunnerCancelled",
|
|
34
|
+
"RunnerError",
|
|
35
|
+
"RunnerErrorCode",
|
|
36
|
+
"RunnerRegistry",
|
|
37
|
+
"RunnerResolution",
|
|
38
|
+
"TokenUsage",
|
|
39
|
+
"ToolCall",
|
|
40
|
+
"built_in_runner_registry",
|
|
41
|
+
"prepare_candidate",
|
|
42
|
+
"validate_run_result",
|
|
43
|
+
"validate_runner_error",
|
|
44
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Codex final-response execution support."""
|
|
2
|
+
|
|
3
|
+
from ithrl.runner.codex.capability import detect_codex_capability
|
|
4
|
+
from ithrl.runner.codex.configuration import (
|
|
5
|
+
CodexProviderConfiguration,
|
|
6
|
+
resolve_codex_configuration,
|
|
7
|
+
)
|
|
8
|
+
from ithrl.runner.codex.isolation import CodexRuntime
|
|
9
|
+
from ithrl.runner.codex.runner import CodexRunner
|
|
10
|
+
|
|
11
|
+
__all__ = [
|
|
12
|
+
"CodexProviderConfiguration",
|
|
13
|
+
"CodexRunner",
|
|
14
|
+
"CodexRuntime",
|
|
15
|
+
"detect_codex_capability",
|
|
16
|
+
"resolve_codex_configuration",
|
|
17
|
+
]
|