proof(SafeCapability): DISCHARGE 5 anchor OWEDs via Refl (file fully clear) (proven#90) - #104
Merged
Merged
Conversation
…clear) All 5 OWEDs in this file share the SafeCron / SafeGit "definitional anchor" pattern (PR #101, PR #102): they're definitional anchors on public-export smart constructors or record-update functions. All discharge by Refl. Discharged: - makeNonDelegatableSetsFalse — record-update projection on `{ capDelegatable := False }` - setExpirySetsJust — record-update projection on `{ capExpiry := Just t }` - emptyStoreNoCapabilities — record projection on named constructor - emptyStoreNoRevoked — record projection on named constructor - adminHierarchyDef — definitional equality All 5 OWED comments cited "public export body opacity" as the blocker — inverted diagnosis (public export ENABLES type-level unfolding). This is the seventh PR in today's overly-cautious-OWED hunt (addParamIncreasesCount, anyMatchesNonNewline, negateInverts/unionIsOr, validResultIsValid, 9 SafeCron anchors, forbiddenRefCharsAnchor, now 5 SafeCapability anchors). Refs #90 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
hyperpolymath
enabled auto-merge (squash)
May 30, 2026 16:30
|
🔍 Hypatia Security ScanFindings: 331 issues detected
View findings[
{
"reason": "Action perpolymath/standards/.github/workflows/governance-reusable.yml@main\n needs attention",
"type": "unpinned_action",
"file": "governance.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in architecture-enforcement.yml",
"type": "missing_timeout_minutes",
"file": "architecture-enforcement.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in architecture-enforcement.yml",
"type": "missing_timeout_minutes",
"file": "architecture-enforcement.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in boj-build.yml",
"type": "missing_timeout_minutes",
"file": "boj-build.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in casket-pages.yml",
"type": "missing_timeout_minutes",
"file": "casket-pages.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in casket-pages.yml",
"type": "missing_timeout_minutes",
"file": "casket-pages.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in cflite_batch.yml",
"type": "missing_timeout_minutes",
"file": "cflite_batch.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in cflite_pr.yml",
"type": "missing_timeout_minutes",
"file": "cflite_pr.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in codeql.yml",
"type": "missing_timeout_minutes",
"file": "codeql.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Seventh "overly cautious OWED" discharge of today's proven#90 Phase 3 campaign — clears the full file.
What it does
All 5 SafeCapability OWEDs in
src/Proven/SafeCapability/Proofs.idrdischarge byRefl:Why it works
All 5 underlying definitions are
public exportwith concrete bodies:makeNonDelegatable cap = { capDelegatable := False } cap(L171-172)setExpiry time cap = { capExpiry := Just time } cap(L176-177)emptyStore = MkCapabilityStore [] [](L188-189)adminHierarchy = MkHierarchy Admin [Read, Write, Execute, Delete](L258-259)Idris2 unfolds
public exportdefinitions at the type level, so the record-update projection ({ field := value } _) and the named-constructor projection both reduce directly forRefl.Pattern (now 7 PRs deep)
The OWED comments cited "public export body opacity" as the blocker — that diagnosis is inverted.
public exportENABLES type-level unfolding (it'sprivateandexport-only that block it). The 5 OWEDs were thus mis-classified as needing case-splits when they only neededRefl.Combined session count: 6 PRs filed, 5 merged (Idris 2 CI accepting
Reflcleanly across SafeUrl, SafeRegex, SafeEmail, SafeCron, SafeGit). This makes the eighth.Refs #90