README.md and TODO.md are substantially inaccurate — 14 documented claims contradict the code #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
README.mddescribes an earlier version of NetWatch. Fourteen concrete claims contradict the code onmainatfbfe1df, andTODO.mddescribes a branch state that no longer exists. All eight REPO_POLICIES-required README sections are present, so this is purely about content accuracy.Factually wrong
src/main.js:365method: "GET". Gateway detector likewisesrc/main.js:176. The app's own footer (src/main.js:663) correctly says GET, so the running UI contradicts the README. Line 151 repeats the error.backend/, chi server, zstd report storage, its ownDockerfile.backendand CI step.src/main.js:11updateInterval: 3000. UI default is also 3s (src/main.js:610).src/main.js:16-21:requestTimeout= 2900ms,maxLatency= 2900ms. The 1000ms figure isgraphMaxLatency— the chart Y-axis ceiling, a different constant. The README conflates the two.src/main.js:34-104.src/main.js:63-66) is omitted from the list.storage.googleapis.comentry anywhere insrc/main.js. Entirely phantom.src/main.js:79-103) and plainGoogle(:44) are undocumented.CONFIG: Frozen configuration object"Object.freezeanywhere;src/main.js:1202mutatesCONFIG.updateIntervalat runtime.src/main.js:326-338returns four:healthy,slow,degraded,offline. DEGRADED renders orange, not red; OFFLINE is red.PORTenv var)"nginx.conf:2is a hardcodedlisten 8080;. Noenvsubst, no template, no entrypoint script. The override does not exist.192.168.100.1isLOCAL_CPE, the cable modem (src/main.js:126-127), explicitly upstream of the gateway. The real gateway is auto-detected fromGATEWAY_CANDIDATES(:136-141). Lines 81-84 get this right and contradict lines 154-155.TODO.md.Structural problems
make.README.md:8-24listsyarn install,yarn dev,yarn build,docker build. Zeromakecommands. This contradicts "Always use Makefile targets instead of invoking the underlying tools directly. The Makefile is the single source of truth." The README's own Entrypoints section documents the script layer correctly — Getting Started just ignores it.README.md:159-165has five items; rootTODO.mdhas a different structure and different content.TODO.md:42-43claims.editorconfigand ahooksMakefile target are both missing —hookshas existed atMakefile:34-35for some time, so that line is stale.TODO.mdStatus is wrong. It says "Backend work in flight on feat/reportbuf-storage (dirty: src/main.js) ... backend is new and unmerged." The backend is merged (commitadd5f1f), the working tree is clean, andTODO.md:46-47asks what to do about an untrackedresume.shthat no longer exists.Definition of done
maketargets (make setup,make dev,make check,make docker), with the underlyingyarncommands mentioned only as context if at all.README.md;TODO.mdadditionally carries the Workflow/Status/Next Step/Completed/Future structure this repo uses. Keep both files but make them non-contradictory, and state in the PR how you divided responsibility between them.TODO.mdStatus and Next Step reflect reality: backend merged, tree clean, noresume.sh,hookstarget exists.make fmthas been run and the result is included in the commit. No unformatted markdown.make checkpasses.(closes #N).Implementation requirements
PORToverride for nginx here (item 12); correct the README to describe current behaviour, and note that the missing override is tracked separately.make fmt) before committing.Additional item:
TODO.md's firstFuture Stepsbullet is stale in both halvesSurfaced during the review of PR #35. Adding it here because this issue owns
TODO.mdaccuracy.TODO.mdFuture Stepsbullet 1:> Compliance top-up as one small commit: add .editorconfig and add the hooks target to the Makefile
Both halves are wrong as of PR #35:
.editorconfig— done by PR #35, which moved the org-model file to the repo root.hookstarget — was already wrong before any of this work. The rootMakefilehas hadhooks: @script/install-precommitsince the scripts-to-rule-them-all commit (e45bc57). The bullet has been describing non-existent work for some time.PR #35 deliberately left it alone to avoid manufacturing a conflict with PR #31, which rewrites Status and Next Step. That reasoning was sound for those two sections but does not extend to
Future Steps, which #31 does not touch — so the bullet survived, and it lands here.Add to this issue's definition of done
Future Stepscompliance bullet is deleted (not amended — both halves are complete or were never real).Future Stepsbullets are checked against reality the same way. The existing DoD already covers theresume.shbullet, which refers to a file that no longer exists. Verify each surviving bullet still describes work that is actually outstanding, rather than trusting the list.Note on sequencing: by the time this issue is implemented, PRs #31 and #35 should both have landed and
TODO.mdwill have moved. Re-read the file as it exists then rather than working from the line numbers quoted in this issue's original description.