Documentation
¶
Overview ¶
Package modelconvert stages typed model conversions and proves them before publication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BareTable ¶
BareTable records a declaration requiring a consumer type migration. BareTable exists only for foundry models convert; remove it after migration.
type Behavior ¶
Behavior retains source provenance independently of runtime function addresses. Behavior exists only for foundry models convert; remove it after migration.
type DocumentationChange ¶
DocumentationChange records member documentation retained on its model field. It exists only for foundry models convert and is removed after migration.
type File ¶
File is a staged replacement relative to the analyzed package directory. File exists only for foundry models convert; remove it after migration.
type Generator ¶
Generator writes owned generated files into the temporary package directory. Generator exists only for foundry models convert; remove it after migration.
type GeneratorFunc ¶
GeneratorFunc exists only for foundry models convert; remove it after migration.
type Model ¶
type Model struct {
Name, Table, Variable, TableType, Identity string
Options map[string]int
Slots, Owners []string
Behaviors []Behavior
Documentation []DocumentationChange
}
Model describes one recognized conversion. Options counts only written options. Model exists only for foundry models convert; remove it after migration.
type OutsideDirective ¶
OutsideDirective identifies a declaration that remains handwritten by rule. OutsideDirective exists only for foundry models convert; remove it after migration.
type Plan ¶
type Plan struct {
BareTables []BareTable
OutsideDirective []OutsideDirective
Directory, PackagePath, PackageName string
Models []Model
Refused []Refusal
Files []File
// contains filtered or unexported fields
}
Plan owns the source snapshot used by the proof. Analyze never writes files. Plan exists only for foundry models convert; remove it after migration.
type ProofOptions ¶
type ProofOptions struct {
Generator Generator
PublicationValidator PublicationValidator
FrameworkDirectory, ScratchDirectory string
}
ProofOptions identifies the current framework and a scratch directory. No command is run in the original package, and no original file is modified. ProofOptions exists only for foundry models convert; remove it after migration.
type PublicationValidator ¶
PublicationValidator supplies the publisher's read-only ownership checks. It exists only for foundry models convert; remove it after migration.
type Publisher ¶
Publisher is the command's guarded, recoverable source/output publisher. It must check Before bytes and publish the entire batch atomically or recoverably. Publisher exists only for foundry models convert; remove it after migration.
type Refusal ¶
Refusal identifies a declaration that cannot be converted without guessing. Refusal exists only for foundry models convert; remove it after migration.
type Verified ¶
type Verified struct {
// contains filtered or unexported fields
}
Verified contains only a proven, immutable source/output batch. Verified exists only for foundry models convert; remove it after migration.
func Prove ¶
func Prove(ctx context.Context, plan *Plan, options ProofOptions) (result *Verified, resultErr error)
Prove snapshots the package before and after generation in a private module copy. Any refusal, metadata difference or changed behavior rejects the batch. Prove exists only for foundry models convert; remove it after migration.