diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 0785b45..45b6362 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -9,6 +9,15 @@ https://semver.org/spec/v2.0.0.html[Semantic Versioning]. === [Unreleased] +==== Proposal 0007: name the argument of `tokenOf` (2026-11-16) + +* The sketch in `docs/proposals/0007-affine-grade-mode-record-borrow-axis.adoc` + now declares `tokenOf : (intent : OwnershipIntentV2) -> Maybe Nat`. The + type is unchanged. The old line read to the secret scanner as + `token...: ` and failed `scan / gitleaks` on every pull request. + The sketch was rechecked with Idris2 0.8.0 (`idris2 --check`) after the + edit. + ==== Certificates about one access (2026-11-09) * New module `Certified.idr`. Every witness in a `ProgressiveW` chain hides diff --git a/docs/proposals/0007-affine-grade-mode-record-borrow-axis.adoc b/docs/proposals/0007-affine-grade-mode-record-borrow-axis.adoc index 1d34044..91f1820 100644 --- a/docs/proposals/0007-affine-grade-mode-record-borrow-axis.adoc +++ b/docs/proposals/0007-affine-grade-mode-record-borrow-axis.adoc @@ -249,10 +249,10 @@ consumption intent and with the grade / borrow / mode types above. The sketch below is *not* part of the package and is not imported by any module. It was typechecked with Idris2 0.8.0 against this tree on -2026-11-09 (`idris2 --check`, module placed beside `src/abi/`, -importing `TypedWasm.ABI.VerifierSpec`); it uses no `believe_me`, -`assert_total`, `postulate` or `assert_smaller`, under `%default -total`. +2026-11-09, and rechecked on 2026-11-16 (`idris2 --check`, module +placed beside `src/abi/`, importing `TypedWasm.ABI.VerifierSpec`); it +uses no `believe_me`, `assert_total`, `postulate` or `assert_smaller`, +under `%default total`. [source,idris] ---- @@ -343,7 +343,7 @@ data OwnershipIntentV2 : Type where ||| The handle token an intent constrains, if any. public export -tokenOf : OwnershipIntentV2 -> Maybe Nat +tokenOf : (intent : OwnershipIntentV2) -> Maybe Nat tokenOf (Legacy (Consumes t)) = Just t tokenOf (Legacy (Produces t)) = Just t tokenOf (Legacy (Borrows _)) = Nothing