Moves only, in internal/waf. No identifier is renamed and no code line changes.
waf.go now holds what was in proxy.go (package comment, endpoint paths, Params, CoreRuleSetInspector, Server, newHandler, handler), plus New, ServeHTTP and the constants they use.
proxy.go is gone.
New files:
questionsandreports.go: how waf answers rproxy's questions and takes its reports (answerQuestion, readQuestion, allow, deny, handleReport, finishWith and their helpers).
activeban.go: the heuristic active_ban.
Lines that changed and are not moves:
Imports.
The file comment of bans.go. It named both active_ban and banMaker, so it is split between bans.go and activeban.go.
Disclosures:
ServeHTTP stays in waf.go with handler, its type. It is not in questionsandreports.go.
The endpoint paths and CoreRuleSetInspector stay in waf.go, where proxy.go's content went.
proxy_test.go, the tests' shared helpers, keeps its name. The issue moves no test file.
Model: opus-5-5
Closes https://git.eeqj.de/sneak/smallwebwaf/issues/435.
Moves only, in `internal/waf`. No identifier is renamed and no code line changes.
- `waf.go` now holds what was in `proxy.go` (package comment, endpoint paths, `Params`, `CoreRuleSetInspector`, `Server`, `newHandler`, `handler`), plus `New`, `ServeHTTP` and the constants they use.
- `proxy.go` is gone.
New files:
- `questionsandreports.go`: how waf answers rproxy's questions and takes its reports (`answerQuestion`, `readQuestion`, `allow`, `deny`, `handleReport`, `finishWith` and their helpers).
- `activeban.go`: the heuristic `active_ban`.
Lines that changed and are not moves:
- Imports.
- The file comment of `bans.go`. It named both `active_ban` and `banMaker`, so it is split between `bans.go` and `activeban.go`.
Disclosures:
- `ServeHTTP` stays in `waf.go` with `handler`, its type. It is not in `questionsandreports.go`.
- The endpoint paths and `CoreRuleSetInspector` stay in `waf.go`, where `proxy.go`'s content went.
- `proxy_test.go`, the tests' shared helpers, keeps its name. The issue moves no test file.
Model: opus-5-5
internal/waf/questionsandreports.go, refusedWhateverTheAnswer: it decides whether a request skips the wait for GeoJS, and its only caller is startLookUp in lookup.go. It is not question or report code, so the new file's name does not say all the file holds, which is what #435 sets out to fix, and the PR body's description of the file does not cover it. Acceptable: refusedWhateverTheAnswer moved unchanged to lookup.go, beside startLookUp.
Deviation: finding 1 is fixed on the branch in 02f9134a05bb108ffba68fac5a1d5ee3b93b3029. The verdict is posted because my brief requires one.
Judgement call: the architecture review leaves new file names to sneak; I took the issue's requirement, that the PR body lists them, as the bar for questionsandreports.go and activeban.go.
Model: opus-5-5
Verdict: FAIL
Head: f9cb1f9c6b3cdba8ba56878b86e1e4632a709de4
1. `internal/waf/questionsandreports.go`, `refusedWhateverTheAnswer`: it decides whether a request skips the wait for GeoJS, and its only caller is `startLookUp` in `lookup.go`. It is not question or report code, so the new file's name does not say all the file holds, which is what https://git.eeqj.de/sneak/smallwebwaf/issues/435 sets out to fix, and the PR body's description of the file does not cover it. Acceptable: `refusedWhateverTheAnswer` moved unchanged to `lookup.go`, beside `startLookUp`.
- Deviation: finding 1 is fixed on the branch in `02f9134a05bb108ffba68fac5a1d5ee3b93b3029`. The verdict is posted because my brief requires one.
- Judgement call: the architecture review leaves new file names to sneak; I took the issue's requirement, that the PR body lists them, as the bar for `questionsandreports.go` and `activeban.go`.
Model: opus-5-5
The change moves code only and meets the definition of done in #435.
Judgement call: the architecture review leaves new file names to sneak; I took the issue's requirement, that the PR body lists questionsandreports.go and activeban.go, as the bar.
Model: opus-5-5
Verdict: PASS
Head: 02f9134a05bb108ffba68fac5a1d5ee3b93b3029
The change moves code only and meets the definition of done in https://git.eeqj.de/sneak/smallwebwaf/issues/435.
- Judgement call: the architecture review leaves new file names to sneak; I took the issue's requirement, that the PR body lists `questionsandreports.go` and `activeban.go`, as the bar.
Model: opus-5-5
Rebased onto next at 1b9ca94; head is now ef88f309fc562b787716c65abc7e9476f20531a8.
Conflict: the change for #437 gave Server private fields in proxy.go. Those fields are now in waf.go, where Server moved. waf.go keeps next's context import for Shutdown.
Apart from that, the code is the passed head 02f9134.
Deviation: the review's follow-up commit is squashed into the issue commit, per AGENTS.md's one commit per issue. The commit message now names the move of refusedWhateverTheAnswer to lookup.go.
Model: opus-5-5
Rebased onto `next` at `1b9ca94`; head is now `ef88f309fc562b787716c65abc7e9476f20531a8`.
- Conflict: the change for https://git.eeqj.de/sneak/smallwebwaf/issues/437 gave `Server` private fields in `proxy.go`. Those fields are now in `waf.go`, where `Server` moved. `waf.go` keeps `next`'s `context` import for `Shutdown`.
- Apart from that, the code is the passed head `02f9134`.
- Deviation: the review's follow-up commit is squashed into the issue commit, per `AGENTS.md`'s one commit per issue. The commit message now names the move of `refusedWhateverTheAnswer` to `lookup.go`.
Model: opus-5-5
The change only moves code, rebases cleanly onto next at 5d5e954, and meets the definition of done in #435.
Model: opus-5-5
Verdict: PASS
Head: ef88f309fc562b787716c65abc7e9476f20531a8
The change only moves code, rebases cleanly onto `next` at `5d5e954`, and meets the definition of done in https://git.eeqj.de/sneak/smallwebwaf/issues/435.
Model: opus-5-5
Moves only. waf.go now holds the package comment, Params, Server, New,
newHandler, handler and ServeHTTP. The code that answers questions and
takes reports moves to questionsandreports.go, and activeBan to
activeban.go. refusedWhateverTheAnswer moves to lookup.go, beside its
only caller. proxy.go is gone. The only changed lines are imports and
the file comment of bans.go, split between it and activeban.go.
Model: opus-5-5
Rebased onto next at 4774518; head is now eca8f4d8cc21e0e7b9c6acfe3ebb1a34680ce7c8.
Conflict: the change for #443 edited newHandler in proxy.go. Its edits are now in waf.go, where newHandler moved.
Conflict: the same change edited activeBan and the file comment in bans.go. activeBan's new status line and doc comment are now in activeban.go, whose file comment names SWW_WAF_BAN_RESPONSE as next's did.
next deletes rq.banResponse from bans.go; it stays deleted.
No review finding is open: the newest review passed ef88f30, and no failed check or rework instruction follows it.
Model: opus-5-5
Rebased onto `next` at `4774518`; head is now `eca8f4d8cc21e0e7b9c6acfe3ebb1a34680ce7c8`.
- Conflict: the change for https://git.eeqj.de/sneak/smallwebwaf/issues/443 edited `newHandler` in `proxy.go`. Its edits are now in `waf.go`, where `newHandler` moved.
- Conflict: the same change edited `activeBan` and the file comment in `bans.go`. `activeBan`'s new status line and doc comment are now in `activeban.go`, whose file comment names `SWW_WAF_BAN_RESPONSE` as `next`'s did.
- `next` deletes `rq.banResponse` from `bans.go`; it stays deleted.
- No review finding is open: the newest review passed `ef88f30`, and no failed check or rework instruction follows it.
Model: opus-5-5
The change only moves code, sits on current next, and meets the definition of done in #435.
Judgement call: the architecture review says new file names are sneak's to approve; I took the issue's bar, that the PR body names and describes questionsandreports.go and activeban.go, as met.
Model: opus-5-5
Verdict: PASS
Head: eca8f4d8cc21e0e7b9c6acfe3ebb1a34680ce7c8
The change only moves code, sits on current `next`, and meets the definition of done in https://git.eeqj.de/sneak/smallwebwaf/issues/435.
- Judgement call: the architecture review says new file names are sneak's to approve; I took the issue's bar, that the PR body names and describes `questionsandreports.go` and `activeban.go`, as met.
Model: opus-5-5
clawbot
merged commit 493aac02a1 into next2026-11-20 03:26:58 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #435.
Moves only, in
internal/waf. No identifier is renamed and no code line changes.waf.gonow holds what was inproxy.go(package comment, endpoint paths,Params,CoreRuleSetInspector,Server,newHandler,handler), plusNew,ServeHTTPand the constants they use.proxy.gois gone.New files:
questionsandreports.go: how waf answers rproxy's questions and takes its reports (answerQuestion,readQuestion,allow,deny,handleReport,finishWithand their helpers).activeban.go: the heuristicactive_ban.Lines that changed and are not moves:
bans.go. It named bothactive_banandbanMaker, so it is split betweenbans.goandactiveban.go.Disclosures:
ServeHTTPstays inwaf.gowithhandler, its type. It is not inquestionsandreports.go.CoreRuleSetInspectorstay inwaf.go, whereproxy.go's content went.proxy_test.go, the tests' shared helpers, keeps its name. The issue moves no test file.Model: opus-5-5
Verdict: FAIL
Head:
f9cb1f9c6binternal/waf/questionsandreports.go,refusedWhateverTheAnswer: it decides whether a request skips the wait for GeoJS, and its only caller isstartLookUpinlookup.go. It is not question or report code, so the new file's name does not say all the file holds, which is what #435 sets out to fix, and the PR body's description of the file does not cover it. Acceptable:refusedWhateverTheAnswermoved unchanged tolookup.go, besidestartLookUp.02f9134a05bb108ffba68fac5a1d5ee3b93b3029. The verdict is posted because my brief requires one.questionsandreports.goandactiveban.go.Model: opus-5-5
Verdict: PASS
Head:
02f9134a05The change moves code only and meets the definition of done in #435.
questionsandreports.goandactiveban.go, as the bar.Model: opus-5-5
02f9134a05toef88f309fcRebased onto
nextat1b9ca94; head is nowef88f309fc562b787716c65abc7e9476f20531a8.Serverprivate fields inproxy.go. Those fields are now inwaf.go, whereServermoved.waf.gokeepsnext'scontextimport forShutdown.02f9134.AGENTS.md's one commit per issue. The commit message now names the move ofrefusedWhateverTheAnswertolookup.go.Model: opus-5-5
Verdict: PASS
Head:
ef88f309fcThe change only moves code, rebases cleanly onto
nextat5d5e954, and meets the definition of done in #435.Model: opus-5-5
ef88f309fctoeca8f4d8ccRebased onto
nextat4774518; head is noweca8f4d8cc21e0e7b9c6acfe3ebb1a34680ce7c8.newHandlerinproxy.go. Its edits are now inwaf.go, wherenewHandlermoved.activeBanand the file comment inbans.go.activeBan's new status line and doc comment are now inactiveban.go, whose file comment namesSWW_WAF_BAN_RESPONSEasnext's did.nextdeletesrq.banResponsefrombans.go; it stays deleted.ef88f30, and no failed check or rework instruction follows it.Model: opus-5-5
Verdict: PASS
Head:
eca8f4d8ccThe change only moves code, sits on current
next, and meets the definition of done in #435.questionsandreports.goandactiveban.go, as met.Model: opus-5-5