Files

26 lines
870 B
Go
Raw Permalink Normal View History

2026-07-27 18:11:49 +00:00
// Package evidencecontext owns the durable source evidence-context contract.
package evidencecontext
import (
"gitea.maximumdirect.net/eric/notarius/internal/core/source"
"gitea.maximumdirect.net/eric/notarius/internal/framework/contracts"
)
const (
ArtifactKind contracts.ArtifactKind = "source/evidence-context"
SchemaID = "notarius.source.evidence_context"
SchemaName = "notarius_source_evidence_context_v1"
SchemaVersion = "v1"
MediaType = "application/json"
)
// Document is the durable selected source-unit excerpt.
type Document []source.SourceUnit
2026-07-27 18:11:49 +00:00
// BuildRequest supplies accepted source material and projected source references.
2026-07-27 18:11:49 +00:00
type BuildRequest struct {
Source *source.SourceDocument
WindowUnits int
SourceRefs []source.SourceRef
2026-07-27 18:11:49 +00:00
}