// Command validator-agent runs on a validator VM. It is stateless: every
// decision it makes is driven by polling the Control API, per the
// deployment constraint that validators must be able to restart freely
// without any local state to reconcile.
packagemain
import(
"context"
"flag"
"log/slog"
"net"
"os"
"os/signal"
"strconv"
"strings"
"syscall"
"cloudipvalidator/internal/agentcore"
"cloudipvalidator/internal/config"
)
funcmain(){
configPath:=flag.String("config","configs/validator-agent.yaml","path to validator-agent config file")
stubPorts:=flag.String("stub-ports","","TEST ONLY: comma-separated TCP ports to accept-and-close on, standing in for the validator's real listening services in the offline end-to-end harness (see docs/LOCAL_E2E.md)")