mangle

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReasoningAdapter

type ReasoningAdapter struct {
	MaxRecursionDepth int
	EvalTimeout       time.Duration
}

ReasoningAdapter implements ports.ReasoningPort using the Google Mangle engine.

func NewReasoningAdapter

func NewReasoningAdapter() *ReasoningAdapter

NewReasoningAdapter initializes the Datalog evaluator with strict circuit breakers.

func (*ReasoningAdapter) Query

func (a *ReasoningAdapter) Query(ctx context.Context, query string, genome []domain.DomainGene) ([]domain.Atom, error)

Query allows raw datalog extraction, bounded by the depth limit.

func (*ReasoningAdapter) Verify

func (a *ReasoningAdapter) Verify(ctx context.Context, subject interface{}, genome []domain.DomainGene) (*domain.AuditResult, error)

Verify implements the Shadow Audit for structured plans.

func (*ReasoningAdapter) VerifyAtoms

func (a *ReasoningAdapter) VerifyAtoms(ctx context.Context, atoms []domain.Atom, genome []domain.DomainGene) (*domain.AuditResult, error)

VerifyAtoms executes the core Mangle evaluation (semi-naive with stratification).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL