Disclosure: This message was prepared from my dictated comments, with AI assistance for editing and translation into English.
Hello everyone, In a critical environment, where accurate, current information is essential, I do not see room for an approach that silently presents old data as if it were current. In my view, that is a design flaw: UPS monitoring and shutdown decisions depend on trustworthy information about the actual state of the equipment. Using stale values without making their status clear undermines the user's confidence in the information being received. That information must be as faithful as possible to reality, including the fact that the driver can no longer communicate with the device or obtain fresh data. For example, a UPS may have lost mains power while the software is still reporting an old online status. If the monitoring daemon is acting on outdated information, it may be unable to do what it was designed to do: shut down the protected equipment when necessary. For that reason, I think detecting communication problems and attempting reconnection is the better approach. The driver should be capable of detecting disconnections and a lack of fresh data, attempting recovery, and reporting the situation transparently to the user. It must not leave a communication failure looking like a healthy, up-to-date reading. Regarding AI, I believe its use is inevitable. The real question is how we use it. I often describe two kinds of programmers: those who tell the AI to press the correct button, and those who tell it to press every button to discover which one is correct. What I would like to see in this community is the former approach: a developer who understands the problem and directs, checks, and takes responsibility for the work, rather than relying on blind trial and error. We should not accept driver contributions produced through vibe coding by someone who lacks even a basic understanding of the device's protocol and behaviour. I am hardly in a position to claim that everything must begin with complete documentation. I developed my own driver through inference, experimentation, and educated guesswork because the manufacturer provided no protocol documentation. However, I know the behaviour of these devices well, having used them for more than twenty years. AI helped me identify some issues outside my normal test environment, but that did not remove my responsibility for the result. My approach has always been: the AI implements something, I inspect it, and then I make adjustments with or without its help, depending on the complexity. I test again and repeat the cycle. I believe this is a sound approach; if I am mistaken, I would genuinely welcome help from colleagues in understanding how to improve it. On the question of stale information, however, it does not meet the needs of my environment. Current information is crucial, and making the necessary efforts to obtain it is fundamental. I cannot rely on erroneous or outdated telemetry, because it compromises the operation, especially at remote sites where knowing whether the equipment is actually online or unreachable is essential. Of course, there are many nuances, including communication methods, device types, and update schedules, as others have already pointed out. I therefore think each driver should have an approach appropriate to the equipment it supports. In particular, I would recommend an explicit per-driver option to disable the use of stale cached data. In that mode, the information must be fresh; if fresh data cannot be obtained, the driver must clearly report that failure instead of presenting an old value as a current measurement. I mean disabling the use of stale values, not disabling the indication of their age or the reporting of a communication failure. That is my perspective, based on the operational requirements I have to meet. Best regards, Lucas Willian Bocchi _______________________________________________ Nut-upsdev mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev
