upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/probe.rs
AgeCommit message (Collapse)Author
2026-02-25use compact single-line JSON output for machine consumption and --watch log ↵DanConwayDev
piping
2026-02-25rename find_announcement to serves_latest_announcement and drop redundant ↵DanConwayDev
detail from git_fetch_refs
2026-02-25hide read-only mode skips from human and JSON probe outputDanConwayDev
2026-02-25fix git_refs_match_state in read-only mode to fetch state events from relayDanConwayDev
In read-only mode, fetch all served kind:30618 state events for the repo by #d tag. The relay already validates authorization (including recursive maintainer chains), so any served state event is authoritative. Derive expected refs by taking the latest-timestamp state event per ref across all served events, then compare against git info/refs output.
2026-02-25add probe subcommand for end-to-end relay health checksDanConwayDev
Implements grasp-audit probe with full write path (publish events, poll for repo init, push, verify refs match state) and read-only fallback (find existing announcement, fetch refs). Supports --nsec for whitelisted relays, --json output, and --watch for continuous monitoring.