codontrace 0.3.0a1__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.
- codontrace/__init__.py +768 -0
- codontrace/_numeric.py +47 -0
- codontrace/_types.py +18 -0
- codontrace/actions.py +1284 -0
- codontrace/agent.py +551 -0
- codontrace/codon.py +279 -0
- codontrace/energy.py +318 -0
- codontrace/errors.py +47 -0
- codontrace/experiment.py +93 -0
- codontrace/factory.py +5 -0
- codontrace/genesis/__init__.py +1935 -0
- codontrace/genesis/ablation.py +323 -0
- codontrace/genesis/adf.py +1122 -0
- codontrace/genesis/adf_lifecycle.py +28 -0
- codontrace/genesis/adf_runtime.py +832 -0
- codontrace/genesis/adf_validation.py +181 -0
- codontrace/genesis/analyst.py +60 -0
- codontrace/genesis/api_audit.py +667 -0
- codontrace/genesis/artifacts.py +1036 -0
- codontrace/genesis/atp.py +286 -0
- codontrace/genesis/behavior.py +389 -0
- codontrace/genesis/benchmark_suite.py +655 -0
- codontrace/genesis/birth.py +1158 -0
- codontrace/genesis/campaign.py +677 -0
- codontrace/genesis/canonical.py +136 -0
- codontrace/genesis/capsule.py +1770 -0
- codontrace/genesis/capsule_validation.py +359 -0
- codontrace/genesis/causal_graph.py +813 -0
- codontrace/genesis/causal_runtime.py +395 -0
- codontrace/genesis/causal_validation.py +771 -0
- codontrace/genesis/checkpointing.py +123 -0
- codontrace/genesis/claim_audit.py +606 -0
- codontrace/genesis/claim_gate.py +695 -0
- codontrace/genesis/codon_table.py +15 -0
- codontrace/genesis/collective_intelligence.py +389 -0
- codontrace/genesis/contribution_ledger.py +436 -0
- codontrace/genesis/controls.py +137 -0
- codontrace/genesis/curriculum.py +102 -0
- codontrace/genesis/death.py +595 -0
- codontrace/genesis/diagnostics.py +885 -0
- codontrace/genesis/discovery.py +170 -0
- codontrace/genesis/discovery_gate.py +221 -0
- codontrace/genesis/discovery_protocol.py +230 -0
- codontrace/genesis/discovery_runner.py +157 -0
- codontrace/genesis/discovery_witness.py +943 -0
- codontrace/genesis/elements.py +333 -0
- codontrace/genesis/engine.py +3400 -0
- codontrace/genesis/event_graph.py +147 -0
- codontrace/genesis/evidence.py +125 -0
- codontrace/genesis/evidence_bundle.py +260 -0
- codontrace/genesis/evidence_consistency.py +84 -0
- codontrace/genesis/evidence_lineage.py +615 -0
- codontrace/genesis/evidence_registry.py +117 -0
- codontrace/genesis/evidence_status.py +79 -0
- codontrace/genesis/evidence_validation.py +276 -0
- codontrace/genesis/evolution.py +27 -0
- codontrace/genesis/example_smoke.py +162 -0
- codontrace/genesis/experiment.py +23 -0
- codontrace/genesis/final_release_manifest.py +835 -0
- codontrace/genesis/fitness.py +1002 -0
- codontrace/genesis/frames.py +189 -0
- codontrace/genesis/generalization.py +160 -0
- codontrace/genesis/genome_spec.py +5 -0
- codontrace/genesis/innovation_protection.py +179 -0
- codontrace/genesis/intervention.py +230 -0
- codontrace/genesis/learning.py +473 -0
- codontrace/genesis/limitations.py +207 -0
- codontrace/genesis/lineage_consistency.py +35 -0
- codontrace/genesis/liveness.py +193 -0
- codontrace/genesis/mature_alpha.py +445 -0
- codontrace/genesis/memory.py +634 -0
- codontrace/genesis/multiseed.py +268 -0
- codontrace/genesis/odd.py +187 -0
- codontrace/genesis/open_endedness.py +420 -0
- codontrace/genesis/organism.py +1200 -0
- codontrace/genesis/paper_companion.py +222 -0
- codontrace/genesis/phase1_runtime_maturity.py +1675 -0
- codontrace/genesis/phase_b_scientific_maturity.py +1302 -0
- codontrace/genesis/plugins.py +235 -0
- codontrace/genesis/population.py +4047 -0
- codontrace/genesis/population_runner.py +50 -0
- codontrace/genesis/public_api_manifest.py +156 -0
- codontrace/genesis/qd_descriptors.py +369 -0
- codontrace/genesis/qd_search.py +831 -0
- codontrace/genesis/quality_diversity.py +1276 -0
- codontrace/genesis/release_candidate.py +477 -0
- codontrace/genesis/release_readiness.py +546 -0
- codontrace/genesis/replay.py +58 -0
- codontrace/genesis/replay_integrity.py +1014 -0
- codontrace/genesis/replay_policy_audit.py +20 -0
- codontrace/genesis/research_validation.py +189 -0
- codontrace/genesis/review.py +322 -0
- codontrace/genesis/ribosome.py +306 -0
- codontrace/genesis/role.py +314 -0
- codontrace/genesis/rules.py +578 -0
- codontrace/genesis/runtime_profiles.py +261 -0
- codontrace/genesis/runtime_wiring_audit.py +114 -0
- codontrace/genesis/scale_performance.py +45 -0
- codontrace/genesis/scenario_suite.py +322 -0
- codontrace/genesis/scientific_evidence.py +816 -0
- codontrace/genesis/selection.py +683 -0
- codontrace/genesis/social.py +499 -0
- codontrace/genesis/statistical_protocol.py +554 -0
- codontrace/genesis/statistical_report.py +207 -0
- codontrace/genesis/status.py +160 -0
- codontrace/genesis/structural_mutation.py +731 -0
- codontrace/genesis/substrate.py +959 -0
- codontrace/genesis/substrate_runtime.py +134 -0
- codontrace/genesis/swarm_metrics.py +121 -0
- codontrace/genesis/toolchain.py +350 -0
- codontrace/genesis/translation_profile.py +362 -0
- codontrace/genesis/validation.py +474 -0
- codontrace/genesis/validation_matrix.py +213 -0
- codontrace/genome.py +152 -0
- codontrace/initialization.py +1027 -0
- codontrace/metrics/__init__.py +45 -0
- codontrace/metrics/diversity.py +289 -0
- codontrace/mutation.py +179 -0
- codontrace/plugins.py +52 -0
- codontrace/py.typed +0 -0
- codontrace/recorder.py +187 -0
- codontrace/replay.py +505 -0
- codontrace/rng.py +301 -0
- codontrace/scenario.py +1456 -0
- codontrace/scheduling.py +153 -0
- codontrace/simulation.py +278 -0
- codontrace/specs.py +176 -0
- codontrace/topology.py +173 -0
- codontrace/trace.py +788 -0
- codontrace/world.py +966 -0
- codontrace-0.3.0a1.dist-info/METADATA +526 -0
- codontrace-0.3.0a1.dist-info/RECORD +135 -0
- codontrace-0.3.0a1.dist-info/WHEEL +5 -0
- codontrace-0.3.0a1.dist-info/licenses/LICENSE +21 -0
- codontrace-0.3.0a1.dist-info/top_level.txt +1 -0
codontrace/__init__.py
ADDED
|
@@ -0,0 +1,768 @@
|
|
|
1
|
+
"""Public API for CodonTrace v0.3.0a1 alpha research release."""
|
|
2
|
+
|
|
3
|
+
from codontrace.actions import (
|
|
4
|
+
ActionContext,
|
|
5
|
+
ActionHandler,
|
|
6
|
+
ActionRegistry,
|
|
7
|
+
ActionResult,
|
|
8
|
+
ActionRuntimeConfig,
|
|
9
|
+
ActionStatus,
|
|
10
|
+
EnergyEffect,
|
|
11
|
+
WorldView,
|
|
12
|
+
default_action_registry,
|
|
13
|
+
)
|
|
14
|
+
from codontrace.agent import Agent, RunResult, WhiteBoxAgent
|
|
15
|
+
from codontrace.codon import Action, ActionName, Codon, CodonTable
|
|
16
|
+
from codontrace.energy import ATPAccount, ATPBudget, ATPLedgerEntry
|
|
17
|
+
from codontrace.errors import (
|
|
18
|
+
CodonTraceError,
|
|
19
|
+
ConfigurationError,
|
|
20
|
+
InsufficientATPError,
|
|
21
|
+
InvalidDensityError,
|
|
22
|
+
InvalidWorldSizeError,
|
|
23
|
+
PlacementError,
|
|
24
|
+
PluginError,
|
|
25
|
+
ReplayError,
|
|
26
|
+
ScenarioValidationError,
|
|
27
|
+
UnsupportedActionError,
|
|
28
|
+
)
|
|
29
|
+
from codontrace.experiment import Experiment
|
|
30
|
+
from codontrace.genesis import (
|
|
31
|
+
AblationComparisonResult,
|
|
32
|
+
AblationEvidenceSummary,
|
|
33
|
+
AblationFactor,
|
|
34
|
+
AblationRunner,
|
|
35
|
+
AblationRunRecord,
|
|
36
|
+
ActionStatusDefinition,
|
|
37
|
+
ActionStatusRegistry,
|
|
38
|
+
ADFCompressionScore,
|
|
39
|
+
ADFDetectionResult,
|
|
40
|
+
ADFExpansionResult,
|
|
41
|
+
ADFMacro,
|
|
42
|
+
ADFPattern,
|
|
43
|
+
ADFProposal,
|
|
44
|
+
AgeLayeredSelection,
|
|
45
|
+
AgentSnapshot,
|
|
46
|
+
AliveGateConfig,
|
|
47
|
+
AliveGateResult,
|
|
48
|
+
AllowedOutputSchema,
|
|
49
|
+
AnalystInputBundle,
|
|
50
|
+
APIAuditResult,
|
|
51
|
+
APIDeprecationAuditResult,
|
|
52
|
+
APIStabilityLevel,
|
|
53
|
+
AppliedSubstrateRuleRecord,
|
|
54
|
+
ApprovalStatus,
|
|
55
|
+
ApprovedRuleSet,
|
|
56
|
+
ArtifactDigest,
|
|
57
|
+
ArtifactExporterProtocol,
|
|
58
|
+
ArtifactHygieneRecord,
|
|
59
|
+
BehaviorBin,
|
|
60
|
+
BehaviorDescriptor,
|
|
61
|
+
BehaviorDescriptorBuilder,
|
|
62
|
+
BehaviorDescriptorSchema,
|
|
63
|
+
BehaviorMetricRegistry,
|
|
64
|
+
BrainStepResult,
|
|
65
|
+
CapsuleEmissionConfig,
|
|
66
|
+
CapsuleEmissionResult,
|
|
67
|
+
CausalCapsule,
|
|
68
|
+
CausalCapsuleAdoptionPolicy,
|
|
69
|
+
CausalEdge,
|
|
70
|
+
CausalGraph,
|
|
71
|
+
CausalGraphConfig,
|
|
72
|
+
CausalGraphUpdateResult,
|
|
73
|
+
CausalNode,
|
|
74
|
+
CausalPrediction,
|
|
75
|
+
CausalPredictionEvaluation,
|
|
76
|
+
CausalUpdateInput,
|
|
77
|
+
CausalUpdateResult,
|
|
78
|
+
ClaimAuditFinding,
|
|
79
|
+
ClaimAuditResult,
|
|
80
|
+
ClaimDowngradeResult,
|
|
81
|
+
ClaimDowngradeRule,
|
|
82
|
+
ClaimReview,
|
|
83
|
+
ClaimType,
|
|
84
|
+
CodonActionCompatibilityCheck,
|
|
85
|
+
CompatibilitySnapshot,
|
|
86
|
+
CompiledBrain,
|
|
87
|
+
CompiledToken,
|
|
88
|
+
ComponentToggle,
|
|
89
|
+
ComponentToggleMatrix,
|
|
90
|
+
ConfigHash,
|
|
91
|
+
ConservationCheck,
|
|
92
|
+
D0BaselineRun,
|
|
93
|
+
D0BaselineRunner,
|
|
94
|
+
D0BaselineSet,
|
|
95
|
+
D0CalibrationResult,
|
|
96
|
+
D0DistanceMetricConfig,
|
|
97
|
+
D0EvidenceSummary,
|
|
98
|
+
DeprecatedAPISymbol,
|
|
99
|
+
DeterminismCheck,
|
|
100
|
+
DiscoveryCandidate,
|
|
101
|
+
DiscoveryCandidateQueue,
|
|
102
|
+
DiscoveryDetectionResult,
|
|
103
|
+
DiscoveryDetector,
|
|
104
|
+
DiscoveryRecord,
|
|
105
|
+
DiscoveryReview,
|
|
106
|
+
DiscoveryReviewPack,
|
|
107
|
+
DiscoveryWitness,
|
|
108
|
+
DiscoveryWitnessConfig,
|
|
109
|
+
DistanceToD0Result,
|
|
110
|
+
DocsConsistencyRecord,
|
|
111
|
+
DualATPBudget,
|
|
112
|
+
DynamicVocabularyConfig,
|
|
113
|
+
DynamicVocabularyState,
|
|
114
|
+
EffectSizeResult,
|
|
115
|
+
ElementCell,
|
|
116
|
+
ElementDefinition,
|
|
117
|
+
ElementGrid,
|
|
118
|
+
ElementGridConfig,
|
|
119
|
+
ElementKind,
|
|
120
|
+
ElementOrigin,
|
|
121
|
+
ElementRegistry,
|
|
122
|
+
ElementRuleConfig,
|
|
123
|
+
ElementSpec,
|
|
124
|
+
ElementStepResult,
|
|
125
|
+
ElitismSelection,
|
|
126
|
+
EpisodicEvent,
|
|
127
|
+
EpisodicMemory,
|
|
128
|
+
EpisodicMemoryConfig,
|
|
129
|
+
EvidenceBundleValidationResult,
|
|
130
|
+
EvidenceCompletenessScore,
|
|
131
|
+
EvidenceRecord,
|
|
132
|
+
EvolutionConfig,
|
|
133
|
+
EvolutionSelectionResult,
|
|
134
|
+
ExperimentSummary,
|
|
135
|
+
ExternalReviewRecord,
|
|
136
|
+
FailureModeRecord,
|
|
137
|
+
FitnessBreakdown,
|
|
138
|
+
FitnessComponent,
|
|
139
|
+
FitnessConfig,
|
|
140
|
+
FitnessExploitCheck,
|
|
141
|
+
FitnessProportionalSelection,
|
|
142
|
+
FitnessResult,
|
|
143
|
+
FitnessSignal,
|
|
144
|
+
FitnessSignalProtocol,
|
|
145
|
+
FitnessSignalRegistry,
|
|
146
|
+
ForbiddenClaimPolicy,
|
|
147
|
+
GenerationResult,
|
|
148
|
+
GenesisATPState,
|
|
149
|
+
GenesisCodonTable,
|
|
150
|
+
GenesisEngine,
|
|
151
|
+
GenesisEngineConfig,
|
|
152
|
+
GenesisEngineRunResult,
|
|
153
|
+
GenesisExperimentSpec,
|
|
154
|
+
GenesisFitnessV1,
|
|
155
|
+
GenesisOrganism,
|
|
156
|
+
GenesisRun,
|
|
157
|
+
GenesisRunResult,
|
|
158
|
+
GenesisRunSummary,
|
|
159
|
+
GenesisSnapshot,
|
|
160
|
+
GenesisTickResult,
|
|
161
|
+
HumanApprovalRecord,
|
|
162
|
+
HumanReviewDecision,
|
|
163
|
+
JsonArtifactExporter,
|
|
164
|
+
LearningATPConfig,
|
|
165
|
+
LearningUpdateDecision,
|
|
166
|
+
LimitationRecord,
|
|
167
|
+
LimitationsAuditResult,
|
|
168
|
+
LimitationSeverity,
|
|
169
|
+
LineageRecord,
|
|
170
|
+
LLMReviewRequest,
|
|
171
|
+
LLMReviewResult,
|
|
172
|
+
LocalityCheck,
|
|
173
|
+
MemoryConsolidationResult,
|
|
174
|
+
MemoryWriteResult,
|
|
175
|
+
MultiSeedProtocol,
|
|
176
|
+
MutationConfig,
|
|
177
|
+
MutationResult,
|
|
178
|
+
NamespaceCheck,
|
|
179
|
+
NexusSignal,
|
|
180
|
+
NoveltyWeightedSelection,
|
|
181
|
+
OffspringPlacementPolicy,
|
|
182
|
+
OrganismStepRecord,
|
|
183
|
+
OrganismTickResult,
|
|
184
|
+
PersistenceChecker,
|
|
185
|
+
PopulationCausalSummary,
|
|
186
|
+
PopulationConfigs,
|
|
187
|
+
PopulationRunner,
|
|
188
|
+
PopulationSnapshot,
|
|
189
|
+
PopulationState,
|
|
190
|
+
PopulationTickResult,
|
|
191
|
+
PublicAPISymbol,
|
|
192
|
+
QDArchive,
|
|
193
|
+
QDArchiveBatchUpdateResult,
|
|
194
|
+
QDArchiveConfig,
|
|
195
|
+
QDArchiveItemUpdateRecord,
|
|
196
|
+
QDArchivePolicy,
|
|
197
|
+
QDArchiveRejectedCandidate,
|
|
198
|
+
QDArchiveSummary,
|
|
199
|
+
QDArchiveUpdateResult,
|
|
200
|
+
QDElite,
|
|
201
|
+
QDEvidenceSummary,
|
|
202
|
+
RawEventSchema,
|
|
203
|
+
ReactionCycleCheck,
|
|
204
|
+
ReleaseCandidateChecklist,
|
|
205
|
+
ReleaseCandidateDecision,
|
|
206
|
+
ReleaseGateException,
|
|
207
|
+
ReleaseGateRecord,
|
|
208
|
+
ReleaseGateStatus,
|
|
209
|
+
ReleaseReadinessProfile,
|
|
210
|
+
ReplayBundle,
|
|
211
|
+
ReplayVerificationResult,
|
|
212
|
+
ReproductionConfig,
|
|
213
|
+
ReproductionDecision,
|
|
214
|
+
ReproductionResult,
|
|
215
|
+
ReviewArtifact,
|
|
216
|
+
ReviewArtifactType,
|
|
217
|
+
ReviewerInstructionSet,
|
|
218
|
+
ReviewerProtocol,
|
|
219
|
+
ReviewFinding,
|
|
220
|
+
ReviewSeverity,
|
|
221
|
+
ReviewStatus,
|
|
222
|
+
Ribosome,
|
|
223
|
+
RuleProposal,
|
|
224
|
+
RuleProposalReview,
|
|
225
|
+
RuleProposalSource,
|
|
226
|
+
RuleRiskReport,
|
|
227
|
+
RuleSetDiff,
|
|
228
|
+
RuleValidationResult,
|
|
229
|
+
RuleValidator,
|
|
230
|
+
RunArtifactSchema,
|
|
231
|
+
RunId,
|
|
232
|
+
RunManifest,
|
|
233
|
+
ScenarioComponentRequirement,
|
|
234
|
+
ScenarioSuite,
|
|
235
|
+
ScenarioSuiteValidationResult,
|
|
236
|
+
ScientificEvidencePack,
|
|
237
|
+
SeedMatrix,
|
|
238
|
+
SelectionPolicy,
|
|
239
|
+
StatisticalProtocolConfig,
|
|
240
|
+
SubstratePhysicsConfig,
|
|
241
|
+
SubstrateRule,
|
|
242
|
+
SubstrateRuleConfig,
|
|
243
|
+
SupplyChainAuditResult,
|
|
244
|
+
SupplyChainCheck,
|
|
245
|
+
TournamentSelection,
|
|
246
|
+
TranslationResult,
|
|
247
|
+
ValidationBundle,
|
|
248
|
+
ValidationIssue,
|
|
249
|
+
ValidationMatrixConfig,
|
|
250
|
+
ValidationMatrixResult,
|
|
251
|
+
ValidationResult,
|
|
252
|
+
ValidationRunRecord,
|
|
253
|
+
ValidationScenario,
|
|
254
|
+
WitnessEvidenceSummary,
|
|
255
|
+
WitnessValidationResult,
|
|
256
|
+
apply_approved_rule_set,
|
|
257
|
+
apply_claim_downgrade_rules,
|
|
258
|
+
apply_human_review,
|
|
259
|
+
assign_behavior_bin,
|
|
260
|
+
attach_review_result,
|
|
261
|
+
audit_claim_text,
|
|
262
|
+
audit_deprecations,
|
|
263
|
+
audit_docs_claims,
|
|
264
|
+
audit_limitations,
|
|
265
|
+
build_compatibility_snapshot,
|
|
266
|
+
build_discovery_witness,
|
|
267
|
+
calibrate_d0_baseline,
|
|
268
|
+
can_reproduce,
|
|
269
|
+
collect_genesis_public_api,
|
|
270
|
+
compare_ablation_runs,
|
|
271
|
+
compare_compatibility_snapshots,
|
|
272
|
+
compare_public_api_snapshots,
|
|
273
|
+
consolidate_memory,
|
|
274
|
+
decide_learning_update,
|
|
275
|
+
describe_behavior,
|
|
276
|
+
descriptor_distance,
|
|
277
|
+
detect_adf_patterns,
|
|
278
|
+
element_grid_to_world2d,
|
|
279
|
+
elements_to_dicts,
|
|
280
|
+
estimate_effect_size_lite,
|
|
281
|
+
evaluate_alive,
|
|
282
|
+
evaluate_artifact_hygiene,
|
|
283
|
+
evaluate_discovery_candidate,
|
|
284
|
+
evaluate_docs_consistency,
|
|
285
|
+
evaluate_fitness,
|
|
286
|
+
evaluate_prediction,
|
|
287
|
+
evaluate_release_candidate,
|
|
288
|
+
evaluate_supply_chain_checks,
|
|
289
|
+
evaluate_validation_matrix,
|
|
290
|
+
expand_adf_macro,
|
|
291
|
+
extend_codon_table_with_adfs,
|
|
292
|
+
get_element_spec,
|
|
293
|
+
macro_from_proposal,
|
|
294
|
+
manifest_from_parts,
|
|
295
|
+
measure_distance_to_d0,
|
|
296
|
+
mutate_genome,
|
|
297
|
+
normalize_descriptor,
|
|
298
|
+
policy_from_name,
|
|
299
|
+
predict_next_outcome,
|
|
300
|
+
propose_dynamic_vocabulary,
|
|
301
|
+
reproduce,
|
|
302
|
+
score_adf_pattern,
|
|
303
|
+
score_evidence_completeness,
|
|
304
|
+
select_population,
|
|
305
|
+
step_population,
|
|
306
|
+
summarize_qd_archive,
|
|
307
|
+
update_causal_graph_from_memory,
|
|
308
|
+
update_causal_graph_from_step,
|
|
309
|
+
update_causal_graph_from_trace,
|
|
310
|
+
update_qd_archive,
|
|
311
|
+
update_qd_archive_many,
|
|
312
|
+
validate_citation_metadata,
|
|
313
|
+
validate_descriptor_against_schema,
|
|
314
|
+
validate_digest_stability,
|
|
315
|
+
validate_evidence_bundle,
|
|
316
|
+
validate_genesis_exports,
|
|
317
|
+
validate_no_app_drift_project_metadata,
|
|
318
|
+
validate_release_evidence_consistency,
|
|
319
|
+
validate_review_result,
|
|
320
|
+
validate_roundtrip,
|
|
321
|
+
validate_scenario_suite,
|
|
322
|
+
validate_witness_evidence,
|
|
323
|
+
verify_replay_bundle,
|
|
324
|
+
world2d_to_element_grid,
|
|
325
|
+
)
|
|
326
|
+
from codontrace.genome import Genome, SemanticGenome
|
|
327
|
+
from codontrace.initialization import (
|
|
328
|
+
AgentFactory,
|
|
329
|
+
AgentProfile,
|
|
330
|
+
AgentSpec,
|
|
331
|
+
GenomeStrategy,
|
|
332
|
+
GenomeStrategyHandler,
|
|
333
|
+
InitializationConfig,
|
|
334
|
+
LineageConfig,
|
|
335
|
+
PlacementStrategy,
|
|
336
|
+
)
|
|
337
|
+
from codontrace.mutation import Mutation, MutationLog
|
|
338
|
+
from codontrace.plugins import discover_action_plugins
|
|
339
|
+
from codontrace.recorder import RunRecorder
|
|
340
|
+
from codontrace.replay import (
|
|
341
|
+
CausalReplay,
|
|
342
|
+
Explanation,
|
|
343
|
+
PerturbationResult,
|
|
344
|
+
ReplayResult,
|
|
345
|
+
ReplaySnapshot,
|
|
346
|
+
TimelineReplayResult,
|
|
347
|
+
)
|
|
348
|
+
from codontrace.rng import RNGManager
|
|
349
|
+
from codontrace.scenario import (
|
|
350
|
+
ObstacleConfig,
|
|
351
|
+
ResourceConfig,
|
|
352
|
+
Scenario,
|
|
353
|
+
ScenarioAgentProfile,
|
|
354
|
+
ScenarioConfig,
|
|
355
|
+
ScenarioFactory,
|
|
356
|
+
ScenarioResult,
|
|
357
|
+
WorldConfig,
|
|
358
|
+
WorldFactory,
|
|
359
|
+
)
|
|
360
|
+
from codontrace.scheduling import (
|
|
361
|
+
EnergyPriorityScheduler,
|
|
362
|
+
FitnessWeightedScheduler,
|
|
363
|
+
RandomOrderScheduler,
|
|
364
|
+
RoundRobinScheduler,
|
|
365
|
+
SchedulerProtocol,
|
|
366
|
+
SequentialScheduler,
|
|
367
|
+
)
|
|
368
|
+
from codontrace.simulation import Simulation, SimulationConfig, SimulationResult
|
|
369
|
+
from codontrace.specs import CodonTableSpec, GenomeSpec
|
|
370
|
+
from codontrace.topology import (
|
|
371
|
+
ClosedTopology,
|
|
372
|
+
CylinderTopology,
|
|
373
|
+
MobiusTopology,
|
|
374
|
+
OpenTopology,
|
|
375
|
+
TopologyProtocol,
|
|
376
|
+
TorusTopology,
|
|
377
|
+
WrapTopology,
|
|
378
|
+
)
|
|
379
|
+
from codontrace.trace import TimelineFrame, Trace, TraceEvent, WorldEvent
|
|
380
|
+
from codontrace.world import World2D, WorldObject
|
|
381
|
+
|
|
382
|
+
__version__ = "0.3.0a1"
|
|
383
|
+
|
|
384
|
+
__all__ = [
|
|
385
|
+
"AgentSnapshot",
|
|
386
|
+
"ArtifactDigest",
|
|
387
|
+
"ArtifactExporterProtocol",
|
|
388
|
+
"ConfigHash",
|
|
389
|
+
"DiscoveryRecord",
|
|
390
|
+
"ExperimentSummary",
|
|
391
|
+
"JsonArtifactExporter",
|
|
392
|
+
"PopulationSnapshot",
|
|
393
|
+
"RawEventSchema",
|
|
394
|
+
"ReplayBundle",
|
|
395
|
+
"ReplayVerificationResult",
|
|
396
|
+
"ReviewStatus",
|
|
397
|
+
"RunArtifactSchema",
|
|
398
|
+
"RunId",
|
|
399
|
+
"RunManifest",
|
|
400
|
+
"manifest_from_parts",
|
|
401
|
+
"verify_replay_bundle",
|
|
402
|
+
"AnalystInputBundle",
|
|
403
|
+
"AblationRunner",
|
|
404
|
+
"D0BaselineRunner",
|
|
405
|
+
"DiscoveryCandidateQueue",
|
|
406
|
+
"DiscoveryDetectionResult",
|
|
407
|
+
"DiscoveryDetector",
|
|
408
|
+
"DiscoveryReviewPack",
|
|
409
|
+
"MultiSeedProtocol",
|
|
410
|
+
"PersistenceChecker",
|
|
411
|
+
"GenesisEngine",
|
|
412
|
+
"GenesisEngineConfig",
|
|
413
|
+
"GenesisExperimentSpec",
|
|
414
|
+
"GenesisRun",
|
|
415
|
+
"GenesisEngineRunResult",
|
|
416
|
+
"GenesisRunSummary",
|
|
417
|
+
"GenesisSnapshot",
|
|
418
|
+
"GenesisTickResult",
|
|
419
|
+
"attach_review_result",
|
|
420
|
+
"apply_human_review",
|
|
421
|
+
"BehaviorDescriptor",
|
|
422
|
+
"BehaviorDescriptorBuilder",
|
|
423
|
+
"BehaviorMetricRegistry",
|
|
424
|
+
"describe_behavior",
|
|
425
|
+
"FitnessBreakdown",
|
|
426
|
+
"FitnessComponent",
|
|
427
|
+
"GenesisFitnessV1",
|
|
428
|
+
"AllowedOutputSchema",
|
|
429
|
+
"ClaimReview",
|
|
430
|
+
"DiscoveryReview",
|
|
431
|
+
"ExternalReviewRecord",
|
|
432
|
+
"ForbiddenClaimPolicy",
|
|
433
|
+
"HumanReviewDecision",
|
|
434
|
+
"LLMReviewRequest",
|
|
435
|
+
"LLMReviewResult",
|
|
436
|
+
"ReviewArtifact",
|
|
437
|
+
"ReviewArtifactType",
|
|
438
|
+
"ReviewFinding",
|
|
439
|
+
"ReviewSeverity",
|
|
440
|
+
"ReviewerInstructionSet",
|
|
441
|
+
"ReviewerProtocol",
|
|
442
|
+
"RuleProposalReview",
|
|
443
|
+
"validate_review_result",
|
|
444
|
+
"ApprovalStatus",
|
|
445
|
+
"ApprovedRuleSet",
|
|
446
|
+
"CodonActionCompatibilityCheck",
|
|
447
|
+
"ConservationCheck",
|
|
448
|
+
"DeterminismCheck",
|
|
449
|
+
"FitnessExploitCheck",
|
|
450
|
+
"HumanApprovalRecord",
|
|
451
|
+
"LocalityCheck",
|
|
452
|
+
"NamespaceCheck",
|
|
453
|
+
"ReactionCycleCheck",
|
|
454
|
+
"RuleProposal",
|
|
455
|
+
"RuleProposalSource",
|
|
456
|
+
"RuleRiskReport",
|
|
457
|
+
"RuleSetDiff",
|
|
458
|
+
"RuleValidationResult",
|
|
459
|
+
"RuleValidator",
|
|
460
|
+
"apply_approved_rule_set",
|
|
461
|
+
"AgeLayeredSelection",
|
|
462
|
+
"ElitismSelection",
|
|
463
|
+
"EvolutionConfig",
|
|
464
|
+
"EvolutionSelectionResult",
|
|
465
|
+
"FitnessProportionalSelection",
|
|
466
|
+
"NoveltyWeightedSelection",
|
|
467
|
+
"SelectionPolicy",
|
|
468
|
+
"TournamentSelection",
|
|
469
|
+
"policy_from_name",
|
|
470
|
+
"select_population",
|
|
471
|
+
"APIStabilityLevel",
|
|
472
|
+
"DeprecatedAPISymbol",
|
|
473
|
+
"APIDeprecationAuditResult",
|
|
474
|
+
"audit_deprecations",
|
|
475
|
+
"EvidenceRecord",
|
|
476
|
+
"EvidenceBundleValidationResult",
|
|
477
|
+
"validate_evidence_bundle",
|
|
478
|
+
"LimitationSeverity",
|
|
479
|
+
"LimitationRecord",
|
|
480
|
+
"FailureModeRecord",
|
|
481
|
+
"LimitationsAuditResult",
|
|
482
|
+
"audit_limitations",
|
|
483
|
+
"ValidationMatrixConfig",
|
|
484
|
+
"ValidationMatrixResult",
|
|
485
|
+
"evaluate_validation_matrix",
|
|
486
|
+
"ScenarioComponentRequirement",
|
|
487
|
+
"SeedMatrix",
|
|
488
|
+
"ComponentToggle",
|
|
489
|
+
"ComponentToggleMatrix",
|
|
490
|
+
"ScenarioSuite",
|
|
491
|
+
"ScenarioSuiteValidationResult",
|
|
492
|
+
"validate_scenario_suite",
|
|
493
|
+
"ReleaseGateStatus",
|
|
494
|
+
"ReleaseGateRecord",
|
|
495
|
+
"ReleaseCandidateChecklist",
|
|
496
|
+
"ReleaseCandidateDecision",
|
|
497
|
+
"SupplyChainCheck",
|
|
498
|
+
"SupplyChainAuditResult",
|
|
499
|
+
"evaluate_release_candidate",
|
|
500
|
+
"ReleaseGateException",
|
|
501
|
+
"evaluate_supply_chain_checks",
|
|
502
|
+
"ReleaseReadinessProfile",
|
|
503
|
+
"ArtifactHygieneRecord",
|
|
504
|
+
"DocsConsistencyRecord",
|
|
505
|
+
"evaluate_artifact_hygiene",
|
|
506
|
+
"evaluate_docs_consistency",
|
|
507
|
+
"D0EvidenceSummary",
|
|
508
|
+
"QDEvidenceSummary",
|
|
509
|
+
"AblationEvidenceSummary",
|
|
510
|
+
"WitnessEvidenceSummary",
|
|
511
|
+
"ScientificEvidencePack",
|
|
512
|
+
"ClaimDowngradeRule",
|
|
513
|
+
"ClaimDowngradeResult",
|
|
514
|
+
"EvidenceCompletenessScore",
|
|
515
|
+
"apply_claim_downgrade_rules",
|
|
516
|
+
"score_evidence_completeness",
|
|
517
|
+
"APIAuditResult",
|
|
518
|
+
"ClaimAuditFinding",
|
|
519
|
+
"ClaimAuditResult",
|
|
520
|
+
"ClaimType",
|
|
521
|
+
"CompatibilitySnapshot",
|
|
522
|
+
"PublicAPISymbol",
|
|
523
|
+
"QDArchiveItemUpdateRecord",
|
|
524
|
+
"ValidationBundle",
|
|
525
|
+
"ValidationIssue",
|
|
526
|
+
"ValidationResult",
|
|
527
|
+
"ValidationRunRecord",
|
|
528
|
+
"ValidationScenario",
|
|
529
|
+
"audit_claim_text",
|
|
530
|
+
"audit_docs_claims",
|
|
531
|
+
"build_compatibility_snapshot",
|
|
532
|
+
"collect_genesis_public_api",
|
|
533
|
+
"compare_compatibility_snapshots",
|
|
534
|
+
"compare_public_api_snapshots",
|
|
535
|
+
"validate_digest_stability",
|
|
536
|
+
"validate_genesis_exports",
|
|
537
|
+
"validate_no_app_drift_project_metadata",
|
|
538
|
+
"validate_release_evidence_consistency",
|
|
539
|
+
"validate_citation_metadata",
|
|
540
|
+
"validate_roundtrip",
|
|
541
|
+
"DiscoveryWitnessConfig",
|
|
542
|
+
"WitnessValidationResult",
|
|
543
|
+
"validate_witness_evidence",
|
|
544
|
+
"QDArchivePolicy",
|
|
545
|
+
"QDArchiveRejectedCandidate",
|
|
546
|
+
"QDArchiveBatchUpdateResult",
|
|
547
|
+
"update_qd_archive_many",
|
|
548
|
+
"validate_descriptor_against_schema",
|
|
549
|
+
"normalize_descriptor",
|
|
550
|
+
"descriptor_distance",
|
|
551
|
+
"AblationFactor",
|
|
552
|
+
"AblationRunRecord",
|
|
553
|
+
"AblationComparisonResult",
|
|
554
|
+
"compare_ablation_runs",
|
|
555
|
+
"StatisticalProtocolConfig",
|
|
556
|
+
"EffectSizeResult",
|
|
557
|
+
"estimate_effect_size_lite",
|
|
558
|
+
"GenomeSpec",
|
|
559
|
+
"CodonTableSpec",
|
|
560
|
+
"ActionRuntimeConfig",
|
|
561
|
+
"ElementGridConfig",
|
|
562
|
+
"AppliedSubstrateRuleRecord",
|
|
563
|
+
"summarize_qd_archive",
|
|
564
|
+
"update_qd_archive",
|
|
565
|
+
"assign_behavior_bin",
|
|
566
|
+
"QDArchiveUpdateResult",
|
|
567
|
+
"QDArchiveSummary",
|
|
568
|
+
"QDArchive",
|
|
569
|
+
"QDArchiveConfig",
|
|
570
|
+
"QDElite",
|
|
571
|
+
"BehaviorBin",
|
|
572
|
+
"BehaviorDescriptorSchema",
|
|
573
|
+
"build_discovery_witness",
|
|
574
|
+
"evaluate_discovery_candidate",
|
|
575
|
+
"measure_distance_to_d0",
|
|
576
|
+
"calibrate_d0_baseline",
|
|
577
|
+
"DistanceToD0Result",
|
|
578
|
+
"DiscoveryWitness",
|
|
579
|
+
"DiscoveryCandidate",
|
|
580
|
+
"D0DistanceMetricConfig",
|
|
581
|
+
"D0CalibrationResult",
|
|
582
|
+
"D0BaselineSet",
|
|
583
|
+
"D0BaselineRun",
|
|
584
|
+
"ElementDefinition",
|
|
585
|
+
"ElementRegistry",
|
|
586
|
+
"SubstrateRule",
|
|
587
|
+
"SubstrateRuleConfig",
|
|
588
|
+
"SubstratePhysicsConfig",
|
|
589
|
+
"FitnessSignal",
|
|
590
|
+
"FitnessSignalProtocol",
|
|
591
|
+
"FitnessSignalRegistry",
|
|
592
|
+
"ActionStatusDefinition",
|
|
593
|
+
"ActionStatusRegistry",
|
|
594
|
+
"SchedulerProtocol",
|
|
595
|
+
"SequentialScheduler",
|
|
596
|
+
"RoundRobinScheduler",
|
|
597
|
+
"RandomOrderScheduler",
|
|
598
|
+
"EnergyPriorityScheduler",
|
|
599
|
+
"FitnessWeightedScheduler",
|
|
600
|
+
"TopologyProtocol",
|
|
601
|
+
"ClosedTopology",
|
|
602
|
+
"OpenTopology",
|
|
603
|
+
"WrapTopology",
|
|
604
|
+
"CylinderTopology",
|
|
605
|
+
"TorusTopology",
|
|
606
|
+
"MobiusTopology",
|
|
607
|
+
"score_adf_pattern",
|
|
608
|
+
"propose_dynamic_vocabulary",
|
|
609
|
+
"macro_from_proposal",
|
|
610
|
+
"extend_codon_table_with_adfs",
|
|
611
|
+
"expand_adf_macro",
|
|
612
|
+
"detect_adf_patterns",
|
|
613
|
+
"NexusSignal",
|
|
614
|
+
"DynamicVocabularyState",
|
|
615
|
+
"DynamicVocabularyConfig",
|
|
616
|
+
"CausalCapsule",
|
|
617
|
+
"CausalCapsuleAdoptionPolicy",
|
|
618
|
+
"CapsuleEmissionResult",
|
|
619
|
+
"CapsuleEmissionConfig",
|
|
620
|
+
"ADFProposal",
|
|
621
|
+
"ADFPattern",
|
|
622
|
+
"ADFMacro",
|
|
623
|
+
"ADFExpansionResult",
|
|
624
|
+
"ADFDetectionResult",
|
|
625
|
+
"ADFCompressionScore",
|
|
626
|
+
"update_causal_graph_from_trace",
|
|
627
|
+
"update_causal_graph_from_memory",
|
|
628
|
+
"update_causal_graph_from_step",
|
|
629
|
+
"predict_next_outcome",
|
|
630
|
+
"evaluate_prediction",
|
|
631
|
+
"CausalPrediction",
|
|
632
|
+
"CausalPredictionEvaluation",
|
|
633
|
+
"CausalUpdateInput",
|
|
634
|
+
"CausalUpdateResult",
|
|
635
|
+
"CausalNode",
|
|
636
|
+
"CausalGraphUpdateResult",
|
|
637
|
+
"CausalGraphConfig",
|
|
638
|
+
"CausalGraph",
|
|
639
|
+
"CausalEdge",
|
|
640
|
+
"OffspringPlacementPolicy",
|
|
641
|
+
"MemoryWriteResult",
|
|
642
|
+
"EpisodicMemoryConfig",
|
|
643
|
+
"EpisodicMemory",
|
|
644
|
+
"EpisodicEvent",
|
|
645
|
+
"decide_learning_update",
|
|
646
|
+
"consolidate_memory",
|
|
647
|
+
"MemoryConsolidationResult",
|
|
648
|
+
"LearningUpdateDecision",
|
|
649
|
+
"LearningATPConfig",
|
|
650
|
+
"describe_behavior",
|
|
651
|
+
"BehaviorDescriptor",
|
|
652
|
+
"Action",
|
|
653
|
+
"ActionContext",
|
|
654
|
+
"ActionHandler",
|
|
655
|
+
"ActionName",
|
|
656
|
+
"ActionRegistry",
|
|
657
|
+
"ActionResult",
|
|
658
|
+
"ActionStatus",
|
|
659
|
+
"Agent",
|
|
660
|
+
"AgentFactory",
|
|
661
|
+
"AgentProfile",
|
|
662
|
+
"AgentSpec",
|
|
663
|
+
"ATPAccount",
|
|
664
|
+
"ATPBudget",
|
|
665
|
+
"ATPLedgerEntry",
|
|
666
|
+
"CodonTraceError",
|
|
667
|
+
"CausalReplay",
|
|
668
|
+
"Codon",
|
|
669
|
+
"CodonTable",
|
|
670
|
+
"ConfigurationError",
|
|
671
|
+
"EnergyEffect",
|
|
672
|
+
"AliveGateConfig",
|
|
673
|
+
"AliveGateResult",
|
|
674
|
+
"CompiledBrain",
|
|
675
|
+
"CompiledToken",
|
|
676
|
+
"DualATPBudget",
|
|
677
|
+
"ElementCell",
|
|
678
|
+
"ElementGrid",
|
|
679
|
+
"ElementKind",
|
|
680
|
+
"ElementOrigin",
|
|
681
|
+
"ElementRuleConfig",
|
|
682
|
+
"ElementSpec",
|
|
683
|
+
"ElementStepResult",
|
|
684
|
+
"GenesisATPState",
|
|
685
|
+
"GenesisCodonTable",
|
|
686
|
+
"FitnessConfig",
|
|
687
|
+
"FitnessResult",
|
|
688
|
+
"GenerationResult",
|
|
689
|
+
"LineageRecord",
|
|
690
|
+
"MutationConfig",
|
|
691
|
+
"MutationResult",
|
|
692
|
+
"OrganismStepRecord",
|
|
693
|
+
"PopulationCausalSummary",
|
|
694
|
+
"PopulationConfigs",
|
|
695
|
+
"PopulationRunner",
|
|
696
|
+
"PopulationState",
|
|
697
|
+
"ReproductionConfig",
|
|
698
|
+
"ReproductionDecision",
|
|
699
|
+
"ReproductionResult",
|
|
700
|
+
"can_reproduce",
|
|
701
|
+
"evaluate_fitness",
|
|
702
|
+
"mutate_genome",
|
|
703
|
+
"reproduce",
|
|
704
|
+
"step_population",
|
|
705
|
+
"GenesisOrganism",
|
|
706
|
+
"GenesisRunResult",
|
|
707
|
+
"Ribosome",
|
|
708
|
+
"TranslationResult",
|
|
709
|
+
"element_grid_to_world2d",
|
|
710
|
+
"elements_to_dicts",
|
|
711
|
+
"evaluate_alive",
|
|
712
|
+
"get_element_spec",
|
|
713
|
+
"world2d_to_element_grid",
|
|
714
|
+
"Experiment",
|
|
715
|
+
"Explanation",
|
|
716
|
+
"Genome",
|
|
717
|
+
"GenomeStrategy",
|
|
718
|
+
"GenomeStrategyHandler",
|
|
719
|
+
"InitializationConfig",
|
|
720
|
+
"InsufficientATPError",
|
|
721
|
+
"InvalidDensityError",
|
|
722
|
+
"InvalidWorldSizeError",
|
|
723
|
+
"LineageConfig",
|
|
724
|
+
"Mutation",
|
|
725
|
+
"MutationLog",
|
|
726
|
+
"PerturbationResult",
|
|
727
|
+
"PlacementError",
|
|
728
|
+
"PlacementStrategy",
|
|
729
|
+
"PluginError",
|
|
730
|
+
"ReplayError",
|
|
731
|
+
"ReplayResult",
|
|
732
|
+
"ReplaySnapshot",
|
|
733
|
+
"ObstacleConfig",
|
|
734
|
+
"ResourceConfig",
|
|
735
|
+
"Scenario",
|
|
736
|
+
"ScenarioAgentProfile",
|
|
737
|
+
"ScenarioConfig",
|
|
738
|
+
"ScenarioFactory",
|
|
739
|
+
"ScenarioResult",
|
|
740
|
+
"ScenarioValidationError",
|
|
741
|
+
"RNGManager",
|
|
742
|
+
"RunResult",
|
|
743
|
+
"SemanticGenome",
|
|
744
|
+
"Simulation",
|
|
745
|
+
"SimulationConfig",
|
|
746
|
+
"SimulationResult",
|
|
747
|
+
"RunRecorder",
|
|
748
|
+
"TimelineFrame",
|
|
749
|
+
"TimelineReplayResult",
|
|
750
|
+
"WorldEvent",
|
|
751
|
+
"Trace",
|
|
752
|
+
"TraceEvent",
|
|
753
|
+
"UnsupportedActionError",
|
|
754
|
+
"WhiteBoxAgent",
|
|
755
|
+
"WorldConfig",
|
|
756
|
+
"WorldFactory",
|
|
757
|
+
"World2D",
|
|
758
|
+
"WorldView",
|
|
759
|
+
"WorldObject",
|
|
760
|
+
"default_action_registry",
|
|
761
|
+
"discover_action_plugins",
|
|
762
|
+
"__version__",
|
|
763
|
+
]
|
|
764
|
+
|
|
765
|
+
# Strong library Phase 1 convenience exports.
|
|
766
|
+
from codontrace.rng import NumpyGeneratorBackend, RNGManagerBackend, RNGProtocol
|
|
767
|
+
|
|
768
|
+
__all__.extend(["RNGProtocol", "RNGManagerBackend", "NumpyGeneratorBackend"])
|