scobleclaw/kubeclaw/internal/judge/verifier.go
agent-cos 163a3333d3 feat(pkg/floxenv): add Flox environment lifecycle management package
- Activate / Deactivate via flox activate --detach (with graceful SIGTERM→SIGKILL)
- Non-privileged IsAlive process check with Linux /proc fallback
- Dev-mode stub when flox is missing or FLOXENV_DEV_MODE=1
- Unit and integration tests

Closes #16
2026-05-29 23:40:22 -07:00

23 lines
649 B
Go

package judge
import "time"
// Verifier evaluates compliance policies against workflow invocations.
type Verifier struct {
client *Client
}
// VerificationRecord stores the result of a judge evaluation.
type VerificationRecord struct {
Timestamp time.Time `json:"timestamp"`
AgentName string `json:"agentName"`
Workflow string `json:"workflow"`
Verdict Verdict `json:"verdict"`
Reason string `json:"reason"`
Duration time.Duration `json:"durationMs"`
}
// NewVerifier creates a new Verifier backed by the given client.
func NewVerifier(client *Client) *Verifier {
return &Verifier{client: client}
}