Documentation
¶
Overview ¶
Package dashboard serves a local, read-only web view over the verifiable provenance graph: the runs, their merged timeline, the unified signals/risks, the verify+signature status, and -- the signature view -- the causality DAG (LLM intent -> action -> policy -> risk), which a flat event stream cannot show. It is a thin presentation layer: every JSON endpoint reuses the SAME internal functions as the CLI/AI tools (provenance.Verify, signals.Export, etc.), so the UI never diverges from the contract. Read-only, local-first: the HTML/JS is embedded in the binary and loads no external assets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplayScript ¶ added in v0.9.0
func ReplayScript() []byte
ReplayScript returns the browser reader used by exported public demos.
Types ¶
type ReplayPages ¶ added in v0.9.0
type ReplayPages struct {
Offsets []int64 `json:"offsets"`
Pages []staticdata.Ref `json:"pages"`
}
type ReplayRun ¶ added in v0.9.0
type ReplayRun struct {
API map[string]staticdata.Ref `json:"api"`
Lenses staticdata.Ref `json:"lenses"`
Events staticdata.Ref `json:"events"`
Timeline staticdata.Ref `json:"timeline"`
Context staticdata.Ref `json:"context"`
Artifacts staticdata.Ref `json:"artifacts"`
EventRefs map[string][]string `json:"event_refs"`
Filters map[string]eventQuery `json:"filters"`
}
type Server ¶
Server serves the dashboard over a single read-only *sql.DB.
func (Server) ExportReplay ¶ added in v0.9.0
func (s Server) ExportReplay(ctx context.Context, run string, w *staticdata.Writer) (ReplayRun, error)
ExportReplay exports only the supplied run from an isolated, verified demo database. It uses the same readers as the local dashboard, including redaction, content limits and absence diagnostics. It never opens a workspace file.