sciel 0.23.2__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.
- sciel-0.23.2/CONTRIBUTING.md +53 -0
- sciel-0.23.2/MANIFEST.in +1 -0
- sciel-0.23.2/PKG-INFO +508 -0
- sciel-0.23.2/README.md +466 -0
- sciel-0.23.2/pyproject.toml +59 -0
- sciel-0.23.2/setup.cfg +4 -0
- sciel-0.23.2/src/sciel/__init__.py +1 -0
- sciel-0.23.2/src/sciel/campaign/__init__.py +0 -0
- sciel-0.23.2/src/sciel/campaign/budget.py +467 -0
- sciel-0.23.2/src/sciel/campaign/identity.py +97 -0
- sciel-0.23.2/src/sciel/campaign/memory.py +298 -0
- sciel-0.23.2/src/sciel/campaign/no_regression.py +118 -0
- sciel-0.23.2/src/sciel/candidate_modules/__init__.py +239 -0
- sciel-0.23.2/src/sciel/causal/__init__.py +4 -0
- sciel-0.23.2/src/sciel/causal/estimators.py +70 -0
- sciel-0.23.2/src/sciel/causal/ledger.py +134 -0
- sciel-0.23.2/src/sciel/causal/sequential.py +102 -0
- sciel-0.23.2/src/sciel/cli/__init__.py +0 -0
- sciel-0.23.2/src/sciel/cli/live.py +144 -0
- sciel-0.23.2/src/sciel/cli/main.py +335 -0
- sciel-0.23.2/src/sciel/cli/profile.py +65 -0
- sciel-0.23.2/src/sciel/cli/start.py +189 -0
- sciel-0.23.2/src/sciel/cli/supervise.py +202 -0
- sciel-0.23.2/src/sciel/components/__init__.py +0 -0
- sciel-0.23.2/src/sciel/components/bets/__init__.py +0 -0
- sciel-0.23.2/src/sciel/components/code_novelty.py +105 -0
- sciel-0.23.2/src/sciel/components/containers.py +374 -0
- sciel-0.23.2/src/sciel/components/policy/__init__.py +0 -0
- sciel-0.23.2/src/sciel/components/policy/base.py +52 -0
- sciel-0.23.2/src/sciel/components/policy/code_embed.py +472 -0
- sciel-0.23.2/src/sciel/components/policy/controller.py +166 -0
- sciel-0.23.2/src/sciel/components/policy/mode_bandit.py +93 -0
- sciel-0.23.2/src/sciel/components/policy/mode_features.py +30 -0
- sciel-0.23.2/src/sciel/components/policy/mode_policy_mlp.py +102 -0
- sciel-0.23.2/src/sciel/components/policy/pop_features.py +29 -0
- sciel-0.23.2/src/sciel/components/policy/preset_weights.py +127 -0
- sciel-0.23.2/src/sciel/components/policy/three_head.py +167 -0
- sciel-0.23.2/src/sciel/components/policy/tilt.py +40 -0
- sciel-0.23.2/src/sciel/components/selection/__init__.py +0 -0
- sciel-0.23.2/src/sciel/components/selection/kernels.py +206 -0
- sciel-0.23.2/src/sciel/components/selection/novelty_chain.py +82 -0
- sciel-0.23.2/src/sciel/config.py +155 -0
- sciel-0.23.2/src/sciel/config_validation.py +180 -0
- sciel-0.23.2/src/sciel/culture/__init__.py +3 -0
- sciel-0.23.2/src/sciel/culture/methods.py +52 -0
- sciel-0.23.2/src/sciel/culture/repertoire.py +90 -0
- sciel-0.23.2/src/sciel/demo/__init__.py +5 -0
- sciel-0.23.2/src/sciel/demo/circles.py +54 -0
- sciel-0.23.2/src/sciel/diagnostics/__init__.py +1 -0
- sciel-0.23.2/src/sciel/diagnostics/methods_observer.py +427 -0
- sciel-0.23.2/src/sciel/diagnostics/paired_eval.py +244 -0
- sciel-0.23.2/src/sciel/engine/__init__.py +0 -0
- sciel-0.23.2/src/sciel/engine/admission.py +358 -0
- sciel-0.23.2/src/sciel/engine/assay.py +81 -0
- sciel-0.23.2/src/sciel/engine/bootstrap.py +270 -0
- sciel-0.23.2/src/sciel/engine/capacity.py +425 -0
- sciel-0.23.2/src/sciel/engine/checkpoint.py +133 -0
- sciel-0.23.2/src/sciel/engine/checkpoint_identity.py +230 -0
- sciel-0.23.2/src/sciel/engine/checkpoint_restore.py +248 -0
- sciel-0.23.2/src/sciel/engine/container_db.py +212 -0
- sciel-0.23.2/src/sciel/engine/cooperative_io.py +420 -0
- sciel-0.23.2/src/sciel/engine/db.py +259 -0
- sciel-0.23.2/src/sciel/engine/decisions.py +85 -0
- sciel-0.23.2/src/sciel/engine/determinism.py +24 -0
- sciel-0.23.2/src/sciel/engine/evaluation.py +199 -0
- sciel-0.23.2/src/sciel/engine/evaluation_timing.py +114 -0
- sciel-0.23.2/src/sciel/engine/evaluator_fifo.py +209 -0
- sciel-0.23.2/src/sciel/engine/eviction_planner.py +22 -0
- sciel-0.23.2/src/sciel/engine/factory.py +104 -0
- sciel-0.23.2/src/sciel/engine/incubator.py +201 -0
- sciel-0.23.2/src/sciel/engine/initialization.py +354 -0
- sciel-0.23.2/src/sciel/engine/journal_anchor.py +26 -0
- sciel-0.23.2/src/sciel/engine/knockout.py +91 -0
- sciel-0.23.2/src/sciel/engine/lifecycle.py +251 -0
- sciel-0.23.2/src/sciel/engine/llm/__init__.py +0 -0
- sciel-0.23.2/src/sciel/engine/llm/anthropic_api.py +78 -0
- sciel-0.23.2/src/sciel/engine/llm/claude_code.py +149 -0
- sciel-0.23.2/src/sciel/engine/llm/client.py +443 -0
- sciel-0.23.2/src/sciel/engine/llm/codex.py +368 -0
- sciel-0.23.2/src/sciel/engine/llm/codex_protocol.py +252 -0
- sciel-0.23.2/src/sciel/engine/llm/errors.py +132 -0
- sciel-0.23.2/src/sciel/engine/llm/mock.py +109 -0
- sciel-0.23.2/src/sciel/engine/llm/trace.py +133 -0
- sciel-0.23.2/src/sciel/engine/loop.py +98 -0
- sciel-0.23.2/src/sciel/engine/loop_contracts.py +105 -0
- sciel-0.23.2/src/sciel/engine/novelty.py +376 -0
- sciel-0.23.2/src/sciel/engine/observed_changes.py +404 -0
- sciel-0.23.2/src/sciel/engine/observed_schema.py +189 -0
- sciel-0.23.2/src/sciel/engine/operators.py +107 -0
- sciel-0.23.2/src/sciel/engine/output_measurements.py +44 -0
- sciel-0.23.2/src/sciel/engine/output_novelty.py +256 -0
- sciel-0.23.2/src/sciel/engine/parallel.py +472 -0
- sciel-0.23.2/src/sciel/engine/parallel_calls.py +330 -0
- sciel-0.23.2/src/sciel/engine/parallel_control.py +51 -0
- sciel-0.23.2/src/sciel/engine/parallel_recovery.py +363 -0
- sciel-0.23.2/src/sciel/engine/parallel_schedule.py +215 -0
- sciel-0.23.2/src/sciel/engine/parallel_store.py +433 -0
- sciel-0.23.2/src/sciel/engine/population_view.py +113 -0
- sciel-0.23.2/src/sciel/engine/portfolio_allocation.py +74 -0
- sciel-0.23.2/src/sciel/engine/probe.py +75 -0
- sciel-0.23.2/src/sciel/engine/prompt/__init__.py +0 -0
- sciel-0.23.2/src/sciel/engine/prompt/budget.py +20 -0
- sciel-0.23.2/src/sciel/engine/prompt/build.py +202 -0
- sciel-0.23.2/src/sciel/engine/prompt/parse.py +54 -0
- sciel-0.23.2/src/sciel/engine/prompt/patch.py +101 -0
- sciel-0.23.2/src/sciel/engine/prompt/sources.py +10 -0
- sciel-0.23.2/src/sciel/engine/prompt/templates/cross.txt +26 -0
- sciel-0.23.2/src/sciel/engine/prompt/templates/diff.txt +24 -0
- sciel-0.23.2/src/sciel/engine/prompt/templates/error_repair.txt +23 -0
- sciel-0.23.2/src/sciel/engine/prompt/templates/fix.txt +8 -0
- sciel-0.23.2/src/sciel/engine/prompt/templates/full_rewrite.txt +24 -0
- sciel-0.23.2/src/sciel/engine/prompt/templates/idea.txt +27 -0
- sciel-0.23.2/src/sciel/engine/provider_abandonment.py +15 -0
- sciel-0.23.2/src/sciel/engine/recovery.py +85 -0
- sciel-0.23.2/src/sciel/engine/repeat_execution.py +177 -0
- sciel-0.23.2/src/sciel/engine/repeat_journal.py +91 -0
- sciel-0.23.2/src/sciel/engine/repeat_learning.py +20 -0
- sciel-0.23.2/src/sciel/engine/repeat_planning.py +128 -0
- sciel-0.23.2/src/sciel/engine/repeat_policy.py +131 -0
- sciel-0.23.2/src/sciel/engine/repeat_promotion.py +147 -0
- sciel-0.23.2/src/sciel/engine/repeat_state.py +253 -0
- sciel-0.23.2/src/sciel/engine/repeat_support.py +175 -0
- sciel-0.23.2/src/sciel/engine/research_artifacts.py +323 -0
- sciel-0.23.2/src/sciel/engine/research_candidate.py +84 -0
- sciel-0.23.2/src/sciel/engine/research_cells_context.py +168 -0
- sciel-0.23.2/src/sciel/engine/research_culture.py +119 -0
- sciel-0.23.2/src/sciel/engine/research_queue.py +129 -0
- sciel-0.23.2/src/sciel/engine/research_search_evidence.py +160 -0
- sciel-0.23.2/src/sciel/engine/research_targets.py +204 -0
- sciel-0.23.2/src/sciel/engine/research_tool_signals.py +57 -0
- sciel-0.23.2/src/sciel/engine/run_lock.py +37 -0
- sciel-0.23.2/src/sciel/engine/runtime.py +165 -0
- sciel-0.23.2/src/sciel/engine/schedule.py +179 -0
- sciel-0.23.2/src/sciel/engine/siblings.py +135 -0
- sciel-0.23.2/src/sciel/engine/source_identity.py +16 -0
- sciel-0.23.2/src/sciel/engine/step_cycle.py +217 -0
- sciel-0.23.2/src/sciel/engine/step_plan.py +405 -0
- sciel-0.23.2/src/sciel/engine/telemetry.py +168 -0
- sciel-0.23.2/src/sciel/engine/types.py +87 -0
- sciel-0.23.2/src/sciel/engine/validation.py +444 -0
- sciel-0.23.2/src/sciel/engine/viability.py +431 -0
- sciel-0.23.2/src/sciel/engine/warm_start.py +69 -0
- sciel-0.23.2/src/sciel/engine/worker.py +294 -0
- sciel-0.23.2/src/sciel/engine/worker_feedback.py +131 -0
- sciel-0.23.2/src/sciel/eval/__init__.py +0 -0
- sciel-0.23.2/src/sciel/eval/_candidate_worker.py +131 -0
- sciel-0.23.2/src/sciel/eval/_repeat_runner.py +229 -0
- sciel-0.23.2/src/sciel/eval/_runner.py +280 -0
- sciel-0.23.2/src/sciel/eval/_scorer_worker.py +24 -0
- sciel-0.23.2/src/sciel/eval/candidate_backend.py +209 -0
- sciel-0.23.2/src/sciel/eval/candidate_config.py +58 -0
- sciel-0.23.2/src/sciel/eval/candidate_evidence.py +52 -0
- sciel-0.23.2/src/sciel/eval/candidate_receipts.py +272 -0
- sciel-0.23.2/src/sciel/eval/candidate_registry.py +2 -0
- sciel-0.23.2/src/sciel/eval/cascade.py +55 -0
- sciel-0.23.2/src/sciel/eval/facade.py +153 -0
- sciel-0.23.2/src/sciel/eval/native_geometry.py +251 -0
- sciel-0.23.2/src/sciel/eval/near_output.py +147 -0
- sciel-0.23.2/src/sciel/eval/output_identity.py +308 -0
- sciel-0.23.2/src/sciel/eval/packing_geometry.py +185 -0
- sciel-0.23.2/src/sciel/eval/registry.py +251 -0
- sciel-0.23.2/src/sciel/eval/repeat_docker.py +187 -0
- sciel-0.23.2/src/sciel/eval/repeat_draw.py +466 -0
- sciel-0.23.2/src/sciel/eval/repeat_io.py +51 -0
- sciel-0.23.2/src/sciel/eval/sandbox.py +350 -0
- sciel-0.23.2/src/sciel/eval/scorer_container.py +186 -0
- sciel-0.23.2/src/sciel/eval/task_prompt.py +82 -0
- sciel-0.23.2/src/sciel/eval/trusted_scoring/__init__.py +1 -0
- sciel-0.23.2/src/sciel/eval/trusted_scoring/adapter.py +125 -0
- sciel-0.23.2/src/sciel/eval/trusted_scoring/beat.py +191 -0
- sciel-0.23.2/src/sciel/eval/trusted_scoring/circle.py +102 -0
- sciel-0.23.2/src/sciel/eval/trusted_scoring/heil.py +107 -0
- sciel-0.23.2/src/sciel/eval/trusted_scoring/transport.py +120 -0
- sciel-0.23.2/src/sciel/evidence/__init__.py +1 -0
- sciel-0.23.2/src/sciel/evidence/change_audit.py +243 -0
- sciel-0.23.2/src/sciel/evidence/eligibility.py +110 -0
- sciel-0.23.2/src/sciel/evidence/measurement.py +186 -0
- sciel-0.23.2/src/sciel/evidence/restart_optimizer_trace.py +189 -0
- sciel-0.23.2/src/sciel/evidence/restart_trace.py +54 -0
- sciel-0.23.2/src/sciel/evidence/restart_trace_recorder.py +253 -0
- sciel-0.23.2/src/sciel/evidence/restart_trace_source.py +31 -0
- sciel-0.23.2/src/sciel/evidence/restart_trace_validation.py +234 -0
- sciel-0.23.2/src/sciel/evidence/restart_trace_values.py +231 -0
- sciel-0.23.2/src/sciel/local_task.py +142 -0
- sciel-0.23.2/src/sciel/methods/__init__.py +11 -0
- sciel-0.23.2/src/sciel/methods/__main__.py +397 -0
- sciel-0.23.2/src/sciel/methods/_loader.py +99 -0
- sciel-0.23.2/src/sciel/methods/_runner.py +225 -0
- sciel-0.23.2/src/sciel/methods/budget.py +322 -0
- sciel-0.23.2/src/sciel/methods/campaign.py +372 -0
- sciel-0.23.2/src/sciel/methods/configuration.py +139 -0
- sciel-0.23.2/src/sciel/methods/coordinator.py +368 -0
- sciel-0.23.2/src/sciel/methods/coordinator_context.py +108 -0
- sciel-0.23.2/src/sciel/methods/coordinator_contracts.py +42 -0
- sciel-0.23.2/src/sciel/methods/coordinator_episode.py +251 -0
- sciel-0.23.2/src/sciel/methods/coordinator_exchange.py +156 -0
- sciel-0.23.2/src/sciel/methods/coordinator_execution.py +170 -0
- sciel-0.23.2/src/sciel/methods/coordinator_planning.py +156 -0
- sciel-0.23.2/src/sciel/methods/coordinator_policy.py +193 -0
- sciel-0.23.2/src/sciel/methods/engine_bridge.py +342 -0
- sciel-0.23.2/src/sciel/methods/evidence.py +384 -0
- sciel-0.23.2/src/sciel/methods/examples.py +255 -0
- sciel-0.23.2/src/sciel/methods/executor.py +519 -0
- sciel-0.23.2/src/sciel/methods/funding.py +119 -0
- sciel-0.23.2/src/sciel/methods/materialize.py +248 -0
- sciel-0.23.2/src/sciel/methods/models.py +242 -0
- sciel-0.23.2/src/sciel/methods/proposals.py +289 -0
- sciel-0.23.2/src/sciel/methods/provider_budget.py +71 -0
- sciel-0.23.2/src/sciel/methods/registry.py +500 -0
- sciel-0.23.2/src/sciel/methods/registry_records.py +117 -0
- sciel-0.23.2/src/sciel/methods/resource_values.py +129 -0
- sciel-0.23.2/src/sciel/methods/tasks.py +203 -0
- sciel-0.23.2/src/sciel/methods/technical.py +167 -0
- sciel-0.23.2/src/sciel/methods/transport.py +217 -0
- sciel-0.23.2/src/sciel/population.py +15 -0
- sciel-0.23.2/src/sciel/research_tools/__init__.py +2 -0
- sciel-0.23.2/src/sciel/research_tools/artifact_manifest.py +207 -0
- sciel-0.23.2/src/sciel/research_tools/artifact_reading.py +34 -0
- sciel-0.23.2/src/sciel/research_tools/canonical_diagnostics.py +241 -0
- sciel-0.23.2/src/sciel/research_tools/canonical_evidence.py +94 -0
- sciel-0.23.2/src/sciel/research_tools/cells.py +394 -0
- sciel-0.23.2/src/sciel/research_tools/comparison_assessment.py +89 -0
- sciel-0.23.2/src/sciel/research_tools/config.py +174 -0
- sciel-0.23.2/src/sciel/research_tools/continuations.py +289 -0
- sciel-0.23.2/src/sciel/research_tools/controller.py +236 -0
- sciel-0.23.2/src/sciel/research_tools/controller_jobs.py +315 -0
- sciel-0.23.2/src/sciel/research_tools/controller_state.py +204 -0
- sciel-0.23.2/src/sciel/research_tools/decision_projection.py +116 -0
- sciel-0.23.2/src/sciel/research_tools/episode_evidence.py +129 -0
- sciel-0.23.2/src/sciel/research_tools/episode_execution.py +249 -0
- sciel-0.23.2/src/sciel/research_tools/episode_results.py +224 -0
- sciel-0.23.2/src/sciel/research_tools/experiment_protocol.py +271 -0
- sciel-0.23.2/src/sciel/research_tools/followups.py +442 -0
- sciel-0.23.2/src/sciel/research_tools/job_worker.py +240 -0
- sciel-0.23.2/src/sciel/research_tools/jobs.py +364 -0
- sciel-0.23.2/src/sciel/research_tools/library.py +357 -0
- sciel-0.23.2/src/sciel/research_tools/lifecycle.py +377 -0
- sciel-0.23.2/src/sciel/research_tools/lifecycle_delivery.py +198 -0
- sciel-0.23.2/src/sciel/research_tools/lifecycle_evidence.py +324 -0
- sciel-0.23.2/src/sciel/research_tools/observation_cards.py +179 -0
- sciel-0.23.2/src/sciel/research_tools/planning.py +152 -0
- sciel-0.23.2/src/sciel/research_tools/projection_data.py +169 -0
- sciel-0.23.2/src/sciel/research_tools/projection_validation.py +133 -0
- sciel-0.23.2/src/sciel/research_tools/prompt_builder.py +393 -0
- sciel-0.23.2/src/sciel/research_tools/prompt_sections.py +377 -0
- sciel-0.23.2/src/sciel/research_tools/replay_feedback.py +153 -0
- sciel-0.23.2/src/sciel/research_tools/research_steps.py +222 -0
- sciel-0.23.2/src/sciel/research_tools/result_contract.py +73 -0
- sciel-0.23.2/src/sciel/research_tools/result_projection.py +319 -0
- sciel-0.23.2/src/sciel/research_tools/retained_observations.py +227 -0
- sciel-0.23.2/src/sciel/research_tools/sequential_research.py +371 -0
- sciel-0.23.2/src/sciel/research_tools/shared_evidence.py +408 -0
- sciel-0.23.2/src/sciel/research_tools/sharing.py +287 -0
- sciel-0.23.2/src/sciel/research_tools/stage_data.py +68 -0
- sciel-0.23.2/src/sciel/research_tools/tool_actions.py +241 -0
- sciel-0.23.2/src/sciel/research_tools/tool_artifacts.py +175 -0
- sciel-0.23.2/src/sciel/research_tools/tool_protocol.py +41 -0
- sciel-0.23.2/src/sciel/research_tools/transfer_jobs.py +190 -0
- sciel-0.23.2/src/sciel/reward.py +181 -0
- sciel-0.23.2/src/sciel/rl/__init__.py +3 -0
- sciel-0.23.2/src/sciel/rl/critic.py +104 -0
- sciel-0.23.2/src/sciel/rl/policy.py +235 -0
- sciel-0.23.2/src/sciel/rl/returns.py +56 -0
- sciel-0.23.2/src/sciel/rng.py +38 -0
- sciel-0.23.2/src/sciel/run_log.py +212 -0
- sciel-0.23.2/src/sciel/solvers/__init__.py +1 -0
- sciel-0.23.2/src/sciel/solvers/circle_anytime.py +257 -0
- sciel-0.23.2/src/sciel/solvers/circle_lp_initializer.py +132 -0
- sciel-0.23.2/src/sciel/solvers/circle_relocation.py +121 -0
- sciel-0.23.2/src/sciel/stats.py +217 -0
- sciel-0.23.2/src/sciel/swm/__init__.py +6 -0
- sciel-0.23.2/src/sciel/swm/archive.py +91 -0
- sciel-0.23.2/src/sciel/swm/diffusion.py +61 -0
- sciel-0.23.2/src/sciel/swm/embedding.py +94 -0
- sciel-0.23.2/src/sciel/swm/model.py +200 -0
- sciel-0.23.2/src/sciel/swm/niches.py +46 -0
- sciel-0.23.2/src/sciel/swm/sets.py +63 -0
- sciel-0.23.2/src/sciel/swm/tabular.py +66 -0
- sciel-0.23.2/src/sciel/swm/targets.py +63 -0
- sciel-0.23.2/src/sciel/swm/world.py +500 -0
- sciel-0.23.2/src/sciel/task.py +21 -0
- sciel-0.23.2/src/sciel/taskbuilder/__init__.py +118 -0
- sciel-0.23.2/src/sciel/taskbuilder/audit.py +92 -0
- sciel-0.23.2/src/sciel/taskbuilder/draft.py +69 -0
- sciel-0.23.2/src/sciel/taskbuilder/materials.py +88 -0
- sciel-0.23.2/src/sciel/theory/__init__.py +7 -0
- sciel-0.23.2/src/sciel/theory/assumptions.py +131 -0
- sciel-0.23.2/src/sciel/theory/claims.py +138 -0
- sciel-0.23.2/src/sciel/theory/experiments.py +106 -0
- sciel-0.23.2/src/sciel/theory/findings.py +148 -0
- sciel-0.23.2/src/sciel/theory/procedures.py +89 -0
- sciel-0.23.2/src/sciel/theory/schools.py +64 -0
- sciel-0.23.2/src/sciel/theory/strategies.py +85 -0
- sciel-0.23.2/src/sciel/theory/trials.py +107 -0
- sciel-0.23.2/src/sciel/tui/__init__.py +0 -0
- sciel-0.23.2/src/sciel/tui/board.py +52 -0
- sciel-0.23.2/src/sciel/ui/__init__.py +1 -0
- sciel-0.23.2/src/sciel/ui/activity.py +112 -0
- sciel-0.23.2/src/sciel/ui/engine.py +169 -0
- sciel-0.23.2/src/sciel/ui/render.py +165 -0
- sciel-0.23.2/src/sciel/ui/state.py +343 -0
- sciel-0.23.2/src/sciel/ui/static/engine.js +162 -0
- sciel-0.23.2/src/sciel/ui/static/index.html +397 -0
- sciel-0.23.2/src/sciel/ui/terminal.py +455 -0
- sciel-0.23.2/src/sciel/ui/views.py +307 -0
- sciel-0.23.2/src/sciel/ui/web.py +144 -0
- sciel-0.23.2/src/sciel.egg-info/PKG-INFO +508 -0
- sciel-0.23.2/src/sciel.egg-info/SOURCES.txt +310 -0
- sciel-0.23.2/src/sciel.egg-info/dependency_links.txt +1 -0
- sciel-0.23.2/src/sciel.egg-info/entry_points.txt +2 -0
- sciel-0.23.2/src/sciel.egg-info/requires.txt +30 -0
- sciel-0.23.2/src/sciel.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Use a separate environment and install the dependencies needed by your change:
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
python3 -m venv .venv
|
|
7
|
+
.venv/bin/python -m pip install -e '.[tasks,dev,analysis]'
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Repository boundaries
|
|
11
|
+
|
|
12
|
+
- Keep maintained code files at or below 500 physical lines. Split by
|
|
13
|
+
responsibility; do not compress code or use generated execution to bypass the
|
|
14
|
+
limit.
|
|
15
|
+
- `README.md` and `CONTRIBUTING.md` are the only Markdown files in this repository.
|
|
16
|
+
- Keep experiment outputs, reports, working notes, model weights, credentials and
|
|
17
|
+
build artifacts outside the source tree.
|
|
18
|
+
- The Git ignore policy denies files by default. Add an allowlist entry only for
|
|
19
|
+
a maintained source, configuration or test format.
|
|
20
|
+
- UI changes belong in Arena. Preserve its engine-facing journals and artifacts
|
|
21
|
+
when changing serialization.
|
|
22
|
+
|
|
23
|
+
## Implementation
|
|
24
|
+
|
|
25
|
+
Keep configuration validation, side effects and pure transformations separate.
|
|
26
|
+
Preserve public imports when moving code, and update execution identities to bind
|
|
27
|
+
all extracted implementation files.
|
|
28
|
+
|
|
29
|
+
Research claims must refer to recorded measurements. Do not turn missing costs
|
|
30
|
+
into zero, retries into new scientific evidence, or repeated measurements into
|
|
31
|
+
novel candidates. Resume must preserve both provenance and accounting.
|
|
32
|
+
|
|
33
|
+
Tests should use authored, bounded fixtures. A unit test must not require an old
|
|
34
|
+
experiment directory, an external model request or an unpublished local file.
|
|
35
|
+
Use isolated integration tests when subprocess, container or installed-wheel
|
|
36
|
+
behavior is part of the contract.
|
|
37
|
+
|
|
38
|
+
## Verification
|
|
39
|
+
|
|
40
|
+
Run the focused tests for changed behavior, then the full checkout suite before
|
|
41
|
+
merging a refactor:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
.venv/bin/python scripts/check_repository.py
|
|
45
|
+
.venv/bin/python -m pytest tests/unit -q
|
|
46
|
+
.venv/bin/python -m pytest tests -q
|
|
47
|
+
.venv/bin/python -m build
|
|
48
|
+
git diff --check
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Use concise Conventional Commit messages, for example
|
|
52
|
+
`fix: retain unknown provider charges` or `refactor: separate tool execution`.
|
|
53
|
+
Describe the resulting behavior and relevant verification in pull requests.
|
sciel-0.23.2/MANIFEST.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include CONTRIBUTING.md
|
sciel-0.23.2/PKG-INFO
ADDED
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sciel
|
|
3
|
+
Version: 0.23.2
|
|
4
|
+
Summary: Recursive self-improvement through cultural transmission
|
|
5
|
+
Project-URL: Homepage, https://sciel-rsi-cpil.github.io/
|
|
6
|
+
Project-URL: Source, https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework
|
|
7
|
+
Project-URL: Results, https://sciel-cpil.github.io/sciel-results/
|
|
8
|
+
Project-URL: Arena, https://github.com/SCiEL-RSI-CPIL/empira-rsi-arena
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
15
|
+
Requires-Python: <3.15,>=3.11
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
Requires-Dist: pyyaml>=6.0
|
|
18
|
+
Requires-Dist: pydantic>=2.0
|
|
19
|
+
Requires-Dist: numpy>=1.24
|
|
20
|
+
Requires-Dist: scipy>=1.11
|
|
21
|
+
Requires-Dist: tenacity>=8.2
|
|
22
|
+
Requires-Dist: openai>=1.30
|
|
23
|
+
Requires-Dist: greenlet<4,>=3.1
|
|
24
|
+
Requires-Dist: huggingface_hub>=0.23
|
|
25
|
+
Requires-Dist: torch>=2.2
|
|
26
|
+
Requires-Dist: rich>=13.7
|
|
27
|
+
Requires-Dist: anthropic>=1.0
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest>=8.2; extra == "dev"
|
|
30
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
31
|
+
Requires-Dist: jsonschema>=4; extra == "dev"
|
|
32
|
+
Provides-Extra: tasks
|
|
33
|
+
Requires-Dist: scipy>=1.11; extra == "tasks"
|
|
34
|
+
Provides-Extra: board
|
|
35
|
+
Requires-Dist: wandb>=0.16; extra == "board"
|
|
36
|
+
Provides-Extra: analysis
|
|
37
|
+
Requires-Dist: duckdb>=0.10; extra == "analysis"
|
|
38
|
+
Requires-Dist: pandas>=2.0; extra == "analysis"
|
|
39
|
+
Requires-Dist: psutil>=7.2; extra == "analysis"
|
|
40
|
+
Provides-Extra: tabular
|
|
41
|
+
Requires-Dist: tabpfn>=2.2; extra == "tabular"
|
|
42
|
+
|
|
43
|
+
# SCiEL
|
|
44
|
+
|
|
45
|
+
**Recursive self-improvement through cultural transmission.**
|
|
46
|
+
|
|
47
|
+
[](https://pypi.org/project/sciel/)
|
|
48
|
+
[](#quick-start)
|
|
49
|
+
[](#tasks)
|
|
50
|
+
[](https://github.com/SCiEL-RSI-CPIL/empira-rsi-arena)
|
|
51
|
+
|
|
52
|
+
SCiEL evolves programs with a language model, **learns to steer its own evolution while it runs**, and **hands what
|
|
53
|
+
it learned to the next run**:
|
|
54
|
+
|
|
55
|
+
- **Search world model (SWM).** Forecasts, before the language model (LLM) is called, whether a step will raise its
|
|
56
|
+
lineage's best. It starts from a pretrained tabular foundation model (TabPFN), so it is useful after a few dozen
|
|
57
|
+
steps, and then refines with its own residual network.
|
|
58
|
+
- **Cold start → reinforcement learning (RL).** Sliding-window softmax bandits steer from the first step; the SWM joins
|
|
59
|
+
at ~60 steps; an off-policy, KL-bounded RL step policy at 200+. Each joins only when it beats the one below it out of
|
|
60
|
+
fold.
|
|
61
|
+
- **Hot start (cultural inheritance).** A finished run exports its repertoire: tested claims, tools, the step policy
|
|
62
|
+
and the SWM's rows. The next run starts from them instead of from zero, and re-tests each one before trusting it.
|
|
63
|
+
- **Research cells.** Persistent questions that write and run their own tools in a Docker sandbox, measure the
|
|
64
|
+
problem, and pass working methods to other branches after a recipient trial.
|
|
65
|
+
- **Theory of the search.** Every choice is randomized and logged with its probability; whether a choice helps is
|
|
66
|
+
tested during the run with anytime-valid e-processes and e-BH false-discovery control, not guessed.
|
|
67
|
+
|
|
68
|
+
<p>
|
|
69
|
+
Made by
|
|
70
|
+
<a href="https://cpil-lab.github.io/"><img src="https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/raw/assets/brand-cpil.png" alt="CPIL logo" width="48" height="48" align="middle"> CPIL Research Group</a>
|
|
71
|
+
at
|
|
72
|
+
<a href="https://mbzuai.ac.ae/"><img src="https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/raw/assets/brand-mbzuai.png" alt="MBZUAI logo" width="48" height="48" align="middle"> MBZUAI</a>.
|
|
73
|
+
</p>
|
|
74
|
+
|
|
75
|
+
[Results](#results-snapshot--v0180) · [Inside SCiEL](#inside-sciel) · [Tasks it is for](#what-tasks-sciel-is-for) ·
|
|
76
|
+
[Quick start](#quick-start) · [Components](#components) · [Models](#local-inference-or-an-api) ·
|
|
77
|
+
[Contributing](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/blob/main/CONTRIBUTING.md)
|
|
78
|
+
|
|
79
|
+
[](#see-it-run)
|
|
80
|
+
|
|
81
|
+
## Results snapshot — v0.19.0
|
|
82
|
+
|
|
83
|
+
As of **20 October 2026**, SCiEL reaches frontier answers at a **fraction of the compute** comparable open-model systems report: an
|
|
84
|
+
**open 27B model, not trained during the search**, served from two H100 GPUs.
|
|
85
|
+
|
|
86
|
+
| Result reached | What it cost SCiEL | Closest system with reported cost | Difference |
|
|
87
|
+
| --- | --- | --- | --- |
|
|
88
|
+
| **New record** on the third autocorrelation constant with the absolute value inside the maximum ($C_{1d}$ in Tao's list): bound **1.4578548850** (800 steps), 0.36% below the merged record 1.4630716 and 0.15% below 1.4599890 claimed on 17 October 2026 (AlphaEvolve repository PR 13); verified in exact rational arithmetic | **400 evaluations from scratch** to 1.4578673, then about 120 evaluations from that construction · 27B open model | AlphaEvolve and the later constructions: cost not disclosed | **below the best value we know**, on an open model without training |
|
|
89
|
+
| Reproduced the state-of-the-art result on circle packing from scratch | **370 model calls · $1.92 · 9.3 h** · 27B open model | TTT-Discover: **25,600 samples · a few hundred $** · 120B open model, trained with RL during the search | **69× fewer model calls, ~100× cheaper, 4× smaller model, no training** |
|
|
90
|
+
| Reproduced AlphaEvolve's result on an autocorrelation constant from scratch | fastest: **11 calls · $0.03 · 17 min**; every run of three: at most 204 calls · $0.79 · 7 h | AlphaEvolve: Gemini 2.0 Flash + Pro ensemble, cost not disclosed. ThetaEvolve: 8B model trained with RL, stopped at 1.4930, short of it | **matched for 3 cents in 17 minutes** on an open model, where a model trained for the task fell short |
|
|
91
|
+
|
|
92
|
+
## Inside SCiEL
|
|
93
|
+
|
|
94
|
+
A **ladder of controllers** steers the search, matched to how much data the run has. Each one joins as a randomized
|
|
95
|
+
planner arm only after it beats the rung below it out of fold, and keeps acting only while it wins.
|
|
96
|
+
|
|
97
|
+
| Data so far | Who steers | What it learns |
|
|
98
|
+
| --- | --- | --- |
|
|
99
|
+
| first steps | **sliding-window softmax bandits** | operators and selection modes from recent rewards, with a probability floor so every choice stays logged with a usable propensity |
|
|
100
|
+
| ~60 steps | **search world model, TabPFN stage** | whether a step will raise its lineage's best, from a pretrained tabular model plus the rows of earlier runs |
|
|
101
|
+
| a run's worth | **world model network** | a residual on that forecast, with code embeddings |
|
|
102
|
+
| 200+ steps | **RL step policy** | a KL-bounded off-policy improvement over five decisions; two critics by island parity; acts only above two standard errors |
|
|
103
|
+
| always | **theory of the search** | e-processes test every decision while the run goes; e-BH bounds false discoveries; proven actions tilt sampling |
|
|
104
|
+
|
|
105
|
+
Around the ladder:
|
|
106
|
+
|
|
107
|
+
- **Research cells.** Persistent questions that write tools, run them in Docker on the step's frozen inputs, revise
|
|
108
|
+
them, submit candidates and pass methods to other islands after a recipient trial.
|
|
109
|
+
- **Culture across runs.** A run exports its repertoire: claims, findings, tools, step policy and world-model rows.
|
|
110
|
+
The next run inherits each item as one more randomized arm and keeps it only if it wins again.
|
|
111
|
+
- **Optimization machinery.** Islands with MAP-Elites, learned grids or VQ niches; run-wide novelty by hash, AST and
|
|
112
|
+
output; a smoke → full → confirm cascade that keeps the worst repeat; a population view and task modules a candidate
|
|
113
|
+
imports while it runs; parallel waves with shared capacity; checkpointed, replayable recovery.
|
|
114
|
+
|
|
115
|
+
## What tasks SCiEL is for
|
|
116
|
+
|
|
117
|
+
SCiEL is built for **long-horizon search**: tasks where a single edit rarely helps, progress takes hundreds of
|
|
118
|
+
evaluations, and what the run learns early (tools, tested findings, which moves pay off) keeps paying later. On a task
|
|
119
|
+
that 150 samples saturate, there is nothing for culture to compound on.
|
|
120
|
+
|
|
121
|
+
We make this precise. A task is a tuple $\langle X, F, h, h^{*}, M, B \rangle$: candidates $X$ the model writes, a
|
|
122
|
+
feasible set $F$, the objective $h$ the search sees and the true objective $h^{*}$, the model's edit operator $M$, and
|
|
123
|
+
the evaluation budget $B$. Its landscape is defined by $M$, so it moves as culture changes the context $M$ sees. The
|
|
124
|
+
key quantity is the chance that an edit at the frontier beats its parent by more than the noise radius $\varepsilon$:
|
|
125
|
+
|
|
126
|
+
```math
|
|
127
|
+
\pi_\varepsilon(x) = \Pr_{x' \sim M(\cdot \mid x)}\left[\, h(x') > h(x) + \varepsilon \,\right],
|
|
128
|
+
\qquad \mathbb{E}[\text{evaluations to leave a plateau}] \approx 1/\pi_\varepsilon .
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
A task is admitted to a run when its check is exact ($h = h^{*}$, no exploitable tolerance), the headroom between the
|
|
132
|
+
best reference and a known bound exceeds $4\varepsilon$ at the planned budget, and the upper confidence bound of
|
|
133
|
+
$\pi_\varepsilon$ at the frontier is at least $5/B$. The effect of transmission is expected exactly where
|
|
134
|
+
$\pi_\varepsilon$ at the frontier is **small but nonzero**: rare improvements, a long run, and a culture that raises
|
|
135
|
+
$\pi_\varepsilon$ for the next step. `sciel task` measures
|
|
136
|
+
the noise radius and the headroom before a search starts.
|
|
137
|
+
|
|
138
|
+
### In plain words
|
|
139
|
+
|
|
140
|
+
You do not need to write the task yourself. Give **Claude Code** or **Codex** the
|
|
141
|
+
[`sciel-task` skill](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/skills/sciel-task) and your materials (a description, a paper, a notebook, data) and ask it to
|
|
142
|
+
solve the problem with SCiEL:
|
|
143
|
+
|
|
144
|
+
```sh
|
|
145
|
+
cp -r skills/sciel-task ~/.claude/skills/ # Claude Code
|
|
146
|
+
cp -r skills/sciel-task ~/.codex/skills/ # Codex
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
The skill:
|
|
150
|
+
|
|
151
|
+
1. **formulates** the task: what is being improved, how it is scored, the best known result to beat;
|
|
152
|
+
2. **builds** it for the search: an exact checker, helper functions the candidates can import, a seed that searches;
|
|
153
|
+
3. **audits** it before spending compute: leaks and exploits, noise, headroom, and how often an edit improves;
|
|
154
|
+
4. **fixes** what the audit finds, **runs** SCiEL, and **re-checks** the best solution independently.
|
|
155
|
+
|
|
156
|
+
Problems that fit share three traits: a result you can check exactly or on held-out data, room to improve beyond
|
|
157
|
+
the best known answer, and an answer that improves step by step over hundreds of tries rather than being found in
|
|
158
|
+
one go.
|
|
159
|
+
|
|
160
|
+
| Field | Example task | What SCiEL improves | How it is checked |
|
|
161
|
+
| --- | --- | --- | --- |
|
|
162
|
+
| Finance | Executing a large order over a day with the least slippage | the rule that splits the order over time | average cost on held-out trading days |
|
|
163
|
+
| Mathematics | Bounds on constants, packings, extremal configurations | the construction | exact arithmetic |
|
|
164
|
+
| Algorithms | A scheduling or bin-packing heuristic | the heuristic's code | cost on a fixed set of instances |
|
|
165
|
+
| Science | Decoding behaviour from recorded neural activity | the decoder's code | accuracy on a held-out regime |
|
|
166
|
+
| Engineering | A faster numerical kernel | the implementation | speed, with outputs equal to a reference |
|
|
167
|
+
|
|
168
|
+
## See it run
|
|
169
|
+
|
|
170
|
+
`sciel watch` follows a run in the terminal; `sciel web` opens the same run as a local page. Both read the run's
|
|
171
|
+
journal, so they work on a live run or a finished one. Shown: the best run on the third autocorrelation constant
|
|
172
|
+
above, with a local Qwen3.8-27B.
|
|
173
|
+
|
|
174
|
+

|
|
175
|
+
|
|
176
|
+
| | |
|
|
177
|
+
| --- | --- |
|
|
178
|
+
|  |  |
|
|
179
|
+
| **Run.** Every attempt, why candidates fail, the idea and diff of each step. | **Maps.** The culture disk: islands as sectors, lineages as trees, findings passed between islands as chords. |
|
|
180
|
+
|  |  |
|
|
181
|
+
| **Engine.** How the islands were seeded and every attempt of every island. | **What it learned.** Findings of research cells and improvements, and where each was delivered. |
|
|
182
|
+
|
|
183
|
+
## Quick start
|
|
184
|
+
|
|
185
|
+
> [!TIP]
|
|
186
|
+
> **The easiest start is the skill.** Install [`sciel-task`](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/skills/sciel-task) in Claude Code or Codex, open your
|
|
187
|
+
> materials and say *"solve this with SCiEL"*. It formulates the task, audits it, runs SCiEL and checks the result.
|
|
188
|
+
>
|
|
189
|
+
> ```sh
|
|
190
|
+
> git clone https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework
|
|
191
|
+
> cp -r sciel-rsi-framework/skills/sciel-task ~/.claude/skills/ # Claude Code
|
|
192
|
+
> cp -r sciel-rsi-framework/skills/sciel-task ~/.codex/skills/ # Codex
|
|
193
|
+
> ```
|
|
194
|
+
|
|
195
|
+
Requires **Python 3.11–3.14** on Linux or macOS.
|
|
196
|
+
|
|
197
|
+
```sh
|
|
198
|
+
pip install sciel
|
|
199
|
+
sciel
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
`sciel` alone finds a model key (`ANTHROPIC_API_KEY` or `OPENROUTER_API_KEY`, or asks once), takes the default
|
|
203
|
+
profile and asks what to improve: the bundled circle-packing demo, a program of yours, or a run to continue.
|
|
204
|
+
|
|
205
|
+
**Your own problem** is one Python file:
|
|
206
|
+
|
|
207
|
+
```python
|
|
208
|
+
def solve(): # the search rewrites this
|
|
209
|
+
return [0.0, 0.0]
|
|
210
|
+
|
|
211
|
+
def score(result) -> float: # fixed during the search; higher is better, valid results score above 0
|
|
212
|
+
x, y = result
|
|
213
|
+
return 1 / (1 + (x - 1.7) ** 2 + (y + 0.7) ** 2)
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
```sh
|
|
217
|
+
sciel solve.py --budget 40 # search
|
|
218
|
+
sciel task ./materials --note "..." # draft a task from papers, notebooks or data, then audit it
|
|
219
|
+
sciel watch .sciel/runs/<run> # terminal viewer; w opens the page, p pauses, q leaves it running
|
|
220
|
+
sciel stop .sciel/runs/<run> # finish the work in flight, save and stop
|
|
221
|
+
sciel resume .sciel/runs/<run>
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
`sciel task` has a model draft `problem.py`, runs and repairs the seed, and audits repeatability, the noise floor and
|
|
225
|
+
the headroom between the seed and a reference before any search starts. A mock model needs no credentials:
|
|
226
|
+
`sciel run configs/smoke_mock.yaml --tasks-root ./tasks --budget 6 --watch none` from a source checkout with
|
|
227
|
+
`pip install -e '.[tasks]'`.
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## The framework at a glance
|
|
232
|
+
|
|
233
|
+
```mermaid
|
|
234
|
+
flowchart LR
|
|
235
|
+
TASK["Task<br/>program · evaluator · assets"]
|
|
236
|
+
subgraph RUN["One run"]
|
|
237
|
+
direction TB
|
|
238
|
+
PLAN["Plan a step<br/>parent · operator · hints"]
|
|
239
|
+
LLM["Language model<br/>local or API"]
|
|
240
|
+
EVAL["Evaluate<br/>smoke → full → confirm"]
|
|
241
|
+
POP["Islands<br/>MAP-Elites · novelty"]
|
|
242
|
+
LEDGER["Decision ledger<br/>every choice + its probability"]
|
|
243
|
+
THEORY["Theory<br/>anytime-valid claims"]
|
|
244
|
+
SWM["World model<br/>forecasts a step"]
|
|
245
|
+
RL["Step policy<br/>off-policy RL"]
|
|
246
|
+
CELLS["Research cells<br/>tools · experiments"]
|
|
247
|
+
PLAN --> LLM --> EVAL --> POP --> PLAN
|
|
248
|
+
PLAN --> LEDGER
|
|
249
|
+
EVAL --> LEDGER
|
|
250
|
+
LEDGER --> THEORY & SWM & RL
|
|
251
|
+
THEORY & SWM & RL -->|"tilt the next choices"| PLAN
|
|
252
|
+
POP -->|"questions"| CELLS
|
|
253
|
+
CELLS -->|"findings · candidates"| PLAN
|
|
254
|
+
end
|
|
255
|
+
REP["Repertoire<br/>claims · tools · models"]
|
|
256
|
+
TASK --> RUN
|
|
257
|
+
RUN -->|"export"| REP
|
|
258
|
+
REP -->|"inherit, then re-test"| RUN
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
The inner loop is ordinary evolution. Everything around it learns about the loop itself, from a ledger in which every
|
|
262
|
+
choice is randomized and logged with its probability. That is what makes "this helps" testable inside a run, and what
|
|
263
|
+
lets a later run inherit only what was shown to help.
|
|
264
|
+
|
|
265
|
+
## Project layout
|
|
266
|
+
|
|
267
|
+
```
|
|
268
|
+
src/sciel/
|
|
269
|
+
engine/ the search: step planning, generation, evaluation, islands, checkpoints, parallel waves
|
|
270
|
+
llm/ providers: OpenAI-compatible (vLLM, OpenRouter), Anthropic, Codex, Claude Code CLI, mock
|
|
271
|
+
eval/ task loading, sandboxed stages, output identity and certification
|
|
272
|
+
causal/ decision ledger, doubly robust estimators, e-processes
|
|
273
|
+
theory/ claims, experiments, strategies, findings and procedures
|
|
274
|
+
swm/ search world model: TabPFN stage, residual network, niches, archive
|
|
275
|
+
rl/ step policy: critics, returns, KL-bounded improvement
|
|
276
|
+
research_tools/ research cells: questions, tools, experiments, sharing between islands
|
|
277
|
+
methods/ isolated tool execution in Docker, tool registry, method exchange
|
|
278
|
+
culture/ the repertoire one run exports and the next inherits
|
|
279
|
+
components/ selection, population containers, learned policies
|
|
280
|
+
ui/ cli/ terminal and web viewers, command line
|
|
281
|
+
taskbuilder/ `sciel task`: draft and audit a task from materials
|
|
282
|
+
tasks/ task packages: evaluator.py, initial_program.py, task.yaml, optional assets/
|
|
283
|
+
configs/ maintained profiles
|
|
284
|
+
skills/sciel-task/ an agent skill for Claude Code and Codex: formulate, audit, run and verify a task
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
## Engine
|
|
288
|
+
|
|
289
|
+
One step of the search, as `engine/step_plan.py` and `engine/step_cycle.py` run it:
|
|
290
|
+
|
|
291
|
+
```python
|
|
292
|
+
def step(island):
|
|
293
|
+
ctx = context_of(engine) # phase, progress, island state
|
|
294
|
+
parent = sample("parent", selection(island)) # every sample() is logged with its probability
|
|
295
|
+
planner = sample("planner", theory.tilt({"base": .., "swm": .., "rl": ..}))
|
|
296
|
+
operator = sample("operator", steered(planner, bandit.operator_probs(ctx))) # diff, rewrite, cross, idea, repair
|
|
297
|
+
hints = sample("finding", steered(planner, knowledge.offer(island))) # tested findings, strategy cards
|
|
298
|
+
refs = freeze_population(island, parent) # what the child may read while it runs
|
|
299
|
+
child = llm.generate(prompt(task, parent, operator, hints, describe(refs)))
|
|
300
|
+
if novelty.repeat(child): return reject(child) # SHA-256 and AST repeats, run-wide
|
|
301
|
+
result = cascade(child, stages=["smoke", "full", "confirm"], population=refs) # confirm keeps the worst repeat
|
|
302
|
+
islands[island].admit(child, result) # MAP-Elites cell, eviction, migration
|
|
303
|
+
ledger.record(decisions, outcome=result) # feeds theory, world model and step policy
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
| | Parent choice | Edits | Learns during the run | Methods outlive candidates |
|
|
307
|
+
| --- | --- | --- | --- | --- |
|
|
308
|
+
| FunSearch | islands, score-weighted | whole function | no | no |
|
|
309
|
+
| AlphaEvolve | MAP-Elites + islands | diffs, Gemini Flash/Pro ensemble | no | no |
|
|
310
|
+
| OpenEvolve | MAP-Elites + islands, fixed exploit ratio | diffs | no | no |
|
|
311
|
+
| ShinkaEvolve | sigmoid(fitness) × 1/(1+children) | diffs, rewrites, crossover | UCB1 over LLMs | meta-scratchpad text |
|
|
312
|
+
| AdaEvolve | per-island intensity | diffs | UCB over islands; LLM meta-guidance on stalls | no |
|
|
313
|
+
| **SCiEL** | islands + learned grids, tilted by the planners | diffs, rewrites, crossover, ideas, repair | every choice: bandits, world model, step policy, tested claims | **tools, findings and models, with trials** |
|
|
314
|
+
|
|
315
|
+
**Why it is built this way.** The systems above adapt one or two knobs from a heuristic reward. They cannot say
|
|
316
|
+
whether an adaptation helped, because their choices are not logged with probabilities. AdaEvolve's ablation shows the
|
|
317
|
+
lever that matters most is its LLM meta-guidance (2.629 → 2.521 on circle packing without it), yet that guidance
|
|
318
|
+
is untested text. SCiEL randomizes every choice and logs it, so each adaptation, including a model's advice, is a
|
|
319
|
+
treatment with a measurable effect, and it is kept only while the effect holds.
|
|
320
|
+
|
|
321
|
+
## Components
|
|
322
|
+
|
|
323
|
+
### Search control: bandits and the step policy
|
|
324
|
+
|
|
325
|
+
```python
|
|
326
|
+
# engine/operators.py, components/policy/mode_bandit.py: the cold start
|
|
327
|
+
p_op = floor(softmax(max(reward of the arm's last 20 outcomes) / T), 0.05) # best case, recent
|
|
328
|
+
p_mode = softmax(mean(reward of the mode's last 50 outcomes, warm-started from a prior) / T)
|
|
329
|
+
# rl/policy.py: one KL-bounded improvement over the logging policy per decision
|
|
330
|
+
Q_even, Q_odd = fit_critic(rows by island parity) # each scores the other half's rows
|
|
331
|
+
adv = pessimistic(Q) - E_mu[pessimistic(Q)] # centred on the logged policy
|
|
332
|
+
pi = mu * exp(eta * adv), with KL(pi || mu) <= 0.2 # eta searched in units of the advantages
|
|
333
|
+
act only if ESS >= 200 and V_oof(pi) > V(mu) + 2 * SE_clustered_by_parent
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
Others use a UCB-style bandit from the first step, with rewards like ShinkaEvolve's `exp(max(Δ, 0)) − 1`. SCiEL's
|
|
337
|
+
bandits differ on two points. A **sliding window** forgets old outcomes, because which edit pays off changes as the
|
|
338
|
+
population matures. A **softmax with a probability floor** replaces UCB's near-deterministic argmax, so every choice
|
|
339
|
+
has a known, nonzero probability and the ledger supports off-policy estimates; UCB1 and sliding-window UCB remain as
|
|
340
|
+
ablation arms (`configs/arms`). Parent selection uses the `novelty_chain` kernel, a score-temperature softmax that
|
|
341
|
+
also accepts the planners' tilt. Gains at
|
|
342
|
+
budgets of 50–800 calls are modest, and larger ones come from training the model itself on 10⁴–10⁵ samples
|
|
343
|
+
(EvoTune, ThetaEvolve). Hierarchical selection that values a node by its descendants (HGM) predicts progress far
|
|
344
|
+
better than the node's own score. SCiEL keeps online bandits for the cheap decisions and adds a **step policy over
|
|
345
|
+
step features**: it waits for 200 steps, values a step by the rise of the best along its lineage rather than the
|
|
346
|
+
child's own score, and moves only when an out-of-fold estimate clears its own error. No system we surveyed fits such
|
|
347
|
+
a critic with a warm-up and a gate.
|
|
348
|
+
|
|
349
|
+
### World model of the search
|
|
350
|
+
|
|
351
|
+
```python
|
|
352
|
+
# swm/world.py, swm/tabular.py: forecast whether a step raises its lineage's best
|
|
353
|
+
reference = best_of(base_rate, cell_means, TabPFN(operator rows, inherited rows)) # out of fold by island parity
|
|
354
|
+
net = residual_network(code_embedding_pca16, step_features, start=reference) # cannot forecast worse
|
|
355
|
+
if gate(net beats reference out of fold): planner arm "swm" tilts the operator choice
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
Most leading systems have no learned predictor of a step's success and rely on filters and evaluation cascades.
|
|
359
|
+
Where one exists it is trained once (LLaMEA-SAGE, used only as a prompt hint and not significant at n = 5) or scores
|
|
360
|
+
pairs before the call (DGS, 200 evaluations). SCiEL's model starts from a pretrained tabular model, so it can forecast
|
|
361
|
+
from a few dozen rows, inherits the operator rows of earlier runs, and **acts only as one randomized arm of the
|
|
362
|
+
planner**, so its effect on progress is measured like any other arm's.
|
|
363
|
+
|
|
364
|
+
### Theory of the search
|
|
365
|
+
|
|
366
|
+
```python
|
|
367
|
+
# theory/claims.py, causal/sequential.py: "this action changes the child's event rate"
|
|
368
|
+
for decision in FAMILY: # operator, planner, origin, finding, ...
|
|
369
|
+
e = mixture_of_bets(doubly_robust_contrasts(ledger, decision)) # an e-process, valid at any stopping time
|
|
370
|
+
claims = e_BH(all e-values, alpha=0.05) # false discovery rate under any dependence
|
|
371
|
+
theory.tilt(decision) shifts sampling toward proven actions, and keeps exploring the rest
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
Others report ablations after the fact. SCiEL tests its own choices **while it runs**, without peeking penalties, and
|
|
375
|
+
a claim enters a later run only as an inherited prior that is re-tested there.
|
|
376
|
+
|
|
377
|
+
### Research cells and tools
|
|
378
|
+
|
|
379
|
+
```python
|
|
380
|
+
# research_tools/: a question with an experimental history
|
|
381
|
+
cell = open_question(trigger=stall or schedule) # "what structure of the task changes the design?"
|
|
382
|
+
while steps < max_steps:
|
|
383
|
+
tool = llm.write("def run(payload): ...") # imports what a candidate imports
|
|
384
|
+
obs = docker_run(tool, payload=frozen(parent, best), no_network=True, limits)
|
|
385
|
+
decide(revise | another experiment | submit candidate | finish) # finish only after a trial
|
|
386
|
+
share(tool, to=other islands) → recipient trial → adopted only if it ran there
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
AlphaEvolve and OpenEvolve keep no methods; ShinkaEvolve keeps a meta-scratchpad of summaries; AdaEvolve asks a model
|
|
390
|
+
for new tactics on stalls. None of them separates an untested idea from a measured one. In SCiEL a cell writes
|
|
391
|
+
**executable tools** that run in an isolated container on the frozen inputs of the step. Their observations carry
|
|
392
|
+
their source, and a tool reaches another island only through a recipient trial. The tool sees the same population
|
|
393
|
+
view and task modules a candidate sees, so a cell can measure exactly the object it is reasoning about.
|
|
394
|
+
|
|
395
|
+
### Population view and task assets
|
|
396
|
+
|
|
397
|
+
```python
|
|
398
|
+
# inside a candidate while it is evaluated
|
|
399
|
+
from sciel.population import population # island best, parent and run best, with the exact scored outputs
|
|
400
|
+
from sciel.task import asset
|
|
401
|
+
steps = asset("steps") # the task's own objective, gradients and refinement
|
|
402
|
+
h = population()[0]["output"]["heights"] # continue the best construction instead of rebuilding it
|
|
403
|
+
budget = float(os.environ["SCIEL_STAGE_SECONDS"]) # check fast in smoke, search in full and confirm
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
A child that can only read code rebuilds its parent's construction from scratch every time. Here it continues from
|
|
407
|
+
the measured object, and the request binds the view's hash, so a re-measurement reads the same view. On the third
|
|
408
|
+
autocorrelation constant, the view, the stage budget and the task's objective module together took the best bound
|
|
409
|
+
from about 1.55 to 1.462 after the same 50 evaluations, and to 1.461 by the end of the run.
|
|
410
|
+
|
|
411
|
+
### Culture across runs
|
|
412
|
+
|
|
413
|
+
```python
|
|
414
|
+
# culture/repertoire.py
|
|
415
|
+
export(run) = {claims, surviving strategies, findings, tools, step policy, world-model rows}
|
|
416
|
+
inherit(next_run): each item enters as one more randomized arm, and is kept only if it wins there
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
A Darwin or Huxley-Gödel machine changes the agent itself. SCiEL changes the **repertoire around the model**, so a
|
|
420
|
+
weaker model can inherit what a stronger run learned, and nothing inherited is trusted without a new trial.
|
|
421
|
+
|
|
422
|
+
## Local inference or an API
|
|
423
|
+
|
|
424
|
+
| Provider | Configuration | Used for |
|
|
425
|
+
| --- | --- | --- |
|
|
426
|
+
| Local vLLM (OpenAI-compatible) | `llm.api_base: http://127.0.0.1:8000/v1` | our runs: Qwen3.8-27B on 2× H100, data parallel, prefix caching |
|
|
427
|
+
| OpenRouter | `api_base: https://openrouter.ai/api/v1` | any hosted model, weighted ensembles |
|
|
428
|
+
| Anthropic API | `ANTHROPIC_API_KEY` | Claude models, the default of the zero-config start |
|
|
429
|
+
| Claude Code CLI | `provider: claude_code` | Claude on a subscription; pauses until a usage limit resets |
|
|
430
|
+
| Codex Responses | `provider: codex_responses` | OpenAI models through a Codex login |
|
|
431
|
+
| Mock | `configs/smoke_mock.yaml` | engine checks without a model |
|
|
432
|
+
|
|
433
|
+
A local model costs electricity rather than tokens, so a run can afford long full and confirm stages and many research
|
|
434
|
+
experiments. A transient provider failure pauses a parallel run and continues it; a lost request is never resent, and
|
|
435
|
+
its unknown charge stays in the record. Research tools need Docker and an immutable image; candidates run as native
|
|
436
|
+
subprocesses with resource limits, which bound resources but do not isolate files or network.
|
|
437
|
+
|
|
438
|
+
## Tasks
|
|
439
|
+
|
|
440
|
+
The **v0.19.0** task bundle contains **17 packages**: sixteen research tasks and one test fixture. Each defines its
|
|
441
|
+
candidate interface, evaluator, metrics and limits.
|
|
442
|
+
|
|
443
|
+
| Task | Search objective |
|
|
444
|
+
| --- | --- |
|
|
445
|
+
| [Circle packing](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/tasks/oe/circle_packing) | Maximize the sum of radii of 26 non-overlapping circles in a unit square; a [stochastic seed variant](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/tasks/oe/circle_packing_seed) too. |
|
|
446
|
+
| [Heilbronn triangle](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/tasks/oe/heilbronn_triangle) | Place 11 points in a triangle to maximize the smallest triangle area. |
|
|
447
|
+
| [Autocorrelation and minimum overlap](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/tasks/math) | Step functions bounding the first, second and both third autocorrelation constants and Erdős' minimum overlap, scored in exact rational arithmetic against the best verified values of October 2026; a variant of the absolute third constant starts from the best earlier construction. |
|
|
448
|
+
| [Discrete mathematics](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/tasks/math) | Beat-the-average, difference bases, edges versus triangles, square-free subsets. |
|
|
449
|
+
| [Function minimization](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/tasks/oe/function_minimization) · [hidden oracle](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/tasks/oe/function_minimization_oracle) | A specified 2-D objective; an unknown function with 50 queries per instance in a container. |
|
|
450
|
+
| [Matrix multiplication tensor](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/tasks/oe/matmul_tensor) | Tensor decompositions under rank and reconstruction checks. |
|
|
451
|
+
| [Toy quadratic](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/tasks/test/toy_quadratic) | A fixture for engine and evaluator contracts. |
|
|
452
|
+
|
|
453
|
+
A normalized score's denominator may be a fixed reference rather than a record; read `task.yaml` and the evaluator
|
|
454
|
+
before comparing results.
|
|
455
|
+
|
|
456
|
+
## Configure a live experiment
|
|
457
|
+
|
|
458
|
+
Start from a [profile](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/tree/main/configs) and choose the task, provider and models, budget, storage, research features and
|
|
459
|
+
limits. `budget` counts successful evolutionary evaluations; seeding and failed attempts are counted separately.
|
|
460
|
+
Checkpoints bind task, source and execution identities, so changing the engine can require a fresh run.
|
|
461
|
+
|
|
462
|
+
| Optional dependency | Purpose |
|
|
463
|
+
| --- | --- |
|
|
464
|
+
| `tasks` | SciPy for the numerical tasks. |
|
|
465
|
+
| `tabular` | TabPFN for the world model's tabular stage. |
|
|
466
|
+
| `analysis` | Dataframes and process-memory telemetry. |
|
|
467
|
+
| `board` | A Weights & Biases sink. |
|
|
468
|
+
| `dev` | Tests, schema validation and builds. |
|
|
469
|
+
|
|
470
|
+
Research tools require `parallel_search`, `candidate_novelty`, `llm.max_retries: 1` and an immutable Docker image;
|
|
471
|
+
see [integration validation](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/blob/main/src/sciel/config_validation.py) and the
|
|
472
|
+
[research-tool configuration](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/blob/main/src/sciel/research_tools/config.py). Learned profiles need external weights
|
|
473
|
+
(`embed_grid_path`, `embed_axis_path` or `embed_niche_path`); missing ones stop startup.
|
|
474
|
+
|
|
475
|
+
## Inspect runs in Empira
|
|
476
|
+
|
|
477
|
+
[Empira](https://github.com/SCiEL-RSI-CPIL/empira-rsi-arena) is the research board and experiment workspace. It reads the same run
|
|
478
|
+
evidence: progress, lineages, source changes, research cells, tools, model calls and artifacts.
|
|
479
|
+
|
|
480
|
+
```sh
|
|
481
|
+
python -m arena --root /absolute/path/to/sciel-runs
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
## Releases
|
|
485
|
+
|
|
486
|
+
`pip install sciel` installs the latest release from [PyPI](https://pypi.org/project/sciel/). Each
|
|
487
|
+
[GitHub release](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/releases) also provides the wheel, the source distribution, a separate task bundle and
|
|
488
|
+
SHA-256 checksums.
|
|
489
|
+
|
|
490
|
+
```sh
|
|
491
|
+
python3 -m venv .venv
|
|
492
|
+
.venv/bin/python -m pip install 'sciel[tasks]'
|
|
493
|
+
tar -xzf sciel-<version>-tasks.tar.gz
|
|
494
|
+
.venv/bin/sciel tasks list --tasks-root ./sciel-<version>-tasks/tasks
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
## Development
|
|
498
|
+
|
|
499
|
+
```sh
|
|
500
|
+
.venv/bin/python -m pip install -e '.[tasks,dev,analysis]'
|
|
501
|
+
.venv/bin/python scripts/check_repository.py
|
|
502
|
+
.venv/bin/python -m build
|
|
503
|
+
git diff --check
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
Maintained files have a **500-line limit** (I'm old-school and can't read past 500 lines, and vibe-coded walls of code in one file are a pain to read), enforced by the repository check. Experiment outputs, model weights and
|
|
507
|
+
working notes live outside the source tree. See [CONTRIBUTING.md](https://github.com/SCiEL-RSI-CPIL/sciel-rsi-framework/blob/main/CONTRIBUTING.md) for implementation and
|
|
508
|
+
verification rules.
|