Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
SECURITY.md @hyperpolymath
.github/workflows/ @hyperpolymath
.machine_readable/ @hyperpolymath
contractiles/ @hyperpolymath
.machine_readable/contractiles/ @hyperpolymath

# License files
LICENSE @hyperpolymath
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/instant-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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"
13 changes: 13 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions .machine_readable/6a2/0-AI-MANIFEST.a2ml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions .machine_readable/6a2/AGENTIC.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 2 additions & 0 deletions .machine_readable/6a2/ECOSYSTEM.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions .machine_readable/6a2/NEUROSYM.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 2 additions & 0 deletions .machine_readable/6a2/PLAYBOOK.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
8 changes: 8 additions & 0 deletions .machine_readable/6a2/anchor/0-AI-MANIFEST.a2ml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions .machine_readable/6a2/anchor/ANCHOR.a2ml
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
3 changes: 3 additions & 0 deletions .machine_readable/CLADE.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions .machine_readable/bot_directives/coverage.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 3 additions & 0 deletions .machine_readable/bot_directives/debt.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
3 changes: 3 additions & 0 deletions .machine_readable/bot_directives/git-private-farm.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions .machine_readable/bot_directives/gitbot-fleet.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions .machine_readable/bot_directives/hypatia.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions .machine_readable/bot_directives/methodology.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions .machine_readable/contractiles/Adjustfile.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .machine_readable/contractiles/Bustfile.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions .machine_readable/contractiles/Dustfile.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions .machine_readable/contractiles/Intentfile.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions .machine_readable/contractiles/Mustfile.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions .machine_readable/contractiles/Trustfile.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions 0-AI-MANIFEST.a2ml
Original file line number Diff line number Diff line change
@@ -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**
Expand Down
2 changes: 1 addition & 1 deletion test/e2e_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading