gates / gates (push) Successful in 2m2s
Read-only review of every job on a timer and of everything that ends on a date, with measurements from the three test boxes. Nothing ends in the next 14 days. Register 236 -> 245 (R-1379..R-1387), pointer lines on twelve rows, D76-D79 in STATUS.md. Part C: felhom-agent's clone address holds no token now; the other clones wait for the operator's yes. R-1035's 4-week check moved to 2026-11-18 (operator read needed). Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
44 lines
4.3 KiB
Bash
44 lines
4.3 KiB
Bash
#!/bin/bash
|
|
# searches.sh — the searches an `N` in TABLE.md must survive. Read-only; prints to stdout (saved as evidence/searches.txt).
|
|
# The same tool as audits/end-dates-list-2026-11-11/tools/searches.sh with the Clock list's searches.
|
|
# Each search: an ASCII fragment (no accented letter), case-insensitive, over (ar) documentation/architecture,
|
|
# (op) backlog/OPEN-ITEMS.md, (cl) backlog/CLOSED-ITEMS.md, (rm) backlog/ROADMAP.md. For register files it prints the row ids
|
|
# that match, so a reader can open them. Controls: C+ must hit, C- must not.
|
|
E="$(cd "$(dirname "$0")/../../../.." && pwd)"
|
|
B="$E/documentation/backlog"; AR="$E/documentation/architecture"
|
|
G=/usr/bin/grep
|
|
ids() { $G -i -E -- "$1" "$2" 2>/dev/null | $G -o -E '^\| \*\*R-[0-9a-z]+\*\*' | tr -d '|* ' | sort -u | tr '\n' ' '; }
|
|
s() { # id, what, pattern
|
|
local n_ar; n_ar=$($G -r -i -l -E -- "$3" "$AR" 2>/dev/null | wc -l)
|
|
printf '%s | %s | /%s/ | ar files=%s | open: %s| closed: %s| roadmap=%s\n' "$1" "$2" "$3" "$n_ar" "$(ids "$3" "$B/OPEN-ITEMS.md")" "$(ids "$3" "$B/CLOSED-ITEMS.md")" "$($G -c -i -E -- "$3" "$B/ROADMAP.md")"
|
|
}
|
|
date -u +'searches run %Y-%m-%d %H:%M:%S UTC'
|
|
s C+ "positive control (a row that exists)" "R-1301"
|
|
s C+2 "positive control (a word in all four)" "backup"
|
|
s C- "negative control" "zzqxclocklistzz"
|
|
s S01 "a daily hub job missed while the hub is down" "(missed|skipped).{0,60}(slot|check|audit).{0,80}(pod|restart|hub (is|was) down)|catch.?up.{0,80}(hub job|scheduleDaily|daily job)"
|
|
s S02 "a failed household mail is not sent again" "(customer|household).{0,30}(mail|e-mail).{0,80}(retry|retried|not sent again)"
|
|
s S03 "the operator mail retry is lost at a hub restart" "retry.{0,100}(restart|in memory|lost)|GAVE UP"
|
|
s S04 "the guest-power watchdog gives up and tells nobody" "guest.power.{0,160}(give|gave|giving).up|GIVING UP"
|
|
s S05 "the peer list push to ep0 fails again and again" "wgsync.{0,120}(fail|alarm|event)|peer list.{0,80}(fail|stale|alarm)"
|
|
s S06 "the app-update leg did not run: who is told" "update.leg.{0,120}(did not run|missed|skipped|lost).{0,100}(told|mail|alarm|event|nobody)"
|
|
s S07 "a verdict trusts the box's clock (fresh backup, off-site age, proof age)" "(box|host).{0,12}clock.{0,120}(ahead|future|wrong).{0,160}(fresh|stale|latest|backup|proof)|timestamp.{0,60}(in the future|ahead)"
|
|
s S08 "an 'already ran' stamp written by a clock that was ahead" "(stamp|already ran|last run|LastOKAt).{0,100}(clock|future|ahead)"
|
|
s S09 "a wrong clock refuses every signed job" "(signed|job).{0,80}(not.yet.valid|expired).{0,120}clock|clock.{0,120}(signed job|issued_at|ErrNotYetValid)"
|
|
s S10 "the hub's own clock jumps" "hub.{0,20}clock.{0,80}(jump|step|wrong|drift)"
|
|
s S11 "the off-site push is skipped because another backup runs" "off-?site.{0,100}skipped.{0,100}(another|running)|another backup is running"
|
|
s S12 "the 05:30 proof restore can fall inside the whole-guest backup" "proof.{0,120}(05:30|gate|whole-guest|vzdump|meets)"
|
|
s S13 "the PBS verify runs beside a backup" "verify.{0,80}(heavy-op|gate|beside|during a backup)"
|
|
s S14 "two DooPlex timers overlap, or two machines' clocks order the jobs" "(timer|slot).{0,80}(overlap|meet|same time)|holds only (if|while) both"
|
|
s S15 "an interval job with no time limit" "(time limit|timeout|deadline).{0,80}(sweep|interval job|health check|scan)|slow checker|no per-check"
|
|
s S16 "how long the hub's sweep takes with many boxes" "(100|hundred|1000) (boxes|customers|households)|sweep.{0,80}(duration|takes|seconds).{0,60}(boxes|fleet)"
|
|
s S17 "the agent unit: Restart=always and a watchdog" "Restart=always|WatchdogSec|systemd watchdog"
|
|
s S18 "hub database staleness alarm: 13 h or 26 h" "HubDBBackupStale"
|
|
s S19 "a list of every timer" "every timer|list of (all )?(timers|scheduled jobs)|all (timers|scheduled jobs)|job (table|inventory)|timer inventory"
|
|
s S20 "the hour change" "DST|clock change|daylight|spring forward|2027-03-28"
|
|
s S21 "who keeps the time on a box" "chrony|timesyncd|NTP"
|
|
s S22 "the crash guard reads the clock at early boot" "crash.guard.{0,160}(clock|RTC|time is wrong)"
|
|
s S23 "the catalog sync fails for a long time" "(catalog|template).sync.{0,100}(fail|stale|days|alarm)"
|
|
s S24 "the 05:30 proof restore is not made up" "proof.{0,120}(not made up|catch.?up|missed)"
|
|
s S25 "the restore-copy sweep on a box that is on for under six hours" "(sweep|every 6 h).{0,120}(first run|on for under|short uptime)"
|