webui server.go duplicates the capture intake route as a string literal #1138

Closed
opened 2026-10-27 13:39:10 +00:00 by sam · 0 comments
Owner

internal/webui/server.go:315 mounts the capture-intake bypass route using a duplicated path literal, while the constant lives at internal/infrastructure/captureintake/receiver.go:33. The receiver acknowledges the drift risk in a comment. Fix: reference the constant instead of re-spelling the path. Trivial in itself, but it is the kind of duplication that silently stops matching after a rename. Found 2026-09-22 during the webhook evaluation.

Close reason

Fixed: fcbdd757 (ancestor of current HEAD) mounts the capture intake route from captureintake.Path in internal/webui/server.go instead of a duplicated string constant, verified in-tree; the mount was already covered end to end by existing tests, so a rename on either side fails them.


Imported from beads archie-core-88vb · GitHub #1175 · type task · priority P3 · created 2026-09-21 · closed 2026-09-29

internal/webui/server.go:315 mounts the capture-intake bypass route using a duplicated path literal, while the constant lives at internal/infrastructure/captureintake/receiver.go:33. The receiver acknowledges the drift risk in a comment. Fix: reference the constant instead of re-spelling the path. Trivial in itself, but it is the kind of duplication that silently stops matching after a rename. Found 2026-09-22 during the webhook evaluation. ### Close reason Fixed: fcbdd757 (ancestor of current HEAD) mounts the capture intake route from captureintake.Path in internal/webui/server.go instead of a duplicated string constant, verified in-tree; the mount was already covered end to end by existing tests, so a rename on either side fails them. --- _Imported from beads `archie-core-88vb` · GitHub #1175 · type task · priority P3 · created 2026-09-21 · closed 2026-09-29_
sam added the lowtask labels 2026-10-27 13:39:10 +00:00
sam self-assigned this 2026-10-27 13:39:10 +00:00
sam closed this issue 2026-10-27 13:39:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1138