renames: smallwebwaf -> sww, one daemon is called "rproxy", the other daemon should be renamed "discriminator" #218

Open
opened 2026-11-07 03:52:06 +01:00 by sneak · 3 comments
Owner

invocation commands: sww rproxy and sww discriminator.

'smallwebwaf' should appear very few places: documentation, program output (e.g. sww version), URLs (git.eeqj.de/sneak/smallwebwaf). the program name is now sww (cmd/sww) and the two modes are rproxy and discriminator.

gate: the PR for this will not change ANY code or logic or functionality beyond renaming things.

invocation commands: `sww rproxy` and `sww discriminator`. 'smallwebwaf' should appear very few places: documentation, program output (e.g. `sww version`), URLs (git.eeqj.de/sneak/smallwebwaf). the program name is now `sww` (cmd/sww) and the two modes are `rproxy` and `discriminator`. gate: the PR for this will not change ANY code or logic or functionality beyond renaming things.
Author
Owner

@clawbot do this now with deepseek, and have a sonnet review it.

@clawbot do this now with deepseek, and have a sonnet review it.
Collaborator

For the worker (a DeepSeek V4 Pro run, by sneak's order #218 (comment); a Sonnet session reviews it):

Definition of done, one PR into next that renames and changes nothing else (sneak's gate):

  • The program is sww, built from cmd/sww. Its two modes are sww rproxy and sww discriminator. servewaf becomes discriminator everywhere it names that daemon: the package, types, functions, files, log fields, docs and tests.
  • smallwebwaf is left only in the documents, in program output such as sww version, and in URLs and the Go module path. Elsewhere a name containing it takes the sww form, for example the variable that picks the image's mode.
  • Environment variable names otherwise stay as they are: the naming audit (#192) renames them.
  • The image keeps its registry name (git.eeqj.de/sneak/smallwebwaf).
  • No logic changes. Every test passes with only renamed identifiers and strings.
  • make check passes. Run go test only on the packages you touch while you work.

When the PR is up, label it needs-review and do not merge it.

Model: opus-5-5

**For the worker** (a DeepSeek V4 Pro run, by sneak's order https://git.eeqj.de/sneak/smallwebwaf/issues/218#issuecomment-170253; a Sonnet session reviews it): **Definition of done**, one PR into `next` that renames and changes nothing else (sneak's gate): - The program is `sww`, built from `cmd/sww`. Its two modes are `sww rproxy` and `sww discriminator`. `servewaf` becomes `discriminator` everywhere it names that daemon: the package, types, functions, files, log fields, docs and tests. - `smallwebwaf` is left only in the documents, in program output such as `sww version`, and in URLs and the Go module path. Elsewhere a name containing it takes the `sww` form, for example the variable that picks the image's mode. - Environment variable names otherwise stay as they are: the naming audit (https://git.eeqj.de/sneak/smallwebwaf/issues/192) renames them. - The image keeps its registry name (`git.eeqj.de/sneak/smallwebwaf`). - No logic changes. Every test passes with only renamed identifiers and strings. - `make check` passes. Run `go test` only on the packages you touch while you work. When the PR is up, label it `needs-review` and do not merge it. Model: opus-5-5
clawbot self-assigned this 2026-11-07 04:06:55 +01:00
Collaborator

Built the rename as one commit on a branch, in pull request
#221

  • servewaf is discriminator everywhere: the package, its types and functions,
    files, the discriminator_line log field, and its docs and tests.
  • smallwebwaf is left only where the directive allows it; everywhere else it
    takes the sww form: the program binary (cmd/sww, bin/sww, /usr/local/bin/sww),
    the internal/sww package, the sww_ metric prefix, the X-Sww-* headers, the
    /_sww/ admin endpoints, the SWW_COMMAND setting, the OS user, and the state
    and rules directories. The image's registry name and tag stay smallwebwaf.

make check passes; no logic changes.

Model: deepseek-v4-pro

Built the rename as one commit on a branch, in pull request https://git.eeqj.de/sneak/smallwebwaf/pulls/221 - servewaf is discriminator everywhere: the package, its types and functions, files, the discriminator_line log field, and its docs and tests. - smallwebwaf is left only where the directive allows it; everywhere else it takes the sww form: the program binary (cmd/sww, bin/sww, /usr/local/bin/sww), the internal/sww package, the sww_ metric prefix, the X-Sww-* headers, the /_sww/ admin endpoints, the SWW_COMMAND setting, the OS user, and the state and rules directories. The image's registry name and tag stay smallwebwaf. make check passes; no logic changes. Model: deepseek-v4-pro
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/smallwebwaf#218