Documentation
¶
Overview ¶
Package query exposes committed publication data to status, findings, excerpt, and report consumers. It never grants publication authority itself.
Index ¶
- type CommittedAttempt
- func (attempt CommittedAttempt) AttemptID() domain.AttemptID
- func (attempt CommittedAttempt) Prompt() RuntimePrompt
- func (attempt CommittedAttempt) Provider() string
- func (attempt CommittedAttempt) ReviewID() domain.ReviewID
- func (attempt CommittedAttempt) Role() domain.Role
- func (attempt CommittedAttempt) RunID() domain.RunID
- func (attempt CommittedAttempt) SessionID() domain.SessionID
- func (attempt CommittedAttempt) Target() RuntimeTarget
- type CommittedFindingSource
- type CommittedLineage
- func (lineage CommittedLineage) ParentRunID() (domain.RunID, bool)
- func (lineage CommittedLineage) ReplayMode() (ReplayMode, bool)
- func (lineage CommittedLineage) SourceFindingRef() (string, bool)
- func (lineage CommittedLineage) SourceReviewID() (domain.ReviewID, bool)
- func (lineage CommittedLineage) SourceRunID() (domain.RunID, bool)
- type CommittedReview
- func (review CommittedReview) CIDecision() domain.CIDecision
- func (review CommittedReview) ContentVerdict() domain.ContentVerdict
- func (review CommittedReview) CoverageStatus() domain.CoverageStatus
- func (review CommittedReview) Epoch() uint64
- func (review CommittedReview) EpochPath() ports.SafeRelativePath
- func (review CommittedReview) FinalBytes() []byte
- func (review CommittedReview) FinalPath() ports.SafeRelativePath
- func (review CommittedReview) FinalSHA256() string
- func (review CommittedReview) Findings() []Finding
- func (review CommittedReview) FollowupOutcome() (FollowupOutcome, bool)
- func (review CommittedReview) Lineage() CommittedLineage
- func (review CommittedReview) LineageEdgePath() ports.SafeRelativePath
- func (review CommittedReview) LineageEdgeSHA256() string
- func (review CommittedReview) ManifestBytes() []byte
- func (review CommittedReview) ManifestPath() ports.SafeRelativePath
- func (review CommittedReview) ManifestSHA256() string
- func (review CommittedReview) PublicationStatus() domain.PublicationStatus
- func (review CommittedReview) ReviewID() domain.ReviewID
- func (review CommittedReview) RoleReports() []RoleReport
- func (review CommittedReview) Roles() []Role
- func (review CommittedReview) RunID() domain.RunID
- func (review CommittedReview) RunState() domain.RunState
- func (review CommittedReview) SessionID() domain.SessionID
- func (review CommittedReview) StructuredExtractionStatus() domain.StructuredExtractionStatus
- func (review CommittedReview) TargetSHA256() string
- type Evidence
- func (item Evidence) CurrentExcerptSHA256() string
- func (item Evidence) LineEnd() int
- func (item Evidence) LineStart() int
- func (item Evidence) Path() ports.SafeRelativePath
- func (item Evidence) Side() evidence.Side
- func (item Evidence) SourceExcerptSHA256() string
- func (item Evidence) SourceFindingID() string
- func (item Evidence) SourceReviewID() domain.ReviewID
- func (item Evidence) SourceRunID() domain.RunID
- func (item Evidence) SourceSessionID() domain.SessionID
- func (item Evidence) SourceTargetSHA256() string
- func (item Evidence) TargetSHA256() string
- func (item Evidence) Verification() evidence.ReceiptStatus
- type Finding
- func (finding Finding) Confidence() domain.Confidence
- func (finding Finding) Description() string
- func (finding Finding) Evidence() []Evidence
- func (finding Finding) Fingerprint() string
- func (finding Finding) ID() string
- func (finding Finding) Lifecycle() domain.FindingLifecycle
- func (finding Finding) ProviderInstance() string
- func (finding Finding) Recommendation() string
- func (finding Finding) Role() domain.Role
- func (finding Finding) Severity() domain.Severity
- func (finding Finding) Title() string
- type FollowupEvidence
- func (item FollowupEvidence) CurrentExcerptSHA256() string
- func (item FollowupEvidence) LineEnd() int
- func (item FollowupEvidence) LineStart() int
- func (item FollowupEvidence) Path() ports.SafeRelativePath
- func (item FollowupEvidence) Quote() string
- func (item FollowupEvidence) Side() evidence.Side
- func (item FollowupEvidence) SourceExcerptSHA256() string
- func (item FollowupEvidence) SourceFindingID() string
- func (item FollowupEvidence) SourceReviewID() domain.ReviewID
- func (item FollowupEvidence) SourceRunID() domain.RunID
- func (item FollowupEvidence) SourceSessionID() domain.SessionID
- func (item FollowupEvidence) SourceTargetSHA256() string
- func (item FollowupEvidence) TargetSHA256() string
- func (item FollowupEvidence) Verification() evidence.ReceiptStatus
- type FollowupOutcome
- type ReplayMode
- type Role
- func (role Role) AttemptID() (domain.AttemptID, bool)
- func (role Role) FailureReason() (string, bool)
- func (role Role) Limitations() []string
- func (role Role) Name() domain.Role
- func (role Role) Outcome() string
- func (role Role) ProviderInstance() (string, bool)
- func (role Role) ReportsOnly() bool
- func (role Role) Required() bool
- func (role Role) SelectedVia() (string, bool)
- func (role Role) ValidFindingIDs() []string
- type RoleReport
- func (report RoleReport) AttemptID() string
- func (report RoleReport) ByteLength() int
- func (report RoleReport) ContentType() string
- func (report RoleReport) Path() string
- func (report RoleReport) ProviderInstance() string
- func (report RoleReport) Role() string
- func (report RoleReport) SHA256() string
- type RoleReportURI
- type RunStatus
- func (status RunStatus) Authority() domain.PublicationAuthority
- func (status RunStatus) CIDecision() (domain.CIDecision, bool)
- func (status RunStatus) ContentVerdict() (domain.ContentVerdict, bool)
- func (status RunStatus) CoverageStatus() (domain.CoverageStatus, bool)
- func (status RunStatus) FinalPath() (ports.SafeRelativePath, bool)
- func (status RunStatus) PublicationStatus() domain.PublicationStatus
- func (status RunStatus) RecoveryAction() domain.RecoveryAction
- func (status RunStatus) RoleReportURIs() []RoleReportURI
- func (status RunStatus) RunID() domain.RunID
- func (status RunStatus) RunState() (domain.RunState, bool)
- func (status RunStatus) SessionID() domain.SessionID
- type RuntimePrompt
- func (prompt RuntimePrompt) AdapterParameters() map[string]string
- func (prompt RuntimePrompt) AdapterProfile() string
- func (prompt RuntimePrompt) CompleteStdinSHA256() string
- func (prompt RuntimePrompt) ExecutionInvocationID() string
- func (prompt RuntimePrompt) ManifestPath() ports.SafeRelativePath
- func (prompt RuntimePrompt) ManifestSHA256() string
- func (prompt RuntimePrompt) Role() domain.Role
- func (prompt RuntimePrompt) Scope() string
- func (prompt RuntimePrompt) SourceInvocationID() string
- func (prompt RuntimePrompt) Stdin() []byte
- func (prompt RuntimePrompt) StdinSHA256() string
- func (prompt RuntimePrompt) TemplateID() string
- func (prompt RuntimePrompt) TemplateSHA256() string
- func (prompt RuntimePrompt) TemplateVersion() string
- type RuntimeTarget
- type SchemaValidator
- type Service
- func (service *Service) ListFindings(ctx context.Context, run ports.PublicationRun, minimum domain.Severity) ([]Finding, error)
- func (service *Service) ReadCommitted(ctx context.Context, run ports.PublicationRun) (CommittedReview, error)
- func (service *Service) ReadCommittedAttempt(ctx context.Context, run ports.PublicationRun, attemptID domain.AttemptID) (CommittedAttempt, error)
- func (service *Service) ReadCommittedFindingSource(ctx context.Context, run ports.PublicationRun, findingID string) (CommittedFindingSource, error)
- func (service *Service) ReadRunStatus(ctx context.Context, run ports.PublicationRun) (RunStatus, error)
- func (service *Service) ReadRuntimeTarget(ctx context.Context, run ports.PublicationRun) (RuntimeTarget, error)
- func (service *Service) RenderExcerpt(ctx context.Context, run ports.PublicationRun, findingID string, ...) ([]byte, error)
- func (service *Service) RenderExcerptAt(ctx context.Context, run ports.PublicationRun, findingID string, ...) ([]byte, error)
- func (service *Service) ResolveCommittedAttempt(ctx context.Context, run ports.PublicationRun, role domain.Role, ...) (CommittedAttempt, error)
- func (service *Service) ResolveRun(ctx context.Context, root ports.AnchoredRoot, runID domain.RunID) (ports.PublicationRun, error)
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommittedAttempt ¶
type CommittedAttempt struct {
// contains filtered or unexported fields
}
CommittedAttempt is the unique P2-bound source projection for one attempt.
func (CommittedAttempt) AttemptID ¶
func (attempt CommittedAttempt) AttemptID() domain.AttemptID
func (CommittedAttempt) Prompt ¶
func (attempt CommittedAttempt) Prompt() RuntimePrompt
func (CommittedAttempt) Provider ¶
func (attempt CommittedAttempt) Provider() string
func (CommittedAttempt) ReviewID ¶
func (attempt CommittedAttempt) ReviewID() domain.ReviewID
func (CommittedAttempt) Role ¶
func (attempt CommittedAttempt) Role() domain.Role
func (CommittedAttempt) RunID ¶
func (attempt CommittedAttempt) RunID() domain.RunID
func (CommittedAttempt) SessionID ¶
func (attempt CommittedAttempt) SessionID() domain.SessionID
func (CommittedAttempt) Target ¶
func (attempt CommittedAttempt) Target() RuntimeTarget
type CommittedFindingSource ¶
type CommittedFindingSource struct {
// contains filtered or unexported fields
}
CommittedFindingSource contains the exact P2 support artifacts bound to a committed finding. All byte accessors return defensive copies.
func (CommittedFindingSource) Excerpt ¶
func (source CommittedFindingSource) Excerpt() []byte
func (CommittedFindingSource) Finding ¶
func (source CommittedFindingSource) Finding() Finding
func (CommittedFindingSource) Normalized ¶
func (source CommittedFindingSource) Normalized() []byte
func (CommittedFindingSource) Review ¶
func (source CommittedFindingSource) Review() CommittedReview
type CommittedLineage ¶
type CommittedLineage struct {
// contains filtered or unexported fields
}
CommittedLineage is the canonical immutable lineage projection for a committed review.
func (CommittedLineage) ParentRunID ¶
func (lineage CommittedLineage) ParentRunID() (domain.RunID, bool)
ParentRunID returns the parent run identity for a child review.
func (CommittedLineage) ReplayMode ¶
func (lineage CommittedLineage) ReplayMode() (ReplayMode, bool)
ReplayMode returns the replay authority mode for a rerun review.
func (CommittedLineage) SourceFindingRef ¶
func (lineage CommittedLineage) SourceFindingRef() (string, bool)
SourceFindingRef returns the source finding reference for a followup review.
func (CommittedLineage) SourceReviewID ¶
func (lineage CommittedLineage) SourceReviewID() (domain.ReviewID, bool)
SourceReviewID returns the source review identity for a child review.
func (CommittedLineage) SourceRunID ¶
func (lineage CommittedLineage) SourceRunID() (domain.RunID, bool)
SourceRunID returns the source run identity for a child review.
type CommittedReview ¶
type CommittedReview struct {
// contains filtered or unexported fields
}
CommittedReview is a defensive read view of a semantically verified P2 final review. Exact final and manifest bytes remain available only as copies.
func (CommittedReview) CIDecision ¶
func (review CommittedReview) CIDecision() domain.CIDecision
CIDecision returns the independent committed CI axis.
func (CommittedReview) ContentVerdict ¶
func (review CommittedReview) ContentVerdict() domain.ContentVerdict
ContentVerdict returns the independent committed content axis.
func (CommittedReview) CoverageStatus ¶
func (review CommittedReview) CoverageStatus() domain.CoverageStatus
CoverageStatus returns the independent committed coverage axis.
func (CommittedReview) Epoch ¶
func (review CommittedReview) Epoch() uint64
Epoch returns the positive immutable publication epoch.
func (CommittedReview) EpochPath ¶
func (review CommittedReview) EpochPath() ports.SafeRelativePath
EpochPath returns the immutable epoch record path bound by the manifest.
func (CommittedReview) FinalBytes ¶
func (review CommittedReview) FinalBytes() []byte
FinalBytes returns a caller-owned copy of the exact final artifact bytes.
func (CommittedReview) FinalPath ¶
func (review CommittedReview) FinalPath() ports.SafeRelativePath
FinalPath returns the authoritative P2 final artifact path.
func (CommittedReview) FinalSHA256 ¶
func (review CommittedReview) FinalSHA256() string
FinalSHA256 returns the authoritative P2 final artifact digest.
func (CommittedReview) Findings ¶
func (review CommittedReview) Findings() []Finding
Findings returns caller-owned finding views in final artifact order.
func (CommittedReview) FollowupOutcome ¶
func (review CommittedReview) FollowupOutcome() (FollowupOutcome, bool)
FollowupOutcome returns the committed followup resolution only for followup reviews. Its rationale and evidence are validated final/manifest data.
func (CommittedReview) Lineage ¶
func (review CommittedReview) Lineage() CommittedLineage
Lineage returns the immutable, semantically verified run lineage.
func (CommittedReview) LineageEdgePath ¶
func (review CommittedReview) LineageEdgePath() ports.SafeRelativePath
LineageEdgePath returns the immutable lineage edge path bound by the final.
func (CommittedReview) LineageEdgeSHA256 ¶
func (review CommittedReview) LineageEdgeSHA256() string
LineageEdgeSHA256 returns the immutable lineage edge digest bound by the final.
func (CommittedReview) ManifestBytes ¶
func (review CommittedReview) ManifestBytes() []byte
ManifestBytes returns a caller-owned copy of the exact committed manifest bytes.
func (CommittedReview) ManifestPath ¶
func (review CommittedReview) ManifestPath() ports.SafeRelativePath
ManifestPath returns the immutable committed manifest path.
func (CommittedReview) ManifestSHA256 ¶
func (review CommittedReview) ManifestSHA256() string
ManifestSHA256 returns the immutable committed manifest digest.
func (CommittedReview) PublicationStatus ¶
func (review CommittedReview) PublicationStatus() domain.PublicationStatus
PublicationStatus returns the committed publication axis.
func (CommittedReview) ReviewID ¶
func (review CommittedReview) ReviewID() domain.ReviewID
ReviewID returns the publisher-issued review identity.
func (CommittedReview) RoleReports ¶ added in v0.1.4
func (review CommittedReview) RoleReports() []RoleReport
RoleReports returns caller-owned committed role-report inventory entries.
func (CommittedReview) Roles ¶
func (review CommittedReview) Roles() []Role
Roles returns caller-owned role views in final artifact order.
func (CommittedReview) RunID ¶
func (review CommittedReview) RunID() domain.RunID
RunID returns the committed review's run identity.
func (CommittedReview) RunState ¶
func (review CommittedReview) RunState() domain.RunState
RunState returns the terminal run state recorded in the committed manifest.
func (CommittedReview) SessionID ¶
func (review CommittedReview) SessionID() domain.SessionID
SessionID returns the committed review's session identity.
func (CommittedReview) StructuredExtractionStatus ¶ added in v0.1.4
func (review CommittedReview) StructuredExtractionStatus() domain.StructuredExtractionStatus
StructuredExtractionStatus returns the independent committed extraction axis.
func (CommittedReview) TargetSHA256 ¶
func (review CommittedReview) TargetSHA256() string
TargetSHA256 returns the canonical current target digest bound by the final.
type Evidence ¶
type Evidence struct {
// contains filtered or unexported fields
}
Evidence binds one source identity to one current immutable-target claim.
func (Evidence) CurrentExcerptSHA256 ¶
CurrentExcerptSHA256 returns the current verified excerpt digest.
func (Evidence) Path ¶
func (item Evidence) Path() ports.SafeRelativePath
Path returns the logical target path.
func (Evidence) SourceExcerptSHA256 ¶
SourceExcerptSHA256 returns the source excerpt digest.
func (Evidence) SourceFindingID ¶
SourceFindingID returns the source finding reference.
func (Evidence) SourceReviewID ¶
SourceReviewID returns the source review identity.
func (Evidence) SourceRunID ¶
SourceRunID returns the source review run identity.
func (Evidence) SourceSessionID ¶
SourceSessionID returns the source review session identity.
func (Evidence) SourceTargetSHA256 ¶
SourceTargetSHA256 returns the source immutable target digest.
func (Evidence) TargetSHA256 ¶
TargetSHA256 returns the current immutable target digest.
func (Evidence) Verification ¶
func (item Evidence) Verification() evidence.ReceiptStatus
Verification returns the final serialized evidence verification state.
type Finding ¶
type Finding struct {
// contains filtered or unexported fields
}
Finding is one immutable report-facing finding. Evidence carries claims only; callers must use RenderExcerpt to obtain freshly verified bytes.
func (Finding) Confidence ¶
func (finding Finding) Confidence() domain.Confidence
Confidence returns the normalized confidence.
func (Finding) Description ¶
Description returns the finding explanation.
func (Finding) Evidence ¶
Evidence returns caller-owned evidence claim views in final artifact order.
func (Finding) Fingerprint ¶
Fingerprint returns the canonical finding fingerprint digest.
func (Finding) Lifecycle ¶
func (finding Finding) Lifecycle() domain.FindingLifecycle
Lifecycle returns the final finding lifecycle.
func (Finding) ProviderInstance ¶
ProviderInstance returns the producing provider instance.
func (Finding) Recommendation ¶
Recommendation returns the final recommendation.
type FollowupEvidence ¶
type FollowupEvidence struct {
// contains filtered or unexported fields
}
FollowupEvidence is one immutable committed followup evidence claim.
func (FollowupEvidence) CurrentExcerptSHA256 ¶
func (item FollowupEvidence) CurrentExcerptSHA256() string
func (FollowupEvidence) LineEnd ¶
func (item FollowupEvidence) LineEnd() int
func (FollowupEvidence) LineStart ¶
func (item FollowupEvidence) LineStart() int
func (FollowupEvidence) Path ¶
func (item FollowupEvidence) Path() ports.SafeRelativePath
func (FollowupEvidence) Quote ¶
func (item FollowupEvidence) Quote() string
func (FollowupEvidence) Side ¶
func (item FollowupEvidence) Side() evidence.Side
func (FollowupEvidence) SourceExcerptSHA256 ¶
func (item FollowupEvidence) SourceExcerptSHA256() string
func (FollowupEvidence) SourceFindingID ¶
func (item FollowupEvidence) SourceFindingID() string
func (FollowupEvidence) SourceReviewID ¶
func (item FollowupEvidence) SourceReviewID() domain.ReviewID
func (FollowupEvidence) SourceRunID ¶
func (item FollowupEvidence) SourceRunID() domain.RunID
func (FollowupEvidence) SourceSessionID ¶
func (item FollowupEvidence) SourceSessionID() domain.SessionID
func (FollowupEvidence) SourceTargetSHA256 ¶
func (item FollowupEvidence) SourceTargetSHA256() string
func (FollowupEvidence) TargetSHA256 ¶
func (item FollowupEvidence) TargetSHA256() string
func (FollowupEvidence) Verification ¶
func (item FollowupEvidence) Verification() evidence.ReceiptStatus
type FollowupOutcome ¶
type FollowupOutcome struct {
// contains filtered or unexported fields
}
FollowupOutcome is the immutable committed resolution for a followup review.
func (FollowupOutcome) Evidence ¶
func (outcome FollowupOutcome) Evidence() []FollowupEvidence
Evidence returns caller-owned committed followup evidence in final order.
func (FollowupOutcome) Rationale ¶
func (outcome FollowupOutcome) Rationale() string
Rationale returns the committed followup rationale.
func (FollowupOutcome) Resolution ¶
func (outcome FollowupOutcome) Resolution() domain.FollowupResolution
Resolution returns the validator-owned followup resolution.
type ReplayMode ¶
type ReplayMode string
ReplayMode is the validated prompt authority mode for a rerun.
const ( ReplayModeExact ReplayMode = "exact" ReplayModeRecompose ReplayMode = "recompose" )
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
Role is the report-facing summary for one selected role.
func (Role) FailureReason ¶
FailureReason returns the terminal failure reason, when one exists.
func (Role) Limitations ¶
Limitations returns a caller-owned copy of the role limitations.
func (Role) ProviderInstance ¶
ProviderInstance returns the selected provider instance, when one exists.
func (Role) ReportsOnly ¶ added in v0.1.4
ReportsOnly reports whether the selected terminal attempt was free-form reports-only rather than validated structured extraction.
func (Role) SelectedVia ¶
SelectedVia returns primary or fallback, when one exists.
func (Role) ValidFindingIDs ¶
ValidFindingIDs returns a caller-owned copy of the role's finding references.
type RoleReport ¶ added in v0.1.4
type RoleReport struct {
// contains filtered or unexported fields
}
RoleReport is one verified committed free-form role-report inventory entry.
func (RoleReport) AttemptID ¶ added in v0.1.4
func (report RoleReport) AttemptID() string
AttemptID returns the selected attempt identity.
func (RoleReport) ByteLength ¶ added in v0.1.4
func (report RoleReport) ByteLength() int
ByteLength returns the committed report byte length.
func (RoleReport) ContentType ¶ added in v0.1.4
func (report RoleReport) ContentType() string
ContentType returns the committed report media type.
func (RoleReport) Path ¶ added in v0.1.4
func (report RoleReport) Path() string
Path returns the run-relative role-report path.
func (RoleReport) ProviderInstance ¶ added in v0.1.4
func (report RoleReport) ProviderInstance() string
ProviderInstance returns the selected provider instance.
func (RoleReport) Role ¶ added in v0.1.4
func (report RoleReport) Role() string
Role returns the selected Mulgae role for this report.
func (RoleReport) SHA256 ¶ added in v0.1.4
func (report RoleReport) SHA256() string
SHA256 returns the committed report digest.
type RoleReportURI ¶ added in v0.1.4
RoleReportURI is one project-relative role-report identity exposed only after independent P2 support-index and artifact verification.
type RunStatus ¶
type RunStatus struct {
// contains filtered or unexported fields
}
RunStatus is the safe status projection of one observed run. Content and final artifact details are present only after an independent P2 committed read. RoleReportURIs are present only after support-indexed artifact verification.
func (RunStatus) Authority ¶
func (status RunStatus) Authority() domain.PublicationAuthority
Authority returns the classifier-derived durable authority.
func (RunStatus) CIDecision ¶
func (status RunStatus) CIDecision() (domain.CIDecision, bool)
CIDecision returns a committed final axis only when safely available.
func (RunStatus) ContentVerdict ¶
func (status RunStatus) ContentVerdict() (domain.ContentVerdict, bool)
ContentVerdict returns a committed final axis only when safely available.
func (RunStatus) CoverageStatus ¶
func (status RunStatus) CoverageStatus() (domain.CoverageStatus, bool)
CoverageStatus returns a committed final axis only when safely available.
func (RunStatus) FinalPath ¶
func (status RunStatus) FinalPath() (ports.SafeRelativePath, bool)
FinalPath returns a P2 final path only after the committed review passed all schema and semantic checks.
func (RunStatus) PublicationStatus ¶
func (status RunStatus) PublicationStatus() domain.PublicationStatus
PublicationStatus returns the classifier-derived publication status.
func (RunStatus) RecoveryAction ¶
func (status RunStatus) RecoveryAction() domain.RecoveryAction
RecoveryAction returns the classifier-derived next recovery action.
func (RunStatus) RoleReportURIs ¶ added in v0.1.4
func (status RunStatus) RoleReportURIs() []RoleReportURI
RoleReportURIs returns caller-owned project-relative role-report identities only after independent P2 support verification. Non-P2 and corrupt status always return none.
type RuntimePrompt ¶
type RuntimePrompt struct {
// contains filtered or unexported fields
}
RuntimePrompt is exact persisted replay material from one initial invocation.
func (RuntimePrompt) AdapterParameters ¶
func (prompt RuntimePrompt) AdapterParameters() map[string]string
func (RuntimePrompt) AdapterProfile ¶
func (prompt RuntimePrompt) AdapterProfile() string
func (RuntimePrompt) CompleteStdinSHA256 ¶
func (prompt RuntimePrompt) CompleteStdinSHA256() string
func (RuntimePrompt) ExecutionInvocationID ¶
func (prompt RuntimePrompt) ExecutionInvocationID() string
func (RuntimePrompt) ManifestPath ¶
func (prompt RuntimePrompt) ManifestPath() ports.SafeRelativePath
func (RuntimePrompt) ManifestSHA256 ¶
func (prompt RuntimePrompt) ManifestSHA256() string
func (RuntimePrompt) Role ¶
func (prompt RuntimePrompt) Role() domain.Role
func (RuntimePrompt) Scope ¶
func (prompt RuntimePrompt) Scope() string
func (RuntimePrompt) SourceInvocationID ¶
func (prompt RuntimePrompt) SourceInvocationID() string
func (RuntimePrompt) Stdin ¶
func (prompt RuntimePrompt) Stdin() []byte
func (RuntimePrompt) StdinSHA256 ¶
func (prompt RuntimePrompt) StdinSHA256() string
func (RuntimePrompt) TemplateID ¶
func (prompt RuntimePrompt) TemplateID() string
func (RuntimePrompt) TemplateSHA256 ¶
func (prompt RuntimePrompt) TemplateSHA256() string
func (RuntimePrompt) TemplateVersion ¶
func (prompt RuntimePrompt) TemplateVersion() string
type RuntimeTarget ¶
type RuntimeTarget struct {
// contains filtered or unexported fields
}
RuntimeTarget is the immutable target material reconstructed from a committed P2 target manifest. Its bytes and identity are returned as defensive copies.
func (RuntimeTarget) Bytes ¶
func (target RuntimeTarget) Bytes() []byte
func (RuntimeTarget) CapturedArchive ¶
func (target RuntimeTarget) CapturedArchive() []byte
func (RuntimeTarget) Identity ¶
func (target RuntimeTarget) Identity() domain.TargetIdentity
type SchemaValidator ¶
SchemaValidator validates final publication records against their consumer-owned embedded schema asset.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service reads only physically safe P2 snapshots, then independently verifies their schema and semantic identities before exposing consumer-facing views.
func NewService ¶
func NewService( store ports.PublicationStore, validator SchemaValidator, _ evidence.ImmutableTargetReader, maxReadBytes int64, ) (*Service, error)
NewService constructs the shared committed-read service. The immutable target reader remains an accepted dependency for source compatibility, but v2 publications require their own durable excerpts and never fall back to it.
func (*Service) ListFindings ¶
func (service *Service) ListFindings( ctx context.Context, run ports.PublicationRun, minimum domain.Severity, ) ([]Finding, error)
ListFindings returns final-order findings at or above minimum severity. An empty minimum returns every committed finding, including informational ones.
func (*Service) ReadCommitted ¶
func (service *Service) ReadCommitted(ctx context.Context, run ports.PublicationRun) (CommittedReview, error)
ReadCommitted returns a defensive view only when the observed P2 epoch binds the snapshot and remains unchanged under P2 re-observation.
func (*Service) ReadCommittedAttempt ¶
func (service *Service) ReadCommittedAttempt(ctx context.Context, run ports.PublicationRun, attemptID domain.AttemptID) (CommittedAttempt, error)
ReadCommittedAttempt reconstructs one exact-replay source attempt from P2. The only replay authority is the unique persisted initial prompt for that attempt; repair prompts are deliberately not candidates.
func (*Service) ReadCommittedFindingSource ¶
func (service *Service) ReadCommittedFindingSource(ctx context.Context, run ports.PublicationRun, findingID string) (CommittedFindingSource, error)
ReadCommittedFindingSource rereads the final and manifest, then exposes only normalized finding and excerpt artifacts whose exact identities are bound by the manifest support index for one stable P2 finding.
func (*Service) ReadRunStatus ¶
func (service *Service) ReadRunStatus(ctx context.Context, run ports.PublicationRun) (RunStatus, error)
ReadRunStatus returns classifier-derived status for every valid observation. P0 and P1 never cause a final snapshot read or expose a final path. A corrupt durable or semantic result returns a safe corrupt status with an artifact failure so callers can still render the non-sensitive status projection.
func (*Service) ReadRuntimeTarget ¶
func (service *Service) ReadRuntimeTarget(ctx context.Context, run ports.PublicationRun) (RuntimeTarget, error)
ReadRuntimeTarget reconstructs target authority only from artifacts bound by a freshly verified P2 final. It never reads a working tree or mutable target.
func (*Service) RenderExcerpt ¶
func (service *Service) RenderExcerpt( ctx context.Context, run ports.PublicationRun, findingID string, targetSHA256 string, ) ([]byte, error)
RenderExcerpt returns the first canonical committed evidence excerpt. Callers rendering multiple items must use RenderExcerptAt with its one-based index.
func (*Service) RenderExcerptAt ¶
func (service *Service) RenderExcerptAt( ctx context.Context, run ports.PublicationRun, findingID string, targetSHA256 string, evidenceIndex int, ) ([]byte, error)
RenderExcerptAt returns one canonical committed evidence excerpt by its one-based canonical index.
func (*Service) ResolveCommittedAttempt ¶
func (service *Service) ResolveCommittedAttempt(ctx context.Context, run ports.PublicationRun, role domain.Role, provider string) (CommittedAttempt, error)
ResolveCommittedAttempt selects exactly one manifest attempt by role and provider. It deliberately treats zero and multiple matches as artifact failures instead of relying on attempt order.
func (*Service) ResolveRun ¶
func (service *Service) ResolveRun( ctx context.Context, root ports.AnchoredRoot, runID domain.RunID, ) (ports.PublicationRun, error)
ResolveRun resolves a caller-selected canonical run ID beneath an approved artifact root through the store boundary. It never scans artifact directories.