C.3.A:4 - Normative guard macros
Names such as Guard_TypedClaim are editorial handles. A context may alias them only when the same objects, values, and refusal distinctions remain recoverable.
C.3.A:4.1 - Guard_TypedClaim — declaration-level admission
Intent. Decide whether claim C, quantified over local kind k_claim, may enter a receiving use restricted to kind k_receive in TargetSlice, without claiming anything yet about an unnamed candidate.
Guard_TypedClaim(C, k_claim, claimSignatureEdition, k_receive, receiveSignatureEdition, TargetSlice, thresholds?) SHALL:
- recover the exact
KindSignaturedeclaration episteme editions whose respectiveEntityOfConcernvalues arek_claimandk_receive, and whose evaluation domains and effective reference schemes cover the declared use; when both roles use the same kind and edition, state that identity rather than duplicating the declaration; - establish declaration-level kind compatibility:
- the kinds are identical or
SubkindOfObtains(k_receive, k_claim; effectiveReferenceScheme)holds under C.3.1, with an identifiedR_sub : U.SubkindOfoccurrence only when occurrence identity is needed; or - for a required directional correspondence between independently identified distinct kinds, an obtaining KindBridge relates exact source
k_claimand targetk_receiveunder the paired source and targetKindSignatureeditions, and a separate current bridge assertion states the mapping, applicability, loss, evidence, admitted receiving use, and anyCL^krequired by the consumed assurance or calibration account;
- the kinds are identical or
- require
U.ClaimScope(C)to cover the exactTargetSlice, preserve every declared slice selector, and name an explicitGamma_timewhen membership depends on time under A.2.6; - apply only the justified bridge consequences to R;
- check evidence freshness separately when the admission implies reliance; and
- check the policy-required expression properties on the exact claim or declaration episteme under C.2.3; a threshold is meaningful only on its named, justified local scale.
The subkind direction above is contravariant only for restricting a universally quantified claim: a claim over Vehicle may enter a PassengerCar-restricted use when PassengerCar is a subkind of Vehicle. It is not a generic compatibility direction for producer outputs, operation arguments, mutable positions, or arbitrary typed slots; each such use states its own variance rule.
The inclusion or correspondence must cover the receiving candidates for which the claim will be used. Inclusion established on one closed roster supports restriction to that roster. Applying the rule to an additional candidate needs grounds covering that candidate. For distinct kinds, establish that the mapping covers the required target cases and preserves the premise and consequence the receiver needs. An unrestricted target use requires that ground across its entire domain.
This guard MUST NOT invent an anonymous candidate or infer a candidate classification from declaration compatibility.
C.3.A:4.2 - Guard_CandidateUse — apply a typed claim to an exact candidate
Intent. Decide whether claim C, quantified over k_claim, may be used for exact target-side candidate candidate in a receiving use restricted to k_receive.
Guard_CandidateUse(C, candidate, k_claim, claimSignatureEdition, k_receive, receiveSignatureEdition, TargetSlice) SHALL:
- identify the candidate under its direct governor before classification;
- perform the declaration, kind-compatibility, and Scope/time checks in
Guard_TypedClaimsteps 1–3 for the same editions and slice; - check receiving admissibility; refuse on
not-applicablewithout forming a judgment, otherwise evaluateJ(candidate, k_receive, receiveSignatureEdition, TargetSlice); - continue candidate-bearing use only on
true: for a proper subkind, the already establishedSubkindOfObtains(k_receive, k_claim; RS)supplies the monotone claim-kind consequence; for a bridged use, rely only through the obtaining KindBridge and its current assertion, without inventing a source-context candidate judgment; - refuse on known
falsewhile retaining that value; - refuse on
unknownwhile retaining the missing dependency or unavailable support reason; and - for a
truereceiving judgment, complete the R, freshness, and policy checks inGuard_TypedClaimsteps 4–6 before allowing use.
Evidence may support a classification assertion, but record presence, bridge presence, or guard invocation MUST NOT make the candidate satisfy the receiving criterion. When k_claim and k_receive are identical under one declaration edition, record that identity and evaluate the candidate once.
C.3.A:4.3 - Guard_TypedJoin — compose typed producers and consumers
Intent. Compose producer A, which declares output kind k_A, with consumer B, which expects input kind k_B.
Guard_TypedJoin(A, k_A, edition_A; B, k_B, edition_B; TargetSlice) SHALL:
- pin both declaration episteme editions;
- establish output-to-input compatibility in the covariant flow direction:
- the kinds are identical or
SubkindOfObtains(k_A, k_B; effectiveReferenceScheme)holds; or - for a bridged flow, an obtaining KindBridge maps
k_Ato exact, independently identified distinct target-side kindk_A', its separate assertion carries the current mapping and loss basis, andk_A'is identical tok_BorSubkindOfObtains(k_A', k_B; targetReferenceScheme)holds;
- the kinds are identical or
- compute serial scope as the intersection of the two governed scopes and require coverage of
TargetSlice; - when a produced candidate enters B, check admissibility and evaluate
J(candidate, k_B, edition_B, TargetSlice)only for an admissible request; continue only ontrue, retainingnot-applicable,false, andunknownas distinct refusal grounds; and - route justified bridge consequences to R and check freshness before allowing use.
Declaration compatibility alone MUST NOT classify a future or actual output. Scope widening MUST NOT repair a type mismatch. The universal-claim variance rule in Guard_TypedClaim does not reverse this producer-to-consumer direction. For a promise covering every permitted output, check that compatibility holds over the producer’s full permitted output domain. An inclusion proved on one batch covers that batch.
C.3.A:4.4 - Guard_MaskedUse — exact RoleMask use
Intent. Use exact candidate candidate under a named RoleMask declaration in TargetSlice.
Guard_MaskedUse(artifact, candidate, kind, kindSignatureEdition, roleMaskEdition, TargetSlice) SHALL:
- recover the exact C.3.4 RoleMask declaration episteme, its base kind, pinned base signature edition, intended use, candidate-feature constraints, bindings, dependencies, and definedness;
- for cross-context use, compare base-kind identity and recover target declarations; when this use requires a correspondence between distinct kinds, establish the KindBridge relation and assertion under C.3.3 and recover any needed
MaskAdapterdeclaration; - check artifact scope separately through USM;
- check receiving admissibility; refuse on
not-applicablewithout forming a judgment, otherwise evaluateJ_mask(candidate, kind, kindSignatureEdition, roleMaskEdition, TargetSlice); - continue only on
true, refuse while preserving knownfalse, and fail closed while preservingunknown; - keep context predicates out of the candidate-feature criterion; and
- apply any justified bridge consequence to R and complete required freshness and policy checks before allowing use.
A mask name is not a kind synonym. Repeated mask use can trigger review for a separately identified local kind and independently obtaining U.SubkindOf relation; no guard or catalog action performs that admission.
C.3.A:4.5 - Guard_SpanUnion_Typed — parallel support lines
Intent. Publish SpanUnion for the same typed claim supported by independent lines.
For each line, the guard SHALL:
- recover the same governed claim, quantified kind, and signature edition;
- perform the declaration, kind-compatibility, and Scope/time checks in
Guard_TypedClaimsteps 1–3 for that line’s slice; - when a line’s evidence is candidate-specific, bind each exact candidate, check admissibility, and retain its judgment when admissible;
- complete that line’s R, freshness, and policy checks, preserving its bridge consequences;
- provide the USM independence justification; and
- include no slice outside the union of covered line scopes.
If lines quantify over different kinds, normalize through separately justified kind relations or publish distinct claims; do not hide the difference in SpanUnion.
C.3.A:4.6 - Guard_XContext_Typed — cross-context typed reuse
Intent. Reuse claim C from a source context in target TargetSlice while keeping scope translation, kind correspondence, and target classification separate.
Guard_XContext_Typed(C, sourceKind, sourceSignatureEdition, targetKind, targetSignatureEdition, TargetSlice, candidate?) SHALL:
- compare source and target kind identity and establish declaration-level compatibility under §4.1 steps 1–2; if that compatibility relies on a directional correspondence between distinct kinds, recover the obtaining KindBridge and its assertion with pinned scheme/signature editions, mapping, definedness, loss, evidence, admitted use, and any
CL^krequired by the consumed assurance or calibration account; - recover the independently identified target
KindSignatureedition; - when the receiving claim requires Scope translation, recover the obtaining Scope Bridge and its applicable congruence assessment, the separate affirmative translation-use claim, and the current reliance branch under A.2.6;
- require Claim scope, translated when needed, to cover the exact
TargetSlicewith all its declared selectors, including anyGamma_timerequired by A.2.6; - when the receiving use is candidate-bearing, check receiving admissibility and evaluate
J(candidate, targetKind, targetSignatureEdition, TargetSlice)only for an admissible request; continue candidate-bearing use only ontrue, retainingnot-applicable,false, andunknownas distinct refusal grounds; - apply only justified scope- and kind-bridge consequences to R and complete required freshness and policy checks; and
- make the separate allow/refuse decision.
Use an earlier judgment for the target only when its conditions apply or its result entails the answer under the receiving criterion. Carry out any separately required assessment. For declaration-level use, omit step 5 and complete the use without forming a candidate judgment.