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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .clinerules
Original file line number Diff line number Diff line change
Expand Up @@ -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.
6 changes: 3 additions & 3 deletions .cursorrules
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 4 additions & 3 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!--

Check warning on line 1 in .github/copilot-instructions.md

View workflow job for this annotation

GitHub Actions / Hypatia neurosymbolic scan

[hypatia] doc references `src/interface/` but no such directory exists in the tree (likely surviving a directory rename)
SPDX-License-Identifier: CC-BY-SA-4.0
Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
-->
Expand Down Expand Up @@ -75,9 +75,10 @@

## 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

Expand Down
1 change: 0 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
- [ ] `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

Expand Down
8 changes: 4 additions & 4 deletions .machine_readable/ai/PLACEHOLDERS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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) |

Expand Down Expand Up @@ -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

Expand Down
28 changes: 16 additions & 12 deletions .machine_readable/contractiles/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

# ═══════════════════════════════════════════════════════════════════════════════
Expand Down Expand Up @@ -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
6 changes: 3 additions & 3 deletions .windsurfrules
Original file line number Diff line number Diff line change
Expand Up @@ -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.
23 changes: 23 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
== Changelog

Check warning on line 1 in CHANGELOG.adoc

View workflow job for this annotation

GitHub Actions / Hypatia neurosymbolic scan

[hypatia] doc references `src/interface/` but no such directory exists in the tree (likely surviving a directory rename)

== 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
Expand Down
4 changes: 2 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build/just/provision-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
Loading