diff --git a/.clinerules b/.clinerules index 1fc45c44..fd76e209 100644 --- a/.clinerules +++ b/.clinerules @@ -42,9 +42,9 @@ # Base: cgr.dev/chainguard/wolfi-base:latest or cgr.dev/chainguard/static:latest. # ABI/FFI -# ABI: Idris2 with dependent types (src/interface/abi/). -# FFI: Zig with C ABI (src/interface/ffi/). -# Headers: src/interface/generated/. +# None here: the template's Idris2 ABI / Zig FFI scaffold (src/interface/) was +# removed on 2026-11-16 (docs/status/PROOF-NEEDS.adoc). If one is ever added, the +# estate policy applies: ABI in Idris2, FFI in Zig with a C ABI. # BUILD: Use just (Justfile) for all tasks. # STYLE: Descriptive names. Document all files. SPDX headers everywhere. diff --git a/.cursorrules b/.cursorrules index 8ad5b4ce..244c3383 100644 --- a/.cursorrules +++ b/.cursorrules @@ -40,9 +40,9 @@ # Base: cgr.dev/chainguard/wolfi-base:latest # ABI/FFI STANDARD -# ABI definitions: Idris2 with dependent types (src/interface/abi/) -# FFI implementation: Zig with C ABI (src/interface/ffi/) -# Generated C headers: src/interface/generated/ +# None here: the template's Idris2 ABI / Zig FFI scaffold (src/interface/) was +# removed on 2026-11-16 (docs/status/PROOF-NEEDS.adoc). If one is ever added, the +# estate policy applies: ABI in Idris2, FFI in Zig with a C ABI. # BUILD SYSTEM # Use just (Justfile) for all build, test, lint, and format tasks. diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 775ff30a..b6d2b423 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -75,9 +75,10 @@ migration destination is AffineScript. ## ABI/FFI -- ABI definitions in Idris2 (`src/interface/abi/`). -- FFI implementations in Zig (`src/interface/ffi/`). -- Generated C headers in `src/interface/generated/`. +This repository has none. The template's Idris2 ABI / Zig FFI scaffold +(`src/interface/`) was removed on 2026-11-16; see `docs/status/PROOF-NEEDS.adoc`. +If one is ever added, the estate policy applies: ABI in Idris2, FFI in Zig with +a C ABI. ## State Files diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 56136e1c..1df77614 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -37,7 +37,6 @@ Copyright (c) Jonathan D.A. Jewell - [ ] `TOPOLOGY.md` updated (if architecture changed) - [ ] `CHANGELOG` or release notes updated - [ ] New dependencies reviewed for license compatibility (MPL-2.0 / MPL-2.0) -- [ ] ABI/FFI changes validated (`src/interface/abi/` and `src/interface/ffi/` consistent) ## Testing diff --git a/.machine_readable/ai/PLACEHOLDERS.adoc b/.machine_readable/ai/PLACEHOLDERS.adoc index 1d32faff..af2951bc 100644 --- a/.machine_readable/ai/PLACEHOLDERS.adoc +++ b/.machine_readable/ai/PLACEHOLDERS.adoc @@ -53,8 +53,8 @@ sed -i "s/2026-10-14/$(date +%Y-%m-%d)/g" $(grep -rl '2026-10-14' .) |---|---|---|---| | `Resource Algebra` | 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 | | `The parametric grade algebra shared by the hyperpolymath type family` | One-line description | `A tool for X` | README.adoc, build/container/Containerfile | -| `RESOURCE_ALGEBRA` | Uppercase identifier (for Idris2 modules, C macros) | `MY_PROJECT` | ABI-FFI-README.md, src/interface/abi/*.idr, src/interface/ffi/*.zig | -| `resource_algebra` | Lowercase identifier (for C symbols, filenames) | `my_project` | ABI-FFI-README.md, src/interface/ffi/*.zig | +| `RESOURCE_ALGEBRA` | Uppercase identifier (for Idris2 modules, C macros) | `MY_PROJECT` | none since the ABI/FFI scaffold was removed (2026-11-16) | +| `resource_algebra` | Lowercase identifier (for C symbols, filenames) | `my_project` | none since the ABI/FFI scaffold was removed (2026-11-16) | | `resource-algebra` | 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 | @@ -89,7 +89,7 @@ sed -i "s/2026-10-14/$(date +%Y-%m-%d)/g" $(grep -rl '2026-10-14' .) | Placeholder | Description | Example | Files | |---|---|---|---| -| `MPL-2.0` | License name | `MPL-2.0` | ABI-FFI-README.md | +| `MPL-2.0` | License name | `MPL-2.0` | none since the ABI/FFI scaffold was removed (2026-11-16) | | `The parametric grade algebra shared by the hyperpolymath type family` | One-line project description | `FFI bridges between languages` | `*_chora.deed` `(anchor (identity))` :one-sentence (set from `The parametric grade algebra shared by the hyperpolymath type family` 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) | @@ -156,7 +156,7 @@ Some files contain deletion instructions: | Marker | Meaning | File | |---|---|---| -| `{{~ ... ~}}` | Delete this entire line after reading | ABI-FFI-README.md (line 1) | +| `{{~ ... ~}}` | Delete this entire line after reading | none since the ABI/FFI scaffold was removed (2026-11-16) | ## Verification diff --git a/.machine_readable/contractiles/Justfile b/.machine_readable/contractiles/Justfile index 97a5c695..fc99ce04 100644 --- a/.machine_readable/contractiles/Justfile +++ b/.machine_readable/contractiles/Justfile @@ -88,9 +88,10 @@ import? "build/just/assess.just" # BUILD & COMPILE # ═══════════════════════════════════════════════════════════════════════════════ -# Build the project with every detected language's toolchain (here: pack/idris2 for -# the ABI, then `zig build` in src/interface/ffi). Replace the delegation with a -# body of your own when the project needs a different build. +# Build the project with every detected language's toolchain. None is detected here +# (pure Agda theory, no FFI), so this prints that it is N/A and builds nothing; the +# Agda proofs are checked by `just test` (scripts/check-agda.sh). Replace the +# delegation with a body of your own when the project needs a different build. build: provision::build # Build in release mode with optimizations @@ -99,7 +100,6 @@ build-release *args: # Examples: # cargo build --release {{args}} # MIX_ENV=prod mix compile {{args}} - # zig build -Doptimize=ReleaseFast {{args}} @echo "FAIL: 'just build-release' is not wired yet — nothing was built. Edit the 'build-release' recipe." >&2; exit 1 # Build and watch for changes (requires entr or similar) @@ -130,10 +130,10 @@ clean-all: clean # TEST & QUALITY # ═══════════════════════════════════════════════════════════════════════════════ -# Run every detected language's tests: `zig build test` covers src/interface/ffi -# (unit tests in src/main.zig, test/integration_test.zig). It compiles only after -# `just repo-init` has filled the template tokens, so an un-initialised template -# fails here loudly instead of reporting a pass over nothing. +# Run the tests. This repository is pure Agda theory with no FFI, so the praxis deed +# (.machine_readable/descriptiles/provisioning_praxis.deed, :test) points this at +# scripts/check-agda.sh: the canonical Agda invocation over src/, the unit tests and +# the expected rejections. A missing Agda fails loudly; nothing is skipped. test: provision::test # Run tests with verbose output @@ -151,10 +151,10 @@ e2e: # Run aspect tests (cross-cutting concern validation) aspect: # Aspect tests validate architectural invariants: - # - Thread safety (mutex in FFI modules) - # - ABI/FFI contract (declarations match exports) # - SPDX compliance (all files have license headers) # - No dangerous patterns (believe_me, assert_total, etc.) + # The ABI/FFI-contract and thread-safety aspects stay commented out in + # tests/aspect_tests.sh: this repository has no ABI or FFI. bash tests/aspect_tests.sh # Run benchmarks (performance regression detection). Reports N/A until a language @@ -212,8 +212,8 @@ fmt: provision::fmt # Check formatting without changes fmt-check: provision::fmt-check -# Run linter (`zig fmt --check` on src/interface/ffi; like `test`, it parses the -# FFI sources only after `just repo-init` has filled the template tokens) +# Run linter. No linter exists for the languages here (no language is detected), so +# this prints that it is N/A; `-W error` in `just test` is the Agda lint. lint: provision::lint # ═══════════════════════════════════════════════════════════════════════════════ @@ -692,3 +692,7 @@ uncloak: else echo "Use 'ls -a' to view dotfiles on this OS." fi + +# Agda proofs and expected rejections (resource-algebra) +check-agda: + bash scripts/check-agda.sh diff --git a/.windsurfrules b/.windsurfrules index 10ecb838..fda1bb64 100644 --- a/.windsurfrules +++ b/.windsurfrules @@ -42,9 +42,9 @@ # Base: cgr.dev/chainguard/wolfi-base:latest or cgr.dev/chainguard/static:latest. # ABI/FFI -# ABI: Idris2 with dependent types (src/interface/abi/). -# FFI: Zig with C ABI (src/interface/ffi/). -# Headers: src/interface/generated/. +# None here: the template's Idris2 ABI / Zig FFI scaffold (src/interface/) was +# removed on 2026-11-16 (docs/status/PROOF-NEEDS.adoc). If one is ever added, the +# estate policy applies: ABI in Idris2, FFI in Zig with a C ABI. # BUILD: Use just (justfile) for all tasks. # STYLE: Descriptive names. Document all files. SPDX headers everywhere. diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index cbfe5405..9b2b02c6 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,5 +1,28 @@ == Changelog +== 2026-11-30: ABI/FFI leftovers after the scaffold removal + +* `.clinerules`, `.cursorrules`, `.windsurfrules` and + `.github/copilot-instructions.md` no longer point agents at + `src/interface/abi`, `ffi` or `generated`. They say this repository has no + ABI or FFI, and give the estate policy if one is ever added. +* `.github/pull_request_template.md` drops the "ABI/FFI changes validated" + checkbox. +* The root `Justfile`'s `aspect` comment no longer claims the ABI/FFI-contract + and thread-safety aspects run. Both stay commented out in + `tests/aspect_tests.sh`. +* `.machine_readable/contractiles/Justfile` is byte-identical to the root again, + as `docs/onboarding/llm-warmup-dev.adoc` requires. It had kept the template's + Zig/Idris2 `build`, `test` and `lint` comments and lacked `check-agda`. +* `.machine_readable/ai/PLACEHOLDERS.adoc` and `build/just/provision-lib.sh` + no longer list removed files as where a placeholder is used, or as a path in + this repository. +* Unchanged on purpose: template machinery that already handles a missing + `src/interface/` (`validate-template.sh`, `run-proven-suite.sh`, + `assess.just`, `validate.just` and their tests); estate policy and template + reference docs; and `TEST-NEEDS.adoc`, a dated record whose header notes the + removal. + == 2026-11-19: Signed drift for HWM (D-1 to D-8); every receipt superseded (48 rows ungraded for now) * `src/ResourceAlgebra/Instances/SignedHWM.agda` adds `SHWM`: HWM with an diff --git a/Justfile b/Justfile index 3329d63e..fc99ce04 100644 --- a/Justfile +++ b/Justfile @@ -151,10 +151,10 @@ e2e: # Run aspect tests (cross-cutting concern validation) aspect: # Aspect tests validate architectural invariants: - # - Thread safety (mutex in FFI modules) - # - ABI/FFI contract (declarations match exports) # - SPDX compliance (all files have license headers) # - No dangerous patterns (believe_me, assert_total, etc.) + # The ABI/FFI-contract and thread-safety aspects stay commented out in + # tests/aspect_tests.sh: this repository has no ABI or FFI. bash tests/aspect_tests.sh # Run benchmarks (performance regression detection). Reports N/A until a language diff --git a/build/just/provision-lib.sh b/build/just/provision-lib.sh index 6ff41b5b..2da64d87 100755 --- a/build/just/provision-lib.sh +++ b/build/just/provision-lib.sh @@ -85,7 +85,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 resource-algebra's src/interface/ffi/build.zig: +# Zig to three (ffi/zig/build.zig, and the template's src/interface/ffi/build.zig, which this repository removed: # 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. first() { find . -maxdepth "${2:-2}" -not -path './.git/*' -not -path '*/node_modules/*' -not -path './target/*' -name "$1" -print -quit 2>/dev/null; }