Resolves gate-subsystem-2 and gate-subsystem-1. WIRE: gate.Finding.Level is now a typed gate.Level restricted to LevelError/LevelWarn, and Finding.Validate rejects any other value so a mis-typed or empty level fails the gate closed instead of silently downgrading an intended blocker to a pass -- mirroring the fail-closed standard ReviewFinding.Validate already sets in internal/domain/workflow/review_findings.go. WIRE: StageYaegiGate now delegates the blocking decision to gate.Finding.Blocking instead of re-implementing the raw "error" literal, so the script-facing gate.Blocking helper (exposed by gateextract to interpreted .archie/gate.go scripts) and the rule the daemon actually enforces share one source of truth and cannot drift.
23 lines
702 B
Go
23 lines
702 B
Go
// Code generated by 'yaegi extract github.com/samcharles93/archie-core/internal/gate'. DO NOT EDIT.
|
|
|
|
package gateextract
|
|
|
|
import (
|
|
"github.com/samcharles93/archie-core/internal/gate"
|
|
"reflect"
|
|
)
|
|
|
|
func init() {
|
|
Symbols["github.com/samcharles93/archie-core/internal/gate/gate"] = map[string]reflect.Value{
|
|
// function, constant and variable definitions
|
|
"Blocking": reflect.ValueOf(gate.Blocking),
|
|
"LevelError": reflect.ValueOf(gate.LevelError),
|
|
"LevelWarn": reflect.ValueOf(gate.LevelWarn),
|
|
|
|
// type definitions
|
|
"Finding": reflect.ValueOf((*gate.Finding)(nil)),
|
|
"GateContext": reflect.ValueOf((*gate.GateContext)(nil)),
|
|
"Level": reflect.ValueOf((*gate.Level)(nil)),
|
|
}
|
|
}
|