Skip to main content

CodonTrace Genesis: deterministic research-beta engine for digital evolution, causal mechanism auditing, capsule-mediated transfer, skill compression, role emergence, and replayable evidence artifacts.

Project description

CodonTrace Genesis

Replayable digital evolution, causal mechanism auditing, and evidence-gated ALife research software.

PyPI Python CI DOI License: AGPL v3+

CodonTrace Genesis is a Python research library for building, replaying, auditing, and evaluating digital-evolution experiments with deterministic evidence trails, mechanism-level records, controlled ablations, and explicit claim gates.

It is built for researchers and developers who want to test ALife and evolutionary-AI hypotheses with replayable evidence rather than final-outcome screenshots or unverifiable claims.


At a glance

Field Current status
Package codontrace
Public beta 0.3.0b1
Python 3.11–3.14 verified; latest stable checked for this beta line: 3.14.5
DOI 10.5281/zenodo.20337435
License AGPL-3.0-or-later
Main focus Digital evolution, causal audit, replayable ALife experiments, benchmark protocols, claim-gated evidence
Claim boundary Research software and evidence infrastructure; not a final proof of AGI, consciousness, collective intelligence, or benchmark superiority

Why CodonTrace Genesis?

Digital-evolution and artificial-life experiments often produce fascinating behavior, but the hard part is not only running the simulation.

The hard part is answering questions like:

  • Can the result be replayed?
  • Which mechanism changed the outcome?
  • Did memory influence later action?
  • Did a signal become useful, or was it just present?
  • Did inherited compression improve child outcomes?
  • Did a role actually matter when ablated?
  • Did a group outperform individual/control baselines?
  • Which claims are supported, and which claims must stay blocked?

CodonTrace Genesis focuses on that evidence layer.

It provides a deterministic, library-first substrate for experiments involving mutation, birth, death, reproduction, lineage, memory, capsule-mediated signaling, role instrumentation, quality-diversity, open-endedness-oriented metrics, and controlled claim review.


What it is

CodonTrace Genesis is:

  • a Python research library for controlled digital-evolution and ALife experiments,
  • a replay/audit-first evidence layer,
  • a mechanism instrumentation toolkit,
  • a benchmarkable research-software package,
  • a claim-gated workflow for scientific discipline.

What it is not

CodonTrace Genesis is not currently presented as:

  • proof of artificial general intelligence,
  • proof of consciousness,
  • proof of collective intelligence,
  • proof of open-ended intelligence as a settled result,
  • a biological evolution simulator,
  • a replacement for Avida, MABE, DEAP, QDax, pyribs, or similar tools.

The project is ambitious, but claims must pass evidence gates.


Research transparency

CodonTrace keeps the most important scientific boundaries in separate reviewable documents:

Document Purpose
CLAIMS.md Allowed, candidate, and blocked claims for the current public-beta release
docs/STUDIO_PHASE1_EXECUTION_SPEC.html + docs/STUDIO_PHASE1_EXECUTION_SPEC.md Phase 1 Studio handoff while keeping this repo a core library; HTML for designed handoff, Markdown for GitHub review
docs/STUDIO_BOUNDARY.md Boundary policy preventing UI/server drift into core
docs/PERFORMANCE_PHASE1.md Safe live-performance plan without changing scientific semantics
REPRODUCIBILITY.md Installation, validation tiers, benchmark execution, artifact preservation, and version discipline
BENCHMARKS.md Benchmark protocols, runner commands, smoke result interpretation, artifact policy, and claim boundaries

These documents are part of the research-software design, not just documentation polish.


Key capabilities

