Repository navigation
Observability, completed: event tick / boot records wired, fixes, tests, CI, web UI (#16) - #77
Merged
Merged
Conversation
…ests, CI, docs, web UI #74 shipped the event log, notifications and `mr doctor` without their triggers: `mr event tick` was never run and `mr event boot` / `shutdown` were not called. Now: - mr-mon's sampler starts `mr event tick` (detached) when the lease file changed or event.due came; mr-bootlog runs `mr event boot` at start and `mr event shutdown` only when the system goes down. - NTP "synced" marker in /run/mr-clock (clock-save): busybox ntpd never lowers the kernel's maxerror. - Fixes: the AX6000's watchdog boot line is no crash; event numbering continues after a torn last line; per-type limit of 10 events an hour, append-only device list, bursts of new devices in one line; WAN drops during an apply / rollback / scheduled redial are info; secrets are removed before error text is shortened; the background doctor does not turn deliberate settings into events; one background sender per burst. - Doctor: a WAN address inside a LAN subnet is a risk. MCP monitor views: events, doctor. - Web UI: 状态 › 体检与事件 (体检 / 事件 / 通知, test send per channel); overview 问题 / 最近事件. - Tests for events, notifications, doctor; CI with a local webhook, real net hooks, the sampler. - Docs: sys.md, mon.md, MODULES.md, api.md, mcp.md, skill. Closes #16 Claude-Session: https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr
This was referenced Sep 26, 2026
Closed
Cd1s
added a commit
that referenced
this pull request
Sep 26, 2026
- 系统 → router.yaml 原文: the whole file with comments and layout, saved as typed through the normal path (validate, changes, risk, apply, keep / roll back). API: GET config.raw; plan / validate / apply take `yaml` (whole text, <= 1 MiB, strict decoding); API tokens go through the same lock. - Global search (Ctrl-K, "/", the ⌕ button): pages by title and everyday words, devices by name / IP / MAC. - The 问题 / 最近事件 overview cards came with #77; the first-run wizard is #86. Closes #19 Claude-Session: https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
#74 merged the event log, notifications and
mr doctorwithout their triggers. This PR wires them in and finishes the feature.Triggers
mr event tickin the background, only when the DHCP lease file changed or the time stored inevent.duehas come. Every other minute it costs twostat()s.mr-bootlogrunsmr event bootwhen it starts. It runsmr event shutdownonly when the system is going down, so a restart of the service doesn't look like a shutdown./run/mr-clock, written byclock-save. busybox ntpd never lowers the kernel's maxerror, so adjtimex reports "not synchronized" even while the clock is right.Fixes
Added
eventsanddoctor.Why
#16 was closed with its triggers missing and no tests.
Verification
sys.eventsandsys.doctor.sh tools/ci.sh: ALL CHECKS PASSED.mrbinary grows by 128 KiB.Closes #16
https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr