Files
felhom.eu/documentation/audits/clock-list-2026-11-11/evidence/helpers/helper-clock-controller.md
T
admin 978666dde3
gates / gates (push) Successful in 2m2s
lists: the Clock list (70 jobs) and the End-dates list (39 things), 9 register rows, 4 decisions
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
2026-11-11 11:54:42 +01:00

34 KiB

Clock list: in-guest controller (helper result, candidates only)

1. Night dump leg (databases and volumes) at W

  1. dbDumpLeg CT/cmd/controller/main.go:1336-1344 runs RunDBDumps CT/internal/backup/backup.go:564; owner: controller; started by the daily job "db-dump" CT/cmd/controller/main.go:1345. CUSTOMER.
  2. Daily at W. W = household setting, else DBDumpSchedule, else DefaultWindow "02:30" CT/internal/backupwindow/backupwindow.go:12, decided in EffectiveWindow CT/internal/backupwindow/backupwindow.go:86-94. First leg. Zone: Europe/Budapest, hard-coded, getBudapestLocation CT/internal/scheduler/scheduler.go:17-27.
  3. One database dump: 5 min limit CT/internal/appbackup/dbdump.go:291. Whole leg limit: NOT FOUND (grep WithTimeout|WithDeadline in backup.go gave only CT/internal/backup/backup.go:983 and CT/internal/backup/backup.go:1268). Grows with number and size of databases and volumes.
  4. Box off at W: Missed CT/internal/nightchain/nightchain.go:197-218 sees it from the ledger and the catch-up runs it (block 4). The hub judges a missing dump at its 05:00 deadline AR/07-backup-architecture.md:579-584.
  5. withLeg takes the leg lock CT/cmd/controller/main.go:1321-1335; acquireRunning refuses a second backup CT/internal/backup/backup.go:1105-1113; a job still running is skipped executeJob CT/internal/scheduler/scheduler.go:354-364. A running migration skips the leg and returns no error CT/internal/backup/backup.go:565-568.
  6. Slot from the wall clock, waited on a monotonic timer runDailyJob CT/internal/scheduler/scheduler.go:300-352; fired over 60 min late = skipped DailyLateLimit CT/internal/scheduler/scheduler.go:67. See block 24 for the hour change.
  7. Failure: NotifyDBDumpFailed CT/cmd/controller/main.go:1339. A made-up miss: one timeline line, never mailed AR/07-backup-architecture.md:562-564. A miss not made up: banner after 26 h StaleAfter CT/internal/nightchain/banner.go:23.
  8. TEST TestCatchUp_OffAtWThenOn_OneCatchUpAfter15Min CT/internal/nightchain/nightchain_test.go:92; TEST TestDaily_LateFireIsSkipped CT/internal/scheduler/scheduler_test.go:87.