Area Capability
Digital evolution Genome, mutation, birth, death, reproduction gates, lineage, selection, survival diagnostics
Replayability Deterministic experiment specs, runtime digests, replay records, artifact manifests
Evidence integrity Claim manifests, blocked reasons, output completeness, export status, negative evidence handling
Causal mechanisms Ablation policies, treatment/control variants, delayed outcome windows, counterfactual-style summaries
Capsule signaling Capsule transfer, adoption, utility scoring, source-fitness controls, cost records
Memory and learning Memory-use records, delayed reward surfaces, signal-memory-action paths
Skill compression Skill-compression policies, inheritance records, child outcome audit surfaces
Roles and social behavior Role persistence, role contribution, partner interaction, social instrumentation
Quality diversity QD selection audit, parent feedback audit, diversity-oriented evidence records
Open-endedness Novelty, complexity, adaptive success, lineage persistence, behavior-space expansion, learnability
Reviewability Tests, examples, benchmark runner, citation metadata, release evidence, DOI, AGPL license

Installation

Compatibility note: this beta line is verified for Python 3.11, 3.12, 3.13, and 3.14 on OS-independent core code. Python 3.14.5 is the latest stable Python release checked for this handoff; Python 3.15+ must be added only after CI verification.

GitHub Actions compatibility

The release CI uses a real cross-OS smoke matrix for ubuntu-latest, windows-latest, and macos-latest across Python 3.11, 3.12, 3.13, and 3.14. The workflows intentionally use current official action majors checked for this beta handoff: actions/checkout@v6, actions/setup-python@v6, actions/upload-artifact@v7, and actions/download-artifact@v8.

From PyPI

pip install codontrace==0.3.0b1

Optional research extras

pip install "codontrace[research]==0.3.0b1"
pip install "codontrace[causal]==0.3.0b1"
pip install "codontrace[qd]==0.3.0b1"

From source

git clone https://github.com/Parvaz-Jamei/codontrace-genesis.git
cd codontrace-genesis
python -m pip install -e ".[dev,research,causal,qd]"

Verify the installed version:

python -c "import codontrace; print(codontrace.__version__)"

Expected:

0.3.0b1

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))

Benchmark smoke

CodonTrace Genesis includes a lightweight benchmark runner for software review, reproducibility checks, and artifact-generation validation.

Smoke test

python -m pytest tests/examples/test_collective_joss_evidence_benchmark_smoke.py -q

Smoke benchmark

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

The smoke benchmark is a functionality and artifact-generation check. It is not a proof of collective intelligence.

For benchmark levels and interpretation rules, see BENCHMARKS.md.


Architecture

GenesisExperimentSpec
        │
        ▼
Engine / population / runtime modules
        │
        ▼
GenesisRunResult
        │
        ├── runtime records
        ├── artifact digests
        ├── replay policies
        ├── evidence manifests
        ├── causal mechanism reports
        └── claim-gated summaries

A feature is considered scientifically useful only when it is wired through configuration, runtime behavior, records, digests, manifests, examples, tests, and claim boundaries.


Core research mechanisms

Digital evolution substrate

CodonTrace records mutation, birth, death, reproduction gates, child admission, lineage growth, population dynamics, energy accounting, fitness breakdowns, and replay evidence.

Capsule-mediated signaling

Capsules are the canonical information-transfer primitive. They support controlled testing of transfer, adoption, utility, cost, source-fitness, and memory-link hypotheses.

Signal → memory → action audit

The library is designed to distinguish “a signal existed” from “a signal influenced memory, later action, and an outcome.”

Skill compression and inheritance

CodonTrace exposes skill-compression, inheritance, ADF, and child-outcome audit surfaces for testing whether compressed learned behavior changes offspring outcomes.

Role and social behavior

Role records, partner interactions, role contribution, role persistence, and heldout-partner protocols support careful study of social and collective-behavior hypotheses.

Quality diversity and open-endedness

QD and open-endedness-oriented records support descriptive and candidate evidence around diversity, novelty, complexity growth, adaptive success, lineage persistence, and learnability.


Claim policy

CodonTrace Genesis uses explicit claim levels.

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

Blocked for the current release unless future evidence gates pass:

  • proven AGI,
  • proven consciousness,
  • proven collective intelligence,
  • proven open-ended intelligence,
  • benchmark superiority over established tools,
  • causal claims without ablation or intervention evidence.

Full policy: CLAIMS.md.


Repository layout

codontrace-genesis/
├── src/codontrace/                # Library source
├── tests/                         # Unit, integration, science-gate, release, and example tests
├── examples/                      # Runnable examples and benchmark runners
├── docs/                          # Technical notes and extended documentation
├── .github/workflows/             # CI and publishing workflows
├── README.md                      # Public project overview
├── CLAIMS.md                      # Scientific claim policy
├── REPRODUCIBILITY.md             # Reproducibility and validation guide
├── BENCHMARKS.md                  # Benchmark protocols and interpretation rules
├── RELEASE_EVIDENCE.md            # Release evidence and claim boundaries
├── CITATION.cff                   # Citation metadata
├── CHANGELOG.md                   # Release history
├── pyproject.toml                 # Packaging metadata
├── LICENSE                        # AGPL-3.0-or-later license
└── NOTICE                         # Attribution and licensing notice

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

For validation tiers and heavier manual runs, see REPRODUCIBILITY.md.


Documentation map

Document Purpose
README.md Public project overview
CLAIMS.md Scientific claim policy and evidence levels
REPRODUCIBILITY.md Installation, validation tiers, artifact preservation, and version discipline
BENCHMARKS.md Benchmark protocols, runner commands, smoke result interpretation, and claim boundaries
RELEASE_EVIDENCE.md Release evidence and claim boundaries
CHANGELOG.md Release history
docs/ Technical notes and extended documentation
examples/ Runnable experiment examples and benchmark runners
tests/ Regression, science-gate, integration, release, and example smoke tests

Publication roadmap

CodonTrace Genesis is being prepared through staged research-software maturity:

  1. public GitHub beta,
  2. PyPI package,
  3. Zenodo DOI archival,
  4. claim/reproducibility/benchmark documentation,
  5. benchmark smoke artifacts,
  6. technical whitepaper,
  7. JOSS-style research software paper preparation,
  8. heavier multi-seed empirical campaigns,
  9. separate scientific papers for empirical claims if evidence gates pass.

JOSS is treated as a software-publication path. Strong scientific claims belong in separate empirical papers when evidence is sufficient.


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.0b1},
  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.

See LICENSE and NOTICE.


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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codontrace-0.3.0b1.tar.gz (732.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codontrace-0.3.0b1-py3-none-any.whl (546.2 kB view details)

Uploaded Python 3

File details

Details for the file codontrace-0.3.0b1.tar.gz.

File metadata

  • Download URL: codontrace-0.3.0b1.tar.gz
  • Upload date:
  • Size: 732.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codontrace-0.3.0b1.tar.gz
Algorithm Hash digest
SHA256 1629c29982b7b2e0e4fc5f89e61f52bd380bfc4f27cabe300236fa0f1a0c5375
MD5 f620fe6e7a4ed67c97d5c81eae08f8b7
BLAKE2b-256 2d498bf60c4f31c841ae0d10bda90a5d76fdbf06733b3e3978be624ac74d5cbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for codontrace-0.3.0b1.tar.gz:

Publisher: publish-pypi.yml on Parvaz-Jamei/codontrace-genesis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codontrace-0.3.0b1-py3-none-any.whl.

File metadata

  • Download URL: codontrace-0.3.0b1-py3-none-any.whl
  • Upload date:
  • Size: 546.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codontrace-0.3.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a795b4e044bc2b256ad4dfa353e2c9b78ac3bbff07160bcb5a5b2df0abb9979
MD5 84f2fd496e60a748bd128c54a6fa2b55
BLAKE2b-256 dc91042bb5fc2038557fed39f8e47eb696cab8790261139cbe6c23c22a1283c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for codontrace-0.3.0b1-py3-none-any.whl:

Publisher: publish-pypi.yml on Parvaz-Jamei/codontrace-genesis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page