Skip to content

About

Illegal-states-unrepresentable design in strongly-typed Python, demonstrated on a decentralized ant-robot colony simulation: algebraic data types, session-typed protocol phases, affine transaction handles, nominal AgentId/TxnId types, a fault-injectable message bus, and active-inference agents minimizing expected free energy.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Formal — Strongly-Typed Multiagent Ant-Robot Colony Exemplar

Research project demonstrating illegal-states-unrepresentable design — algebraic data types, session-typed protocol state machines, and affine-discipline resource handles — applied to a decentralized multiagent simulation. Exemplar roster: projects/AGENTS.md.

Start with the documentation for setup, tests, analysis, and rendering. The manuscript presents the experiment and scopes the static, runtime, and optional formal guarantees. See the fork guide to adapt the exemplar.

Publication and rendering

The publishing metadata and per-platform status below are compiled from docs/manuscript/config.yaml by infrastructure.publishing.status_report — do not hand-edit between the markers; update the config and regenerate (see the legend).

Illegal States, Mostly Unrepresentable · v0.1.0 · MIT · Daniel Ari Friedman

Concept DOI: 10.5281/zenodo.21298885 | Version DOI: 10.5281/zenodo.21298886 | Repository: docxology/template_formal

Publishing surface — 20 platforms, 2 published:

Platform Tier Status Reference Credentials
zenodo first-class ✅ published 10.5281/zenodo.21298885 ZENODO_API_TOKEN
github first-class ✅ published docxology/template_formal GITHUB_TOKEN
arxiv first-class ⚪ available — —
pypi first-class ⚪ available — PYPI_TOKEN, TESTPYPI_TOKEN
ipfs_pinata first-class ⚪ available — PINATA_JWT
ipfs_web3storage first-class ⚪ available — WEB3_STORAGE_TOKEN
software_heritage first-class ⚪ available — —
github_pages first-class ⚪ available docxology/template_formal GITHUB_TOKEN
cloudflare_pages first-class ⚪ available — CLOUDFLARE_API_TOKEN
netlify first-class ⚪ available — NETLIFY_AUTH_TOKEN
huggingface_hub first-class ⚪ available — HUGGINGFACE_TOKEN, HF_TOKEN
osf first-class ⚪ available — OSF_TOKEN
amazon_kdp documented 🟡 planned — AMAZON_KDP_EMAIL, AMAZON_KDP_PASSWORD
google_play_books documented 🟡 planned — GOOGLE_PLAY_BOOKS_SERVICE_ACCOUNT_JSON
gumroad documented 🟡 planned — GUMROAD_ACCESS_TOKEN
leanpub documented 🟡 planned — LEANPUB_API_KEY
lulu documented 🟡 planned — LULU_CLIENT_KEY, LULU_CLIENT_SECRET
draft2digital documented 🟡 planned — DRAFT2DIGITAL_API_TOKEN
stripe documented 🟡 planned — STRIPE_SECRET_KEY, STRIPE_PUBLISHABLE_KEY
ingramspark documented 🟡 planned — INGRAMSPARK_CLIENT_ID, INGRAMSPARK_CLIENT_SECRET

Keywords: strongly typed programming, session types, algebraic data types, category theory, active inference, multiagent systems, affine types, illegal state unrepresentable.

Status legend: ✅ published (durable identifier recorded in config.yaml) · 🔵 reserved (identifier reserved but not yet registered by final publication) · ⚪ available (adapter implemented and locally verifiable) · 🟡 planned. This block is generated — edit docs/manuscript/config.yaml, then regenerate with uv run python -m infrastructure.publishing.status_report --project <path> --write.

About

Illegal-states-unrepresentable design in strongly-typed Python, demonstrated on a decentralized ant-robot colony simulation: algebraic data types, session-typed protocol phases, affine transaction handles, nominal AgentId/TxnId types, a fault-injectable message bus, and active-inference agents minimizing expected free energy.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages