From f459674c3ff6ccf16710ed89782fcc9380a10ef7 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Sat, 7 Nov 2026 19:26:35 +0000 Subject: [PATCH 1/3] Instantiate Atoma identity and repair inherited CI references Render the recovered RSR template identity and ownership without changing licence terms, preserve Atoma implementation/evidence, follow the standards repository transfer with immutable pins, repair Sonar project identity, and record source-matched validation. No required gate or branch protection is removed. Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com> --- .clinerules | 4 +- .cursorrules | 4 +- .devcontainer/Containerfile | 8 +- .devcontainer/README.adoc | 8 +- .devcontainer/devcontainer.json | 6 +- .devcontainer/docker/devcontainer.json | 6 +- .editorconfig | 2 +- .envrc | 2 +- .gitattributes | 2 +- .github/CODEOWNERS | 14 +- .github/CODE_OF_CONDUCT.md | 42 +- .github/CONTRIBUTING.md | 18 +- .github/GOVERNANCE.md | 6 +- .github/ISSUE_TEMPLATE/config.yml | 4 +- .github/SECURITY.md | 20 +- .github/SUPPORT.md | 4 +- .github/copilot-instructions.md | 4 +- .github/dependabot.yml | 39 - .github/workflows/actions.lock | 26 +- .github/workflows/dogfood-gate.yml | 4 +- .github/workflows/governance.yml | 2 +- .github/workflows/hypatia-scan.yml | 2 +- .github/workflows/mirror.yml | 2 +- .github/workflows/quality.yml | 2 +- .github/workflows/rust-ci.yml | 2 +- .github/workflows/scorecard.yml | 2 +- .github/workflows/secret-scanner.yml | 2 +- .machine_readable/ai/PLACEHOLDERS.adoc | 94 +- .machine_readable/coaptation/coapt.ncl | 4 +- .machine_readable/coaptation/coapt.sh | 2 +- .../coaptation/receipts/latest.toml | 2 +- .machine_readable/coaptation/witness-map.ncl | 4 +- .machine_readable/compliance/reuse/dep5 | 28 +- .machine_readable/configs/eclexiaiser.toml | 2 +- .../configs/git-cliff/cliff.toml | 10 +- .machine_readable/configs/stapeln.toml | 12 +- .machine_readable/contractiles/Justfile | 10 +- .machine_readable/contractiles/README.adoc | 2 +- .../contractiles/adjust/adjust.k9.ncl | 6 +- .../contractiles/bust/bust.k9.ncl | 14 +- .../contractiles/dust/dust.k9.ncl | 12 +- .../contractiles/intend/intend.k9.ncl | 8 +- .../contractiles/must/must.k9.ncl | 6 +- .../contractiles/trust/trust.k9.ncl | 8 +- .../descriptiles/anchors/README.adoc | 2 +- .../descriptiles/provisioning_praxis.deed | 4 +- .machine_readable/root-allow.txt | 2 +- .../scripts/maintenance/maint-assault.sh | 2 +- .machine_readable/self-validating/README.adoc | 12 +- .../self-validating/examples/ci-config.k9.ncl | 2 +- .../examples/project-metadata.k9.ncl | 12 +- .../examples/setup-repo.k9.ncl.in | 8 +- .../self-validating/methodology-guard.k9.ncl | 8 +- .../self-validating/template-hunt.k9.ncl.in | 2 +- .../self-validating/template-kennel.k9.ncl.in | 2 +- .../self-validating/template-yard.k9.ncl.in | 2 +- .mailmap | 5 +- .windsurfrules | 4 +- CLAUDE.md | 20 +- CONTRIBUTING.adoc | 18 +- Justfile | 10 +- README.adoc | 205 +-- archetypes/README.adoc | 76 -- archetypes/julia-library/actions.lock | 29 - .../julia-library/julia-library_praxis.deed | 37 - .../overlay/.github/workflows/julia-ci.yml.in | 122 -- .../.github/workflows/julia-docs.yml.in | 58 - .../julia-library/overlay/Project.toml.in | 35 - .../julia-library/overlay/src/PACKAGE.jl.in | 15 - .../julia-library/overlay/test/cases/smoke.jl | 11 - .../julia-library/overlay/test/runtests.jl | 31 - atoma_chora.deed | 1107 +++++++++++++++++ build/container/Containerfile | 38 +- build/container/README.adoc | 4 +- build/container/compose.yaml | 20 +- build/container/entrypoint.sh | 14 +- build/container/stapeln/.gatekeeper.yaml | 6 +- build/container/stapeln/compose.toml | 22 +- build/container/stapeln/ct-build.sh | 14 +- build/container/stapeln/deploy.k9.ncl.in | 24 +- build/container/stapeln/manifest.toml | 26 +- build/container/stapeln/rokur.toml | 8 +- build/container/stapeln/vordr.toml | 16 +- build/docs-seed/README.adoc | 87 -- build/docs-seed/architecture.adoc | 79 -- build/guix.scm | 12 +- build/just/groove.just | 4 +- build/just/provision-lib.sh | 4 +- build/manifest.scm | 2 +- build/templates/ROADMAP.adoc.in | 23 - build/templates/identity.deed.in | 96 -- docs/AFFIRMATION.adoc | 28 +- docs/AI_INSTALLATION_GUIDE.adoc | 2 +- docs/ARCHITECTURE.adoc | 94 +- docs/MAINTAINERS.adoc | 4 +- docs/QUICKSTART.adoc | 2 +- docs/RSR-PHILOSOPHY.adoc | 2 +- docs/SETUP.adoc | 16 +- docs/architecture/REPOSITORY-MAP.adoc | 10 +- docs/architecture/THREAT-MODEL.adoc | 12 +- docs/attribution/CITATIONS.adoc | 20 +- docs/audit/2026-11-07-soundness-sprint.adoc | 37 + .../actions-lock.json | 2 +- .../compiled-bad.txt | 2 +- .../2026-11-07-soundness-sprint/inputs.sha256 | 8 +- .../merge-preflight.txt | 10 + docs/contributing.adoc | 91 ++ docs/decisions/0000-template.adoc | 2 +- docs/decisions/0001-adopt-rsr-standard.adoc | 4 +- docs/decisions/0001-template.adoc | 54 + docs/developer/ABI-FFI-README.adoc | 56 +- docs/governance/CRG-AUDIT-TEMPLATE.adoc | 22 +- docs/governance/TEMPLATE-LINEAGE-AUDIT.adoc | 4 +- docs/onboarding/QUICKSTART-DEV.adoc | 20 +- docs/onboarding/QUICKSTART-MAINTAINER.adoc | 32 +- docs/onboarding/QUICKSTART-USER.adoc | 14 +- docs/onboarding/llm-warmup-dev.adoc | 6 +- docs/onboarding/llm-warmup-maintainer.adoc | 4 +- docs/onboarding/llm-warmup-user.adoc | 10 +- docs/plan/ULTRAPLAN.adoc | 4 +- docs/practice/AI-CONVENTIONS.adoc | 8 +- docs/practice/STATE-VISUALIZER-GUIDE.adoc | 8 +- docs/practice/ci-cost-reduction.adoc | 6 +- docs/status/PROOF-NEEDS.adoc | 2 +- docs/status/PROOF-STATUS.adoc | 127 +- docs/status/READINESS.adoc | 194 +-- docs/status/ROADMAP.adoc | 97 +- docs/troubleshooting.adoc | 58 + docs/usage.adoc | 82 ++ launcher.sh | 6 +- mise.toml | 2 +- scripts/campaigns/www-bundle.campaign | 2 +- sonar-project.properties | 4 +- src/interface/ffi/src/main.zig | 38 +- tests/aspect_tests.sh | 2 +- tests/e2e.sh | 4 +- tests/workflows/container_kyaml_test.sh | 26 +- tests/workflows/devcontainer_test.sh | 2 +- www/.well-known/aibdp.json | 2 +- www/.well-known/humans.txt | 6 +- www/.well-known/security.txt | 8 +- www/README.adoc | 2 +- www/dns/records/example.invalid.zone | 4 +- www/policies/acceptable-use.adoc | 2 +- www/policies/ai-use.adoc | 2 +- www/policies/privacy.adoc | 2 +- www/public/index.html | 10 +- 147 files changed, 2175 insertions(+), 1904 deletions(-) delete mode 100644 archetypes/README.adoc delete mode 100644 archetypes/julia-library/actions.lock delete mode 100644 archetypes/julia-library/julia-library_praxis.deed delete mode 100644 archetypes/julia-library/overlay/.github/workflows/julia-ci.yml.in delete mode 100644 archetypes/julia-library/overlay/.github/workflows/julia-docs.yml.in delete mode 100644 archetypes/julia-library/overlay/Project.toml.in delete mode 100644 archetypes/julia-library/overlay/src/PACKAGE.jl.in delete mode 100644 archetypes/julia-library/overlay/test/cases/smoke.jl delete mode 100644 archetypes/julia-library/overlay/test/runtests.jl create mode 100644 atoma_chora.deed delete mode 100644 build/docs-seed/README.adoc delete mode 100644 build/docs-seed/architecture.adoc delete mode 100644 build/templates/ROADMAP.adoc.in delete mode 100644 build/templates/identity.deed.in create mode 100644 docs/audit/2026-11-07-soundness-sprint/merge-preflight.txt create mode 100644 docs/contributing.adoc create mode 100644 docs/decisions/0001-template.adoc create mode 100644 docs/troubleshooting.adoc create mode 100644 docs/usage.adoc diff --git a/.clinerules b/.clinerules index 89d315b5..41ee124b 100644 --- a/.clinerules +++ b/.clinerules @@ -1,5 +1,5 @@ # SPDX-License-Identifier: MPL-2.0 -# Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) # Authoritative source: docs/practice/AI-CONVENTIONS.adoc # STARTUP: Read the repo deed (*_chora.deed at the repo root) first, then docs/status/ROADMAP.adoc. @@ -8,7 +8,7 @@ # All original code: MPL-2.0. # Never AGPL-3.0. MPL-2.0 only as platform-required fallback. # SPDX header required on every source file. -# Copyright: {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +# Copyright: Jonathan D.A. Jewell (hyperpolymath) # STATE FILES # No .a2ml file may exist anywhere: the format is retired. State, metadata, diff --git a/.cursorrules b/.cursorrules index 0c183a87..28fe7ec2 100644 --- a/.cursorrules +++ b/.cursorrules @@ -1,5 +1,5 @@ # SPDX-License-Identifier: MPL-2.0 -# Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) # Authoritative source: docs/practice/AI-CONVENTIONS.adoc # Read the repo deed (*_chora.deed in the repo root) FIRST: canonical file locations @@ -7,7 +7,7 @@ # LICENSE # All original code: MPL-2.0 (SPDX header required on every file). -# Copyright: {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +# Copyright: Jonathan D.A. Jewell (hyperpolymath) # STATE FILES # No .a2ml file may exist anywhere: the format is retired. State, metadata, diff --git a/.devcontainer/Containerfile b/.devcontainer/Containerfile index f69a8938..8b629ab5 100644 --- a/.devcontainer/Containerfile +++ b/.devcontainer/Containerfile @@ -1,9 +1,9 @@ # SPDX-License-Identifier: MPL-2.0 -# Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) # -# Dev Container image for {{PROJECT_NAME}} +# Dev Container image for Atoma # Base: Chainguard Wolfi (minimal, supply-chain-secure) -# Build: podman build -t {{PROJECT_NAME}}-dev -f .devcontainer/Containerfile . +# Build: podman build -t Atoma-dev -f .devcontainer/Containerfile . # `:latest` suits a dev container (rebuilt daily); pin by digest # (...@sha256:) if you need a reproducible dev environment. # @@ -44,7 +44,7 @@ RUN set -eu; \ # devcontainer.json maps your host user onto it with --userns=keep-id. # Set workspace directory -WORKDIR /workspaces/{{PROJECT_NAME}} +WORKDIR /workspaces/Atoma # Default shell ENV SHELL=/bin/bash diff --git a/.devcontainer/README.adoc b/.devcontainer/README.adoc index 6a0114ec..a2d61aa3 100644 --- a/.devcontainer/README.adoc +++ b/.devcontainer/README.adoc @@ -1,7 +1,7 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell = Dev Container Usage -:author: {{AUTHOR}} <{{AUTHOR_EMAIL}}> +:author: Jonathan D.A. Jewell == Overview @@ -35,7 +35,7 @@ There are two configurations for the same image: . Install the *Dev Containers* extension (`ms-vscode-remote.remote-containers`). . Set `dev.containers.dockerPath` to `podman` in VS Code settings. . Open the repo folder, then choose **Reopen in Container** and pick - **{{PROJECT_NAME}} (Podman)**. + **Atoma (Podman)**. == devcontainer CLI (Podman) @@ -47,7 +47,7 @@ bunx @devcontainers/cli up --workspace-folder . --docker-path podman == GitHub Codespaces . From the repository on GitHub, click **Code > Codespaces > ... > New with options**. -. Choose the **{{PROJECT_NAME}} (Docker / Codespaces)** configuration. +. Choose the **Atoma (Docker / Codespaces)** configuration. == Gitpod @@ -56,6 +56,6 @@ bunx @devcontainers/cli up --workspace-folder . --docker-path podman == Customization -Replace the `{{PROJECT_NAME}}` placeholders in both `devcontainer.json` files and +Replace the `Atoma` placeholders in both `devcontainer.json` files and the `Containerfile` with your actual project name. `just deps` runs automatically after the container is created. Run it again to check the environment. diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3193734e..26847370 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MPL-2.0 -// Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // -// Dev Container configuration for {{PROJECT_NAME}} — rootless Podman (default). +// Dev Container configuration for Atoma — rootless Podman (default). // Works with: VS Code Dev Containers with `dev.containers.dockerPath` = podman, // and the devcontainer CLI (`devcontainer up --docker-path podman`). // Docker, GitHub Codespaces and Gitpod: use .devcontainer/docker/devcontainer.json @@ -44,7 +44,7 @@ } } }, - "name": "{{PROJECT_NAME}} (Podman)", + "name": "Atoma (Podman)", "postCreateCommand": "just deps", "remoteUser": "nonroot", // Rootless Podman maps your host user to root inside the container, so the diff --git a/.devcontainer/docker/devcontainer.json b/.devcontainer/docker/devcontainer.json index fadee842..bbcb9fbd 100644 --- a/.devcontainer/docker/devcontainer.json +++ b/.devcontainer/docker/devcontainer.json @@ -1,12 +1,12 @@ // SPDX-License-Identifier: MPL-2.0 -// Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) // -// Dev Container configuration for {{PROJECT_NAME}} — Docker engines. +// Dev Container configuration for Atoma — Docker engines. // Works with: GitHub Codespaces, Gitpod, and VS Code Dev Containers on Docker. // The estate default is rootless Podman: .devcontainer/devcontainer.json. // Same image (../Containerfile); only the user-namespace settings differ. { - "name": "{{PROJECT_NAME}} (Docker / Codespaces)", + "name": "Atoma (Docker / Codespaces)", "build": { "dockerfile": "../Containerfile", diff --git a/.editorconfig b/.editorconfig index 808e2414..0efb41ed 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,6 +1,6 @@ # SPDX-License-Identifier: MPL-2.0 # Hyperpolymath estate canonical .editorconfig (standards#343 phase 1) -# Canon lives in rsr-template-repo; do not add a per-repo name to this header. +# Canon lives in atoma; do not add a per-repo name to this header. # https://editorconfig.org root = true diff --git a/.envrc b/.envrc index ec7a7ad0..40545110 100644 --- a/.envrc +++ b/.envrc @@ -13,7 +13,7 @@ if has guix && [ -f build/manifest.scm ]; then fi # Project environment variables -export PROJECT_NAME="{{PROJECT_NAME}}" +export PROJECT_NAME="Atoma" export RSR_TIER="infrastructure" # Add non-secret project env vars above (e.g. DATABASE_URL, service endpoints). # Real secrets belong in .env (gitignored) — never commit them to .envrc. diff --git a/.gitattributes b/.gitattributes index 60462f86..4e5eee41 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,7 +1,7 @@ # SPDX-License-Identifier: MPL-2.0 (code) # SPDX-License-Identifier: CC-SA-BY-4.0 (prose) # Hyperpolymath estate canonical .gitattributes (standards#343 phase 1) -# Canon lives in rsr-template-repo; do not add a per-repo name to this header. +# Canon lives in atoma; do not add a per-repo name to this header. # # Only diff drivers that git actually ships are used here. MEASURED on git # 2.47.3: diff=go and diff=zig are NOT drivers (git silently falls back to the diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6bdfc8a2..6e4a4e2c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -2,14 +2,14 @@ # CODEOWNERS - Define code review assignments # See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners # -# Replace {{OWNER}} with your GitHub username or team +# Replace hyperpolymath with your GitHub username or team # Default owners for everything -* @{{OWNER}} +* @hyperpolymath # Security-sensitive files require explicit review -SECURITY.md @{{OWNER}} -.github/workflows/ @{{OWNER}} -.machine_readable/contractiles/trust/ @{{OWNER}} -*_chora.deed @{{OWNER}} -.machine_readable/ @{{OWNER}} +SECURITY.md @hyperpolymath +.github/workflows/ @hyperpolymath +.machine_readable/contractiles/trust/ @hyperpolymath +*_chora.deed @hyperpolymath +.machine_readable/ @hyperpolymath diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index c7f72aee..25fe2fe7 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -4,29 +4,9 @@ Copyright (c) Jonathan D.A. Jewell --> # Code of Conduct - - ## Our Pledge -We as members, contributors, and leaders pledge to make participation in rsr-template-repo a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, colour, religion, or sexual identity and orientation. +We as members, contributors, and leaders pledge to make participation in atoma a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, colour, religion, or sexual identity and orientation. We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. @@ -140,7 +120,7 @@ If you experience or witness unacceptable behaviour, or have any other concerns, | Method | Details | Best For | |--------|---------|----------| -| **Email** | {{CONDUCT_EMAIL}} | Detailed reports, sensitive matters | +| **Email** | j.d.a.jewell@open.ac.uk | Detailed reports, sensitive matters | | **Private Message** | Contact any maintainer directly | Quick questions, minor issues | **What to Include** @@ -155,8 +135,8 @@ If you experience or witness unacceptable behaviour, or have any other concerns, **What Happens Next** -1. You will receive acknowledgment within **{{RESPONSE_TIME}}** -2. The {{CONDUCT_TEAM}} will review the report +1. You will receive acknowledgment within **48 hours** +2. The Code of Conduct Committee will review the report 3. We may ask for additional information 4. We will determine appropriate action 5. We will inform you of the outcome (respecting others' privacy) @@ -172,7 +152,7 @@ All reports will be handled with discretion: ### Conflicts of Interest -If the {{CONDUCT_TEAM}} are themselves involved in an incident: +If the Code of Conduct Committee are themselves involved in an incident: - They will recuse themselves from the process - Another maintainer or external party will handle the report @@ -182,7 +162,7 @@ If the {{CONDUCT_TEAM}} are themselves involved in an incident: ## Enforcement Guidelines -The {{CONDUCT_TEAM}} will follow these guidelines in determining consequences: +The Code of Conduct Committee will follow these guidelines in determining consequences: ### 1. Correction @@ -242,13 +222,13 @@ For contributors with elevated access (Perimeter 2 or 1): If you believe an enforcement decision was made in error: 1. **Wait 7 days** after the decision (cooling-off period) -2. **Email** {{CONDUCT_EMAIL}} with subject line "Appeal: [Original Report ID]" +2. **Email** j.d.a.jewell@open.ac.uk with subject line "Appeal: [Original Report ID]" 3. **Explain** why you believe the decision should be reconsidered 4. **Provide** any new information not previously available **Appeals Process** -- Appeals are reviewed by the {{CONDUCT_TEAM}}, excluding anyone involved in the original +- Appeals are reviewed by the Code of Conduct Committee, excluding anyone involved in the original - You will receive a response within 14 days - The appeals decision is final - You may only appeal once per incident @@ -321,8 +301,8 @@ We thank these communities for their leadership in creating welcoming spaces. If you have questions about this Code of Conduct: -- Open a [Discussion](https://github.com/hyperpolymath/rsr-template-repo/discussions) (for general questions) -- Email {{CONDUCT_EMAIL}} (for private questions) +- Open a [Discussion](https://github.com/hyperpolymath/atoma/discussions) (for general questions) +- Email j.d.a.jewell@open.ac.uk (for private questions) - Contact any maintainer directly --- @@ -335,4 +315,4 @@ We're all here because we care about this project. Let's make it a place where e --- -Last updated: {{CURRENT_YEAR}} · Based on Contributor Covenant 2.1 +Last updated: 2026 · Based on Contributor Covenant 2.1 diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index ba9e87af..bd65cc14 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -4,15 +4,15 @@ Copyright (c) Jonathan D.A. Jewell --> ``` # Clone the repository -git clone https://github.com/hyperpolymath/rsr-template-repo.git -cd rsr-template-repo +git clone https://github.com/hyperpolymath/atoma.git +cd atoma # Using Guix (recommended for reproducibility) guix shell -D -f build/guix.scm # Or using toolbox/distrobox -toolbox create rsr-template-repo-dev -toolbox enter rsr-template-repo-dev +toolbox create atoma-dev +toolbox enter atoma-dev # Install dependencies manually # Verify setup @@ -39,7 +39,7 @@ which is precisely why the map is now generated rather than typed. **Before reporting**: 1. Search existing issues -2. Check if it's already fixed in `{{MAIN_BRANCH}}` +2. Check if it's already fixed in `main` 3. Determine which perimeter the bug affects **When reporting**: @@ -72,10 +72,10 @@ Use the [feature request template](.github/ISSUE_TEMPLATE/feature_request.md) an Look for issues labelled: -- [`good first issue`](https://github.com/hyperpolymath/rsr-template-repo/labels/good%20first%20issue) — Simple Perimeter 3 tasks -- [`help wanted`](https://github.com/hyperpolymath/rsr-template-repo/labels/help%20wanted) — Community help needed -- [`documentation`](https://github.com/hyperpolymath/rsr-template-repo/labels/documentation) — Docs improvements -- [`perimeter-3`](https://github.com/hyperpolymath/rsr-template-repo/labels/perimeter-3) — Community sandbox scope +- [`good first issue`](https://github.com/hyperpolymath/atoma/labels/good%20first%20issue) — Simple Perimeter 3 tasks +- [`help wanted`](https://github.com/hyperpolymath/atoma/labels/help%20wanted) — Community help needed +- [`documentation`](https://github.com/hyperpolymath/atoma/labels/documentation) — Docs improvements +- [`perimeter-3`](https://github.com/hyperpolymath/atoma/labels/perimeter-3) — Community sandbox scope --- diff --git a/.github/GOVERNANCE.md b/.github/GOVERNANCE.md index 246a51a4..fd90583e 100644 --- a/.github/GOVERNANCE.md +++ b/.github/GOVERNANCE.md @@ -4,13 +4,13 @@ Copyright (c) Jonathan D.A. Jewell --> # Project Governance -This document describes the governance model for **{{PROJECT_NAME}}**. +This document describes the governance model for **Atoma**. --- ## Project Governance Model -{{PROJECT_NAME}} follows a **Benevolent Dictator For Life (BDFL)** governance model. +Atoma follows a **Benevolent Dictator For Life (BDFL)** governance model. This model is well-suited for solo maintainers and small project teams where rapid, consistent decision-making is more valuable than formal consensus processes. @@ -157,4 +157,4 @@ with the community before adoption, even though the BDFL retains final authority --- -Copyright (c) {{CURRENT_YEAR}} {{OWNER}}. Licensed under MPL-2.0. +Copyright (c) 2026 hyperpolymath. Licensed under MPL-2.0. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 5e508a70..a887ee75 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -6,8 +6,8 @@ blank_issues_enabled: true contact_links: - name: Security vulnerability - url: https://{{FORGE}}/{{OWNER}}/{{REPO}}/security/advisories/new + url: https://github.com/hyperpolymath/atoma/security/advisories/new about: Report privately via a security advisory. Do NOT open a public issue. - name: Question or support request - url: https://{{FORGE}}/{{OWNER}}/{{REPO}}/discussions + url: https://github.com/hyperpolymath/atoma/discussions about: Ask a question. See .github/SUPPORT.md for what to expect. diff --git a/.github/SECURITY.md b/.github/SECURITY.md index 9d376eb9..b24f5d0e 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -33,7 +33,7 @@ We take security seriously. We appreciate your efforts to responsibly disclose v The preferred method for reporting security vulnerabilities is through GitHub's Security Advisory feature: -1. Navigate to [Report a Vulnerability](https://github.com/hyperpolymath/rsr-template-repo/security/advisories/new) +1. Navigate to [Report a Vulnerability](https://github.com/hyperpolymath/atoma/security/advisories/new) 2. Click **"Report a vulnerability"** 3. Complete the form with as much detail as possible 4. Submit — we'll receive a private notification @@ -51,7 +51,7 @@ If you cannot use GitHub Security Advisories, you may email us directly: | | | |---|---| -| **Email** | {{SECURITY_EMAIL}} | +| **Email** | j.d.a.jewell@open.ac.uk | This mailbox is not encrypted. For anything sensitive enough to need encryption, prefer GitHub Security Advisories above — the report stays private @@ -187,7 +187,7 @@ If we cannot reach agreement on disclosure timing, we default to 90 days from yo The following are within scope for security research: -- This repository (`hyperpolymath/rsr-template-repo`) and all its code +- This repository (`hyperpolymath/atoma`) and all its code - Official releases and packages published from this repository - Documentation that could lead to security issues - Build and deployment configurations in this repository @@ -306,7 +306,7 @@ Recognition includes: To stay informed about security updates: - **Watch this repository**: Click "Watch" → "Custom" → Select "Security alerts" -- **GitHub Security Advisories**: Published at [Security Advisories](https://github.com/hyperpolymath/rsr-template-repo/security/advisories) +- **GitHub Security Advisories**: Published at [Security Advisories](https://github.com/hyperpolymath/atoma/security/advisories) - **Release notes**: Security fixes noted in [CHANGELOG](../CHANGELOG.md) ### Update Policy @@ -332,7 +332,7 @@ To stay informed about security updates: ## Security Best Practices -When using rsr-template-repo, we recommend: +When using atoma, we recommend: ### General @@ -354,7 +354,7 @@ When using rsr-template-repo, we recommend: ## Additional Resources -- [Security Advisories](https://github.com/hyperpolymath/rsr-template-repo/security/advisories) +- [Security Advisories](https://github.com/hyperpolymath/atoma/security/advisories) - [Changelog](../CHANGELOG.md) - [Contributing Guidelines](CONTRIBUTING.md) - [CVE Database](https://cve.mitre.org/) @@ -366,8 +366,8 @@ When using rsr-template-repo, we recommend: | Purpose | Contact | |---------|---------| -| **Security issues** | [Report via GitHub](https://github.com/hyperpolymath/rsr-template-repo/security/advisories/new) or {{SECURITY_EMAIL}} | -| **General questions** | [GitHub Discussions](https://github.com/hyperpolymath/rsr-template-repo/discussions) | +| **Security issues** | [Report via GitHub](https://github.com/hyperpolymath/atoma/security/advisories/new) or j.d.a.jewell@open.ac.uk | +| **General questions** | [GitHub Discussions](https://github.com/hyperpolymath/atoma/discussions) | | **Other enquiries** | See [README](../README.adoc) for contact information | --- @@ -382,8 +382,8 @@ This security policy may be updated from time to time. Significant changes will --- -*Thank you for helping keep rsr-template-repo and its users safe.* 🛡️ +*Thank you for helping keep atoma and its users safe.* 🛡️ --- -Last updated: {{CURRENT_YEAR}} · Policy version: 1.0.0 +Last updated: 2026 · Policy version: 1.0.0 diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md index b06c59a3..834a2160 100644 --- a/.github/SUPPORT.md +++ b/.github/SUPPORT.md @@ -2,6 +2,6 @@ For questions, help, and community discussion: -- GitHub Discussions: https://github.com/{{OWNER}}/{{REPO}}/discussions -- GitHub Issues: https://github.com/{{OWNER}}/{{REPO}}/issues +- GitHub Discussions: https://github.com/hyperpolymath/atoma/discussions +- GitHub Issues: https://github.com/hyperpolymath/atoma/issues - Documentation: See README.adoc in the root directory. diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 8c3234ca..a6d5be10 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -2,7 +2,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0 Copyright (c) Jonathan D.A. Jewell --> - + # Copilot Instructions @@ -17,7 +17,7 @@ Copyright (c) Jonathan D.A. Jewell - SPDX: `MPL-2.0` on all new files. - Never use AGPL-3.0. -- Copyright: `{{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}>` +- Copyright: `Jonathan D.A. Jewell (hyperpolymath) ` ## Code Style diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 83278065..51e4769e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -41,42 +41,3 @@ updates: # "security only, not routine bumps". Pair with the # dependabot-automerge.yml workflow for low-touch security # maintenance. - - package-ecosystem: "cargo" - directory: "/" - schedule: - interval: "weekly" - open-pull-requests-limit: 0 - - # Elixir/Mix - - package-ecosystem: "mix" - directory: "/" - schedule: - interval: "weekly" - open-pull-requests-limit: 3 - groups: - dependency-updates: - patterns: ["*"] - - # Node.js/npm - - package-ecosystem: "npm" - directory: "/" - schedule: - interval: "weekly" - open-pull-requests-limit: 3 - groups: - dependency-updates: - patterns: ["*"] - - # Python/pip - - package-ecosystem: "pip" - directory: "/" - schedule: - interval: "weekly" - open-pull-requests-limit: 3 - groups: - dependency-updates: - patterns: ["*"] - - # NOTE: Nix is banned estate-wide — Guix is the sole package manager. - # Do not add a `nix` ecosystem here. Guix has no Dependabot ecosystem; - # pin Guix channels/manifests via build/ tooling instead. diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index 30633728..2aff101a 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -19,7 +19,7 @@ workflows: - 'actions/checkout@v7.0.1' - 'actions/download-artifact@v8.0.2' - 'erlef/setup-beam@v1.24.1' - - 'hyperpolymath/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' + - 'metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' '.github/workflows/dogfood-summary.yml': - 'actions/checkout@v7.0.1' '.github/workflows/dot-wellknown-enforcement.yml': @@ -31,21 +31,21 @@ workflows: '.github/workflows/estate-rules.yml': - 'actions/checkout@v7.0.1' '.github/workflows/governance.yml': - - 'hyperpolymath/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' + - 'metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' '.github/workflows/groove-check.yml': - 'actions/checkout@v7.0.1' '.github/workflows/guix-policy.yml': - 'actions/checkout@v7.0.1' '.github/workflows/hypatia-scan.yml': - 'actions/download-artifact@v8.0.2' - - 'hyperpolymath/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' + - 'metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' '.github/workflows/label-triage.yml': [] '.github/workflows/labels.yml': [] '.github/workflows/lock-sync-gate.yml': [] '.github/workflows/main-estate-audit.yml': - 'hyperpolymath/cicd-suite@55556cf5ba71ba744695861503c13148d3915a5d' '.github/workflows/mirror.yml': - - 'hyperpolymath/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' + - 'metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' '.github/workflows/ossf-best-practices.yml': - 'actions/checkout@v7.0.1' '.github/workflows/pages.yml': @@ -59,7 +59,7 @@ workflows: - 'hyperpolymath/smtp-notify-action@v0.5.0' '.github/workflows/quality.yml': - 'actions/checkout@v7.0.1' - - 'editorconfig-checker/action-editorconfig-checker@v3.0.0' + - 'editorconfig-checker/action-editorconfig-checker@51f63319f592f97930c73d9c46184d20bd206393' '.github/workflows/release.yml': - 'actions/attest-build-provenance@v4.2.2' - 'actions/checkout@v7.0.1' @@ -68,11 +68,11 @@ workflows: '.github/workflows/rsr-compliance-canary.yml': - 'actions/checkout@v7.0.1' '.github/workflows/rust-ci.yml': - - 'hyperpolymath/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' + - 'metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' '.github/workflows/scorecard.yml': - - 'hyperpolymath/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' + - 'metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' '.github/workflows/secret-scanner.yml': - - 'hyperpolymath/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' + - 'metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' '.github/workflows/security-policy.yml': - 'actions/checkout@v7.0.1' '.github/workflows/sonarqube.yml': @@ -211,12 +211,12 @@ dependencies: owner_id: 75048950 repo_id: 623796603 'hyperpolymath/cicd-suite@0da816c05ae7486671d863e07935f93981c0c2d5': - ref: '0da816c05ae7486671d863e07935f93981c0c2d5' + ref: 'main' commit: 'sha1-0da816c05ae7486671d863e07935f93981c0c2d5' owner_id: 6759885 repo_id: 1326697643 'hyperpolymath/cicd-suite@55556cf5ba71ba744695861503c13148d3915a5d': - ref: '55556cf5ba71ba744695861503c13148d3915a5d' + ref: 'main' commit: 'sha1-55556cf5ba71ba744695861503c13148d3915a5d' owner_id: 6759885 repo_id: 1326697643 @@ -228,10 +228,10 @@ dependencies: commit: 'sha1-c1c9fa07992a02c1fd3d67a0dc1b08cccb852aef' owner_id: 6759885 repo_id: 1352485172 - 'hyperpolymath/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78': - ref: 'b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' + 'metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78': + ref: 'main' commit: 'sha1-b3ce78e1a8cb24b33fde5c9da6a7c09486efda78' - owner_id: 6759885 + owner_id: 297579217 repo_id: 1116521501 uses: - 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9' diff --git a/.github/workflows/dogfood-gate.yml b/.github/workflows/dogfood-gate.yml index afd7e534..2f07f762 100644 --- a/.github/workflows/dogfood-gate.yml +++ b/.github/workflows/dogfood-gate.yml @@ -29,7 +29,7 @@ jobs: # --------------------------------------------------------------------------- deed-validate: name: Validate DEED manifests - uses: hyperpolymath/standards/.github/workflows/deed-conformance.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 + uses: metadatastician/standards/.github/workflows/deed-conformance.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 with: require-files: true @@ -41,7 +41,7 @@ jobs: # --------------------------------------------------------------------------- k9-validate: name: Validate K9 contracts - uses: hyperpolymath/standards/.github/workflows/k9-conformance.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 + uses: metadatastician/standards/.github/workflows/k9-conformance.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 permissions: contents: read pull-requests: read diff --git a/.github/workflows/governance.yml b/.github/workflows/governance.yml index 84417f96..67f4c4bd 100644 --- a/.github/workflows/governance.yml +++ b/.github/workflows/governance.yml @@ -17,4 +17,4 @@ permissions: jobs: governance: - uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 + uses: metadatastician/standards/.github/workflows/governance-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 diff --git a/.github/workflows/hypatia-scan.yml b/.github/workflows/hypatia-scan.yml index 0669da07..57dce490 100644 --- a/.github/workflows/hypatia-scan.yml +++ b/.github/workflows/hypatia-scan.yml @@ -27,7 +27,7 @@ permissions: jobs: hypatia: - uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 + uses: metadatastician/standards/.github/workflows/hypatia-scan-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 # The reusable declares only the HYPATIA_SCAN_PAT secret and falls back to # the job token when the caller does not pass it; nothing is inherited. diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 1bf5093a..fcd2e938 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -13,7 +13,7 @@ permissions: contents: read jobs: mirror: - uses: hyperpolymath/standards/.github/workflows/mirror-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 + uses: metadatastician/standards/.github/workflows/mirror-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 # Explicit secrets map — no `secrets: inherit` (Hypatia WH008, alert #131). # All seven are the callee's complete optional contract (standards # mirror-reusable.yml@da2c748); behaviour is unchanged, future secrets diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 931704fc..9acb4bc3 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -56,7 +56,7 @@ jobs: run: | find . -type f -size +1M -not -path "./.git/*" | head -10 || echo "No large files" - name: EditorConfig check - uses: editorconfig-checker/action-editorconfig-checker@v3.0.0 + uses: editorconfig-checker/action-editorconfig-checker@51f63319f592f97930c73d9c46184d20bd206393 continue-on-error: true docs: runs-on: ubuntu-24.04 diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 144fc757..42f2ffbf 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -16,4 +16,4 @@ permissions: contents: read jobs: rust-ci: - uses: hyperpolymath/standards/.github/workflows/rust-ci-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 + uses: metadatastician/standards/.github/workflows/rust-ci-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 01316c46..19ffda89 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -16,7 +16,7 @@ permissions: jobs: scorecard: - uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 + uses: metadatastician/standards/.github/workflows/scorecard-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 # Reusable called-workflow permissions are CAPPED by the caller's grants; # without security-events: write here the scorecard SARIF upload fails with # startup_failure (hypatia WF018). id-token: write enables OIDC publish. diff --git a/.github/workflows/secret-scanner.yml b/.github/workflows/secret-scanner.yml index c7a17d32..a3c0eb38 100644 --- a/.github/workflows/secret-scanner.yml +++ b/.github/workflows/secret-scanner.yml @@ -26,4 +26,4 @@ jobs: # is therefore the cap GitHub applies to the called workflow. permissions: contents: read - uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 + uses: metadatastician/standards/.github/workflows/secret-scanner-reusable.yml@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 diff --git a/.machine_readable/ai/PLACEHOLDERS.adoc b/.machine_readable/ai/PLACEHOLDERS.adoc index 3eb50544..7d68a336 100644 --- a/.machine_readable/ai/PLACEHOLDERS.adoc +++ b/.machine_readable/ai/PLACEHOLDERS.adoc @@ -20,16 +20,16 @@ validates the result, and runs k9-svc checks if available. ```bash # If you prefer manual replacement (run from repo root) -sed -i 's/{{AUTHOR}}/Jane Doe/g' $(grep -rl '{{AUTHOR}}' .) -sed -i 's/{{AUTHOR_EMAIL}}/jane@example.org/g' $(grep -rl '{{AUTHOR_EMAIL}}' .) -sed -i 's/{{OWNER}}/my-org/g' $(grep -rl '{{OWNER}}' .) -sed -i 's/{{PROJECT_NAME}}/my-project/g' $(grep -rl '{{PROJECT_NAME}}' .) -sed -i 's/{{PROJECT}}/MY_PROJECT/g' $(grep -rl '{{PROJECT}}' .) -sed -i 's/{{project}}/my_project/g' $(grep -rl '{{project}}' .) -sed -i 's/{{REPO}}/my-project/g' $(grep -rl '{{REPO}}' .) -sed -i 's/{{FORGE}}/github.com/g' $(grep -rl '{{FORGE}}' .) -sed -i "s/{{CURRENT_YEAR}}/$(date +%Y)/g" $(grep -rl '{{CURRENT_YEAR}}' .) -sed -i "s/{{CURRENT_DATE}}/$(date +%Y-%m-%d)/g" $(grep -rl '{{CURRENT_DATE}}' .) +sed -i 's/Jonathan D.A. Jewell/Jane Doe/g' $(grep -rl 'Jonathan D.A. Jewell' .) +sed -i 's/j.d.a.jewell@open.ac.uk/jane@example.org/g' $(grep -rl 'j.d.a.jewell@open.ac.uk' .) +sed -i 's/hyperpolymath/my-org/g' $(grep -rl 'hyperpolymath' .) +sed -i 's/Atoma/my-project/g' $(grep -rl 'Atoma' .) +sed -i 's/ATOMA/MY_PROJECT/g' $(grep -rl 'ATOMA' .) +sed -i 's/atoma/my_project/g' $(grep -rl 'atoma' .) +sed -i 's/atoma/my-project/g' $(grep -rl 'atoma' .) +sed -i 's/github.com/github.com/g' $(grep -rl 'github.com' .) +sed -i "s/2026/$(date +%Y)/g" $(grep -rl '2026' .) +sed -i "s/2026-11-07/$(date +%Y-%m-%d)/g" $(grep -rl '2026-11-07' .) ``` ## Placeholder Reference @@ -38,59 +38,59 @@ sed -i "s/{{CURRENT_DATE}}/$(date +%Y-%m-%d)/g" $(grep -rl '{{CURRENT_DATE}}' .) | Placeholder | Description | Example | Files | |---|---|---|---| -| `{{AUTHOR}}` | Full legal name | `Jane Doe` | SPDX headers (all files), MAINTAINERS.md, .mailmap, .reuse/dep5, docs/AI-CONVENTIONS.md | -| `{{AUTHOR_EMAIL}}` | Primary contact email | `jane@example.org` | SPDX headers (all files), .mailmap, .reuse/dep5, www/.well-known/humans.txt | +| `Jonathan D.A. Jewell` | Full legal name | `Jane Doe` | SPDX headers (all files), MAINTAINERS.md, .mailmap, .reuse/dep5, docs/AI-CONVENTIONS.md | +| `j.d.a.jewell@open.ac.uk` | Primary contact email | `jane@example.org` | SPDX headers (all files), .mailmap, .reuse/dep5, www/.well-known/humans.txt | | `{{AUTHOR_EMAIL_ALT}}` | Previous/secondary email (for .mailmap) | `old@example.com` | .mailmap | -| `{{AUTHOR_ORG}}` | Author's organization/affiliation | `Acme University` | project-metadata.k9.ncl | -| `{{AUTHOR_LAST}}` | Author surname (for citations) | `Doe` | docs/CITATIONS.adoc | -| `{{AUTHOR_FIRST}}` | Author first name (for citations) | `Jane` | docs/CITATIONS.adoc | -| `{{AUTHOR_INITIALS}}` | Author initials (for citations) | `J.` | docs/CITATIONS.adoc | +| `` | Author's organization/affiliation | `Acme University` | project-metadata.k9.ncl | +| `Jewell` | Author surname (for citations) | `Doe` | docs/CITATIONS.adoc | +| `Jonathan D.A.` | Author first name (for citations) | `Jane` | docs/CITATIONS.adoc | +| `J.` | Author initials (for citations) | `J.` | docs/CITATIONS.adoc | | `{{AUTHOR_ORCID}}` | Author ORCID iD, bare form; blank drops the line (default: `git config user.orcid`) | `0000-0002-1825-0097` | CITATION.cff | ### Project Identity | Placeholder | Description | Example | Files | |---|---|---|---| -| `{{PROJECT_NAME}}` | Human-readable project name | `My Project` | SECURITY.md, CODE_OF_CONDUCT.md, TOPOLOGY.md, docs/status/ROADMAP.adoc (via build/templates/ROADMAP.adoc.in), Justfile, GOVERNANCE.md, MAINTAINERS.md, devcontainer.json | -| `{{PROJECT_DESCRIPTION}}` | One-line description | `A tool for X` | README.adoc, build/container/Containerfile | -| `{{PROJECT}}` | Uppercase identifier (for Idris2 modules, C macros) | `MY_PROJECT` | ABI-FFI-README.md, src/interface/abi/*.idr, src/interface/ffi/*.zig | -| `{{project}}` | Lowercase identifier (for C symbols, filenames) | `my_project` | ABI-FFI-README.md, src/interface/ffi/*.zig | -| `{{REPO}}` | Repository name (slug) | `my-project` | CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md, cliff.toml | -| `{{OWNER}}` | GitHub/GitLab org or username | `my-org` | SPDX headers, CONTRIBUTING.md, SECURITY.md, GOVERNANCE.md, MAINTAINERS.md, CODEOWNERS, mirror.yml, cliff.toml | -| `{{FORGE}}` | Git forge domain | `github.com` | CONTRIBUTING.md | +| `Atoma` | Human-readable project name | `My Project` | SECURITY.md, CODE_OF_CONDUCT.md, TOPOLOGY.md, docs/status/ROADMAP.adoc (via build/templates/ROADMAP.adoc.in), Justfile, GOVERNANCE.md, MAINTAINERS.md, devcontainer.json | +| `Experimental source-bound program verification for a closed Zig subset` | One-line description | `A tool for X` | README.adoc, build/container/Containerfile | +| `ATOMA` | Uppercase identifier (for Idris2 modules, C macros) | `MY_PROJECT` | ABI-FFI-README.md, src/interface/abi/*.idr, src/interface/ffi/*.zig | +| `atoma` | Lowercase identifier (for C symbols, filenames) | `my_project` | ABI-FFI-README.md, src/interface/ffi/*.zig | +| `atoma` | Repository name (slug) | `my-project` | CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md, cliff.toml | +| `hyperpolymath` | GitHub/GitLab org or username | `my-org` | SPDX headers, CONTRIBUTING.md, SECURITY.md, GOVERNANCE.md, MAINTAINERS.md, CODEOWNERS, mirror.yml, cliff.toml | +| `github.com` | Git forge domain | `github.com` | CONTRIBUTING.md | ### Dates | Placeholder | Description | Example | Files | |---|---|---|---| -| `{{CURRENT_YEAR}}` | Current year | `2026` | SPDX headers (all files), GOVERNANCE.md, MAINTAINERS.md | -| `{{CURRENT_DATE}}` | Current date (ISO) | `2026-02-14` | `*_chora.deed` (via build/templates/identity.deed.in), MAINTAINERS.md | -| `{{DATE}}` | Last updated date | `2026-02-14` | TOPOLOGY.md, THREAT-MODEL.md | +| `2026` | Current year | `2026` | SPDX headers (all files), GOVERNANCE.md, MAINTAINERS.md | +| `2026-11-07` | Current date (ISO) | `2026-02-14` | `*_chora.deed` (via build/templates/identity.deed.in), MAINTAINERS.md | +| `2026-11-07` | Last updated date | `2026-02-14` | TOPOLOGY.md, THREAT-MODEL.md | ### Contact & Security | Placeholder | Description | Example | Files | |---|---|---|---| -| `{{SECURITY_EMAIL}}` | Security contact email | `security@example.org` | SECURITY.md | +| `j.d.a.jewell@open.ac.uk` | Security contact email | `security@example.org` | SECURITY.md | | `{{PGP_FINGERPRINT}}` | 40-char PGP fingerprint | `ABCD 1234 ...` | SECURITY.md | | `{{PGP_KEY_URL}}` | URL to public PGP key | `https://keys.openpgp.org/...` | SECURITY.md | -| `{{WEBSITE}}` | Project website | `https://example.org` | SECURITY.md | -| `{{CONDUCT_EMAIL}}` | Conduct reports email | `conduct@example.org` | CODE_OF_CONDUCT.md | -| `{{CONDUCT_TEAM}}` | Conduct committee name | `Code of Conduct Committee` | CODE_OF_CONDUCT.md | -| `{{RESPONSE_TIME}}` | SLA for initial response | `48 hours` | CODE_OF_CONDUCT.md | +| `https://github.com/hyperpolymath/atoma` | Project website | `https://example.org` | SECURITY.md | +| `j.d.a.jewell@open.ac.uk` | Conduct reports email | `conduct@example.org` | CODE_OF_CONDUCT.md | +| `Code of Conduct Committee` | Conduct committee name | `Code of Conduct Committee` | CODE_OF_CONDUCT.md | +| `48 hours` | SLA for initial response | `48 hours` | CODE_OF_CONDUCT.md | ### Git | Placeholder | Description | Example | Files | |---|---|---|---| -| `{{MAIN_BRANCH}}` | Main branch name | `main` | CONTRIBUTING.md | +| `main` | Main branch name | `main` | CONTRIBUTING.md | ### Build | Placeholder | Description | Example | Files | |---|---|---|---| -| `{{LICENSE}}` | License name | `MPL-2.0` | ABI-FFI-README.md | -| `{{PROJECT_PURPOSE}}` | One-line project description | `FFI bridges between languages` | `*_chora.deed` `(anchor (identity))` :one-sentence (set from `{{PROJECT_DESCRIPTION}}` by `just repo-init`) | +| `MPL-2.0` | License name | `MPL-2.0` | ABI-FFI-README.md | +| `Experimental source-bound program verification for a closed Zig subset` | One-line project description | `FFI bridges between languages` | `*_chora.deed` `(anchor (identity))` :one-sentence (set from `Experimental source-bound program verification for a closed Zig subset` by `just repo-init`) | | `{{OPENSSF_BP_ID}}` | OpenSSF Best Practices numeric project ID (from registering at bestpractices.dev). Optional — leave blank until registered; `just repo-init` then surfaces it in the post-init "remaining placeholders" notice as a reminder. | `1234` | README.adoc (OpenSSF Best Practices badge) | ### Project Content & Onboarding (manual-fill, post-init) @@ -103,20 +103,20 @@ surfaces any left unfilled. | Placeholder | Description | Example | Files | |---|---|---|---| -| `{{PACKAGE_NAME}}` | Package / module name (slug) | `my-project` | docs/onboarding/QUICKSTART-MAINTAINER.adoc | -| `{{DESCRIPTION}}` | Short repo description (forge metadata) | `A tool for X` | .github/settings.yml | -| `{{LANG_STACK}}` | Language / toolchain stack | `Idris2 + Zig` | docs/onboarding/QUICKSTART-DEV.adoc | -| `{{BUILD_CMD}}` | Build command | `just build` | docs/onboarding/QUICKSTART-DEV.adoc | -| `{{TEST_CMD}}` | Test command | `just test` | docs/onboarding/QUICKSTART-DEV.adoc | -| `{{BUILD_OUTPUT_PATH}}` | Build artefact output path | `build/` | docs/onboarding/QUICKSTART-MAINTAINER.adoc | -| `{{DEPS}}` | Project dependencies summary | `Idris2 0.7, Zig 0.13` | docs/onboarding/QUICKSTART-MAINTAINER.adoc | -| `{{MUST_INVARIANTS}}` | Required project invariants | `no believe_me; totality on` | docs/onboarding/QUICKSTART-DEV.adoc | -| `{{MAIN_FUNCTION}}` | Primary function / purpose | `FFI bridge generation` | no file in this template (the retired Intentfile is now `.machine_readable/contractiles/intend/intend.k9.ncl`, which does not carry the token) | -| `{{TARGET_AUDIENCE}}` | Intended audience | `library authors` | no file in this template (the retired Intentfile is now `.machine_readable/contractiles/intend/intend.k9.ncl`, which does not carry the token) | +| `UNASSIGNED` | Package / module name (slug) | `my-project` | docs/onboarding/QUICKSTART-MAINTAINER.adoc | +| `Experimental source-bound program verification for a closed Zig subset` | Short repo description (forge metadata) | `A tool for X` | .github/settings.yml | +| `UNASSIGNED` | Language / toolchain stack | `Idris2 + Zig` | docs/onboarding/QUICKSTART-DEV.adoc | +| `UNASSIGNED` | Build command | `just build` | docs/onboarding/QUICKSTART-DEV.adoc | +| `UNASSIGNED` | Test command | `just test` | docs/onboarding/QUICKSTART-DEV.adoc | +| `UNASSIGNED` | Build artefact output path | `build/` | docs/onboarding/QUICKSTART-MAINTAINER.adoc | +| `UNASSIGNED` | Project dependencies summary | `Idris2 0.7, Zig 0.13` | docs/onboarding/QUICKSTART-MAINTAINER.adoc | +| `UNASSIGNED` | Required project invariants | `no believe_me; totality on` | docs/onboarding/QUICKSTART-DEV.adoc | +| `UNASSIGNED` | Primary function / purpose | `FFI bridge generation` | no file in this template (the retired Intentfile is now `.machine_readable/contractiles/intend/intend.k9.ncl`, which does not carry the token) | +| `UNASSIGNED` | Intended audience | `library authors` | no file in this template (the retired Intentfile is now `.machine_readable/contractiles/intend/intend.k9.ncl`, which does not carry the token) | | `{{EXPECTED_AUTHOR}}` | Expected author identity (trust anchor) | `hyperpolymath` | no file in this template (the retired Trustfile is now `.machine_readable/contractiles/trust/trust.k9.ncl`, which does not carry the token) | -| `{{PROJECT_UNIQUE_STRENGTH}}` | What this project does better than alternatives | `proof-carrying FFI` | `*_chora.deed` `(bot-directives (methodology (methodology (unique-strength))))` :description | -| `{{PROJECT_KIND}}` | Project kind / category | `library` | `*_chora.deed` `(anchor (identity))` :kind | -| `{{PROJECT_DOMAIN}}` | Project domain | `formal-methods` | `*_chora.deed` `(anchor (identity))` :domain | +| `UNASSIGNED` | What this project does better than alternatives | `proof-carrying FFI` | `*_chora.deed` `(bot-directives (methodology (methodology (unique-strength))))` :description | +| `UNASSIGNED` | Project kind / category | `library` | `*_chora.deed` `(anchor (identity))` :kind | +| `UNASSIGNED` | Project domain | `formal-methods` | `*_chora.deed` `(anchor (identity))` :domain | | `{{OPENSSF_PROJECT_ID}}` | OpenSSF Best Practices project ID (same value as `{{OPENSSF_BP_ID}}`) | `1234` | docs/governance/TEMPLATE-STANDARDS-AUDIT.adoc | ### Repo deed (folded family-7 allocation manifest) diff --git a/.machine_readable/coaptation/coapt.ncl b/.machine_readable/coaptation/coapt.ncl index e4806016..669ddd8e 100644 --- a/.machine_readable/coaptation/coapt.ncl +++ b/.machine_readable/coaptation/coapt.ncl @@ -136,8 +136,8 @@ let contractile_prov = "intend@%{cp.intend} must@%{cp.must} trust@%{cp.trust} ad let descriptile_prov = "deed@%{fp.deed} anchor@%{fp.anchor}" in # repo name comes from the repo deed, not a hardcoded literal — this -# script is shared verbatim by every repo instantiated from rsr-template-repo, -# so a literal "rsr-template-repo" here would misreport every one of them. +# script is shared verbatim by every repo instantiated from atoma, +# so a literal "atoma" here would misreport every one of them. let repo_name = (lookup "clade.canonical-name").value in let s = std.to_string in diff --git a/.machine_readable/coaptation/coapt.sh b/.machine_readable/coaptation/coapt.sh index 0e503666..729ab655 100755 --- a/.machine_readable/coaptation/coapt.sh +++ b/.machine_readable/coaptation/coapt.sh @@ -46,7 +46,7 @@ case "$MODE" in basis="$CO/receipts/reanchor-basis.toml" # repo name from the repo deed, not a hardcoded literal — this # script is shared verbatim by every repo instantiated from - # rsr-template-repo, so a literal "rsr-template-repo" here would + # atoma, so a literal "atoma" here would # misreport every one of them. repo_name="$(bash "$ROOT/scripts/deed-field.sh" "$(bash "$ROOT/scripts/deed-field.sh" --find "$ROOT")" "" canonical-name)" { diff --git a/.machine_readable/coaptation/receipts/latest.toml b/.machine_readable/coaptation/receipts/latest.toml index a9dd06ba..a5f29e6c 100644 --- a/.machine_readable/coaptation/receipts/latest.toml +++ b/.machine_readable/coaptation/receipts/latest.toml @@ -5,7 +5,7 @@ [receipt] schema = "hyperpolymath.coaptation/1" -repo = "rsr-template-repo" +repo = "atoma" band = "amber" proposed-action = "advisory — soft drift within bands (posture/intend). Open an advisory issue; no re-anchor." diff --git a/.machine_readable/coaptation/witness-map.ncl b/.machine_readable/coaptation/witness-map.ncl index 025d42c4..81e30f89 100644 --- a/.machine_readable/coaptation/witness-map.ncl +++ b/.machine_readable/coaptation/witness-map.ncl @@ -56,12 +56,12 @@ }, # --- ADJUST: accessibility/hygiene posture (advisory; never gates) --- - # The ANCHOR identity block still carries {{PROJECT_NAME}}; for the template + # The ANCHOR identity block still carries Atoma; for the template # itself that is expected, but it is honestly a posture dip worth surfacing. "adjust.placeholder-drift" = { kind = "descriptile", witnesses = [{ fact = "anchor.project", op = 'not_contains, arg = "{{" }], - note = "deed (anchor (identity :project)) is un-substituted ({{PROJECT_NAME}}) ⇒ posture dip", + note = "deed (anchor (identity :project)) is un-substituted (Atoma) ⇒ posture dip", }, # --- BUST: deliberately NO descriptile witness since rsr-template-repo#209. --- diff --git a/.machine_readable/compliance/reuse/dep5 b/.machine_readable/compliance/reuse/dep5 index 637157cd..1ef7d11e 100644 --- a/.machine_readable/compliance/reuse/dep5 +++ b/.machine_readable/compliance/reuse/dep5 @@ -1,56 +1,56 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ -Upstream-Name: {{PROJECT_NAME}} -Upstream-Contact: {{AUTHOR}} <{{AUTHOR_EMAIL}}> -Source: https://github.com/{{OWNER}}/{{REPO}} +Upstream-Name: Atoma +Upstream-Contact: Jonathan D.A. Jewell +Source: https://github.com/hyperpolymath/atoma # Default: all files are MPL-2.0 Files: * -Copyright: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright: 2026 Jonathan D.A. Jewell (hyperpolymath) License: MPL-2.0 # Configuration files that cannot carry headers Files: .editorconfig .gitignore .gitattributes .tool-versions .mailmap -Copyright: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright: 2026 Jonathan D.A. Jewell (hyperpolymath) License: MPL-2.0 # Machine-readable state files Files: .machine_readable/*.a2ml -Copyright: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright: 2026 Jonathan D.A. Jewell (hyperpolymath) License: MPL-2.0 # Bot directives Files: .machine_readable/bot_directives/* -Copyright: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright: 2026 Jonathan D.A. Jewell (hyperpolymath) License: MPL-2.0 # Contractiles Files: .machine_readable/contractiles/* -Copyright: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright: 2026 Jonathan D.A. Jewell (hyperpolymath) License: MPL-2.0 # GitHub/CI configuration Files: .github/* .github/**/* -Copyright: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright: 2026 Jonathan D.A. Jewell (hyperpolymath) License: MPL-2.0 # Generated files Files: generated/* -Copyright: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright: 2026 Jonathan D.A. Jewell (hyperpolymath) License: MPL-2.0 # Lockfiles and auto-generated Files: *.lock Cargo.lock flake.lock -Copyright: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright: 2026 Jonathan D.A. Jewell (hyperpolymath) License: MPL-2.0 # Devcontainer config (JSON, no comments) Files: .devcontainer/*.json -Copyright: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright: 2026 Jonathan D.A. Jewell (hyperpolymath) License: MPL-2.0 # Git-cliff config Files: cliff.toml -Copyright: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright: 2026 Jonathan D.A. Jewell (hyperpolymath) License: MPL-2.0 # Narrative documentation is CC-BY-SA-4.0 (estate Rule 1). @@ -58,5 +58,5 @@ License: MPL-2.0 # including the GitHub community-health .md files. Machine-readable .a2ml is a # different extension and stays MPL-2.0 per its stanza above. Files: *.adoc *.md -Copyright: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright: 2026 Jonathan D.A. Jewell (hyperpolymath) License: CC-BY-SA-4.0 diff --git a/.machine_readable/configs/eclexiaiser.toml b/.machine_readable/configs/eclexiaiser.toml index abc542ed..69d875d1 100644 --- a/.machine_readable/configs/eclexiaiser.toml +++ b/.machine_readable/configs/eclexiaiser.toml @@ -2,7 +2,7 @@ # SPDX-License-Identifier: MPL-2.0 [project] -name = "{{REPO}}" +name = "atoma" [[functions]] name = "build" diff --git a/.machine_readable/configs/git-cliff/cliff.toml b/.machine_readable/configs/git-cliff/cliff.toml index 5c39b484..61c48205 100644 --- a/.machine_readable/configs/git-cliff/cliff.toml +++ b/.machine_readable/configs/git-cliff/cliff.toml @@ -1,12 +1,12 @@ # SPDX-License-Identifier: MPL-2.0 -# Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) # # git-cliff configuration for conventional commit changelog generation. # https://git-cliff.org/docs/configuration # # Placeholders — replace before first use: -# {{OWNER}} — GitHub organization or username -# {{REPO}} — GitHub repository name +# hyperpolymath — GitHub organization or username +# atoma — GitHub repository name [changelog] # Changelog header @@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # https://keats.github.io/tera/docs/#introduction body = """ {%- macro remote_url() -%} - https://github.com/{{OWNER}}/{{REPO}} + https://github.com/hyperpolymath/atoma {%- endmacro -%} {% if version -%} @@ -57,7 +57,7 @@ body = """ # Template for the changelog footer footer = """ {%- macro remote_url() -%} - https://github.com/{{OWNER}}/{{REPO}} + https://github.com/hyperpolymath/atoma {%- endmacro -%} {% for release in releases -%} diff --git a/.machine_readable/configs/stapeln.toml b/.machine_readable/configs/stapeln.toml index 7bf5d48d..07f86b65 100644 --- a/.machine_readable/configs/stapeln.toml +++ b/.machine_readable/configs/stapeln.toml @@ -1,16 +1,16 @@ # SPDX-License-Identifier: MPL-2.0 -# stapeln.toml — Layer-based container build for {{SERVICE_NAME}} +# stapeln.toml — Layer-based container build for atoma # # stapeln builds containers as composable layers (German: "to stack"). # Each layer is independently cacheable, verifiable, and signable. [metadata] -name = "{{SERVICE_NAME}}" +name = "atoma" version = "0.1.0" -description = "{{SERVICE_NAME}} container service" +description = "atoma container service" author = "Jonathan D.A. Jewell " license = "MPL-2.0" -registry = "{{REGISTRY}}" +registry = "ghcr.io/hyperpolymath" [build] containerfile = "Containerfile" @@ -32,7 +32,7 @@ packages = [] cache = true [layers.build] -description = "{{SERVICE_NAME}} build" +description = "atoma build" extends = "toolchain" commands = [] @@ -43,7 +43,7 @@ packages = ["ca-certificates", "curl"] copy-from = [ { layer = "build", src = "/app/", dst = "/app/" }, ] -entrypoint = ["/app/{{SERVICE_NAME}}"] +entrypoint = ["/app/atoma"] user = "nonroot" # ── Security ─────────────────────────────────────────────────── diff --git a/.machine_readable/contractiles/Justfile b/.machine_readable/contractiles/Justfile index d54df313..67da5a7f 100644 --- a/.machine_readable/contractiles/Justfile +++ b/.machine_readable/contractiles/Justfile @@ -22,9 +22,9 @@ import? "build/contractile.just" mod provision 'build/just/provision.just' # Project metadata — customize these -project := "rsr-template-repo" +project := "atoma" OWNER := "hyperpolymath" -REPO := "rsr-template-repo" +REPO := "atoma" version := "0.1.0" tier := "infrastructure" # 1 | 2 | infrastructure @@ -574,7 +574,7 @@ opsm: provision::opsm # Guided tour of key features tour: - @echo "=== rsr-template-repo Tour ===" + @echo "=== atoma Tour ===" @echo "" @echo "1. Project structure:" @ls -la @@ -589,12 +589,12 @@ tour: # Open feedback channel with diagnostic context help-me: - @echo "=== rsr-template-repo Help ===" + @echo "=== atoma Help ===" @echo "Platform: $(uname -s) $(uname -m)" @echo "Shell: $SHELL" @echo "" @echo "To report an issue:" - @echo " https://github.com/hyperpolymath/rsr-template-repo/issues/new" + @echo " https://github.com/hyperpolymath/atoma/issues/new" @echo "" @echo "Include the output of 'just doctor' in your report." diff --git a/.machine_readable/contractiles/README.adoc b/.machine_readable/contractiles/README.adoc index 0006f5bd..421de92e 100644 --- a/.machine_readable/contractiles/README.adoc +++ b/.machine_readable/contractiles/README.adoc @@ -5,7 +5,7 @@ :sectnums: This directory contains the canonical contractile templates for the -hyperpolymath estate. `rsr-template-repo` mirrors the standards master +hyperpolymath estate. `atoma` mirrors the standards master structure; copy `.machine_readable/contractiles/` into a new repo to establish a consistent operational, validation, trust, recovery, aspiration, and service-automation framework. diff --git a/.machine_readable/contractiles/adjust/adjust.k9.ncl b/.machine_readable/contractiles/adjust/adjust.k9.ncl index 267c7d83..afc24985 100644 --- a/.machine_readable/contractiles/adjust/adjust.k9.ncl +++ b/.machine_readable/contractiles/adjust/adjust.k9.ncl @@ -79,7 +79,7 @@ let base = import "../_base.ncl" in signed_by = { user = "Jonathan D.A. Jewell", date = "2026-04-18", - context = "adjust trident — canonical template in rsr-template-repo. (Yard, advisory) authority pattern. Specialises in cumulative-drift catchment — tolerance bands + trend tracking + auto-fix-where-declared. Advisory (continue-with-warnings). Copy this trident into a new repo and define its drift tolerances and corrective actions.", + context = "adjust trident — canonical template in atoma. (Yard, advisory) authority pattern. Specialises in cumulative-drift catchment — tolerance bands + trend tracking + auto-fix-where-declared. Advisory (continue-with-warnings). Copy this trident into a new repo and define its drift tolerances and corrective actions.", }, history = [ { date = "2026-04-18", event = "trident-born", note = "Adjustfile.a2ml and adjust.ncl pre-existed. This manifest + adjust.k9.ncl complete the trident. Exercises the Yard tier + advisory authority for the first time; on_exceeded = 'warn_and_attempt_fix rather than 'fail. adjust-specific track_drift_trend_over_sessions + flag_accelerating_drift." }, @@ -97,8 +97,8 @@ let base = import "../_base.ncl" in # Read by .machine_readable/coaptation/extract-clauses.sh. # ------------------------------------------------------------------- declaration = { - preamble = "# SPDX-License-Identifier: MPL-2.0\n# Adjustfile — Drift-tolerance contract for rsr-template-repo\n# Author: Jonathan D.A. Jewell \n#\n# Cumulative-drift catchment: tolerance bands + corrective actions.\n# Authority: advisory (Yard) — continue-with-warnings; auto_fix where deterministic.\n# Run with: adjust check\n# Fix with: adjust fix (applies deterministic patches; advisory otherwise)\n", - abstract = "Drift tolerances and corrective actions for rsr-template-repo. Unlike\nMUST (hard gate), ADJUST tracks cumulative drift against tolerance bands\nand proposes corrective actions. Advisory — it warns and trends, it does\nnot block.", + preamble = "# SPDX-License-Identifier: MPL-2.0\n# Adjustfile — Drift-tolerance contract for atoma\n# Author: Jonathan D.A. Jewell \n#\n# Cumulative-drift catchment: tolerance bands + corrective actions.\n# Authority: advisory (Yard) — continue-with-warnings; auto_fix where deterministic.\n# Run with: adjust check\n# Fix with: adjust fix (applies deterministic patches; advisory otherwise)\n", + abstract = "Drift tolerances and corrective actions for atoma. Unlike\nMUST (hard gate), ADJUST tracks cumulative drift against tolerance bands\nand proposes corrective actions. Advisory — it warns and trends, it does\nnot block.", prose = [ ], requirements = [ diff --git a/.machine_readable/contractiles/bust/bust.k9.ncl b/.machine_readable/contractiles/bust/bust.k9.ncl index 2e94cc21..ecae0243 100644 --- a/.machine_readable/contractiles/bust/bust.k9.ncl +++ b/.machine_readable/contractiles/bust/bust.k9.ncl @@ -81,7 +81,7 @@ let base = import "../_base.ncl" in signed_by = { user = "Jonathan D.A. Jewell", date = "2026-04-18", - context = "bust trident — canonical template in rsr-template-repo. Completes the blocking-authority triple (must + trust + bust). Specialises in deprecated-path-reintroduction catchment. Declares hard-stop / expiry / must-not-run conditions. Copy this trident into a new repo and declare its real breakage / expiry conditions.", + context = "bust trident — canonical template in atoma. Completes the blocking-authority triple (must + trust + bust). Specialises in deprecated-path-reintroduction catchment. Declares hard-stop / expiry / must-not-run conditions. Copy this trident into a new repo and declare its real breakage / expiry conditions.", }, history = [ { date = "2026-04-18", event = "trident-born", note = "Bustfile.a2ml and bust.ncl pre-existed. This manifest + bust.k9.ncl complete the trident. Inherits the full negotiation+accountability schema from intend.k9.ncl v2.0.0 + trust/must extensions; adds flag_deprecated_reintroduction for C2-defense specificity." }, @@ -99,8 +99,8 @@ let base = import "../_base.ncl" in # Read by .machine_readable/coaptation/extract-clauses.sh. # ------------------------------------------------------------------- declaration = { - preamble = "# SPDX-License-Identifier: MPL-2.0\n# Bustfile — failure mode contractile for rsr-template-repo\n# Author: Jonathan D.A. Jewell \n#\n# Paired runner: bust.ncl\n# Verb: bust\n# Semantics: Every declared failure mode must have a working recovery path\n# that has been exercised. Status moves:\n# declared → drilled (probe run) → verified (recovery confirmed)\n# or → failing (recovery broken)\n#\n# CLI:\n# contractile bust check → list failure modes + recovery status\n# contractile bust drill → inject failures, verify recovery paths\n#\n# This repository: rsr-template-repo is the canonical template for RSR compliance.\n# Failure modes here relate to template distribution and substitution.\n", - abstract = "Bustfile for rsr-template-repo. Lists failure modes specific to the template\nrepository itself, particularly around template distribution, substitution,\nand synchronization across the hyperpolymath estate.", + preamble = "# SPDX-License-Identifier: MPL-2.0\n# Bustfile — failure mode contractile for atoma\n# Author: Jonathan D.A. Jewell \n#\n# Paired runner: bust.ncl\n# Verb: bust\n# Semantics: Every declared failure mode must have a working recovery path\n# that has been exercised. Status moves:\n# declared → drilled (probe run) → verified (recovery confirmed)\n# or → failing (recovery broken)\n#\n# CLI:\n# contractile bust check → list failure modes + recovery status\n# contractile bust drill → inject failures, verify recovery paths\n#\n# This repository: atoma is the canonical template for RSR compliance.\n# Failure modes here relate to template distribution and substitution.\n", + abstract = "Bustfile for atoma. Lists failure modes specific to the template\nrepository itself, particularly around template distribution, substitution,\nand synchronization across the hyperpolymath estate.", prose = [ ], failure_modes = [ @@ -109,7 +109,7 @@ let base = import "../_base.ncl" in section = "Failure Modes", class = 'template_processing, description = "Template substitution fails when initializing a new repo from this template", - injection_probe = "cp -r rsr-template-repo test-repo && cd test-repo && sed -i 's/rsr-template-repo/TEST/g' .machine_readable/contractiles/intend/intend.k9.ncl && grep -q 'TEST' .machine_readable/contractiles/intend/intend.k9.ncl", + injection_probe = "cp -r atoma test-repo && cd test-repo && sed -i 's/atoma/TEST/g' .machine_readable/contractiles/intend/intend.k9.ncl && grep -q 'TEST' .machine_readable/contractiles/intend/intend.k9.ncl", recovery_probe = "git -C test-repo diff --quiet .machine_readable/contractiles/intend/intend.k9.ncl", expected_recovery_time_seconds = 10, status = 'declared, @@ -119,7 +119,7 @@ let base = import "../_base.ncl" in id = "sync-drift-between-repos", section = "Failure Modes", class = 'synchronization, - description = "Drift occurs between rsr-template-repo and other repos after template updates", + description = "Drift occurs between atoma and other repos after template updates", injection_probe = "echo 'template_updated' > /tmp/test_drift_marker", recovery_probe = "test -f /tmp/test_drift_marker && rm /tmp/test_drift_marker", expected_recovery_time_seconds = 60, @@ -131,8 +131,8 @@ let base = import "../_base.ncl" in section = "Failure Modes", class = 'contractile_format, description = "A contractile file fails to parse due to syntax errors", - injection_probe = "echo 'invalid syntax' >> rsr-template-repo/.machine_readable/contractiles/intend/intend.k9.ncl", - recovery_probe = "git checkout rsr-template-repo/.machine_readable/contractiles/intend/intend.k9.ncl", + injection_probe = "echo 'invalid syntax' >> atoma/.machine_readable/contractiles/intend/intend.k9.ncl", + recovery_probe = "git checkout atoma/.machine_readable/contractiles/intend/intend.k9.ncl", expected_recovery_time_seconds = 5, status = 'declared, notes = "Every .k9.ncl must typecheck; validate with .github/hooks/validate-k9.sh and nickel typecheck", diff --git a/.machine_readable/contractiles/dust/dust.k9.ncl b/.machine_readable/contractiles/dust/dust.k9.ncl index 7a8284c9..8be61925 100644 --- a/.machine_readable/contractiles/dust/dust.k9.ncl +++ b/.machine_readable/contractiles/dust/dust.k9.ncl @@ -90,7 +90,7 @@ let base = import "../_base.ncl" in signed_by = { user = "Jonathan D.A. Jewell", date = "2026-04-18", - context = "dust trident — canonical template in rsr-template-repo. Specialises in audit-trail preservation + rollback-path verification. Yard tier with destructive-action gating (dry-run default; --apply + per-item approval required for mutations). Copy this trident into a new repo and describe how it actually rolls back or retires behaviour.", + context = "dust trident — canonical template in atoma. Specialises in audit-trail preservation + rollback-path verification. Yard tier with destructive-action gating (dry-run default; --apply + per-item approval required for mutations). Copy this trident into a new repo and describe how it actually rolls back or retires behaviour.", }, history = [ { date = "2026-04-18", event = "trident-born", note = "Dustfile.a2ml and dust.ncl pre-existed. This manifest + dust.k9.ncl complete the trident and the full verb set. All 6 verbs now on trident shape: intend (Hunt, reporting), trust (Hunt, blocking), must (Hunt-read-only, blocking), bust (Hunt-read-only, blocking), adjust (Yard, advisory), dust (Yard, advisory)." }, @@ -109,8 +109,8 @@ let base = import "../_base.ncl" in # Read by .machine_readable/coaptation/extract-clauses.sh. # ------------------------------------------------------------------- declaration = { - preamble = "# SPDX-License-Identifier: MPL-2.0\n# Dustfile — Cleanup and hygiene contract for rsr-template-repo\n# Author: Jonathan D.A. Jewell \n#\n# Paired runner: dust.ncl\n# Verb: dust\n# Semantics: What should be cleaned up. Housekeeping, not blockers.\n#\n# This repository: rsr-template-repo is the canonical template.\n# Cleanup items here ensure the template itself remains pristine.\n", - abstract = "Cleanup and hygiene items for rsr-template-repo. These are maintenance tasks\nthat ensure the template repository remains clean and ready for distribution\nto new repositories.", + preamble = "# SPDX-License-Identifier: MPL-2.0\n# Dustfile — Cleanup and hygiene contract for atoma\n# Author: Jonathan D.A. Jewell \n#\n# Paired runner: dust.ncl\n# Verb: dust\n# Semantics: What should be cleaned up. Housekeeping, not blockers.\n#\n# This repository: atoma is the canonical template.\n# Cleanup items here ensure the template itself remains pristine.\n", + abstract = "Cleanup and hygiene items for atoma. These are maintenance tasks\nthat ensure the template repository remains clean and ready for distribution\nto new repositories.", prose = [ ], removal_candidates = [ @@ -156,10 +156,10 @@ let base = import "../_base.ncl" in { id = "no-stale-template-references", section = "Template Hygiene", - description = "No references to rsr-template-repo in generic template files", - probe = "test -z \"$(grep -r 'rsr-template-repo' machine-readable-design/ 2>/dev/null)\"", + description = "No references to atoma in generic template files", + probe = "test -z \"$(grep -r 'atoma' machine-readable-design/ 2>/dev/null)\"", severity = 'warning, - notes = "Generic templates should use {{PROJECT_NAME}} or similar placeholders", + notes = "Generic templates should use Atoma or similar placeholders", }, { id = "version-sync-checked", diff --git a/.machine_readable/contractiles/intend/intend.k9.ncl b/.machine_readable/contractiles/intend/intend.k9.ncl index 68681dec..5ad2967c 100644 --- a/.machine_readable/contractiles/intend/intend.k9.ncl +++ b/.machine_readable/contractiles/intend/intend.k9.ncl @@ -94,7 +94,7 @@ let base = import "../_base.ncl" in signed_by = { user = "Jonathan D.A. Jewell", date = "2026-04-18", - context = "intend trident — canonical template in rsr-template-repo. North-star verb: reports progress toward committed next-actions ([[intents]]) and lists horizon aspirations ([[wishes]]). Non-gating (reporting authority). Copy this trident into a new repo and replace the declaration with project-specific content.", + context = "intend trident — canonical template in atoma. North-star verb: reports progress toward committed next-actions ([[intents]]) and lists horizon aspirations ([[wishes]]). Non-gating (reporting authority). Copy this trident into a new repo and replace the declaration with project-specific content.", }, history = [ { date = "2026-04-18", event = "trident-born", note = "intend/Intentfile.a2ml pre-existed (f380b62, lust absorption). This manifest + intend.k9.ncl complete the trident for the first time." }, @@ -113,12 +113,12 @@ let base = import "../_base.ncl" in # Read by .machine_readable/coaptation/extract-clauses.sh. # ------------------------------------------------------------------- declaration = { - preamble = "# SPDX-License-Identifier: MPL-2.0\n# Intentfile — north-star contractile for rsr-template-repo\n# Author: Jonathan D.A. Jewell \n#\n# Paired runner: intend.ncl\n# Verb: intend\n#\n# Semantics: North-star contractile. Declares BOTH concrete committed\n# next-actions AND horizon aspirations the project wishes to\n# become. Two sections share one file because they answer\n# the same question at different ranges:\n# [[intents]] — \"we WILL do this; track progress\"\n# status: declared → in_progress → done |\n# deferred | retired\n# [[wishes]] — \"we WISH this were true; revisit later\"\n# status: declared → in_progress → achieved |\n# abandoned\n# grouped by horizon: near / mid / far.\n# Non-gating — this is a report, not a gate. See the `must`\n# contractile for hard gates.\n", - abstract = "North-star contractile for rsr-template-repo. This repository is the\ncanonical template for Rhodium Standard Repository compliance. It provides\nthe scaffold that all hyperpolymath repos should copy and customize.", + preamble = "# SPDX-License-Identifier: MPL-2.0\n# Intentfile — north-star contractile for atoma\n# Author: Jonathan D.A. Jewell \n#\n# Paired runner: intend.ncl\n# Verb: intend\n#\n# Semantics: North-star contractile. Declares BOTH concrete committed\n# next-actions AND horizon aspirations the project wishes to\n# become. Two sections share one file because they answer\n# the same question at different ranges:\n# [[intents]] — \"we WILL do this; track progress\"\n# status: declared → in_progress → done |\n# deferred | retired\n# [[wishes]] — \"we WISH this were true; revisit later\"\n# status: declared → in_progress → achieved |\n# abandoned\n# grouped by horizon: near / mid / far.\n# Non-gating — this is a report, not a gate. See the `must`\n# contractile for hard gates.\n", + abstract = "North-star contractile for atoma. This repository is the\ncanonical template for Rhodium Standard Repository compliance. It provides\nthe scaffold that all hyperpolymath repos should copy and customize.", prose = [ { section = "Purpose", - text = "The rsr-template-repo serves as the master template for all hyperpolymath\nrepositories. It contains the complete set of contractile files, machine-readable\nspecifications, and governance documentation that define the Rhodium Standard.\n\nEvery new repository in the hyperpolymath estate should be initialized by\ncopying this template and substituting the placeholder values with\nrepo-specific content.", + text = "The atoma serves as the master template for all hyperpolymath\nrepositories. It contains the complete set of contractile files, machine-readable\nspecifications, and governance documentation that define the Rhodium Standard.\n\nEvery new repository in the hyperpolymath estate should be initialized by\ncopying this template and substituting the placeholder values with\nrepo-specific content.", }, { section = "Anti-Purpose", diff --git a/.machine_readable/contractiles/must/must.k9.ncl b/.machine_readable/contractiles/must/must.k9.ncl index ef04084e..48f2538d 100644 --- a/.machine_readable/contractiles/must/must.k9.ncl +++ b/.machine_readable/contractiles/must/must.k9.ncl @@ -106,7 +106,7 @@ let base = import "../_base.ncl" in signed_by = { user = "Jonathan D.A. Jewell", date = "2026-04-18", - context = "must trident — canonical template in rsr-template-repo. Blocking-authority verb (paired with trust). Specialises in subtle invariant-erosion catchment vs trust's outrageous-attack catchment. Hard gate: any failing invariant blocks merge. Copy this trident into a new repo and replace the declaration with project-specific invariants.", + context = "must trident — canonical template in atoma. Blocking-authority verb (paired with trust). Specialises in subtle invariant-erosion catchment vs trust's outrageous-attack catchment. Hard gate: any failing invariant blocks merge. Copy this trident into a new repo and replace the declaration with project-specific invariants.", }, history = [ { date = "2026-04-18", event = "trident-born", note = "Mustfile.a2ml and must.ncl pre-existed. This manifest + must.k9.ncl complete the trident. Inherits on_open schema from intend.k9.ncl v2.0.0; inherits block_session_close_on_critical_drift + variance-severity-acknowledgement from trust.k9.ncl v1.0.0; adds must-specific track_per_session_trend + flag_silent_regression + probe_scope = 'read_only (must doesn't do active exploit attempts — that's trust's safe_hacking territory)." }, @@ -124,8 +124,8 @@ let base = import "../_base.ncl" in # Read by .machine_readable/coaptation/extract-clauses.sh. # ------------------------------------------------------------------- declaration = { - preamble = "# SPDX-License-Identifier: MPL-2.0\n# Mustfile — Physical state contract for rsr-template-repo\n# Author: Jonathan D.A. Jewell \n#\n# What MUST be true about this repository. Hard requirements.\n# Run with: must check\n# Fix with: must fix (where a deterministic fix exists)\n", - abstract = "Physical-state invariants for rsr-template-repo. This is the canonical\nRSR template repository. These are hard requirements — CI and pre-commit\nhooks fail if any check fails.", + preamble = "# SPDX-License-Identifier: MPL-2.0\n# Mustfile — Physical state contract for atoma\n# Author: Jonathan D.A. Jewell \n#\n# What MUST be true about this repository. Hard requirements.\n# Run with: must check\n# Fix with: must fix (where a deterministic fix exists)\n", + abstract = "Physical-state invariants for atoma. This is the canonical\nRSR template repository. These are hard requirements — CI and pre-commit\nhooks fail if any check fails.", prose = [ { section = "Template Integrity", diff --git a/.machine_readable/contractiles/trust/trust.k9.ncl b/.machine_readable/contractiles/trust/trust.k9.ncl index 1ec9ed4e..50097cdb 100644 --- a/.machine_readable/contractiles/trust/trust.k9.ncl +++ b/.machine_readable/contractiles/trust/trust.k9.ncl @@ -112,7 +112,7 @@ let base = import "../_base.ncl" in signed_by = { user = "Jonathan D.A. Jewell", date = "2026-04-18", - context = "trust trident — canonical template in rsr-template-repo. (Hunt, blocking) authority pattern. Primary catchment for adversarial drift test scenarios (firewall-off, cleartext-auth, PQ-downgrade, CSP-weaken). Hard gate: failed verification blocks merge. Copy this trident into a new repo and point it at the real keys, policies, and authority boundaries.", + context = "trust trident — canonical template in atoma. (Hunt, blocking) authority pattern. Primary catchment for adversarial drift test scenarios (firewall-off, cleartext-auth, PQ-downgrade, CSP-weaken). Hard gate: failed verification blocks merge. Copy this trident into a new repo and point it at the real keys, policies, and authority boundaries.", }, history = [ { date = "2026-04-18", event = "trident-born", note = "Trustfile.a2ml and trust.ncl pre-existed. This manifest + trust.k9.ncl complete the trident. Inherits on_open negotiation + accountability + plain-language-translation schema from intend.k9.ncl v2.0.0; adds trust-specific threat_model_foregrounding + block_session_close_on_critical_drift + stricter accountability pledge (user cannot disable verification to unblock merges)." }, @@ -130,12 +130,12 @@ let base = import "../_base.ncl" in # Read by .machine_readable/coaptation/extract-clauses.sh. # ------------------------------------------------------------------- declaration = { - preamble = "# SPDX-License-Identifier: MPL-2.0\n# Trustfile — Trust boundaries and integrity invariants for rsr-template-repo\n# Author: Jonathan D.A. Jewell \n#\n# Defines what LLM/SLM agents are trusted to do without asking, and\n# integrity invariants that verify the repo has not been tampered with.\n", - abstract = "Trust boundaries and integrity checks for rsr-template-repo. This file\ncombines the trust-level definitions from the original TRUST.contractile\nwith the integrity invariants from the old Trustfile.a2ml. It defines\nwhat AI agents may do autonomously and what requires human approval,\nplus checks that verify repository integrity.", + preamble = "# SPDX-License-Identifier: MPL-2.0\n# Trustfile — Trust boundaries and integrity invariants for atoma\n# Author: Jonathan D.A. Jewell \n#\n# Defines what LLM/SLM agents are trusted to do without asking, and\n# integrity invariants that verify the repo has not been tampered with.\n", + abstract = "Trust boundaries and integrity checks for atoma. This file\ncombines the trust-level definitions from the original TRUST.contractile\nwith the integrity invariants from the old Trustfile.a2ml. It defines\nwhat AI agents may do autonomously and what requires human approval,\nplus checks that verify repository integrity.", prose = [ { section = "Trust Levels", - text = "The rsr-template-repo operates at trust level: maximal\n\nTrust levels:\n- maximal: Agent may read, build, test, lint, format, heal freely.\n Only destructive/external actions require approval.\n- standard: Agent may read and build. Test/lint need approval.\n- restricted: Agent may read only. All modifications need approval.\n- minimal: Agent may read specific files only. Everything else blocked.\n\nCurrent trust level: maximal", + text = "The atoma operates at trust level: maximal\n\nTrust levels:\n- maximal: Agent may read, build, test, lint, format, heal freely.\n Only destructive/external actions require approval.\n- standard: Agent may read and build. Test/lint need approval.\n- restricted: Agent may read only. All modifications need approval.\n- minimal: Agent may read specific files only. Everything else blocked.\n\nCurrent trust level: maximal", }, ], verifications = [ diff --git a/.machine_readable/descriptiles/anchors/README.adoc b/.machine_readable/descriptiles/anchors/README.adoc index 9d2f62f5..72b22a1a 100644 --- a/.machine_readable/descriptiles/anchors/README.adoc +++ b/.machine_readable/descriptiles/anchors/README.adoc @@ -10,7 +10,7 @@ anchor file lives in this directory, and no `.a2ml` file may be created here. - `(anchor)` - Project recalibration, scope intervention, canonical authority -Read a field with `scripts/deed-field.sh rsr-template-repo_chora.deed anchor `. +Read a field with `scripts/deed-field.sh atoma_chora.deed anchor `. ## Multiple Versions diff --git a/.machine_readable/descriptiles/provisioning_praxis.deed b/.machine_readable/descriptiles/provisioning_praxis.deed index 54459823..7be7d039 100644 --- a/.machine_readable/descriptiles/provisioning_praxis.deed +++ b/.machine_readable/descriptiles/provisioning_praxis.deed @@ -10,8 +10,8 @@ ;; Canon: hyperpolymath/standards 3-practice/provisioning/PROVISIONING-STANDARD.adoc (praxis-deed :schema-version "1.0.0" - :canonical-name "rsr-template-repo-provisioning" - :repo "hyperpolymath/rsr-template-repo" + :canonical-name "atoma-provisioning" + :repo "hyperpolymath/atoma" :archetype "library" ; app | library | tool | theory | docs :languages "idris2 zig" ; detected; informational ;; Contract-verb overrides ("" = per-language default, which `just langs` shows) diff --git a/.machine_readable/root-allow.txt b/.machine_readable/root-allow.txt index 24b467e9..ed58c010 100644 --- a/.machine_readable/root-allow.txt +++ b/.machine_readable/root-allow.txt @@ -32,7 +32,7 @@ LICENSE LICENSES/ # REUSE licence texts, dual-licence model (code MPL-2.0 / docs CC-BY-SA-4.0) CHANGELOG.adoc # AsciiDoc is the estate-standard documentation format CITATION.cff # citation metadata; GitHub reads it from the root of the default branch only -rsr-template-repo_chora.deed # the repo deed: universal AI entry point; family-7 allocation manifest + ply tree folded in (standards#837 pilot). Filename carries the repo slug (deed dispatch _chora.deed), so repo-init renames it at mint +atoma_chora.deed # the repo deed: universal AI entry point; family-7 allocation manifest + ply tree folded in (standards#837 pilot). Filename carries the repo slug (deed dispatch _chora.deed), so repo-init renames it at mint CLAUDE.md # generated arrival pack; the generator, pre-commit and Claude Code all read it from the ROOT (do not hand-edit; edit the repo deed) ?GEMINI.md # pointer to CLAUDE.md for repos without AGENTS.md yet Justfile # thin; delegates phases to build/just/*.just diff --git a/.machine_readable/scripts/maintenance/maint-assault.sh b/.machine_readable/scripts/maintenance/maint-assault.sh index f170cabc..b3e5e832 100644 --- a/.machine_readable/scripts/maintenance/maint-assault.sh +++ b/.machine_readable/scripts/maintenance/maint-assault.sh @@ -8,7 +8,7 @@ set -euo pipefail -BINARY_NAME="{{project}}" +BINARY_NAME="atoma" REPORT_PATH="docs/reports/security/assault-latest.json" PA_BIN="${PANIC_ATTACK_BIN:-panic-attack}" diff --git a/.machine_readable/self-validating/README.adoc b/.machine_readable/self-validating/README.adoc index 0530eede..59d93dfe 100644 --- a/.machine_readable/self-validating/README.adoc +++ b/.machine_readable/self-validating/README.adoc @@ -131,7 +131,7 @@ K9 contractiles integrate with other RSR standards: ⚠️ **Never run as root unless required** + ⚠️ **Sandbox external components** -**See:** https://github.com/{{OWNER}}/k9-svc/blob/main/docs/SECURITY-BEST-PRACTICES.adoc +**See:** https://github.com/hyperpolymath/k9-svc/blob/main/docs/SECURITY-BEST-PRACTICES.adoc == Template Files @@ -155,14 +155,14 @@ chmod +x nickel && sudo mv nickel /usr/local/bin/ cargo install just # Clone K9-SVC (for must shim and tooling) -git clone https://github.com/{{OWNER}}/k9-svc.git +git clone https://github.com/hyperpolymath/k9-svc.git ---- == Learn More -- **K9-SVC Specification:** https://github.com/{{OWNER}}/k9-svc/blob/main/SPEC.adoc -- **K9 User Guide:** https://github.com/{{OWNER}}/k9-svc/blob/main/GUIDE.adoc -- **Security Documentation:** https://github.com/{{OWNER}}/k9-svc/blob/main/docs/SECURITY-FAQ.adoc +- **K9-SVC Specification:** https://github.com/hyperpolymath/k9-svc/blob/main/SPEC.adoc +- **K9 User Guide:** https://github.com/hyperpolymath/k9-svc/blob/main/GUIDE.adoc +- **Security Documentation:** https://github.com/hyperpolymath/k9-svc/blob/main/docs/SECURITY-FAQ.adoc - **IANA Media Type:** `application/vnd.k9+nickel` == Contributing @@ -175,4 +175,4 @@ When adding K9 contractiles to your repository: 4. Sign Hunt-level components before committing 5. Add K9 validation to CI/CD pipeline -**Questions?** Open an issue on https://github.com/{{OWNER}}/k9-svc +**Questions?** Open an issue on https://github.com/hyperpolymath/k9-svc diff --git a/.machine_readable/self-validating/examples/ci-config.k9.ncl b/.machine_readable/self-validating/examples/ci-config.k9.ncl index 1f38e2dc..9fe314e2 100644 --- a/.machine_readable/self-validating/examples/ci-config.k9.ncl +++ b/.machine_readable/self-validating/examples/ci-config.k9.ncl @@ -19,7 +19,7 @@ K9! name = "ci-config", version = "1.0.0", description = "CI/CD configuration with runtime validation", - author = "{{AUTHOR}} <{{AUTHOR_EMAIL}}>", + author = "Jonathan D.A. Jewell ", }, }, diff --git a/.machine_readable/self-validating/examples/project-metadata.k9.ncl b/.machine_readable/self-validating/examples/project-metadata.k9.ncl index c8e6ebf0..5de965d6 100644 --- a/.machine_readable/self-validating/examples/project-metadata.k9.ncl +++ b/.machine_readable/self-validating/examples/project-metadata.k9.ncl @@ -19,7 +19,7 @@ K9! name = "project-metadata", version = "1.0.0", description = "Pure data configuration for project metadata", - author = "{{AUTHOR}} <{{AUTHOR_EMAIL}}>", + author = "Jonathan D.A. Jewell ", }, }, @@ -30,14 +30,14 @@ K9! description = "A project following Rhodium Standard Repositories", repository = { - url = "https://github.com/{{OWNER}}/my-project", + url = "https://github.com/hyperpolymath/my-project", type = "git", }, author = { - name = "{{AUTHOR}}", - email = "{{AUTHOR_EMAIL}}", - organization = "{{AUTHOR_ORG}}", + name = "Jonathan D.A. Jewell", + email = "j.d.a.jewell@open.ac.uk", + organization = "", }, license = "MPL-2.0", @@ -45,7 +45,7 @@ K9! keywords = [ "rhodium-standard", "rsr", - "{{OWNER}}", + "hyperpolymath", ], }, diff --git a/.machine_readable/self-validating/examples/setup-repo.k9.ncl.in b/.machine_readable/self-validating/examples/setup-repo.k9.ncl.in index f86df82f..75d6b9ff 100644 --- a/.machine_readable/self-validating/examples/setup-repo.k9.ncl.in +++ b/.machine_readable/self-validating/examples/setup-repo.k9.ncl.in @@ -20,7 +20,7 @@ K9! name = "setup-repo", version = "1.0.0", description = "Automated repository setup with RSR standards", - author = "{{AUTHOR}} <{{AUTHOR_EMAIL}}>", + author = "Jonathan D.A. Jewell ", }, warnings = [ "This component has full system access", @@ -104,8 +104,8 @@ K9! description = "Initialize Git repository", commands = [ "git init -b %{config.git.default_branch}", - "git config user.name '{{AUTHOR}}'", - "git config user.email '{{AUTHOR_EMAIL}}'", + "git config user.name 'Jonathan D.A. Jewell'", + "git config user.email 'j.d.a.jewell@open.ac.uk'", "echo '✓ Git initialized'", ], }, @@ -114,7 +114,7 @@ K9! description = "Add RSR-compliant workflows", commands = [ # This would copy workflow templates - # In a real implementation, would fetch from rsr-template-repo + # In a real implementation, would fetch from atoma "echo '✓ Workflows configured'", ], }, diff --git a/.machine_readable/self-validating/methodology-guard.k9.ncl b/.machine_readable/self-validating/methodology-guard.k9.ncl index 65e6eea1..49c04258 100644 --- a/.machine_readable/self-validating/methodology-guard.k9.ncl +++ b/.machine_readable/self-validating/methodology-guard.k9.ncl @@ -1,6 +1,6 @@ K9! # SPDX-License-Identifier: MPL-2.0 -# Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) # # K9 Validator: Methodology Guard # Checks that agent work respects methodology constraints declared in the @@ -57,7 +57,7 @@ let methodology_guard = { state_not_template = { description = "The ROADMAP journal must not contain template placeholders", severity = "warning", - # The journal, not the repo deed: a deed names rsr-template-repo in + # The journal, not the repo deed: a deed names atoma in # (lineage :instantiated-from) by design, so this pattern would always # fire there. file = "docs/status/ROADMAP.adoc", @@ -69,8 +69,8 @@ let methodology_guard = { # out of the file (in this comment too) so init cannot match it, while # Nickel still evaluates the element back to the full token. Do not # "simplify" it to a plain string. (The PLACEHOLDER token and - # "rsr-template-repo" are not init tokens, so they survive as-is.) - reject_patterns = ["{{PLACEHOLDER}}", "{{" ++ "PROJECT}}", "rsr-template-repo"], + # "atoma" are not init tokens, so they survive as-is.) + reject_patterns = ["{{PLACEHOLDER}}", "{{" ++ "PROJECT}}", "atoma"], }, coverage_updated = { diff --git a/.machine_readable/self-validating/template-hunt.k9.ncl.in b/.machine_readable/self-validating/template-hunt.k9.ncl.in index a9cc350e..b3fcb475 100644 --- a/.machine_readable/self-validating/template-hunt.k9.ncl.in +++ b/.machine_readable/self-validating/template-hunt.k9.ncl.in @@ -20,7 +20,7 @@ K9! name = "TODO: component-name", version = "1.0.0", description = "TODO: Detailed description of what this component does", - author = "{{AUTHOR}} <{{AUTHOR_EMAIL}}>", + author = "Jonathan D.A. Jewell ", }, warnings = [ "This component has full system access", diff --git a/.machine_readable/self-validating/template-kennel.k9.ncl.in b/.machine_readable/self-validating/template-kennel.k9.ncl.in index fa7e3f35..4228b26c 100644 --- a/.machine_readable/self-validating/template-kennel.k9.ncl.in +++ b/.machine_readable/self-validating/template-kennel.k9.ncl.in @@ -19,7 +19,7 @@ K9! name = "TODO: component-name", version = "1.0.0", description = "TODO: Brief description of what this component contains", - author = "{{AUTHOR}} <{{AUTHOR_EMAIL}}>", + author = "Jonathan D.A. Jewell ", }, }, diff --git a/.machine_readable/self-validating/template-yard.k9.ncl.in b/.machine_readable/self-validating/template-yard.k9.ncl.in index 358671cf..a723f5af 100644 --- a/.machine_readable/self-validating/template-yard.k9.ncl.in +++ b/.machine_readable/self-validating/template-yard.k9.ncl.in @@ -19,7 +19,7 @@ K9! name = "TODO: component-name", version = "1.0.0", description = "TODO: Brief description with validation details", - author = "{{AUTHOR}} <{{AUTHOR_EMAIL}}>", + author = "Jonathan D.A. Jewell ", }, }, diff --git a/.mailmap b/.mailmap index e416ced0..9a973b3a 100644 --- a/.mailmap +++ b/.mailmap @@ -1,4 +1 @@ -# Format: Canonical Name Alias Name -Jonathan D.A. Jewell hyperpolymath -# Bot identities -gitbot-fleet[bot] +# No alternate author address to map. diff --git a/.windsurfrules b/.windsurfrules index 10001182..46b3580e 100644 --- a/.windsurfrules +++ b/.windsurfrules @@ -1,5 +1,5 @@ # SPDX-License-Identifier: MPL-2.0 -# Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) # Authoritative source: docs/practice/AI-CONVENTIONS.adoc # STARTUP: Read the repo deed (*_chora.deed at the repo root) first, then docs/status/ROADMAP.adoc. @@ -8,7 +8,7 @@ # All original code: MPL-2.0. # Never AGPL-3.0. MPL-2.0 only as platform-required fallback. # SPDX header required on every source file. -# Copyright: {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +# Copyright: Jonathan D.A. Jewell (hyperpolymath) # STATE FILES # No .a2ml file may exist anywhere: the format is retired. State, metadata, diff --git a/CLAUDE.md b/CLAUDE.md index 85f342d4..badf3dad 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,7 +6,7 @@ SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell - + # You are in the hyperpolymath estate — orient before acting @@ -38,7 +38,7 @@ The descriptive family (working name *descriptiles*) describes what-is; the **co | File | Answers | |---|---| -| `rsr-template-repo_chora.deed` | **CHORA**, the repo deed. Its `(identity)` `(clade)` `(lineage)` clauses say what this repo IS (registers into `gv-clade-index`); `(meta)` the architecture axes; `(agentic)` *may I act now?*; `(ecosystem)` where it sits and what it is not; `(status)` and `(maturity)` where it is now. Read fields with `scripts/deed-field.sh`. | +| `atoma_chora.deed` | **CHORA**, the repo deed. Its `(identity)` `(clade)` `(lineage)` clauses say what this repo IS (registers into `gv-clade-index`); `(meta)` the architecture axes; `(agentic)` *may I act now?*; `(ecosystem)` where it sits and what it is not; `(status)` and `(maturity)` where it is now. Read fields with `scripts/deed-field.sh`. | | `(anchor)` | *Semantic authority + golden path* — what downstream may extend-not-redefine; if a recognised-drift / re-anchor marker is present, it **supersedes** accumulated context — read it first. | | `(neurosym)` | *Meaning* of operations — proof obligations. | | `(playbook)` | *How* permitted actions run. | @@ -60,17 +60,17 @@ Put every question that needs the owner's decision through the selector (the Ask --- -# This repo: `rsr-template-repo` · clade `rm-rsr-template-repo` +# This repo: `atoma` · clade `fv-atoma` -- **Identity** — uuid `#u5"github.com/hyperpolymath/rsr-template-repo"`; clade `rm` (secondary ``); born 2026-03-16; forge `hyperpolymath/rsr-template-repo`. -- **IS** — Canonical RSR-compliant repository template: scaffolding (CI/CD, AI manifests, ABI/FFI standards, container ecosystem, governance) that new hyperpolymath projects are instantiated from. -- **IS-NOT** — a project in its own right · Scaffoldia (the full-featured repo designer) · standards (the canon source this template operationalises) -- **Where it sits** — pipeline position **foundation**; chain `standards → rsr-template-repo → (every estate repo)`; coordination = `standards`. +- **Identity** — uuid `#u5"github.com/hyperpolymath/atoma"`; clade `fv` (secondary ``); born 2026-10-22; forge `hyperpolymath/atoma`. +- **IS** — Experimental source-bound verification for an explicitly closed Zig subset. Solver, model and compiled-test evidence remain distinct from independent proof replay. +- **IS-NOT** — a general Zig soundness certificate · a production verifier · a repository template · an ECHIDNA replacement +- **Where it sits** — pipeline position **language-verification**; chain `Zig source and contracts -> Atoma obligations -> ECHIDNA proof exchange and independent replay (planned)`; coordination = `echidna`. - **Constraints here** (AGENTIC) — fail-closed; evidence-per-step; no-silent-skip; rerun-after-fix; release-claim-requires-hard-pass. Never: banned langs (above), secrets, state files in repo root, AGPL. Details: the deed's `(bot-directives (methodology) (coverage) (debt))` clauses. - **Golden path** (ANCHOR) — `just test && just quality` → Core tests pass; Quality gates pass; No unresolved critical security findings. -- **State** — phase active; maturity production. Milestones and next actions: `docs/status/ROADMAP.adoc`. +- **State** — phase active; maturity experimental. Milestones and next actions: `docs/status/ROADMAP.adoc`. - + ## Estate-Wide Format Migration Directives @@ -106,7 +106,7 @@ hand; that migration is done per repo (ADR-008 phase P3). In deed files use - Grammars: `standards/1-formats/deed/spec/abnf/deed.abnf` (authoritative over the deed README, D308) and `standards/1-formats/k9/` for k9. - Descriptiles (anchor, meta, state, ecosystem, agentic, neurosym, playbook) - are clauses of `rsr-template-repo_chora.deed` (D312). + are clauses of `atoma_chora.deed` (D312). - Contractiles (intend, must, trust, adjust, bust, dust) are k9 contracts in `.machine_readable/contractiles//`. The deed attests to them (`:contractiles_required`, and a `(contractiles …)` clause per D312). diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index b2713861..f0966730 100644 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -1,6 +1,6 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: Jonathan D.A. Jewell (hyperpolymath) -= Contributing — rsr-template-repo += Contributing — atoma :toc: left Contributors work on the *spine*: the template every RSR repo is minted @@ -12,15 +12,15 @@ is the estate's bar. [source,bash] ---- # Clone the repository -git clone https://github.com/hyperpolymath/rsr-template-repo.git -cd rsr-template-repo +git clone https://github.com/hyperpolymath/atoma.git +cd atoma # Using Guix (recommended for reproducibility) guix shell -D -f build/guix.scm # Or using toolbox/distrobox -toolbox create rsr-template-repo-dev -toolbox enter rsr-template-repo-dev +toolbox create atoma-dev +toolbox enter atoma-dev # Install dependencies manually # Verify setup @@ -80,10 +80,10 @@ and include: Look for issues labelled: -* https://github.com/hyperpolymath/rsr-template-repo/labels/good%20first%20issue[`good first issue`] — Simple Perimeter 3 tasks -* https://github.com/hyperpolymath/rsr-template-repo/labels/help%20wanted[`help wanted`] — Community help needed -* https://github.com/hyperpolymath/rsr-template-repo/labels/documentation[`documentation`] — Docs improvements -* https://github.com/hyperpolymath/rsr-template-repo/labels/perimeter-3[`perimeter-3`] — Community sandbox scope +* https://github.com/hyperpolymath/atoma/labels/good%20first%20issue[`good first issue`] — Simple Perimeter 3 tasks +* https://github.com/hyperpolymath/atoma/labels/help%20wanted[`help wanted`] — Community help needed +* https://github.com/hyperpolymath/atoma/labels/documentation[`documentation`] — Docs improvements +* https://github.com/hyperpolymath/atoma/labels/perimeter-3[`perimeter-3`] — Community sandbox scope == Development workflow diff --git a/Justfile b/Justfile index d54df313..67da5a7f 100644 --- a/Justfile +++ b/Justfile @@ -22,9 +22,9 @@ import? "build/contractile.just" mod provision 'build/just/provision.just' # Project metadata — customize these -project := "rsr-template-repo" +project := "atoma" OWNER := "hyperpolymath" -REPO := "rsr-template-repo" +REPO := "atoma" version := "0.1.0" tier := "infrastructure" # 1 | 2 | infrastructure @@ -574,7 +574,7 @@ opsm: provision::opsm # Guided tour of key features tour: - @echo "=== rsr-template-repo Tour ===" + @echo "=== atoma Tour ===" @echo "" @echo "1. Project structure:" @ls -la @@ -589,12 +589,12 @@ tour: # Open feedback channel with diagnostic context help-me: - @echo "=== rsr-template-repo Help ===" + @echo "=== atoma Help ===" @echo "Platform: $(uname -s) $(uname -m)" @echo "Shell: $SHELL" @echo "" @echo "To report an issue:" - @echo " https://github.com/hyperpolymath/rsr-template-repo/issues/new" + @echo " https://github.com/hyperpolymath/atoma/issues/new" @echo "" @echo "Include the output of 'just doctor' in your report." diff --git a/README.adoc b/README.adoc index 298e3e75..77a4fdd3 100644 --- a/README.adoc +++ b/README.adoc @@ -3,182 +3,63 @@ // SPDX-FileCopyrightText: 2024-2026 Jonathan D.A. Jewell (hyperpolymath) = Atoma — experimental verification for Zig :toc: -:toc-placement: preamble -Atoma currently provides canonical contracts, a syntax screen, checked Idris2 -specifications, Agda proofs of a store-free model and a tiny source-bound u8 -verification experiment. It is not yet a general sound verifier for Zig. -Evidence remains *INCOMPLETE (Warrant)*; kernel replay and program refinement -are open work. Run `bash scripts/atoma-gate.sh` with the documented toolchain. +Atoma develops source-bound verification for an explicitly closed Zig subset. +It currently provides canonical contracts, a syntax screen, typechecked Idris2 +specifications, Agda proofs of a store-free model and a finite u8 source pilot. +It is not yet a general sound verifier for Zig. Evidence remains +*INCOMPLETE (Warrant)*: compiler/refinement arguments and independent replay +are unfinished. -Start with link:docs/plan/ULTRAPLAN.adoc[the v1 plan], -link:docs/decisions/ATOMA-SOURCE-TO-PROOF.adoc[the source-to-proof decision] and -link:docs/decisions/ATOMA-TOOLCHAIN.adoc[the toolchain profile]. The template -badges and scaffold material below are inherited, not evidence of Atoma's -standards certification or production readiness; A1 identity minting remains. +== Build and check -// ── Licensing ─────────────────────────────────────────────────────────────── -image:https://img.shields.io/badge/Code-MPL--2.0-blue.svg?logo=mozilla[Code licence: MPL-2.0,link="https://opensource.org/licenses/MPL-2.0"] -image:https://img.shields.io/badge/Docs-CC--BY--SA--4.0-blue.svg?logo=creativecommons[Docs licence: CC-BY-SA-4.0,link="https://creativecommons.org/licenses/by-sa/4.0/"] -image:https://img.shields.io/badge/Provenance-Quantum--Safe-blueviolet[Quantum-Safe Provenance,link="docs/legal/EXHIBIT-B-QUANTUM-SAFE.txt"] - -// ── Standard & quality gates ──────────────────────────────────────────────── -image:https://img.shields.io/badge/RSR-Rhodium_Standard-9C27B0[Rhodium Standard Repository,link="https://github.com/hyperpolymath/rhodium-standard-repositories"] -image:https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/{{OWNER}}/{{REPO}}/governance-badges/badges/k9.json[K9 conformance,link="https://github.com/{{OWNER}}/{{REPO}}/actions/workflows/dogfood-gate.yml"] -image:https://www.bestpractices.dev/projects/{{OPENSSF_BP_ID}}/badge[OpenSSF Best Practices,link="https://www.bestpractices.dev/projects/{{OPENSSF_BP_ID}}"] -image:https://api.scorecard.dev/projects/github.com/{{OWNER}}/{{REPO}}/badge[OpenSSF Scorecard,link="https://scorecard.dev/viewer/?uri=github.com/{{OWNER}}/{{REPO}}"] -image:https://sonarcloud.io/api/project_badges/measure?project={{OWNER}}_{{REPO}}&metric=alert_status[SonarQube Quality Gate,link="https://sonarcloud.io/summary/new_code?id={{OWNER}}_{{REPO}}"] -image:https://archive.softwareheritage.org/badge/origin/https://{{FORGE}}/{{OWNER}}/{{REPO}}/[Archived in Software Heritage,link="https://archive.softwareheritage.org/browse/origin/?origin_url=https://{{FORGE}}/{{OWNER}}/{{REPO}}"] - -// ── Provenance & ecosystem ────────────────────────────────────────────────── -image:https://img.shields.io/badge/Idris-Inside-5E5086?logo=idris&logoColor=white[Idris Inside,link="https://github.com/hyperpolymath/proven"] -image:https://img.shields.io/badge/Zig-Zero--overhead-F7A41D?logo=zig&logoColor=black[Zig Zero-overhead FFI,link="https://github.com/hyperpolymath/typed-wasm"] -image:https://api.thegreenwebfoundation.org/greencheckimage/{{FORGE}}[Green Web,link="https://www.thegreenwebfoundation.org/green-web-check/?url={{FORGE}}"] - -{{PROJECT_DESCRIPTION}} - -[IMPORTANT] -==== -*This file is a template.* You are reading `README.adoc` from the *RSR template repo* -(or a freshly-cloned copy of it). Run `just repo-init` to replace every `{{PLACEHOLDER}}` -token with your project's details, then delete this admonition. Until you do, the -`{{...}}` markers below are intentional placeholders, not content. -==== - -== What this is - -A new repository scaffolded from the *Rhodium Standard Repository (RSR)* template: -a batteries-included starting point that ships with CI/CD, machine-readable project -metadata, an AI-agent gatekeeper protocol, a formally-typed ABI/FFI seam -(Idris2 + Zig), container and reproducible-build scaffolding, and governance -infrastructure — all wired and passing the RSR validators on day one. - -Replace this section with a description of *your* project once initialised. - -== Quick start +Use Zig 0.15.2, Z3 4.13.3 and the Agda/Idris2 profiles in +link:docs/decisions/ATOMA-TOOLCHAIN.adoc[the toolchain decision]. +From the repository root: [source,bash] ---- -# 1. Create a repo from this template (or clone it), then from the repo root: -just repo-init # interactive bootstrap: fills every {{PLACEHOLDER}} - -# 2. See the available tasks: -just # lists all phases (build, test, validate, audit, ...) - -# 3. Check the repo still satisfies the RSR shape: -just validate # structure + metadata checks ----- - -`just repo-init` prompts for the project name, owner, author, licence contact, and the -other values listed in `.machine_readable/ai/PLACEHOLDERS.adoc`, substitutes them -across the tree, validates the result, and (if available) runs the `k9-svc` checks. - -[[ai-install]] -== AI-Assisted Installation (Recommended) - -=== Just say it - -Say this to any AI assistant that can read a URL and run commands (or give you -commands to paste): - -[source,text] ----- -Create a new repository from https://github.com/hyperpolymath/rsr-template-repo +bash scripts/atoma-gate.sh ---- -The URL is the key: it leads the assistant to -link:docs/AI_INSTALLATION_GUIDE.adoc[`docs/AI_INSTALLATION_GUIDE.adoc`], the -complete step-by-step recipe. The assistant checks your system, installs the -prerequisites, instantiates the template with `just repo-init`, and verifies the -result with `just doctor`. - -* "Set up rsr-template-repo so I can work on the template itself — https://github.com/hyperpolymath/rsr-template-repo" -* `./launcher.sh --ai-setup` (or `just ai-setup`) prints the line and the guide path. - -=== What you will be asked - -. Your operating system (Linux, macOS, or Windows via WSL2). -. The new project's name, owner, author and licence contact (the values listed in - `.machine_readable/ai/PLACEHOLDERS.adoc`). -. To confirm the privacy notice below. - -=== Privacy and security - -[IMPORTANT] -==== -Setting up rsr-template-repo clones this repository and installs its developer -tools per-user with mise (no administrator rights, nothing sent anywhere). -`just repo-init` rewrites files only inside the new checkout; it creates no -remote repository and pushes nothing until you do. -==== - -=== Minting without a terminal - -Agents and CI can mint non-interactively: set `RSR_NON_INTERACTIVE=1` and pass -the answers as environment variables named like the prompts' variables in -`build/just/repo-init.just` (`PROJECT_NAME`, `REPO`, `OWNER`, `AUTHOR` and -`AUTHOR_EMAIL` are required; any other answer left unset is blank or takes its -default). Piping the answers to stdin in prompt order also works. - -=== Troubleshooting - -Run `just doctor`; each FAIL carries a code explained in -link:docs/SETUP.adoc#troubleshooting[`docs/SETUP.adoc` §Troubleshooting], and -`just heal` applies the automatic fixes. Prefer to do it yourself? The full -manual route is link:docs/SETUP.adoc[`docs/SETUP.adoc`]; developers and -maintainers can brief an AI with `just ai-warmup dev` / `just ai-warmup maintainer`. - -== What you get - -* *Machine-readable metadata* (`.machine_readable/descriptiles/`) — `STATE`, `META`, - `ECOSYSTEM`, `PLAYBOOK`, `AGENTIC`, `NEUROSYM`, `CLADE`, and `anchors/ANCHOR`, - in deed, so tools and agents can read the project's state and boundaries. -* *AI gatekeeper protocol* — `rsr-template-repo_chora.deed` (the repo deed) is the - universal entry point that tells an AI agent how to work in this repo before it - touches anything; it carries the AI allocation policy and the ply directory tree. -* *Typed ABI/FFI seam* — `src/interface/Abi/` (Idris2 type + layout proofs) over - `src/interface/ffi/` (Zig implementation), with generated C headers. -* *CI/CD* — GitHub Actions for quality, security (CodeQL, Scorecard, secret - scanning), multi-forge mirroring, and RSR anti-pattern enforcement. -* *Supply-chain & reproducibility* — container layering (stapeln), Guix shells, - SBOM, and signing hooks. -* *Governance* — `GOVERNANCE.adoc`, `MAINTAINERS.adoc`, `.github/` community health - files, and a release `AUDIT.adoc` gate. +The gate rebuilds the current source, runs contract extraction and registered +proof checks, checks the good and wrong-body fixtures against every u8 input, +and exercises failures for missing tools, stale executables and I/O errors. +Evidence is written to `build/atoma-evidence/`. The hosted workflow publishes +the same evidence and is required on `main`. -== Repository map +== Current verification boundary -The authoritative map is generated, so it cannot drift from the tree: -link:docs/architecture/REPOSITORY-MAP.adoc[docs/architecture/REPOSITORY-MAP.adoc] -(regenerate with `just repo-map`; CI fails if it is stale). +`tools/atoma` owns the command-line tooling and closed source pilot. +`examples/atoma/frame-v1` exercises the frame ABI contract and error paths. +`verification/atoma/agda` proves a model theorem; this is not a theorem about +the full Zig implementation. Legacy frame SMT queries remain model evidence. +The Idris QTT resource example is a model, not an executable foreign binding. -The short version: +Read the link:docs/decisions/ATOMA-SOURCE-TO-PROOF.adoc[source-to-proof decision] +before extending claims or admitted language constructs. A solver answer or a +passing test must never be promoted to COMPLETE without the required checked +translation, provenance and kernel-replay evidence. -[cols="1,3"] -|=== -| Path | What lives there +== Plan and collaboration -| `README.adoc`, `CLAUDE.md` | Start here - humans and AI agents respectively. -| `src/`, `tests/` | The code and its tests. -| `docs/` | Human documentation, including the full map above. -| `.machine_readable/` | Manifests, contractiles and policies that tools read. -| `build/`, `Justfile` | Every task runs through `just`; phases live in `build/just/`. -| `ci/`, `.github/` | CI configuration; GitHub reads `.github/` and no other path. -|=== +The link:docs/plan/ULTRAPLAN.adoc[v1 plan] defines conjunctive release gates, +estimates and stop points. The next stage is a source/proof/replay vertical +slice and explicit alias/memory boundary work. +The link:docs/decisions/ATOMA-SIBLING-TRANSFER.adoc[sibling assessment] explains +potential reuse with Quintessence, Apodeixis.jl and Bactrian. -== Where to go next +See link:docs/architecture.adoc[architecture], +link:docs/MAINTAINERS.adoc[maintainers], +link:.github/SECURITY.md[security reporting] and +link:CONTRIBUTING.adoc[contributing]. -* link:docs/architecture/REPOSITORY-MAP.adoc[The repository map] — generated; what every directory is for. -* link:docs/EXPLAINME.adoc[EXPLAINME] — the engineering deep-dive: how the pieces actually work. -* link:docs/AFFIRMATION.adoc[AFFIRMATION] — the dated, signed honesty snapshot of the repo's true state. -* link:docs/AUDIT.adoc[AUDIT] — the release audit gate. -* link:docs/AI_INSTALLATION_GUIDE.adoc[AI installation guide] — for agents instantiating this template. -* link:.machine_readable/ai/PLACEHOLDERS.adoc[PLACEHOLDERS] — the full placeholder reference. +== Identity and licensing -== Licence +The project deed is `atoma_chora.deed`, with experimental maturity and the +Formal Verification & Proofs clade. Repository metadata and green CI are not +standards certification or a program-soundness certificate. -Code, configuration and scripts are link:LICENSE[Mozilla Public License 2.0] -(`MPL-2.0`); prose documentation is `CC-BY-SA-4.0`. Both texts live in -`LICENSES/`, and per-file `SPDX-License-Identifier` headers are authoritative. -The GitHub-detected licence is MPL-2.0 (the root `LICENSE`). Long-term -attribution uses Quantum-Safe Provenance — see -link:docs/legal/EXHIBIT-B-QUANTUM-SAFE.txt[the Quantum-Safe Provenance exhibit]. +Code is MPL-2.0; documentation is CC-BY-SA-4.0, as declared in the existing +link:LICENSE[licence] and per-file identifiers. No licence terms are changed by +the identity repair. diff --git a/archetypes/README.adoc b/archetypes/README.adoc deleted file mode 100644 index e51fbe21..00000000 --- a/archetypes/README.adoc +++ /dev/null @@ -1,76 +0,0 @@ -// SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) Jonathan D.A. Jewell -= Archetypes — template-only overlay data for `just repo-init` - -An *archetype* specialises the spine for one kind of repository (a Julia -library, a WordPress plugin, …) **as data, not as a fork**. Each archetype is -a directory here: - - archetypes//_praxis.deed required — the contract (see below) - archetypes//overlay/ optional — files copied over the spine - archetypes//actions.lock required when the overlay ships workflows - -Decision record: `docs/decisions/0003-forge-and-sustain-lifecycle.adoc`. -Normative lifecycle: standards `spec/SCAFFOLD-LIFECYCLE.adoc`. - -== The contract (`_praxis.deed`) - -A `praxis-deed` (standards `1-formats/deed/spec/abnf/deed.abnf`), read by -`just repo-init` through `scripts/deed-field.sh`. Values are single-line -strings: - -- `(metadata :archetype … :schema_version …)`. -- `(capability :preset "")` — MUST name a preset in standards - `.machine_readable/template-capability-gates.toml [presets]`. The archetype - directory name and the preset name are the same string by convention. -- `(tokens :TOKEN "value" …)` — one pair per token. Only tokens the archetype can - honestly determine (`PROJECT_KIND`, `PROJECT_DOMAIN`, `LANG_STACK`, - `BUILD_CMD`, `TEST_CMD`, `DEPS`, `BUILD_OUTPUT_PATH`, `MAIN_FUNCTION`). - Values MUST NOT contain `|` (the init sed delimiter — init skips such - values with a warning). Judgement-only tokens - (`PROJECT_UNIQUE_STRENGTH`, `TARGET_AUDIENCE`, `MUST_INVARIANTS`, - per-repo names like `PACKAGE_NAME`) MUST be omitted so they stay - `UNASSIGNED` — an archetype never writes fiction. - -`just repo-init ` applies the overlay directory (if present), adds the -token substitutions, and writes the preset into the minted repo's -deed's `(rsr-profile)` clause. This whole `archetypes/` directory is -template-only and is removed from the minted tree, exactly like -`build/templates/`. - -== Workflows and their lock records - -An overlay that ships workflows ships their lock records **beside** the -overlay, as `archetypes//actions.lock`, and never inside it. An -`overlay/.github/workflows/actions.lock` would replace the spine's lock when -the overlay is copied, and every spine workflow would then be refused at -startup for want of a record. That is how the first Julia mints -(ZeroInflatedCounts.jl, ResidualEvidenceTypes.jl) began with Lock Sync red. - -`just repo-init` merges the fragment into `.github/workflows/actions.lock` -with `scripts/merge-actions-lock.rs`: entries are unioned, and a key present -in both files with a different record stops the mint. Write the fragment with -the authoritative tool, never by hand: - -. Copy the overlay workflows into an empty git repository, under - `.github/workflows/` and under their minted names (drop the `.in`). -. Run `gh actions-lock --no-narrow` there, then `gh actions-lock --no-fix` - to check it. -. Copy the resulting `.github/workflows/actions.lock` to - `archetypes//actions.lock`. - -Regenerate it in the same PR as any `uses:` change in the overlay. -`tests/workflows/archetype_lock_merge_test.sh` mints each archetype's -workflow set and runs `scripts/check-lock-sync.sh` on the merged lock. - -== Current archetypes - -- `julia-library` — reference instance, harvested from - rsr-julia-library-template-repo's variant record (ADR-0002) and the - dormant scaffoldia registry's `julia/package.ncl`. The variant repo - remains the full hand-maintained reference until the scaffoldia - inversion; this archetype covers the `just repo-init` path. - -Declared, content to follow (presets already reserved in the canon): -`wordpress-plugin`, `zotero-plugin`, `userscript`. Do not stub them empty — -an archetype exists when its contract and overlay are real. diff --git a/archetypes/julia-library/actions.lock b/archetypes/julia-library/actions.lock deleted file mode 100644 index 711bc894..00000000 --- a/archetypes/julia-library/actions.lock +++ /dev/null @@ -1,29 +0,0 @@ -# This file is machine-generated by `gh actions-lock`. -# Do not edit by hand; run `gh actions-lock` to update. -# Docs: https://gh.io/actions-lockfile -version: 'v0.0.3' -workflows: - '.github/workflows/julia-ci.yml': - - 'actions/checkout@v7.0.1' - - 'julia-actions/cache@v3.5.0' - - 'julia-actions/setup-julia@v3.0.2' - '.github/workflows/julia-docs.yml': - - 'actions/checkout@v7.0.1' - - 'julia-actions/cache@v3.5.0' - - 'julia-actions/setup-julia@v3.0.2' -dependencies: - 'actions/checkout@v7.0.1': - ref: 'v7.0.1' - commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1' - owner_id: 44036562 - repo_id: 197814629 - 'julia-actions/cache@v3.5.0': - ref: 'v3.5.0' - commit: 'sha1-9353db09a0f2bbbdec6f41791918c75d37391b36' - owner_id: 53965732 - repo_id: 441908600 - 'julia-actions/setup-julia@v3.0.2': - ref: 'v3.0.2' - commit: 'sha1-fa02766e078afaaf09b14210362cee14137e6a32' - owner_id: 53965732 - repo_id: 202020219 diff --git a/archetypes/julia-library/julia-library_praxis.deed b/archetypes/julia-library/julia-library_praxis.deed deleted file mode 100644 index 497ea931..00000000 --- a/archetypes/julia-library/julia-library_praxis.deed +++ /dev/null @@ -1,37 +0,0 @@ -;; SPDX-License-Identifier: MPL-2.0 -;; SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) -;; -;; julia-library_praxis.deed — the julia-library archetype for `just repo-init` -;; (ADR-0003). repo-init reads it with scripts/deed-field.sh: -;; (capability :preset) the capability preset; and -;; (tokens :) each value fills {{}} at mint. -;; -;; Harvested 2026-07-21 from rsr-julia-library-template-repo (its variant -;; record, the ADR-0002 reference instance) and the dormant scaffoldia registry -;; entry registry/julia/package.ncl. The variant repo remains the full -;; hand-maintained reference (Project.toml [compat] closure, Aqua+JET, -;; Documenter, flagship rubric); this archetype covers the `just repo-init` path. -;; -;; Contract rules: archetypes/README.adoc. Single-line values; no `|` in token -;; values (init's sed delimiter). Tokens omitted here stay UNASSIGNED on -;; purpose: PACKAGE_NAME and MUST_INVARIANTS are per-repo judgement, and an -;; archetype must not write fiction. -(praxis-deed - :schema-version "1.0.0" - :canonical-name "rsr-template-repo-archetype-julia-library" - (metadata - :archetype "julia-library" - :name "julia-library" - :schema_version "0.1.0" - :harvested-from "rsr-julia-library-template-repo variant record + scaffoldia registry julia/package.ncl") - (capability - ; Preset defined in standards .machine_readable/template-capability-gates.toml - :preset "julia-library") - (tokens - :PROJECT_KIND "library" - :PROJECT_DOMAIN "julia" - :LANG_STACK "Julia (1.9+)" - :BUILD_CMD "julia --project=. -e 'using Pkg; Pkg.instantiate()'" - :TEST_CMD "julia --project=. -e 'using Pkg; Pkg.test()'" - :DEPS "Julia General registry via Project.toml [deps] with [compat] closure" - :BUILD_OUTPUT_PATH "src/")) diff --git a/archetypes/julia-library/overlay/.github/workflows/julia-ci.yml.in b/archetypes/julia-library/overlay/.github/workflows/julia-ci.yml.in deleted file mode 100644 index 2c1c679f..00000000 --- a/archetypes/julia-library/overlay/.github/workflows/julia-ci.yml.in +++ /dev/null @@ -1,122 +0,0 @@ -# This workflow is managed by gh actions-lock. -# SPDX-License-Identifier: MPL-2.0 -# {{PROJECT_NAME}} — Julia CI (julia-library archetype) -# -# Pin posture (estate ruling R2, 2026-09-02; D38/D39 resolution 2026-09-19): -# symbolic refs here, pinned by .github/workflows/actions.lock (same dir). -# The lock records come from archetypes/julia-library/actions.lock, merged -# into the spine's lock at mint. Refs resolved 2026-10-09: -# actions/checkout@v7.0.1 = 3d3c42e5aac5ba805825da76410c181273ba90b1 -# julia-actions/setup-julia@v3.0.2 = fa02766e078afaaf09b14210362cee14137e6a32 -# julia-actions/cache@v3.5.0 = 9353db09a0f2bbbdec6f41791918c75d37391b36 -# Regenerate the lock in the SAME PR as any uses: change (estate MUST). - -name: Julia CI - -on: - push: - branches: [main, master] - pull_request: - -# No job here writes to the repository. -permissions: - contents: read - -# No `continue-on-error` on a MUST check (R1–R9): a red job is the gate -# working. Coverage (R4) is reported by the estate's standard coverage -# upload where present; it is not a blocker at template level. -jobs: - fmt: - name: Format (JuliaFormatter) - runs-on: ubuntu-24.04 - timeout-minutes: 10 - steps: - - uses: actions/checkout@v7.0.1 - - uses: julia-actions/setup-julia@v3.0.2 - with: - version: "1" - - name: Check formatting (check mode — never writes in CI) - run: | - julia --project=. -e ' - using Pkg - Pkg.add("JuliaFormatter") - using JuliaFormatter - for f in filter(isfile, collect(Iterators.flatten(( - [joinpath("src", x) for x in readdir("src")], - [joinpath("test", x) for x in readdir("test") if x != "cases"], - [joinpath("test", "cases", x) for x in readdir(joinpath("test", "cases"))], - )))) - text = read(f, String) - formatted = JuliaFormatter.format_text(text) - if text != formatted - @error "not formatted" file=f - exit(1) - end - end' - - jet: - name: Static analysis (JET) - runs-on: ubuntu-24.04 - timeout-minutes: 10 - steps: - - uses: actions/checkout@v7.0.1 - - uses: julia-actions/setup-julia@v3.0.2 - with: - version: "1" - - uses: julia-actions/cache@v3.5.0 - - name: JET analysis (supported API) - # JET's path/string entry points were REMOVED in v0.12.0, having been - # deprecated since v0.11: `report_package(::AbstractString)`, - # `report_package()` and the corresponding `test_package` forms. The - # package must be loaded and its MODULE passed instead — - # `report_package(PkgModule)`. `target_defined_modules` was removed in - # the same release (use `target_modules`). - # - # The previous invocation was `JET.test_package(path=".", - # julia_version="1")`, which is the removed string form. It failed with - # `MethodError: no method matching report_package(; toplevel_logger, - # path, julia_version)` on JET v0.12.2 before any analysis ran. Because - # the analyzer was installed with an unconstrained `Pkg.add`, the - # breakage arrived with an upstream release, not with a template change. - # - # The analyzer now goes into a throwaway environment with a pinned - # version, so it no longer mutates this package's Project.toml on every - # run, and it cannot float to a new major/minor unannounced. - run: | - julia -e ' - using Pkg - Pkg.activate(mktempdir()) - Pkg.develop(path=".") - Pkg.add(Pkg.PackageSpec(name="JET", version="0.12")) - using {{PROJECT_NAME}}, JET - - # Fail with the actual reason rather than a MethodError if the - # upstream API moves again. This is the tripwire for the class of - # defect this job previously shipped: a call that never ran. - if !hasmethod(JET.test_package, (Module,)) - error("JET ", pkgversion(JET), " has no test_package(::Module) — " * - "the julia-library overlay pins an API that no longer exists.") - end - - JET.test_package({{PROJECT_NAME}})' - - test: - name: Test (Test + Aqua) - runs-on: ubuntu-24.04 - timeout-minutes: 15 - strategy: - fail-fast: false - matrix: - # The [compat] floor IS tested — an untested floor is an unproven - # floor (measured estate gap: Axiology-class repos declare julia 1.9 - # but test 1.10/1.11 only). - julia: ["1.9", "1"] - os: [ubuntu-24.04] - steps: - - uses: actions/checkout@v7.0.1 - - uses: julia-actions/setup-julia@v3.0.2 - with: - version: ${{ matrix.julia }} - - uses: julia-actions/cache@v3.5.0 - - name: Pkg.test() - run: julia --project=. -e 'using Pkg; Pkg.test()' diff --git a/archetypes/julia-library/overlay/.github/workflows/julia-docs.yml.in b/archetypes/julia-library/overlay/.github/workflows/julia-docs.yml.in deleted file mode 100644 index 2bd847dc..00000000 --- a/archetypes/julia-library/overlay/.github/workflows/julia-docs.yml.in +++ /dev/null @@ -1,58 +0,0 @@ -# This workflow is managed by gh actions-lock. -# SPDX-License-Identifier: MPL-2.0 -# {{PROJECT_NAME}} — docs build & deploy (julia-library archetype) -# -# Fails LOUD while docs/ is absent: a declared `docs-site` capability with -# no build is a defect (criterion 5.2.6, na-honesty). Once -# docs/Project.toml + docs/make.jl + docs/src/ exist, this builds the docs -# and Documenter's own `deploydocs` (called from docs/make.jl) pushes the -# site to gh-pages with GITHUB_TOKEN. -# -# The build runs as two plain steps instead of julia-actions/julia-buildpkg -# and julia-actions/julia-docdeploy. Those two actions are refused at -# startup by the estate's actions allowlist, so a minted repo's Docs -# workflow could never start; the steps below are what they ran. -# -# Pin posture (estate ruling R2 / D38-D39): symbolic refs, pinned by -# .github/workflows/actions.lock. Regenerate the lock in the same PR as -# any uses: change. - -name: Docs - -on: - push: - branches: [main, master] - workflow_dispatch: - -permissions: - contents: read - -jobs: - docs: - name: Build and deploy - runs-on: ubuntu-24.04 - # deploydocs pushes the built site to the gh-pages branch. - permissions: - contents: write - steps: - - uses: actions/checkout@v7.0.1 - # deploydocs pushes with GITHUB_TOKEN from its own env, so the - # checkout keeps no credential for package code run during setup. - with: - persist-credentials: false - - name: Layout gate — fail loud while docs/ is absent - run: | - if [ ! -f docs/Project.toml ] || [ ! -f docs/make.jl ] || [ ! -d docs/src ]; then - echo "::error::docs-site declared but no Documenter build: docs/Project.toml, docs/make.jl and docs/src/ are required. Either add the build or drop the docs-site capability from the repo deed's (rsr-profile) clause." - exit 1 - fi - - uses: julia-actions/setup-julia@v3.0.2 - with: - version: "1" - - uses: julia-actions/cache@v3.5.0 - - name: Instantiate the docs environment - run: julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' - - name: Build and deploy (Documenter deploydocs) - run: julia --project=docs docs/make.jl - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/archetypes/julia-library/overlay/Project.toml.in b/archetypes/julia-library/overlay/Project.toml.in deleted file mode 100644 index 73cd15f1..00000000 --- a/archetypes/julia-library/overlay/Project.toml.in +++ /dev/null @@ -1,35 +0,0 @@ -# minted by: just repo-init julia-library ({{CURRENT_YEAR}}) -# owner: {{OWNER}} -# -# uuid = "{{PACKAGE_UUID}}" is MINTED at mint as UUIDv8 profile C over the -# registered domain julia-package-identity, preimage -# github.com// (see repo-init's julia-library rule; the strict -# UUIDv8 gate rejects the v5 mint per ADR-008 D320). Profile C is -# deterministic, so the uuid is stable across re-mints of the same repo and -# never hand-edited. If the mint could not derive it (no python3 and no bun -# with standards' uuid-v8.js on the operator machine) it is UNASSIGNED and -# Pkg refuses to load the package until the owner assigns one. - -name = "{{PROJECT_NAME}}" -uuid = "{{PACKAGE_UUID}}" -description = "{{PROJECT_DESCRIPTION}}" -authors = ["{{AUTHOR}} <{{AUTHOR_EMAIL}}"] -license = "MPL-2.0" -version = "0.1.0" - -[deps] - -# Test uuid = stdlib, resolved via Base.identify_package("Test") 2026-09-19 -[extras] -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" -Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" - -# Aqua's deps_compat check requires a compat bound for EVERY extra — -# a template that omits these fails its own gate (measured 2026-09-19). -[targets] -test = ["Test", "Aqua"] - -[compat] -julia = "1.9" -Test = "1.9" -Aqua = "0.8" diff --git a/archetypes/julia-library/overlay/src/PACKAGE.jl.in b/archetypes/julia-library/overlay/src/PACKAGE.jl.in deleted file mode 100644 index d5263383..00000000 --- a/archetypes/julia-library/overlay/src/PACKAGE.jl.in +++ /dev/null @@ -1,15 +0,0 @@ -module {{PROJECT_NAME}} - -# {{PROJECT_NAME}} — {{PROJECT_DESCRIPTION}} -# -# Forged from the hyperpolymath julia-library archetype ({{CURRENT_YEAR}}). -# Provenance: the repo deed's (provenance) clause, written at mint. -# -# The public API is whatever is `export`ed below; Aqua's exports/ambiguity -# checks gate it from the first mint, so keep exports deliberate. - -# --- public API ---------------------------------------------------------- - -# --- implementation ------------------------------------------------------ - -end # module {{PROJECT_NAME}} diff --git a/archetypes/julia-library/overlay/test/cases/smoke.jl b/archetypes/julia-library/overlay/test/cases/smoke.jl deleted file mode 100644 index e3cddcb9..00000000 --- a/archetypes/julia-library/overlay/test/cases/smoke.jl +++ /dev/null @@ -1,11 +0,0 @@ -# smoke.jl — the archetype's load-check case. -# -# This case proves the package LOADS (module resolution, no parse/load -# errors, top-level evaluation clean). It is deliberately not a behaviour -# test: a repo whose only case is this file has a NECESSARY-but-not- -# sufficient green. Replace it with real behaviour tests as they land — -# do not delete it (the Aqua suite already covers shape; this covers load). - -@testset "smoke — package loads" begin - @test @isdefined {{PROJECT_NAME}} -end diff --git a/archetypes/julia-library/overlay/test/runtests.jl b/archetypes/julia-library/overlay/test/runtests.jl deleted file mode 100644 index 0cb4fefa..00000000 --- a/archetypes/julia-library/overlay/test/runtests.jl +++ /dev/null @@ -1,31 +0,0 @@ -# {{PROJECT_NAME}} — test entry point (julia-library archetype) -# -# Two suites, in this order: -# 1. Aqua package-shape gate — runs FIRST: a package that does not load -# cleanly, whose deps are not compat-closed, or whose exports are -# ambiguous is rejected before any behaviour test can pass. -# 2. Behaviour — every test/cases/*.jl is included. The shipped case -# (smoke.jl) is a LOAD check only; replace/extend it as real -# behaviour tests land. Until then, `Pkg.test()` passing is necessary -# but NOT sufficient — record that in docs/status/ROADMAP.adoc (smoke-only suite). - -using Test -using {{PROJECT_NAME}} - -@testset "{{PROJECT_NAME}} — Aqua package shape" begin - using Aqua - Aqua.test_all({{PROJECT_NAME}}) -end - -@testset "{{PROJECT_NAME}} — behaviour" begin - # NOTE: no `continue`/`break` inside a `for` inside @testset — Test's - # loop-form detection re-parses the loop body at top level, where - # `continue` is a ParseError. Filter with a guarded call instead. - # (Measured trap, 2026-09-19 — see the Julia testing guide.) - cases = joinpath(@__DIR__, "cases") - if isdir(cases) - for path in sort(readdir(cases, join = true)) - endswith(path, ".jl") && include(path) - end - end -end diff --git a/atoma_chora.deed b/atoma_chora.deed new file mode 100644 index 00000000..4935fb52 --- /dev/null +++ b/atoma_chora.deed @@ -0,0 +1,1107 @@ +;; SPDX-License-Identifier: MPL-2.0 +; +; The repo deed of atoma: one-deed-per-repo doctrine (standards#837, +; owner ruling 2026-09-19, Option A). Folds the former ply manifest tree +; (82 per-directory manifests) and the family-7 AI allocation manifest +; into deed clauses. +; The ply, manifest and canon clauses come from the #837 pilot emitter. The +; identity, clade, forges, lineage, status, maturity, ecosystem, meta and +; agentic clauses carry the former CLADE, META, ECOSYSTEM, AGENTIC and STATE +; records (#209), translated field for field under the standards mapping +; specs (1-formats/deed/mappings/). STATE's journal is docs/status/ROADMAP.adoc. +; The anchor, neurosym, playbook, ensaid, bot-directives, integrations, +; policies and rsr-profile clauses at the end carry every other record this +; repo used to keep under .machine_readable/: the deed is the one +; machine-readable description of the repo. scripts/deed-field.sh reads any +; field; scripts/deed-clause.sh is the one writer. +(repo-deed + :schema-version "1.0.0" + :canonical-name "atoma" + :beholding-chora #u5"estate/chora" + :repo-uuid #u5"github.com/hyperpolymath/atoma" + ; The canon pin: which release of hyperpolymath/standards canon.lock this + ; repo implements. It is the ONLY canon pin in this deed (deed_canon + ; refuses zero or two); the (rsr-profile) clause below declares + ; capabilities and carries no pin. It moved here so the pin could follow a + ; canon release (#215). + ; Read by: dogfood-gate.yml `Canon lockstep` (reverse direction), + ; standards scripts/check-canon-lockstep.sh assertion 3 (forward), and + ; build/just/repo-init.just (writes the child's (provenance) clause at mint). Every hash MUST + ; equal canon.lock [canon.artifacts]; canon.lock [canon.lockstep].order is + ; spine-adopts-then-canon-releases, so this clause moves FIRST. + (canon + :version "2.1.2" + :criteria-sha256 "6a5aa8857bd0d0d58ef48827938ca17c251b6b854dacf59d306388d61694d82a" + :gates-sha256 "e70efd2f53c9445e30da4baf770366f04a4a84ffd844a01426e587e565b53e6a" + :lockstep-since "2026-09-17" + ; A canon change this repo cannot satisfy is a change made in the WRONG + ; ORDER, not a rejected change: land the spine's adoption first, then the + ; canon change is a one-line bump. + :order "spine-adopts-then-canon-releases") + ; >>> repo-identity + ; Written by `just repo-init` from build/templates/identity.deed.in, in + ; place of the block the template repo ships (template issue #209). It replaces + ; descriptiles/CLADE.a2ml and ECOSYSTEM.a2ml; the mapping is standards + ; 1-formats/deed/mappings/clade-to-repo-deed.adoc and + ; meta-ecosystem-to-repo-deed.adoc. + ; + ; THE UUID IS DERIVED, NOT ALLOCATED, NOT INVENTED. It is not stored: it is + ; uuid5(namespace = URL, name = the header :repo-uuid string) + ; and anyone can recompute it (gv-clade-index: + ; docs/SPEC-clade-verisim-portal.adoc §Identity Model): + ; uuidgen --sha1 --namespace @url --name "github.com/hyperpolymath/atoma" + ; The owner is part of the name, so part of the identity: record the owner + ; that is true today, and re-derive if the repo ever moves. + ; + ; CHOOSE A CLADE. A CLOSED TAXONOMY OF 12 CATEGORIES, NOT AN ABBREVIATION + ; SCHEME: the two letters abbreviate the clade's name, never your repo's. + ; fv Formal Verification & Proofs provable correctness, dependent types, theorem proving + ; nl Nextgen Languages compilers, runtimes, language tooling + ; rm Repo Management & Tooling scaffolding, graph analysis, bots, templates + ; gv Governance & Standards licensing, compliance, policy enforcement + ; db Databases database engines, query languages, storage + ; ap Applications end-user apps, web, desktop, services + ; ix Infrastructure & Cloud containers, deployment, sysadmin + ; dx Developer Ecosystem dev tools, package managers, editors, bindings + ; pt Protocols & Interop internet standards, protocol implementations + ; ax AI & Neurosymbolic ML, neural proof synthesis, AI governance + ; gm Games & Interactive game engines, interactive experiences + ; sc Security scanning, vulnerability management, access control + ; paint-type once chose `pt` reading it as "PainT-type" (an image editor is + ; `ap`); gossamer chose `gv` reading it as "Graphical/Visual" (`gv` is + ; GoVernance). Both codes were valid, so every check passed. + ; HOW TO CHOOSE: the primary clade reflects the project's core value + ; proposition, not its implementation. A game written in Idris2 is `gm`. + ; Set BOTH :primary and :primary-name, and make them agree; then set + ; :prefixed-name to "-atoma". `just validate-rsr` fails while + ; :primary is UNASSIGNED. That is deliberate: an unchosen clade must never + ; look like a chosen one. + ; + ; REGISTRATION IS NOT DERIVATION. Registering means an entry in + ; gv-clade-index verisim/seed/repos.a2ml. It is outward-facing and it is the + ; OWNER's act; an agent must not do it. + (identity + :primary-forge github + :owner "hyperpolymath" + :prefixed-name "fv-atoma") + (clade + :primary fv + :primary-name "Formal Verification & Proofs" + :secondary () + :assigned "2026-11-07" + :rationale "The primary product is verification of Zig programs and their proof evidence; language tooling supports that purpose.") + (forges + :github "hyperpolymath/atoma") + ; :type is one of standalone monorepo monorepo-child inflated deflated hub + ; satellite. A hub COORDINATES an ecosystem family; a satellite is + ; coordinated by one and keeps :parent "" (parent names a monorepo parent, + ; never the coordinating hub). + (lineage + :type standalone + :parent "" + :born "2026-10-22" + :previous-names () + :instantiated-from "rsr-template-repo") + ; :phase is one of reserved incubating active dormant merged superseded + ; archived extinct. A repo created today has not proven anything yet. + (status + :phase active + :since "2026-10-22" + :present #t + :aliases () + :merged-into "" + :superseded-by "" + :successors () + :ended "" + (history + (entry :phase active :since "2026-10-22" :note "Repository creation; identity repaired on 2026-11-07, without a production-readiness claim."))) + ; :level is one of experimental alpha beta production lts (standards + ; 1-formats/deed/vocabulary/maturity.adoc). + (maturity + :level experimental + :since "2026-11-07") + (ecosystem + :project "atoma" + :ecosystem "hyperpolymath" + :position-type "verification-tool" + :purpose "Experimental source-bound verification for an explicitly closed Zig subset. Solver, model and compiled-test evidence remain distinct from independent proof replay." + :not ("a general Zig soundness certificate" "a production verifier" "a repository template" "an ECHIDNA replacement") + :pipeline-position "language-verification" + :chain "Zig source and contracts -> Atoma obligations -> ECHIDNA proof exchange and independent replay (planned)" + :coordination echidna + (related :name "echidna" :relationship proof-exchange :notes "Planned obligation dispatch and replay; integration is not yet demonstrated.") + (related :name "standards" :relationship standard-source :notes "Estate policy and required verification boundaries; canonical repository metadatastician/standards.") + (related :name "quintessence" :relationship sibling-verifier :notes "Elixir verification; possible shared Zig native-boundary evidence.") + (related :name "Apodeixis.jl" :relationship sibling-verifier :notes "Julia verification; possible shared proof evidence interfaces.") + (related :name "bactrian" :relationship sibling-verifier :notes "OCaml verification; candidate second-language transfer spike.")) + ; <<< repo-identity + ; Meta: mapping meta-ecosystem-to-repo-deed. A minted repo keeps this + ; clause (self-name pass applied) and edits it as its own. + (meta + :version "0.1.0" + :last-updated "2026-11-07" + :type binary + :languages ("Zig" "Idris2" "Agda" "Rust" "Shell") + :license MPL-2.0 + :author "Jonathan D.A. Jewell (hyperpolymath)" + :build-tool just + :container-runtime podman + :ci-platform github-actions + :package-manager guix + :scoping-first #t + :execution-order "axis-1 > axis-2 > axis-3" + :axis-1 "must > intend > like" + :axis-2 "corrective > adaptive > perfective" + :axis-3 "systems > compliance > effects" + (scoping + :sources "README, roadmap, status docs, maintenance checklist, CI/security docs" + :marker-scan "TODO/FIXME/XXX/HACK/STUB/PARTIAL" + :idris-unsound-scan "believe_me/assert_total") + :corrective-first #t + :adaptive-second #t + :adaptive-focus "scope-change reconciliation, stale-reference removal, obsolete-work culling" + :perfective-third #t + :perfective-source "axis-1 honest state after corrective/adaptive updates" + (axis-3 + :audit-focus "systems in place, documentation explains actual state, safety/security accounted for, observed effects reviewed" + :compliance-focus "seams/compromises/exception register, bounded exceptions, anti-drift checks" + :drift-risk-example "single exception broadening into policy violation (e.g. ->TypeScript spread)" + :effects-evidence "benchmark execution/results and maintainer status dialogue/review")) + ; Agent permissions and integrity: mapping agentic-neurosym-playbook-to-repo-deed. + ; What agents must NOT do: + ; - Never use banned language patterns (believe_me, unsafeCoerce, etc.) + ; - Never commit secrets or credentials + ; - Never use banned languages (TypeScript, Python, Go, etc.) + ; - Never place state files in repository root (must be in .machine_readable/) + ; - Never relicense an existing file, and never run an automated licence + ; sweep (LICENCE-POLICY.adoc A2). New files get correct SPDX from birth. + ; - Never assume a licence. Read standards/3-practice/LICENCE-POLICY.adoc: Rule 1 + ; defaults to MPL-2.0 (code) / CC-BY-SA-4.0 (prose), but Rule 3 + ; (co-developed), Rule 4 (network-deployed services) and Rule 5 + ; (games) are AGPL-3.0-or-later, and Rule 2 names the PMPL register. + ; This clause declares WHAT agents may do; the (bot-directives) clause of + ; this deed declares HOW they work (methodology, coverage, debt, rra). + ; Hooks: on enter, read this deed, then docs/status/ROADMAP.adoc; on exit, + ; update ROADMAP.adoc and the (bot-directives (coverage)) and + ; (bot-directives (debt)) clauses with scripts/deed-clause.sh; on commit, + ; run `just validate-rsr`. + (agentic + :version "0.1.0" + :last-updated "2026-04-11" + (permissions :source #t :tests #t :docs #t :config #t :create-files #t) + (integrity + :fail-closed #t + :require-evidence-per-step #t + :allow-silent-skip #f + :require-rerun-after-fix #t + :release-claim-requires-hard-pass #t) + (methodology :instructions-clause "bot-directives" :default-mode hybrid)) + (manifest + :version "0.1.0" + :last-updated "2026-11-07" + :project "Atoma" + :purpose "Canonical RSR (Rhodium Standard Repository) template — governance, CI/CD, machine-readable metadata, ABI/FFI seam and formal-verification scaffolding that hyperpolymath projects are instantiated from." + (agent :name CLAUDE :role "proofs, compilers, repo-local implementation, CI/CD, formal verification, Rust/Idris2/Zig") + (agent :name CHATGPT :role "prose, papers, publication review, standards docs, outreach drafts, letters") + (agent :name GEMINI :role "estate audits, cross-repo sweeps, long-context triage, pattern detection") + (agent :name VIBE :role "UI/frontend, PanLL panels, components, theming, rapid prototyping") + (policy :rules ("Do not duplicate tasks across sections. If a task needs multiple LLMs, note the handoff." "Update THIS file during sessions. Do NOT recreate per-repo TODO files.")) + (work :agent CLAUDE :task "proofs, compilers, repo-local implementation, CI/CD, formal verification, Rust/Idris2/Zig") + (work :agent CHATGPT :task "prose, papers, publication review, standards docs, outreach drafts, letters") + (work :agent GEMINI :task "estate audits, cross-repo sweeps, long-context triage, pattern detection") + (work :agent VIBE :task "UI/frontend, PanLL panels, components, theming, rapid prototyping") + ) + (ply + (directory :ply 1 :path ".github") + (directory :id "machine-readable-pillar" :ply 1 :path ".machine_readable" :description "Registry for all machine-readable metadata, policies, and internal\nautomation scripts." + (canonical-locations :ai_configs "ai/" :anchor "atoma_chora.deed (anchor)" :compliance "compliance/" :neurosym "atoma_chora.deed (neurosym)" :playbook "atoma_chora.deed (playbook)" :policies "atoma_chora.deed (policies)" :scripts "scripts/") + :invariants ("Repo metadata MUST live in the repo deed (atoma_chora.deed) and follow the DEED grammar" "Internal automation MUST live in scripts/ subfolder") + (directory :id "ai-registry" :ply 2 :path ".machine_readable/ai" :description "Sub-registry for ai metadata.") + (directory :id "configs-registry" :ply 2 :path ".machine_readable/configs" :description "Sub-registry for configs metadata.") + (directory :ply 0 :path ".machine_readable/descriptiles" :description "This manifest declares the AI-assistant context for the descriptiles machine-readable metadata directory." + :invariants ("No duplicate files in root directory" "Single source of truth: this directory is authoritative" "No stale metadata")) + (directory :id "policies-registry" :ply 2 :path ".machine_readable/policies" :description "Sub-registry for policies metadata.") + (directory :id "automation-scripts-unit" :ply 2 :path ".machine_readable/scripts" :description "Internal automation logic for the project lifecycle, forge sync,\nverification triggers, and maintenance." + (canonical-locations :forge "forge/" :lifecycle "lifecycle/" :maintenance "maintenance/" :verification "verification/") + (directory :id "automation-unit-forge" :ply 3 :path ".machine_readable/scripts/forge" :description "Internal automation logic for project forge.") + (directory :id "automation-unit-lifecycle" :ply 3 :path ".machine_readable/scripts/lifecycle" :description "Internal automation logic for project lifecycle.") + (directory :id "automation-unit-verification" :ply 3 :path ".machine_readable/scripts/verification" :description "Internal automation logic for project verification."))) + (directory :id "container-templates" :ply 1 :path "build/container" :version "1.0.0" :description "Container templates for the stapeln container ecosystem. This directory\nprovides Podman-Chainguard-stapeln templates that are customised via\n`just container-init` or `just repo-init` during project bootstrap.\n\nAll files use {{PLACEHOLDER}} tokens that are substituted with project-\nspecific values during initialisation." :purpose "Provide a complete, security-first container deployment story for any\nRSR-compliant repository. The templates cover the full lifecycle:\nbuild, sign, verify, deploy, monitor, and govern." :overview "The stapeln container ecosystem comprises six tools:\n\nselur — Container orchestration with zero-copy IPC. Reads compose.toml.\ncerro-torre — Verified container packaging (.ctp bundles), Ed25519 signing.\nsvalinn — Policy-driven edge gateway (auth, rate limits, CORS, trust).\nvordr — Runtime monitoring (health, crashes, resources, logs).\nrokur — Secrets management (runtime injection, no baked secrets).\nk9-svc — Nickel deployment components (Kennel/Yard/Hunt trust levels)." + :context ("https://stapeln.dev/ns/v1") + (canonical-locations :build_pipeline "build/container/stapeln/ct-build.sh" :compose "build/container/stapeln/compose.toml" :compose_example "build/container/stapeln/compose.example.toml" :compose_portable "build/container/compose.yaml" :compose_portable_example "build/container/compose.example.yaml" :containerfile "build/container/Containerfile" :containerignore "build/container/.containerignore" :deployment "build/container/stapeln/deploy.k9.ncl" :entrypoint "build/container/entrypoint.sh" :gatekeeper "build/container/stapeln/.gatekeeper.yaml" :just_module "build/just/container.just" :manifest "build/container/stapeln/manifest.toml" :monitoring "build/container/stapeln/vordr.toml" :secrets_gate "build/container/stapeln/rokur.toml") + :invariants ("Base images MUST be cgr.dev/chainguard/wolfi-base or cgr.dev/chainguard/static" "Container runtime is Podman — never Docker" "Containerfile — never Dockerfile" "All images run as non-root (appuser or project-specific user)" ".ctp bundles are signed with Ed25519 via cerro-torre" "Health endpoints (/health, /ready) must always be public (no auth)") + (file-relationships + (file :name "compose.toml" :role "Orchestration" :description "selur-compose stack definition. Declares services, volumes, networks,\nand health checks. References the Containerfile for image builds and\n.gatekeeper.yaml for svalinn policy." :depends-on ("Containerfile" ".gatekeeper.yaml")) + (file :name "Containerfile" :role "Image Build (Tier A)" :description "Multi-stage OCI container build. Stage 1 compiles the application on\nwolfi-base; Stage 2 copies the binary into a minimal runtime image and\ncopies entrypoint.sh. Engine-agnostic (podman/nerdctl/docker). The\nstapeln files (.gatekeeper.yaml, manifest.toml) are referenced only as\nOCI labels and copied in only if you uncomment those COPY lines, so the\nimage has no hard dependency on tier C." :depends-on ("entrypoint.sh")) + (file :name "manifest.toml" :role "Bundle Metadata" :description "Cerro-torre .ctp bundle manifest. Describes provenance, dependencies,\nattestations, and runtime security profile. Used by `ct pack` and\n`ct verify`." :depends-on ()) + (file :name ".gatekeeper.yaml" :role "Gateway Policy" :description "Svalinn edge gateway policy. Controls authentication, rate limiting,\ncontainer trust, request validation, CORS, and audit logging." :depends-on ()) + (file :name "ct-build.sh" :role "Build Pipeline" :description "Shell script implementing the 5-stage pipeline: build (Podman),\npack (cerro-torre .ctp), sign (Ed25519), verify, push (optional).\nDegrades gracefully when cerro-torre tools are not installed." :depends-on ("Containerfile" "manifest.toml")) + (file :name "entrypoint.sh" :role "Container Entrypoint" :description "Startup script with signal handling (SIGTERM, SIGINT), logging, and\nexec into the main application process." :depends-on ()) + (file :name "vordr.toml" :role "Runtime Monitoring" :description "Vordr monitoring configuration. Health endpoint probing, crash\ndetection, resource thresholds, and structured log output." :depends-on ()) + (file :name "deploy.k9.ncl.in" :role "Deployment Component (template)" :description "k9-svc deployment component at the Hunt leash, K9 contract v1.0.0:\npedigree with capability grant, side effects and signature block;\nenvironment configs, container config, rolling deployment strategy,\ndeploy scripts and Just recipes. `just container-init` renders it to\ndeploy.k9.ncl once no placeholder token is left." :depends-on ("compose.toml" "ct-build.sh")) + (file :name "compose.example.toml" :role "Example" :description "Fully-commented multi-service example (Rust API + Elixir worker +\nsvalinn gateway). Copy to compose.toml and customise." :depends-on ()) + )) + (directory :id "docs-pillar" :ply 1 :path "docs" :description "Technical documentation hub. The root contains high-level orientation\n(README, Quickstart, State-Visualizer). Specialized tracks live in\nsubdirectories." + (canonical-locations :architecture "architecture/" :attribution "attribution/" :decisions "decisions/" :developer "developer/" :governance "governance/" :legal "legal/" :practice "practice/" :quickstart "QUICKSTART.adoc" :reports "reports/" :standards "standards/" :state_visualizer "STATE-VISUALIZER.adoc" :theory "theory/" :whitepapers "whitepapers/" :wikis "wikis/") + :invariants ("Primary documentation format MUST be AsciiDoc (.adoc)" "Root docs/ MUST only contain pillar entry points") + (directory :id "architecture-track" :ply 2 :path "docs/architecture" :description "Documentation track for system architecture and threat models." + (canonical-locations :threat_model "THREAT-MODEL.adoc") + :invariants ("Visual diagrams MUST include ASCII or Mermaid representations")) + (directory :id "attribution-unit" :ply 2 :path "docs/attribution" :description "Sub-unit of the docs pillar focusing on attribution.") + (directory :id "decisions-unit" :ply 2 :path "docs/decisions" :description "Sub-unit of the docs pillar focusing on decisions.") + (directory :id "developer-unit" :ply 2 :path "docs/developer" :description "Sub-unit of the docs pillar focusing on developer.") + (directory :id "governance-pillar" :ply 1 :path "docs/governance" :description "Primary governance pillar implementing the Triaxial Software Development\nMethodology (TSDM). Contains planning, maintenance, and audit tracks." + (canonical-locations :approach "SOFTWARE-DEVELOPMENT-APPROACH.adoc" :audit "audit/" :checklist "MAINTENANCE-CHECKLIST.adoc" :crg "CRG-CRITERIA.adoc" :maintenance "maintenance/" :planning "planning/" :tsdm_spec "TSDM.adoc") + (directory :id "governance-axis-audit" :ply 2 :path "docs/governance/audit" :description "TSDM Audit track." + (directory :id "governance-unit-compliance" :ply 3 :path "docs/governance/audit/compliance" :description "TSDM compliance unit within the Audit axis.") + (directory :id "governance-unit-effects" :ply 3 :path "docs/governance/audit/effects" :description "TSDM effects unit within the Audit axis.") + (directory :id "governance-unit-systems" :ply 3 :path "docs/governance/audit/systems" :description "TSDM systems unit within the Audit axis.")) + (directory :id "governance-axis-maintenance" :ply 2 :path "docs/governance/maintenance" :description "TSDM Maintenance track." + (directory :id "governance-unit-adaptive" :ply 3 :path "docs/governance/maintenance/adaptive" :description "TSDM adaptive unit within the Maintenance axis.") + (directory :id "governance-unit-corrective" :ply 3 :path "docs/governance/maintenance/corrective" :description "TSDM corrective unit within the Maintenance axis.") + (directory :id "governance-unit-perfective" :ply 3 :path "docs/governance/maintenance/perfective" :description "TSDM perfective unit within the Maintenance axis.")) + (directory :id "governance-axis-planning" :ply 2 :path "docs/governance/planning" :description "TSDM Planning track." + (directory :id "governance-unit-could" :ply 3 :path "docs/governance/planning/could" :description "TSDM could unit within the Planning axis.") + (directory :id "governance-unit-must" :ply 3 :path "docs/governance/planning/must" :description "TSDM must unit within the Planning axis.") + (directory :id "governance-unit-should" :ply 3 :path "docs/governance/planning/should" :description "TSDM should unit within the Planning axis."))) + (directory :id "legal-track" :ply 2 :path "docs/legal" :description "Sub-unit for legal and licensing documentation. Contains framework\nexhibits and archival license texts." + (canonical-locations :exhibits "exhibits/" :texts "texts/")) + (directory :id "practice-unit" :ply 2 :path "docs/practice" :description "Sub-unit of the docs pillar focusing on practice.") + (directory :id "reports-unit" :ply 2 :path "docs/reports" :description "Documentation unit for all automated and manual audit reports. Classified\nby domain." + (canonical-locations :compliance "compliance/" :maintenance "maintenance/" :performance "performance/" :quality "quality/" :security "security/") + (directory :id "report-unit-compliance" :ply 3 :path "docs/reports/compliance" :description "Specialised repository for compliance findings and evidence.") + (directory :id "report-unit-maintenance" :ply 3 :path "docs/reports/maintenance" :description "Maintenance reports.") + (directory :id "report-unit-performance" :ply 3 :path "docs/reports/performance" :description "Specialised repository for performance findings and evidence.") + (directory :id "report-unit-quality" :ply 3 :path "docs/reports/quality" :description "Specialised repository for quality findings and evidence.") + (directory :id "report-unit-security" :ply 3 :path "docs/reports/security" :description "Specialised repository for security findings and evidence.")) + (directory :id "standards-unit" :ply 2 :path "docs/standards" :description "Standards unit for high-rigor verification.") + (directory :id "theory-track" :ply 2 :path "docs/theory" :description "Documentation track for domain-specific theory and research foundations.\nCategorised by discipline." + (canonical-locations :computing "computing/" :formalisms "formalisms/" :mathematics "mathematics/" :ontologies "ontologies/" :other "other/" :socio_technical "socio-technical/") + :invariants ("Theoretical claims MUST reference established academic or technical formalisms") + (directory :id "theory-unit-computing" :ply 3 :path "docs/theory/computing" :description "Theoretical foundation for computing.") + (directory :id "theory-unit-formalisms" :ply 3 :path "docs/theory/formalisms" :description "Theoretical foundation for formalisms.") + (directory :id "theory-unit-mathematics" :ply 3 :path "docs/theory/mathematics" :description "Theoretical foundation for mathematics.") + (directory :id "theory-unit-ontologies" :ply 3 :path "docs/theory/ontologies" :description "Theoretical foundation for ontologies.") + (directory :id "theory-unit-other" :ply 3 :path "docs/theory/other" :description "Theoretical foundation for other.") + (directory :id "theory-unit-socio-technical" :ply 3 :path "docs/theory/socio-technical" :description "Theoretical foundation for socio technical.")) + (directory :id "whitepapers-track" :ply 2 :path "docs/whitepapers" :description "Unit for strategic publications and whitepapers. Categorised by target\naudience: Academic, Industry, and Outreach." + (canonical-locations :academic "academic/" :industry "industry/" :outreach "outreach/") + :invariants ("Each sub-track MUST have a clear audience definition in its README") + (directory :id "academic-unit" :ply 3 :path "docs/whitepapers/academic" :description "Academic logic at level 3.") + (directory :id "industry-unit" :ply 3 :path "docs/whitepapers/industry" :description "Industry logic at level 3.") + (directory :id "whitepapers-track-outreach" :ply 3 :path "docs/whitepapers/outreach" :description "Documentation track for outreach, education, and general-audience\nengagement. Focuses on accessibility and high-level conceptual clarity." + :invariants ("Language MUST be accessible to non-technical audiences" "Avoid deep technical jargon without providing clear definitions"))) + (directory :id "wikis-track" :ply 2 :path "docs/wikis" :description "Long-form collaborative documentation and project knowledge base.\nThis directory mirrors the content structure of the project wiki." + :invariants ("Primary wiki format MUST be Markdown (.md) — owner ruling 2026-09-19: wikis are the .md home (berrywiki); everything outside wikis stays .adoc"))) + (directory :ply 1 :path "examples") + (directory :id "features-pillar" :ply 1 :path "features" :description "Optional project features and ecosystem integrations. Provides bootstrap\nguides for high-rigor tools (Panic-Attacker, BoJ-Server, SSGs)." + (canonical-locations :boj_server "boj-server/" :panic_attacker "panic-attacker/" :ssg "ssg/") + (directory :id "feature-unit-boj-server" :ply 2 :path "features/boj-server" :description "Bootstrap and integration logic for the boj-server ecosystem component.") + (directory :id "feature-unit-panic-attacker" :ply 2 :path "features/panic-attacker" :description "Bootstrap and integration logic for the panic-attacker ecosystem component.") + (directory :id "feature-unit-ssg" :ply 2 :path "features/ssg" :description "Bootstrap and integration logic for the ssg ecosystem component.")) + (directory :id "source-pillar" :ply 1 :path "src" :description "Primary source code directory. Organized by role and architectural\naspect." + (canonical-locations :aspects "aspects/" :bridges "bridges/" :contracts "contracts/" :core "core/" :definitions "definitions/" :errors "errors/" :interface "interface/") + :invariants ("Core logic MUST reside in core/" "Verified seams MUST reside in interface/" "Safety constraints MUST reside in contracts/" "Failure dictionaries MUST reside in errors/") + (directory :id "source-unit-aspects" :ply 2 :path "src/aspects" :description "Cross-cutting concerns and domain-specific aspects (Security,\nObservability, Integrity)." + (canonical-locations :integrity "integrity/" :observability "observability/" :security "security/") + (directory :id "aspect-unit-integrity" :ply 3 :path "src/aspects/integrity" :description "Implementation logic for the integrity aspect.") + (directory :id "aspect-unit-observability" :ply 3 :path "src/aspects/observability" :description "Implementation logic for the observability aspect.") + (directory :id "aspect-unit-security" :ply 3 :path "src/aspects/security" :description "Implementation logic for the security aspect.")) + (directory :id "source-unit-bridges" :ply 2 :path "src/bridges" :description "Integration logic for external systems (API, Database, RPC, etc.).") + (directory :id "source-unit-contracts" :ply 2 :path "src/contracts" :description "Contracts unit for high-rigor source code.") + (directory :id "source-unit-core" :ply 2 :path "src/core" :description "Primary application logic and core domain models.") + (directory :id "source-unit-definitions" :ply 2 :path "src/definitions" :description "Definitions unit for high-rigor source code.") + (directory :id "source-unit-errors" :ply 2 :path "src/errors" :description "Errors unit for high-rigor source code.") + (directory :id "interface-seams-unit" :ply 2 :path "src/interface" :description "Consolidated \"Verified Interface Seams\" unit. This directory unifies the\nformal specification (ABI), the bridge implementation (FFI), and the\nresulting artifacts (Generated)." + (canonical-locations :abi "abi/" :ffi "ffi/" :generated "generated/") + :invariants ("ABI MUST be Idris2 (.idr)" "FFI MUST be Zig (.zig)" "Generated artifacts MUST be C-compatible" "The 'Truth' lives in abi/; the 'Implementation' lives in ffi/") + (directory :id "abi-logic" :ply 3 :path "src/interface/Abi" :description "Specialised Level 3 logic for abi.") + (directory :id "ffi-logic" :ply 3 :path "src/interface/ffi" :description "Specialised Level 3 logic for ffi." + (directory :id "src-unit" :ply 4 :path "src/interface/ffi/src" :description "Src logic at level 4.") + (directory :id "test-unit" :ply 4 :path "src/interface/ffi/test" :description "Test logic at level 4.")) + (directory :id "generated-logic" :ply 3 :path "src/interface/generated" :description "Specialised Level 3 logic for generated." + (directory :id "abi-unit" :ply 4 :path "src/interface/generated/abi" :description "Abi logic at level 4.")))) + (directory :id "verification-pillar" :ply 1 :path "verification" :description "Primary verification pillar. Contains evidence for correctness,\nperformance, formal proofs, randomized testing, and aerospace-grade\nhigh-assurance metrics (MC/DC coverage, traceability, safety cases)." + (canonical-locations :benchmarks "benchmarks/" :coverage "coverage/" :fuzzing "fuzzing/" :proofs "proofs/" :safety_case "safety_case/" :simulations "simulations/" :tests "tests/" :traceability "traceability/") + :invariants ("Evidence MUST be reproducible and documented" "High-assurance deployments MUST satisfy traceability and safety_case requirements") + (directory :id "benches-pillar" :ply 2 :path "verification/benchmarks" :description "Benches pillar.") + (directory :id "verification-unit-coverage" :ply 2 :path "verification/coverage" :description "High-assurance verification unit for coverage. \nCritical for safety-of-life and aerospace-grade deployment standards.") + (directory :id "fuzzing-unit" :ply 2 :path "verification/fuzzing" :description "Fuzzing unit for high-rigor verification.") + (directory :id "verification-unit-proofs" :ply 2 :path "verification/proofs" :description "Sub-unit focusing on proofs.") + (directory :id "verification-unit-safety_case" :ply 2 :path "verification/safety_case" :description "High-assurance verification unit for safety case. \nCritical for safety-of-life and aerospace-grade deployment standards.") + (directory :id "simulations-unit" :ply 2 :path "verification/simulations" :description "Simulations unit for high-rigor verification.") + (directory :ply 2 :path "verification/tests") + (directory :id "verification-unit-traceability" :ply 2 :path "verification/traceability" :description "High-assurance verification unit for traceability. \nCritical for safety-of-life and aerospace-grade deployment standards.")) + ) + ; ANCHOR — the authoritative anchor: semantic authority, implementation policy + ; and the golden path. The CLAUDE.md arrival pack reads anchor/golden-path and hashes this clause (ANCHOR@…). + (anchor + :schema "hyperpolymath.anchor/1" + :repo "hyperpolymath/atoma" + :authority "upstream-canonical" + :purpose ( + "Define canonical semantics and policy boundaries for this repository." + "Declare what downstream/satellite repos can extend but not redefine." + "Provide a stable golden path and invariant contract for release readiness." + ) + (metadata + :version "1.0.0" + :last-updated "2026-11-07") + (identity + :project "Atoma" + ; language | library | service | tool + :kind "tool" + :one-sentence "Experimental source-bound program verification for a closed Zig subset" + :domain "formal verification of Zig programs") + (semantic-authority + :policy "canonical" + :owns ( + "Project semantics and specification" + "Invariant definitions and contractiles" + "Reference implementation behavior" + )) + (implementation-policy + :allowed ("Rust" "Idris2" "Zig" "Scheme" "Shell" "Just" "AsciiDoc" "Markdown") + :forbidden ("Node.js" "npm")) + (golden-path + :smoke-test-command ("just test" "just quality") + :success-criteria ( + "Core tests pass" + "Quality gates pass" + "No unresolved critical security findings" + )) + (satellite-policy + :must-pin-upstream #t + :must-declare-authority #t + :must-have-anchor #t + :must-have-golden-path #t) + (semantic-authority-files + :language-spec "docs/spec/ATOMA-SPEC.adoc" + :formal-proofs "verification/atoma" + :type-theory "docs/theory/THEORY.adoc" + :algorithms "docs/theory/ALGORITHMS.adoc")) + ; NEUROSYM — neurosymbolic integration metadata: the meaning of operations. + ; Configuration for Hypatia scanning and symbolic reasoning. + (neurosym + (metadata + :version "0.1.0" + :last-updated "2026-04-11") + (hypatia-config + :scan-enabled #t + ; quick | standard | deep + :scan-depth "standard" + :report-format "logtalk") + (symbolic-rules + ; Custom symbolic rules for this project + ; (rule :name "no-unsafe-ffi" :pattern "believe_me|unsafeCoerce" :severity "critical") + ) + (neural-config + ; Neural pattern detection settings + ; confidence-threshold = 0.85 + ; model = "hypatia-v2" + )) + ; PLAYBOOK — operational playbook: how permitted actions run. + ; Runbooks, incident response, deployment procedures. + (playbook + (metadata + :version "0.1.0" + :last-updated "2026-04-11") + (deployment + ; :method "gitops" ; gitops | manual | ci-triggered + ; :target "container" ; container | binary | library | wasm + ) + (incident-response + ; 1. Check the repo deed (*_chora.deed) (status) clause and docs/status/ROADMAP.adoc for current status + ; 2. Review recent commits and CI results + ; 3. Run `just validate` to check compliance + ; 4. Run `just security` to audit for vulnerabilities + ) + (release-process + ; 1. Update version in the repo deed (meta :version), Justfile + ; 2. Run `just release-preflight` (validate + quality + security + maint-hard-pass) + ; 3. Optional local permission hardening: `just perms-snapshot && just perms-lock` + ; 4. Tag and push + ; 5. Restore local permissions if needed: `just perms-restore` + ; 6. Run `just container-push` if applicable + ) + (maintenance-operations + ; Baseline audit: + ; just maint-audit + ; Hard release gate: + ; just maint-hard-pass + ; Permission audit: + ; just perms-audit + ) + (rsr-repo-skeleton + ; Canonical organisation of any RSR-derived repository. + ; Used by tooling, human onboarding, and the scheduled downstream sweep agent. + ; The 5-PR cleanup pattern (below) brings a non-conforming repository into + ; compliance with this skeleton. + ; + ; This section is the single source of truth for "what does an RSR repo look + ; like?". Other docs (TOPOLOGY, AUDIT, etc.) describe the repo at hand; + ; this describes the canonical shape that all RSR repos share. + :skeleton-version "1.0" + :last-updated "2026-04-30" + :authority-allowlist ".machine_readable/root-allow.txt" + :enforcement-workflow ".github/workflows/estate-rules.yml")) + ; eNSAID environment configuration — per-repo configuration for PanLL and + ; eNSAID-compatible tools. + ; Spec: https://github.com/hyperpolymath/standards/tree/main/1-formats/sub-specs/ensaid-config + (ensaid + :version "1.0.0" + :tool "panll" + ; Workspace mode, protection, and execution policy + (workspace + ; rhodium | gold | silver | bronze + :mode "rhodium" + ; open | guarded | locked + :protection "open" + ; live | dry-run | approval-required + :execution "live") + ; User/repo-level display and behaviour preferences + (preferences + ; high | medium | low (drift aura intensity) + :humidity "medium" + ; workspace arrangement ID + :default-arrangement "default-3-panel" + ; auto-connect panels to backends on load + :auto-connect #t) + ; Panel visibility, enablement, and isolation overrides + (panels + :version "1.0.0" + ; By default, all panels are available. Uncomment to restrict: + ; (enabled :id "valence-shell" :isolation "native" :auto-connect #t) + ; (enabled :id "editor-bridge" :isolation "native" :auto-connect #t) + ; Panels to hide for this repo context: + ; (disabled :ids ()) + ) + ; Automation Router event-driven cross-panel rules + (workflows + :version "1.0.0" + ; Example: rebuild on file save + ; (rule :name "build-on-save" + ; (trigger :event "file-changed" :pattern "src/**/*.res") + ; (condition :panel "build-dashboard" :field "watchMode" :equals #t) + ; (action :panel "build-dashboard" :message "TriggerBuild" (args :target "game")) + ; :approval "auto-fire") ; auto-fire | require-approval | approve-once | dry-run-first + ) + ; Panel clade trait and capability overrides + (clades + :version "1.0.0" + ; Example: add a custom capability to a panel clade + ; (override :id "build-dashboard" (traits :has-work-items #t) :capabilities-add ("CustomCheck")) + ) + ; Custom panel bundles for this repo's workflow + (portfolios + :version "1.0.0")) + ; Bot directives — what agents and bots read at session start and update at + ; session end. Human guide: + ; .machine_readable/bot_directives/README.adoc. + (bot-directives + ; methodology — AI agent methodology configuration + ; Declares how agents should approach work in this repository. + ; Read at session start by any AI agent (Claude, Gemini, Copilot, etc.) + ; + ; Reference: ADR-002 (methodology layer) in hyperpolymath/standards + (methodology + (metadata + :version "1.0.0" + :last-updated "2026-11-07" + :spec "https://github.com/hyperpolymath/standards/blob/main/1-formats/a2ml/agentic/docs/ADR-002-methodology-layer.adoc") + ; ============================================================================ + ; MODE SELECTION + ; ============================================================================ + ; convergent: find gaps, fill them, build infrastructure (default for ops/infra) + ; divergent: find what's strongest, push it further (for research/creative) + ; hybrid: audit 20% of budget, then focus 80% on top MUSTs (default for most) + (methodology + :default-mode "hybrid" + ; Hard ceiling for ring expansion (0-3) + :ring-ceiling 2 + ; Max waves before requiring user "keep going" + :wave-cap 2 + ; Every session must ship code, not just designs + :spike-required #t + ; ============================================================================ + ; PRIORITY WEIGHTS + ; ============================================================================ + ; MUST (3x): Blocking the current work → fix immediately + ; SHOULD (2x): Degrading quality of current work → fix if in zone + ; COULD (1x): Improving quality of adjacent work → add to debt list + (priority-weights + :must 3 + :should 2 + :could 1) + ; ============================================================================ + ; CONVERGENT BUDGET (when mode = convergent or hybrid) + ; ============================================================================ + ; How to allocate effort across work types. + ; Prevents over-polishing docs while structural work waits. + (convergent-budget + ; % for new modules, compilation fixes, wiring, integration + :structural 70 + ; % for bugs found, broken imports, stale references + :corrective 20 + ; % for SPDX headers, doc updates, formatting, style + :perfective 10) + ; ============================================================================ + ; UNIQUE STRENGTH (when mode = divergent) + ; ============================================================================ + ; What makes this project special. Agents should DEEPEN this, not broaden it. + ; Customise this per project — the template default is generic. + (unique-strength + :description "UNASSIGNED" + :deepen-not-broaden #t) + ; ============================================================================ + ; DIVERGENT INVARIANTS + ; ============================================================================ + ; Constraints that divergent mode must NOT violate. + ; These are the riverbanks — diverge within them, not across. + ; "Amplify uniqueness" means deepen, not broaden. + ; + ; Test before any divergent action: + ; "Does this deepen the existing strength, or add a parallel strength?" + ; If parallel → stop. Note as cross-project insight. + (divergent-invariants + ; Customise per project. Examples: + ; "Idris2 only for formal verification — no Lean4, Coq, Agda", + ; "believe_me count must remain zero", + ; "FFI architecture: Idris2 → RefC → Zig → C ABI (no shortcuts)", + :rules ()) + ; Optional: language invariant for the core strength + ; If set, divergent mode will not introduce other languages for this purpose + ; language-invariant = "idris2" + ; ============================================================================ + ; CONSTRAINT HINTS + ; ============================================================================ + ; Help Phase 0 find the critical chain faster. + ; Updated at session end with newly discovered constraints. + (known-constraints + ; Customise per project. Examples: + ; "End-to-end build has never been verified", + ; "libproject.so does not exist yet — all bindings call stubs", + :constraints ()) + ; ============================================================================ + ; STATE FILE VALIDATION + ; ============================================================================ + ; Phase 0 reads the repo deed (status) clause and docs/status/ROADMAP.adoc first, + ; but they may be broken. + ; These rules detect corrupt/template/stale state files. + (state-validation + ; A regex, not a literal list. The list form named the exact strings it was + ; meant to catch ("ATOMA"), so `just repo-init` substituted the detector along + ; with everything else and shipped reject-if-contains = ["MY_PROJECT", ...] — + ; a guard against unfilled tokens that had been eaten by the filling. The + ; escaped pattern below contains no token for init to match, and covers every + ; upper-snake token rather than the three anyone remembered to enumerate. + ; Enforced by scripts/check-no-placeholders.sh. + :reject-if-matches ("\\{\\{[A-Z][A-Z0-9_]*\\}\\}") + :reject-if-contains ("rsr-template-repo") + :reject-if-project-name-mismatch #t + :staleness-threshold-days 90 + :fallback-files ("TODO.md" "TODO.adoc" "ROADMAP.adoc" "README.adoc")))) + ; coverage — session coverage tracking + ; Updated at the end of each AI agent session. + ; Persists what was visited, what was skipped, and what has MUSTs. + ; + ; Reference: ADR-002 (methodology layer) in hyperpolymath/standards + (coverage + (metadata + :version "1.0.0" + :last-updated "2026-11-07") + ; ============================================================================ + ; COVERAGE STATE + ; ============================================================================ + ; Updated by agents at session end. Tracks which components have been + ; visited and which have known MUSTs that were skipped. + (coverage + :total-components 0 + :visited-components 0 + :coverage-percent 0)) + ; debt — Meander debt list + ; Things found but not fixed. Carried between sessions. + ; Becomes the next session's Phase 0 input. + ; + ; Reference: ADR-002 (methodology layer) in hyperpolymath/standards + (debt + (metadata + :version "1.0.0" + :last-updated "2026-11-07")) + ; rra — directives for Robot Repo Automaton (RRA) enforcing the Platonic Ideal root. + (rra + :target "robot-repo-automaton" + (module + :name "root-cleaner" + ; mode can be "enforce" (auto-commit) or "putative" (write to /.auto-rr/ for human review) + (policy + :mode "putative" + :strictness "high") + ; Files that are strictly allowed to exist at the root. CLAUDE.md is the + ; generated arrival pack; git/Claude/pre-commit all read it from the ROOT. + ; The pattern ".*" allows hidden dotfiles implicitly; RRA checks specific + ; dotfile rules below. + (allow-list + :files ("README.adoc" "CHANGELOG.adoc" "Justfile" "LICENSE" "atoma_chora.deed" "CITATION.cff" "CLAUDE.md") + :patterns (".*")) + ; Relocation rules: move heavy prose out of the root + (relocations + (move :pattern "*.adoc" :dest "docs/" :except ("README.adoc" "CHANGELOG.adoc")) + (move :pattern "GOVERNANCE.*" :dest "docs/") + (move :pattern "ARCHITECTURE.*" :dest "docs/") + (move :file "MAINTAINERS.adoc" :dest "docs/")) + ; Consolidation rules: reduce the dotfile "wall of noise" + (consolidations + ; Merge legacy environment trackers into mise + (merge :sources (".envrc" ".tool-versions") :engine "mise-translator" :dest ".config/mise.toml") + ; Ensure standard git attributes are consolidated + (merge :sources (".gitattributes-legacy" ".gitattributes-os") :dest ".gitattributes")) + ; Explicitly ignore certain paths from being cleaned + (ignores + :dirs ("src/" "tests/" ".git/" "docs/" ".machine_readable/"))))) + ; Optional ecosystem integrations. + ; Each clause is opt-in; delete the ones your project does not use. + (integrations + ; OPTIONAL: Feedback-o-Tron Integration — Autonomous Bug Reporting + ; Delete this clause if your project does not use feedback-o-tron. + (feedback-o-tron + (integration + :name "feedback-o-tron" + :type "bug-reporter" + :repository "https://github.com/hyperpolymath/feedback-o-tron") + (reporting-config + :platforms ("github" "gitlab" "bugzilla") + :deduplication #t + :audit-logging #t + :auto-file-upstream "on-external-dependency-failure")) + ; OPTIONAL: Proven Integration — Formally Verified Safety Library + ; Delete this clause if your project does not use the proven library. + ; See https://github.com/hyperpolymath/proven for details. + (proven + (integration + :name "proven" + :type "safety-library" + :repository "https://github.com/hyperpolymath/proven" + :version "1.2.0") + (binding-policy + :approach "thin-ffi-wrapper" + :unsafe-patterns "replace-with-proven-equivalent" + :modules-available ( + "SafeMath" + "SafeString" + "SafeJSON" + "SafeURL" + "SafeRegex" + "SafeSQL" + "SafeFile" + "SafeTemplate" + "SafeCrypto" + )) + (adoption-guidance + :priority "high" + :scope "all-string-json-url-crypto-operations" + :migration "incremental — replace unsafe patterns as encountered")) + ; OPTIONAL: VeriSimDB Feed — Cross-Repo Analytics Data Store + ; Delete this clause if your project does not feed data to VeriSimDB. + ; See https://github.com/hyperpolymath/nextgen-databases for details. + (verisimdb + (integration + :name "verisimdb" + :type "data-feed" + :repository "https://github.com/hyperpolymath/nextgen-databases" + :data-store "verisimdb-data") + (feed-config + :emit-scan-results #t + :emit-build-metrics #t + :emit-dependency-graph #t + :format "hexad" + :destination "verisimdb-data/feeds/")) + ; OPTIONAL: Vexometer Integration — Irritation Surface Analysis + ; Delete this clause if your project does not use vexometer. + (vexometer + (integration + :name "vexometer" + :type "friction-measurement" + :repository "https://github.com/hyperpolymath/vexometer") + (measurement-config + :dimensions 10 + :emit-isa-reports #t + :lazy-eliminator #t + :satellite-interventions #t) + (hooks + :cli-tools "measure-on-error" + :ui-panels "measure-on-interaction" + :build-failures "measure-on-failure")) + ; groove — Groove Protocol manifest: the API surfaces this project exposes + ; Consumed by the Groove bridge / + ; zig-unified-api-adapter for snap-on/snap-off service discovery. Edit it to + ; match your project's actual APIs; `just groove-setup` writes :port and the + ; :enabled flags through scripts/deed-clause.sh. + ; See: https://github.com/hyperpolymath/standards/tree/main/groove-protocol + (groove + :version "1.0" + ; Service identity — replace atoma with your project name + :service "atoma" + :service-version "0.1.0" + ; Primary port — MUST be unique across the ecosystem. Check PORT-REGISTRY.md + ; in the standards repo before assigning: + ; https://github.com/hyperpolymath/standards/blob/main/PORT-REGISTRY.md + ; 0 = not assigned yet — run `just groove-setup` to assign + :port 0 + ; Health endpoint — used by Groove discovery + :health "/health" + ; Capabilities — what this service can do for others + :capabilities () + ; Dependencies — what this service needs from others + :dependencies () + ; API surfaces this project exposes (dodeca-API). Remove the ones you don't use. + (api-surfaces + (rest :enabled #t :path "/api/v1") + (grpc :enabled #f :port-offset 1) + (graphql :enabled #f :path "/graphql") + (websocket :enabled #f :path "/ws") + (sse :enabled #f :path "/events") + (groove :enabled #t :path "/.well-known/groove")))) + ; Maintenance and development policies, machine-readable canonical. + ; Human companions live in + ; docs/governance/. + (policies + ; Canonical maintenance governance model + (maintenance-axes + (metadata + :version "1.0.0" + :last-updated "2026-11-07" + :scope "repo") + (discovery + :human-entrypoints ( + "README.adoc" + "docs/governance/MAINTENANCE-CHECKLIST.adoc" + "docs/governance/SOFTWARE-DEVELOPMENT-APPROACH.adoc" + ) + :machine-entrypoints ( + "*_chora.deed (policies (maintenance-axes))" + "*_chora.deed (policies (maintenance-checklist))" + "*_chora.deed (policies (software-development-approach))" + "*_chora.deed" + ".machine_readable/ai/README.adoc" + "*_chora.deed (bot-directives)" + ) + :bots ("hypatia" "gitbot-fleet" "repo visitors")) + (axes + :axis-1 "must > intend > like" + :axis-2 "corrective > adaptive > perfective" + :axis-3 "systems > compliance > effects" + :execution-order "axis-1 > axis-2 > axis-3") + (axis-1-scoping + :required #t + :sources "README, roadmap, status docs, maintenance checklist, CI/security docs" + :markers "TODO/FIXME/XXX/HACK/STUB/PARTIAL" + :idris-unsound-markers "believe_me/assert_total" + :output "scoped work assembly in must/intend/like buckets") + (axis-2-maintenance + :corrective-first #t + :adaptive-second #t + :adaptive-focus "scope changes, stale references, obsolete work culling" + :perfective-third #t + :perfective-source "honest state from axis-1 after corrective/adaptive updates") + (axis-3-audit + :systems-check #t + :compliance-check #t + :effects-check #t + :compliance-focus "seams/compromises/exception register and anti-drift" + :compliance-tooling "panic-attack" + :effects-tooling "ecological checking with sustainabot guidance" + :effects-evidence "benchmark evidence and maintainer dialogue/status review")) + ; Cross-repo maintenance baseline (machine-readable canonical) + (maintenance-checklist + (metadata + :version "1.1.0" + :last-updated "2026-02-24" + :scope "cross-repo" + :source-human "docs/governance/MAINTENANCE-CHECKLIST.adoc" + :companion-human "docs/governance/SOFTWARE-DEVELOPMENT-APPROACH.adoc" + :companion-machine "*_chora.deed (policies (software-development-approach))") + (policy + :single-source #t + :notes "Use this clause as canonical machine policy and keep the AsciiDoc synchronized.") + (maintenance-axes + :scoping-first #t + :execution-order ("scoping" "axis-1" "axis-2" "axis-3") + :axis-1 "must > intend > like" + :axis-2 "corrective > adaptive > perfective" + :axis-3 "systems > compliance > effects") + (scoping + :inputs_required ( + "README" + "roadmap" + "status-docs" + "maintenance-checklist" + "ci-and-security-docs" + ) + :marker_scan_required ("TODO" "FIXME" "XXX" "HACK" "STUB" "PARTIAL") + :idris_unsound_scan_required ("believe_me" "assert_total") + :scope_assembly_buckets ("must" "intend" "like")) + (axis-2-maintenance-rules + :corrective-first #t + :adaptive-second #t + :adaptive_examples ( + "scope-change reconciliation" + "stale-reference removal" + "obsolete-work culling" + ) + :perfective-third #t + :perfective_source "axis-1 honest state after corrective/adaptive updates") + (axis-3-audit-rules + :systems-check #t + :documentation-honesty-check #t + :safety-security-accounted-check #t + :effects-review-check #t + :benchmark-evidence-required #t + :maintainer-dialogue-review-required #t + :compliance-seams-check #t + :exception-register-required #t + :exception-bounded-scope-required #t + :policy-drift-contamination-check #t + :example-drift-risk "single TypeScript exception causing broad ->TypeScript migration" + :compliance-tooling "panic-attack" + :effects-tooling "ecological checking with sustainabot guidance") + (generic-cleanup-finish-off + :root-cleanup-required #t + :stale-work-cull-required #t + :docs-parity-required #t + :machine-human-sync-required #t + :compliance-finish-off-required #t + :effects-finish-off-required #t + :release-prep-summary-required #t + :next-actions-required ("corrective" "adaptive" "perfective")) + (must + :root_control_files ( + ".gitignore" + ".gitattributes" + ".editorconfig" + ".tool-versions" + "Containerfile" + "Justfile" + ) + :root_hosting_files ("CNAME" ".nojekyll") + :ownership_files ("MAINTAINER" ".github/CODEOWNERS") + :machine_readable_required ( + "*_chora.deed (anchor)" + ".machine_readable/contractiles/" + ".machine_readable/ai/" + ".machine_readable/bot_directives/" + ) + :contractiles_required ( + ".machine_readable/contractiles/must/" + ".machine_readable/contractiles/trust/" + ".machine_readable/contractiles/intend/" + ) + :security_required ("www/.well-known/security.txt" "ci-security-scan") + :quality_gate_required ( + "format" + "lint" + "unit-tests" + "integration-tests" + "p2p-tests" + "e2e-tests" + "bench-smoke" + "docs-check" + "security-scan" + ) + :abi_ffi_policy ("ABI Idris2 in src/interface/abi/*.idr" "FFI Zig in ffi/**/*.zig")) + (should + :docs_primary_format "adoc" + :docs_structure ( + "docs/theory" + "docs/practice" + "docs/whitepapers/academic" + "docs/whitepapers/industry" + "docs/proofs" + "docs/reports" + ) + :root_minimization #t + :well_known_metadata #t + :roadmap_honesty_with_dates #t + :ci_doc_format_policy #t) + (could + :generate_human_from_machine #t + :mode_aware_bots ("corrective" "adaptive" "perfective" "audit") + :topology_dashboard #t + :exception_registry #t)) + ; General software development approach (machine-readable) + (software-development-approach + (metadata + :version "1.0.0" + :last-updated "2026-02-24" + :scope "cross-repo" + :source-human "docs/governance/SOFTWARE-DEVELOPMENT-APPROACH.adoc") + (execution + :order ("axis-1" "axis-2" "axis-3")) + (axis-1 + :name "scope" + :priority "must > intend > like" + :inputs ("README" "roadmap" "status-docs" "ci-and-security-docs") + :marker-scan ("TODO" "FIXME" "XXX" "HACK" "STUB" "PARTIAL") + :idris-unsound-scan ("believe_me" "assert_total") + :output "scoped-work-assembly") + (axis-2 + :name "maintenance" + :priority "corrective > adaptive > perfective" + :corrective "defect/regression/safety/security fixes" + :adaptive "scope reconciliation, stale-reference removal, obsolete-work culling" + :perfective "quality improvements derived from axis-1 honest state") + (axis-3 + :name "audit" + :priority "systems > compliance > effects" + :systems "required systems present and operating" + :compliance "exceptions explicit, bounded, and drift-resistant" + :effects "benchmark/operational impact evidence captured and reviewed" + :compliance-tooling "panic-attack" + :effects-tooling "ecological checking with sustainabot guidance") + (cleanup-finish-off + :root-cleanup #t + :stale-work-cull #t + :docs-sync-human-machine #t + :compliance-audit #t + :effects-audit #t + :release-summary ("must" "should" "could") + :next-actions ("corrective" "adaptive" "perfective")) + (collaboration + :maintainer-dialogue-required #t + :dialogue-topics ("what changed" "why" "remaining risks"))) + ; Component Readiness Grades (CRG v1.0) — the machine-readable grade + ; standard; the human companion is docs/governance/CRG-CRITERIA.adoc. + (crg-criteria + (standard + :name "Component Readiness Grades" + :abbreviation "CRG" + :version "1.0" + :date "2026-02-28" + :author "Jonathan D.A. Jewell " + :license "MPL-2.0" + :family "RSR") + (grades + (grade :code "X" :name "Untested" :release-stage #f :ordinal 0 + :description "No testing has been performed. Status unknown." + :evidence-required "none" + :minimum-for #f) + (grade :code "F" :name "Harmful / Wasteful" :release-stage #f :ordinal 1 + :description "Actively harmful, wasteful, or better handled externally. Reject, deprecate, or delegate." + :evidence-required "documented test results showing harm, waste, or redundancy; comparison with alternatives" + :minimum-for #f) + (grade :code "E" :name "Minimal / Salvageable" :release-stage "pre-alpha" :ordinal 2 + :description "Does something slight. Barely functional. Needs redesign or major work." + :evidence-required "at least one successful test case; documented failures and limitations" + :minimum-for #f) + (grade :code "D" :name "Partial / Inconsistent" :release-stage "alpha" :ordinal 3 + :description "Works on some things but not systematically." + :evidence-required "matrix of tested scenarios; documented scope vs actual capabilities" + :minimum-for "alpha") + (grade :code "C" :name "Self-Validated" :release-stage "beta" :ordinal 4 + :description "Tested on the tool/project itself (dogfooding). Reliable in home context." + :evidence-required "active dogfooding; CI integration or equivalent; no known failures in home context" + :minimum-for "beta") + (grade :code "B" :name "Broadly Validated" :release-stage "release-candidate" :ordinal 5 + :description "Tested on at least 6 disparate, unrelated targets." + :evidence-required "list of 6+ diverse targets with test results; evidence of feedback incorporation" + :minimum-for "release-candidate") + (grade :code "A" :name "Field-Proven" :release-stage "stable" :ordinal 6 + :description "Real-world external feedback confirms value. Does no harm in the wild." + :evidence-required "real-world usage data; feedback incorporation evidence; no unresolved harm reports" + :minimum-for "stable")) + (transitions + (promotion :from "X" :to "E" :requirement "Run at least one test. Document results.") + (promotion :from "X" :to "F" :requirement "Evaluate and determine harmful or wasteful.") + (promotion :from "E" :to "D" :requirement "Fix critical failures. Document scope.") + (promotion :from "D" :to "C" :requirement "Dogfood on own project. Fix what breaks.") + (promotion :from "C" :to "B" :requirement "Test on 6+ diverse external targets. Fix what breaks.") + (promotion :from "B" :to "A" :requirement "Ship. Collect external feedback. Demonstrate no harm.") + (demotion :from "A" :to "B" :trigger "External feedback dries up or reveals no longer useful.") + (demotion :from "A" :to "F" :trigger "External feedback reveals component causes harm.") + (demotion :from "B" :to "C" :trigger "Broad validation reveals unfixed failures.") + (demotion :from "C" :to "D" :trigger "Home context changes and component no longer reliable.") + (demotion :from "C" :to "F" :trigger "Dogfooding reveals net negative.") + (demotion :from "D" :to "E" :trigger "Scope narrows to barely functional.") + (demotion :from "any" :to "F" :trigger "Better external alternative makes this pure opportunity cost.")) + (conformance + :rules ( + "Each assessable component MUST have a grade from {X, F, E, D, C, B, A}." + "Each grade above X MUST be supported by evidence per section 4." + "Assessments MUST be recorded in a version-controlled location." + "Assessments MUST be reviewed at least once per release cycle." + "Release stages MUST respect minimum grade thresholds."))) + ; Triaxial Software Development Methodology — the machine-readable axes; + ; the human companion is docs/governance/TSDM.adoc. + (tsdm + :id "tsdm-standard" + :version "1.0.0" + (axes + (axis :ordinal 1 :name "Planning" :levels ("must" "should" "could")) + (axis :ordinal 2 :name "Maintenance" :levels ("corrective" "adaptive" "perfective")) + (axis :ordinal 3 :name "Audit" :levels ("systems" "compliance" "effects"))) + :invariants ( + "Every task MUST map to at least one TSDM coordinate" + "Axis 1 priority governs resource allocation" + "Axis 2 type governs commit categorisation" + "Axis 3 focus governs audit depth"))) + ; rsr-profile — this repo's declared RSR v2.0 capabilities. + ; Written by just repo-init on 2026-11-07. The template's maximal + ; profile was replaced at mint: declare only what this tree carries. + (rsr-profile + :version "1.0.0" + :spec "rsr-criteria-v2" + :declares-against "2.1.1-draft" + ; UNASSIGNED: declare capabilities (or a preset) — see standards + ; .machine_readable/template-capability-gates.toml + :capabilities ()) + ; variant — provenance contract (ADR-0002 shape; ADR-0003 use). + ; Records what this repo was minted from, for re-templating tooling and + ; the drift gate (scripts/check-variant-drift.sh). The mint renders + ; tokens and rewrites files, so most spine files differ from the parent + ; by design, and (normalise) does not yet fold the mint's answers + ; (ADR-0003): the gate is not armed for a minted repo. Measured on a + ; fresh mint (2026-10-20): 101 rendered files differ. The template pin + ; is checked by scripts/check-template-conformance.sh instead. + (variant + :project "atoma" + :schema-version "0.1.0" + :last-updated "2026-11-07" + :parent "hyperpolymath/rsr-template-repo" + ; template tip at mint + :parent-pin "889f7f79aa99ee41f236fe9ee1d4ac13c5f8ac70" + :role "minted-repo" + :stack "unspecified" + :direction "generated-from-core" + (normalise :rules "action-pins self-name") + ; Files a minted repo owns from birth are (paths :diverged …). + (paths + :added () + :removed ("archetypes/" "build/docs-seed/" "build/templates/" "rsr-template-repo_chora.deed") + :diverged ("atoma_chora.deed" "docs/status/ROADMAP.adoc"))) + ; provenance — what this repo was minted FROM. Written once, at mint, + ; by build/just/repo-init.just. Tools that want "what is this repo" read + ; the rest of the deed; tools that want "where did it come from" read this. + (provenance + :minted-at "2026-11-07" + :template-repo "hyperpolymath/rsr-template-repo" + :template-branch "main" + :template-commit "889f7f79aa99ee41f236fe9ee1d4ac13c5f8ac70" + :template-tree "0b6f9661914e8b013ef6832582366e1824e1c434" + ; Contract: branches this repo is EXPECTED to carry beyond the default. + ; Empty means default-only. A mint must never inherit template work + ; branches (coderabbit/, chore/, bot-task or stale branches) — that is + ; how knot-knot received a byte-identical copy of a template work branch + ; with no common ancestor (#203). Enforced by + ; scripts/check-template-conformance.sh. + :extra-branches () + :canon-version "2.1.2" + :criteria-sha256 "6a5aa8857bd0d0d58ef48827938ca17c251b6b854dacf59d306388d61694d82a" + :gates-sha256 "e70efd2f53c9445e30da4baf770366f04a4a84ffd844a01426e587e565b53e6a" + :archetype "" + ; Which minting path actually ran (#201/#203 needed this signal). + :minted-by "repo-init" + :mint-mode "interactive" + ; A non-empty :unassigned list means the mint did not fully render; + ; the validation step below already fails on a leftover token. + (substitutions :rendered 34 :unassigned ())) +) diff --git a/build/container/Containerfile b/build/container/Containerfile index 6dbff802..3cb479e4 100644 --- a/build/container/Containerfile +++ b/build/container/Containerfile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: MPL-2.0 -# {{PROJECT_NAME}} Container Image +# Atoma Container Image # # Multi-stage build template for Chainguard Wolfi base images. # Customise the builder stage for your language and copy the @@ -11,13 +11,13 @@ # svalinn files under build/container/stapeln/ are referenced only as labels. # # Build (engine-agnostic — substitute podman | nerdctl | docker): -# podman build -t {{SERVICE_NAME}}:latest -f build/container/Containerfile . +# podman build -t atoma:latest -f build/container/Containerfile . # # Run: -# podman run -p {{PORT}}:{{PORT}} {{SERVICE_NAME}}:latest +# podman run -p 8080:8080 atoma:latest # # Run with persistent volume: -# podman run -p {{PORT}}:{{PORT}} -v {{SERVICE_NAME}}-data:/data {{SERVICE_NAME}}:latest +# podman run -p 8080:8080 -v atoma-data:/data atoma:latest # # Via the Justfile (auto-detects engine, prefers cerro-torre when present): # just container-build @@ -37,7 +37,7 @@ # COPY Cargo.toml Cargo.lock ./ # COPY src/ ./src/ # RUN cargo build --release -# # Output: /build/target/release/{{SERVICE_NAME}} +# # Output: /build/target/release/atoma # # --- Elixir --- # RUN apk add --no-cache erl27-elixir-1.18 erlang-27 erlang-27-dev git build-base @@ -47,14 +47,14 @@ # ENV MIX_ENV=prod # RUN mix local.hex --force && mix local.rebar --force && \ # mix deps.get --only prod && mix compile && mix release -# # Output: /build/_build/prod/rel/{{SERVICE_NAME}}/ +# # Output: /build/_build/prod/rel/atoma/ # # --- Zig --- # RUN apk add --no-cache zig build-base # COPY build.zig build.zig.zon ./ # COPY src/ ./src/ # RUN zig build -Doptimize=ReleaseFast -# # Output: /build/zig-out/bin/{{SERVICE_NAME}} +# # Output: /build/zig-out/bin/atoma # # Base image: `:latest` is right for a template scaffold (Chainguard rebuilds # Wolfi daily). For PRODUCTION builds, pin by digest for reproducibility/supply- @@ -82,13 +82,13 @@ COPY . . FROM cgr.dev/chainguard/wolfi-base:latest # OCI image labels (compatible with cerro-torre .ctp bundle metadata) -LABEL org.opencontainers.image.title="{{PROJECT_NAME}}" \ - org.opencontainers.image.description="{{PROJECT_DESCRIPTION}}" \ - org.opencontainers.image.url="https://{{FORGE}}/{{OWNER}}/{{REPO}}" \ - org.opencontainers.image.source="https://{{FORGE}}/{{OWNER}}/{{REPO}}" \ - org.opencontainers.image.vendor="{{OWNER}}" \ - org.opencontainers.image.licenses="{{LICENSE}}" \ - org.opencontainers.image.authors="{{AUTHOR}} <{{AUTHOR_EMAIL}}>" \ +LABEL org.opencontainers.image.title="Atoma" \ + org.opencontainers.image.description="Experimental source-bound program verification for a closed Zig subset" \ + org.opencontainers.image.url="https://github.com/hyperpolymath/atoma" \ + org.opencontainers.image.source="https://github.com/hyperpolymath/atoma" \ + org.opencontainers.image.vendor="hyperpolymath" \ + org.opencontainers.image.licenses="MPL-2.0" \ + org.opencontainers.image.authors="Jonathan D.A. Jewell " \ dev.cerrotorre.manifest="build/container/stapeln/manifest.toml" \ dev.cerrotorre.gatekeeper="build/container/stapeln/.gatekeeper.yaml" \ dev.stapeln.compose="build/container/stapeln/compose.toml" @@ -109,9 +109,9 @@ WORKDIR /app # TODO: Copy compiled binary/release from builder stage. # Examples: -# COPY --from=builder /build/target/release/{{SERVICE_NAME}} /app/{{SERVICE_NAME}} -# COPY --from=builder /build/_build/prod/rel/{{SERVICE_NAME}} /app/release/ -# COPY --from=builder /build/zig-out/bin/{{SERVICE_NAME}} /app/{{SERVICE_NAME}} +# COPY --from=builder /build/target/release/atoma /app/atoma +# COPY --from=builder /build/_build/prod/rel/atoma /app/release/ +# COPY --from=builder /build/zig-out/bin/atoma /app/atoma # Copy entrypoint script COPY build/container/entrypoint.sh /app/entrypoint.sh @@ -132,7 +132,7 @@ RUN chown -R appuser:appuser /app # Environment variables — customise for your application ENV APP_HOST=[::] -ENV APP_PORT={{PORT}} +ENV APP_PORT=8080 ENV APP_LOG_FORMAT=json ENV APP_DATA_DIR=/data @@ -143,7 +143,7 @@ VOLUME ["/data"] USER appuser # Expose the application port -EXPOSE {{PORT}} +EXPOSE 8080 # Health check — the application must respond 2xx at /health HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ diff --git a/build/container/README.adoc b/build/container/README.adoc index c9f5b2df..4ef36f68 100644 --- a/build/container/README.adoc +++ b/build/container/README.adoc @@ -1,6 +1,6 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell -= {{PROJECT_NAME}} Containerisation += Atoma Containerisation :toc: left :toclevels: 3 :sectnums: @@ -140,7 +140,7 @@ The sovereign tier wires together the stapeln container stack: (Kennel / Yard / Hunt). The request path in the full stack is: -`svalinn` (edge) → `rokur` (secrets gate) → `{{SERVICE_NAME}}` (app). +`svalinn` (edge) → `rokur` (secrets gate) → `atoma` (app). == Initialise diff --git a/build/container/compose.yaml b/build/container/compose.yaml index cd30b335..4cc16734 100644 --- a/build/container/compose.yaml +++ b/build/container/compose.yaml @@ -1,6 +1,6 @@ # SPDX-License-Identifier: MPL-2.0 # -# {{PROJECT_NAME}} — portable compose stack (Tier B) +# Atoma — portable compose stack (Tier B) # # This is the runtime-agnostic, OCI compose-spec file. It works unchanged with: # podman compose -f build/container/compose.yaml up -d @@ -21,23 +21,23 @@ # ────────────────────────────────────────────────────────────────────── # Primary application service # ────────────────────────────────────────────────────────────────────── - "{{SERVICE_NAME}}": { + "atoma": { build: { context: "..", dockerfile: "build/container/Containerfile", }, - image: "{{REGISTRY}}/{{SERVICE_NAME}}:latest", + image: "ghcr.io/hyperpolymath/atoma:latest", ports: [ - "{{PORT}}:{{PORT}}", + "8080:8080", ], environment: { APP_HOST: "[::]", - APP_PORT: "{{PORT}}", + APP_PORT: "8080", APP_LOG_FORMAT: "json", APP_DATA_DIR: "/data", }, volumes: [ - "{{SERVICE_NAME}}-data:/data", + "atoma-data:/data", ], restart: "unless-stopped", healthcheck: { @@ -45,7 +45,7 @@ "CMD", "curl", "-sf", - "http://localhost:{{PORT}}/health", + "http://localhost:8080/health", ], interval: "30s", timeout: "5s", @@ -61,7 +61,7 @@ rokur: { image: "ghcr.io/hyperpolymath/rokur:latest", environment: { - ROKUR_BACKEND: "http://{{SERVICE_NAME}}:{{PORT}}", + ROKUR_BACKEND: "http://atoma:8080", ROKUR_LISTEN: "[::]:8081", ROKUR_REQUIRED_SECRETS: "", # comma-separated env names that MUST be set ROKUR_AUDIT_LOG: "/var/log/rokur/audit.jsonl", @@ -74,7 +74,7 @@ "rokur-audit:/var/log/rokur", ], depends_on: { - "{{SERVICE_NAME}}": { + "atoma": { condition: "service_healthy", }, }, @@ -128,7 +128,7 @@ }, }, volumes: { - "{{SERVICE_NAME}}-data": null, + "atoma-data": null, rokur-audit: null, }, } diff --git a/build/container/entrypoint.sh b/build/container/entrypoint.sh index a7a03699..17ed49e2 100755 --- a/build/container/entrypoint.sh +++ b/build/container/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/sh # SPDX-License-Identifier: MPL-2.0 -# {{PROJECT_NAME}} container entrypoint +# Atoma container entrypoint # # Handles signal propagation, startup logging, and health check # preparation before exec-ing into the main application process. @@ -15,7 +15,7 @@ set -e # when Podman sends stop signals (e.g. `podman stop`, `selur-compose down`). cleanup() { - echo "Received shutdown signal — stopping {{SERVICE_NAME}}..." + echo "Received shutdown signal — stopping atoma..." # If the main process is backgrounded, kill it here: # kill "$MAIN_PID" 2>/dev/null || true # wait "$MAIN_PID" 2>/dev/null || true @@ -27,9 +27,9 @@ trap cleanup TERM INT # Startup logging # --------------------------------------------------------------------------- -echo "Starting {{SERVICE_NAME}}..." +echo "Starting atoma..." echo " Host: ${APP_HOST:-[::]}" -echo " Port: ${APP_PORT:-{{PORT}}}" +echo " Port: ${APP_PORT:-8080}" echo " Data: ${APP_DATA_DIR:-/data}" echo " Log: ${APP_LOG_FORMAT:-json}" @@ -56,8 +56,8 @@ fi # # TODO: Replace the command below with your application binary. # Examples: -# exec /app/{{SERVICE_NAME}} -# exec /app/release/bin/{{SERVICE_NAME}} start -# exec /app/{{SERVICE_NAME}} serve --host "${APP_HOST}" --port "${APP_PORT}" +# exec /app/atoma +# exec /app/release/bin/atoma start +# exec /app/atoma serve --host "${APP_HOST}" --port "${APP_PORT}" exec "$@" diff --git a/build/container/stapeln/.gatekeeper.yaml b/build/container/stapeln/.gatekeeper.yaml index 46afaa1a..a7e9be2d 100644 --- a/build/container/stapeln/.gatekeeper.yaml +++ b/build/container/stapeln/.gatekeeper.yaml @@ -1,6 +1,6 @@ # SPDX-License-Identifier: MPL-2.0 # -# Svalinn gatekeeper policy for {{PROJECT_NAME}} +# Svalinn gatekeeper policy for Atoma # # Controls which operations are permitted through the edge gateway. # This template provides moderate security defaults — not wide-open test @@ -90,9 +90,9 @@ # Only accept .ctp bundles signed by these keys. trusted_signers: [ { - key_id: "{{SERVICE_NAME}}-release", + key_id: "atoma-release", algorithm: "Ed25519", - public_key_file: "/etc/svalinn/keys/{{SERVICE_NAME}}-release.pub", + public_key_file: "/etc/svalinn/keys/atoma-release.pub", }, ], # Require these attestations on all .ctp bundles. diff --git a/build/container/stapeln/compose.toml b/build/container/stapeln/compose.toml index db42fb99..d1171df5 100644 --- a/build/container/stapeln/compose.toml +++ b/build/container/stapeln/compose.toml @@ -1,6 +1,6 @@ # SPDX-License-Identifier: MPL-2.0 # -# {{PROJECT_NAME}} selur-compose configuration +# Atoma selur-compose configuration # # Orchestrates the container stack as verified container bundles (.ctp). # Uses selur zero-copy IPC between services on the same host. @@ -10,7 +10,7 @@ # selur-compose up --detach # Start in background # selur-compose verify # Verify all .ctp signatures # selur-compose ps # Check status -# selur-compose logs -f {{SERVICE_NAME}} # Stream logs +# selur-compose logs -f atoma # Stream logs # selur-compose down # Stop all services # # Fallback (when selur is not installed): this TOML is selur-native and is @@ -25,18 +25,18 @@ version = "1.0" # ============================================================================ # Primary application service -[services.{{SERVICE_NAME}}] -image = "{{REGISTRY}}/{{SERVICE_NAME}}:latest.ctp" -ports = ["{{PORT}}:{{PORT}}"] +[services.atoma] +image = "ghcr.io/hyperpolymath/atoma:latest.ctp" +ports = ["8080:8080"] environment = { APP_HOST = "[::]", - APP_PORT = "{{PORT}}", + APP_PORT = "8080", APP_LOG_FORMAT = "json", APP_DATA_DIR = "/data", } -volumes = ["{{SERVICE_NAME}}-data:/data"] +volumes = ["atoma-data:/data"] restart = "always" -healthcheck = { test = "curl -sf http://localhost:{{PORT}}/health", interval = "30s", timeout = "5s", retries = 3 } +healthcheck = { test = "curl -sf http://localhost:8080/health", interval = "30s", timeout = "5s", retries = 3 } # Rokur secrets gate: refuses to start (and refuses to proxy) unless the # declared secrets are present; emits a structured audit log of every access. @@ -45,14 +45,14 @@ healthcheck = { test = "curl -sf http://localhost:{{PORT}}/health", interval = " image = "ghcr.io/hyperpolymath/rokur:latest.ctp" ports = ["8081:8081"] environment = { - ROKUR_BACKEND = "http://{{SERVICE_NAME}}:{{PORT}}", + ROKUR_BACKEND = "http://atoma:8080", ROKUR_LISTEN = "[::]:8081", ROKUR_REQUIRED_SECRETS = "", ROKUR_AUDIT_LOG = "/var/log/rokur/audit.jsonl", ROKUR_LOG_FORMAT = "json", } volumes = ["rokur-audit:/var/log/rokur"] -depends_on = ["{{SERVICE_NAME}}"] +depends_on = ["atoma"] restart = "always" healthcheck = { test = "curl -sf http://localhost:8081/health", interval = "30s", timeout = "5s", retries = 3 } @@ -75,7 +75,7 @@ healthcheck = { test = "curl -sf http://localhost:80/health", interval = "30s", # Volumes # ============================================================================ -[volumes.{{SERVICE_NAME}}-data] +[volumes.atoma-data] driver = "local" [volumes.rokur-audit] diff --git a/build/container/stapeln/ct-build.sh b/build/container/stapeln/ct-build.sh index c825b844..ed61b166 100755 --- a/build/container/stapeln/ct-build.sh +++ b/build/container/stapeln/ct-build.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # SPDX-License-Identifier: MPL-2.0 # -# {{PROJECT_NAME}} — Cerro Torre build, sign, and verify pipeline +# Atoma — Cerro Torre build, sign, and verify pipeline # # Builds the container image, packages it as a verified .ctp bundle, # signs it with Ed25519, and verifies the result. Gracefully degrades @@ -18,8 +18,8 @@ # CT_KEY_ID=my-key ./ct-build.sh # Use specific signing key # # Environment variables: -# CT_KEY_ID — Signing key identifier (default: {{SERVICE_NAME}}-release) -# CT_REGISTRY — OCI registry to push to (default: {{REGISTRY}}) +# CT_KEY_ID — Signing key identifier (default: atoma-release) +# CT_REGISTRY — OCI registry to push to (default: ghcr.io/hyperpolymath) # CT_TAG — Image tag (default: latest) set -euo pipefail @@ -44,15 +44,15 @@ for arg in "$@"; do fi done -CT_KEY_ID="${CT_KEY_ID:-{{SERVICE_NAME}}-release}" -CT_REGISTRY="${CT_REGISTRY:-{{REGISTRY}}}" +CT_KEY_ID="${CT_KEY_ID:-atoma-release}" +CT_REGISTRY="${CT_REGISTRY:-ghcr.io/hyperpolymath}" CT_TAG="${CT_TAG:-latest}" -IMAGE_NAME="{{SERVICE_NAME}}" +IMAGE_NAME="atoma" FULL_IMAGE="${CT_REGISTRY}/${IMAGE_NAME}:${CT_TAG}" CTP_FILE="${SCRIPT_DIR}/${IMAGE_NAME}-${CT_TAG}.ctp" -echo "=== {{PROJECT_NAME}} Cerro Torre Build Pipeline ===" +echo "=== Atoma Cerro Torre Build Pipeline ===" echo " Image: ${FULL_IMAGE}" echo " Key: ${CT_KEY_ID}" echo " Bundle: ${CTP_FILE}" diff --git a/build/container/stapeln/deploy.k9.ncl.in b/build/container/stapeln/deploy.k9.ncl.in index 4a25720f..34ae48ca 100644 --- a/build/container/stapeln/deploy.k9.ncl.in +++ b/build/container/stapeln/deploy.k9.ncl.in @@ -1,6 +1,6 @@ K9! # SPDX-License-Identifier: MPL-2.0 -# deploy.k9.ncl — {{PROJECT_NAME}} deployment component (Hunt level) +# deploy.k9.ncl — Atoma deployment component (Hunt level) # # k9-svc deployment component, K9 contract v1.0.0 (D173). Shipped as # deploy.k9.ncl.in because a template is not a component: `just repo-init` @@ -25,9 +25,9 @@ K9! component_type = "deployment", metadata = { - name = "{{SERVICE_NAME}}-deploy", - version = "{{VERSION}}", - description = "{{PROJECT_NAME}} deployment component (Hunt level)", + name = "atoma-deploy", + version = "0.1.0", + description = "Atoma deployment component (Hunt level)", }, # Target environment (extension field; contract §5.5). @@ -66,9 +66,9 @@ K9! side_effects = [ "spawns build/container/stapeln/ct-build.sh, which builds the image and packs and signs a .ctp bundle beside it", - "pulls and pushes {{REGISTRY}}/{{SERVICE_NAME}} images", - "starts, updates and stops the {{SERVICE_NAME}} stack with selur-compose, else podman compose over build/container/compose.yaml", - "publishes the service on port {{PORT}}", + "pulls and pushes ghcr.io/hyperpolymath/atoma images", + "starts, updates and stops the atoma stack with selur-compose, else podman compose over build/container/compose.yaml", + "publishes the service on port 8080", ], # Ed25519, presence only (K9-S009). The signing step adds payload_hash @@ -105,8 +105,8 @@ K9! # Container configuration container = { - image = "{{REGISTRY}}/{{SERVICE_NAME}}", - port = {{PORT}}, + image = "ghcr.io/hyperpolymath/atoma", + port = 8080, health_check = "/health", readiness_check = "/ready", }, @@ -125,7 +125,7 @@ K9! pre_deploy = m%" #!/bin/sh set -eu -echo "K9: Pre-deployment validation for {{SERVICE_NAME}}..." +echo "K9: Pre-deployment validation for atoma..." cd build/container/stapeln if command -v selur-compose >/dev/null 2>&1; then selur-compose verify @@ -140,7 +140,7 @@ echo "K9: Validation passed." #!/bin/sh set -eu ENV="${1:-dev}" -echo "K9: Deploying {{SERVICE_NAME}} to $ENV environment..." +echo "K9: Deploying atoma to $ENV environment..." cd build/container/stapeln ./ct-build.sh if command -v selur-compose >/dev/null 2>&1; then @@ -155,7 +155,7 @@ echo "K9: Deployment to $ENV complete." rollback = m%" #!/bin/sh set -eu -echo "K9: Rolling back {{SERVICE_NAME}} deployment..." +echo "K9: Rolling back atoma deployment..." cd build/container/stapeln if command -v selur-compose >/dev/null 2>&1; then selur-compose down diff --git a/build/container/stapeln/manifest.toml b/build/container/stapeln/manifest.toml index f55fcb3a..52a74402 100644 --- a/build/container/stapeln/manifest.toml +++ b/build/container/stapeln/manifest.toml @@ -1,27 +1,27 @@ # SPDX-License-Identifier: MPL-2.0 # -# Cerro Torre manifest for {{PROJECT_NAME}} .ctp bundle +# Cerro Torre manifest for Atoma .ctp bundle # # This manifest describes the container image for verified # container packaging. Used by `ct pack` to create .ctp bundles. [metadata] -name = "{{SERVICE_NAME}}" -version = "{{VERSION}}" +name = "atoma" +version = "0.1.0" revision = 1 -summary = "{{PROJECT_DESCRIPTION}}" +summary = "Experimental source-bound program verification for a closed Zig subset" description = """ -{{PROJECT_NAME}} — containerised service packaged as a verified +Atoma — containerised service packaged as a verified cerro-torre .ctp bundle with Ed25519 signing and full provenance tracking. """ -license = "{{LICENSE}}" -homepage = "https://{{FORGE}}/{{OWNER}}/{{REPO}}" -maintainer = "{{AUTHOR}} <{{EMAIL}}>" +license = "MPL-2.0" +homepage = "https://github.com/hyperpolymath/atoma" +maintainer = "Jonathan D.A. Jewell " [provenance] -upstream = "https://{{FORGE}}/{{OWNER}}/{{REPO}}" -import_date = {{CURRENT_DATE}}T00:00:00Z +upstream = "https://github.com/hyperpolymath/atoma" +import_date = 2026-11-07T00:00:00Z [dependencies] runtime = ["ca-certificates", "curl"] @@ -32,10 +32,10 @@ system = "podman" [build.environment] APP_HOST = "[::]" -APP_PORT = "{{PORT}}" +APP_PORT = "8080" [outputs] -primary = "{{SERVICE_NAME}}" +primary = "atoma" split = [] [attestations] @@ -54,7 +54,7 @@ drop = ["ALL"] add = ["NET_BIND_SERVICE"] [security.network] -listen_tcp = [{{PORT}}] +listen_tcp = [8080] [security.filesystem] read = ["/app/", "/data/"] diff --git a/build/container/stapeln/rokur.toml b/build/container/stapeln/rokur.toml index 361c1ea2..d2722bf9 100644 --- a/build/container/stapeln/rokur.toml +++ b/build/container/stapeln/rokur.toml @@ -1,6 +1,6 @@ # SPDX-License-Identifier: MPL-2.0 # -# Rokur secrets-gate configuration for {{PROJECT_NAME}} +# Rokur secrets-gate configuration for Atoma # # Rokur (stapeln container stack) is a secrets-management gate: a small # Deno service that sits in front of the application and refuses to pass @@ -16,8 +16,8 @@ # # or, in the stack, via compose (see compose.toml / compose.yaml) [metadata] -name = "{{SERVICE_NAME}}-gate" -version = "{{VERSION}}" +name = "atoma-gate" +version = "0.1.0" # ============================================================================ # Listener / routing (env: ROKUR_LISTEN, ROKUR_BACKEND) @@ -27,7 +27,7 @@ version = "{{VERSION}}" # Address rokur listens on (inside the container). listen = "[::]:8081" # The upstream application rokur fronts once the gate is satisfied. -backend = "http://{{SERVICE_NAME}}:{{PORT}}" +backend = "http://atoma:8080" # Health/readiness endpoints rokur exposes for vordr / orchestrators. health_path = "/health" ready_path = "/ready" diff --git a/build/container/stapeln/vordr.toml b/build/container/stapeln/vordr.toml index 90084b49..c9914107 100644 --- a/build/container/stapeln/vordr.toml +++ b/build/container/stapeln/vordr.toml @@ -1,6 +1,6 @@ # SPDX-License-Identifier: MPL-2.0 # -# Vordr runtime monitoring configuration for {{PROJECT_NAME}} +# Vordr runtime monitoring configuration for Atoma # # Vordr watches container health, detects crashes, tracks resource usage, # and emits structured logs. It runs alongside the application stack and @@ -12,8 +12,8 @@ # vordr report [metadata] -name = "{{SERVICE_NAME}}" -version = "{{VERSION}}" +name = "atoma" +version = "0.1.0" # ============================================================================ # Health Monitoring @@ -25,13 +25,13 @@ version = "{{VERSION}}" [health] # Primary health endpoint — must return 2xx. -endpoint = "http://localhost:{{PORT}}/health" +endpoint = "http://localhost:8080/health" interval = "30s" timeout = "5s" failure_threshold = 3 # Readiness endpoint — checked during startup and after restarts. -readiness_endpoint = "http://localhost:{{PORT}}/ready" +readiness_endpoint = "http://localhost:8080/ready" readiness_timeout = "10s" # Action on failure: "alert" (log + notify) or "restart" (alert + restart). @@ -96,7 +96,7 @@ format = "json" level = "info" # Write vordr logs to stdout (captured by Podman) and optionally to file. output = "stdout" -# file = "/var/log/vordr/{{SERVICE_NAME}}.log" +# file = "/var/log/vordr/atoma.log" # ============================================================================ # Notifications (optional) @@ -111,7 +111,7 @@ output = "stdout" # on = ["failure", "recovery", "resource_critical"] # [notifications.email] -# to = "{{EMAIL}}" -# from = "vordr@{{SERVICE_NAME}}.local" +# to = "j.d.a.jewell@open.ac.uk" +# from = "vordr@atoma.local" # smtp = "smtp://localhost:25" # on = ["failure", "resource_critical"] diff --git a/build/docs-seed/README.adoc b/build/docs-seed/README.adoc deleted file mode 100644 index c4e0266d..00000000 --- a/build/docs-seed/README.adoc +++ /dev/null @@ -1,87 +0,0 @@ -// SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) Jonathan D.A. Jewell -// SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) -= Documentation Template -:revdate: 2026-05-26 -:status: SEED - -This directory is the *minimum heavy-wiki seed* for a hyperpolymath repo. - -[NOTE] -==== -*This is NOT a duplicate of `docs/`.* `docs/` holds *this* template's own, -fully-written documentation; `build/docs-seed/` is the un-filled *seed* (with -`{{PLACEHOLDER}}` tokens and illustrative example paths) that is copied into a -*newly scaffolded* repo's `docs/`. Example paths inside `build/docs-seed/` -describe a hypothetical downstream project, so they intentionally do not resolve -against this template's tree (see `.hypatia-ignore` for the matching SD022 -carve-out). -==== - -== How adoption works - -`just repo-init` does the first two steps for you. It was previously a manual -four-step procedure that nothing automated, with the result that minted repos -carried the un-filled seed *and* the spine's own rendered docs side by side. - -. **Automatic** — repo-init copies this seed over `docs/` before substitution. - It is an *overlay*: these files win on collision, and everything else the - spine ships under `docs/` survives (notably `docs/governance/` and - `docs/legal/`, which `build/just/validate.just` requires). This README is not - copied. The seed directory is then removed from your repo alongside - `archetypes/` and `build/templates/`. -. **Automatic** — `{{PROJECT_NAME}}`, `{{OWNER}}`, `{{AUTHOR}}`, - `{{AUTHOR_EMAIL}}` and `{{CURRENT_YEAR}}` are rendered by the same - substitution pass as the rest of the tree. -. **Yours to do** — delete any section that genuinely does not apply. Do not - leave empty scaffolding: the 2026-05-26 doc-debt audit counted 61 estate - repos with empty `docs/` dirs as its own category of debt. -. **Yours to do** — add repo-specific sections. - -== What's in here - -[cols="1,2", options="header"] -|=== -| File | Purpose - -| `README.adoc` | This file. NOT copied into your repo — it documents the seed itself. -| `architecture.adoc` | System overview, component diagram, data flow. -| `usage.adoc` | End-user / consumer perspective. How to invoke / consume / depend on this repo. -| `contributing.adoc` | Developer perspective. Local-dev setup, test running, PR conventions. -| `troubleshooting.adoc` | FAQ-style. Known failure modes + recovery paths. -| `decisions/0001-template.adoc` | ADR (Architecture Decision Record) template. Copy → `0002-...`, `0003-...` etc. -|=== - -== Why these five sections - -The 2026-05-26 estate documentation-debt audit -(link:https://github.com/hyperpolymath/standards/blob/main/docs/audits/2026-05-26-estate-documentation-debt.md[standards#197]) -identified four canonical perspectives every repo should answer: - -. **What is it** — README answers (lives at repo root, not here). -. **How is it built** — `architecture.adoc`. -. **How do I use it** — `usage.adoc`. -. **How do I help build it** — `contributing.adoc`. -. **What goes wrong** — `troubleshooting.adoc`. - -ADRs are the long-running historical record — they don't fit any of -the above but are essential for explaining *why* a particular shape -was chosen. - -== What's intentionally NOT in here - -This seed deliberately omits: - -* `proof-debt.md` — only relevant to proof-bearing repos; see - link:https://github.com/hyperpolymath/standards/blob/main/docs/TRUSTED-BASE-REDUCTION-POLICY.adoc[standards#203]. -* `CHANGELOG.md` — generated automatically by - link:https://github.com/hyperpolymath/standards/blob/main/.github/workflows/changelog-reusable.yml[`changelog-reusable.yml`] - (standards#206), don't write by hand. -* `tech-debt-YYYY-MM-DD.md` — generated by the periodic estate audit. - -== "Heavily-developed wiki" bar (audit definition) - -A repo meets the audit's bar when `docs/` contains ≥ 10 substantive -markdown / asciidoc / rst files with topical organisation. Adopting -this seed gets you to ~5 — add repo-specific deep-dives (typically -one per major component or invariant) to clear the bar. diff --git a/build/docs-seed/architecture.adoc b/build/docs-seed/architecture.adoc deleted file mode 100644 index 685b0244..00000000 --- a/build/docs-seed/architecture.adoc +++ /dev/null @@ -1,79 +0,0 @@ -// SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) Jonathan D.A. Jewell -// SPDX-FileCopyrightText: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> -= Architecture — {{PROJECT_NAME}} -:revdate: {{CURRENT_YEAR}}-MM-DD - -== System overview - -One paragraph: what this project does and what it does not do. State the -*invariant* — the property that, if violated, would make the whole project -pointless. Future maintainers will read this paragraph first. - -== Component diagram - -Replace this section with an ASCII or Mermaid diagram. Keep it under 20 -lines — anything bigger belongs in `architecture/`. - -[source] ----- -+------------------+ +------------------+ -| Component A | ---> | Component B | -+------------------+ +------------------+ - | - v -+------------------+ -| Component C | -+------------------+ ----- - -== Data flow - -For each external input, describe: - -* **Source**: where it comes from. -* **Validation**: what guarantees we enforce on entry. -* **Transformation**: high-level processing stages. -* **Sink**: where the result goes. - -== Key invariants - -Enumerate the load-bearing invariants of the system. Each should have: - -. A one-line statement. -. The code location(s) that enforce it. -. The failure mode if the invariant is violated. - -Example: - -[cols="1,2,2,2", options="header"] -|=== -| # | Invariant | Enforced at | Failure mode - -| 1 -| All HTTP requests carry a valid `X-Request-ID`. -| `src/request_id.rs` -| Logs become unjoinable; correlation breaks. - -| 2 -| The output buffer is always flushed before exit. -| `src/main.rs:88-92` (Drop impl) -| Last ~16KB of log lost on crash. -|=== - -== Dependencies - -* **Internal**: list other hyperpolymath repos this depends on. -* **External**: SHA-pinned (see `Cargo.lock` / `.lock` / etc.). -* **Build-time**: tools required to build (just, , cargo, …). - -== Out of scope - -Explicit non-goals. Things we deliberately do *not* do, with a one-line -reason for each. This section saves more time than the rest combined. - -== See also - -* link:./usage.adoc[Usage] — consumer perspective. -* link:./contributing.adoc[Contributing] — developer setup. -* link:./decisions/[ADRs] — historical record of why this shape. diff --git a/build/guix.scm b/build/guix.scm index adbe8c31..1b761231 100755 --- a/build/guix.scm +++ b/build/guix.scm @@ -1,9 +1,9 @@ ;; SPDX-License-Identifier: MPL-2.0 ;; SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) ;; -;; guix.scm — rsr-template-repo as a Guix package. +;; guix.scm — atoma as a Guix package. ;; -;; guix build -f build/guix.scm # installs the source tree to share/rsr-template-repo +;; guix build -f build/guix.scm # installs the source tree to share/atoma ;; guix shell -D -f build/guix.scm # the full development toolchain ;; ;; This is a SOURCE package, and says so: a hermetic compiled build needs this @@ -28,17 +28,17 @@ '(".git" "target" ".eval" "node_modules" "_build" "deps" "zig-out" ".zig-cache" "dist-newstyle")) (package - (name "rsr-template-repo") + (name "atoma") (version "0.1.0") - (source (local-file %source-dir "rsr-template-repo-checkout" + (source (local-file %source-dir "atoma-checkout" #:recursive? #t #:select? (lambda (file stat) (not (member (basename file) %ignored))))) (build-system copy-build-system) - (arguments (list #:install-plan #~'(("." "share/rsr-template-repo/")))) + (arguments (list #:install-plan #~'(("." "share/atoma/")))) (native-inputs (map spec->input (list "git" "bash" "coreutils" "nss-certs" "just" "mise" "shellcheck" "chez-scheme" "gmp" "gcc-toolchain" "zig"))) - (home-page "https://github.com/hyperpolymath/rsr-template-repo") + (home-page "https://github.com/hyperpolymath/atoma") (synopsis "Rhodium Standard Repository template") (description "The estate's repository template: the RSR layout, an Idris2 ABI seam with a Zig FFI, CI gates, and the provisioning set (launcher, Justfile, diff --git a/build/just/groove.just b/build/just/groove.just index 2b2d7ae5..42f48f4d 100644 --- a/build/just/groove.just +++ b/build/just/groove.just @@ -78,8 +78,8 @@ verify-template: fi # Check for template defaults still present - if grep -q 'rsr-template-repo' Justfile 2>/dev/null; then - echo "⚠ Justfile still references 'rsr-template-repo' — update project name" + if grep -q 'atoma' Justfile 2>/dev/null; then + echo "⚠ Justfile still references 'atoma' — update project name" FOUND=1 fi diff --git a/build/just/provision-lib.sh b/build/just/provision-lib.sh index 1ceaaa8d..62c8997c 100755 --- a/build/just/provision-lib.sh +++ b/build/just/provision-lib.sh @@ -51,7 +51,7 @@ have() { command -v "$1" >/dev/null 2>&1; } # Where this repository keeps each part of the set. A file sits at the root only # when something needs it there (launcher.sh, Justfile, mise.toml, mise.lock); # the Guix trio and the warm-ups follow the layout the repository already has -# (rsr-template-repo keeps build/guix.scm and docs/onboarding/llm-warmup-*.adoc). +# (atoma keeps build/guix.scm and docs/onboarding/llm-warmup-*.adoc). # This is the ONE answer: provision-check.sh asks it through `guix-dir` and # `set-files` rather than keeping its own copy. guix_dir() { if [ -f build/guix.scm ]; then echo build; else echo .; fi; } @@ -97,7 +97,7 @@ ARCHETYPE="$(deed archetype "")" # --------------------------------------------------------------------------- # Language detection. Markers at the root or one level down (workspaces). The # estate ABI/FFI pattern nests deeper: Idris2 to two levels down (src/abi/*.ipkg), -# Zig to three (ffi/zig/build.zig, and rsr-template-repo's src/interface/ffi/build.zig: +# Zig to three (ffi/zig/build.zig, and atoma's src/interface/ffi/build.zig: # 74 repos have their only build.zig at that depth, measured 2026-09-30). # Order matters only for display. `docs` is reported when nothing else is. # Print the first path matching glob $1 within find depth $2 (default 2), diff --git a/build/manifest.scm b/build/manifest.scm index a05df9c9..d6b38f69 100644 --- a/build/manifest.scm +++ b/build/manifest.scm @@ -1,7 +1,7 @@ ;; SPDX-License-Identifier: MPL-2.0 ;; SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) ;; -;; manifest.scm — the Guix development shell for rsr-template-repo. +;; manifest.scm — the Guix development shell for atoma. ;; ;; guix shell -m manifest.scm # or: just dev-shell ;; guix time-machine -C channels.scm -- shell -m manifest.scm # the pinned Guix diff --git a/build/templates/ROADMAP.adoc.in b/build/templates/ROADMAP.adoc.in deleted file mode 100644 index 3a465b16..00000000 --- a/build/templates/ROADMAP.adoc.in +++ /dev/null @@ -1,23 +0,0 @@ -// SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) Jonathan D.A. Jewell -= {{PROJECT_NAME}} Roadmap - -== Current Status - -Initial development phase. - -== Milestones - -=== v0.1.0 - Foundation -* [ ] Core functionality -* [ ] Basic documentation -* [ ] CI/CD pipeline - -=== v1.0.0 - Stable Release -* [ ] Full feature set -* [ ] Comprehensive tests -* [ ] Production ready - -== Future Directions - -_To be determined based on community feedback._ diff --git a/build/templates/identity.deed.in b/build/templates/identity.deed.in deleted file mode 100644 index 60caf7b0..00000000 --- a/build/templates/identity.deed.in +++ /dev/null @@ -1,96 +0,0 @@ - ; >>> repo-identity - ; Written by `just repo-init` from build/templates/identity.deed.in, in - ; place of the block the template repo ships (template issue #209). It replaces - ; descriptiles/CLADE.a2ml and ECOSYSTEM.a2ml; the mapping is standards - ; 1-formats/deed/mappings/clade-to-repo-deed.adoc and - ; meta-ecosystem-to-repo-deed.adoc. - ; - ; THE UUID IS DERIVED, NOT ALLOCATED, NOT INVENTED. It is not stored: it is - ; uuid5(namespace = URL, name = the header :repo-uuid string) - ; and anyone can recompute it (gv-clade-index: - ; docs/SPEC-clade-verisim-portal.adoc §Identity Model): - ; uuidgen --sha1 --namespace @url --name "{{FORGE}}/{{OWNER}}/{{REPO}}" - ; The owner is part of the name, so part of the identity: record the owner - ; that is true today, and re-derive if the repo ever moves. - ; - ; CHOOSE A CLADE. A CLOSED TAXONOMY OF 12 CATEGORIES, NOT AN ABBREVIATION - ; SCHEME: the two letters abbreviate the clade's name, never your repo's. - ; fv Formal Verification & Proofs provable correctness, dependent types, theorem proving - ; nl Nextgen Languages compilers, runtimes, language tooling - ; rm Repo Management & Tooling scaffolding, graph analysis, bots, templates - ; gv Governance & Standards licensing, compliance, policy enforcement - ; db Databases database engines, query languages, storage - ; ap Applications end-user apps, web, desktop, services - ; ix Infrastructure & Cloud containers, deployment, sysadmin - ; dx Developer Ecosystem dev tools, package managers, editors, bindings - ; pt Protocols & Interop internet standards, protocol implementations - ; ax AI & Neurosymbolic ML, neural proof synthesis, AI governance - ; gm Games & Interactive game engines, interactive experiences - ; sc Security scanning, vulnerability management, access control - ; paint-type once chose `pt` reading it as "PainT-type" (an image editor is - ; `ap`); gossamer chose `gv` reading it as "Graphical/Visual" (`gv` is - ; GoVernance). Both codes were valid, so every check passed. - ; HOW TO CHOOSE: the primary clade reflects the project's core value - ; proposition, not its implementation. A game written in Idris2 is `gm`. - ; Set BOTH :primary and :primary-name, and make them agree; then set - ; :prefixed-name to "-{{REPO}}". `just validate-rsr` fails while - ; :primary is UNASSIGNED. That is deliberate: an unchosen clade must never - ; look like a chosen one. - ; - ; REGISTRATION IS NOT DERIVATION. Registering means an entry in - ; gv-clade-index verisim/seed/repos.a2ml. It is outward-facing and it is the - ; OWNER's act; an agent must not do it. - (identity - :primary-forge github - :owner "{{OWNER}}" - :prefixed-name "UNASSIGNED-{{REPO}}") - (clade - :primary UNASSIGNED - :primary-name "UNASSIGNED" - :secondary () - :assigned "{{CURRENT_DATE}}" - :rationale "") - (forges - :github "{{OWNER}}/{{REPO}}") - ; :type is one of standalone monorepo monorepo-child inflated deflated hub - ; satellite. A hub COORDINATES an ecosystem family; a satellite is - ; coordinated by one and keeps :parent "" (parent names a monorepo parent, - ; never the coordinating hub). - (lineage - :type standalone - :parent "" - :born "{{CURRENT_DATE}}" - :previous-names () - :instantiated-from "rsr-template-repo") - ; :phase is one of reserved incubating active dormant merged superseded - ; archived extinct. A repo created today has not proven anything yet. - (status - :phase incubating - :since "{{CURRENT_DATE}}" - :present #t - :aliases () - :merged-into "" - :superseded-by "" - :successors () - :ended "" - (history - (entry :phase incubating :since "{{CURRENT_DATE}}" :note "created from rsr-template-repo; clade not yet chosen; not yet registered"))) - ; :level is one of experimental alpha beta production lts (standards - ; 1-formats/deed/vocabulary/maturity.adoc). - (maturity - :level experimental - :since "{{CURRENT_DATE}}") - ; Fill in what this repo IS and IS NOT, and the repos it relates to. - ; :relationship is one of standard-source build-tooling validation-tooling - ; signing-tooling verification-tooling minted-from registry. - (ecosystem - :project "{{REPO}}" - :ecosystem "{{OWNER}}" - :position-type "UNASSIGNED" - :purpose "UNASSIGNED" - :not () - :pipeline-position "UNASSIGNED" - :chain "UNASSIGNED" - :coordination standards - (related :name "rsr-template-repo" :relationship minted-from :notes "the template this repo was minted from by just repo-init")) - ; <<< repo-identity diff --git a/docs/AFFIRMATION.adoc b/docs/AFFIRMATION.adoc index 90d321ca..28d10b5f 100644 --- a/docs/AFFIRMATION.adoc +++ b/docs/AFFIRMATION.adoc @@ -1,6 +1,6 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -= AFFIRMATION — {{PROJECT_NAME}}, as of += AFFIRMATION — Atoma, as of :toc: macro :toclevels: 2 :std-docs: https://github.com/hyperpolymath/standards/blob/main/docs @@ -37,12 +37,12 @@ toc::[] == What this is, and how it works -*What it is.* A short, dated, signed snapshot of what {{OWNER}} can honestly and -verifiably claim about *{{PROJECT_NAME}}* at one exact commit. Nothing here is +*What it is.* A short, dated, signed snapshot of what hyperpolymath can honestly and +verifiably claim about *Atoma* at one exact commit. Nothing here is marketing and nothing is a promise about the future — those live in the README. This file is the receipt. -*What the project is.* {{PROJECT_DESCRIPTION}} +*What the project is.* Experimental source-bound program verification for a closed Zig subset *How it stays trustworthy.* Three moving parts: @@ -63,7 +63,7 @@ correctness. Treat it as a falsifiable claim, not gospel. == The epistemic contract (read this before you trust _or_ attack) -This document records {{OWNER}}'s *best belief* at the timestamp below. It is +This document records hyperpolymath's *best belief* at the timestamp below. It is *not a guarantee of correctness.* The only guarantee is *no intentional overclaim*: where something is proven we say "proven"; where it is a documented trust boundary, an experiment, or an unwired module, we say so; where a claim is @@ -95,19 +95,19 @@ file. Bring a counter-example, a failing run, or a contradicting source. | Field | Value | Project -| {{PROJECT_NAME}} +| Atoma | Repo -| `{{OWNER}}/{{REPO}}` +| `hyperpolymath/atoma` | Branch -| `{{MAIN_BRANCH}}` +| `main` | Commit (HEAD) | `` | Permalink -| https://{{FORGE}}/{{OWNER}}/{{REPO}}/tree/ +| https://github.com/hyperpolymath/atoma/tree/ | Verified (UTC) | `` @@ -120,7 +120,7 @@ file. Bring a counter-example, a failing run, or a contradicting source. | `` | Affirmed by -| {{AUTHOR}} <{{AUTHOR_EMAIL}}> +| Jonathan D.A. Jewell |=== [IMPORTANT] @@ -193,15 +193,15 @@ to prevent — mark it refuted and say what refuted it. [source,bash] ---- -git clone https://{{FORGE}}/{{OWNER}}/{{REPO}} -cd {{REPO}} +git clone https://github.com/hyperpolymath/atoma +cd atoma git checkout # ---- == One-line characterisation (quote this) -> `` +> `` == Joint attestation @@ -213,7 +213,7 @@ hidden. * *Engineering party (AI):* `` — ran the checks recorded here at `` and stands behind the wording above as a faithful report of those runs. -* *Owner / maintainer:* {{AUTHOR}} <{{AUTHOR_EMAIL}}> — _signs by committing +* *Owner / maintainer:* Jonathan D.A. Jewell — _signs by committing this file with `-S`; the git commit signature over this content, at the commit SHA recorded above, is the cryptographic form of this affirmation._ diff --git a/docs/AI_INSTALLATION_GUIDE.adoc b/docs/AI_INSTALLATION_GUIDE.adoc index c5fa17c1..e57647cc 100644 --- a/docs/AI_INSTALLATION_GUIDE.adoc +++ b/docs/AI_INSTALLATION_GUIDE.adoc @@ -30,7 +30,7 @@ local checkouts across this estate are routinely stale or carry sweep debris. [source,bash] ---- -git clone https://github.com/hyperpolymath/rsr-template-repo.git my-project +git clone https://github.com/hyperpolymath/atoma.git my-project cd my-project rm -rf .git && git init ---- diff --git a/docs/ARCHITECTURE.adoc b/docs/ARCHITECTURE.adoc index 44cce316..793156e4 100644 --- a/docs/ARCHITECTURE.adoc +++ b/docs/ARCHITECTURE.adoc @@ -1,48 +1,46 @@ -= Architecture - -== Overview - -This repository follows a modular, maintainable architecture designed for clarity, scalability, and long-term sustainability. - -== Directory Structure - -[source] ----- -. -├── src/ # Source code -├── tests/ # Test suites -├── docs/ # Documentation -├── scripts/ # Utility scripts -├── config/ # Configuration files -├── LICENSE # License file -├── LICENSES/ # Full license texts -└── README.adoc # Project documentation ----- - -== Design Principles - -* *Separation of Concerns*: Each module has a single responsibility -* *Testability*: Code is written to be easily testable -* *Documentation*: All public APIs are documented -* *Configuration*: Environment-specific settings are externalized - -== Dependencies - -* External dependencies are minimized and clearly declared -* Version pinning is used for reproducibility - -== Security Considerations - -* Sensitive data is never committed to the repository -* Secrets are managed through environment variables or secure vaults -* Regular dependency audits are performed - -== Maintainability - -* Code follows consistent style guidelines -* Pull requests require review and CI checks -* Issues and discussions are tracked transparently - ---- - -_Last updated: 2026-07-18_ +// SPDX-License-Identifier: CC-BY-SA-4.0 +// Copyright (c) Jonathan D.A. Jewell +// SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) += Atoma architecture +:revdate: 2026-11-07 + +Atoma's central invariant is that evidence may claim no more than the source, +semantics and checkers it actually covers. A failed or missing check must not +produce a successful verification status. + +== Components and data flow + +* `tools/atoma/src/source.zig` parses and lowers the closed u8 source pilot, + evaluates its finite domain and emits QF_BV obligations. This lowering and + Zig's compiler are still trusted; there is no source-refinement theorem. +* `tools/atoma/src/frontend.zig` screens general Zig syntax and annotations. + Its token screen does not establish semantic subset membership. +* `examples/atoma/frame-v1/abi` contains the normative Idris contract encoder + and QTT resource model. `scripts/atoma-check-idris.sh` executes extraction + and checks it against the canonical contract. There is no live Idris FFI. +* `examples/atoma/frame-v1/src` is the native frame implementation. Its + poisoned-output tests and target layout witnesses are compiled evidence. +* `verification/atoma/agda` proves the store-free model theorem, separately + from implementation testing and SMT model obligations. +* `scripts/atoma-gate.sh` rebuilds, checks registered proof coverage and + collects tool identities, input hashes, verdicts and falsifier outcomes. + +Inputs are source files, contracts, proof registrations and tool identities. +The source pilot rejects constructs outside its closed grammar before emitting +an obligation. Outputs are diagnostics, solver inputs and scoped evidence. +Changing a body must change the obligation or invalidate the evidence. + +== Trust and cross-cutting concerns + +The current ceiling is INCOMPLETE / Warrant. Parser/lowering correctness, +compiler refinement, general memory/alias semantics and independent proof +exchange/replay remain open. An Agda model theorem does not close these gaps. +Pointer validity and disjoint output leases are explicit frame ABI assumptions. + +CI treats tool availability, exit status, output delivery, current-source +rebuilding, proof coverage and provenance as interacting correctness concerns. +Both source commands return I/O status 3 if their result cannot be delivered. +The native frame API remains single-threaded. + +See link:plan/ULTRAPLAN.adoc[the v1 gates] and +link:decisions/ATOMA-SOURCE-TO-PROOF.adoc[the source/proof boundary]. diff --git a/docs/MAINTAINERS.adoc b/docs/MAINTAINERS.adoc index 458fc55d..3f1fad42 100644 --- a/docs/MAINTAINERS.adoc +++ b/docs/MAINTAINERS.adoc @@ -12,9 +12,9 @@ earlier duplicates at `.github/MAINTAINERS` and `docs/attribution/MAINTAINERS.ad |=== | Name | Role | Contact -| {{AUTHOR}} +| Jonathan D.A. Jewell | Lead Maintainer -| https://github.com/{{OWNER}}[@{{OWNER}}] +| https://github.com/hyperpolymath[@hyperpolymath] |=== == Responsibilities diff --git a/docs/QUICKSTART.adoc b/docs/QUICKSTART.adoc index fc9fdf97..3a8f16eb 100644 --- a/docs/QUICKSTART.adoc +++ b/docs/QUICKSTART.adoc @@ -15,7 +15,7 @@ Get up and running in 60 seconds. [source,bash] ---- -git clone https://github.com/{{OWNER}}/rsr-template-repo my-project +git clone https://github.com/hyperpolymath/atoma my-project cd my-project rm -rf .git && git init -b main just repo-init # interactive placeholder replacement diff --git a/docs/RSR-PHILOSOPHY.adoc b/docs/RSR-PHILOSOPHY.adoc index 05a15903..b093ec7a 100644 --- a/docs/RSR-PHILOSOPHY.adoc +++ b/docs/RSR-PHILOSOPHY.adoc @@ -51,7 +51,7 @@ Two obligations follow from this, and they are not optional: * *Find the source.* Before acting, trace the thing back to where it is actually defined — the template, the generator, the canon, the single point that everything else inherits from. The estate's structure is - `standards → rsr-template-repo → (every repo)`; a fix that belongs at the + `standards → atoma → (every repo)`; a fix that belongs at the template does not belong in 380 leaves. * *Be mindful of every up- and down-stream.* A change at a source propagates. Before you make it, know what feeds into the thing you are changing (upstream) diff --git a/docs/SETUP.adoc b/docs/SETUP.adoc index f2524419..65269dac 100644 --- a/docs/SETUP.adoc +++ b/docs/SETUP.adoc @@ -1,6 +1,6 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) -= Setting up rsr-template-repo by hand += Setting up atoma by hand :toc: :toclevels: 2 @@ -10,7 +10,7 @@ link:AI_INSTALLATION_GUIDE.adoc[AI_INSTALLATION_GUIDE.adoc]), but those do exactly what is written here, so this page is also what to read when they stop. [horizontal] -Repository:: https://github.com/hyperpolymath/rsr-template-repo +Repository:: https://github.com/hyperpolymath/atoma Kind:: library (idris2, zig) Toolchain declared in:: `mise.toml` (versions `latest`, made concrete in `mise.lock`), and `build/manifest.scm` / `build/guix.scm` / `build/channels.scm` for Guix @@ -56,12 +56,12 @@ The Guix development shell (`build/manifest.scm`) already includes both. [source,bash] ---- -git clone https://github.com/hyperpolymath/rsr-template-repo.git -cd rsr-template-repo +git clone https://github.com/hyperpolymath/atoma.git +cd atoma ---- Or with OPSM, the odds-and-sods package manager (see <>): -`opsm install https://github.com/hyperpolymath/rsr-template-repo.git --registry git` +`opsm install https://github.com/hyperpolymath/atoma.git --registry git` TIP: To start a *new* project from this template, use GitHub's *Use this template* button (or clone as above), then run `just repo-init` before step 3; it fills every @@ -153,10 +153,10 @@ when it is not. [source,bash] ---- -opsm install https://github.com/hyperpolymath/rsr-template-repo.git --registry git +opsm install https://github.com/hyperpolymath/atoma.git --registry git ---- -rsr-template-repo has no registry package, so OPSM fetches it through its git +atoma has no registry package, so OPSM fetches it through its git adapter; then provision it with `./launcher.sh --setup`. To get OPSM itself (Erlang/OTP 26+ and Elixir 1.16+ required): @@ -212,4 +212,4 @@ every fix marked *auto* for you. |=== Still stuck? `just doctor > doctor.txt 2>&1` and open an issue at -https://github.com/hyperpolymath/rsr-template-repo/issues with that file attached. +https://github.com/hyperpolymath/atoma/issues with that file attached. diff --git a/docs/architecture/REPOSITORY-MAP.adoc b/docs/architecture/REPOSITORY-MAP.adoc index 4b787485..1925691c 100644 --- a/docs/architecture/REPOSITORY-MAP.adoc +++ b/docs/architecture/REPOSITORY-MAP.adoc @@ -117,9 +117,9 @@ predecessors did. | yes | - -| `archetypes/` -| optional -| template-only variation seam (ADR-0003); `just repo-init` removes it from minted repos +| `atoma_chora.deed` +| yes +| the repo deed: universal AI entry point; family-7 allocation manifest + ply tree folded in (standards#837 pilot). Filename carries the repo slug (deed dispatch _chora.deed), so repo-init renames it at mint | `benches/` | optional @@ -161,10 +161,6 @@ predecessors did. | yes | the toolchain: every tool at latest (PROVISIONING-STANDARD §4) -| `rsr-template-repo_chora.deed` -| yes -| the repo deed: universal AI entry point; family-7 allocation manifest + ply tree folded in (standards#837 pilot). Filename carries the repo slug (deed dispatch _chora.deed), so repo-init renames it at mint - | `scripts/` | yes | repo helper scripts diff --git a/docs/architecture/THREAT-MODEL.adoc b/docs/architecture/THREAT-MODEL.adoc index 43d945d1..d4a854cd 100644 --- a/docs/architecture/THREAT-MODEL.adoc +++ b/docs/architecture/THREAT-MODEL.adoc @@ -2,19 +2,19 @@ // Copyright (c) Jonathan D.A. Jewell = Threat Model // SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) -== Threat Model: {{PROJECT_NAME}} +== Threat Model: Atoma === Document Info |=== | Field | Value -| Project | {{PROJECT_NAME}} +| Project | Atoma | Version | 1.0 -| Last Reviewed | {{DATE}} -| Author | {{AUTHOR}} +| Last Reviewed | 2026-11-07 +| Author | Jonathan D.A. Jewell | Methodology | STRIDE |=== @@ -39,7 +39,7 @@ === System Overview -Brief description of {{PROJECT_NAME}} and its architecture. +Brief description of Atoma and its architecture. NOTE: See link:../STATE-VISUALIZER.adoc[STATE-VISUALIZER.adoc] for the full architecture diagram and completion dashboard. diff --git a/docs/attribution/CITATIONS.adoc b/docs/attribution/CITATIONS.adoc index 0a8b4192..8d491dd5 100644 --- a/docs/attribution/CITATIONS.adoc +++ b/docs/attribution/CITATIONS.adoc @@ -1,36 +1,36 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell -= {{PROJECT_NAME}} - Citation Guide += Atoma - Citation Guide :toc: == BibTeX [source,bibtex] ---- -@software{{{PROJECT_NAME}}_{{CURRENT_YEAR}}, - author = {{{AUTHOR_LAST}}, {{AUTHOR_FIRST}}}, - title = {{{PROJECT_NAME}}}, - year = {{{CURRENT_YEAR}}}, - url = {https://github.com/{{OWNER}}/{{PROJECT_NAME}}}, +@software{Atoma_2026, + author = {Jewell, Jonathan D.A.}, + title = {Atoma}, + year = {2026}, + url = {https://github.com/hyperpolymath/Atoma}, license = {MPL-2.0} } ---- == Harvard Style -{{AUTHOR_LAST}}, {{AUTHOR_INITIALS}} ({{CURRENT_YEAR}}) _{{PROJECT_NAME}}_ [Computer software]. Available at: https://github.com/{{OWNER}}/{{PROJECT_NAME}} +Jewell, J. (2026) _Atoma_ [Computer software]. Available at: https://github.com/hyperpolymath/Atoma == OSCOLA -{{AUTHOR}}, '{{PROJECT_NAME}}' ({{CURRENT_YEAR}}) +Jonathan D.A. Jewell, 'Atoma' (2026) == MLA -{{AUTHOR_LAST}}, {{AUTHOR_FIRST}} "{{PROJECT_NAME}}." {{CURRENT_YEAR}}, github.com/{{OWNER}}/{{PROJECT_NAME}}. +Jewell, Jonathan D.A. "Atoma." 2026, github.com/hyperpolymath/Atoma. == APA 7 -{{AUTHOR_LAST}}, {{AUTHOR_INITIALS}} ({{CURRENT_YEAR}}). _{{PROJECT_NAME}}_ [Computer software]. GitHub. https://github.com/{{OWNER}}/{{PROJECT_NAME}} +Jewell, J. (2026). _Atoma_ [Computer software]. GitHub. https://github.com/hyperpolymath/Atoma == See Also diff --git a/docs/audit/2026-11-07-soundness-sprint.adoc b/docs/audit/2026-11-07-soundness-sprint.adoc index 10fb682f..719acacc 100644 --- a/docs/audit/2026-11-07-soundness-sprint.adoc +++ b/docs/audit/2026-11-07-soundness-sprint.adoc @@ -112,3 +112,40 @@ https://github.com/hyperpolymath/atoma/actions/runs/42395104592[run 42395104592] at commit `63018ee9c73bb1e2d3a436ef067cfb3c4e82c374`, including artifact upload. The final PR head also adds the CLI I/O and empty-registry falsifiers; its run must pass independently and is linked in the PR description. + +== Follow-up: regression recovery and merge-readiness repair + +Commit `b980405` applied an obsolete review suggestion inside an existing catch +block. The duplicate handler did not compile; the required gate correctly failed +before claiming success. Commit `f87b740` repairs the handler, retains exit 3 for +I/O/parse failures and extends failed-output checks to the successful +`source-check` report. Hosted run 42403751163 passes. The checked input manifest +has been regenerated from the repaired implementation, not copied from the +earlier passing CLI. The normative spec no longer claims an executable Idris +foreign binding. + +The follow-up also renders identity/contact metadata using the inherited +canonical `repo-init` in a disposable review tree. Its provenance resolver +recovered the original template commit `889f7f79aa99` from Atoma's root commit. +The actual implementation, historical Atoma plan and evidence were preserved; +template-only overlay/seed files were removed as prescribed by the initializer. +Atoma now declares experimental maturity and the Formal Verification & Proofs +clade, with repository creation dated 2026-10-22. This does not register a new +external clade record or certify standards compliance. Existing licence texts +and licence identifiers are unchanged; REUSE contact metadata is rendered. + +Reusable workflow references follow the standards repository's transfer to +`metadatastician/standards`, retaining the same immutable commit. Lock metadata +records its current owner ID and `main` as the resolving branch; the retained +standards/cicd-suite commits were checked as ancestors of their respective main +branches. Workflow closure remains checked by the unchanged lock-sync gate. +The Actions allow-list admits only the exact configured standards workflow +commits and the existing pinned EditorConfig release; GitHub-owned and verified +publisher policy remains enabled. No required check or protection was removed. + +The Windows `gh actions-lock` global verification still misclassifies job-level +reusable refs as stale. Its scoped action verification and the separate +job-aware closure check are recorded distinctly; a global pass is not claimed. +The existing SonarCloud project is `hyperpolymath_zigprove` (Atoma's previous +name); the local scanner configuration now targets that project rather than +the template's project. diff --git a/docs/audit/2026-11-07-soundness-sprint/actions-lock.json b/docs/audit/2026-11-07-soundness-sprint/actions-lock.json index c6edbd09..f0e8a440 100644 --- a/docs/audit/2026-11-07-soundness-sprint/actions-lock.json +++ b/docs/audit/2026-11-07-soundness-sprint/actions-lock.json @@ -1 +1 @@ -{"cli_version":"v0.4.1","findings":[{"category":"not-pinned","confidence":"high","dependency":"hyperpolymath/cicd-suite@0da816c05ae7486671d863e07935f93981c0c2d5","detail":"lock entry for hyperpolymath/cicd-suite@0da816c05ae7486671d863e07935f93981c0c2d5, used by hyperpolymath/cicd-suite@55556cf5ba71ba744695861503c13148d3915a5d, records ref 0da816c05ae7, a commit SHA rather than the tag or branch it was taken from; the Actions backend rejects this pin","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#not-pinned","remediation":"run `gh actions-lock` without workflow paths to record the tag or branch this commit came from; if none contains it, upgrade or replace hyperpolymath/cicd-suite@55556cf5ba71ba744695861503c13148d3915a5d","required_by":"hyperpolymath/cicd-suite@55556cf5ba71ba744695861503c13148d3915a5d","severity":"error","workflow":""},{"category":"not-pinned","confidence":"high","dependency":"hyperpolymath/cicd-suite@55556cf5ba71ba744695861503c13148d3915a5d","detail":"lock entry for hyperpolymath/cicd-suite@55556cf5ba71ba744695861503c13148d3915a5d, in .github/workflows/main-estate-audit.yml, records ref 55556cf5ba71, a commit SHA rather than the tag or branch it was taken from; the Actions backend rejects this pin","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#not-pinned","remediation":"run `gh actions-lock` without workflow paths to record the tag or branch this commit came from","severity":"error","workflow":".github/workflows/main-estate-audit.yml"},{"category":"not-pinned","confidence":"high","dependency":"hyperpolymath/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78","detail":"lock entry for hyperpolymath/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78, in .github/workflows/dogfood-gate.yml, records ref b3ce78e1a8cb, a commit SHA rather than the tag or branch it was taken from; the Actions backend rejects this pin","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#not-pinned","remediation":"run `gh actions-lock` without workflow paths to record the tag or branch this commit came from","severity":"error","workflow":".github/workflows/dogfood-gate.yml"}],"lockfile_version":"v0.0.3","valid":false} \ No newline at end of file +{"cli_version":"v0.4.1","findings":[{"category":"sha-as-ref","confidence":"high","dependency":"github/codeql-action@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee","detail":"pinned to a bare SHA without a symbolic ref — weakens supply-chain traceability","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#sha-as-ref","remediation":"pin to a tag instead: https://github.com/github/codeql-action/releases","severity":"warning","workflow":".github\\workflows\\codeql.yml"},{"category":"sha-as-ref","confidence":"high","dependency":"github/codeql-action@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee","detail":"pinned to a bare SHA without a symbolic ref — weakens supply-chain traceability","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#sha-as-ref","remediation":"pin to a tag instead: https://github.com/github/codeql-action/releases","severity":"warning","workflow":".github\\workflows\\codeql.yml"},{"category":"stale","confidence":"high","dependency":"metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78","detail":"lockfile pins metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 but no uses: in this workflow references it","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#stale","remediation":"run `gh actions-lock` to prune the unused entry","severity":"error","workflow":".github\\workflows\\dogfood-gate.yml"},{"category":"stale","confidence":"high","dependency":"metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78","detail":"lockfile pins metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 but no uses: in this workflow references it","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#stale","remediation":"run `gh actions-lock` to prune the unused entry","severity":"error","workflow":".github\\workflows\\governance.yml"},{"category":"stale","confidence":"high","dependency":"metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78","detail":"lockfile pins metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 but no uses: in this workflow references it","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#stale","remediation":"run `gh actions-lock` to prune the unused entry","severity":"error","workflow":".github\\workflows\\hypatia-scan.yml"},{"category":"stale","confidence":"high","dependency":"hyperpolymath/cicd-suite@55556cf5ba71ba744695861503c13148d3915a5d","detail":"lockfile pins hyperpolymath/cicd-suite@55556cf5ba71ba744695861503c13148d3915a5d but no uses: in this workflow references it","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#stale","remediation":"run `gh actions-lock` to prune the unused entry","severity":"error","workflow":".github\\workflows\\main-estate-audit.yml"},{"category":"stale","confidence":"high","dependency":"metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78","detail":"lockfile pins metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 but no uses: in this workflow references it","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#stale","remediation":"run `gh actions-lock` to prune the unused entry","severity":"error","workflow":".github\\workflows\\mirror.yml"},{"category":"sha-as-ref","confidence":"high","dependency":"editorconfig-checker/action-editorconfig-checker@51f63319f592f97930c73d9c46184d20bd206393","detail":"pinned to a bare SHA without a symbolic ref — weakens supply-chain traceability","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#sha-as-ref","remediation":"pin to a tag instead: https://github.com/editorconfig-checker/action-editorconfig-checker/releases","severity":"warning","workflow":".github\\workflows\\quality.yml"},{"category":"stale","confidence":"high","dependency":"metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78","detail":"lockfile pins metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 but no uses: in this workflow references it","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#stale","remediation":"run `gh actions-lock` to prune the unused entry","severity":"error","workflow":".github\\workflows\\rust-ci.yml"},{"category":"stale","confidence":"high","dependency":"metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78","detail":"lockfile pins metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 but no uses: in this workflow references it","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#stale","remediation":"run `gh actions-lock` to prune the unused entry","severity":"error","workflow":".github\\workflows\\scorecard.yml"},{"category":"stale","confidence":"high","dependency":"metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78","detail":"lockfile pins metadatastician/standards@b3ce78e1a8cb24b33fde5c9da6a7c09486efda78 but no uses: in this workflow references it","doc_url":"https://github.com/github/gh-actions-lock/blob/main/docs/troubleshooting.md#stale","remediation":"run `gh actions-lock` to prune the unused entry","severity":"error","workflow":".github\\workflows\\secret-scanner.yml"}],"lockfile_version":"v0.0.3","valid":false} \ No newline at end of file diff --git a/docs/audit/2026-11-07-soundness-sprint/compiled-bad.txt b/docs/audit/2026-11-07-soundness-sprint/compiled-bad.txt index 062e1e11..68feb9c8 100644 --- a/docs/audit/2026-11-07-soundness-sprint/compiled-bad.txt +++ b/docs/audit/2026-11-07-soundness-sprint/compiled-bad.txt @@ -8,4 +8,4 @@ FAIL (TestExpectedEqual) ^ 0 passed; 0 skipped; 1 failed. error: the following test command failed with exit code 1: -/home/hyperpolymath/.cache/zig/o/d87bfa176a6bf57f9db48e8b3d8f75c4/test --seed=0xbe1df2c4 +/home/hyperpolymath/.cache/zig/o/d87bfa176a6bf57f9db48e8b3d8f75c4/test --seed=0xf8f145c2 diff --git a/docs/audit/2026-11-07-soundness-sprint/inputs.sha256 b/docs/audit/2026-11-07-soundness-sprint/inputs.sha256 index d725c1a3..d0ce12dd 100644 --- a/docs/audit/2026-11-07-soundness-sprint/inputs.sha256 +++ b/docs/audit/2026-11-07-soundness-sprint/inputs.sha256 @@ -13,7 +13,7 @@ d96d491575b4aa98344b2c408742b4192a3614b597b8d7d1f46ffac3685c1d24 examples/atoma 605f194214cabbf703961c21b0ddb9e30465b895a9a4dc78351e08cfdce8276d examples/atoma/source-u8/wrong-body.zig 9a8b2000096ec3214899d822e11a4ad060b30515bb11865c70478f1057bb0fdf tools/atoma/src/canon.zig 1ae7f5e849324945e126c928111c78a42de3f6e14c3b24ab0de035752b4916a8 tools/atoma/src/frontend.zig -6930ec266287fa3bd9ae26282588ef6f29ccd5a36454a8339a4a10beea864423 tools/atoma/src/main.zig +6a3e97f45da3b1afd91bcce8d8f2669430ecd58ade1f3e4c785e8a99f65692d1 tools/atoma/src/main.zig c3b2056145a419d6fc4e1b0508e09826eca4c6dc255cca9f0fc5c614f0156827 tools/atoma/src/source.zig 7bcb0cb5fe70f391e5b3a0c55fc5fd3325657943148090fd3cf7dbeb5b8240c9 tools/atoma/src/vc.zig a060c98d92d78795186ad5b22e50a664efdc7e0fd618cedc09f889e14d8ff5cd verification/atoma/agda/Bv.agda @@ -23,9 +23,9 @@ f1e2447cf61217b3b6007dc56f0fcde88caa8f804c75c7e2aff7a4993cc9b643 verification/a d777465faa96e3a894bae826a60f7980fd50fb68cabfc97d9293990cc34c57f6 verification/atoma/check-agda.sh b0eac35d5b00bef70a4927ccb68111dcc684f5df17ffad6b613ab977fe0f57d8 tools/atoma/build.zig 9259c3bf44be3182cd9f3d2206c72f215b2f41b33feddbbeb602b1efddee4c9f scripts/atoma-check-idris.sh -6ad61dff8f46dc25b8fbeed7d8eb71b81c34f2ba61fbb7690b9daa18864fd80b scripts/atoma-ci-toolchain.sh -4050d594f4d9ffb2332859b930b948584a26a44e078bc566b91d8186c796ebc1 scripts/atoma-gate-falsifiers.sh -86f6ce1c9691f594846e2116dd086c5b65f5519d73cd2406fb58c3a3442a64a5 scripts/atoma-gate.sh +f17d862442291100bbfef0073925143a21a52aa1bc84fa8072a56584754b1df1 scripts/atoma-ci-toolchain.sh +36e4646bf03596755bf339a72ea096d80772c0aa8235095eab6482932dd7cb9d scripts/atoma-gate-falsifiers.sh +3a5a53ddea429e28abc3cb6c3d09c65e6f12455fb7187d1c716e19df00bebcf2 scripts/atoma-gate.sh eedd113fdef194f42ee2ae9187f2d5b03476b91072fa5b8957511a8da4b5d0d4 examples/atoma/frame-v1/verify.sh 358cd904557a41b5c30cdfe9dcd67451ccac31c7cd09b5b2bd6c339023fded46 verification/proofs/agda/MANIFEST f4d5954e01a91cc3f7911cd36a5eb699c5b3f62a4c457613e2147899a601a33d verification/proofs/idris2/MANIFEST diff --git a/docs/audit/2026-11-07-soundness-sprint/merge-preflight.txt b/docs/audit/2026-11-07-soundness-sprint/merge-preflight.txt new file mode 100644 index 00000000..cdce6a59 --- /dev/null +++ b/docs/audit/2026-11-07-soundness-sprint/merge-preflight.txt @@ -0,0 +1,10 @@ +=== RSR Compliance Check === +RSR compliance: PASS +PASS: no unfilled {{PLACEHOLDER}} tokens +actions.lock is in sync and transitively closed: + * every uses: is locked under its own workflow path (job-level reusable refs included) + * every lockfile entry is still referenced + * every ref named in the lockfile resolves to a dependencies: record (0 dangling edges) + * every workflow file has a lockfile key (zero-uses: workflows included) + note: 1 dependencies: record(s) are unreferenced - harmless, but prunable. +MERGE PREFLIGHT PASS: RSR structure, placeholders, locks, shell errors, source evidence diff --git a/docs/contributing.adoc b/docs/contributing.adoc new file mode 100644 index 00000000..7fdc5934 --- /dev/null +++ b/docs/contributing.adoc @@ -0,0 +1,91 @@ +// SPDX-License-Identifier: CC-BY-SA-4.0 +// Copyright (c) Jonathan D.A. Jewell +// SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) += Contributing — Atoma +:revdate: 2026-MM-DD + +== Audience + +Developers working *on* `Atoma`. For consumers (people calling +or depending on it) see link:./usage.adoc[usage.adoc]. + +== Local-dev setup + +Prerequisites — the minimum versions and where to get them: + +* `` v`` — ``. +* `` v`` — ``. +* GPG signing key configured (estate policy — all commits must be + signed). See + link:https://github.com/hyperpolymath/standards/blob/main/docs/secure-coding-training.md[standards/docs/secure-coding-training.md]. + +One-shot setup: + +[source,bash] +---- +git clone git@github.com:hyperpolymath/Atoma.git +cd Atoma +just setup # installs deps, sets up hooks +just test # runs the full test suite +---- + +== Running tests + +* **Unit**: `just test-unit` — fast, no I/O. +* **Integration**: `just test-int` — uses real services (database, + HTTP, etc.). Estate policy: prefer real over mocked + (see `feedback_integration_tests_real_db` in maintainer's memory). +* **Property**: `just test-prop` — randomised, slower; budget + documented in `docs/proof-debt.md` if applicable. +* **Full**: `just test` — runs all of the above. + +== Code style + +We enforce style via CI (governance-reusable.yml from hyperpolymath/standards). +Locally: + +[source,bash] +---- +just fmt # auto-format +just lint # static checks +---- + +* All commits must be **GPG-signed** (CI enforces; see + link:https://github.com/hyperpolymath/standards[standards]). +* All source files must carry an **SPDX-License-Identifier** header + (CI enforces). +* Conventional commits — `feat`, `fix`, `chore`, `refactor`, `docs`, + `test`, `ci`, `revert` (CHANGELOG is auto-generated from these + via link:https://github.com/hyperpolymath/standards/blob/main/.github/workflows/changelog-reusable.yml[`changelog-reusable.yml`]). + +== Branching & PR workflow + +. Branch off `main` as `claude/` (for AI agents) or + `/` (for humans). +. Make focused, narrow commits — one logical change per commit. +. Open a PR against `main`. +. **Enable auto-merge immediately** on every PR you open + (`gh pr merge --auto --squash`) — estate standing policy + (see standards#196 audit and policies). +. CI must be green. The PR auto-merges when checks pass + reviews land. + +== Adding a new dependency + +. State the *why* in the PR body — what does this dependency unlock? +. Check provenance (maintained, audited, no malicious history). +. Pin to a SHA, not a tag. +. Update `docs/architecture.adoc#Dependencies`. + +== Adding an ADR + +When you make a non-obvious design decision, write it down: + +. Copy `docs/decisions/0001-template.adoc` → `0002-.adoc`. +. Fill in: Context, Decision, Consequences, Alternatives. +. Link the ADR from the README or relevant code as a comment. + +== Reporting issues + +* Bugs in `Atoma`: file at `hyperpolymath/Atoma/issues`. +* Estate-wide concerns (policy, conventions, CI): file at + `hyperpolymath/standards/issues`. diff --git a/docs/decisions/0000-template.adoc b/docs/decisions/0000-template.adoc index 32c2c2a5..0025b64e 100644 --- a/docs/decisions/0000-template.adoc +++ b/docs/decisions/0000-template.adoc @@ -2,7 +2,7 @@ // Copyright (c) Jonathan D.A. Jewell = Architecture Decision Record: 0000-template // SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) == [NUMBER]. [TITLE] diff --git a/docs/decisions/0001-adopt-rsr-standard.adoc b/docs/decisions/0001-adopt-rsr-standard.adoc index cfcc68e9..6e0bfeba 100644 --- a/docs/decisions/0001-adopt-rsr-standard.adoc +++ b/docs/decisions/0001-adopt-rsr-standard.adoc @@ -2,7 +2,7 @@ // Copyright (c) Jonathan D.A. Jewell = Architecture Decision Record: 0001-adopt-rsr-standard // SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) NOTE: Superseded in part (2026-10-06, rsr-template-repo#209): the `.a2ml` files named below no longer exist; their facts are clauses of the repo deed (`*_chora.deed`). @@ -58,7 +58,7 @@ New repositories are created by cloning the template: [source,bash] ---- -git clone https://github.com/{{OWNER}}/rsr-template-repo new-repo-name +git clone https://github.com/hyperpolymath/rsr-template-repo new-repo-name cd new-repo-name rm -rf .git && git init ---- diff --git a/docs/decisions/0001-template.adoc b/docs/decisions/0001-template.adoc new file mode 100644 index 00000000..b4070a83 --- /dev/null +++ b/docs/decisions/0001-template.adoc @@ -0,0 +1,54 @@ +// SPDX-License-Identifier: CC-BY-SA-4.0 +// Copyright (c) Jonathan D.A. Jewell +// SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) += ADR-0001 — Use Architecture Decision Records +:revdate: 2026-MM-DD +:status: ACCEPTED + +== Context + +We need a lightweight way to record significant architectural decisions +and the reasoning behind them, so future maintainers (and AI agents) +can understand *why* the project is shaped as it is. + +== Decision + +Adopt link:https://adr.github.io/[Architecture Decision Records (ADRs)] +in `docs/decisions/`, numbered sequentially (0001, 0002, ...). + +* Each ADR is a single `.adoc` file. +* The first ADR (this one) records the decision to use ADRs. +* Status values: PROPOSED, ACCEPTED, DEPRECATED, SUPERSEDED. +* When a decision is overturned, the new ADR records the supersession + and updates the old one's status to `SUPERSEDED by 00NN`. + +== Consequences + +. **Positive**: future readers see *why* without git-archaeology. +. **Positive**: design alternatives are documented, not just the + winning choice. +. **Positive**: ADRs are reviewable in PRs — the design discussion + happens alongside the code that implements it. +. **Negative**: maintenance burden — every non-obvious decision now + warrants an ADR. (We mitigate by keeping ADRs short; "non-obvious" + is a judgment call.) +. **Negative**: ADRs can rot. We accept this; the SUPERSEDED chain + is the recovery mechanism. + +== Alternatives considered + +. **Comments in code** — too local; doesn't capture cross-cutting + decisions. +. **Wiki / external doc** — drifts from code; not in PR review. +. **Commit messages** — too transient and not discoverable. +. **No record** — discarded; this is how every project ends up with + "I don't know why we do it this way" debt. + +== Companion ADRs + +* (None yet — this is the first ADR.) + +== References + +* MADR template — `https://adr.github.io/madr/` +* Estate convention — `hyperpolymath/standards/docs/RSR_OUTLINE.adoc` diff --git a/docs/developer/ABI-FFI-README.adoc b/docs/developer/ABI-FFI-README.adoc index 2a9ff086..b3546fa2 100644 --- a/docs/developer/ABI-FFI-README.adoc +++ b/docs/developer/ABI-FFI-README.adoc @@ -3,7 +3,7 @@ = ABI/FFI Standards {{~ Aditionally delete this line and fill out the template below ~}} -== {{PROJECT}} ABI/FFI Documentation +== ATOMA ABI/FFI Documentation === Overview @@ -29,7 +29,7 @@ This library follows the **Hyperpolymath RSR Standard** for ABI and FFI design: ▼ ┌─────────────────────────────────────────────┐ │ C Headers (auto-generated) │ -│ generated/abi/{{project}}.h │ +│ generated/abi/atoma.h │ └─────────────────┬───────────────────────────┘ │ │ imported by @@ -42,7 +42,7 @@ This library follows the **Hyperpolymath RSR Standard** for ABI and FFI design: │ - Memory-safe by default │ └─────────────────┬───────────────────────────┘ │ - │ compiled to lib{{project}}.so/.a + │ compiled to libatoma.so/.a ▼ ┌─────────────────────────────────────────────┐ │ Any Language via C ABI │ @@ -53,7 +53,7 @@ This library follows the **Hyperpolymath RSR Standard** for ABI and FFI design: === Directory Structure ---- -{{project}}/ +atoma/ ├── src/ │ ├── abi/ # ABI definitions (Idris2) │ │ ├── Types.idr # Core type definitions with proofs @@ -70,11 +70,11 @@ This library follows the **Hyperpolymath RSR Standard** for ABI and FFI design: │ ├── test/ │ │ └── integration_test.zig │ └── include/ -│ └── {{project}}.h # C header (optional, can be generated) +│ └── atoma.h # C header (optional, can be generated) │ ├── generated/ # Auto-generated files │ └── abi/ -│ └── {{project}}.h # Generated from Idris2 ABI +│ └── atoma.h # Generated from Idris2 ABI │ └── bindings/ # Language-specific wrappers (optional) ├── rust/ @@ -212,7 +212,7 @@ zig build test # Run tests [source,bash] ---- cd src/abi -idris2 --cg c-header Types.idr -o ../../generated/abi/{{project}}.h +idris2 --cg c-header Types.idr -o ../../generated/abi/atoma.h ---- ==== Cross-Compile @@ -237,19 +237,19 @@ zig build -Dtarget=x86_64-windows [source,c] ---- -#include "{{project}}.h" +#include "atoma.h" int main() { - void* handle = {{project}}_init(); + void* handle = atoma_init(); if (!handle) return 1; - int result = {{project}}_process(handle, 42); + int result = atoma_process(handle, 42); if (result != 0) { - const char* err = {{project}}_last_error(); + const char* err = atoma_last_error(); fprintf(stderr, "Error: %s\n", err); } - {{project}}_free(handle); + atoma_free(handle); return 0; } ---- @@ -257,14 +257,14 @@ int main() { Compile with: [source,bash] ---- -gcc -o example example.c -l{{project}} -L./zig-out/lib +gcc -o example example.c -latoma -L./zig-out/lib ---- ==== From Idris2 [source,idris] ---- -import {{PROJECT}}.ABI.Foreign +import ATOMA.ABI.Foreign main : IO () main = do @@ -282,22 +282,22 @@ main = do [source,rust] ---- -#[link(name = "{{project}}")] +#[link(name = "atoma")] extern "C" { - fn {{project}}_init() -> *mut std::ffi::c_void; - fn {{project}}_free(handle: *mut std::ffi::c_void); - fn {{project}}_process(handle: *mut std::ffi::c_void, input: u32) -> i32; + fn atoma_init() -> *mut std::ffi::c_void; + fn atoma_free(handle: *mut std::ffi::c_void); + fn atoma_process(handle: *mut std::ffi::c_void, input: u32) -> i32; } fn main() { unsafe { - let handle = {{project}}_init(); + let handle = atoma_init(); assert!(!handle.is_null()); - let result = {{project}}_process(handle, 42); + let result = atoma_process(handle, 42); assert_eq!(result, 0); - {{project}}_free(handle); + atoma_free(handle); } } ---- @@ -306,21 +306,21 @@ fn main() { [source,julia] ---- -const lib{{project}} = "lib{{project}}" +const libatoma = "libatoma" function init() - handle = ccall((:{{project}}_init, lib{{project}}), Ptr{Cvoid}, ()) + handle = ccall((:atoma_init, libatoma), Ptr{Cvoid}, ()) handle == C_NULL && error("Failed to initialize") handle end function process(handle, input) - result = ccall((:{{project}}_process, lib{{project}}), Cint, (Ptr{Cvoid}, UInt32), handle, input) + result = ccall((:atoma_process, libatoma), Cint, (Ptr{Cvoid}, UInt32), handle, input) result end function cleanup(handle) - ccall((:{{project}}_free, lib{{project}}), Cvoid, (Ptr{Cvoid},), handle) + ccall((:atoma_free, libatoma), Cvoid, (Ptr{Cvoid},), handle) end # Usage @@ -377,7 +377,7 @@ When modifying the ABI/FFI: 2. **Generate C header** ```bash - idris2 --cg c-header src/interface/Abi/Types.idr -o generated/abi/{{project}}.h + idris2 --cg c-header src/interface/Abi/Types.idr -o generated/abi/atoma.h ``` 3. **Update FFI implementation** (`ffi/zig/src/main.zig`) @@ -396,10 +396,10 @@ When modifying the ABI/FFI: === License -{{LICENSE}} +MPL-2.0 === See Also - https://idris2.readthedocs.io[Idris2 Documentation] - https://ziglang.org/documentation/master/[Zig Documentation] -- https://github.com/{{OWNER}}/rhodium-standard-repositories[Rhodium Standard Repositories] +- https://github.com/hyperpolymath/rhodium-standard-repositories[Rhodium Standard Repositories] diff --git a/docs/governance/CRG-AUDIT-TEMPLATE.adoc b/docs/governance/CRG-AUDIT-TEMPLATE.adoc index 192c5f93..ce8e3213 100644 --- a/docs/governance/CRG-AUDIT-TEMPLATE.adoc +++ b/docs/governance/CRG-AUDIT-TEMPLATE.adoc @@ -1,8 +1,8 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell -= {{PROJECT_NAME}} — CRG Audit ({{CURRENT_DATE}}) -{{AUTHOR}} -{{CURRENT_DATE}} += Atoma — CRG Audit (2026-11-07) +Jonathan D.A. Jewell +2026-11-07 :toc: :sectnums: @@ -18,17 +18,17 @@ == Scope and Standard -Evaluates the `{{REPO}}` repository against +Evaluates the `atoma` repository against *Component Readiness Grades v2.0 (STRICT)*, 2026-03-30 revision. - Standard: `standards/component-readiness-grades/COMPONENT-READINESS-GRADES.md` -- Template (criteria boilerplate): `rsr-template-repo/docs/governance/CRG-CRITERIA.adoc` +- Template (criteria boilerplate): `atoma/docs/governance/CRG-CRITERIA.adoc` - Self-declared grade (prior art): * `docs/status/ROADMAP.adoc` → `Declared CRG grade: ` line * `docs/READINESS.md` (if present) → per-component grades * Third-party badges (Glama, OpenSSF, etc.) if any — note date and scope -- Audit date: {{CURRENT_DATE}} -- Auditor: {{AUTHOR}} +- Audit date: 2026-11-07 +- Auditor: Jonathan D.A. Jewell The audit grades the repo *as-is today*, not aspirationally. @@ -49,7 +49,7 @@ The audit grades the repo *as-is today*, not aspirationally. Publication requires B+. Long alpha is discipline, not shame. -== Evidence Inventory (verified {{CURRENT_DATE}}) +== Evidence Inventory (verified 2026-11-07) === Structural compliance (Grade D floor) @@ -101,7 +101,7 @@ Do *not* mark PRESENT without citing the path. | Build-system policy (RSR R-020) | Remote -| `git@{{FORGE}}:{{OWNER}}/{{REPO}}.git` (origin only) / drift +| `git@github.com:hyperpolymath/atoma.git` (origin only) / drift | `git remote -v` |=== @@ -135,7 +135,7 @@ RSR compliance verdict: *met* / *partial* / *not met* — Grade D floor satisfie | Dangerous-pattern scan (`assert_total`, `Admitted`, `sorry`, `unsafeCoerce`, `Obj.magic`) | N -| Grepped {{CURRENT_DATE}}. +| Grepped 2026-11-07. |=== === Test matrix @@ -283,7 +283,7 @@ them. Examples: - `docs/READINESS.md` — per-component table. Note v1.0-vs-v2.0 schema alignment. - `*_chora.deed` (repo deed) — authoritative phase and maturity (`(status)`, `(maturity)`). - `docs/status/ROADMAP.adoc` — milestones, evidence and the declared CRG grade. -- `docs/governance/CRG-LIFT-PLAN-{{CURRENT_DATE}}.adoc` — companion plan for +- `docs/governance/CRG-LIFT-PLAN-2026-11-07.adoc` — companion plan for D→C (and medium-term C→B) lifts. - `docs/governance/CRG-CRITERIA.adoc` — boilerplate criteria doc. diff --git a/docs/governance/TEMPLATE-LINEAGE-AUDIT.adoc b/docs/governance/TEMPLATE-LINEAGE-AUDIT.adoc index 9c64d8ae..e2e5210b 100644 --- a/docs/governance/TEMPLATE-LINEAGE-AUDIT.adoc +++ b/docs/governance/TEMPLATE-LINEAGE-AUDIT.adoc @@ -51,7 +51,7 @@ ____ NOTE: 2026-10-02 — rsr-template-repo#209 retired STATE/META/ECOSYSTEM/AGENTIC/CLADE.a2ml; their content is now in the repo deed (`*_chora.deed`) and `docs/status/ROADMAP.adoc`. -The ordinary mint path rewrites `{{OWNER}}`, `{{REPO}}` and friends. Those +The ordinary mint path rewrites `hyperpolymath`, `atoma` and friends. Those tokens *are* consumed widely — 56 files in this repository, including the README badge block, `CITATION.cff`, `.github/CODEOWNERS`, `.github/settings.yml` and the three AI-assistant rule files. The problem is @@ -195,7 +195,7 @@ both files. NOTE: 2026-10-02 — in this template, rsr-template-repo#209 retired CLADE.a2ml; the canonical name now lives in the repo deed header (`:canonical-name`). *Severity is lower than it appears.* Across every `Justfile` and `*.just` in -that repository there are *zero* `{{OWNER}}` or `{{REPO}}` interpolations, so +that repository there are *zero* `hyperpolymath` or `atoma` interpolations, so neither variable is consumed by any recipe. This is a wrong self-description with no runtime effect — worth fixing because a template propagates its own mistakes, not because anything currently misbehaves. diff --git a/docs/onboarding/QUICKSTART-DEV.adoc b/docs/onboarding/QUICKSTART-DEV.adoc index d2c4a5ef..8a4a2c79 100644 --- a/docs/onboarding/QUICKSTART-DEV.adoc +++ b/docs/onboarding/QUICKSTART-DEV.adoc @@ -1,14 +1,14 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell // Template: QUICKSTART-DEV.adoc — clone → build → test → PR -// Replace rsr-template-repo, {{BUILD_CMD}}, {{TEST_CMD}}, {{LANG_STACK}} with actuals -= rsr-template-repo — Quick Start for Developers +// Replace atoma, UNASSIGNED, UNASSIGNED, UNASSIGNED with actuals += atoma — Quick Start for Developers :toc: :toclevels: 2 == Tech Stack -{{LANG_STACK}} +UNASSIGNED == Set Up Development Environment @@ -23,8 +23,8 @@ guix shell [source,bash] ---- -git clone https://github.com/hyperpolymath/rsr-template-repo.git -cd rsr-template-repo +git clone https://github.com/hyperpolymath/atoma.git +cd atoma just setup-dev ---- @@ -32,21 +32,21 @@ just setup-dev [source,bash] ---- -{{BUILD_CMD}} +UNASSIGNED ---- == Test [source,bash] ---- -{{TEST_CMD}} +UNASSIGNED ---- == Project Structure [source] ---- -rsr-template-repo/ +atoma/ ├── src/ # Source code ├── src/interface/Abi/ # Idris2 ABI definitions (if applicable) ├── ffi/zig/ # Zig FFI bridge (if applicable) @@ -84,7 +84,7 @@ just panic-scan # No new security issues Read `.machine_readable/MUST.contractile` before making changes. Key invariants that must never be violated: -{{MUST_INVARIANTS}} +UNASSIGNED == LLM/AI Agent Development @@ -100,5 +100,5 @@ Or read the repo deed (`*_chora.deed` at root) and `.claude/CLAUDE.md` directly. == Get Help * **Architecture**: link:EXPLAINME.adoc[EXPLAINME.adoc] -* **Wiki**: https://github.com/hyperpolymath/rsr-template-repo/wiki +* **Wiki**: https://github.com/hyperpolymath/atoma/wiki * **Report issue**: `just help-me` diff --git a/docs/onboarding/QUICKSTART-MAINTAINER.adoc b/docs/onboarding/QUICKSTART-MAINTAINER.adoc index aaaa3484..015b8960 100644 --- a/docs/onboarding/QUICKSTART-MAINTAINER.adoc +++ b/docs/onboarding/QUICKSTART-MAINTAINER.adoc @@ -1,30 +1,30 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell // Template: QUICKSTART-MAINTAINER.adoc — packaging, deploying, and maintaining -// Replace rsr-template-repo, {{PACKAGE_NAME}}, {{DEPS}} with actuals -= rsr-template-repo — Quick Start for Platform Maintainers +// Replace atoma, UNASSIGNED, UNASSIGNED with actuals += atoma — Quick Start for Platform Maintainers :toc: :toclevels: 2 == Overview -This guide covers packaging, deploying, and maintaining rsr-template-repo for +This guide covers packaging, deploying, and maintaining atoma for distribution on your platform. == Runtime Dependencies -{{DEPS}} +UNASSIGNED == Build from Source [source,bash] ---- -git clone https://github.com/hyperpolymath/rsr-template-repo.git -cd rsr-template-repo +git clone https://github.com/hyperpolymath/atoma.git +cd atoma just build-release ---- -Output: `{{BUILD_OUTPUT_PATH}}` +Output: `UNASSIGNED` == Packaging @@ -40,7 +40,7 @@ guix build -f build/guix.scm [source,bash] ---- just stapeln-export # Generates Containerfile -podman build -t rsr-template-repo . +podman build -t atoma . ---- === Manual Package @@ -59,10 +59,10 @@ Files installed: | `$PREFIX/bin/` | Executables -| `$PREFIX/share/{{PACKAGE_NAME}}/` +| `$PREFIX/share/UNASSIGNED/` | Data files, assets -| `$PREFIX/share/doc/{{PACKAGE_NAME}}/` +| `$PREFIX/share/doc/UNASSIGNED/` | Documentation | `$PREFIX/share/applications/` @@ -74,9 +74,9 @@ Files installed: == Configuration -Default config location: `$XDG_CONFIG_HOME/{{PACKAGE_NAME}}/config.toml` +Default config location: `$XDG_CONFIG_HOME/UNASSIGNED/config.toml` -Fallback: `$HOME/.config/{{PACKAGE_NAME}}/config.toml` +Fallback: `$HOME/.config/UNASSIGNED/config.toml` == Health Checks @@ -96,7 +96,7 @@ just build-release just install --prefix=/usr/local ---- -Or via OPSM: `opsm update {{PACKAGE_NAME}}` +Or via OPSM: `opsm update UNASSIGNED` == Security Notes @@ -111,13 +111,13 @@ For deploying multiple instances (e.g., different users or tenants): [source,bash] ---- -just install --prefix=/opt/{{PACKAGE_NAME}}-instance1 --config=/etc/{{PACKAGE_NAME}}/instance1.toml -just install --prefix=/opt/{{PACKAGE_NAME}}-instance2 --config=/etc/{{PACKAGE_NAME}}/instance2.toml +just install --prefix=/opt/UNASSIGNED-instance1 --config=/etc/UNASSIGNED/instance1.toml +just install --prefix=/opt/UNASSIGNED-instance2 --config=/etc/UNASSIGNED/instance2.toml ---- Each instance has isolated config, data, and logs. == Reporting Issues -* Upstream: https://github.com/hyperpolymath/rsr-template-repo/issues +* Upstream: https://github.com/hyperpolymath/atoma/issues * With diagnostic: `just help-me` (pre-fills context) diff --git a/docs/onboarding/QUICKSTART-USER.adoc b/docs/onboarding/QUICKSTART-USER.adoc index 0893e633..60186bf1 100644 --- a/docs/onboarding/QUICKSTART-USER.adoc +++ b/docs/onboarding/QUICKSTART-USER.adoc @@ -1,12 +1,12 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell // Template: QUICKSTART-USER.adoc — 5-minute path to working software -// Replace rsr-template-repo, Rsr Template Repo — See README.adoc for details., just run, Rsr Template Repo started successfully. with actuals -= rsr-template-repo — Quick Start for Users +// Replace atoma, Rsr Template Repo — See README.adoc for details., just run, Rsr Template Repo started successfully. with actuals += atoma — Quick Start for Users :toc: :toclevels: 2 -== What is rsr-template-repo? +== What is atoma? Rsr Template Repo — See README.adoc for details. @@ -38,8 +38,8 @@ Before you begin, ensure you have: [source,bash] ---- # Clone and set up -git clone https://github.com/hyperpolymath/rsr-template-repo.git -cd rsr-template-repo +git clone https://github.com/hyperpolymath/atoma.git +cd atoma just setup ---- @@ -62,7 +62,7 @@ just stapeln-run [source,bash] ---- -just install --portable --prefix=./rsr-template-repo-portable +just install --portable --prefix=./atoma-portable ---- == First Run @@ -103,7 +103,7 @@ just heal * **In-app**: `just run --help` * **Guided tour**: `just tour` * **Report a problem**: `just help-me` (pre-fills diagnostic context) -* **Wiki**: https://github.com/hyperpolymath/rsr-template-repo/wiki +* **Wiki**: https://github.com/hyperpolymath/atoma/wiki == Uninstall diff --git a/docs/onboarding/llm-warmup-dev.adoc b/docs/onboarding/llm-warmup-dev.adoc index 8b65d04a..414f61b1 100644 --- a/docs/onboarding/llm-warmup-dev.adoc +++ b/docs/onboarding/llm-warmup-dev.adoc @@ -1,12 +1,12 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) -= LLM warm-up — rsr-template-repo (developer) += LLM warm-up — atoma (developer) -Paste this into an AI assistant before changing code in rsr-template-repo. +Paste this into an AI assistant before changing code in atoma. == Orientation -rsr-template-repo (https://github.com/hyperpolymath/rsr-template-repo): a library in idris2, zig. +atoma (https://github.com/hyperpolymath/atoma): a library in idris2, zig. The template's own code is the ABI/FFI seam that every minted repo inherits: diff --git a/docs/onboarding/llm-warmup-maintainer.adoc b/docs/onboarding/llm-warmup-maintainer.adoc index 0ebbfac4..7bc27d31 100644 --- a/docs/onboarding/llm-warmup-maintainer.adoc +++ b/docs/onboarding/llm-warmup-maintainer.adoc @@ -1,9 +1,9 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) -= LLM warm-up — rsr-template-repo (maintainer) += LLM warm-up — atoma (maintainer) Paste this into an AI assistant before release, CI or governance work on -rsr-template-repo. Read `llm-warmup-dev.adoc` first; this adds what a maintainer owns. +atoma. Read `llm-warmup-dev.adoc` first; this adds what a maintainer owns. == The provisioning set diff --git a/docs/onboarding/llm-warmup-user.adoc b/docs/onboarding/llm-warmup-user.adoc index 5d56ae79..fb5dd583 100644 --- a/docs/onboarding/llm-warmup-user.adoc +++ b/docs/onboarding/llm-warmup-user.adoc @@ -1,19 +1,19 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) -= LLM warm-up — rsr-template-repo (user) += LLM warm-up — atoma (user) Paste this whole file into any AI assistant before asking it about -rsr-template-repo. It tells the assistant what the project is, how a person gets it +atoma. It tells the assistant what the project is, how a person gets it running, and where to look when something goes wrong. == What it is -rsr-template-repo (https://github.com/hyperpolymath/rsr-template-repo) is a library written in idris2, zig. +atoma (https://github.com/hyperpolymath/atoma) is a library written in idris2, zig. It is not a project in its own right: it is the template every new hyperpolymath repository is created from. It ships CI/CD, machine-readable metadata (`.machine_readable/descriptiles/`), an AI gatekeeper deed -(`rsr-template-repo_chora.deed`), a typed ABI/FFI seam (Idris2 over Zig), Guix and +(`atoma_chora.deed`), a typed ABI/FFI seam (Idris2 over Zig), Guix and mise toolchains, and governance files, all passing the RSR validators before you add a line of your own. @@ -22,7 +22,7 @@ add a line of your own. The supported routes, in order of ease: . *Ask an AI*: follow `docs/AI_INSTALLATION_GUIDE.adoc` in the repository. -. *The launcher*: `git clone https://github.com/hyperpolymath/rsr-template-repo.git && cd rsr-template-repo && ./launcher.sh --setup` +. *The launcher*: `git clone https://github.com/hyperpolymath/atoma.git && cd atoma && ./launcher.sh --setup` . *By hand*: `docs/SETUP.adoc`, every step explained. Prerequisites are git, a C toolchain and mise; everything else is installed by diff --git a/docs/plan/ULTRAPLAN.adoc b/docs/plan/ULTRAPLAN.adoc index 8b854f7c..56158200 100644 --- a/docs/plan/ULTRAPLAN.adoc +++ b/docs/plan/ULTRAPLAN.adoc @@ -37,7 +37,7 @@ The following gaps remain central: declarations and admitted skeletons are not checked proof translations. * Store, loops, aliasing, capabilities, modular calls and source refinement remain unproved. There is no sound general Zig verifier yet. -* The inherited deed/arrival pack still describe a template. Estate compliance +* The deed/arrival pack now identify experimental Atoma. Estate compliance is not certified. CI provisioning has a bounded documented deviation; Guix closure and all generic estate workflows are separate outstanding work. @@ -107,7 +107,7 @@ alternative spelling of done. Owners below are roles, not assigned people. [cols="1,2,4",options="header"] |=== | IDs | State / owner | Scope and next acceptance -| A1 | blocked / owner | Mint identity separately without automated licence edits; remove inherited production claims. +| A1 | implemented / maintainer | Identity and ownership rendered from the canonical initializer; original template provenance recovered; existing licence terms preserved. External registry publication and release certification remain separate. | A2 | done / maintainer | About and 20 topics read back in recon; keep the metadata script/live About coherent and cautious about certificates. | A3 | implemented / proof maintainer | Atoma modules registered; scoped unlisted/stale-entry checks are part of the gate. | A4 | partial / build maintainer | Pinned CI provisioning and recorded local profile; Guix closure/transitive reproducibility open. diff --git a/docs/practice/AI-CONVENTIONS.adoc b/docs/practice/AI-CONVENTIONS.adoc index a2e60d7f..d087446f 100644 --- a/docs/practice/AI-CONVENTIONS.adoc +++ b/docs/practice/AI-CONVENTIONS.adoc @@ -2,7 +2,7 @@ // Copyright (c) Jonathan D.A. Jewell = AI Conventions // SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) == AI Conventions (Authoritative Source) @@ -38,9 +38,9 @@ Per estate policy (hyperpolymath/standards `LICENCE-POLICY.adoc` Rule 1 + Addend === Author Attribution -- Name: **{{AUTHOR}}** -- Email: **{{AUTHOR_EMAIL}}** -- Copyright: `Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}>` +- Name: **Jonathan D.A. Jewell** +- Email: **j.d.a.jewell@open.ac.uk** +- Copyright: `Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) ` === State Files diff --git a/docs/practice/STATE-VISUALIZER-GUIDE.adoc b/docs/practice/STATE-VISUALIZER-GUIDE.adoc index dc9a561d..705576f2 100644 --- a/docs/practice/STATE-VISUALIZER-GUIDE.adoc +++ b/docs/practice/STATE-VISUALIZER-GUIDE.adoc @@ -1,7 +1,7 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell = TOPOLOGY.md — Generation Guide -{{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Jonathan D.A. Jewell (hyperpolymath) :toc: :sectnums: @@ -62,7 +62,7 @@ The file must contain exactly three sections: Add a header comment with SPDX-License-Identifier and Last updated date. End with an "Update Protocol" section explaining how to maintain the file. -Use the template at TOPOLOGY.md in rsr-template-repo as a structural reference, +Use the template at TOPOLOGY.md in atoma as a structural reference, but make the content completely specific to THIS project. ---- @@ -70,7 +70,7 @@ but make the content completely specific to THIS project. [source,bash] ---- -cp /path/to/rsr-template-repo/TOPOLOGY.md ./TOPOLOGY.md +cp /path/to/atoma/TOPOLOGY.md ./TOPOLOGY.md # Then edit: replace placeholders, draw the real architecture, fill the dashboard ---- @@ -154,4 +154,4 @@ _structured data_ for tooling. Both should agree. == Copyright -Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> +Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) diff --git a/docs/practice/ci-cost-reduction.adoc b/docs/practice/ci-cost-reduction.adoc index 705c637a..6d2283e7 100644 --- a/docs/practice/ci-cost-reduction.adoc +++ b/docs/practice/ci-cost-reduction.adoc @@ -214,8 +214,8 @@ Recommendations: === 7. Reusable workflow (longer-term) Ship the above patterns in a single reusable workflow under -`rsr-template-repo/.github/workflows/rsr-ci-defaults.yml`, and adopt -it estate-wide via `uses: hyperpolymath/rsr-template-repo/.github/workflows/rsr-ci-defaults.yml@main` +`atoma/.github/workflows/rsr-ci-defaults.yml`, and adopt +it estate-wide via `uses: hyperpolymath/atoma/.github/workflows/rsr-ci-defaults.yml@main` in downstream repos. Single PR propagates improvements. === 8. Self-hosted runner for heavy work (long-term) @@ -274,5 +274,5 @@ frequency × job count). incident that motivated this spec. * `007-lang/audits/audit-dependabot-automation-gap-2026-04-17.md` — separate defect stack also addressed in the same session. -* `rsr-template-repo/.github/workflows/dependabot-automerge.yml` — +* `atoma/.github/workflows/dependabot-automerge.yml` — canonical pattern for auto-merge pattern referenced above. diff --git a/docs/status/PROOF-NEEDS.adoc b/docs/status/PROOF-NEEDS.adoc index aabe3c2b..f59b7803 100644 --- a/docs/status/PROOF-NEEDS.adoc +++ b/docs/status/PROOF-NEEDS.adoc @@ -2,7 +2,7 @@ // Copyright (c) Jonathan D.A. Jewell // Template: rsr-template-repo/docs/status/PROOF-NEEDS.adoc // Authoritative master list: ~/Desktop/PROOF-REQUIREMENTS-MASTER.adoc -= Proof Requirements — {{PROJECT}} += Proof Requirements — atoma == Proof Tier diff --git a/docs/status/PROOF-STATUS.adoc b/docs/status/PROOF-STATUS.adoc index aca702cf..61a0bd0f 100644 --- a/docs/status/PROOF-STATUS.adoc +++ b/docs/status/PROOF-STATUS.adoc @@ -1,101 +1,30 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell -// Template: rsr-template-repo/docs/status/PROOF-STATUS.adoc -// Tracks proof completion. Requirements defined in PROOF-NEEDS.adoc -= Proof Status — {{PROJECT}} - -== Summary - -[cols="2,1,1,1,1,1", options="header"] -|=== -| Category | Total | Done | In Progress | Blocked | Remaining - -| ABI/FFI (ABI) | 5 | 0 | 0 | 0 | 5 -| Typing (TP) | 2 | 0 | 0 | 0 | 2 -| Invariant (INV) | 0 | 0 | 0 | 0 | 0 -| Security (SEC) | 0 | 0 | 0 | 0 | 0 -| Concurrency (CONC) | 0 | 0 | 0 | 0 | 0 -| Algorithm (ALG) | 0 | 0 | 0 | 0 | 0 -| Domain (DOM) | 0 | 0 | 0 | 0 | 0 -| *Total* | *7* | *0* | *0* | *0* | *7* -|=== - -*Overall*: 0% proven - -== Proofs Done - -// Format: -// | ID | Proof | Prover | File | Date | Verified By | -// | ABI-1 | Non-null pointer proofs | Idris2 | verification/proofs/idris2/ABI/Pointers.idr | 2026-XX-XX | idris2 --check | - -[cols="1,3,1,3,1,2", options="header"] -|=== -| ID | Proof | Prover | File | Date | Verified By - -| — | No proofs completed yet | — | — | — | — -|=== - -== Proofs In Progress - -[cols="1,3,1,2,1,2", options="header"] -|=== -| ID | Proof | Prover | Assignee | Started | Blocker - -| — | — | — | — | — | — -|=== - -== Proofs Blocked - -[cols="1,3,2,3", options="header"] -|=== -| ID | Proof | Blocked By | Notes - -| — | — | — | — -|=== - -== Proofs Remaining - -[cols="1,3,1,1,1,1", options="header"] -|=== -| ID | Proof | Category | Prover | Priority | Est. Effort - -| ABI-1 | Non-null pointer proofs | ABI | Idris2 | P1 | 2h -| ABI-2 | Memory layout correctness | ABI | Idris2 | P1 | 4h -| ABI-3 | Platform type size proofs | ABI | Idris2 | P1 | 2h -| ABI-4 | FFI function return type proofs | ABI | Idris2 | P1 | 2h -| ABI-5 | C ABI compliance | ABI | Idris2 | P1 | 4h -| TP-1 | Core data type well-formedness | TP | Idris2 | P1 | 4h -| TP-2 | Public API type safety | TP | Lean4 | P2 | 4h -|=== - -== Verification Commands - -[source,bash] ----- -# Check all Idris2 proofs -just proof-check-idris2 - -# Check all Lean4 proofs -just proof-check-lean4 - -# Check all Agda proofs -just proof-check-agda - -# Check all Coq proofs -just proof-check-coq - -# Run all proof checks -just proof-check-all - -# Scan for dangerous patterns -panic-attack assail --proofs-only ----- - -== Changelog - -[cols="1,3,1", options="header"] -|=== -| Date | Change | By - -| 2026-04-04 | Initial proof status tracking | Template -|=== += Atoma proof status +:revdate: 2026-11-07 + +Evidence remains *INCOMPLETE / Warrant*. Counts below describe scoped checks; +they are not a fraction of Zig soundness or a release-readiness percentage. + +[cols="2,3,3",options="header"] +|=== +| Surface | Checked evidence | Limit +| Frame specification | Three Idris modules, executable canonical extraction, +linear drop/duplicate negatives | QTT resource model; no executable Idris FFI +| Store-free metatheory | Four registered Agda modules, no postulates | No +refinement theorem connecting the actual Zig frontend/compiler to this model +| Source u8 pilot | Generated QF_BV verdicts and exhaustive model/compiled +execution over 256 inputs; wrong body rejected | Parser/lowering/compiler +remain trusted; general calls, imports, memory and loops are refused +| Legacy frame SMT | Eight unsat and six sat model obligations | Not derived +from the frame implementation body +| Independent replay | Pending next milestone | No complete +ECHIDNA/Dedukti/Coq/Lean4 chain has been demonstrated +|=== + +The inherited general ABI scaffold has four Idris quarantines. Its Types model +is gated; this does not establish native foreign-boundary correctness. +The manifests in `verification/proofs/` declare exact checked/quarantined scope. + +See link:../plan/ULTRAPLAN.adoc[the stable task register] and +link:../audit/2026-11-07-soundness-sprint.adoc[the repair evidence]. diff --git a/docs/status/READINESS.adoc b/docs/status/READINESS.adoc index b34e6a11..b43e513e 100644 --- a/docs/status/READINESS.adoc +++ b/docs/status/READINESS.adoc @@ -1,188 +1,20 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell -= {{PROJECT_NAME}} Component Readiness Assessment - -*Standard:* link:https://{{FORGE}}/{{OWNER}}/standards/tree/main/component-readiness-grades[Component Readiness Grades (CRG) v2.0 STRICT] + -*Assessed:* {{CURRENT_DATE}} + -*Assessor:* {{AUTHOR}} + -*Previous assessment:* __ += Atoma component readiness +:revdate: 2026-11-07 *Current Grade:* X -This line is parsed by `just crg-grade` / `just crg-badge`. The grade above is -the worst-graded in-scope component — *the project's weakest link sets its -grade*. See the per-component table in §3. - -[NOTE] -==== -*Honest grading.* Per CRG v2.0 Principle 4: grade as-is today, not -aspirationally. Long alpha is discipline, not shame. Demote immediately if -evidence doesn't support the claim. -==== - -''' - -== 1. CRG v2.0 Grade Reference - -[cols="1,2,2,3,2", options="header"] -|=== -| Grade | Name | Release Stage | Stability Posture | Shorthand - -| X | Untested | — | — | — -| F | Harmful / Wasteful | — | — | reject/delegate -| E | Minimal / Salvageable | Pre-alpha | Unstable | `pre-alpha` -| D | Partial / Inconsistent| Alpha | Unstable | `alpha-unstable` -| C | Self-Validated | Alpha | Stable in home context | `alpha-stable` -| B | Broadly Validated | Beta | Stable for broad trial | `beta-stable` -| A | Field-Proven | Stable | Stable | `stable` -|=== - -*Evidence gates (v2.0 is stricter than v1.0):* - -* *D*: RSR-compliant + per-capability tests + documented scope. Test matrix - must cite counts and live in `docs/status/ROADMAP.adoc` or CI. -* *C*: All of D, plus active dogfooding in home context with *no known - home-context failures over an evidence window*, plus *deep per-file and - per-directory annotation* (purpose, boundaries, invariants, - execution/test/proof surfaces, per-directory orientation READMEs). - `docs/status/ROADMAP.adoc` `== Dogfooding status` populated with concrete - "done — " entries. -* *B*: All of C, plus *six genuinely diverse external targets* with - feedback fed back. ROADMAP.adoc `== External targets` holds target identities - + dates + outcomes; `== Issues fed back` holds the closed-issue trail. - Internal-capability items do *not* count. -* *A*: All of B, plus multi-source real-world external feedback confirming - value, no harm in the wild. ROADMAP.adoc `== Field signal` populated. - -*Publication gate:* non-abstract implementation claims require *B+*. -Below B, any publication must be explicitly abstract or provisional. - -''' - -== 2. Headline Evidence (as of {{CURRENT_DATE}}) - -[cols="2,3,3", options="header"] -|=== -| Metric | Value | Source - -| Test count | __ | `docs/status/ROADMAP.adoc` or CI -| Formal-verification posture | __ | grep of proof dirs -| Dangerous patterns (`assert_total`, `unsafeCoerce`, `Obj.magic`) | __ | grep {{CURRENT_DATE}} -| Per-unit README coverage | __ | filesystem scan of unit dirs -| CI status | __ | `.github/workflows/` -| RSR mandatory workflows | __ | `.github/workflows/` -| Third-party badges (if any) | __ | external -| LIVE deployment (if any) | __ | production -|=== - -''' - -== 3. Component Assessment - -All components graded *as-is today*, per CRG v2.0 Principle 4. Stability -posture reflects the component's state *within its home context only* -unless noted. - -[cols="2,1,1,3,3,2", options="header"] -|=== -| Component | Grade | Posture | Evidence Summary | Promotion blocker | Last Assessed - -| __ | X/F/E/D/C/B/A | __ | __ | __ | {{CURRENT_DATE}} -| __ | … | … | … | … | {{CURRENT_DATE}} -| __ | … | … | … | … | {{CURRENT_DATE}} -|=== - -*Rules of thumb for populating this table:* - -* One row per independently-gradable unit. If a subsystem can ship or break - independently, it gets its own row. -* Evidence Summary must cite *numbers* (test counts, LOC, file counts) or - *paths* (e.g. `src/interface/Abi/Module.idr`), never vague claims. -* Promotion blocker must be *actionable* — "add external consumer in home - context, then annotate" beats "needs more validation". -* Re-assess every release cycle; date-stamp each row. - -''' - -== 4. What's Needed for D → C - -CRG v2.0 requires two new pieces of evidence on top of D: - -. *Active dogfooding in home context with no known home-context failures.* -** Start date: __. -** Home context: __. -** "No known failures" is a moving claim — must hold continuously across - the evidence window (recommended: 4 weeks, daily use). -** Populate `== Dogfooding status` in `docs/status/ROADMAP.adoc` with one entry - per capability: ` — done — `. - -. *Deep code and folder annotation.* -** Per-directory orientation READMEs in every non-trivial source subtree. -** Per-file header comments: purpose, boundaries, invariants, - execution/test/proof surface. -** Per-unit (cartridge/panel/plugin/module) README covering: purpose, - tools, architecture-at-a-glance, build steps. Overview-level alone is - not sufficient — depth is required where a reviewer would otherwise - have to read source to orient. - -*Minimum first-ring targets for C promotion:* list the trunk components -here. If these aren't C, nothing else can be. - -''' - -== 5. What's Needed for C → B - -Six *genuinely diverse* external targets with feedback fed back into the -component. Candidate diversity axes: - -* Different language runtime (not just variants of the same one). -* Different OS family (at least one must not be Linux). -* Different hardware class (cloud / server / desktop / embedded / mobile). -* Different auth posture (unauthenticated, API-key, vault-brokered, mTLS). -* Different topology (star, mesh, peer-to-peer). -* Different trust model (same-org, federated, adversarial). - -Populate `docs/status/ROADMAP.adoc`: - -* `== External targets` — target-id → ` — — `. -* `== Issues fed back` — issue-id → ` — — `. - -Six variations of the same use case do *not* count. Re-classify any items -currently under other roadmap sections and move external-eligible ones -into `== External targets`. - -''' - -== 6. What's Needed for B → A - -Real-world external feedback confirming value. Populate -`== Field signal` in `docs/status/ROADMAP.adoc` with multi-source entries: - -* External users beyond the six B-targets. -* Third-party writeups, talks, papers, or testimonials. -* No unresolved safety / correctness incidents in the last 90 days. - -''' - -== 7. Summary ({{CURRENT_DATE}}) - -* Project grade: __. Why: _<1-2 line justification>_. -* Delta since last assessment: __. -* Next milestone: __. -* Machine-readable grade line present (§ header) for `just crg-grade` / `just crg-badge`. - -''' - -== 8. Companion Artefacts +This is a provisional unqualified estate grade, not a completed CRG assessment +or an owner's signed certification. The worst unfinished verification boundary +prevents promotion; it does not mean the existing tests never ran. -* `docs/governance/CRG-CRITERIA.adoc` — grade definitions (boilerplate). -* `docs/governance/CRG-AUDIT-.adoc` — formal audit (populate from - `rsr-template-repo/docs/governance/CRG-AUDIT-TEMPLATE.adoc`). -* `docs/practice/DOGFOOD-LOG.adoc` — dated dogfood evidence (required for C). -* `docs/status/ROADMAP.adoc` — evidence journal (sections - `== Dogfooding status`, `== External targets`, `== Issues fed back`, - `== Field signal`, and a `Declared CRG grade:` line). -* `*_chora.deed` (repo deed) — authoritative phase and maturity (`(status)`, - `(maturity)`). +The source pilot, frame tests, Idris extraction and Agda model checks have +recorded evidence. General source refinement, memory/alias semantics, independent +replay, external consumers and the release standards audit remain unfinished. +Identity/ownership repair removes inherited template claims rather than awarding +the project the template's maturity. -_Run `just crg-badge` to generate the shields.io badge for your README._ +Use link:ROADMAP.adoc[the current roadmap], +link:PROOF-STATUS.adoc[scope-specific proof status] and +link:../plan/ULTRAPLAN.adoc[v1 conjunctive acceptance gates]. diff --git a/docs/status/ROADMAP.adoc b/docs/status/ROADMAP.adoc index c15e9c13..8998a40c 100644 --- a/docs/status/ROADMAP.adoc +++ b/docs/status/ROADMAP.adoc @@ -1,81 +1,38 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // Copyright (c) Jonathan D.A. Jewell -= Atoma roadmap entry point += Atoma roadmap +:revdate: 2026-11-07 -The active Atoma plan is link:../plan/ULTRAPLAN.adoc[the soundness-first v1 -plan]. Its source/proof boundary and current limitations are authoritative for -Atoma work. The inherited template journal below is historical scaffold -content awaiting A1 identity minting; its percentages are not Atoma readiness. +The active link:../plan/ULTRAPLAN.adoc[v1 plan] owns milestone acceptance and +estimates. Atoma is experimental. There is no overall readiness percentage. -2026-11-07: the proof registry now includes Atoma. The already-repaired -`verification/proofs/idris2/Types.idr` typechecks on the audited Idris2 profile -and is promoted from stale quarantine to gated; the four remaining inherited -ABI quarantines still fail as documented. +== Observed state -== Inherited template journal (not current Atoma status) +The repaired CLI and required soundness gate passed at +`f87b7408ab43d82c555ca8487878f4f5d6ec606b` in hosted run +https://github.com/hyperpolymath/atoma/actions/runs/42403751163[42403751163]. +The source commands reject failed output delivery. Tests cover 24 tool cases, +13 frame cases, all 256 inputs of the compiled u8 pilot, executable Idris +extraction, four Agda modules and eight gate-falsifier groups. -The journal of the template itself: milestones, blockers and next actions. -A repo minted from the template does not inherit it: `just repo-init` -replaces this file with `build/templates/ROADMAP.adoc.in`. +Identity/ownership repair instantiates the original RSR template provenance, +removes its production claims, and names `atoma_chora.deed`. The PR's current +head must independently pass hosted checks before merge. -Phase and maturity are not recorded here. They live in the repo deed, -`rsr-template-repo_chora.deed`, in the `(status …)` and `(maturity …)` -clauses (`just state-phase` prints both). +== Next acceptance -This file took over the journal half of the retired STATE record -(rsr-template-repo#209), last -updated there on 2026-09-19. STATE also recorded version 0.3.0; the release -version is 0.1.0 (`Justfile`, `CITATION.cff`, tag `v0.1.0`, deed -`(meta :version …)`). +* Source/proof/replay vertical slice: a source-derived obligation accepted by + an independent checker, with exact source/tool identity and stale evidence + rejection. No unproved declaration or admitted theorem may count as replay. +* Typed semantic boundary and explicit memory/alias counterexample. +* Second-language transfer spike before choosing the full sibling sequence. -== Milestones +Store, loops, permissions, compiler refinement and the complete required +kernel chain remain open. A passing scoped gate is not production readiness. -[cols="5,1",options="header"] -|=== -| Milestone | Done +== Dogfooding status -| Phase 0: Core scaffolding (justfile, CI/CD, machine-readable) | 100% -| Phase 1: ABI/FFI standard (Idris2/Zig templates) | 100% -| Phase 1b: AI Gatekeeper Protocol (AI manifest, now the repo deed) | 100% -| Phase 1c: TOPOLOGY.md standard and guide | 100% -| Phase 1d: Maintenance gate (axes, checklist, approach) | 100% -| Phase 1e: Trustfile / contractiles | 100% -| Phase 2: Container ecosystem templates (stapeln) | 100% -| Phase 2b: www/ site-operations bundle + .well-known migration (#53) | 100% -| Phase 2c: Forge & Sustain mechanics — provenance at mint, self-name passes, drift gate, update mechanism (ADR-0003, ratified 2026-09-19) | 100% -| Phase 2d: julia-library archetype overlay + e2e mint test (recon P1.2) | 100% -| Phase 3: Multi-forge sync hardening | 0% -| Phase 4: Guix reproducible shells | 50% -| Phase 4b: RSR oracle dogfood gate in CI (recon P0.2; hypatia M-3 SSOT-path fix is the precondition) | 0% -|=== - -== Blockers - -. Hypatia M-3: `mix hypatia.rsr_score --standards` resolves the SSOT at the - pre-reorg path (`rhodium-standard-repositories/spec/`). A one-line fix is - prepared (recon P0.2/01), pending its PR. The dogfood job works around it - with an explicit `--ssot` until then. -. Estate-wide `actions.lock` sweep (D38/D39 ruling 2026-09-19): the grace - window closed on 2026-10-01. The sweep's estate-wide status is not recorded - here. This repo's own lockfile verifies (`gh actions-lock --no-fix`, rc=0, - 2026-10-02). - -== Next actions - -* Wire the RSR oracle dogfood job in dogfood-gate.yml (recon P0.2) once the hypatia M-3 fix lands -* Record where the estate-wide actions.lock sweep stands now that the 2026-10-01 window has closed (gatekeeper repos first) -* Rebase rsr-julia-library-template-repo onto this spine (recon P1.3 procedure; ADR-0003 now accepted) -* Validate container templates across wolfi-base and static Chainguard images -* Harden multi-forge sync for GitLab/Bitbucket mirroring edge cases -* Expand Guix development shell templates - -== Maintenance runs - -No maintenance run has been recorded. Reports go to -`docs/reports/maintenance/latest.json`. - -== Ecosystem - -Part of the RSR Framework and the stapeln ecosystem. The repos it depends on -(stapeln, selur-compose, cerro-torre, svalinn, vordr, k9-svc) are the -`(related …)` entries of the deed's `(ecosystem …)` clause. +The frame and u8 examples exercise the local verifier/tooling path. No external +consumer evidence window or broad CRG qualification has been established. +The four inherited Idris ABI quarantines remain documented and excluded from +claims about checked implementations. See link:PROOF-STATUS.adoc[proof status]. diff --git a/docs/troubleshooting.adoc b/docs/troubleshooting.adoc new file mode 100644 index 00000000..47d9420e --- /dev/null +++ b/docs/troubleshooting.adoc @@ -0,0 +1,58 @@ +// SPDX-License-Identifier: CC-BY-SA-4.0 +// Copyright (c) Jonathan D.A. Jewell +// SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) += Troubleshooting — Atoma +:revdate: 2026-MM-DD + +This file is a *living FAQ* — known failure modes and recovery paths. +Add a new entry every time you debug something that took more than 15 +minutes; future-you (and other maintainers) will thank you. + +== Known failure modes + +=== `` + +**Symptom**: short reproduction. What does the user see? + +**Cause**: root cause (one or two sentences). + +**Fix**: +[source,bash] +---- + +---- + +**Avoidance**: how to not hit this again (config setting, doc link, etc.). + +--- + +=== `` + +(Replace this and the above example with real entries as you encounter +them.) + +== Diagnostic toolkit + +When something is wrong, run these first: + +[source,bash] +---- +just doctor # runs all available self-checks +just version # prints the version & build hash +just log-tail # last N lines of logs +---- + +== When to escalate + +. Filed an issue with: version, OS, exact command, full error output, + and the symptom in plain English. +. Linked from the issue: the relevant ADR(s) and any related issues. +. For *security*-relevant findings, see + link:./../SECURITY.md[SECURITY.md] — do **not** file public issues. + +== Where to look for more help + +* `docs/architecture.adoc` — internals. +* `docs/decisions/` — historical record of why things are this shape. +* `https://github.com/hyperpolymath/Atoma/issues?q=is%3Aissue+` — has anyone hit this before? +* `https://github.com/hyperpolymath/standards/issues` — for estate-wide problems. diff --git a/docs/usage.adoc b/docs/usage.adoc new file mode 100644 index 00000000..599a3d04 --- /dev/null +++ b/docs/usage.adoc @@ -0,0 +1,82 @@ +// SPDX-License-Identifier: CC-BY-SA-4.0 +// Copyright (c) Jonathan D.A. Jewell +// SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) += Usage — Atoma +:revdate: 2026-MM-DD + +== Audience + +This document is for *consumers* of `Atoma` — people who depend +on it, call it, or include it. For developers working *on* it, see +link:./contributing.adoc[contributing.adoc]. + +== Quickstart + +The shortest path from zero to a working call: + +[source,bash] +---- +# 1. Install +just install # or: cargo install --path . / task install + +# 2. Configure +cp examples/config.example.toml ./config.toml +# Edit minimal required fields. + +# 3. Run +just run # or the equivalent for your language +---- + +Expected output: + +[source] +---- +Atoma v0.0.0 +Listening on 127.0.0.1:8080 +---- + +== Common use cases + +For each canonical use case, give: + +. A one-line statement of the goal. +. The minimal invocation. +. Expected output / side effect. + +=== Use case 1: + +(Replace with real content.) + +=== Use case 2: + +== Configuration reference + +Document every configurable field. Keep this section authoritative — if +the code grows a new option, this table must grow too (CI can be wired +to enforce this). + +[cols="1,1,1,3", options="header"] +|=== +| Field | Type | Default | Meaning + +| `` | `` | `` | +|=== + +== Stability guarantees + +Be explicit: + +* **Stable**: API surfaces that follow SemVer (breaking change = major bump). +* **Unstable**: behind a flag / pre-1.0 / explicitly marked. +* **Internal**: documented for reference but no compatibility promise. + +== Limits & known constraints + +* Maximum supported ``: ``. +* `` is not yet implemented; track at issue `#`. +* On ``, `` behaves differently because ``. + +== See also + +* link:./architecture.adoc[Architecture] — how it works internally. +* link:./troubleshooting.adoc[Troubleshooting] — when things go wrong. diff --git a/launcher.sh b/launcher.sh index 8fb0d7fb..36a66262 100755 --- a/launcher.sh +++ b/launcher.sh @@ -6,12 +6,12 @@ # ;; SPDX-License-Identifier: MPL-2.0 # (praxis-deed # :schema-version "1.0.0" -# :canonical-name "rsr-template-repo-launcher" +# :canonical-name "atoma-launcher" # :beholding-chora #u5"estate/chora" # (artefact :type "launcher" :version "0.1.0" # :generator "provision-set") -# (app :name "rsr-template-repo" :display "rsr-template-repo" -# :url "https://github.com/hyperpolymath/rsr-template-repo" :archetype "library") +# (app :name "atoma" :display "atoma" +# :url "https://github.com/hyperpolymath/atoma" :archetype "library") # (compliance :standard-version "0.6.0" # :standards ("launcher-standard.adoc" # "PROVISIONING-STANDARD.adoc")) diff --git a/mise.toml b/mise.toml index 55154df7..3ed488da 100644 --- a/mise.toml +++ b/mise.toml @@ -1,7 +1,7 @@ # SPDX-License-Identifier: MPL-2.0 # SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) # -# The toolchain for rsr-template-repo (idris2, zig). Specs are `latest`; mise.lock +# The toolchain for atoma (idris2, zig). Specs are `latest`; mise.lock # records the concrete version and per-platform checksum of each, so every # checkout installs the same bits. Refresh both with: just toolchain-refresh # Canon: hyperpolymath/standards 3-practice/provisioning (TRUST-DEFAULTS §toolchain). diff --git a/scripts/campaigns/www-bundle.campaign b/scripts/campaigns/www-bundle.campaign index c1424cef..10f26a8a 100644 --- a/scripts/campaigns/www-bundle.campaign +++ b/scripts/campaigns/www-bundle.campaign @@ -30,7 +30,7 @@ # # The rest of www/ is deliberately NOT propagated: # -# www/public/ per-repo placeholders ({{PROJECT_NAME}} and friends) +# www/public/ per-repo placeholders (Atoma and friends) # www/policies/ per-repo placeholders # www/dns/ a DNS scaffold most repositories do not operate # www/tls/ as above diff --git a/sonar-project.properties b/sonar-project.properties index 961e2083..d4d82818 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,9 +1,9 @@ # SPDX-License-Identifier: MPL-2.0 # SonarQube Cloud (SonarCloud) configuration. -# Project: https://sonarcloud.io/project/overview?id=hyperpolymath_rsr-template-repo +# Project: https://sonarcloud.io/project/overview?id=hyperpolymath_zigprove # Requires the SONAR_TOKEN repository secret + a SonarCloud project (owner setup). sonar.organization=hyperpolymath -sonar.projectKey=hyperpolymath_rsr-template-repo +sonar.projectKey=hyperpolymath_zigprove # Analysable surface = shell scripts + any JS/TS the template carries. Idris2, # Zig, Elixir and AffineScript have no SonarCloud analyser; vendored, generated, diff --git a/src/interface/ffi/src/main.zig b/src/interface/ffi/src/main.zig index 129a44ab..6e8c20fe 100644 --- a/src/interface/ffi/src/main.zig +++ b/src/interface/ffi/src/main.zig @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MPL-2.0 // Copyright (c) Jonathan D.A. Jewell -// {{PROJECT}} FFI Implementation +// ATOMA FFI Implementation // // This module implements the C-compatible FFI declared in src/abi/Foreign.idr // All types and layouts must match the Idris2 ABI definitions. @@ -10,7 +10,7 @@ const std = @import("std"); // Version information (keep in sync with project) const VERSION = "0.1.0"; -const BUILD_INFO = "{{PROJECT}} built with Zig " ++ @import("builtin").zig_version_string; +const BUILD_INFO = "ATOMA built with Zig " ++ @import("builtin").zig_version_string; /// Thread-local error storage threadlocal var last_error: ?[]const u8 = null; @@ -52,7 +52,7 @@ pub const Handle = struct { /// Initialize the library /// Returns a handle, or null on failure -export fn {{project}}_init() ?*Handle { +export fn atoma_init() ?*Handle { const allocator = std.heap.c_allocator; const handle = allocator.create(Handle) catch { @@ -71,7 +71,7 @@ export fn {{project}}_init() ?*Handle { } /// Free the library handle -export fn {{project}}_free(handle: ?*Handle) void { +export fn atoma_free(handle: ?*Handle) void { const h = handle orelse return; const allocator = h.allocator; @@ -87,7 +87,7 @@ export fn {{project}}_free(handle: ?*Handle) void { //============================================================================== /// Process data (example operation) -export fn {{project}}_process(handle: ?*Handle, input: u32) Result { +export fn atoma_process(handle: ?*Handle, input: u32) Result { const h = handle orelse { setError("Null handle"); return .null_pointer; @@ -111,7 +111,7 @@ export fn {{project}}_process(handle: ?*Handle, input: u32) Result { /// Get a string result (example) /// Caller must free the returned string -export fn {{project}}_get_string(handle: ?*Handle) ?[*:0]const u8 { +export fn atoma_get_string(handle: ?*Handle) ?[*:0]const u8 { const h = handle orelse { setError("Null handle"); return null; @@ -133,7 +133,7 @@ export fn {{project}}_get_string(handle: ?*Handle) ?[*:0]const u8 { } /// Free a string allocated by the library -export fn {{project}}_free_string(str: ?[*:0]const u8) void { +export fn atoma_free_string(str: ?[*:0]const u8) void { const s = str orelse return; const allocator = std.heap.c_allocator; @@ -146,7 +146,7 @@ export fn {{project}}_free_string(str: ?[*:0]const u8) void { //============================================================================== /// Process an array of data -export fn {{project}}_process_array( +export fn atoma_process_array( handle: ?*Handle, buffer: ?[*]const u8, len: u32, @@ -182,7 +182,7 @@ export fn {{project}}_process_array( /// Get the last error message /// Returns null if no error -export fn {{project}}_last_error() ?[*:0]const u8 { +export fn atoma_last_error() ?[*:0]const u8 { const err = last_error orelse return null; // Return C string (static storage, no need to free) @@ -196,12 +196,12 @@ export fn {{project}}_last_error() ?[*:0]const u8 { //============================================================================== /// Get the library version -export fn {{project}}_version() [*:0]const u8 { +export fn atoma_version() [*:0]const u8 { return VERSION.ptr; } /// Get build information -export fn {{project}}_build_info() [*:0]const u8 { +export fn atoma_build_info() [*:0]const u8 { return BUILD_INFO.ptr; } @@ -213,7 +213,7 @@ export fn {{project}}_build_info() [*:0]const u8 { pub const Callback = *const fn (u64, u32) callconv(.c) u32; /// Register a callback -export fn {{project}}_register_callback( +export fn atoma_register_callback( handle: ?*Handle, callback: ?Callback, ) Result { @@ -244,7 +244,7 @@ export fn {{project}}_register_callback( //============================================================================== /// Check if handle is initialized -export fn {{project}}_is_initialized(handle: ?*Handle) u32 { +export fn atoma_is_initialized(handle: ?*Handle) u32 { const h = handle orelse return 0; return if (h.initialized) 1 else 0; } @@ -254,22 +254,22 @@ export fn {{project}}_is_initialized(handle: ?*Handle) u32 { //============================================================================== test "lifecycle" { - const handle = {{project}}_init() orelse return error.InitFailed; - defer {{project}}_free(handle); + const handle = atoma_init() orelse return error.InitFailed; + defer atoma_free(handle); - try std.testing.expect({{project}}_is_initialized(handle) == 1); + try std.testing.expect(atoma_is_initialized(handle) == 1); } test "error handling" { - const result = {{project}}_process(null, 0); + const result = atoma_process(null, 0); try std.testing.expectEqual(Result.null_pointer, result); - const err = {{project}}_last_error(); + const err = atoma_last_error(); try std.testing.expect(err != null); } test "version" { - const ver = {{project}}_version(); + const ver = atoma_version(); const ver_str = std.mem.span(ver); try std.testing.expectEqualStrings(VERSION, ver_str); } diff --git a/tests/aspect_tests.sh b/tests/aspect_tests.sh index d56f6a31..633d4d33 100755 --- a/tests/aspect_tests.sh +++ b/tests/aspect_tests.sh @@ -39,7 +39,7 @@ fail() { red " FAIL: $1"; FAIL=$((FAIL + 1)); } warn() { yellow " WARN: $1"; WARN=$((WARN + 1)); } echo "═══════════════════════════════════════════════════════════════" -echo " {{PROJECT}} — Aspect Tests (Cross-Cutting Concerns)" +echo " ATOMA — Aspect Tests (Cross-Cutting Concerns)" echo "═══════════════════════════════════════════════════════════════" echo "" diff --git a/tests/e2e.sh b/tests/e2e.sh index 15384908..173bade0 100755 --- a/tests/e2e.sh +++ b/tests/e2e.sh @@ -62,7 +62,7 @@ skip_test() { } echo "═══════════════════════════════════════════════════════════════" -echo " {{PROJECT}} — End-to-End Tests" +echo " ATOMA — End-to-End Tests" echo "═══════════════════════════════════════════════════════════════" echo "" @@ -123,7 +123,7 @@ echo "" # else # STATUS=$(curl -s -o /dev/null -w "%{http_code}" -X POST "$VERISIM_URL/api/v1/hexads" \ # -H "Content-Type: application/json" \ -# -d '{"tool":"{{PROJECT}}","modality":"document","content":"e2e test"}') +# -d '{"tool":"ATOMA","modality":"document","content":"e2e test"}') # check_status "hexad POST" "201" "$STATUS" # fi diff --git a/tests/workflows/container_kyaml_test.sh b/tests/workflows/container_kyaml_test.sh index 5cb9dafa..d6d06e5c 100644 --- a/tests/workflows/container_kyaml_test.sh +++ b/tests/workflows/container_kyaml_test.sh @@ -49,18 +49,18 @@ for file in "${files[@]}"; do done echo 'PASS: all three configs are canonical KYAML; block-style drift is distinguishable without data loss' -assert_value "$template" '.services | keys | sort' '["rokur","svalinn","{{SERVICE_NAME}}"]' 'template service names' -assert_value "$template" '.services."{{SERVICE_NAME}}".image' '"{{REGISTRY}}/{{SERVICE_NAME}}:latest"' 'quoted image placeholders' -assert_value "$template" '.services."{{SERVICE_NAME}}".ports' '["{{PORT}}:{{PORT}}"]' 'quoted port placeholders' -assert_value "$template" '.services."{{SERVICE_NAME}}".build' '{"context":"..","dockerfile":"build/container/Containerfile"}' 'template application build paths' -assert_value "$template" '.services."{{SERVICE_NAME}}".environment' '{"APP_HOST":"[::]","APP_PORT":"{{PORT}}","APP_LOG_FORMAT":"json","APP_DATA_DIR":"/data"}' 'template application environment and IPv6 listener' -assert_value "$template" '.services."{{SERVICE_NAME}}".volumes' '["{{SERVICE_NAME}}-data:/data"]' 'template application data mount' -assert_value "$template" '.services."{{SERVICE_NAME}}".healthcheck.test' '["CMD","curl","-sf","http://localhost:{{PORT}}/health"]' 'template health command placeholders' -assert_value "$template" '.services."{{SERVICE_NAME}}".healthcheck.start_period' '"10s"' 'application startup grace period' +assert_value "$template" '.services | keys | sort' '["rokur","svalinn","atoma"]' 'template service names' +assert_value "$template" '.services."atoma".image' '"ghcr.io/hyperpolymath/atoma:latest"' 'quoted image placeholders' +assert_value "$template" '.services."atoma".ports' '["8080:8080"]' 'quoted port placeholders' +assert_value "$template" '.services."atoma".build' '{"context":"..","dockerfile":"build/container/Containerfile"}' 'template application build paths' +assert_value "$template" '.services."atoma".environment' '{"APP_HOST":"[::]","APP_PORT":"8080","APP_LOG_FORMAT":"json","APP_DATA_DIR":"/data"}' 'template application environment and IPv6 listener' +assert_value "$template" '.services."atoma".volumes' '["atoma-data:/data"]' 'template application data mount' +assert_value "$template" '.services."atoma".healthcheck.test' '["CMD","curl","-sf","http://localhost:8080/health"]' 'template health command placeholders' +assert_value "$template" '.services."atoma".healthcheck.start_period' '"10s"' 'application startup grace period' assert_value "$template" '.services.rokur.environment.ROKUR_REQUIRED_SECRETS' '""' 'empty secret list remains an empty string' -assert_value "$template" '.services.rokur.depends_on."{{SERVICE_NAME}}".condition' '"service_healthy"' 'health-gated template backend' +assert_value "$template" '.services.rokur.depends_on."atoma".condition' '"service_healthy"' 'health-gated template backend' assert_value "$template" '.services.svalinn.depends_on' '["rokur"]' 'template gateway waits for the secrets proxy' -assert_value "$template" '.volumes | keys | sort' '["rokur-audit","{{SERVICE_NAME}}-data"]' 'template volume names' +assert_value "$template" '.volumes | keys | sort' '["rokur-audit","atoma-data"]' 'template volume names' for file in "$template" "$example"; do assert_value "$file" '.services.svalinn.ports' '["443:443","80:80"]' 'gateway port mappings remain strings' @@ -109,8 +109,8 @@ echo 'PASS: Compose topology, mount paths, health dependencies, and YAML scalar # Low/high port boundaries and a registry with a port catch quoting regressions. for port in 1 65535; do for file in "$template" "$policy"; do - sed -e 's|{{SERVICE_NAME}}|demo-api|g' -e "s|{{PORT}}|$port|g" \ - -e 's|{{REGISTRY}}|registry.example.test:5000/team|g' "$file" > "$scratch/$(basename "$file")" + sed -e 's|atoma|demo-api|g' -e "s|8080|$port|g" \ + -e 's|ghcr.io/hyperpolymath|registry.example.test:5000/team|g' "$file" > "$scratch/$(basename "$file")" done minted="$scratch/compose.yaml" assert_value "$minted" '.services | keys | sort' '["demo-api","rokur","svalinn"]' 'minted service key' @@ -135,7 +135,7 @@ assert_value "$policy" '.auth.authenticated' '[{"path":"/api/v1/*","methods":["G assert_value "$policy" '.rate_limits.global' '{"requests_per_second":500,"burst":1000}' 'numeric global rate limits' assert_value "$policy" '.rate_limits.writes' '{"paths":["/api/v1/*"],"methods":["POST","PUT","DELETE"],"requests_per_second":100,"burst":200}' 'stricter write limits and path glob' assert_value "$policy" '.trust.required_attestations' '["source-signature","sbom-complete"]' 'required container attestations' -assert_value "$policy" '.trust.trusted_signers' '[{"key_id":"{{SERVICE_NAME}}-release","algorithm":"Ed25519","public_key_file":"/etc/svalinn/keys/{{SERVICE_NAME}}-release.pub"}]' 'only the project release signer is trusted' +assert_value "$policy" '.trust.trusted_signers' '[{"key_id":"atoma-release","algorithm":"Ed25519","public_key_file":"/etc/svalinn/keys/atoma-release.pub"}]' 'only the project release signer is trusted' assert_value "$policy" '.trust.reject_unsigned' 'true' 'unsigned containers are rejected with a boolean' assert_value "$policy" '.validation' '{"max_body_size":"8MB","reject_nan_inf":true,"max_result_limit":500}' 'request validation limits and boolean' assert_value "$policy" '.cors' '{"allow_origins":["*"],"allow_methods":["GET","POST","PUT","DELETE","OPTIONS"],"allow_headers":["Content-Type","Authorization"],"max_age":3600}' 'CORS wildcard is a string, with numeric max age' diff --git a/tests/workflows/devcontainer_test.sh b/tests/workflows/devcontainer_test.sh index ffa82538..62c8a94e 100644 --- a/tests/workflows/devcontainer_test.sh +++ b/tests/workflows/devcontainer_test.sh @@ -39,7 +39,7 @@ function assertSortedKeys(value, path = "devcontainer") { assertSortedKeys(config); console.log("PASS: object keys are sorted recursively"); -assert.equal(config.name, "{{PROJECT_NAME}} (Podman)", "retain the mintable Podman profile name"); +assert.equal(config.name, "Atoma (Podman)", "retain the mintable Podman profile name"); assert.deepEqual(config.build, { context: "..", dockerfile: "Containerfile" }); assert.equal(resolve(directory, config.build.context), repo, "build context must be the repository root"); assert.ok(readFileSync(resolve(directory, config.build.dockerfile), "utf8").length > 0, diff --git a/www/.well-known/aibdp.json b/www/.well-known/aibdp.json index a3ca9dd0..b3e482b7 100644 --- a/www/.well-known/aibdp.json +++ b/www/.well-known/aibdp.json @@ -1 +1 @@ -{"aibdp_version":"0.2","canonical_uri":"https://{{FORGE}}/{{OWNER}}/{{REPO}}/blob/main/www/.well-known/aibdp.json","contact":"mailto:{{SECURITY_EMAIL}}","enforcement":{"contact_before_litigation":true,"mechanism":"none","note":"Declaration-only. HTTP 430 (draft-jewell-http-430-consent-required-00, EXPERIMENTAL) is the mechanism the draft defines for origins that can emit it; this template deliberately does not: minting or installing never enables 430. Enforcement would require a separate, explicit, versioned, provenance-bearing and independently testable profile choice, which this bundle does not ship.","preferred_resolution":"Correspondence and correction via the contact above."},"metadata":{"author":"{{AUTHOR}}","created":"{{CURRENT_DATE}}","last_modified":"{{CURRENT_DATE}}","project":"{{PROJECT_NAME}}","related_standards":["draft-jewell-aibdp-00 (experimental, not a Datatracker submission)","draft-jewell-http-430-consent-required-00 (experimental, not a Datatracker submission)","AIPREF (mapped alternative representation where they overlap)","RFC 8615","RFC 9110","RFC 9309"],"repository":"https://{{FORGE}}/{{OWNER}}/{{REPO}}"},"philosophy":{"note":"Purpose headers are unverified assertions; User-Agent inference is heuristic; unknown purpose remains unknown.","statement":"Without refusal, permission is meaningless."},"policies":{"commercial_training":{"alternatives":"Cite the repository and its documentation instead of training on it.","rationale":"As training, and additionally: contact the maintainer before any commercial incorporation — consent is explicit or it is absent.","scope":"all","status":"disallowed"},"embedding":{"conditions":["Embeddings may serve retrieval over the public material with attribution preserved.","Embedding corpora must not be redistributed or used as training input without explicit consent."],"rationale":"Retrieval aids discovery; corpus redistribution carries the licences (MPL-2.0 code, CC-BY-SA-4.0 docs).","scope":"all","status":"conditional"},"fine_tuning":{"rationale":"Fine-tuning is training with a narrower objective; the ai.txt stance applies unchanged.","scope":"all","status":"disallowed"},"generation":{"rationale":"Mirrors ai.txt Disallow-Generation: yes — generated text must not be presented as this project's own statements.","scope":"all","status":"disallowed"},"indexing":{"rationale":"The site is published to be found; indexing public material crosses no boundary.","scope":"all","status":"allowed"},"question_answering":{"rationale":"Mirrors ai.txt: agents may read and analyse to assist contributors.","scope":"all","status":"allowed"},"summarization":{"rationale":"Mirrors ai.txt Disallow-Summarization: no — describing published material serves readers.","scope":"all","status":"allowed"},"training":{"rationale":"Mirrors ai.txt Disallow-Training: yes — model training on this corpus requires explicit consent, which this declaration does not give.","scope":"all","status":"disallowed"}},"policy_uri":"https://{{FORGE}}/{{OWNER}}/{{REPO}}/blob/main/www/policies/ai-use.adoc","status":"experimental — declaration-only; observing, never enforcing (see www/policies/ai-use.adoc)"} +{"aibdp_version":"0.2","canonical_uri":"https://github.com/hyperpolymath/atoma/blob/main/www/.well-known/aibdp.json","contact":"mailto:j.d.a.jewell@open.ac.uk","enforcement":{"contact_before_litigation":true,"mechanism":"none","note":"Declaration-only. HTTP 430 (draft-jewell-http-430-consent-required-00, EXPERIMENTAL) is the mechanism the draft defines for origins that can emit it; this template deliberately does not: minting or installing never enables 430. Enforcement would require a separate, explicit, versioned, provenance-bearing and independently testable profile choice, which this bundle does not ship.","preferred_resolution":"Correspondence and correction via the contact above."},"metadata":{"author":"Jonathan D.A. Jewell","created":"2026-11-07","last_modified":"2026-11-07","project":"Atoma","related_standards":["draft-jewell-aibdp-00 (experimental, not a Datatracker submission)","draft-jewell-http-430-consent-required-00 (experimental, not a Datatracker submission)","AIPREF (mapped alternative representation where they overlap)","RFC 8615","RFC 9110","RFC 9309"],"repository":"https://github.com/hyperpolymath/atoma"},"philosophy":{"note":"Purpose headers are unverified assertions; User-Agent inference is heuristic; unknown purpose remains unknown.","statement":"Without refusal, permission is meaningless."},"policies":{"commercial_training":{"alternatives":"Cite the repository and its documentation instead of training on it.","rationale":"As training, and additionally: contact the maintainer before any commercial incorporation — consent is explicit or it is absent.","scope":"all","status":"disallowed"},"embedding":{"conditions":["Embeddings may serve retrieval over the public material with attribution preserved.","Embedding corpora must not be redistributed or used as training input without explicit consent."],"rationale":"Retrieval aids discovery; corpus redistribution carries the licences (MPL-2.0 code, CC-BY-SA-4.0 docs).","scope":"all","status":"conditional"},"fine_tuning":{"rationale":"Fine-tuning is training with a narrower objective; the ai.txt stance applies unchanged.","scope":"all","status":"disallowed"},"generation":{"rationale":"Mirrors ai.txt Disallow-Generation: yes — generated text must not be presented as this project's own statements.","scope":"all","status":"disallowed"},"indexing":{"rationale":"The site is published to be found; indexing public material crosses no boundary.","scope":"all","status":"allowed"},"question_answering":{"rationale":"Mirrors ai.txt: agents may read and analyse to assist contributors.","scope":"all","status":"allowed"},"summarization":{"rationale":"Mirrors ai.txt Disallow-Summarization: no — describing published material serves readers.","scope":"all","status":"allowed"},"training":{"rationale":"Mirrors ai.txt Disallow-Training: yes — model training on this corpus requires explicit consent, which this declaration does not give.","scope":"all","status":"disallowed"}},"policy_uri":"https://github.com/hyperpolymath/atoma/blob/main/www/policies/ai-use.adoc","status":"experimental — declaration-only; observing, never enforcing (see www/policies/ai-use.adoc)"} \ No newline at end of file diff --git a/www/.well-known/humans.txt b/www/.well-known/humans.txt index 8891981a..65da3e57 100644 --- a/www/.well-known/humans.txt +++ b/www/.well-known/humans.txt @@ -2,12 +2,12 @@ # humanstxt.org /* TEAM */ -Maintainer: {{AUTHOR}} ({{OWNER}}) -Contact: {{AUTHOR_EMAIL}} +Maintainer: Jonathan D.A. Jewell (hyperpolymath) +Contact: j.d.a.jewell@open.ac.uk From: United Kingdom /* SITE */ -Last update: {{CURRENT_DATE}} +Last update: 2026-11-07 Standards: RSR (Rhodium Standard Repository) License: MPL-2.0 (code) / CC-BY-SA-4.0 (docs) Components: Idris2 ABI, Zig FFI diff --git a/www/.well-known/security.txt b/www/.well-known/security.txt index 5cdf9cc7..c766fa42 100644 --- a/www/.well-known/security.txt +++ b/www/.well-known/security.txt @@ -7,8 +7,8 @@ # field had nothing to reference and shipped the literal token instead — which # also made this file unparseable. Report via the Policy: URL below. -Contact: mailto:{{SECURITY_EMAIL}} -Expires: {{CURRENT_YEAR}}-12-31T23:59:59.000Z +Contact: mailto:j.d.a.jewell@open.ac.uk +Expires: 2026-12-31T23:59:59.000Z Preferred-Languages: en -Canonical: https://{{FORGE}}/{{OWNER}}/{{REPO}}/.well-known/security.txt -Policy: https://{{FORGE}}/{{OWNER}}/{{REPO}}/blob/main/.github/SECURITY.md +Canonical: https://github.com/hyperpolymath/atoma/.well-known/security.txt +Policy: https://github.com/hyperpolymath/atoma/blob/main/.github/SECURITY.md diff --git a/www/README.adoc b/www/README.adoc index d87febef..f34b8b75 100644 --- a/www/README.adoc +++ b/www/README.adoc @@ -112,6 +112,6 @@ heuristic; unknown purpose remains unknown. == Provenance -Bundle shape and constraints: `rsr-template-repo` issue #53. AIBDP schema +Bundle shape and constraints: `atoma` issue #53. AIBDP schema vendored from `metadatastician/consent-aware-web` (MPL-2.0) — see `schemas/aibdp-schema-v0.2.json.license`. diff --git a/www/dns/records/example.invalid.zone b/www/dns/records/example.invalid.zone index 75b5c1c1..023d1ac4 100644 --- a/www/dns/records/example.invalid.zone +++ b/www/dns/records/example.invalid.zone @@ -29,10 +29,10 @@ www IN CNAME example.invalid. ; your actual issuer(s), or 'issue ";"' to forbid issuance entirely. @ IN CAA 0 issue "ca.example.invalid" @ IN CAA 0 issuewild "ca.example.invalid" -@ IN CAA 0 iodef "mailto:{{SECURITY_EMAIL}}" +@ IN CAA 0 iodef "mailto:j.d.a.jewell@open.ac.uk" ; This zone sends no mail: hard-fail SPF, and declare MTA-STS/TLSRPT so ; senders to a spoofed address get a correct rejection signal (RFC 8461/8460). @ IN TXT "v=spf1 -all" _mta-sts IN TXT "v=STSv1; id=20260917000000Z;" -_smtp._tls IN TXT "v=TLSRPTv1; rua=mailto:{{SECURITY_EMAIL}}" +_smtp._tls IN TXT "v=TLSRPTv1; rua=mailto:j.d.a.jewell@open.ac.uk" diff --git a/www/policies/acceptable-use.adoc b/www/policies/acceptable-use.adoc index 5b214c5f..607cc29f 100644 --- a/www/policies/acceptable-use.adoc +++ b/www/policies/acceptable-use.adoc @@ -1,6 +1,6 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -= Acceptable Use — {{PROJECT_NAME}} += Acceptable Use — Atoma Rendered into `public/policies/acceptable-use.html` at deploy time; this AsciiDoc file is the source of record. diff --git a/www/policies/ai-use.adoc b/www/policies/ai-use.adoc index 97745c8c..6f4b8ff2 100644 --- a/www/policies/ai-use.adoc +++ b/www/policies/ai-use.adoc @@ -1,6 +1,6 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -= AI Use Policy — {{PROJECT_NAME}} += AI Use Policy — Atoma Rendered into `public/policies/ai-use.html` at deploy time; this AsciiDoc file is the source of record. diff --git a/www/policies/privacy.adoc b/www/policies/privacy.adoc index 20b69ab0..34a8be97 100644 --- a/www/policies/privacy.adoc +++ b/www/policies/privacy.adoc @@ -1,6 +1,6 @@ // SPDX-License-Identifier: CC-BY-SA-4.0 // SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell -= Privacy Policy — {{PROJECT_NAME}} += Privacy Policy — Atoma Rendered into `public/policies/privacy.html` at deploy time (see `www/runbooks/deploy.adoc`); this AsciiDoc file is the source of record. diff --git a/www/public/index.html b/www/public/index.html index 4d55e919..fd6e8d9a 100644 --- a/www/public/index.html +++ b/www/public/index.html @@ -4,14 +4,14 @@ - {{PROJECT_NAME}} - + Atoma +
-

{{PROJECT_NAME}}

-

{{PROJECT_DESCRIPTION}}

+

Atoma

+

Experimental source-bound program verification for a closed Zig subset

This site is served from the www/public/ category of the @@ -31,7 +31,7 @@

Site

-

© {{CURRENT_YEAR}} {{AUTHOR}}. Code: MPL-2.0. Docs: CC-BY-SA-4.0.

+

© 2026 Jonathan D.A. Jewell. Code: MPL-2.0. Docs: CC-BY-SA-4.0.

From 73b06782e55715d61fa159cb8774e513c989e46f Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Sat, 7 Nov 2026 19:30:47 +0000 Subject: [PATCH 2/3] Remove renamed template sources from the published tree Complete the reviewed template identity migration and retain LF evidence output. The prior API upload did not represent rename source deletions. Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com> --- build/docs-seed/contributing.adoc | 91 -- build/docs-seed/decisions/0001-template.adoc | 54 - build/docs-seed/troubleshooting.adoc | 58 - build/docs-seed/usage.adoc | 82 -- rsr-template-repo_chora.deed | 1083 ------------------ 5 files changed, 1368 deletions(-) delete mode 100644 build/docs-seed/contributing.adoc delete mode 100644 build/docs-seed/decisions/0001-template.adoc delete mode 100644 build/docs-seed/troubleshooting.adoc delete mode 100644 build/docs-seed/usage.adoc delete mode 100644 rsr-template-repo_chora.deed diff --git a/build/docs-seed/contributing.adoc b/build/docs-seed/contributing.adoc deleted file mode 100644 index eb22aac2..00000000 --- a/build/docs-seed/contributing.adoc +++ /dev/null @@ -1,91 +0,0 @@ -// SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) Jonathan D.A. Jewell -// SPDX-FileCopyrightText: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> -= Contributing — {{PROJECT_NAME}} -:revdate: {{CURRENT_YEAR}}-MM-DD - -== Audience - -Developers working *on* `{{PROJECT_NAME}}`. For consumers (people calling -or depending on it) see link:./usage.adoc[usage.adoc]. - -== Local-dev setup - -Prerequisites — the minimum versions and where to get them: - -* `` v`` — ``. -* `` v`` — ``. -* GPG signing key configured (estate policy — all commits must be - signed). See - link:https://github.com/hyperpolymath/standards/blob/main/docs/secure-coding-training.md[standards/docs/secure-coding-training.md]. - -One-shot setup: - -[source,bash] ----- -git clone git@github.com:{{OWNER}}/{{PROJECT_NAME}}.git -cd {{PROJECT_NAME}} -just setup # installs deps, sets up hooks -just test # runs the full test suite ----- - -== Running tests - -* **Unit**: `just test-unit` — fast, no I/O. -* **Integration**: `just test-int` — uses real services (database, - HTTP, etc.). Estate policy: prefer real over mocked - (see `feedback_integration_tests_real_db` in maintainer's memory). -* **Property**: `just test-prop` — randomised, slower; budget - documented in `docs/proof-debt.md` if applicable. -* **Full**: `just test` — runs all of the above. - -== Code style - -We enforce style via CI (governance-reusable.yml from hyperpolymath/standards). -Locally: - -[source,bash] ----- -just fmt # auto-format -just lint # static checks ----- - -* All commits must be **GPG-signed** (CI enforces; see - link:https://github.com/hyperpolymath/standards[standards]). -* All source files must carry an **SPDX-License-Identifier** header - (CI enforces). -* Conventional commits — `feat`, `fix`, `chore`, `refactor`, `docs`, - `test`, `ci`, `revert` (CHANGELOG is auto-generated from these - via link:https://github.com/hyperpolymath/standards/blob/main/.github/workflows/changelog-reusable.yml[`changelog-reusable.yml`]). - -== Branching & PR workflow - -. Branch off `main` as `claude/` (for AI agents) or - `/` (for humans). -. Make focused, narrow commits — one logical change per commit. -. Open a PR against `main`. -. **Enable auto-merge immediately** on every PR you open - (`gh pr merge --auto --squash`) — estate standing policy - (see standards#196 audit and policies). -. CI must be green. The PR auto-merges when checks pass + reviews land. - -== Adding a new dependency - -. State the *why* in the PR body — what does this dependency unlock? -. Check provenance (maintained, audited, no malicious history). -. Pin to a SHA, not a tag. -. Update `docs/architecture.adoc#Dependencies`. - -== Adding an ADR - -When you make a non-obvious design decision, write it down: - -. Copy `docs/decisions/0001-template.adoc` → `0002-.adoc`. -. Fill in: Context, Decision, Consequences, Alternatives. -. Link the ADR from the README or relevant code as a comment. - -== Reporting issues - -* Bugs in `{{PROJECT_NAME}}`: file at `{{OWNER}}/{{PROJECT_NAME}}/issues`. -* Estate-wide concerns (policy, conventions, CI): file at - `hyperpolymath/standards/issues`. diff --git a/build/docs-seed/decisions/0001-template.adoc b/build/docs-seed/decisions/0001-template.adoc deleted file mode 100644 index eff8bb85..00000000 --- a/build/docs-seed/decisions/0001-template.adoc +++ /dev/null @@ -1,54 +0,0 @@ -// SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) Jonathan D.A. Jewell -// SPDX-FileCopyrightText: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> -= ADR-0001 — Use Architecture Decision Records -:revdate: {{CURRENT_YEAR}}-MM-DD -:status: ACCEPTED - -== Context - -We need a lightweight way to record significant architectural decisions -and the reasoning behind them, so future maintainers (and AI agents) -can understand *why* the project is shaped as it is. - -== Decision - -Adopt link:https://adr.github.io/[Architecture Decision Records (ADRs)] -in `docs/decisions/`, numbered sequentially (0001, 0002, ...). - -* Each ADR is a single `.adoc` file. -* The first ADR (this one) records the decision to use ADRs. -* Status values: PROPOSED, ACCEPTED, DEPRECATED, SUPERSEDED. -* When a decision is overturned, the new ADR records the supersession - and updates the old one's status to `SUPERSEDED by 00NN`. - -== Consequences - -. **Positive**: future readers see *why* without git-archaeology. -. **Positive**: design alternatives are documented, not just the - winning choice. -. **Positive**: ADRs are reviewable in PRs — the design discussion - happens alongside the code that implements it. -. **Negative**: maintenance burden — every non-obvious decision now - warrants an ADR. (We mitigate by keeping ADRs short; "non-obvious" - is a judgment call.) -. **Negative**: ADRs can rot. We accept this; the SUPERSEDED chain - is the recovery mechanism. - -== Alternatives considered - -. **Comments in code** — too local; doesn't capture cross-cutting - decisions. -. **Wiki / external doc** — drifts from code; not in PR review. -. **Commit messages** — too transient and not discoverable. -. **No record** — discarded; this is how every project ends up with - "I don't know why we do it this way" debt. - -== Companion ADRs - -* (None yet — this is the first ADR.) - -== References - -* MADR template — `https://adr.github.io/madr/` -* Estate convention — `hyperpolymath/standards/docs/RSR_OUTLINE.adoc` diff --git a/build/docs-seed/troubleshooting.adoc b/build/docs-seed/troubleshooting.adoc deleted file mode 100644 index 8c62e69c..00000000 --- a/build/docs-seed/troubleshooting.adoc +++ /dev/null @@ -1,58 +0,0 @@ -// SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) Jonathan D.A. Jewell -// SPDX-FileCopyrightText: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> -= Troubleshooting — {{PROJECT_NAME}} -:revdate: {{CURRENT_YEAR}}-MM-DD - -This file is a *living FAQ* — known failure modes and recovery paths. -Add a new entry every time you debug something that took more than 15 -minutes; future-you (and other maintainers) will thank you. - -== Known failure modes - -=== `` - -**Symptom**: short reproduction. What does the user see? - -**Cause**: root cause (one or two sentences). - -**Fix**: -[source,bash] ----- - ----- - -**Avoidance**: how to not hit this again (config setting, doc link, etc.). - ---- - -=== `` - -(Replace this and the above example with real entries as you encounter -them.) - -== Diagnostic toolkit - -When something is wrong, run these first: - -[source,bash] ----- -just doctor # runs all available self-checks -just version # prints the version & build hash -just log-tail # last N lines of logs ----- - -== When to escalate - -. Filed an issue with: version, OS, exact command, full error output, - and the symptom in plain English. -. Linked from the issue: the relevant ADR(s) and any related issues. -. For *security*-relevant findings, see - link:./../SECURITY.md[SECURITY.md] — do **not** file public issues. - -== Where to look for more help - -* `docs/architecture.adoc` — internals. -* `docs/decisions/` — historical record of why things are this shape. -* `https://github.com/{{OWNER}}/{{PROJECT_NAME}}/issues?q=is%3Aissue+` — has anyone hit this before? -* `https://github.com/hyperpolymath/standards/issues` — for estate-wide problems. diff --git a/build/docs-seed/usage.adoc b/build/docs-seed/usage.adoc deleted file mode 100644 index 8ebc5330..00000000 --- a/build/docs-seed/usage.adoc +++ /dev/null @@ -1,82 +0,0 @@ -// SPDX-License-Identifier: CC-BY-SA-4.0 -// Copyright (c) Jonathan D.A. Jewell -// SPDX-FileCopyrightText: {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}> -= Usage — {{PROJECT_NAME}} -:revdate: {{CURRENT_YEAR}}-MM-DD - -== Audience - -This document is for *consumers* of `{{PROJECT_NAME}}` — people who depend -on it, call it, or include it. For developers working *on* it, see -link:./contributing.adoc[contributing.adoc]. - -== Quickstart - -The shortest path from zero to a working call: - -[source,bash] ----- -# 1. Install -just install # or: cargo install --path . / task install - -# 2. Configure -cp examples/config.example.toml ./config.toml -# Edit minimal required fields. - -# 3. Run -just run # or the equivalent for your language ----- - -Expected output: - -[source] ----- -{{PROJECT_NAME}} v0.0.0 -Listening on 127.0.0.1:8080 ----- - -== Common use cases - -For each canonical use case, give: - -. A one-line statement of the goal. -. The minimal invocation. -. Expected output / side effect. - -=== Use case 1: - -(Replace with real content.) - -=== Use case 2: - -== Configuration reference - -Document every configurable field. Keep this section authoritative — if -the code grows a new option, this table must grow too (CI can be wired -to enforce this). - -[cols="1,1,1,3", options="header"] -|=== -| Field | Type | Default | Meaning - -| `` | `` | `` | -|=== - -== Stability guarantees - -Be explicit: - -* **Stable**: API surfaces that follow SemVer (breaking change = major bump). -* **Unstable**: behind a flag / pre-1.0 / explicitly marked. -* **Internal**: documented for reference but no compatibility promise. - -== Limits & known constraints - -* Maximum supported ``: ``. -* `` is not yet implemented; track at issue `#`. -* On ``, `` behaves differently because ``. - -== See also - -* link:./architecture.adoc[Architecture] — how it works internally. -* link:./troubleshooting.adoc[Troubleshooting] — when things go wrong. diff --git a/rsr-template-repo_chora.deed b/rsr-template-repo_chora.deed deleted file mode 100644 index 31c141dd..00000000 --- a/rsr-template-repo_chora.deed +++ /dev/null @@ -1,1083 +0,0 @@ -;; SPDX-License-Identifier: MPL-2.0 -; -; The repo deed of rsr-template-repo: one-deed-per-repo doctrine (standards#837, -; owner ruling 2026-09-19, Option A). Folds the former ply manifest tree -; (82 per-directory manifests) and the family-7 AI allocation manifest -; into deed clauses. -; The ply, manifest and canon clauses come from the #837 pilot emitter. The -; identity, clade, forges, lineage, status, maturity, ecosystem, meta and -; agentic clauses carry the former CLADE, META, ECOSYSTEM, AGENTIC and STATE -; records (#209), translated field for field under the standards mapping -; specs (1-formats/deed/mappings/). STATE's journal is docs/status/ROADMAP.adoc. -; The anchor, neurosym, playbook, ensaid, bot-directives, integrations, -; policies and rsr-profile clauses at the end carry every other record this -; repo used to keep under .machine_readable/: the deed is the one -; machine-readable description of the repo. scripts/deed-field.sh reads any -; field; scripts/deed-clause.sh is the one writer. -(repo-deed - :schema-version "1.0.0" - :canonical-name "rsr-template-repo" - :beholding-chora #u5"estate/chora" - :repo-uuid #u5"github.com/hyperpolymath/rsr-template-repo" - ; The canon pin: which release of hyperpolymath/standards canon.lock this - ; repo implements. It is the ONLY canon pin in this deed (deed_canon - ; refuses zero or two); the (rsr-profile) clause below declares - ; capabilities and carries no pin. It moved here so the pin could follow a - ; canon release (#215). - ; Read by: dogfood-gate.yml `Canon lockstep` (reverse direction), - ; standards scripts/check-canon-lockstep.sh assertion 3 (forward), and - ; build/just/repo-init.just (writes the child's (provenance) clause at mint). Every hash MUST - ; equal canon.lock [canon.artifacts]; canon.lock [canon.lockstep].order is - ; spine-adopts-then-canon-releases, so this clause moves FIRST. - (canon - :version "2.1.2" - :criteria-sha256 "6a5aa8857bd0d0d58ef48827938ca17c251b6b854dacf59d306388d61694d82a" - :gates-sha256 "e70efd2f53c9445e30da4baf770366f04a4a84ffd844a01426e587e565b53e6a" - :lockstep-since "2026-09-17" - ; A canon change this repo cannot satisfy is a change made in the WRONG - ; ORDER, not a rejected change: land the spine's adoption first, then the - ; canon change is a one-line bump. - :order "spine-adopts-then-canon-releases") - ; >>> repo-identity (repo-init replaces this block at mint) - ; The template's OWN identity. `just repo-init` swaps everything between - ; these two markers for build/templates/identity.deed.in, filled for the - ; new repo. Before that swap existed every minted repo inherited this - ; block's uuid and canonical-name and told arriving agents it WAS the - ; template (corrected in chronicles-of-slavia and scaffoldia 2026-07-16). - ; The uuid is not stored: it is uuid5(URL namespace, the header - ; :repo-uuid name). Only that typed name is written down; a hex form here - ; fails ADR-008's strict v8 gate. - ; Identity, clade, forges, lineage, status: mapping clade-to-repo-deed. - (identity - :primary-forge github - :owner "hyperpolymath" - :prefixed-name "rm-rsr-template-repo") - (clade - :primary rm - :primary-name "Repo Management & Tooling" - :secondary () - :assigned "2026-03-16" - :rationale "Repo Management & Tooling (`rm`): the core value proposition is scaffolding repositories — CI/CD, AI manifests, ABI/FFI seams, governance — that other projects are instantiated from. `gv` was previously claimed as a secondary and is dropped: the template SHIPS governance files, but shipping them is not being a governance project. That authority lives in `standards` and `metadatastician-governance`. The inherited [\"gv\"] propagated into every repo created from this template, where it was even less meant.") - (forges - :github "hyperpolymath/rsr-template-repo" - :gitlab "hyperpolymath/rsr-template-repo" - :bitbucket "hyperpolymath/rsr-template-repo") - (lineage - :type standalone - :parent "" - :born "2026-03-16" - :previous-names ()) - (status - :phase active - :since "2026-03-16" - :present #t - :aliases () - :merged-into "" - :superseded-by "" - :successors () - :ended "" - (history - (entry :phase active :since "2026-03-16" :note "the estate's canonical repository template; in production use"))) - ; Maturity has its own clause (owner decision 2026-10-02; standards - ; 1-formats/deed/vocabulary/maturity.adoc). No :since: the date the - ; template reached production was never recorded. Milestones, next actions - ; and blockers live in docs/status/ROADMAP.adoc. - (maturity - :level production) - ; Ecosystem: mapping meta-ecosystem-to-repo-deed. - (ecosystem - :project "rsr-template-repo" - :ecosystem "hyperpolymath" - :position-type "repository-template" - :purpose "Canonical RSR-compliant repository template: scaffolding (CI/CD, AI manifests, ABI/FFI standards, container ecosystem, governance) that new hyperpolymath projects are instantiated from." - :not ("a project in its own right" - "Scaffoldia (the full-featured repo designer)" - "standards (the canon source this template operationalises)") - :pipeline-position "foundation" - :chain "standards → rsr-template-repo → (every estate repo)" - :pipeline-notes "rsr-template-repo turns the RSR standard into runnable scaffolding. New repos are created from it via `just repo-init`, which substitutes the {{PLACEHOLDER}} tokens." - :coordination standards - (related :name "standards" :relationship standard-source :notes "Defines the RSR standard, contractile canon, and policies that this template operationalises.") - (related :name "stapeln" :relationship build-tooling :notes "Layer-based container build system; the template ships stapeln.toml scaffolding.") - (related :name "selur-compose" :relationship build-tooling :notes "Service composition; the template ships selur-compose.toml scaffolding.") - (related :name "k9-svc" :relationship validation-tooling :notes "Runs the self-validating k9.ncl checks (.machine_readable/self-validating/).") - (related :name "cerro-torre" :relationship signing-tooling :notes "Container/image signing provider referenced by the container scaffolding.") - (related :name "svalinn" :relationship verification-tooling :notes "Supply-chain verification referenced by the container scaffolding.") - (related :name "vordr" :relationship verification-tooling :notes "Build/artifact verification referenced by the container scaffolding.")) - ; <<< repo-identity - ; Meta: mapping meta-ecosystem-to-repo-deed. A minted repo keeps this - ; clause (self-name pass applied) and edits it as its own. - (meta - :version "0.1.0" - :last-updated "2026-04-11" - :type library - :languages () - :license MPL-2.0 - :author "Jonathan D.A. Jewell (hyperpolymath)" - :build-tool just - :container-runtime podman - :ci-platform github-actions - :package-manager guix - :scoping-first #t - :execution-order "axis-1 > axis-2 > axis-3" - :axis-1 "must > intend > like" - :axis-2 "corrective > adaptive > perfective" - :axis-3 "systems > compliance > effects" - (scoping - :sources "README, roadmap, status docs, maintenance checklist, CI/security docs" - :marker-scan "TODO/FIXME/XXX/HACK/STUB/PARTIAL" - :idris-unsound-scan "believe_me/assert_total") - :corrective-first #t - :adaptive-second #t - :adaptive-focus "scope-change reconciliation, stale-reference removal, obsolete-work culling" - :perfective-third #t - :perfective-source "axis-1 honest state after corrective/adaptive updates" - (axis-3 - :audit-focus "systems in place, documentation explains actual state, safety/security accounted for, observed effects reviewed" - :compliance-focus "seams/compromises/exception register, bounded exceptions, anti-drift checks" - :drift-risk-example "single exception broadening into policy violation (e.g. ->TypeScript spread)" - :effects-evidence "benchmark execution/results and maintainer status dialogue/review")) - ; Agent permissions and integrity: mapping agentic-neurosym-playbook-to-repo-deed. - ; What agents must NOT do: - ; - Never use banned language patterns (believe_me, unsafeCoerce, etc.) - ; - Never commit secrets or credentials - ; - Never use banned languages (TypeScript, Python, Go, etc.) - ; - Never place state files in repository root (must be in .machine_readable/) - ; - Never relicense an existing file, and never run an automated licence - ; sweep (LICENCE-POLICY.adoc A2). New files get correct SPDX from birth. - ; - Never assume a licence. Read standards/3-practice/LICENCE-POLICY.adoc: Rule 1 - ; defaults to MPL-2.0 (code) / CC-BY-SA-4.0 (prose), but Rule 3 - ; (co-developed), Rule 4 (network-deployed services) and Rule 5 - ; (games) are AGPL-3.0-or-later, and Rule 2 names the PMPL register. - ; This clause declares WHAT agents may do; the (bot-directives) clause of - ; this deed declares HOW they work (methodology, coverage, debt, rra). - ; Hooks: on enter, read this deed, then docs/status/ROADMAP.adoc; on exit, - ; update ROADMAP.adoc and the (bot-directives (coverage)) and - ; (bot-directives (debt)) clauses with scripts/deed-clause.sh; on commit, - ; run `just validate-rsr`. - (agentic - :version "0.1.0" - :last-updated "2026-04-11" - (permissions :source #t :tests #t :docs #t :config #t :create-files #t) - (integrity - :fail-closed #t - :require-evidence-per-step #t - :allow-silent-skip #f - :require-rerun-after-fix #t - :release-claim-requires-hard-pass #t) - (methodology :instructions-clause "bot-directives" :default-mode hybrid)) - (manifest - :version "0.1.0" - :last-updated "{{CURRENT_DATE}}" - :project "[YOUR-REPO-NAME]" - :purpose "Canonical RSR (Rhodium Standard Repository) template — governance, CI/CD, machine-readable metadata, ABI/FFI seam and formal-verification scaffolding that hyperpolymath projects are instantiated from." - (agent :name CLAUDE :role "proofs, compilers, repo-local implementation, CI/CD, formal verification, Rust/Idris2/Zig") - (agent :name CHATGPT :role "prose, papers, publication review, standards docs, outreach drafts, letters") - (agent :name GEMINI :role "estate audits, cross-repo sweeps, long-context triage, pattern detection") - (agent :name VIBE :role "UI/frontend, PanLL panels, components, theming, rapid prototyping") - (policy :rules ("Do not duplicate tasks across sections. If a task needs multiple LLMs, note the handoff." "Update THIS file during sessions. Do NOT recreate per-repo TODO files.")) - (work :agent CLAUDE :task "proofs, compilers, repo-local implementation, CI/CD, formal verification, Rust/Idris2/Zig") - (work :agent CHATGPT :task "prose, papers, publication review, standards docs, outreach drafts, letters") - (work :agent GEMINI :task "estate audits, cross-repo sweeps, long-context triage, pattern detection") - (work :agent VIBE :task "UI/frontend, PanLL panels, components, theming, rapid prototyping") - ) - (ply - (directory :ply 1 :path ".github") - (directory :id "machine-readable-pillar" :ply 1 :path ".machine_readable" :description "Registry for all machine-readable metadata, policies, and internal\nautomation scripts." - (canonical-locations :ai_configs "ai/" :anchor "rsr-template-repo_chora.deed (anchor)" :compliance "compliance/" :neurosym "rsr-template-repo_chora.deed (neurosym)" :playbook "rsr-template-repo_chora.deed (playbook)" :policies "rsr-template-repo_chora.deed (policies)" :scripts "scripts/") - :invariants ("Repo metadata MUST live in the repo deed (rsr-template-repo_chora.deed) and follow the DEED grammar" "Internal automation MUST live in scripts/ subfolder") - (directory :id "ai-registry" :ply 2 :path ".machine_readable/ai" :description "Sub-registry for ai metadata.") - (directory :id "configs-registry" :ply 2 :path ".machine_readable/configs" :description "Sub-registry for configs metadata.") - (directory :ply 0 :path ".machine_readable/descriptiles" :description "This manifest declares the AI-assistant context for the descriptiles machine-readable metadata directory." - :invariants ("No duplicate files in root directory" "Single source of truth: this directory is authoritative" "No stale metadata")) - (directory :id "policies-registry" :ply 2 :path ".machine_readable/policies" :description "Sub-registry for policies metadata.") - (directory :id "automation-scripts-unit" :ply 2 :path ".machine_readable/scripts" :description "Internal automation logic for the project lifecycle, forge sync,\nverification triggers, and maintenance." - (canonical-locations :forge "forge/" :lifecycle "lifecycle/" :maintenance "maintenance/" :verification "verification/") - (directory :id "automation-unit-forge" :ply 3 :path ".machine_readable/scripts/forge" :description "Internal automation logic for project forge.") - (directory :id "automation-unit-lifecycle" :ply 3 :path ".machine_readable/scripts/lifecycle" :description "Internal automation logic for project lifecycle.") - (directory :id "automation-unit-verification" :ply 3 :path ".machine_readable/scripts/verification" :description "Internal automation logic for project verification."))) - (directory :id "container-templates" :ply 1 :path "build/container" :version "1.0.0" :description "Container templates for the stapeln container ecosystem. This directory\nprovides Podman-Chainguard-stapeln templates that are customised via\n`just container-init` or `just repo-init` during project bootstrap.\n\nAll files use {{PLACEHOLDER}} tokens that are substituted with project-\nspecific values during initialisation." :purpose "Provide a complete, security-first container deployment story for any\nRSR-compliant repository. The templates cover the full lifecycle:\nbuild, sign, verify, deploy, monitor, and govern." :overview "The stapeln container ecosystem comprises six tools:\n\nselur — Container orchestration with zero-copy IPC. Reads compose.toml.\ncerro-torre — Verified container packaging (.ctp bundles), Ed25519 signing.\nsvalinn — Policy-driven edge gateway (auth, rate limits, CORS, trust).\nvordr — Runtime monitoring (health, crashes, resources, logs).\nrokur — Secrets management (runtime injection, no baked secrets).\nk9-svc — Nickel deployment components (Kennel/Yard/Hunt trust levels)." - :context ("https://stapeln.dev/ns/v1") - (canonical-locations :build_pipeline "build/container/stapeln/ct-build.sh" :compose "build/container/stapeln/compose.toml" :compose_example "build/container/stapeln/compose.example.toml" :compose_portable "build/container/compose.yaml" :compose_portable_example "build/container/compose.example.yaml" :containerfile "build/container/Containerfile" :containerignore "build/container/.containerignore" :deployment "build/container/stapeln/deploy.k9.ncl" :entrypoint "build/container/entrypoint.sh" :gatekeeper "build/container/stapeln/.gatekeeper.yaml" :just_module "build/just/container.just" :manifest "build/container/stapeln/manifest.toml" :monitoring "build/container/stapeln/vordr.toml" :secrets_gate "build/container/stapeln/rokur.toml") - :invariants ("Base images MUST be cgr.dev/chainguard/wolfi-base or cgr.dev/chainguard/static" "Container runtime is Podman — never Docker" "Containerfile — never Dockerfile" "All images run as non-root (appuser or project-specific user)" ".ctp bundles are signed with Ed25519 via cerro-torre" "Health endpoints (/health, /ready) must always be public (no auth)") - (file-relationships - (file :name "compose.toml" :role "Orchestration" :description "selur-compose stack definition. Declares services, volumes, networks,\nand health checks. References the Containerfile for image builds and\n.gatekeeper.yaml for svalinn policy." :depends-on ("Containerfile" ".gatekeeper.yaml")) - (file :name "Containerfile" :role "Image Build (Tier A)" :description "Multi-stage OCI container build. Stage 1 compiles the application on\nwolfi-base; Stage 2 copies the binary into a minimal runtime image and\ncopies entrypoint.sh. Engine-agnostic (podman/nerdctl/docker). The\nstapeln files (.gatekeeper.yaml, manifest.toml) are referenced only as\nOCI labels and copied in only if you uncomment those COPY lines, so the\nimage has no hard dependency on tier C." :depends-on ("entrypoint.sh")) - (file :name "manifest.toml" :role "Bundle Metadata" :description "Cerro-torre .ctp bundle manifest. Describes provenance, dependencies,\nattestations, and runtime security profile. Used by `ct pack` and\n`ct verify`." :depends-on ()) - (file :name ".gatekeeper.yaml" :role "Gateway Policy" :description "Svalinn edge gateway policy. Controls authentication, rate limiting,\ncontainer trust, request validation, CORS, and audit logging." :depends-on ()) - (file :name "ct-build.sh" :role "Build Pipeline" :description "Shell script implementing the 5-stage pipeline: build (Podman),\npack (cerro-torre .ctp), sign (Ed25519), verify, push (optional).\nDegrades gracefully when cerro-torre tools are not installed." :depends-on ("Containerfile" "manifest.toml")) - (file :name "entrypoint.sh" :role "Container Entrypoint" :description "Startup script with signal handling (SIGTERM, SIGINT), logging, and\nexec into the main application process." :depends-on ()) - (file :name "vordr.toml" :role "Runtime Monitoring" :description "Vordr monitoring configuration. Health endpoint probing, crash\ndetection, resource thresholds, and structured log output." :depends-on ()) - (file :name "deploy.k9.ncl.in" :role "Deployment Component (template)" :description "k9-svc deployment component at the Hunt leash, K9 contract v1.0.0:\npedigree with capability grant, side effects and signature block;\nenvironment configs, container config, rolling deployment strategy,\ndeploy scripts and Just recipes. `just container-init` renders it to\ndeploy.k9.ncl once no placeholder token is left." :depends-on ("compose.toml" "ct-build.sh")) - (file :name "compose.example.toml" :role "Example" :description "Fully-commented multi-service example (Rust API + Elixir worker +\nsvalinn gateway). Copy to compose.toml and customise." :depends-on ()) - )) - (directory :id "docs-pillar" :ply 1 :path "docs" :description "Technical documentation hub. The root contains high-level orientation\n(README, Quickstart, State-Visualizer). Specialized tracks live in\nsubdirectories." - (canonical-locations :architecture "architecture/" :attribution "attribution/" :decisions "decisions/" :developer "developer/" :governance "governance/" :legal "legal/" :practice "practice/" :quickstart "QUICKSTART.adoc" :reports "reports/" :standards "standards/" :state_visualizer "STATE-VISUALIZER.adoc" :theory "theory/" :whitepapers "whitepapers/" :wikis "wikis/") - :invariants ("Primary documentation format MUST be AsciiDoc (.adoc)" "Root docs/ MUST only contain pillar entry points") - (directory :id "architecture-track" :ply 2 :path "docs/architecture" :description "Documentation track for system architecture and threat models." - (canonical-locations :threat_model "THREAT-MODEL.adoc") - :invariants ("Visual diagrams MUST include ASCII or Mermaid representations")) - (directory :id "attribution-unit" :ply 2 :path "docs/attribution" :description "Sub-unit of the docs pillar focusing on attribution.") - (directory :id "decisions-unit" :ply 2 :path "docs/decisions" :description "Sub-unit of the docs pillar focusing on decisions.") - (directory :id "developer-unit" :ply 2 :path "docs/developer" :description "Sub-unit of the docs pillar focusing on developer.") - (directory :id "governance-pillar" :ply 1 :path "docs/governance" :description "Primary governance pillar implementing the Triaxial Software Development\nMethodology (TSDM). Contains planning, maintenance, and audit tracks." - (canonical-locations :approach "SOFTWARE-DEVELOPMENT-APPROACH.adoc" :audit "audit/" :checklist "MAINTENANCE-CHECKLIST.adoc" :crg "CRG-CRITERIA.adoc" :maintenance "maintenance/" :planning "planning/" :tsdm_spec "TSDM.adoc") - (directory :id "governance-axis-audit" :ply 2 :path "docs/governance/audit" :description "TSDM Audit track." - (directory :id "governance-unit-compliance" :ply 3 :path "docs/governance/audit/compliance" :description "TSDM compliance unit within the Audit axis.") - (directory :id "governance-unit-effects" :ply 3 :path "docs/governance/audit/effects" :description "TSDM effects unit within the Audit axis.") - (directory :id "governance-unit-systems" :ply 3 :path "docs/governance/audit/systems" :description "TSDM systems unit within the Audit axis.")) - (directory :id "governance-axis-maintenance" :ply 2 :path "docs/governance/maintenance" :description "TSDM Maintenance track." - (directory :id "governance-unit-adaptive" :ply 3 :path "docs/governance/maintenance/adaptive" :description "TSDM adaptive unit within the Maintenance axis.") - (directory :id "governance-unit-corrective" :ply 3 :path "docs/governance/maintenance/corrective" :description "TSDM corrective unit within the Maintenance axis.") - (directory :id "governance-unit-perfective" :ply 3 :path "docs/governance/maintenance/perfective" :description "TSDM perfective unit within the Maintenance axis.")) - (directory :id "governance-axis-planning" :ply 2 :path "docs/governance/planning" :description "TSDM Planning track." - (directory :id "governance-unit-could" :ply 3 :path "docs/governance/planning/could" :description "TSDM could unit within the Planning axis.") - (directory :id "governance-unit-must" :ply 3 :path "docs/governance/planning/must" :description "TSDM must unit within the Planning axis.") - (directory :id "governance-unit-should" :ply 3 :path "docs/governance/planning/should" :description "TSDM should unit within the Planning axis."))) - (directory :id "legal-track" :ply 2 :path "docs/legal" :description "Sub-unit for legal and licensing documentation. Contains framework\nexhibits and archival license texts." - (canonical-locations :exhibits "exhibits/" :texts "texts/")) - (directory :id "practice-unit" :ply 2 :path "docs/practice" :description "Sub-unit of the docs pillar focusing on practice.") - (directory :id "reports-unit" :ply 2 :path "docs/reports" :description "Documentation unit for all automated and manual audit reports. Classified\nby domain." - (canonical-locations :compliance "compliance/" :maintenance "maintenance/" :performance "performance/" :quality "quality/" :security "security/") - (directory :id "report-unit-compliance" :ply 3 :path "docs/reports/compliance" :description "Specialised repository for compliance findings and evidence.") - (directory :id "report-unit-maintenance" :ply 3 :path "docs/reports/maintenance" :description "Maintenance reports.") - (directory :id "report-unit-performance" :ply 3 :path "docs/reports/performance" :description "Specialised repository for performance findings and evidence.") - (directory :id "report-unit-quality" :ply 3 :path "docs/reports/quality" :description "Specialised repository for quality findings and evidence.") - (directory :id "report-unit-security" :ply 3 :path "docs/reports/security" :description "Specialised repository for security findings and evidence.")) - (directory :id "standards-unit" :ply 2 :path "docs/standards" :description "Standards unit for high-rigor verification.") - (directory :id "theory-track" :ply 2 :path "docs/theory" :description "Documentation track for domain-specific theory and research foundations.\nCategorised by discipline." - (canonical-locations :computing "computing/" :formalisms "formalisms/" :mathematics "mathematics/" :ontologies "ontologies/" :other "other/" :socio_technical "socio-technical/") - :invariants ("Theoretical claims MUST reference established academic or technical formalisms") - (directory :id "theory-unit-computing" :ply 3 :path "docs/theory/computing" :description "Theoretical foundation for computing.") - (directory :id "theory-unit-formalisms" :ply 3 :path "docs/theory/formalisms" :description "Theoretical foundation for formalisms.") - (directory :id "theory-unit-mathematics" :ply 3 :path "docs/theory/mathematics" :description "Theoretical foundation for mathematics.") - (directory :id "theory-unit-ontologies" :ply 3 :path "docs/theory/ontologies" :description "Theoretical foundation for ontologies.") - (directory :id "theory-unit-other" :ply 3 :path "docs/theory/other" :description "Theoretical foundation for other.") - (directory :id "theory-unit-socio-technical" :ply 3 :path "docs/theory/socio-technical" :description "Theoretical foundation for socio technical.")) - (directory :id "whitepapers-track" :ply 2 :path "docs/whitepapers" :description "Unit for strategic publications and whitepapers. Categorised by target\naudience: Academic, Industry, and Outreach." - (canonical-locations :academic "academic/" :industry "industry/" :outreach "outreach/") - :invariants ("Each sub-track MUST have a clear audience definition in its README") - (directory :id "academic-unit" :ply 3 :path "docs/whitepapers/academic" :description "Academic logic at level 3.") - (directory :id "industry-unit" :ply 3 :path "docs/whitepapers/industry" :description "Industry logic at level 3.") - (directory :id "whitepapers-track-outreach" :ply 3 :path "docs/whitepapers/outreach" :description "Documentation track for outreach, education, and general-audience\nengagement. Focuses on accessibility and high-level conceptual clarity." - :invariants ("Language MUST be accessible to non-technical audiences" "Avoid deep technical jargon without providing clear definitions"))) - (directory :id "wikis-track" :ply 2 :path "docs/wikis" :description "Long-form collaborative documentation and project knowledge base.\nThis directory mirrors the content structure of the project wiki." - :invariants ("Primary wiki format MUST be Markdown (.md) — owner ruling 2026-09-19: wikis are the .md home (berrywiki); everything outside wikis stays .adoc"))) - (directory :ply 1 :path "examples") - (directory :id "features-pillar" :ply 1 :path "features" :description "Optional project features and ecosystem integrations. Provides bootstrap\nguides for high-rigor tools (Panic-Attacker, BoJ-Server, SSGs)." - (canonical-locations :boj_server "boj-server/" :panic_attacker "panic-attacker/" :ssg "ssg/") - (directory :id "feature-unit-boj-server" :ply 2 :path "features/boj-server" :description "Bootstrap and integration logic for the boj-server ecosystem component.") - (directory :id "feature-unit-panic-attacker" :ply 2 :path "features/panic-attacker" :description "Bootstrap and integration logic for the panic-attacker ecosystem component.") - (directory :id "feature-unit-ssg" :ply 2 :path "features/ssg" :description "Bootstrap and integration logic for the ssg ecosystem component.")) - (directory :id "source-pillar" :ply 1 :path "src" :description "Primary source code directory. Organized by role and architectural\naspect." - (canonical-locations :aspects "aspects/" :bridges "bridges/" :contracts "contracts/" :core "core/" :definitions "definitions/" :errors "errors/" :interface "interface/") - :invariants ("Core logic MUST reside in core/" "Verified seams MUST reside in interface/" "Safety constraints MUST reside in contracts/" "Failure dictionaries MUST reside in errors/") - (directory :id "source-unit-aspects" :ply 2 :path "src/aspects" :description "Cross-cutting concerns and domain-specific aspects (Security,\nObservability, Integrity)." - (canonical-locations :integrity "integrity/" :observability "observability/" :security "security/") - (directory :id "aspect-unit-integrity" :ply 3 :path "src/aspects/integrity" :description "Implementation logic for the integrity aspect.") - (directory :id "aspect-unit-observability" :ply 3 :path "src/aspects/observability" :description "Implementation logic for the observability aspect.") - (directory :id "aspect-unit-security" :ply 3 :path "src/aspects/security" :description "Implementation logic for the security aspect.")) - (directory :id "source-unit-bridges" :ply 2 :path "src/bridges" :description "Integration logic for external systems (API, Database, RPC, etc.).") - (directory :id "source-unit-contracts" :ply 2 :path "src/contracts" :description "Contracts unit for high-rigor source code.") - (directory :id "source-unit-core" :ply 2 :path "src/core" :description "Primary application logic and core domain models.") - (directory :id "source-unit-definitions" :ply 2 :path "src/definitions" :description "Definitions unit for high-rigor source code.") - (directory :id "source-unit-errors" :ply 2 :path "src/errors" :description "Errors unit for high-rigor source code.") - (directory :id "interface-seams-unit" :ply 2 :path "src/interface" :description "Consolidated \"Verified Interface Seams\" unit. This directory unifies the\nformal specification (ABI), the bridge implementation (FFI), and the\nresulting artifacts (Generated)." - (canonical-locations :abi "abi/" :ffi "ffi/" :generated "generated/") - :invariants ("ABI MUST be Idris2 (.idr)" "FFI MUST be Zig (.zig)" "Generated artifacts MUST be C-compatible" "The 'Truth' lives in abi/; the 'Implementation' lives in ffi/") - (directory :id "abi-logic" :ply 3 :path "src/interface/Abi" :description "Specialised Level 3 logic for abi.") - (directory :id "ffi-logic" :ply 3 :path "src/interface/ffi" :description "Specialised Level 3 logic for ffi." - (directory :id "src-unit" :ply 4 :path "src/interface/ffi/src" :description "Src logic at level 4.") - (directory :id "test-unit" :ply 4 :path "src/interface/ffi/test" :description "Test logic at level 4.")) - (directory :id "generated-logic" :ply 3 :path "src/interface/generated" :description "Specialised Level 3 logic for generated." - (directory :id "abi-unit" :ply 4 :path "src/interface/generated/abi" :description "Abi logic at level 4.")))) - (directory :id "verification-pillar" :ply 1 :path "verification" :description "Primary verification pillar. Contains evidence for correctness,\nperformance, formal proofs, randomized testing, and aerospace-grade\nhigh-assurance metrics (MC/DC coverage, traceability, safety cases)." - (canonical-locations :benchmarks "benchmarks/" :coverage "coverage/" :fuzzing "fuzzing/" :proofs "proofs/" :safety_case "safety_case/" :simulations "simulations/" :tests "tests/" :traceability "traceability/") - :invariants ("Evidence MUST be reproducible and documented" "High-assurance deployments MUST satisfy traceability and safety_case requirements") - (directory :id "benches-pillar" :ply 2 :path "verification/benchmarks" :description "Benches pillar.") - (directory :id "verification-unit-coverage" :ply 2 :path "verification/coverage" :description "High-assurance verification unit for coverage. \nCritical for safety-of-life and aerospace-grade deployment standards.") - (directory :id "fuzzing-unit" :ply 2 :path "verification/fuzzing" :description "Fuzzing unit for high-rigor verification.") - (directory :id "verification-unit-proofs" :ply 2 :path "verification/proofs" :description "Sub-unit focusing on proofs.") - (directory :id "verification-unit-safety_case" :ply 2 :path "verification/safety_case" :description "High-assurance verification unit for safety case. \nCritical for safety-of-life and aerospace-grade deployment standards.") - (directory :id "simulations-unit" :ply 2 :path "verification/simulations" :description "Simulations unit for high-rigor verification.") - (directory :ply 2 :path "verification/tests") - (directory :id "verification-unit-traceability" :ply 2 :path "verification/traceability" :description "High-assurance verification unit for traceability. \nCritical for safety-of-life and aerospace-grade deployment standards.")) - ) - ; ANCHOR — the authoritative anchor: semantic authority, implementation policy - ; and the golden path. The CLAUDE.md arrival pack reads anchor/golden-path and hashes this clause (ANCHOR@…). - (anchor - :schema "hyperpolymath.anchor/1" - :repo "{{OWNER}}/{{REPO}}" - :authority "upstream-canonical" - :purpose ( - "Define canonical semantics and policy boundaries for this repository." - "Declare what downstream/satellite repos can extend but not redefine." - "Provide a stable golden path and invariant contract for release readiness." - ) - (metadata - :version "1.0.0" - :last-updated "{{CURRENT_DATE}}") - (identity - :project "{{PROJECT_NAME}}" - ; language | library | service | tool - :kind "{{PROJECT_KIND}}" - :one-sentence "{{PROJECT_PURPOSE}}" - :domain "{{PROJECT_DOMAIN}}") - (semantic-authority - :policy "canonical" - :owns ( - "Project semantics and specification" - "Invariant definitions and contractiles" - "Reference implementation behavior" - )) - (implementation-policy - :allowed ("Rust" "Idris2" "Zig" "Scheme" "Shell" "Just" "AsciiDoc" "Markdown") - :forbidden ("Node.js" "npm")) - (golden-path - :smoke-test-command ("just test" "just quality") - :success-criteria ( - "Core tests pass" - "Quality gates pass" - "No unresolved critical security findings" - )) - (satellite-policy - :must-pin-upstream #t - :must-declare-authority #t - :must-have-anchor #t - :must-have-golden-path #t) - (semantic-authority-files - :language-spec "SPECIFICATION.md" - :formal-proofs "docs/proofs/PROOFS.adoc" - :type-theory "docs/theory/THEORY.adoc" - :algorithms "docs/theory/ALGORITHMS.adoc")) - ; NEUROSYM — neurosymbolic integration metadata: the meaning of operations. - ; Configuration for Hypatia scanning and symbolic reasoning. - (neurosym - (metadata - :version "0.1.0" - :last-updated "2026-04-11") - (hypatia-config - :scan-enabled #t - ; quick | standard | deep - :scan-depth "standard" - :report-format "logtalk") - (symbolic-rules - ; Custom symbolic rules for this project - ; (rule :name "no-unsafe-ffi" :pattern "believe_me|unsafeCoerce" :severity "critical") - ) - (neural-config - ; Neural pattern detection settings - ; confidence-threshold = 0.85 - ; model = "hypatia-v2" - )) - ; PLAYBOOK — operational playbook: how permitted actions run. - ; Runbooks, incident response, deployment procedures. - (playbook - (metadata - :version "0.1.0" - :last-updated "2026-04-11") - (deployment - ; :method "gitops" ; gitops | manual | ci-triggered - ; :target "container" ; container | binary | library | wasm - ) - (incident-response - ; 1. Check the repo deed (*_chora.deed) (status) clause and docs/status/ROADMAP.adoc for current status - ; 2. Review recent commits and CI results - ; 3. Run `just validate` to check compliance - ; 4. Run `just security` to audit for vulnerabilities - ) - (release-process - ; 1. Update version in the repo deed (meta :version), Justfile - ; 2. Run `just release-preflight` (validate + quality + security + maint-hard-pass) - ; 3. Optional local permission hardening: `just perms-snapshot && just perms-lock` - ; 4. Tag and push - ; 5. Restore local permissions if needed: `just perms-restore` - ; 6. Run `just container-push` if applicable - ) - (maintenance-operations - ; Baseline audit: - ; just maint-audit - ; Hard release gate: - ; just maint-hard-pass - ; Permission audit: - ; just perms-audit - ) - (rsr-repo-skeleton - ; Canonical organisation of any RSR-derived repository. - ; Used by tooling, human onboarding, and the scheduled downstream sweep agent. - ; The 5-PR cleanup pattern (below) brings a non-conforming repository into - ; compliance with this skeleton. - ; - ; This section is the single source of truth for "what does an RSR repo look - ; like?". Other docs (TOPOLOGY, AUDIT, etc.) describe the repo at hand; - ; this describes the canonical shape that all RSR repos share. - :skeleton-version "1.0" - :last-updated "2026-04-30" - :authority-allowlist ".machine_readable/root-allow.txt" - :enforcement-workflow ".github/workflows/estate-rules.yml")) - ; eNSAID environment configuration — per-repo configuration for PanLL and - ; eNSAID-compatible tools. - ; Spec: https://github.com/hyperpolymath/standards/tree/main/1-formats/sub-specs/ensaid-config - (ensaid - :version "1.0.0" - :tool "panll" - ; Workspace mode, protection, and execution policy - (workspace - ; rhodium | gold | silver | bronze - :mode "rhodium" - ; open | guarded | locked - :protection "open" - ; live | dry-run | approval-required - :execution "live") - ; User/repo-level display and behaviour preferences - (preferences - ; high | medium | low (drift aura intensity) - :humidity "medium" - ; workspace arrangement ID - :default-arrangement "default-3-panel" - ; auto-connect panels to backends on load - :auto-connect #t) - ; Panel visibility, enablement, and isolation overrides - (panels - :version "1.0.0" - ; By default, all panels are available. Uncomment to restrict: - ; (enabled :id "valence-shell" :isolation "native" :auto-connect #t) - ; (enabled :id "editor-bridge" :isolation "native" :auto-connect #t) - ; Panels to hide for this repo context: - ; (disabled :ids ()) - ) - ; Automation Router event-driven cross-panel rules - (workflows - :version "1.0.0" - ; Example: rebuild on file save - ; (rule :name "build-on-save" - ; (trigger :event "file-changed" :pattern "src/**/*.res") - ; (condition :panel "build-dashboard" :field "watchMode" :equals #t) - ; (action :panel "build-dashboard" :message "TriggerBuild" (args :target "game")) - ; :approval "auto-fire") ; auto-fire | require-approval | approve-once | dry-run-first - ) - ; Panel clade trait and capability overrides - (clades - :version "1.0.0" - ; Example: add a custom capability to a panel clade - ; (override :id "build-dashboard" (traits :has-work-items #t) :capabilities-add ("CustomCheck")) - ) - ; Custom panel bundles for this repo's workflow - (portfolios - :version "1.0.0")) - ; Bot directives — what agents and bots read at session start and update at - ; session end. Human guide: - ; .machine_readable/bot_directives/README.adoc. - (bot-directives - ; methodology — AI agent methodology configuration - ; Declares how agents should approach work in this repository. - ; Read at session start by any AI agent (Claude, Gemini, Copilot, etc.) - ; - ; Reference: ADR-002 (methodology layer) in hyperpolymath/standards - (methodology - (metadata - :version "1.0.0" - :last-updated "{{CURRENT_DATE}}" - :spec "https://github.com/hyperpolymath/standards/blob/main/1-formats/a2ml/agentic/docs/ADR-002-methodology-layer.adoc") - ; ============================================================================ - ; MODE SELECTION - ; ============================================================================ - ; convergent: find gaps, fill them, build infrastructure (default for ops/infra) - ; divergent: find what's strongest, push it further (for research/creative) - ; hybrid: audit 20% of budget, then focus 80% on top MUSTs (default for most) - (methodology - :default-mode "hybrid" - ; Hard ceiling for ring expansion (0-3) - :ring-ceiling 2 - ; Max waves before requiring user "keep going" - :wave-cap 2 - ; Every session must ship code, not just designs - :spike-required #t - ; ============================================================================ - ; PRIORITY WEIGHTS - ; ============================================================================ - ; MUST (3x): Blocking the current work → fix immediately - ; SHOULD (2x): Degrading quality of current work → fix if in zone - ; COULD (1x): Improving quality of adjacent work → add to debt list - (priority-weights - :must 3 - :should 2 - :could 1) - ; ============================================================================ - ; CONVERGENT BUDGET (when mode = convergent or hybrid) - ; ============================================================================ - ; How to allocate effort across work types. - ; Prevents over-polishing docs while structural work waits. - (convergent-budget - ; % for new modules, compilation fixes, wiring, integration - :structural 70 - ; % for bugs found, broken imports, stale references - :corrective 20 - ; % for SPDX headers, doc updates, formatting, style - :perfective 10) - ; ============================================================================ - ; UNIQUE STRENGTH (when mode = divergent) - ; ============================================================================ - ; What makes this project special. Agents should DEEPEN this, not broaden it. - ; Customise this per project — the template default is generic. - (unique-strength - :description "{{PROJECT_UNIQUE_STRENGTH}}" - :deepen-not-broaden #t) - ; ============================================================================ - ; DIVERGENT INVARIANTS - ; ============================================================================ - ; Constraints that divergent mode must NOT violate. - ; These are the riverbanks — diverge within them, not across. - ; "Amplify uniqueness" means deepen, not broaden. - ; - ; Test before any divergent action: - ; "Does this deepen the existing strength, or add a parallel strength?" - ; If parallel → stop. Note as cross-project insight. - (divergent-invariants - ; Customise per project. Examples: - ; "Idris2 only for formal verification — no Lean4, Coq, Agda", - ; "believe_me count must remain zero", - ; "FFI architecture: Idris2 → RefC → Zig → C ABI (no shortcuts)", - :rules ()) - ; Optional: language invariant for the core strength - ; If set, divergent mode will not introduce other languages for this purpose - ; language-invariant = "idris2" - ; ============================================================================ - ; CONSTRAINT HINTS - ; ============================================================================ - ; Help Phase 0 find the critical chain faster. - ; Updated at session end with newly discovered constraints. - (known-constraints - ; Customise per project. Examples: - ; "End-to-end build has never been verified", - ; "libproject.so does not exist yet — all bindings call stubs", - :constraints ()) - ; ============================================================================ - ; STATE FILE VALIDATION - ; ============================================================================ - ; Phase 0 reads the repo deed (status) clause and docs/status/ROADMAP.adoc first, - ; but they may be broken. - ; These rules detect corrupt/template/stale state files. - (state-validation - ; A regex, not a literal list. The list form named the exact strings it was - ; meant to catch ("{{PROJECT}}"), so `just repo-init` substituted the detector along - ; with everything else and shipped reject-if-contains = ["MY_PROJECT", ...] — - ; a guard against unfilled tokens that had been eaten by the filling. The - ; escaped pattern below contains no token for init to match, and covers every - ; upper-snake token rather than the three anyone remembered to enumerate. - ; Enforced by scripts/check-no-placeholders.sh. - :reject-if-matches ("\\{\\{[A-Z][A-Z0-9_]*\\}\\}") - :reject-if-contains ("rsr-template-repo") - :reject-if-project-name-mismatch #t - :staleness-threshold-days 90 - :fallback-files ("TODO.md" "TODO.adoc" "ROADMAP.adoc" "README.adoc")))) - ; coverage — session coverage tracking - ; Updated at the end of each AI agent session. - ; Persists what was visited, what was skipped, and what has MUSTs. - ; - ; Reference: ADR-002 (methodology layer) in hyperpolymath/standards - (coverage - (metadata - :version "1.0.0" - :last-updated "{{CURRENT_DATE}}") - ; ============================================================================ - ; COVERAGE STATE - ; ============================================================================ - ; Updated by agents at session end. Tracks which components have been - ; visited and which have known MUSTs that were skipped. - (coverage - :total-components 0 - :visited-components 0 - :coverage-percent 0)) - ; debt — Meander debt list - ; Things found but not fixed. Carried between sessions. - ; Becomes the next session's Phase 0 input. - ; - ; Reference: ADR-002 (methodology layer) in hyperpolymath/standards - (debt - (metadata - :version "1.0.0" - :last-updated "{{CURRENT_DATE}}")) - ; rra — directives for Robot Repo Automaton (RRA) enforcing the Platonic Ideal root. - (rra - :target "robot-repo-automaton" - (module - :name "root-cleaner" - ; mode can be "enforce" (auto-commit) or "putative" (write to /.auto-rr/ for human review) - (policy - :mode "putative" - :strictness "high") - ; Files that are strictly allowed to exist at the root. CLAUDE.md is the - ; generated arrival pack; git/Claude/pre-commit all read it from the ROOT. - ; The pattern ".*" allows hidden dotfiles implicitly; RRA checks specific - ; dotfile rules below. - (allow-list - :files ("README.adoc" "CHANGELOG.adoc" "Justfile" "LICENSE" "rsr-template-repo_chora.deed" "CITATION.cff" "CLAUDE.md") - :patterns (".*")) - ; Relocation rules: move heavy prose out of the root - (relocations - (move :pattern "*.adoc" :dest "docs/" :except ("README.adoc" "CHANGELOG.adoc")) - (move :pattern "GOVERNANCE.*" :dest "docs/") - (move :pattern "ARCHITECTURE.*" :dest "docs/") - (move :file "MAINTAINERS.adoc" :dest "docs/")) - ; Consolidation rules: reduce the dotfile "wall of noise" - (consolidations - ; Merge legacy environment trackers into mise - (merge :sources (".envrc" ".tool-versions") :engine "mise-translator" :dest ".config/mise.toml") - ; Ensure standard git attributes are consolidated - (merge :sources (".gitattributes-legacy" ".gitattributes-os") :dest ".gitattributes")) - ; Explicitly ignore certain paths from being cleaned - (ignores - :dirs ("src/" "tests/" ".git/" "docs/" ".machine_readable/"))))) - ; Optional ecosystem integrations. - ; Each clause is opt-in; delete the ones your project does not use. - (integrations - ; OPTIONAL: Feedback-o-Tron Integration — Autonomous Bug Reporting - ; Delete this clause if your project does not use feedback-o-tron. - (feedback-o-tron - (integration - :name "feedback-o-tron" - :type "bug-reporter" - :repository "https://github.com/hyperpolymath/feedback-o-tron") - (reporting-config - :platforms ("github" "gitlab" "bugzilla") - :deduplication #t - :audit-logging #t - :auto-file-upstream "on-external-dependency-failure")) - ; OPTIONAL: Proven Integration — Formally Verified Safety Library - ; Delete this clause if your project does not use the proven library. - ; See https://github.com/hyperpolymath/proven for details. - (proven - (integration - :name "proven" - :type "safety-library" - :repository "https://github.com/hyperpolymath/proven" - :version "1.2.0") - (binding-policy - :approach "thin-ffi-wrapper" - :unsafe-patterns "replace-with-proven-equivalent" - :modules-available ( - "SafeMath" - "SafeString" - "SafeJSON" - "SafeURL" - "SafeRegex" - "SafeSQL" - "SafeFile" - "SafeTemplate" - "SafeCrypto" - )) - (adoption-guidance - :priority "high" - :scope "all-string-json-url-crypto-operations" - :migration "incremental — replace unsafe patterns as encountered")) - ; OPTIONAL: VeriSimDB Feed — Cross-Repo Analytics Data Store - ; Delete this clause if your project does not feed data to VeriSimDB. - ; See https://github.com/hyperpolymath/nextgen-databases for details. - (verisimdb - (integration - :name "verisimdb" - :type "data-feed" - :repository "https://github.com/hyperpolymath/nextgen-databases" - :data-store "verisimdb-data") - (feed-config - :emit-scan-results #t - :emit-build-metrics #t - :emit-dependency-graph #t - :format "hexad" - :destination "verisimdb-data/feeds/")) - ; OPTIONAL: Vexometer Integration — Irritation Surface Analysis - ; Delete this clause if your project does not use vexometer. - (vexometer - (integration - :name "vexometer" - :type "friction-measurement" - :repository "https://github.com/hyperpolymath/vexometer") - (measurement-config - :dimensions 10 - :emit-isa-reports #t - :lazy-eliminator #t - :satellite-interventions #t) - (hooks - :cli-tools "measure-on-error" - :ui-panels "measure-on-interaction" - :build-failures "measure-on-failure")) - ; groove — Groove Protocol manifest: the API surfaces this project exposes - ; Consumed by the Groove bridge / - ; zig-unified-api-adapter for snap-on/snap-off service discovery. Edit it to - ; match your project's actual APIs; `just groove-setup` writes :port and the - ; :enabled flags through scripts/deed-clause.sh. - ; See: https://github.com/hyperpolymath/standards/tree/main/groove-protocol - (groove - :version "1.0" - ; Service identity — replace {{REPO}} with your project name - :service "{{REPO}}" - :service-version "0.1.0" - ; Primary port — MUST be unique across the ecosystem. Check PORT-REGISTRY.md - ; in the standards repo before assigning: - ; https://github.com/hyperpolymath/standards/blob/main/PORT-REGISTRY.md - ; 0 = not assigned yet — run `just groove-setup` to assign - :port 0 - ; Health endpoint — used by Groove discovery - :health "/health" - ; Capabilities — what this service can do for others - :capabilities () - ; Dependencies — what this service needs from others - :dependencies () - ; API surfaces this project exposes (dodeca-API). Remove the ones you don't use. - (api-surfaces - (rest :enabled #t :path "/api/v1") - (grpc :enabled #f :port-offset 1) - (graphql :enabled #f :path "/graphql") - (websocket :enabled #f :path "/ws") - (sse :enabled #f :path "/events") - (groove :enabled #t :path "/.well-known/groove")))) - ; Maintenance and development policies, machine-readable canonical. - ; Human companions live in - ; docs/governance/. - (policies - ; Canonical maintenance governance model - (maintenance-axes - (metadata - :version "1.0.0" - :last-updated "{{CURRENT_DATE}}" - :scope "repo") - (discovery - :human-entrypoints ( - "README.adoc" - "docs/governance/MAINTENANCE-CHECKLIST.adoc" - "docs/governance/SOFTWARE-DEVELOPMENT-APPROACH.adoc" - ) - :machine-entrypoints ( - "*_chora.deed (policies (maintenance-axes))" - "*_chora.deed (policies (maintenance-checklist))" - "*_chora.deed (policies (software-development-approach))" - "*_chora.deed" - ".machine_readable/ai/README.adoc" - "*_chora.deed (bot-directives)" - ) - :bots ("hypatia" "gitbot-fleet" "repo visitors")) - (axes - :axis-1 "must > intend > like" - :axis-2 "corrective > adaptive > perfective" - :axis-3 "systems > compliance > effects" - :execution-order "axis-1 > axis-2 > axis-3") - (axis-1-scoping - :required #t - :sources "README, roadmap, status docs, maintenance checklist, CI/security docs" - :markers "TODO/FIXME/XXX/HACK/STUB/PARTIAL" - :idris-unsound-markers "believe_me/assert_total" - :output "scoped work assembly in must/intend/like buckets") - (axis-2-maintenance - :corrective-first #t - :adaptive-second #t - :adaptive-focus "scope changes, stale references, obsolete work culling" - :perfective-third #t - :perfective-source "honest state from axis-1 after corrective/adaptive updates") - (axis-3-audit - :systems-check #t - :compliance-check #t - :effects-check #t - :compliance-focus "seams/compromises/exception register and anti-drift" - :compliance-tooling "panic-attack" - :effects-tooling "ecological checking with sustainabot guidance" - :effects-evidence "benchmark evidence and maintainer dialogue/status review")) - ; Cross-repo maintenance baseline (machine-readable canonical) - (maintenance-checklist - (metadata - :version "1.1.0" - :last-updated "2026-02-24" - :scope "cross-repo" - :source-human "docs/governance/MAINTENANCE-CHECKLIST.adoc" - :companion-human "docs/governance/SOFTWARE-DEVELOPMENT-APPROACH.adoc" - :companion-machine "*_chora.deed (policies (software-development-approach))") - (policy - :single-source #t - :notes "Use this clause as canonical machine policy and keep the AsciiDoc synchronized.") - (maintenance-axes - :scoping-first #t - :execution-order ("scoping" "axis-1" "axis-2" "axis-3") - :axis-1 "must > intend > like" - :axis-2 "corrective > adaptive > perfective" - :axis-3 "systems > compliance > effects") - (scoping - :inputs_required ( - "README" - "roadmap" - "status-docs" - "maintenance-checklist" - "ci-and-security-docs" - ) - :marker_scan_required ("TODO" "FIXME" "XXX" "HACK" "STUB" "PARTIAL") - :idris_unsound_scan_required ("believe_me" "assert_total") - :scope_assembly_buckets ("must" "intend" "like")) - (axis-2-maintenance-rules - :corrective-first #t - :adaptive-second #t - :adaptive_examples ( - "scope-change reconciliation" - "stale-reference removal" - "obsolete-work culling" - ) - :perfective-third #t - :perfective_source "axis-1 honest state after corrective/adaptive updates") - (axis-3-audit-rules - :systems-check #t - :documentation-honesty-check #t - :safety-security-accounted-check #t - :effects-review-check #t - :benchmark-evidence-required #t - :maintainer-dialogue-review-required #t - :compliance-seams-check #t - :exception-register-required #t - :exception-bounded-scope-required #t - :policy-drift-contamination-check #t - :example-drift-risk "single TypeScript exception causing broad ->TypeScript migration" - :compliance-tooling "panic-attack" - :effects-tooling "ecological checking with sustainabot guidance") - (generic-cleanup-finish-off - :root-cleanup-required #t - :stale-work-cull-required #t - :docs-parity-required #t - :machine-human-sync-required #t - :compliance-finish-off-required #t - :effects-finish-off-required #t - :release-prep-summary-required #t - :next-actions-required ("corrective" "adaptive" "perfective")) - (must - :root_control_files ( - ".gitignore" - ".gitattributes" - ".editorconfig" - ".tool-versions" - "Containerfile" - "Justfile" - ) - :root_hosting_files ("CNAME" ".nojekyll") - :ownership_files ("MAINTAINER" ".github/CODEOWNERS") - :machine_readable_required ( - "*_chora.deed (anchor)" - ".machine_readable/contractiles/" - ".machine_readable/ai/" - ".machine_readable/bot_directives/" - ) - :contractiles_required ( - ".machine_readable/contractiles/must/" - ".machine_readable/contractiles/trust/" - ".machine_readable/contractiles/intend/" - ) - :security_required ("www/.well-known/security.txt" "ci-security-scan") - :quality_gate_required ( - "format" - "lint" - "unit-tests" - "integration-tests" - "p2p-tests" - "e2e-tests" - "bench-smoke" - "docs-check" - "security-scan" - ) - :abi_ffi_policy ("ABI Idris2 in src/interface/abi/*.idr" "FFI Zig in ffi/**/*.zig")) - (should - :docs_primary_format "adoc" - :docs_structure ( - "docs/theory" - "docs/practice" - "docs/whitepapers/academic" - "docs/whitepapers/industry" - "docs/proofs" - "docs/reports" - ) - :root_minimization #t - :well_known_metadata #t - :roadmap_honesty_with_dates #t - :ci_doc_format_policy #t) - (could - :generate_human_from_machine #t - :mode_aware_bots ("corrective" "adaptive" "perfective" "audit") - :topology_dashboard #t - :exception_registry #t)) - ; General software development approach (machine-readable) - (software-development-approach - (metadata - :version "1.0.0" - :last-updated "2026-02-24" - :scope "cross-repo" - :source-human "docs/governance/SOFTWARE-DEVELOPMENT-APPROACH.adoc") - (execution - :order ("axis-1" "axis-2" "axis-3")) - (axis-1 - :name "scope" - :priority "must > intend > like" - :inputs ("README" "roadmap" "status-docs" "ci-and-security-docs") - :marker-scan ("TODO" "FIXME" "XXX" "HACK" "STUB" "PARTIAL") - :idris-unsound-scan ("believe_me" "assert_total") - :output "scoped-work-assembly") - (axis-2 - :name "maintenance" - :priority "corrective > adaptive > perfective" - :corrective "defect/regression/safety/security fixes" - :adaptive "scope reconciliation, stale-reference removal, obsolete-work culling" - :perfective "quality improvements derived from axis-1 honest state") - (axis-3 - :name "audit" - :priority "systems > compliance > effects" - :systems "required systems present and operating" - :compliance "exceptions explicit, bounded, and drift-resistant" - :effects "benchmark/operational impact evidence captured and reviewed" - :compliance-tooling "panic-attack" - :effects-tooling "ecological checking with sustainabot guidance") - (cleanup-finish-off - :root-cleanup #t - :stale-work-cull #t - :docs-sync-human-machine #t - :compliance-audit #t - :effects-audit #t - :release-summary ("must" "should" "could") - :next-actions ("corrective" "adaptive" "perfective")) - (collaboration - :maintainer-dialogue-required #t - :dialogue-topics ("what changed" "why" "remaining risks"))) - ; Component Readiness Grades (CRG v1.0) — the machine-readable grade - ; standard; the human companion is docs/governance/CRG-CRITERIA.adoc. - (crg-criteria - (standard - :name "Component Readiness Grades" - :abbreviation "CRG" - :version "1.0" - :date "2026-02-28" - :author "Jonathan D.A. Jewell " - :license "MPL-2.0" - :family "RSR") - (grades - (grade :code "X" :name "Untested" :release-stage #f :ordinal 0 - :description "No testing has been performed. Status unknown." - :evidence-required "none" - :minimum-for #f) - (grade :code "F" :name "Harmful / Wasteful" :release-stage #f :ordinal 1 - :description "Actively harmful, wasteful, or better handled externally. Reject, deprecate, or delegate." - :evidence-required "documented test results showing harm, waste, or redundancy; comparison with alternatives" - :minimum-for #f) - (grade :code "E" :name "Minimal / Salvageable" :release-stage "pre-alpha" :ordinal 2 - :description "Does something slight. Barely functional. Needs redesign or major work." - :evidence-required "at least one successful test case; documented failures and limitations" - :minimum-for #f) - (grade :code "D" :name "Partial / Inconsistent" :release-stage "alpha" :ordinal 3 - :description "Works on some things but not systematically." - :evidence-required "matrix of tested scenarios; documented scope vs actual capabilities" - :minimum-for "alpha") - (grade :code "C" :name "Self-Validated" :release-stage "beta" :ordinal 4 - :description "Tested on the tool/project itself (dogfooding). Reliable in home context." - :evidence-required "active dogfooding; CI integration or equivalent; no known failures in home context" - :minimum-for "beta") - (grade :code "B" :name "Broadly Validated" :release-stage "release-candidate" :ordinal 5 - :description "Tested on at least 6 disparate, unrelated targets." - :evidence-required "list of 6+ diverse targets with test results; evidence of feedback incorporation" - :minimum-for "release-candidate") - (grade :code "A" :name "Field-Proven" :release-stage "stable" :ordinal 6 - :description "Real-world external feedback confirms value. Does no harm in the wild." - :evidence-required "real-world usage data; feedback incorporation evidence; no unresolved harm reports" - :minimum-for "stable")) - (transitions - (promotion :from "X" :to "E" :requirement "Run at least one test. Document results.") - (promotion :from "X" :to "F" :requirement "Evaluate and determine harmful or wasteful.") - (promotion :from "E" :to "D" :requirement "Fix critical failures. Document scope.") - (promotion :from "D" :to "C" :requirement "Dogfood on own project. Fix what breaks.") - (promotion :from "C" :to "B" :requirement "Test on 6+ diverse external targets. Fix what breaks.") - (promotion :from "B" :to "A" :requirement "Ship. Collect external feedback. Demonstrate no harm.") - (demotion :from "A" :to "B" :trigger "External feedback dries up or reveals no longer useful.") - (demotion :from "A" :to "F" :trigger "External feedback reveals component causes harm.") - (demotion :from "B" :to "C" :trigger "Broad validation reveals unfixed failures.") - (demotion :from "C" :to "D" :trigger "Home context changes and component no longer reliable.") - (demotion :from "C" :to "F" :trigger "Dogfooding reveals net negative.") - (demotion :from "D" :to "E" :trigger "Scope narrows to barely functional.") - (demotion :from "any" :to "F" :trigger "Better external alternative makes this pure opportunity cost.")) - (conformance - :rules ( - "Each assessable component MUST have a grade from {X, F, E, D, C, B, A}." - "Each grade above X MUST be supported by evidence per section 4." - "Assessments MUST be recorded in a version-controlled location." - "Assessments MUST be reviewed at least once per release cycle." - "Release stages MUST respect minimum grade thresholds."))) - ; Triaxial Software Development Methodology — the machine-readable axes; - ; the human companion is docs/governance/TSDM.adoc. - (tsdm - :id "tsdm-standard" - :version "1.0.0" - (axes - (axis :ordinal 1 :name "Planning" :levels ("must" "should" "could")) - (axis :ordinal 2 :name "Maintenance" :levels ("corrective" "adaptive" "perfective")) - (axis :ordinal 3 :name "Audit" :levels ("systems" "compliance" "effects"))) - :invariants ( - "Every task MUST map to at least one TSDM coordinate" - "Axis 1 priority governs resource allocation" - "Axis 2 type governs commit categorisation" - "Axis 3 focus governs audit depth"))) - ; rsr-profile — this repo's declared RSR v2.0 capabilities. - ; It carries no canon pin: the (canon) clause above is the pin, exactly once. - ; - ; It declares which capabilities this repo has, - ; per 0-canon/TEMPLATE-APPLICABILITY-POLICY.adoc; the RSR v2.0 conformance oracle - ; (hypatia Hypatia.Rules.RsrConformance) uses `capabilities` to compute the - ; APPLICABLE criteria set — a gated criterion is scored only when its gating - ; capability appears below; everything else is `na` and excluded from the - ; denominator. - ; - ; rsr-template-repo is deliberately MAXIMAL: it ships scaffolding for FFI/ABI - ; seams, in-tree formal proofs, a container, a reproducible build, benchmarks, - ; a docs site, and the full governance trio — so a repo scaffolded FROM it can - ; adopt any of them. Its declared set is therefore near-total, which is exactly - ; what makes it the dogfood target (the gate requires Gold on the applicable - ; set). Every capability below is grounded in a file/dir that actually exists - ; in this tree; capabilities it does NOT have (rust, affinescript, mobile, - ; web-ui, api-service, published-package) are omitted so the oracle does not - ; score this repo against modules it does not carry. - (rsr-profile - :version "1.0.0" - :spec "rsr-criteria-v2" - :declares-against "2.1.1-draft" - ; Role in the estate pipeline: standards (canon) -> THIS (spine) -> scaffoldia - ; (composer) -> minted repos. A spine may carry capability-gated modules it - ; does not declare, for the repos minted from it; see [carrier] in the canon - ; gates table. A minted repo doing the same is still drift. - :role "spine" - ; Effective capability set (direct declaration; no preset shorthand used). - :capabilities ( - ; src/interface/ffi/build.zig + Zig FFI layer - "zig" - ; src/interface/abi.ipkg + src/interface/Abi/ (dependent-typed ABI) - "idris2" - ; scripts/*.sh automation - "bash" - ; src/ command-line entry scaffolding - "cli" - ; consumed/published as a library surface - "library" - ; C-ABI FFI seam (Zig), src/interface/ffi/ - "ffi" - ; formally specified ABI: src/interface/abi.ipkg + src/interface/Abi/ proofs - "abi" - ; verification/proofs/ (in-tree mechanised proofs) - "formal-proofs" - ; .github/workflows/pages.yml (casket/Pages) - "docs-site" - ; build/container/ + .devcontainer/Containerfile - "container" - ; build/guix.scm - "reproducible-build" - ; benches/ - "benchmarks" - ; full AUDIT/AFFIRMATION/GOVERNANCE/MAINTAINERS trio - "governance-tier" - ) - (notes - ; Capabilities intentionally NOT declared (no corresponding code in tree): - ; rust — no *.rs / Cargo.toml (the FFI/ABI layer is Zig + Idris2) - ; affinescript — no *.affine - ; mobile — no Tauri/Dioxus app - ; web-ui — no browser UI - ; api-service — not a network daemon - ; published-package — a scaffold template, not itself a registry artifact - :omitted-rationale "Declaring a capability this repo lacks would make the oracle score it against a module it does not carry — the over-scaffolding failure v2.0 fixes. See 0-canon/TEMPLATE-APPLICABILITY-POLICY.adoc.")) -) From 214b5d272df2f6b452efb607a5a8902d32beff7a Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Sat, 7 Nov 2026 19:31:27 +0000 Subject: [PATCH 3/3] Preserve canonical line endings in preflight evidence Match the checked evidence blob without platform newline conversion. Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com> --- .../merge-preflight.txt | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/audit/2026-11-07-soundness-sprint/merge-preflight.txt b/docs/audit/2026-11-07-soundness-sprint/merge-preflight.txt index cdce6a59..5ca5329c 100644 --- a/docs/audit/2026-11-07-soundness-sprint/merge-preflight.txt +++ b/docs/audit/2026-11-07-soundness-sprint/merge-preflight.txt @@ -1,10 +1,10 @@ -=== RSR Compliance Check === -RSR compliance: PASS -PASS: no unfilled {{PLACEHOLDER}} tokens -actions.lock is in sync and transitively closed: - * every uses: is locked under its own workflow path (job-level reusable refs included) - * every lockfile entry is still referenced - * every ref named in the lockfile resolves to a dependencies: record (0 dangling edges) - * every workflow file has a lockfile key (zero-uses: workflows included) - note: 1 dependencies: record(s) are unreferenced - harmless, but prunable. -MERGE PREFLIGHT PASS: RSR structure, placeholders, locks, shell errors, source evidence +=== RSR Compliance Check === +RSR compliance: PASS +PASS: no unfilled {{PLACEHOLDER}} tokens +actions.lock is in sync and transitively closed: + * every uses: is locked under its own workflow path (job-level reusable refs included) + * every lockfile entry is still referenced + * every ref named in the lockfile resolves to a dependencies: record (0 dangling edges) + * every workflow file has a lockfile key (zero-uses: workflows included) + note: 1 dependencies: record(s) are unreferenced - harmless, but prunable. +MERGE PREFLIGHT PASS: RSR structure, placeholders, locks, shell errors, source evidence