Seclib.CrossAccount.Bridge
GrantRecord — ⚪ definition
structure · source
Contract test bridge for cross-account trust model. Parses JSONL records, evaluates Lean predicates, compares results. Two record types: Grant record: tests wildcardGrant, conditionedGrant, scopedGrant Coverage record: tests pairCoverage verdict
structure GrantRecord where
CoverageRecord — ⚪ definition
structure · source
structure CoverageRecord where
parseMechanism — ⚪ definition
def · source
def parseMechanism : String → Option Mechanism
| "resourcePolicy" => some .resourcePolicy
| "trustPolicy" => some .trustPolicy
| "grant" => some .grant
| "accessPoint" => some .accessPoint
| "sharingAPI" => some .sharingAPI
| "replicationConfig" => some .replicationConfig
| "accessEntry" => some .accessEntry
| "podIdentity" => some .podIdentity
| "oidcFederation" => some .oidcFederation
| "invitationDelegation" => some .invitationDelegation
| "attributeShare" => some .attributeShare
| "association" => some .association
| "ramShare" => some .ramShare
| _ => none
parseDirection — ⚪ definition
def · source
def parseDirection : String → Option Direction
| "inboundGrant" => some .inboundGrant
| "outboundFlow" => some .outboundFlow
| "both" => some .both
| _ => none
verdictToString — ⚪ definition
def · source
def verdictToString : CoverageVerdict → String
| .covered => "covered"
| .uncovered => "uncovered"
| .oos => "oos"
| .schemaBlocked => "schemaBlocked"
| .evidenceGated => "evidenceGated"
parseGrantRecord — ⚪ definition
def · source
def parseGrantRecord (j : Json) : Except String GrantRecord
parseCoverageRecord — ⚪ definition
def · source
def parseCoverageRecord (j : Json) : Except String CoverageRecord
checkGrantRecord — ⚪ definition
def · source
def checkGrantRecord (r : GrantRecord) : Bool × String
checkCoverageRecord — ⚪ definition
def · source
def checkCoverageRecord (r : CoverageRecord) : Bool × String
parseAndCheckLine — ⚪ definition
def · source
def parseAndCheckLine (line : String) : Option (Bool × String)
bridgeCheck — ⚪ definition
def · source
def bridgeCheck (path : System.FilePath) : IO UInt32