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-26chore: apply cargo fmt and fix clippy warningsDanConwayDev
Fix pre-existing clippy lints: - &PathBuf -> &Path in audit_cleanup.rs - too_many_arguments on process_newly_available_git_data, process_purgatory_announcements, and HttpService::new - clone_on_copy for PublicKey (Copy type) in purgatory cleanup loop
2026-02-25show software and version in nip11_fetch detailDanConwayDev
2026-02-25diagnose overall timeout: name culprit check if it consumed >50% of budget, ↵DanConwayDev
else report cumulative slowness
2026-02-25report partial results on overall timeout: completed checks pass/fail, ↵DanConwayDev
timed-out step marked, remaining skipped
2026-02-25add overall probe timeout of min(20s, watch_interval) to prevent overlapping ↵DanConwayDev
runs
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.