[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111536":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":15,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":16,"rankGlobal":10,"rankLanguage":10,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":27,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":15,"starSnapshotCount":15,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},111536,"solana-vigil","ValidatorStack\u002Fsolana-vigil","ValidatorStack","Solana validator health in 60 seconds: score, leader duties, rewards, disk forecast, Prometheus. One static binary, read-only, never touches your keys.","",null,"Go",220,38,14,0,44.84,"MIT License",false,"main",true,[22,23,24,25,26],"hardware","solana","solana-validator","solanahcl","validators","2026-11-10 23:17:01","2026-11-23 19:07:01","# Vigil\n\n**Read-only, Alpenglow-aware Solana validator operations for Linux.**\n\nVigil combines the checks operators normally glue together: vote-account VAT runway, BLS registration, delinquency, identity consistency, leader production, per-slot missed duties, Prometheus metrics, Linux host audits, actionable alerts, and advisory maintenance planning.\n\n[![CI](https:\u002F\u002Fgithub.com\u002FValidatorStack\u002Fsolana-vigil\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FValidatorStack\u002Fsolana-vigil\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002FValidatorStack\u002Fsolana-vigil)](https:\u002F\u002Fgithub.com\u002FValidatorStack\u002Fsolana-vigil\u002Freleases)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-green.svg)](LICENSE)\n[![Go version](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGo-1.23%2B-00ADD8)](go.mod)\n\n> **Safety boundary:** Vigil never asks for a seed phrase, private key, or keypair file. It never signs or sends a transaction, changes host settings, restarts a validator, or switches identities. Use a local RPC and public validator addresses only. Test on testnet and with your own alert thresholds before production use.\n\n## Production target: main Solana validator servers\n\nVigil is built to run **directly on Linux Solana mainnet-beta validator servers**—small, middle-sized, and large operators alike. It is not a laptop dashboard, an Ethereum tool, or a substitute for local validator observation. Run one Vigil instance on each validator server and point it at that server's local RPC and public vote account. An RPC-only node can expose compatible data, but host-audit and validator-duty results are meaningful only when Vigil runs on the actual validator being monitored.\n\nThe production target is mainnet-beta. Testnet remains supported as a staging environment so operators can validate configuration and alerts safely before a mainnet deployment; no source-code change or artificial network restriction is required. Linux AMD64 and ARM64 are the supported production platforms.\n\n## Why operators can trust it\n\n- **Read-only by construction.** No key loading, signing, transaction, failover, or host-mutation code paths.\n- **No hidden dependency tree.** The binary uses Go's standard library only; `CGO_ENABLED=0` produces a static Linux executable.\n- **Honest uncertainty.** Missing RPC fields and failed observations become `unknown`, never a fabricated healthy value.\n- **No alert storms.** Sustained-failure thresholds, stable recoveries, deduplication, severity escalation, retry-on-delivery-failure, and repeat intervals are built in.\n- **No secret configuration.** Webhook URLs, Telegram tokens, and PagerDuty routing keys come from environment variables.\n- **Small footprint.** One binary, no database, no required cloud service, no telemetry, and no vendor lock-in.\n- **Made for every operator.** Guided setup and safe defaults for a first validator; JSON, Prometheus, systemd hardening, host drift, and multi-architecture builds for professional fleets.\n\n## What is included\n\n| Command | Purpose |\n|---|---|\n| `vigil init` | Guided setup with public-address validation, RPC probing, identity cross-checks, and same-cluster verification |\n| `vigil check` | One-shot validator health, VAT, BLS, stake, delinquency, vote-lag, identity, slot-lag, and leader-production checks |\n| `vigil watch` | Continuous monitoring, per-slot missed-leader detection, and Slack\u002FDiscord\u002FTelegram\u002FPagerDuty\u002Fgeneric alerts |\n| `vigil test-alert` | Prove alert delivery works without changing incident state |\n| `vigil export` | Cached, bounded-cardinality Prometheus exporter with health and readiness endpoints |\n| `vigil audit` | Read-only Linux CPU, memory, sysctl, time, NIC, process-limit, and voting-mode audit with baseline drift |\n| `vigil report` | Self-contained HTML, JSON, or terminal report; optionally includes the host audit |\n| `vigil plan-restart` | Locate an advisory leader-free slot window; never performs a restart |\n| `vigil score` | One 0-100 number, per-cell detail, and the exact fix for each failing cell |\n| `vigil disk` | Free space and days-to-full from the observed growth slope |\n| `vigil keys` | Keypair mode, owner and age — `stat` only, the file is never opened |\n| `vigil duties` | Leader slots, blocks produced, missed slots and skip rate for the epoch |\n| `vigil rewards` | Inflation rewards per epoch in SOL, with commission |\n| `vigil fleet` | Roll-up across every node listed in `fleet.json` |\n\nEvery summary is read-only: no key is loaded, nothing is signed, no host setting\nis changed. `vigil score` also prints how much of the picture it could observe, so\na partial run never looks like a clean bill of health.\n\n## Five-minute Linux quickstart\n\n### Requirements\n\n- A Linux Solana mainnet-beta validator server on AMD64 (`x86_64`) or ARM64 (`aarch64`).\n- That validator's local RPC endpoint, normally `http:\u002F\u002F127.0.0.1:8899`.\n- Your **public** vote-account address. Your identity address is optional and can be auto-filled.\n- An optional second RPC on **mainnet-beta** for independent slot-lag observations; genesis hashes must match.\n\n### 1. Install a verified release\n\nOne command, as root, on the validator server:\n\n```bash\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FValidatorStack\u002Fsolana-vigil\u002Fmain\u002Finstall.sh | sudo bash\n```\n\nOr inspect first, if you prefer:\n\n```bash\ncurl -fSLo install.sh https:\u002F\u002Fraw.githubusercontent.com\u002FValidatorStack\u002Fsolana-vigil\u002Fmain\u002Finstall.sh\nless install.sh\nsudo bash install.sh --version v0.2.0\n```\n\nFor a user-local installation:\n\n```bash\nbash install.sh --version v0.2.0 --prefix \"$HOME\u002F.local\u002Fbin\"\nexport PATH=\"$HOME\u002F.local\u002Fbin:$PATH\"\n```\n\nThe installer verifies SHA-256. If `cosign` is installed, it also verifies the release's keyless Sigstore signature. To build instead, see [Build from source](#build-from-source).\n\n### 2. Run guided setup\n\n```bash\nvigil init\nvigil check --config vigil.json\n```\n\nSetup asks only for public addresses and RPC URLs. By default it probes the local RPC, confirms that the identity owns the vote account, and compares genesis hashes when a reference RPC is configured. It writes `vigil.json` with mode `0600` and refuses to overwrite an existing file unless `--force` is explicit.\n\nFor automation:\n\n```bash\nvigil init \\\n  --non-interactive \\\n  --vote-account \u003Cyour public vote account> \\\n  --local-rpc http:\u002F\u002F127.0.0.1:8899 \\\n  --output vigil.json\n```\n\n`check` uses familiar monitoring exit codes: `0` OK, `1` warning, `2` critical, and `3` unknown.\n\n### 3. Start watching\n\n```bash\nvigil watch --config vigil.json\n```\n\nWith no webhook configured, alerts are written to the log. To configure a destination, rerun `vigil init --force` or add a webhook as shown in [Alerting](#alerting), then verify it:\n\n```bash\nvigil test-alert --config vigil.json\n```\n\n## Alpenglow checks that must be correct\n\n### VAT runway\n\nVigil reads the vote-account balance and its actual account size, asks the cluster for the rent-exempt minimum, and calculates:\n\n```text\nspendable = max(0, vote_account_balance - rent_exempt_minimum)\nrunway_epochs = spendable \u002F configured_vat_per_epoch\nnext_epoch_sufficient = spendable >= configured_vat_per_epoch\n```\n\nThe default fee is **0.8 SOL per epoch** (`800000000` lamports). This is configuration, not a hard-coded promise about future governance. Verify the current fee and slot-time assumptions for your cluster. Set `vat_lamports_per_epoch` to `0` only if VAT monitoring is intentionally disabled.\n\nA runway below `1` is critical by default because the next payment cannot be covered. A runway below `2` warns. Thresholds are configurable.\n\n### BLS registration\n\nVigil distinguishes three states that naïve exporters often merge:\n\n- `blsPubkeyCompressed` contains a valid base58 value decoding to 48 bytes → **registered**.\n- The field is explicitly `null` or empty, or the value is malformed → **critical**.\n- The field is absent from the RPC response → **unknown**, with advice to verify the RPC\u002Fclient schema.\n\n### Leader duties\n\n`getBlockProduction` supplies the current range's leader slots, produced blocks, misses, and skip ratio. In `watch` mode, Vigil also caches the leader schedule and checks newly confirmed assigned slots with `getBlocks`. The default confirmation depth is 32 slots, preventing immediate false pages on unconfirmed forks. Per-slot events do not become permanent Prometheus labels.\n\n## Alerting\n\nSecrets stay outside JSON. This Slack example uses a generic incoming-webhook configuration:\n\n```json\n{\n  \"name\": \"primary\",\n  \"type\": \"slack\",\n  \"url_env\": \"VIGIL_WEBHOOK_URL\",\n  \"timeout\": \"5s\"\n}\n```\n\nPlace that object in `alerts.webhooks`, then run:\n\n```bash\nexport VIGIL_WEBHOOK_URL='https:\u002F\u002Fhooks.slack.com\u002Fservices\u002FREPLACE\u002FREPLACE\u002FREPLACE'\nvigil test-alert --config vigil.json\n```\n\nSupported `type` values and required settings:\n\n| Type | Required settings |\n|---|---|\n| `slack` | `url_env` |\n| `discord` | `url_env` |\n| `generic` | `url_env`; optional `headers`, with `env:VARIABLE` for secret values |\n| `telegram` | `token_env`, `chat_id` |\n| `pagerduty` | `routing_key_env` |\n\nDefault behavior:\n\n- Critical conditions notify immediately.\n- Warnings and unknown states require two consecutive observations.\n- Recovery requires two consecutive healthy observations.\n- Severity changes notify immediately.\n- An active incident repeats at most once per hour.\n- Delivery failures are retried on the next observation rather than waiting for the repeat interval.\n- State is saved atomically on Linux with owner-only permissions.\n\nFor a 24\u002F7 box, use systemd rather than a terminal session.\n\n## Run as hardened Linux services\n\nFrom the repository root after creating `vigil.json`:\n\n```bash\nsudo useradd --system --home \u002Fvar\u002Flib\u002Fvigil --shell \u002Fusr\u002Fsbin\u002Fnologin vigil 2>\u002Fdev\u002Fnull || true\nsudo install -d -m 0750 -o vigil -g vigil \u002Fvar\u002Flib\u002Fvigil\nsudo install -d -m 0750 -o root -g vigil \u002Fetc\u002Fvigil\nsudo install -m 0640 -o root -g vigil vigil.json \u002Fetc\u002Fvigil\u002Fvigil.json\nsudo install -m 0644 deploy\u002Fvigil-watch.service \u002Fetc\u002Fsystemd\u002Fsystem\u002Fvigil-watch.service\nsudo install -m 0644 deploy\u002Fvigil-export.service \u002Fetc\u002Fsystemd\u002Fsystem\u002Fvigil-export.service\nsudo systemctl daemon-reload\nsudo -u vigil \u002Fusr\u002Flocal\u002Fbin\u002Fvigil check --config \u002Fetc\u002Fvigil\u002Fvigil.json\nsudo systemctl enable --now vigil-watch vigil-export\n```\n\nIf using alert secrets:\n\n```bash\nsudo install -m 0600 -o root -g vigil deploy\u002Fenv.example \u002Fetc\u002Fvigil\u002Fenv\nsudoedit \u002Fetc\u002Fvigil\u002Fenv\nsudo systemctl restart vigil-watch\n```\n\nTest delivery without exposing secret values in a process list:\n\n```bash\nsudo bash -c 'set -a; source \u002Fetc\u002Fvigil\u002Fenv; set +a; exec sudo -u vigil --preserve-env=VIGIL_WEBHOOK_URL,VIGIL_TELEGRAM_BOT_TOKEN,VIGIL_PAGERDUTY_ROUTING_KEY \u002Fusr\u002Flocal\u002Fbin\u002Fvigil test-alert --config \u002Fetc\u002Fvigil\u002Fvigil.json'\n```\n\nCheck service health:\n\n```bash\nsystemctl status vigil-watch vigil-export\njournalctl -u vigil-watch -n 100 --no-pager\ncurl -fsS http:\u002F\u002F127.0.0.1:9109\u002Fhealthz\ncurl -fsS http:\u002F\u002F127.0.0.1:9109\u002Fmetrics | less\n```\n\nThe exporter binds to loopback by default. Do not expose it directly to the public internet. If Prometheus runs on another machine, use a private network, firewall rules, and a reverse proxy or secure tunnel.\n\n## Prometheus and Grafana\n\nAdd [`deploy\u002Fprometheus.yml`](deploy\u002Fprometheus.yml) to your existing scrape configuration and load [`deploy\u002Fprometheus-alerts.yml`](deploy\u002Fprometheus-alerts.yml) as a rule file. Import [`deploy\u002Fgrafana-dashboard.json`](deploy\u002Fgrafana-dashboard.json) into Grafana and select your Prometheus datasource for the ready-made VAT, BLS, delinquency, leader-production, slot-lag, and check-status panels.\n\n```yaml\nscrape_configs:\n  - job_name: vigil\n    scrape_interval: 15s\n    scrape_timeout: 10s\n    static_configs:\n      - targets: [\"127.0.0.1:9109\"]\n```\n\nCore metrics include:\n\n| Metric | Meaning |\n|---|---|\n| `solana_vat_runway_epochs` | Continuous above-rent VAT runway |\n| `solana_vat_next_epoch_sufficient` | Whether the next VAT can be paid |\n| `solana_bls_registered` | 1 registered, 0 missing\u002Fmalformed; omitted when unknown |\n| `vigil_observation_available` | Separates missing observations from negative states |\n| `solana_delinquent` | Current RPC delinquency state |\n| `solana_slot_lag` | Non-negative reference-minus-local slot lag |\n| `solana_leader_slots` | Leader slots in the reported production range |\n| `solana_blocks_produced` | Produced blocks in that range |\n| `solana_leader_skip_ratio` | Skip ratio from 0 to 1 |\n| `vigil_check_status` | 0 OK, 1 warning, 2 critical, 3 unknown, labeled by stable check ID |\n\nIf both `watch` and Alertmanager are used, route them to different severity levels or disable duplicate destinations. Two independent paging paths can otherwise page twice for the same condition.\n\n## Read-only Linux audit\n\n```bash\nvigil audit --client agave\nvigil audit --client firedancer\nvigil audit --client agave --pid 12345 --interface eth0\n```\n\nThe audit reports observed values, comparison baselines, and recommendations. It does **not** change sysctl, NIC rings, CPU isolation, huge pages, limits, or services. Profile-dependent values such as transparent huge pages and TCP congestion control are informational rather than falsely presented as universal rules.\n\nSave a baseline and detect drift later:\n\n```bash\nvigil audit --client agave --format json --output audit-baseline.json\nvigil audit --client agave --baseline audit-baseline.json\n```\n\nSome process, NIC, or time checks require host permissions or tools such as `ethtool`, `timedatectl`, or `chronyc`. Missing evidence is reported as `unknown`. Run the audit directly on the validator, not on your laptop.\n\n## Reports and maintenance planning\n\nCreate a portable report with no external JavaScript, fonts, or CDN assets:\n\n```bash\nvigil report --config vigil.json --format html --output vigil-report.html\nvigil report --config vigil.json --format html --include-audit --output vigil-full-report.html\nvigil report --config vigil.json --format json --output vigil-snapshot.json\n```\n\nFind an advisory leader-free window:\n\n```bash\nvigil plan-restart --config vigil.json --min-free-slots 32 --search-slots 10000\n```\n\nThe planner estimates timing from recent performance samples when available. Leader schedules and cluster conditions can change, so re-check immediately before maintenance. **Vigil never restarts a process, switches identities, or attempts automatic failover.** Double-signing prevention remains the operator's responsibility.\n\n## Configuration\n\n`vigil init` is the recommended interface. [`config.example.json`](config.example.json) documents the complete default shape. JSON decoding is strict: unknown fields are rejected so misspelled safety settings cannot silently disappear.\n\n| Setting | Default | Notes |\n|---|---:|---|\n| `rpc.local_url` | `http:\u002F\u002F127.0.0.1:8899` | Primary validator observation endpoint |\n| `rpc.reference_url` | empty | Optional independent endpoint on the same cluster |\n| `rpc.commitment` | `confirmed` | `processed`, `confirmed`, or `finalized` |\n| `rpc.timeout` | `8s` | Per-attempt timeout; transport\u002F429\u002F5xx retries are bounded |\n| `monitor.interval` | `10s` | Watch polling interval |\n| `monitor.vat_lamports_per_epoch` | `800000000` | Verify against current protocol rules |\n| `monitor.vat_warning_epochs` | `2` | Low-runway warning |\n| `monitor.vat_critical_epochs` | `1` | Critical below this runway or insufficient next payment |\n| `monitor.leader_confirmation_depth` | `32` | Confirmation delay for per-slot duty decisions |\n| `monitor.alert_on_missed_leader_slot` | `true` | Set false if using only aggregate skip alerts |\n| `alerts.failure_threshold` | `2` | Sustained observations for non-critical checks |\n| `alerts.recovery_threshold` | `2` | Stable healthy observations before resolution |\n| `alerts.repeat_interval` | `1h` | Active-incident reminder interval |\n\nSee [`docs\u002FOPERATIONS.md`](docs\u002FOPERATIONS.md) for tuning and troubleshooting.\n\n## Build from source\n\nGo 1.23 or newer is sufficient; there are no third-party Go module dependencies.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FValidatorStack\u002Fsolana-vigil.git\ncd vigil\nmake test\nmake build\n.\u002Fbin\u002Fvigil version\n```\n\nBuild both static Linux release binaries and checksums:\n\n```bash\nmake release VERSION=v0.2.0\nls -lh dist\u002F\n```\n\nContainer build, if desired:\n\n```bash\ndocker build -t vigil:local .\ndocker run --rm vigil:local version\n```\n\n## Security and scope\n\n- Read [`SECURITY.md`](SECURITY.md) before reporting or deploying.\n- RPC URLs may contain provider credentials. Vigil rejects URLs with embedded userinfo and does not include endpoints in normal logs, but environment-managed URL credentials should still be protected by your secret system.\n- The watcher and exporter need outbound HTTP(S) and local RPC access only. The systemd units remove capabilities and write access outside `\u002Fvar\u002Flib\u002Fvigil`.\n- The host audit is intentionally separate from the long-running watcher because `\u002Fproc`, `\u002Fsys`, and NIC inspection can require broader read permissions.\n- No application is a substitute for reviewed failover, key custody, transaction policies, or incident runbooks.\n\n### Explicit limitations in this release\n\nVigil does not yet parse Alpenglow block-footer certificate participation, normalize Firedancer's tile endpoint, track SFDP version deadlines, or verify client upgrade binaries. `plan-restart` is schedule advice only. Vote\u002Fcertificate semantics can change with client releases; unknown observations must be investigated rather than suppressed. These are deliberate scope boundaries, not features to infer from the presence of an `alpenglow` metric name.\n\n## Development and contribution\n\n```bash\nmake fmt-check\nmake vet\nmake test\nmake race\nmake cross\n```\n\nRead [`CONTRIBUTING.md`](CONTRIBUTING.md). Changes to VAT, BLS, leader accounting, alert state, or host-audit rules require tests and clear documentation of evidence sources. Avoid noisy defaults and never add key access, transaction submission, or automatic identity switching.\n\n## License\n\nMIT. See [`LICENSE`](LICENSE).\n","Solana-vigil 是一个专为 Solana 验证节点运维设计的轻量级健康监控工具。它以只读方式运行于 Linux 验证器主机上，提供验证器评分、出块职责履行情况、质押收益估算、磁盘容量预测、BLS 注册状态、身份一致性校验及 Prometheus 指标导出等功能；所有功能均基于本地 RPC 和公开地址，不接触私钥、不签名、不修改系统。适用于主网验证器日常巡检、故障预警与运维决策支持，尤其适合中小规模验证器运营者及专业验证器集群的标准化健康观测场景。",2,"2026-11-24 04:41:06","CREATED_QUERY"]