diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3a3b7f2..00d5fa5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -9,7 +9,7 @@ SECURITY.md @hyperpolymath .github/workflows/ @hyperpolymath .machine_readable/ @hyperpolymath -contractiles/ @hyperpolymath +.machine_readable/contractiles/ @hyperpolymath # License files LICENSE @hyperpolymath diff --git a/.github/workflows/instant-sync.yml b/.github/workflows/instant-sync.yml index 8c3abd1..0c7ad78 100644 --- a/.github/workflows/instant-sync.yml +++ b/.github/workflows/instant-sync.yml @@ -17,6 +17,7 @@ jobs: timeout-minutes: 15 steps: - name: Trigger Propagation + if: ${{ secrets.FARM_DISPATCH_TOKEN != '' }} uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v3 with: token: ${{ secrets.FARM_DISPATCH_TOKEN }} @@ -33,7 +34,7 @@ jobs: - name: Confirm run: echo "::notice::Propagation triggered for ${{ github.event.repository.name }}" - - name: K9-SVC Validation - run: | - echo "K9-SVC validation" - [ -d .machine_readable/contractiles ] && echo "Contractiles present" || echo "No contractiles" + - name: K9-SVC Validation + run: | + echo "K9-SVC validation" + [ -d .machine_readable/contractiles ] && echo "Contractiles present" || echo "No contractiles" diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index f355a06..3756526 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -16,9 +16,11 @@ jobs: with: fetch-depth: 0 - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 + if: ${{ secrets.GITLAB_SSH_KEY != '' }} with: ssh-private-key: ${{ secrets.GITLAB_SSH_KEY }} - name: Mirror to GitLab + if: ${{ secrets.GITLAB_SSH_KEY != '' }} run: | ssh-keyscan -t ed25519 gitlab.com >> ~/.ssh/known_hosts git remote add gitlab git@gitlab.com:${{ vars.GITLAB_ORG || vars.MIRROR_ORG || github.repository_owner }}/${{ github.event.repository.name }}.git || true @@ -32,9 +34,11 @@ jobs: with: fetch-depth: 0 - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 + if: ${{ secrets.BITBUCKET_SSH_KEY != '' }} with: ssh-private-key: ${{ secrets.BITBUCKET_SSH_KEY }} - name: Mirror to Bitbucket + if: ${{ secrets.BITBUCKET_SSH_KEY != '' }} run: | ssh-keyscan -t ed25519 bitbucket.org >> ~/.ssh/known_hosts git remote add bitbucket git@bitbucket.org:${{ vars.BITBUCKET_ORG || vars.MIRROR_ORG || github.repository_owner }}/${{ github.event.repository.name }}.git || true @@ -48,9 +52,11 @@ jobs: with: fetch-depth: 0 - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 + if: ${{ secrets.CODEBERG_SSH_KEY != '' }} with: ssh-private-key: ${{ secrets.CODEBERG_SSH_KEY }} - name: Mirror to Codeberg + if: ${{ secrets.CODEBERG_SSH_KEY != '' }} run: | ssh-keyscan -t ed25519 codeberg.org >> ~/.ssh/known_hosts git remote add codeberg git@codeberg.org:${{ vars.CODEBERG_ORG || vars.MIRROR_ORG || github.repository_owner }}/${{ github.event.repository.name }}.git || true @@ -64,9 +70,11 @@ jobs: with: fetch-depth: 0 - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 + if: ${{ secrets.SOURCEHUT_SSH_KEY != '' }} with: ssh-private-key: ${{ secrets.SOURCEHUT_SSH_KEY }} - name: Mirror to SourceHut + if: ${{ secrets.SOURCEHUT_SSH_KEY != '' }} run: | ssh-keyscan -t ed25519 git.sr.ht >> ~/.ssh/known_hosts git remote add sourcehut git@git.sr.ht:~${{ vars.SOURCEHUT_ORG || vars.MIRROR_ORG || github.repository_owner }}/${{ github.event.repository.name }} || true @@ -80,9 +88,11 @@ jobs: with: fetch-depth: 0 - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 + if: ${{ secrets.DISROOT_SSH_KEY != '' }} with: ssh-private-key: ${{ secrets.DISROOT_SSH_KEY }} - name: Mirror to Disroot + if: ${{ secrets.DISROOT_SSH_KEY != '' }} run: | ssh-keyscan -t ed25519 git.disroot.org >> ~/.ssh/known_hosts git remote add disroot git@git.disroot.org:${{ vars.DISROOT_ORG || vars.MIRROR_ORG || github.repository_owner }}/${{ github.event.repository.name }}.git || true @@ -96,9 +106,11 @@ jobs: with: fetch-depth: 0 - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 + if: ${{ secrets.GITEA_SSH_KEY != '' }} with: ssh-private-key: ${{ secrets.GITEA_SSH_KEY }} - name: Mirror to Gitea + if: ${{ secrets.GITEA_SSH_KEY != '' }} run: | ssh-keyscan -t ed25519 ${{ vars.GITEA_HOST }} >> ~/.ssh/known_hosts git remote add gitea git@${{ vars.GITEA_HOST }}:${{ vars.GITEA_ORG || vars.MIRROR_ORG || github.repository_owner }}/${{ github.event.repository.name }}.git || true @@ -121,6 +133,7 @@ jobs: cargo install radicle-cli --locked echo "$HOME/.cargo/bin" >> $GITHUB_PATH - name: Mirror to Radicle + if: ${{ secrets.RADICLE_KEY != '' }} run: | echo "${{ secrets.RADICLE_KEY }}" > ~/.radicle/keys/radicle chmod 600 ~/.radicle/keys/radicle diff --git a/.machine_readable/6a2/0-AI-MANIFEST.a2ml b/.machine_readable/6a2/0-AI-MANIFEST.a2ml index 6bf1f8c..22a6903 100644 --- a/.machine_readable/6a2/0-AI-MANIFEST.a2ml +++ b/.machine_readable/6a2/0-AI-MANIFEST.a2ml @@ -1,3 +1,11 @@ +# SPDX-License-Identifier: MPL-2.0 +# 0-AI-MANIFEST.a2ml — AI agent context for the 6a2 metadata directory + +[metadata] +name = "Cliodynamics.jl-6a2-manifest" +project = "Cliodynamics.jl" +schema_version = "1.0" + # AI Manifest for 6a2 Directory ## Purpose diff --git a/.machine_readable/6a2/AGENTIC.a2ml b/.machine_readable/6a2/AGENTIC.a2ml index 9931a7a..3d4791b 100644 --- a/.machine_readable/6a2/AGENTIC.a2ml +++ b/.machine_readable/6a2/AGENTIC.a2ml @@ -5,6 +5,8 @@ # Defines what AI agents can and cannot do in this repository. [metadata] +name = "Cliodynamics.jl-agentic" +project = "Cliodynamics.jl" version = "0.1.0" last-updated = "2026-03-16" diff --git a/.machine_readable/6a2/ECOSYSTEM.a2ml b/.machine_readable/6a2/ECOSYSTEM.a2ml index 3555ec1..a7eb08b 100644 --- a/.machine_readable/6a2/ECOSYSTEM.a2ml +++ b/.machine_readable/6a2/ECOSYSTEM.a2ml @@ -3,7 +3,9 @@ # Converted from ECOSYSTEM.scm on 2026-03-15 [metadata] +name = "Cliodynamics.jl-ecosystem" project = "Cliodynamics.jl" +version = "1.0" ecosystem = "hyperpolymath" [position] diff --git a/.machine_readable/6a2/NEUROSYM.a2ml b/.machine_readable/6a2/NEUROSYM.a2ml index 767d7dd..53d21b4 100644 --- a/.machine_readable/6a2/NEUROSYM.a2ml +++ b/.machine_readable/6a2/NEUROSYM.a2ml @@ -5,6 +5,8 @@ # Configuration for Hypatia scanning and symbolic reasoning. [metadata] +name = "Cliodynamics.jl-neurosym" +project = "Cliodynamics.jl" version = "0.1.0" last-updated = "2026-03-16" diff --git a/.machine_readable/6a2/PLAYBOOK.a2ml b/.machine_readable/6a2/PLAYBOOK.a2ml index a961250..248d4e7 100644 --- a/.machine_readable/6a2/PLAYBOOK.a2ml +++ b/.machine_readable/6a2/PLAYBOOK.a2ml @@ -5,6 +5,8 @@ # Runbooks, incident response, deployment procedures. [metadata] +name = "Cliodynamics.jl-playbook" +project = "Cliodynamics.jl" version = "0.1.0" last-updated = "2026-03-16" diff --git a/.machine_readable/6a2/anchor/0-AI-MANIFEST.a2ml b/.machine_readable/6a2/anchor/0-AI-MANIFEST.a2ml index 0dd6825..7e556d8 100644 --- a/.machine_readable/6a2/anchor/0-AI-MANIFEST.a2ml +++ b/.machine_readable/6a2/anchor/0-AI-MANIFEST.a2ml @@ -1,3 +1,11 @@ +# SPDX-License-Identifier: MPL-2.0 +# 0-AI-MANIFEST.a2ml — AI agent context for the anchor directory + +[metadata] +name = "Cliodynamics.jl-anchor-manifest" +project = "Cliodynamics.jl" +schema_version = "1.0" + # AI Manifest for Anchor Directory ## Purpose diff --git a/.machine_readable/6a2/anchor/ANCHOR.a2ml b/.machine_readable/6a2/anchor/ANCHOR.a2ml index 6e33572..4c6f04e 100644 --- a/.machine_readable/6a2/anchor/ANCHOR.a2ml +++ b/.machine_readable/6a2/anchor/ANCHOR.a2ml @@ -1,3 +1,11 @@ +# SPDX-License-Identifier: MPL-2.0 +# ANCHOR.a2ml — canonical authority anchor for Cliodynamics.jl + +[metadata] +name = "Cliodynamics.jl-anchor" +project = "Cliodynamics.jl" +schema_version = "1.0" + # ⚓ ANCHOR: Cliodynamics.jl # This is the canonical authority for the Cliodynamics.jl repository. diff --git a/.machine_readable/CLADE.a2ml b/.machine_readable/CLADE.a2ml index 516edb2..f9e2444 100644 --- a/.machine_readable/CLADE.a2ml +++ b/.machine_readable/CLADE.a2ml @@ -3,6 +3,9 @@ # See: https://github.com/hyperpolymath/gv-clade-index [identity] +name = "Cliodynamics.jl" +project = "Cliodynamics.jl" +version = "1.0" uuid = "963dd833-9895-5f04-9c7b-62a834b76e1c" primary-forge = "github" primary-owner = "hyperpolymath" diff --git a/.machine_readable/bot_directives/coverage.a2ml b/.machine_readable/bot_directives/coverage.a2ml index 6979664..6ac72c8 100644 --- a/.machine_readable/bot_directives/coverage.a2ml +++ b/.machine_readable/bot_directives/coverage.a2ml @@ -8,6 +8,9 @@ # Reference: ADR-002 in standards/agentic-a2ml/docs/ [metadata] +name = "Cliodynamics.jl-coverage" +project = "Cliodynamics.jl" +schema_version = "1.0" version = "1.0.0" last-updated = "2026-03-24" diff --git a/.machine_readable/bot_directives/debt.a2ml b/.machine_readable/bot_directives/debt.a2ml index c0238c5..6f2c707 100644 --- a/.machine_readable/bot_directives/debt.a2ml +++ b/.machine_readable/bot_directives/debt.a2ml @@ -8,6 +8,9 @@ # Reference: ADR-002 in standards/agentic-a2ml/docs/ [metadata] +name = "Cliodynamics.jl-debt" +project = "Cliodynamics.jl" +schema_version = "1.0" version = "1.0.0" last-updated = "2026-03-24" diff --git a/.machine_readable/bot_directives/git-private-farm.a2ml b/.machine_readable/bot_directives/git-private-farm.a2ml index bdec7e1..88e861b 100644 --- a/.machine_readable/bot_directives/git-private-farm.a2ml +++ b/.machine_readable/bot_directives/git-private-farm.a2ml @@ -5,6 +5,9 @@ # workflow .github/workflows/instant-sync.yml (secret NAME only; no token values). [metadata] +name = "Cliodynamics.jl-git-private-farm" +project = "Cliodynamics.jl" +schema_version = "1.0" repo = "Cliodynamics.jl" last-updated = "2026-06-13" owner = "hyperpolymath" diff --git a/.machine_readable/bot_directives/gitbot-fleet.a2ml b/.machine_readable/bot_directives/gitbot-fleet.a2ml index d29216e..e056650 100644 --- a/.machine_readable/bot_directives/gitbot-fleet.a2ml +++ b/.machine_readable/bot_directives/gitbot-fleet.a2ml @@ -5,6 +5,9 @@ # the repo's existing bot_directives/*.a2ml and .github/workflows/*.yml. [metadata] +name = "Cliodynamics.jl-gitbot-fleet" +project = "Cliodynamics.jl" +schema_version = "1.0" repo = "Cliodynamics.jl" last-updated = "2026-06-13" owner = "hyperpolymath" diff --git a/.machine_readable/bot_directives/hypatia.a2ml b/.machine_readable/bot_directives/hypatia.a2ml index 3d9c7f0..6514cbe 100644 --- a/.machine_readable/bot_directives/hypatia.a2ml +++ b/.machine_readable/bot_directives/hypatia.a2ml @@ -4,6 +4,9 @@ # bot_directives standard (hypatia / gitbot-fleet / git-private-farm trio). [metadata] +name = "Cliodynamics.jl-hypatia" +project = "Cliodynamics.jl" +schema_version = "1.0" repo = "Cliodynamics.jl" last-updated = "2026-06-13" owner = "hyperpolymath" diff --git a/.machine_readable/bot_directives/methodology.a2ml b/.machine_readable/bot_directives/methodology.a2ml index 754f357..14c70b0 100644 --- a/.machine_readable/bot_directives/methodology.a2ml +++ b/.machine_readable/bot_directives/methodology.a2ml @@ -8,6 +8,9 @@ # Reference: ADR-002 in standards/agentic-a2ml/docs/ [metadata] +name = "Cliodynamics.jl-methodology" +project = "Cliodynamics.jl" +schema_version = "1.0" version = "1.0.0" last-updated = "2026-03-24" spec = "https://github.com/hyperpolymath/standards/blob/main/agentic-a2ml/docs/ADR-002-methodology-layer.adoc" diff --git a/.machine_readable/contractiles/Adjustfile.a2ml b/.machine_readable/contractiles/Adjustfile.a2ml index 8d1bfa4..d69c0ed 100644 --- a/.machine_readable/contractiles/Adjustfile.a2ml +++ b/.machine_readable/contractiles/Adjustfile.a2ml @@ -9,6 +9,11 @@ # NOTE (2026-06-13): rewritten for Cliodynamics.jl. The estate-carried file was the # rsr-template-repo Adjustfile (drift checks about "template placeholders"). +[metadata] +name = "Cliodynamics.jl-adjustfile" +project = "Cliodynamics.jl" +schema_version = "1.0" + @abstract: Drift tolerances and corrective actions for Cliodynamics.jl. Unlike MUST (hard gate), ADJUST tracks cumulative drift against tolerance bands and proposes diff --git a/.machine_readable/contractiles/Bustfile.a2ml b/.machine_readable/contractiles/Bustfile.a2ml index a4ca677..46e0776 100644 --- a/.machine_readable/contractiles/Bustfile.a2ml +++ b/.machine_readable/contractiles/Bustfile.a2ml @@ -11,6 +11,11 @@ # repo's own existing gates (julia test suite, CI workflows), not new policy. # Added 2026-06-13. +[metadata] +name = "Cliodynamics.jl-bustfile" +project = "Cliodynamics.jl" +schema_version = "1.0" + [bustfile] version = "1.0.0" format = "a2ml" diff --git a/.machine_readable/contractiles/Dustfile.a2ml b/.machine_readable/contractiles/Dustfile.a2ml index c26a3ac..19f6000 100644 --- a/.machine_readable/contractiles/Dustfile.a2ml +++ b/.machine_readable/contractiles/Dustfile.a2ml @@ -7,6 +7,11 @@ # branch supplied no flat Dustfile; pre-estate nested contractiles/dust/ # never existed in this repo). Added 2026-06-13. +[metadata] +name = "Cliodynamics.jl-dustfile" +project = "Cliodynamics.jl" +schema_version = "1.0" + [dustfile] version = "1.0.0" format = "a2ml" diff --git a/.machine_readable/contractiles/Intentfile.a2ml b/.machine_readable/contractiles/Intentfile.a2ml index 0008bee..cf91804 100644 --- a/.machine_readable/contractiles/Intentfile.a2ml +++ b/.machine_readable/contractiles/Intentfile.a2ml @@ -17,6 +17,11 @@ # carried was the un-substituted rsr-template-repo Intentfile (its intents # were "repo-initialization / contractile-completeness for the template"). +[metadata] +name = "Cliodynamics.jl-intentfile" +project = "Cliodynamics.jl" +schema_version = "1.0" + @abstract: North-star for Cliodynamics.jl: quantitative modeling of historical dynamics via Peter Turchin's cliodynamic theories. The invariant goal is a rigorous, diff --git a/.machine_readable/contractiles/Mustfile.a2ml b/.machine_readable/contractiles/Mustfile.a2ml index e0588be..94cacaa 100644 --- a/.machine_readable/contractiles/Mustfile.a2ml +++ b/.machine_readable/contractiles/Mustfile.a2ml @@ -12,6 +12,11 @@ # own delivered 06-12 layout is FLAT. The checks below match Cliodynamics.jl's # ACTUAL flat layout. The template drift is recorded for upstream fix. +[metadata] +name = "Cliodynamics.jl-mustfile" +project = "Cliodynamics.jl" +schema_version = "1.0" + @abstract: Physical-state invariants for Cliodynamics.jl. Hard requirements — CI and pre-commit hooks fail if any critical check fails. diff --git a/.machine_readable/contractiles/Trustfile.a2ml b/.machine_readable/contractiles/Trustfile.a2ml index 2deace7..f134e33 100644 --- a/.machine_readable/contractiles/Trustfile.a2ml +++ b/.machine_readable/contractiles/Trustfile.a2ml @@ -10,6 +10,11 @@ # "template files"; the integrity invariants below are kept and apply to # Cliodynamics.jl. +[metadata] +name = "Cliodynamics.jl-trustfile" +project = "Cliodynamics.jl" +schema_version = "1.0" + @abstract: Trust boundaries and integrity checks for Cliodynamics.jl. Defines what AI agents may do autonomously and what requires human approval, plus checks that diff --git a/0-AI-MANIFEST.a2ml b/0-AI-MANIFEST.a2ml index 4ab2dbd..1ef3b2e 100644 --- a/0-AI-MANIFEST.a2ml +++ b/0-AI-MANIFEST.a2ml @@ -1,3 +1,11 @@ +# SPDX-License-Identifier: MPL-2.0 +# 0-AI-MANIFEST.a2ml — AI agent read-first manifest for Cliodynamics.jl + +[metadata] +name = "Cliodynamics.jl-ai-manifest" +project = "Cliodynamics.jl" +schema_version = "1.0" + # ⚠️ STOP - CRITICAL READING REQUIRED **THIS FILE MUST BE READ FIRST BY ALL AI AGENTS** diff --git a/test/e2e_test.jl b/test/e2e_test.jl index a65de7e..0b1d0e2 100644 --- a/test/e2e_test.jl +++ b/test/e2e_test.jl @@ -19,7 +19,7 @@ using Statistics ) sol = demographic_structural_model(params, tspan=(0.0, 300.0)) @test sol.u[1][1] ≈ 500.0 - @test all(u .>= 0.0 for u in sol.u) + @test all(all(u .>= 0.0) for u in sol.u) # 2. Extract a time series and compute EOI years = collect(0.0:10.0:300.0)