- 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
23 lines
649 B
Go
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}
|
|
}
|