Repository navigation
Add value-of-computation yield estimator and reusable Episode adapter - #89
Merged
Merged
Conversation
chian
added a commit
that referenced
this pull request
Dec 4, 2026
Main gained the value-of-computation estimator (#89), which registers in the same catalog, admission and export lists as the accumulation estimator. Both sets of entries are kept. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
chian
added a commit
that referenced
this pull request
Dec 4, 2026
Conflicts with the value-of-computation estimator (#89) in README.md, episode_builder/admission.py, episode_builder/planner.py and numeric_control_library/__init__.py were additive; both sides are kept.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repeated attempts can gain useful diagnostic information before their measured score improves. Add the reusable value-of-computation estimator from
chian/millenial_biologyand a registered Episode adapter that delivers measured outcomes, forecasts, and evidence history to the next chooser decision.numeric_control_library/value_of_computation.pyregistersyield_estimation.value_of_computation. It forecasts terminal-score gains under adaptive follow-up, preserves unknown predictions, and replaces revised observations rather than accumulating provisional rewards.numeric_control_library/computation_adapter.pyregisterscontroller_composition.compose_computation_controller. Its factory implements the existing method-loop controller protocol and opens an isolated advisor for each Episode path; no method-loop changes are required.ComputationState,ComputationObservation, andComputationInput. The adapter returnsComputationFeedbackthroughEpisodeView.controller_state, including per-action forecasts and signed, evidence-bearing observation history. Corrections do not change the explicitly supplied current state; invalid batches are rejected atomically; duplicate deliveries and snapshot replay preserve statistical accounting.Task-specific state identity, retained diagnostic findings, scientific score calculation, available actions, and evidence mapping remain caller-owned. The adapter does not choose actions or stop an Episode when predictions are unknown or expected gains are negative. New objectives require explicitly remapped measurements. Forecast depth limits prediction, not execution.
The estimator's
yield.posterior_predictiveinterface consumes a predictive state/action model. The adapter'scontroller.compose_predictive_computationinterface returns a standardControllerFactory. Existing incidence compositions and Architecture contracts fixed to incidence rarefaction remain unchanged; the new adapter is available to the generic Episode method and as a reusable advisor. No example workflows are added.Validation on macOS arm64 with Python 3.14.7:
scripts/run_tests.sh tests/numeric_control_library/test_value_of_computation.py tests/numeric_control_library/test_computation_adapter.py tests/episode_builder/test_value_of_computation_catalog.py -q.tests/numeric_control_library/,tests/episode_builder/,tests/function_library/, andtests/method_loop/. Five unrelated failures were reproduced on untouched base main98dadcc6ba8c2ab0935ee8143ba797caf9ac1008: two repeatable-call fixtures omitauthority_attenuation; two child-Episode fixtures omitsynthesize_report; the API-failure emission test does not raise its expected exception.git diff --checkpass. These tests validate the algorithm and library connection, not research-domain calibration.test_interactive_configuration_keeps_terminal_input: its isolated updater fixture cannot importopenchia_cli._subprocess_compatandopenchia_cli.doctor_episode_runtime. Reproduced the same failure on untouched base main98dadcc6ba8c2ab0935ee8143ba797caf9ac1008with the canonical runner. Contributor-attribution mappings for the PR's commit-author emails have been added and verified.