Skip to main content

Module contextual_assertion

Module contextual_assertion 

Source
Expand description

Contextual Assertions, Provenance, Verification, and Challenge Model.

Implements C:\github\license\CONTEXTUAL-ASSERTIONS.md:

  • StatementType: Observation, Inference, Allegation, Attestation, AdjudicatedFinding
  • AssertionStatus: Active, Challenged, Restricted, Expired, Withdrawn, Superseded
  • VerificationStatus: Proposed, Attested, Verified, Disputed, Adjudicated

Core invariants enforced by pure validation functions:

  1. Single-Source Inference Deduplication & No Auto-Promotion: Repetition or multiple dependent inferences sharing a root_source_id never count as independent corroboration and never auto-promote an Allegation or Inference into an AdjudicatedFinding or Observation.
  2. Challenge Preservation & Downstream Review: Challenging an assertion preserves both the challenged assertion and the challenge record, and marks all downstream dependent decisions for review.
  3. Zero Universal Human Reputation Score: Assertions remain scoped to their specific domain/context; deriving a collapsed scalar human reputation score is rejected.

Structs§

ChallengeRecord
Formal challenge filed against an assertion (CONTEXTUAL-ASSERTIONS.md §5).
ContextualAssertion
A contextual, provenance-anchored statement (CONTEXTUAL-ASSERTIONS.md §4).
DownstreamDecisionRef
Downstream governance, accounting, or eligibility decision that depends on one or more assertions.

Enums§

AssertionStatus
Lifecycle state of an assertion (CONTEXTUAL-ASSERTIONS.md §3).
StatementType
Epistemic category of a contextual statement (CONTEXTUAL-ASSERTIONS.md §2).
VerificationStatus
Verification posture of an assertion (CONTEXTUAL-ASSERTIONS.md §3).

Functions§

apply_assertion_challenge
Apply a ChallengeRecord against target_assertion_id:
count_independent_corroborations
Count independent corroborating sources across a slice of assertions. Multiple assertions or dependent inferences sharing a root_source_id count at most ONCE, and Withdrawn or Expired assertions are excluded.
validate_assertion_promotion
Validate a proposed transition in StatementType or VerificationStatus:
validate_contextual_evaluation_scope
Enforce the anti-universal-reputation rule (CONTEXTUAL-ASSERTIONS.md §1.4 & §4.5): Zero universal human reputation score or cross-context scalar person ranking may ever be derived.