review.precision_gate and review.approve_before_post were file-only, so the dashboard had no way to write them: no control-plane resource carried them. Add the review-settings kind (docs/prds/review-settings-resource.md), seed it from the file's [review] section, layer it field-by-field into cfg.Review, watch it live, and publish it through ConfigView.Review. The dashboard gets a Review settings page bound to the kind through PAGE_RESOURCES, showing each dial beside the value in force.
26 lines
1.8 KiB
Go
26 lines
1.8 KiB
Go
package controlplane
|
|
|
|
import (
|
|
pb "github.com/samcharles93/archie-core/internal/contracts/controlplane/v1"
|
|
"github.com/samcharles93/archie-core/internal/domain/workflow"
|
|
)
|
|
|
|
// Schemas are not declared here: each Definition names its document type, and
|
|
// Definition.Descriptor derives the JSON Schema from it (internal/app/controlplane/schema.go).
|
|
func builtinDefinitions(steps workflow.StepRegistry) []Definition {
|
|
definitions := []Definition{workflowDefinition(), workflowDefinitionsDefinition(steps), workflowEnablementDefinition(), personaDefinition(), scheduleDefinition(), agentProfileDefinition(), credentialBindingsDefinition(), reviewSettingsDefinition()}
|
|
definitions = append(definitions, modelDefinitions()...)
|
|
definitions = append(definitions, operationalDefinitions()...)
|
|
return definitions
|
|
}
|
|
|
|
func domainManagedDescriptors() []*pb.ResourceDescriptor {
|
|
const stateService = "state.v1.StateStoreService"
|
|
return []*pb.ResourceDescriptor{
|
|
{Kind: "identities", Title: "Identities", ApplyMode: "domain-managed", QueryService: stateService + "/ListIdentities,GetIdentity", CommandService: stateService + "/CreateIdentity,RenameIdentity,SuspendIdentity,ReactivateIdentity,RetireIdentity"},
|
|
{Kind: "capture-events", Title: "Captured events", ApplyMode: "domain-managed", QueryService: stateService + "/StreamCaptures", CommandService: stateService + "/InsertCapture"},
|
|
{Kind: "capture-mappings", Title: "Capture mappings", ApplyMode: "domain-managed", QueryService: stateService + "/ListMappings", CommandService: stateService + "/InsertMapping,UpdateMapping,DeleteMapping"},
|
|
{Kind: "capture-bindings", Title: "Capture bindings", ApplyMode: "domain-managed", QueryService: stateService + "/ListBindings", CommandService: stateService + "/InsertBinding,UpdateBinding,DeleteBinding"},
|
|
}
|
|
}
|