This release is a pre-release and may not be stable for production use.
CodonTrace Genesis
Replayable digital evolution, causal mechanism auditing, and evidence-gated ALife research software.
CodonTrace Genesis is a Python library for running small digital-evolution experiments that you can replay later. You start a tiny world, let simple agents eat, survive, and reproduce, and the library writes down what happened as checkable records. Use it when you want to test an evolutionary idea with evidence instead of a screenshot. It is research software. It does not claim that the agents are intelligent.
The installable package is codontrace. Product naming for contributors
lives in CONTRIBUTING.md and STYLE.md.
What it is
- a Python research library for controlled digital-evolution and ALife experiments
- a replay / audit-first evidence layer (specs, runtime digests, manifests)
- a mechanism instrumentation toolkit (ablations, treatment/control, delayed outcomes)
- a claim-gated workflow: software capability and runtime observations are allowed; strong scientific conclusions are not auto-promoted
What it is not
CodonTrace Genesis is not currently presented as:
- proof of artificial general intelligence, consciousness, or collective intelligence
- proof of open-ended intelligence, or a Tokyo Type 1 pass (Channon 2024)
- a biological evolution simulator or wet-lab chemistry engine
- a replacement for Avida, MABE, DEAP, QDax, pyribs, or similar tools
The project is ambitious. Claims must pass evidence gates. See CLAIMS.md and docs/WHY_NOT_INTELLIGENCE_YET.md.
Status
| Field | Current status |
|---|---|
| Package | codontrace |
| Public PyPI tip | 0.3.0b3 — Phase A–G (life-loop + materials). Confirm on PyPI. |
GitHub main / this PR |
Development identity 0.3.0b4.dev0 (Phases H–L plus hygiene / hard experiment 01). |
| Python | 3.11–3.14 |
| DOI | 10.5281/zenodo.20337435 |
| License | AGPL-3.0-or-later |
| Claim ceiling | Research software and evidence infrastructure. Not a proof of AGI, consciousness, collective intelligence, Tokyo Type 1 passed, or Avida replacement. |
Phases A–L
Phases A–G are the public 0.3.0b3 substrate. Phases H–L are on main only until a later release.
| Phase | What landed | Claim ceiling |
|---|---|---|
| A | Darwinian life-loop ecology preset (life_loop_world: eat → survive → asexual reproduce) |
runtime_observation |
| B | Avida-parity sexual recombination (opt-in; defaults stay asexual) | runtime_observation |
| C | Dynamic / fluctuating environment (chemostat, regimes, patches) | runtime_observation |
| D | Multi-generation evidence pack; Tokyo Type 1 measurement only | oee_measurement_only / tokyo_type1_measurement_only |
| E | Capsule / memory / role / deme substrate (opt-in) | runtime_observation |
| F | Multi-seed deme payoff campaigns; division-of-labor metrics | runtime_observation |
| G | Named-materials / chemistry-effect overlay (opt-in) | runtime_observation |
| H | Literature RAG; communication-ablation and group-vs-individual harnesses | runtime_observation |
| I | Heldout partners; evolved DoL; MLS outcome; export-of-fitness scaffold | runtime_observation; flags earned at research scale only; smoke never earns |
| J | Independent digest replay; Price-equation scaffold | collective_intelligence_candidate only with full honest flags including replay |
| K | Coordination-instruction analog; Goldsby-scale CPU-delay harness; Price transmission; conflict-suppression hooks | runtime_observation; smoke never earns |
| L | Closer Avida ORGANISM_MESSAGING / DEME_GROUP analogs; Goldsby-aligned specialist measurement |
runtime_observation; analog, not an Avida C++ port |
Allowed when the evidence objects actually exist: runtime_observation, oee_measurement_only, tokyo_type1_measurement_only, and collective_intelligence_candidate (full honest flags only, including replay).
Still blocked: bare collective_intelligence, intelligence, AGI, tokyo_type1_passed, Avida replacement, and related aliases. Smoke never auto-sets ClaimGate flags. Digests are never faked.
North star: eventually produce honest collective-work / intelligence-pathway outputs. That is not the same as unlocking those claims.
Installation
The published wheel is codontrace==0.3.0b3 (Phases A–G). This branch reports development identity 0.3.0b4.dev0 (H–L plus hygiene / hard experiment 01). Install from source if you need the post–Phase G pathway code.
Python 3.11–3.14. CI smokes ubuntu-latest, windows-latest, and macos-latest on that range.
From PyPI (0.3.0b3)
pip install codontrace==0.3.0b3
Optional research extras:
pip install "codontrace[research]==0.3.0b3"
pip install "codontrace[causal]==0.3.0b3"
pip install "codontrace[qd]==0.3.0b3"
From source (main, may be ahead of PyPI)
git clone https://github.com/Parvaz-Jamei/codontrace-genesis.git
cd codontrace-genesis
python -m pip install -e ".[dev,research,causal,qd]"
python -c "import codontrace; print(codontrace.__version__)"
A PyPI install of the current tip should print 0.3.0b3. This checkout prints 0.3.0b4.dev0. Do not treat the version tuple as a phase fence.
Quick start
Use the beginner API first. It keeps setup small and returns the agent, world, trace, and optional explanation without manually creating low-level runtime objects.
from codontrace import WhiteBoxAgent, World2D
world = World2D.from_ascii("""
....
.A*.
....
""")
agent = WhiteBoxAgent.from_world(world, genome="101111000", initial_atp=5.0)
result = agent.run_trial(world, steps=3, explain=True)
print(result.agent.position)
print(result.explanation.summary if result.explanation else "no explanation")
Core API
For Genesis-level research runs, use the explicit experiment spec and engine APIs.
from codontrace.genesis import GenesisEngine, GenesisExperimentSpec
spec = GenesisExperimentSpec(seed=42, tick_count=32, population_max=8)
result = GenesisEngine.from_spec(spec).run_ticks()
print(result.digest()[:24])
print(len(result.engine_frames))
Short eat → survive → reproduce experiments should use
GenesisRuntimeProfile.life_loop_world() instead of empty research defaults
(ResourceConfig.density=0, ReproductionConfig SAME_CELL). The preset is a
Darwinian life-loop substrate. It is not an Avida replacement.
from codontrace.genesis import GenesisEngine, GenesisRuntimeProfile
spec = GenesisRuntimeProfile.life_loop_world(seed=7, tick_count=12, population=6)
result = GenesisEngine.from_spec(spec).run_ticks()
print(result.digest()[:24])
Opt-in presets and measurement packs (sexual recombination, fluctuating environments, multi-generation / Tokyo Type 1 measurement, Phase E substrate, materials, RAG, and H–L CI harnesses) are library APIs with the ceilings in the status table. Defaults stay off so A–E digest pins remain stable.
Print-only smokes live under examples/.
Benchmark smoke
The smoke runner is a functionality and artifact-generation check. It is not a proof of collective intelligence.
python -m pytest tests/examples/test_collective_joss_evidence_benchmark_smoke.py -q
PYTHONPATH=src python examples/collective_joss_evidence_benchmark.py --out outputs/joss_evidence_smoke --profile smoke --seed-count 1 --ticks 3 --population 4 --workers 1 --max-runs 6 --per-run-timeout 90
Expected core artifacts: run_config.json, summary.json, run_records.csv,
feature_matrix.csv, counterfactual_pairs.csv, claim_readiness.json,
artifact_manifest.json, environment.txt, report.html.
Levels and interpretation: BENCHMARKS.md.
Claim policy
| Claim level | Meaning |
|---|---|
| Software capability | The mechanism / API / record exists and is testable |
| Runtime observation | The mechanism was observed in a valid run |
| Candidate evidence | Treatment / control comparison exists |
| Mechanism support | Ablation / intervention / counterfactual-style evidence supports a mechanism |
| Replicated effect | Effect is stable across enough seeds / configurations |
| Publication-grade claim | Archived artifacts, statistics, controls, and limitations are available |
ScientificClaimGate can allow collective_intelligence_candidate only when
the full honest flag set is present, including replay. It does not allow
bare collective_intelligence, intelligence, AGI, tokyo_type1_passed, or
Avida replacement.
Full policy: CLAIMS.md.
Next steps
Library-complete beta is not “done.” The next work is not more empty Phase letters.
- Hygiene — keep
mainfree of probe junk and claim-language drift. - Widen CI — more of the existing suite on hosted runners, still honest.
HARD_EXPERIMENT_01— one hard division-of-labor / ablation / isolation experiment, not another scaffold. Wave 2 adds a standalone ClaimGate auditor around that evidence; it does not raise the ceiling.- Candidate —
collective_intelligence_candidateonly if the full honest flags, including replay, are actually earned. - Goldsby-grade — literature-scale specialist / messaging work;
is_goldsby_2012_pnas_experimentstays false until that experiment exists. - OEE later — Tokyo Type 1 pass and open-ended intelligence remain blocked until evidence exists.
Architecture
GenesisExperimentSpec
│
▼
Engine / population / runtime modules
│
▼
GenesisRunResult
│
├── runtime records
├── artifact digests
├── replay policies
├── evidence manifests
├── causal mechanism reports
└── claim-gated summaries
A feature is scientifically useful only when it is wired through configuration, runtime behavior, records, digests, manifests, examples, tests, and claim boundaries.
Documentation
| Document | Purpose |
|---|---|
CLAIMS.md |
Allowed, candidate, and blocked claims |
docs/WHY_NOT_INTELLIGENCE_YET.md |
Literature-vs-reality barrier map; not close to AGI |
docs/PHASE_H_CI_AI_PATH.md |
Phase H: RAG + ablation / effect-size harnesses |
docs/PHASE_I_CI_EVIDENCE.md |
Phase I: heldout / evolved DoL / MLS / export-of-fitness |
docs/PHASE_J_REPLAY_CI.md |
Phase J: honest digest replay + Price scaffold |
docs/PHASE_K_CI_DEPTH.md |
Phase K: coordination, Goldsby-scale harness, Price transmission |
docs/PHASE_INDEX.md |
Pointer index for Phases H–L and honesty docs |
docs/PHASE_L_AVIDA_FIDELITY.md |
Phase L: ORGANISM_MESSAGING / DEME_GROUP analogs |
docs/HARD_EXPERIMENT_01.md |
Hard experiment 01: capsule source-bias measurement paper (not a Phase M) |
docs/CLAIMGATE_STANDALONE.md |
Wave 2 simulator-agnostic ClaimGate auditor (public 0–5; not a Tokyo/OEE pass) |
docs/ENGINE_REPLAY_CONTRACT.md |
Replay hashes and run-identity types extracted from engine.py |
CONTRIBUTING.md / STYLE.md |
Product naming: CodonTrace Genesis; package codontrace |
docs/SCIENTIFIC_AUTHORITIES_2026.md |
Feature × authority matrix (landed / partial / deferred) |
docs/rag/README.md |
Literature RAG corpus (measurement design, not intelligence evidence) |
REPRODUCIBILITY.md |
Install, validation tiers, artifact preservation |
BENCHMARKS.md |
Benchmark protocols and claim boundaries |
RELEASE_EVIDENCE.md |
Release evidence for the public 0.3.0b3 wheel |
Phase literature checklists: PHASE_D_LITERATURE.md,
PHASE_E_LITERATURE.md,
PHASE_G_MATERIALS_LITERATURE.md.
Studio / performance notes stay out of core:
STUDIO_BOUNDARY.md.
Testing
python -m compileall -q src tests examples tools
python -m pytest tests/genesis_gates -q
python -m pytest tests/science_gates -q
python -m pytest tests/examples/test_collective_joss_evidence_benchmark_smoke.py -q
python -m pytest tests -q
Validation tiers: REPRODUCIBILITY.md.
Citation
If you use CodonTrace Genesis in research, prototypes, technical evaluation, benchmark work, reports, or derivative research artifacts, please cite the versioned software release.
@software{codontrace_genesis_2026,
title = {CodonTrace Genesis},
author = {Jamei, Parvaz},
version = {0.3.0b3},
doi = {10.5281/zenodo.20337435},
url = {https://github.com/Parvaz-Jamei/codontrace-genesis}
}
A CITATION.cff file is included for citation-aware tools.
Use of the software does not automatically imply co-authorship. Co-authorship may be appropriate when there is substantial collaboration in experimental design, analysis, interpretation, validation, or manuscript writing.
License
CodonTrace Genesis is licensed under the GNU Affero General Public License
v3.0 or later (AGPL-3.0-or-later).
This license is selected to keep modified, redistributed, and network-deployed versions open, attributable, and scientifically inspectable.
Commercial or proprietary use cases that cannot comply with AGPL-3.0-or-later
may contact the author for a separate commercial license.
Author
Parvaz Jamei Embedded / Industrial IoT / Edge AI / Digital Evolution Research Software
GitHub: @Parvaz-Jamei
CodonTrace Genesis Replayable evidence for digital evolution, causal mechanisms, and ALife research.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codontrace-0.3.0b4.dev0.tar.gz.
File metadata
- Download URL: codontrace-0.3.0b4.dev0.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23cb39b2e627b9ae9c238494ef8d89d7d96013f6298ea96fcd2462d86f9cfabd
|
|
| MD5 |
060bd46e1cb0db57a9ec6c3f79687702
|
|
| BLAKE2b-256 |
054a4e59b1ce1417943f623790aa061e5af876508bfe5b1f4c3fdb54ee687959
|
Provenance
The following attestation bundles were made for codontrace-0.3.0b4.dev0.tar.gz:
Publisher:
publish-pypi.yml on Parvaz-Jamei/codontrace-genesis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codontrace-0.3.0b4.dev0.tar.gz -
Subject digest:
23cb39b2e627b9ae9c238494ef8d89d7d96013f6298ea96fcd2462d86f9cfabd - Sigstore transparency entry: 2818122005
- Sigstore integration time:
-
Permalink:
Parvaz-Jamei/codontrace-genesis@bea3ce25b06174e3392420b82a02084db50a8fca -
Branch / Tag:
refs/tags/v0.3.0b4.dev0-he02-prereg - Owner: https://github.com/Parvaz-Jamei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@bea3ce25b06174e3392420b82a02084db50a8fca -
Trigger Event:
release
-
Statement type:
File details
Details for the file codontrace-0.3.0b4.dev0-py3-none-any.whl.
File metadata
- Download URL: codontrace-0.3.0b4.dev0-py3-none-any.whl
- Upload date:
- Size: 889.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef495befbe59bbae60a9ab720daf61d539921ea67df379e900bf517d5e84efb3
|
|
| MD5 |
38cc2b688ca456518062e453be428020
|
|
| BLAKE2b-256 |
31e3441d64a604b41a2e9d58b668502b8476e9ea0698f770d32d98de63a404db
|
Provenance
The following attestation bundles were made for codontrace-0.3.0b4.dev0-py3-none-any.whl:
Publisher:
publish-pypi.yml on Parvaz-Jamei/codontrace-genesis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codontrace-0.3.0b4.dev0-py3-none-any.whl -
Subject digest:
ef495befbe59bbae60a9ab720daf61d539921ea67df379e900bf517d5e84efb3 - Sigstore transparency entry: 2818122020
- Sigstore integration time:
-
Permalink:
Parvaz-Jamei/codontrace-genesis@bea3ce25b06174e3392420b82a02084db50a8fca -
Branch / Tag:
refs/tags/v0.3.0b4.dev0-he02-prereg - Owner: https://github.com/Parvaz-Jamei
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@bea3ce25b06174e3392420b82a02084db50a8fca -
Trigger Event:
release
-
Statement type: