policy

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package policy contains shared host mapping defaults and session-key rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeRecallMode

func NormalizeRecallMode(mode string) (string, bool)

NormalizeRecallMode canonicalizes supported recall modes.

func NormalizeSessionStrategy

func NormalizeSessionStrategy(strategy string) string

NormalizeSessionStrategy canonicalizes supported strategy labels.

func SessionKeyForStrategy

func SessionKeyForStrategy(host, strategy string, input contracts.Input, unsupported *[]contracts.UnsupportedMapping) string

SessionKeyForStrategy builds a host-scoped durable session key or records why the selected strategy cannot be used safely.

Types

type HostDefaults

type HostDefaults struct {
	Workspace       string
	AIPeer          string
	SessionStrategy string
	RecallMode      string
}

HostDefaults are host-specific fallback mapping decisions.

func DefaultsForHost

func DefaultsForHost(host string) (HostDefaults, bool)

DefaultsForHost returns the documented defaults for a supported host.

Jump to

Keyboard shortcuts

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