Skip to content

Add value-of-computation yield estimator and reusable Episode adapter - #89

Merged
chian merged 4 commits into
mainfrom
feat/value-of-computation-yield
Dec 4, 2026
Merged

chian merged 4 commits into
mainfrom
feat/value-of-computation-yield

Conversation

@chian

@chian chian commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Repeated attempts can gain useful diagnostic information before their measured score improves. Add the reusable value-of-computation estimator from chian/millenial_biology and a registered Episode adapter that delivers measured outcomes, forecasts, and evidence history to the next chooser decision.

  • numeric_control_library/value_of_computation.py registers yield_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.py registers controller_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.
  • Callers supply ComputationState, ComputationObservation, and ComputationInput. The adapter returns ComputationFeedback through EpisodeView.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.
  • Both components use standard content-derived function identities, parameter admission, executable loading, admission scenarios, and EpisodeBuilder catalog discovery. Builder construction contracts also expose and check the measured-record and factory signatures.

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_predictive interface consumes a predictive state/action model. The adapter's controller.compose_predictive_computation interface returns a standard ControllerFactory. 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:

  • 24 feature tests pass through the canonical isolated runner: 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.
  • Actual Episode integration tests execute independent binomial controls against two verifier defects with identical initial scores. Forecasts select diagnosis with zero immediate score gain, then different repairs based on the returned finding. Further checks cover corrections, unknown alternatives, replay, atomic rejection, admission, and isolation between Episode paths.
  • Broader checks cover tests/numeric_control_library/, tests/episode_builder/, tests/function_library/, and tests/method_loop/. Five unrelated failures were reproduced on untouched base main 98dadcc6ba8c2ab0935ee8143ba797caf9ac1008: two repeatable-call fixtures omit authority_attenuation; two child-Episode fixtures omit synthesize_report; the API-failure emission test does not raise its expected exception.
  • Ruff and git diff --check pass. These tests validate the algorithm and library connection, not research-domain calibration.
  • GitHub's macOS lane additionally reports test_interactive_configuration_keeps_terminal_input: its isolated updater fixture cannot import openchia_cli._subprocess_compat and openchia_cli.doctor_episode_runtime. Reproduced the same failure on untouched base main 98dadcc6ba8c2ab0935ee8143ba797caf9ac1008 with the canonical runner. Contributor-attribution mappings for the PR's commit-author emails have been added and verified.

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on 5f2c8ab — chore: include current host contributor identity

❌ Job failures

OS-specific tests / macOS-only tests · View job

Job OS-specific tests / macOS-only tests failed.


debug info

CI timings

CI timings · View report · View job

Wall time 1440m35s (no baseline yet).

@chian chian changed the title Add modular value-of-computation yield estimator Add value-of-computation yield estimator and reusable Episode adapter Nov 6, 2026
@chian
chian merged commit 7f76af7 into main Dec 4, 2026
34 of 54 checks passed
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant