Skip to main content

Module knowledge

Module knowledge 

Source
Expand description

Agent Knowledge 1.0 signed contributions and discovery.

JSON boundary APIs preserve complete signed values. Typed payloads preserve absent versus explicitly empty optional fields; application data stays opaque. Knowledge events are immutable, portable objects: acceptance never consults a live-write nonce cache. Core validation never fetches URLs, executes procedures, or certifies truth.

Structs§

KnowledgeAssessPayload
KnowledgeContext
KnowledgeEvidence
KnowledgePageTracker
Verifies that query pages form one complete, consistent enumeration.
KnowledgeProfileBinding
KnowledgeProfileReference
KnowledgePublishPayload
KnowledgeRelation
KnowledgeReproduction
KnowledgeRetractPayload
KnowledgeSearchSelection
Caller-ranked candidates for one ranked-search page. Candidates must be visible and satisfy the request’s exact filters; no ranking model is implied. explanations are optional per-hit texts keyed by event ID.
KnowledgeStore
Single-process, in-memory reference repository with checkpoint-bound, stateless query cursors. Mutations require &mut self; integrate behind your application’s lock/transaction. It performs no fetching, persistence, HTTP serving, authorization or ranking. Returned values are owned clones.

Enums§

EvidenceRole
EvidenceStatus
KnowledgeKind
KnowledgeRelationKind
KnowledgeVerdict
SearchMode

Constants§

DEFAULT_FUTURE_SKEW_MS
Default allowance for created_at ahead of the receiver clock.
DEFAULT_MAX_ENVELOPE_BYTES
EVENT_TYPES
KNOWLEDGE_ERROR_CODES
PROTOCOL
SCHEMA_JSON
SEARCH_MODES

Functions§

knowledge_assess_event
knowledge_dependencies
Sorted, distinct direct dependencies. Call after common validation.
knowledge_publish_event
knowledge_query_matches
Exact filter predicate; after_seq, limit and cursor are not payload filters.
knowledge_retract_event
knowledge_text_matches
knowledge_text_terms
Portable ASCII-only case folding; Unicode normalization is not performed.
materialize_knowledge
Deterministic known-set lifecycle view. Rejects unvalidated or open sets.
parse_knowledge_envelope
Strict JSON parsing suitable for signed objects (duplicate members rejected).
parse_knowledge_query
Parse decoded HTTP parameter pairs; duplicate names remain observable.
parse_knowledge_read_json
validate_knowledge_batch_request
validate_knowledge_batch_response
validate_knowledge_dependencies
Check target rules against retained envelopes that already passed validation.
validate_knowledge_discovery
validate_knowledge_envelope
Validate structure, strict I-JSON, Identity hash/signature, URLs, canonical IDs and profile binding uniqueness. Dependencies are checked separately.
validate_knowledge_id
Require a canonical unpadded base64url encoding of exactly 32 bytes.
validate_knowledge_query
validate_knowledge_query_response
validate_knowledge_record
Validate a service receipt and optionally bind it to the requested ID.
validate_knowledge_schema
Validate a bundled structural definition. This does not establish semantics.
validate_knowledge_search_request
Validate an unsigned search request; an unadvertised mode is never substituted.
validate_knowledge_search_response
validate_typed_knowledge_envelope
verify_knowledge_evidence
Compare a digest with complete representation bytes (after transfer and content decoding, before text conversion). Pass None bytes when the complete representation could not be obtained. Nothing is fetched.

Type Aliases§

KnowledgeAdmission
Admission hook run for each new acceptance after all protocol checks.