2. Second-drive copy leg at W+60 min

  1. RunAllTier2 CT/internal/backup/tier2.go:534 copies each app's data to the second drive; owner: controller; started by the daily job "tier2-backup" CT/cmd/controller/main.go:1442. CUSTOMER.
  2. Daily at W+60 min, tier2OffsetMin CT/internal/backupwindow/backupwindow.go:17; no setting of its own. It does not wait for the dump leg: "NOTHING waits on the leg before it" AR/09-update-architecture.md:2751-2757. Zone as block 1.
  3. One copy: 60 min, tier2CopyTimeout CT/internal/backup/tier2_copy_lifecycle.go:40, applied at CT/internal/backup/tier2.go:828. No limit for the whole leg found (same grep as block 1). Grows with app count and data size.
  4. Catch-up as block 4 (the leg is in the ledger through withLeg CT/cmd/controller/main.go:1438-1441). The leg function always returns nil CT/cmd/controller/main.go:1438-1441, so the scheduler never sees a failure.
  5. Leg lock CT/cmd/controller/main.go:1321-1335. Skipped while a migration runs CT/internal/backup/tier2.go:538-541. acquireRunning in tier2.go: NOT FOUND (grep acquireRunning\(\)|TryLock in tier2.go, 0 hits). A stray copy container is retried every minute tier2RetryEvery CT/internal/backup/tier2_copy_lifecycle.go:172.
  6. As block 1: wall-clock slot, monotonic wait, 60 min late limit CT/internal/scheduler/scheduler.go:67.
  7. Who is told of a failed copy: NOT FOUND in the wiring (grep Notify[A-Za-z]+\( in main.go lines 1300-1460 shows only the dump and the off-site notices, CT/cmd/controller/main.go:1339 and CT/cmd/controller/main.go:1446-1452). Candidate, the answer may sit inside tier2.go.
  8. SOURCE CT/internal/backup/tier2.go:534; catch-up part TEST TestCatchUp_PowerCutMidChain_FinishesTheRest CT/internal/nightchain/nightchain_test.go:145.

3. Off-site push leg at W+105 min (with clean-up of old snapshots)

  1. RunOffboxBackup CT/internal/backup/offbox.go:1018 pushes dumps to the remote store, then runs retention; owner: controller; started by the daily job "offbox-backup" CT/cmd/controller/main.go:1641-1643. CUSTOMER.
  2. Daily at W+105 min, offboxOffsetMin CT/internal/backupwindow/backupwindow.go:18. Retention keeps 7 daily, keepDaily CT/internal/backup/offbox_window.go:47. Zone as block 1.
  3. Per app 2 h, offboxBackupTimeout CT/internal/backup/offbox.go:39, applied at CT/internal/backup/offbox.go:1564; SSH connect 10 s CT/internal/backup/offbox.go:37. Grows with data changed and line speed. One real night: 3 min 28 s AR/09-update-architecture.md:2751-2757.
  4. Catch-up as block 4. No escrowed key, orphaned store or migration: skipped with an INFO log line and nil CT/internal/backup/offbox.go:1040-1053.
  5. Another backup running: "skipped — another backup is running", returns nil, "the next scheduled run retries" CT/internal/backup/offbox.go:1054-1057. So a long second-drive leg can cost the night's off-site push (candidate).
  6. As block 1. The clean-up window has a one-hour clock tolerance offsiteGuardSkew CT/internal/backup/offbox_window.go:42.
  7. Failure: NotifyOffboxBackupFailed with a cleaned message CT/cmd/controller/main.go:1446-1452. The hub's daily deadline is the independent signal CT/cmd/controller/main.go:1524-1528.
  8. SOURCE CT/internal/backup/offbox.go:1040-1057; DOC AR/07-backup-architecture.md:455-457.

4. Missed-night catch-up and resume watch

  1. CatchUp.Evaluate CT/internal/nightchain/nightchain.go:281-299 runs the backup legs a box missed; owner: controller; started at controller start CT/cmd/controller/main.go:1676 and by the resume watch CT/cmd/controller/main.go:1677. CUSTOMER.
  2. 15 min after the trigger, DefaultDelay CT/internal/nightchain/nightchain.go:62; a leg due within 30 min is left alone, leaveToNormal CT/internal/nightchain/nightchain.go:64. Values decided by CC AR/07-backup-architecture.md:574-577. No setting.
  3. As long as the legs it runs. It waits up to 2 h for a whole-guest backup, quiesceWaitMax CT/internal/nightchain/nightchain.go:66, then drops with a WARN CT/internal/nightchain/nightchain.go:319.
  4. If the catch-up itself does not run: banner after 26 h (block 5) and the hub's longer lines, 48 h without a dump AR/07-backup-architecture.md:579-584. Two missed nights give one catch-up, not two.
  5. One at a time: pending/running guard CT/internal/nightchain/nightchain.go:288-292; leg lock CT/cmd/controller/main.go:1321-1335. It never runs the update leg CT/cmd/controller/main.go:1660-1664.
  6. ResumeWatch compares wall clock and monotonic clock each minute; a gap over 5 min triggers, d > gap CT/internal/nightchain/nightchain.go:375, gap set at CT/cmd/controller/main.go:1681. A forward clock correction over 5 min looks the same as a resume (candidate). "not measured live" AR/07-backup-architecture.md:551-559.
  7. Household: one timeline line, never mailed AR/07-backup-architecture.md:562-564, event sent at CT/internal/nightchain/nightchain.go:357-359. Dropped catch-up: log line only CT/internal/nightchain/nightchain.go:319.
  8. TEST TestCatchUp_TwoMissedNights_One CT/internal/nightchain/nightchain_test.go:126; TEST TestResumeWatch_SeesASuspend CT/internal/nightchain/nightchain_test.go:217; TEST TestR871_CatchUpWiring CT/cmd/controller/r871_catchup_wiring_test.go:16.

5. Missed-backup banner (26 hours)

  1. ComputeBanner CT/internal/nightchain/banner.go:56-88 shows the household a banner when no night backup ran; owner: controller; computed when the page is drawn (no timer of its own). CUSTOMER.
  2. Shown when the last backup is older than 26 h, StaleAfter CT/internal/nightchain/banner.go:23. After 5 missed days it suggests another hour, suggestMinDays CT/internal/nightchain/banner.go:26, Suggest CT/internal/nightchain/banner.go:95-113.
  3. Instant; reads the ledger only CT/internal/nightchain/banner.go:56-88.
  4. Nobody opens the page: nobody sees it. The hub's deadline check is the other channel AR/07-backup-architecture.md:579-584.
  5. Not a job; no lock needed. Dismissed, it comes back after a new miss, design at AR/07-backup-architecture.md:566-572.
  6. Age is wall-clock arithmetic CT/internal/nightchain/banner.go:56-88; a clock set back hides the banner for as long as the step (candidate). A test for a clock set back: NOT FOUND (grep ^func Test.*(Back|Clock) in banner_test.go gave only the dismiss test).
  7. The household only, on the page; no mail AR/07-backup-architecture.md:566-572.
  8. TEST TestBanner_ShownWithReasonAndSuggestion CT/internal/nightchain/banner_test.go:29; TEST TestBanner_DismissedThenBackAfterANewMiss CT/internal/nightchain/banner_test.go:59.

6. Whole-guest backup driver (stop apps, ask the host agent, start apps)

  1. Loop.Run CT/internal/quiesce/quiesce.go:191-206 stops the apps and asks the agent for the whole-guest backup; owner: controller drives, agent does the backup; started by startQuiesceLoop CT/cmd/controller/main.go:4008. CUSTOMER.
  2. Polls every 5 min CT/internal/quiesce/quiesce.go:149-151; runs once per 24 h cadence CT/internal/quiesce/quiesce.go:161-163, only inside W+2h to W+6h, gateOpenOffsetMin CT/internal/quiesce/quiesce.go:760, gateSpanMin CT/internal/quiesce/quiesce.go:761. Zone budapestLocation CT/internal/quiesce/quiesce.go:747-757.
  3. Apps stay down at most 30 min, MaxQuiesce default CT/cmd/controller/main.go:3990, setting max_quiesce_duration CT/internal/config/config.go:132. Manual run limit = that + 5 min CT/internal/quiesce/quiesce.go:430. Grows with guest disk size.
  4. Outside the window it still runs when the last one is older than cadence + 24 h (the 48 h valve) CT/internal/quiesce/quiesce.go:801-818. Apps left stopped by a crash are started by Recover CT/internal/quiesce/quiesce.go:177-188, called at CT/cmd/controller/main.go:4007.
  5. Single-flight TryLock CT/internal/quiesce/quiesce.go:213-216; waits for a catch-up CT/internal/quiesce/quiesce.go:250-253; waits for the update leg CT/internal/quiesce/quiesce.go:271-274, never past W+5h30 legStepGraceMin CT/internal/quiesce/quiesce.go:935.
  6. Gate is minute-of-day arithmetic on the wall clock CT/internal/quiesce/quiesce.go:801-818; the poll is a monotonic ticker CT/internal/quiesce/quiesce.go:191-206. Hour-change night: NOT FOUND a test (grep DST|Budapest|SpringForward|Daylight in ^func Test lines, 0 hits).
  7. First failure notifies once noteTierFailure CT/internal/quiesce/quiesce.go:283-298; retry back-off 15 min to 4 h CT/internal/quiesce/breaker.go:47, CT/internal/quiesce/breaker.go:54; busy agent: retry 15 min, alarm after 3 h CT/internal/quiesce/contention.go:53, CT/internal/quiesce/contention.go:64.
  8. TEST TestScheduledRunAllowed CT/internal/quiesce/quiesce_window_test.go:23; TEST TestRunOnce_ValveRunsOutsideWindow CT/internal/quiesce/quiesce_window_test.go:94; TEST TestBreaker_BackoffSchedule CT/internal/quiesce/breaker_test.go:218.

7. Automatic app-update leg (after the off-site push)

  1. RunUpdateLeg CT/internal/stacks/unattended.go:230 presses one update step per app; owner: controller; started by chainUpdateLeg when the off-site half ends, on every path CT/cmd/controller/main.go:1641-1643. CUSTOMER.
  2. Each night after the off-site leg; a box with no off-site tier runs it at W+105 min AR/07-backup-architecture.md:459-465. One step per app per night, switch default ON AR/09-update-architecture.md:2806-2817.
  3. No new step at or after W+5h: LegDeadline CT/internal/stacks/unattended.go:212-216, UpdateLegStopOffsetMin CT/internal/backupwindow/backupwindow.go:27; check at CT/internal/stacks/unattended.go:374-375. Grows with the number of apps that have an update.
  4. Missed night: no catch-up by design CT/cmd/controller/main.go:1660-1664; the rest "waits for the next night" CT/internal/stacks/unattended.go:374-375. Controller restarted mid-leg: the rest of the night is lost (R-686) AR/09-update-architecture.md:2815-2817.
  5. A passing refusal (busy, updating) is retried once after 2 min, RetryWait CT/internal/stacks/unattended.go:167-171, rule at AR/09-update-architecture.md:2882-2883. The whole-guest gate waits for the leg CT/internal/quiesce/quiesce.go:271-274.
  6. Deadline is a wall-clock time in time.Local when no location is given CT/internal/stacks/unattended.go:212-216, while the scheduler uses Europe/Budapest CT/internal/scheduler/scheduler.go:17-27 (candidate: two sources of zone). A late daily fire over 60 min is skipped, so no noon updates AR/07-backup-architecture.md:551-559.
  7. NOT FOUND in this read for who is told when the leg does not run (grep update-leg gave the log line CT/internal/stacks/unattended.go:374-375 only).
  8. TEST TestChainUpdateLeg_EveryPath CT/cmd/controller/update_leg_wiring_test.go:19; TEST TestLegDeadlineAndGateShareW5h CT/internal/quiesce/d20_update_leg_test.go:78.

8. Off-site integrity check at 06:00

  1. Daily job "offsite-integrity" CT/cmd/controller/main.go:1724 checks the remote store's data; owner: controller. CUSTOMER.
  2. Fires daily at 06:00 (fixed, no setting for the hour) but works only when due: last good check older than 7 days, defaultIntegrityMaxAgeDays CT/internal/backup/offbox_integrity.go:81, IntegrityDue CT/internal/backup/offbox_integrity.go:221. Zone as block 1.
  3. Limit 30 min, integrityCheckTimeout CT/internal/backup/offbox_integrity.go:63; a notice when slower than 5 min CT/internal/backup/offbox_integrity.go:78. Grows with store size and line speed.
  4. Box off at 06:00: caught up at the next 06:00 by due-ness CT/internal/backup/offbox_integrity.go:212-220; also run after a catch-up CT/cmd/controller/main.go:1665-1668.
  5. Skipped when "a backup or restore is already running" CT/internal/backup/offbox_integrity.go:298; then it waits for the next 06:00 (source comment CT/cmd/controller/main.go:1710-1723).
  6. Due-ness compares wall-clock stamps CT/internal/backup/offbox_integrity.go:231; a never-checked or unreadable stamp counts as due CT/internal/backup/offbox_integrity.go:223-229. Slot behaviour as block 24.
  7. NOT FOUND in this read (the job body CT/cmd/controller/main.go:1724-1729 was read; the notify path inside offbox_integrity.go was not).
  8. SOURCE CT/internal/backup/offbox_integrity.go:212-232; TEST TestR1189d_TheChecksRunAfterTheCatchUpLegs CT/internal/nightchain/r1189d_test.go:13.

9. Off-site proof restore at 05:30

  1. Daily job "offsite-proof" CT/cmd/controller/main.go:1746 restores one due snapshot to prove it opens, ProveOffboxUnit CT/internal/backup/offbox_proof.go:140; owner: controller. CUSTOMER.
  2. Daily at 05:30, fixed, no setting CT/cmd/controller/main.go:1746. One app per night in rotation (comment CT/internal/backup/offbox_proof.go:265). Zone as block 1.
  3. Limit 10 min, proofRestoreTimeout CT/internal/backup/offbox_proof.go:80. Grows with the size of the one unit.
  4. Box on for the backup legs but off at 05:30: "that day's proof is not made up" CT/cmd/controller/main.go:1660-1664. Made up only together with a missed backup leg CT/cmd/controller/main.go:1665-1668.
  5. Skipped when "a backup or restore is already running" CT/internal/backup/offbox_proof.go:149. With W = 02:30 the whole-guest gate is open from 04:30 AR/09-update-architecture.md:2751-2757, so 05:30 can fall inside it (candidate).
  6. As block 24.
  7. NOT FOUND in this read (grep Notify near CT/cmd/controller/main.go:1746-1749, 0 hits there).
  8. SOURCE CT/cmd/controller/main.go:1660-1664; TEST TestC5_TheWholeGuestBackupDoesNotWaitForTheChecks CT/internal/nightchain/r1189d_test.go:51.

10. Hub report every 15 minutes (plus push on change and hanging wait)

  1. Job "hub-report" CT/cmd/controller/main.go:1835 sends the box state to the hub; owner: controller. The hub's answer carries the version floor and config CT/cmd/controller/main.go:1233-1290. CUSTOMER and OPERATOR.
  2. Every PushInterval, default "15m" CT/internal/config/config.go:416, fallback CT/cmd/controller/main.go:1831-1834. Also 5 s after start CT/cmd/controller/main.go:1932-1936, and on change with a 15 s floor, triggerMinInterval CT/internal/report/trigger.go:30. No time zone.
  3. HTTP limit 30 s CT/internal/report/pusher.go:85; 3 tries, 5 s apart CT/internal/report/pusher.go:114-117. The wait connection holds up to 300 s CT/internal/report/waiter.go:35.
  4. A failed push is not queued: "next cycle reconciles" CT/internal/report/trigger.go:98. The hub notices silence (hub side, not read here).
  5. A report still running is skipped CT/internal/scheduler/scheduler.go:354-364. Bursts are merged after a 2 s quiet window CT/internal/report/trigger.go:27.
  6. Monotonic ticker CT/internal/scheduler/scheduler.go:281-298; a wrong wall clock does not change the rhythm, only the stamps inside the report.
  7. Waiter back-off 5 s to 5 min CT/internal/report/waiter.go:36-37. Who is told on the box that pushes fail: NOT FOUND (only LastAttempt is stored CT/internal/report/pusher.go:109-111).
  8. TEST TestTrigger_BurstCoalescesTrailingEdge CT/internal/report/trigger_test.go:114; TEST TestWaiter_FiresOnceOnGenChange CT/internal/report/waiter_test.go:60.

11. Controller self-update: check, floor, nightly auto

  1. CheckForUpdate CT/internal/selfupdate/updater.go:153 looks for a newer controller image; MaybeAutoUpdate CT/internal/selfupdate/updater.go:612 moves a box below the floor. Owner: controller, the agent swaps the image. CUSTOMER and OPERATOR.
  2. Check every CheckInterval, default "6h" CT/internal/config/config.go:417, and 25 s after start CT/cmd/controller/main.go:1981-1989. Floor: after every hub report CT/cmd/controller/main.go:1249-1252. Auto: daily at AutoUpdateTime, default "04:30" CT/internal/config/config.go:419, only if AutoUpdate CT/internal/config/config.go:278.
  3. Registry call limit 15 s CT/internal/selfupdate/updater.go:245. Limit of the swap itself: NOT FOUND in this read (grep time\.(Second|Minute|Hour) in updater.go gave one hit).
  4. No catch-up needed for the floor: it is tried again on each report until done, but one attempt per floor value CT/internal/selfupdate/updater.go:656-661. A failed attempt at a floor is not repeated CT/internal/selfupdate/updater.go:604-606.
  5. updateRunning flag CT/internal/selfupdate/updater.go:520-524; refused while a backup runs CT/internal/selfupdate/updater.go:533-536 or an app update is in flight CT/internal/selfupdate/updater.go:540-544. Default 04:30 equals gate-open time at W = 02:30 (candidate).
  6. Check: monotonic ticker. Auto: daily slot as block 24. Default for AutoUpdate: NOT FOUND in the defaults block (grep AutoUpdate in config.go: only the field CT/internal/config/config.go:278).
  7. Auto-update refused: WARN log only CT/cmd/controller/main.go:1879-1881. A version the floor cannot compare: WARN once CT/internal/selfupdate/updater.go:639.
  8. TEST TestMaybeAutoUpdate_NoFlap CT/internal/selfupdate/floor_test.go:93; TEST TestMaybeAutoUpdate_BelowFloor_UpdatesToFloor CT/internal/selfupdate/floor_test.go:11.

12. Catalog sync (app templates from git)

  1. Syncer.Start CT/internal/sync/sync.go:125 pulls the app catalog; owner: controller; started at controller start. CUSTOMER.
  2. Once at start CT/internal/sync/sync.go:140-143, then every SyncInterval, default "15m" CT/internal/config/config.go:399; a bad value falls back to 15 min CT/internal/sync/sync.go:131-135. No time zone.
  3. Time limit for one sync: NOT FOUND in the lines read (CT/internal/sync/sync.go:124-188; doSync body not read).
  4. Missed sync: the next tick does it. Empty repo address: sync is off with one WARN CT/internal/sync/sync.go:126-129. Who notices a long failure: NOT FOUND.
  5. Manual sync is refused while one runs or within 30 s of the last CT/internal/sync/sync.go:175-185. The periodic tick calls doSync directly without that check CT/internal/sync/sync.go:153-155 (candidate: read doSync before judging).
  6. Monotonic ticker CT/internal/sync/sync.go:146; own ticker, not the shared scheduler, so it has no "still running" skip from CT/internal/scheduler/scheduler.go:354-364.
  7. Log line per sync only CT/internal/sync/sync.go:155.
  8. SOURCE CT/internal/sync/sync.go:124-159.

13. System health check and base-stack self-heal

  1. Job "system-health" CT/cmd/controller/main.go:981-1006 checks disk, memory and base services, and puts the base stack back; owner: controller. CUSTOMER.
  2. Every SystemHealthInterval, default "5m" CT/internal/config/config.go:409, fallback CT/cmd/controller/main.go:977-980; env override CT/internal/config/config.go:453. First run one interval after start CT/internal/scheduler/scheduler.go:281-298.
  3. Time limit: NOT FOUND in the job body CT/cmd/controller/main.go:981-1006.
  4. No catch-up; next tick. A controller that is down checks nothing; the hub's missing reports are the outside sign (block 10).
  5. Skipped while the previous run is still going CT/internal/scheduler/scheduler.go:354-364.
  6. Monotonic ticker; not sensitive to wall clock.
  7. NotifyHealthChange on a change of state CT/cmd/controller/main.go:1004.
  8. SOURCE CT/cmd/controller/main.go:981-1006.

14. Dead-app scan every 30 seconds

  1. Job "deadapp-check" CT/cmd/controller/main.go:1086-1092 finds apps that should run and do not; owner: controller. CUSTOMER.
  2. Every 30 s; silent for 90 s after start, about 15 min after a crash boot CT/cmd/controller/main.go:1087-1088.
  3. Time limit: NOT FOUND (job body CT/cmd/controller/main.go:1086-1143 has no context limit). Grows with app count.
  4. Next tick; no catch-up needed.
  5. Skipped if still running CT/internal/scheduler/scheduler.go:354-364. It reads the whole-guest loop state so a planned stop is not an alarm CT/cmd/controller/main.go:1090.
  6. Boot grace uses time.Now() CT/cmd/controller/main.go:1087; a clock stepped back after start would lengthen the silence (candidate, no test found).
  7. Alert on the page via SetDeadAppAlerts CT/cmd/controller/main.go:1091.
  8. SOURCE CT/cmd/controller/main.go:1086-1092.

15. Disk-fill watch

  1. fillWatcher.Check watches how full the drives are; owner: controller; three starters CT/cmd/controller/main.go:1804-1805. CUSTOMER.
  2. Every 10 min, fillWatchInterval CT/cmd/controller/main.go:2690; daily at 03:30 CT/cmd/controller/main.go:1804; once 90 s after start, fillWatchStartupDelay CT/cmd/controller/main.go:2685. Cadence stated at CT/cmd/controller/main.go:1772.
  3. Time limit: NOT FOUND (the callbacks ignore the context CT/cmd/controller/main.go:1804-1805).
  4. Next 10-minute tick.
  5. The 03:30 slot and the interval job are two jobs with two names CT/cmd/controller/main.go:1804-1805; a lock between them: NOT FOUND in the wiring (the fillwatch package was not read).
  6. Interval is monotonic; the 03:30 slot as block 24.
  7. NOT FOUND in this read (fillwatch package not read).
  8. TEST TestFillWatchRunsOnAnInterval CT/cmd/controller/r363_fillwatch_interval_test.go:17.

16. Drive health check, hourly

  1. Job "disk-health-check" CT/cmd/controller/main.go:2226 asks the agent for drive health; owner: controller reads, agent measures. CUSTOMER.
  2. Every 1 h; reason for hourly, not 6 h: CT/cmd/controller/main.go:2219-2224. Only when the agent channel is configured CT/cmd/controller/main.go:2225.
  3. One fetch measured about 0.8 s CT/cmd/controller/main.go:2219-2224. Limit: NOT FOUND.
  4. Next hour; first run one hour after start CT/internal/scheduler/scheduler.go:281-298.
  5. Skipped if still running CT/internal/scheduler/scheduler.go:354-364.
  6. Monotonic ticker.
  7. NOT FOUND in this read (RunDiskHealthCheck body not read).
  8. SOURCE CT/cmd/controller/main.go:2219-2226.

17. Agent channel health, every 60 seconds

  1. Job "agent-channel-health" CT/cmd/controller/main.go:2289 probes the controller-to-agent channel; owner: controller. OPERATOR.
  2. Every 60 s. A passing fault needs 2 misses in a row, debounceThreshold CT/internal/channelhealth/checker.go:29.
  3. Probe limit 15 s, probeTimeout CT/internal/channelhealth/checker.go:32.
  4. Next minute.
  5. Skipped if still running CT/internal/scheduler/scheduler.go:354-364. An alert marker file survives a restart CT/cmd/controller/main.go:2288.
  6. Monotonic ticker.
  7. Sink = notifier and page alert CT/cmd/controller/main.go:2286.
  8. TEST TestDebounce_TransientBlipSuppressed CT/internal/channelhealth/checker_test.go:119.

18. Held-app report to the hub

  1. Reporter.Tick CT/internal/holdreport/holdreport.go:89 tells the hub which apps are held; owner: controller; job "hold-report" CT/cmd/controller/main.go:1081-1084. OPERATOR.
  2. Looks every minute; each hold is sent again once a day, ResendEvery CT/internal/holdreport/holdreport.go:36, and after each start CT/cmd/controller/main.go:1071-1073.
  3. Instant; reads the hold store.
  4. Next minute.
  5. Skipped if still running CT/internal/scheduler/scheduler.go:354-364.
  6. Tick gets time.Now() CT/cmd/controller/main.go:1082; the daily resend is wall-clock arithmetic (candidate: a clock set back delays the resend).
  7. The hub, by event CT/cmd/controller/main.go:1074.
  8. TEST TestD64_TheHoldReporterTellsTheHubAfterTheClear CT/cmd/controller/holdclear_test.go:333.

19. Abandoned off-site store sweep at 05:10

  1. Daily job "offsite-abandon-sweep" CT/cmd/controller/main.go:1693 runs AbandonSweep CT/internal/backup/offbox_abandon.go:214; owner: controller. CUSTOMER.
  2. Daily at 05:10, fixed. The due date is counted in UTC days CT/internal/backup/offbox_abandon.go:366, the slot in Europe/Budapest CT/internal/scheduler/scheduler.go:17-27.
  3. NOT FOUND (body of AbandonSweep not read).
  4. Box off at 05:10: next day; no catch-up (it is not a ledger leg, see CT/cmd/controller/main.go:1660-1664).
  5. NOT FOUND (grep acquireRunning\(\)|TryLock in offbox_abandon.go, 0 hits).
  6. As block 24.
  7. NOT FOUND in this read.
  8. SOURCE CT/cmd/controller/main.go:1693.

20. Restore-copy sweep and conversion-copy release

  1. SweepUnusedRestoreCopies CT/internal/backup/restore_copy_sweep.go:36 deletes old kept copies; job "restore-copy-sweep" CT/cmd/controller/main.go:1414; job "conversion-copy-release" CT/cmd/controller/main.go:1407. CUSTOMER.
  2. Sweep every 6 h; release every 1 h. Age line: the wiring comment says 14 days CT/cmd/controller/main.go:1412, the constant says 30 days, restoreCopyUnusedAge CT/internal/backup/restore_copy_sweep.go:29 (candidate: comment and constant differ).
  3. NOT FOUND.
  4. Next tick; first run 6 h after start CT/internal/scheduler/scheduler.go:281-298, so a box on for under 6 h a day never sweeps (candidate).
  5. Skipped if still running CT/internal/scheduler/scheduler.go:354-364.
  6. Age is wall-clock arithmetic on now CT/internal/backup/restore_copy_sweep.go:36.
  7. NOT FOUND.
  8. SOURCE CT/internal/backup/restore_copy_sweep.go:29.

21. Session clean-up (dashboard sign-ins)

  1. cleanupSessions CT/internal/web/auth.go:369 removes expired sign-in sessions; owner: controller web server. CUSTOMER.
  2. Every 15 min CT/internal/web/auth.go:370. A session lives 7 days, sessionMaxAge CT/internal/web/auth.go:30. Family sessions 30 days, SessionLife CT/internal/family/family.go:42; share cookie 30 days CT/internal/web/share.go:31.
  3. Instant; grows with session count.
  4. Not run: expired sessions stay in the file. Whether an expired session is refused at use: NOT FOUND in the lines read (CT/internal/web/auth.go:355-395).
  5. sessionsMu lock CT/internal/web/auth.go:377.
  6. Expiry compares the wall clock, now.After(sess.expiresAt) CT/internal/web/auth.go:381; a clock set forward signs everyone out, set back keeps sessions longer (candidate).
  7. Log line only CT/internal/web/auth.go:392.
  8. SOURCE CT/internal/web/auth.go:369-393.

22. Upload and CPU watch, torrent limit rule, line-test hold

  1. startUpwatch CT/cmd/controller/upwatch_wiring.go:136 runs the minute watcher and a 15-minute rule that holds the torrent app for the line test; owner: controller. CUSTOMER.
  2. Watcher every 1 min CT/cmd/controller/upwatch_wiring.go:139; rule every 15 min CT/cmd/controller/upwatch_wiring.go:141. Baseline: 7 days of data, cached 24 h CT/cmd/controller/upwatch_wiring.go:124-127.
  3. Hold call limit 30 s, holdTimeout CT/internal/upwatch/linehold.go:79; drain wait at most 90 s CT/internal/upwatch/linehold.go:216.
  4. A limit left at the test value by a stopped controller is put back at start, RecoverHold CT/cmd/controller/upwatch_wiring.go:137.
  5. Own tickers; no scheduler skip. Lock between the two loops: NOT FOUND in the lines read.
  6. Monotonic tickers CT/internal/upwatch/watch.go:151.
  7. NOT FOUND in this read (emit CT/internal/upwatch/watch.go:382 not followed).
  8. SOURCE CT/cmd/controller/upwatch_wiring.go:134-152.

23. Old image clean-up after start

  1. RunImageRetentionOnceUntilDone CT/internal/stacks/image_retention.go:399 deletes app images no app uses; owner: controller; started about 3 min after start CT/cmd/controller/main.go:2048-2069. CUSTOMER.
  2. Once per start, retried every 2 min up to 30 times CT/cmd/controller/main.go:2056. Also after an update or a remove (test names below).
  3. Up to about 60 min of retries (30 x 2 min) CT/cmd/controller/main.go:2056.
  4. A box that never restarts and never updates runs no sweep (candidate).
  5. No pass while an update runs: TEST TestImageRetention_NoPassWhileAnUpdateRuns CT/internal/stacks/image_retention_test.go:238.
  6. Monotonic waits.
  7. Log only; an unreadable keep set deletes nothing CT/internal/stacks/image_retention.go:221.
  8. TEST TestImageRetention_KeepsRunningAndPreviousDeletesOlder CT/internal/stacks/image_retention_test.go:111.

24. The clock itself: daily slots and interval jobs (merged: scheduler rules for all jobs above)

  1. Daily CT/internal/scheduler/scheduler.go:131-157 and Every CT/internal/scheduler/scheduler.go:105-127 carry every named job; owner: controller. CUSTOMER.
  2. Daily slots are HH:MM in Europe/Budapest, hard-coded; if the zone data cannot load it silently uses UTC CT/internal/scheduler/scheduler.go:17-27. Interval jobs do not run at start: first run after one interval CT/internal/scheduler/scheduler.go:281-298.
  3. No time limit of its own; shutdown waits 30 s CT/internal/scheduler/scheduler.go:264. A panic in a job is caught CT/internal/scheduler/scheduler.go:438-447.
  4. A daily job has no catch-up in the scheduler; a fire over 60 min late is skipped CT/internal/scheduler/scheduler.go:344-347. Only the three backup legs are made up (block 4).
  5. One run per job at a time: "still running" skip CT/internal/scheduler/scheduler.go:354-364. No rule between different jobs here.
  6. Next slot by calendar day, not +24 h CT/internal/scheduler/scheduler.go:499-519. Spring night: 02:30 does not exist; autumn night: 02:30 comes twice. Test for either: NOT FOUND (grep DST|Budapest|SpringForward|Daylight in ^func Test, 0 hits). A clock set back while waiting: the timer still fires on monotonic time.
  7. A skipped late fire is a log line only CT/internal/scheduler/scheduler.go:344-347.
  8. TEST TestDaily_LateFireIsSkipped CT/internal/scheduler/scheduler_test.go:87; TEST TestUpdateDaily_GoroutineConsumesReschedule CT/internal/scheduler/scheduler_test.go:62.

Tiny

  • Status refresh every 10 s CT/cmd/controller/main.go:950.
  • Stack scan every 2 min CT/cmd/controller/main.go:953.
  • Docker socket watch every 15 s and socket users every 5 min CT/cmd/controller/main.go:960-962.
  • Health probes every 10 s CT/cmd/controller/main.go:971.
  • After-unclean-boot repair, every 30 s until done, own TryLock CT/cmd/controller/main.go:1064-1065.
  • Debug ring spill every 30 s CT/cmd/controller/main.go:1148-1150.
  • Off-site credential retry every 5 min CT/cmd/controller/main.go:1375.
  • Backup cache refresh every 5 min CT/cmd/controller/main.go:1398-1402.
  • Metrics sample every 60 s CT/internal/metrics/collector.go:53.
  • Metrics prune daily 04:00, keeps 30 days CT/cmd/controller/main.go:1754.
  • Asset sync daily at SyncSchedule, default "05:00" CT/internal/config/config.go:425.
  • Geo-restriction verify every 6 h CT/cmd/controller/main.go:2102.
  • Setup-gate loop every 20 s CT/cmd/controller/main.go:2045.
  • Busy marker written every 15 s CT/internal/busymark/busymark.go:29.
  • Startup report: 5 s after start CT/cmd/controller/main.go:1932-1936.
  • Stray second-drive copy container retry every minute CT/internal/backup/tier2_copy_lifecycle.go:172.
  • App wait after install: 10 min CT/cmd/controller/main.go:2194.
  • Family sign-in form lives 1 h CT/internal/web/family_gate.go:56.
  • Stale pointers inside the design text: the legs are cited at old main.go lines AR/07-backup-architecture.md:455-457 (candidate, hygiene).

Not found

  • Log rotation: NOT FOUND in controller Go code. Grep rotat|lumberjack|max-size|MaxSizeMB found only the config fields CT/internal/config/config.go:291-292 and their defaults CT/internal/config/config.go:422-423; no reader of them.
  • Share-link expiry sweep: NOT FOUND. Grep expire|expiry|ExpiresAt in internal/web/share*.go gave no sweep; only the 30-day cookie CT/internal/web/share.go:31.
  • A test for the hour-change nights or a named time zone: NOT FOUND (grep DST|Budapest|SpringForward|Daylight over ^func Test in cmd and internal, 0 hits).
  • Who is told when the second-drive copy, the proof, the integrity check, the fill watch or the drive health check fails: not read to the end; see line 7 of blocks 2, 8, 9, 15, 16.
  • Not read at all: CT/internal/bootrecon/bootrecon.go:147, CT/internal/bootstrap/waiting.go:95, CT/internal/offsiteapply/offsiteapply.go:137, CT/internal/web/operator_reboot_notice.go:78, CT/internal/web/handler_export_upload.go:204, CT/internal/web/media_events.go:97, CT/internal/notify/notifier.go:324.