Documentation
¶
Overview ¶
Package research defines an optional, revisioned evidence system of record. Collection, browsing, storage encryption, and report presentation remain host responsibilities.
Index ¶
- type Assessment
- type CitationVerifier
- type Claim
- type ClaimEvidence
- type Evidence
- type Graph
- type MemoryStore
- func (s *MemoryStore) CompareAndSwap(ctx context.Context, owner execution.Identity, id string, expected uint64, ...) (Graph, error)
- func (s *MemoryStore) Create(ctx context.Context, graph Graph) (Graph, error)
- func (s *MemoryStore) Get(ctx context.Context, owner execution.Identity, id string) (Graph, bool, error)
- type Relation
- type SourceSnapshot
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assessment ¶
type CitationVerifier ¶
type CitationVerifier interface {
Verify(context.Context, SourceSnapshot, Evidence) error
}
CitationVerifier can perform domain-specific locator and quotation checks against the immutable source snapshot referenced by an evidence record.
type ClaimEvidence ¶
type Graph ¶
type Graph struct {
ID string `json:"id"`
Owner execution.Identity `json:"owner"`
Sources []SourceSnapshot `json:"sources"`
Evidence []Evidence `json:"evidence"`
Claims []Claim `json:"claims"`
Edges []ClaimEvidence `json:"edges"`
Revision uint64 `json:"revision"`
UpdatedAt time.Time `json:"updated_at"`
}
func (Graph) Assess ¶
func (g Graph) Assess(minStrength float64) Assessment
func (Graph) VerifyCitations ¶
func (g Graph) VerifyCitations(ctx context.Context, verifier CitationVerifier) error
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore