Documentation
¶
Index ¶
Constants ¶
const ( // PackGovernance exposes the governance metadata schema as a domain pack. PackGovernance = "governance" // PackResearchProvenance exposes the research provenance schema as a domain pack. PackResearchProvenance = "research_provenance" // PackEntity exposes the entity and source graph schema as a domain pack. PackEntity = "entity" )
const PackAssessmentDrift = "assessment_drift"
PackAssessmentDrift is the ID of the assessment drift audit pack.
const PackPolicyProcess = "policy_process"
PackPolicyProcess is the ID of the policy/process drift audit pack.
Variables ¶
This section is empty.
Functions ¶
func FieldColumnMap ¶
FieldColumnMap returns metadata-key to projection-column mapping for a pack.
Types ¶
type Field ¶
type Field struct {
Key string
Column string
ValueType string
Required bool
Aliases []string
Description string
}
Field describes one metadata key owned by a domain schema pack.
type Pack ¶
type Pack struct {
ID string
Name string
Version string
Domain string
Description string
Status string
BuiltIn bool
// EnabledByDefault is the compile-time default declared by the pack
// definition in the registry. It seeds the per-project enabled state on
// first sync but is NOT the live state — read Enabled for that.
EnabledByDefault bool
// Enabled is the current per-project state, populated by
// store.GetDomainPacks from the SQLite domain_packs table. It is the zero
// value on packs obtained directly from the registry (use EnabledByDefault
// there); a per-project override can diverge from EnabledByDefault.
Enabled bool
MinSchemaVersion int
Fields []Field
}
Pack is a declarative schema pack. Packs define metadata fields and optional typed projection columns without owning core schema migrations directly.
func BuiltinAssessmentDriftPack ¶
func BuiltinAssessmentDriftPack() Pack
BuiltinAssessmentDriftPack returns the assessment drift audit schema as a bundled optional pack. EnabledByDefault is false — users opt in per project.
func BuiltinEntityPack ¶
func BuiltinEntityPack() Pack
BuiltinEntityPack returns the entity and source graph schema as a pack.
func BuiltinGovernancePack ¶
func BuiltinGovernancePack() Pack
BuiltinGovernancePack returns the current governance schema as a pack.
func BuiltinPolicyProcessPack ¶
func BuiltinPolicyProcessPack() Pack
BuiltinPolicyProcessPack returns the policy/process drift audit schema as a bundled optional pack. EnabledByDefault is false — users opt in per project.
func BuiltinResearchProvenancePack ¶
func BuiltinResearchProvenancePack() Pack
BuiltinResearchProvenancePack returns the current research schema as a pack.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores pack definitions contributed by core or optional packages.
func (*Registry) FieldColumnMap ¶
FieldColumnMap returns a copy of the projection mapping for packID.