Thanks for spending time on NetPulse. This is how changes land.
main. Never push to this repository directly.Every pull request runs pr-checks (server build with the embedded agents, tests for both Go modules, frontend build with its type check) and gitleaks. The PR must be green before review.
Run make check before pushing to reproduce pr-checks locally. It installs the frontend dependencies, lints and builds the app, refreshes the embedded SPA, cross-compiles the agent binaries and runs the Go tests for both modules.
The agent binaries are packed with UPX. Both the gate and the workflows build them through scripts/build-agents.sh, which refuses to finish without upx on the path (Debian and Ubuntu package it as upx-ucl) and verifies each binary afterwards. Unpacked agents weigh 7-9 MB, and the updater needs room for the installed build and its replacement at the same time, which a router with a 16 MB flash does not have (#1890). Point UPX_BIN somewhere else if your copy is not on the path.
New server code goes in its own file by domain, next to its test. live.go is wiring only; do not append features to it. This keeps review, conflict resolution and revert easy.
String contracts get constants. Do not match on loose literals; if a value is part of a contract (PeerKind and friends), it gets a constant or a helper.
Every behavior change ships with a test that would fail without it. Real device fixtures and table-driven cases are preferred; no invented readings.
One concern per PR, keep diffs small.
gofmt and go vet clean. Conventional commits (feat:, fix:, refactor:, docs:, ci:), imperative subject, one line.npm run lint and the build's type check are part of CI; keep them clean.Co-authored-by, so your work counts in the contributors graph.Supporting new hardware is a longer-lived commitment than a regular fix, because the maintainer cannot test what they do not own. The bar depends on how new the hardware is.
New family (adapter, protocol, vendor API): ten days of soak.
New model in a family already supported (same adapter, different box): no mandatory soak.
Evidence we ask for, in all cases:
A draft without that evidence can still be shared as an issue (dumps, API notes, a branch link) so someone else with the hardware can pick it up. It just does not land as support.
If you touch agent/, bump agent/VERSION in the same pull request. The release gate fails when agent/ changes without a version bump.
A release is cut deliberately by a maintainer, never as a side effect of merging a pull request. Do not push a tag until the recap below exists and the maintainer has agreed to it.
README.md,
README.es.md, docs/manual.en.md, docs/manual.es.md and CHANGELOG.md.x.Y.0 with a round Y) are reserved for announced
releases with the README, the landing page, the manuals and the memory up to date. They
are never spent on a routine cut.AGENT_VERSION=<version> make check. If agent/ changed, bump
agent/VERSION in the same release.chore(release): <version>, create an annotated tag, push main and
the tag. Wait for the release workflow and verify the assets and their checksums.Do not open a public issue for a vulnerability. Use GitHub private vulnerability reporting instead (see SECURITY.md).