Repository navigation
Proposal 0007: name tokenOf's argument so gitleaks stops flagging it - #291
Conversation
…g it The sketch's signature `tokenOf : OwnershipIntentV2 -> Maybe Nat` matched the scanner's generic-api-key rule (a `token` name, a colon, then a high-entropy word), so `scan / gitleaks` failed on main and on every pull request. The signature now names its argument; the type is unchanged. The extracted sketch was rechecked with Idris2 0.8.0 (`idris2 --check`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y6FD63UrriRBHqmhhEca9t
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
CHANGELOG: keep both entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y6FD63UrriRBHqmhhEca9t
CHANGELOG: keep both entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y6FD63UrriRBHqmhhEca9t



What
scan / gitleaks(Secret-Scan-Floor, a required check) fails on main and on every open PR. Its only finding is indocs/proposals/0007-affine-grade-mode-record-borrow-axis.adoc, which arrived in #286.The CI log names the file but not the line. I ran the default
generic-api-keyrule as a perl approximation, with gitleaks' 3.5-bit entropy threshold, over the file. One line matches, line 346:The rule reads it as
token…: <value>, and the valueOwnershipIntentV2has an entropy of 3.57.Change
tokenOf : (intent : OwnershipIntentV2) -> Maybe Nat. The type is unchanged. The(stops the rule from matching.No suppression or allowlist entry was added, and no scanner setting changed.
Evidence
Proposal/OwnershipMode.idrbesidesrc/abi/and ranidris2 --checkwith Idris2 0.8.0. It built (7/7: Building Proposal.OwnershipMode) with no errors.scan / gitleaksrun confirms the fix.Generated by Claude Code