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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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