package bootstrap

import (
	"github.com/nexuscrm/kernel/pkg/createsourceguard"
)

// The create-from-source guard cluster (entries reader, candidate-field reader,
// Flow-walk ownership logic, and owner-scoped coverage verification) was
// relocated to nexuscrm-kernel/pkg/createsourceguard in Wave-3. The guard
// transitively imports shared/pkg/models Flow structs, so it cannot live in the
// stdlib-only contract module; kernel (which already imports shared + contract)
// is its legal home. These thin func-value aliases keep every existing backend
// caller — bootstrap.field_mappings.go, pack_reconcile.go, standard_actions.go —
// and the bootstrap guard test compiling unchanged.
var (
	// GetCreateFromSourceGuardEntries returns every (SourceFKField,
	// owning-action) pair configured for inserts of targetObject.
	GetCreateFromSourceGuardEntries = createsourceguard.GetCreateFromSourceGuardEntries

	// GetCreateFromSourceGuardCandidateFields returns the unvalidated set of
	// source-FK field names that could activate the runtime direct-create guard.
	GetCreateFromSourceGuardCandidateFields = createsourceguard.GetCreateFromSourceGuardCandidateFields

	// VerifyCreateFromSourceGuardCoverageForFieldMappingGroups is the
	// owner-scoped pack/overlay verification hook for SourceLookupField-backed
	// create-from-source guard coverage.
	VerifyCreateFromSourceGuardCoverageForFieldMappingGroups = createsourceguard.VerifyCreateFromSourceGuardCoverageForFieldMappingGroups
)
