This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# world
|
||||
|
||||
World owns typed referents, vocabulary and identity-resolution lineage. It
|
||||
does not own observations, claims, beliefs, or factual values about a
|
||||
referent. Those remain Epistemics-owned evidence.
|
||||
|
||||
World domain code does not import adapters, runtime or provider packages and
|
||||
does not write another owner's canonical state.
|
||||
@@ -0,0 +1,17 @@
|
||||
package domain
|
||||
|
||||
import "git.cin.su/m/Assistant/contracts/world"
|
||||
|
||||
func ValidateObject(value world.WorldObject) error { return value.Validate() }
|
||||
|
||||
func ValidateKindDefinition(value world.WorldObjectKindDefinition) error { return value.Validate() }
|
||||
|
||||
func ValidateAlias(value world.WorldAlias) error { return value.Validate() }
|
||||
|
||||
func ValidateFacetDefinition(value world.FacetDefinition) error { return value.Validate() }
|
||||
|
||||
func ValidateRelationDefinition(value world.RelationDefinition) error { return value.Validate() }
|
||||
|
||||
func ValidateResolution(value world.IdentityResolutionDecisionRecord) error { return value.Validate() }
|
||||
|
||||
func ValidateLineage(value world.WorldLineage) error { return value.Validate() }
|
||||
@@ -0,0 +1,17 @@
|
||||
package ports
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.cin.su/m/Assistant/contracts/world"
|
||||
)
|
||||
|
||||
type Repository interface {
|
||||
SaveKindDefinition(context.Context, world.WorldObjectKindDefinition) error
|
||||
SaveObject(context.Context, world.WorldObject) error
|
||||
SaveAlias(context.Context, world.WorldAlias) error
|
||||
SaveFacetDefinition(context.Context, world.FacetDefinition) error
|
||||
SaveRelationDefinition(context.Context, world.RelationDefinition) error
|
||||
SaveResolution(context.Context, world.IdentityResolutionDecisionRecord) error
|
||||
SaveLineage(context.Context, world.WorldLineage) error
|
||||
}
|
||||
Reference in New Issue
Block a user