Skip to content

Revive tent from LibRedirect; stop the slash-strip eating test_url - #16

Merged
19-84 merged 1 commit into
mainfrom
revive-tent
Aug 24, 2026
Merged

19-84 merged 1 commit into
mainfrom
revive-tent

Conversation

@19-84

@19-84 19-84 commented Aug 24, 2026

Copy link
Copy Markdown
Owner

From the backlog audit. Two things, the second one time-sensitive.

1. tent was never dead — its registry host was

forgejo.sny.sh no longer resolves or connects at all, so the source produced an empty list every night and tent sat at 0 instances. I nearly retired the service on that basis; checking a second registry first was the right call.

LibRedirect tracks Tent and is already the discovery source tools/discover.py uses for other services. Pointing at it yields 11 instances, which probe as:

result count notes
clean 200 5 tent.canine.tools, tent.deep-swarm.xyz, tent.nbh.ax, tn.maid.zone, tn.dc09.ru
anti-bot wall 2 bandcamp.lurkmore.com, tent.bloat.cat — runtime check prunes these
dead / rate-limited 4

tent's fallback was https://tent.sny.sh — the same vanished host — so it's replaced with https://tent.canine.tools, which probes clean.

2. The slash-strip was about to eat SearXNG's test_url

apply_update ended with:

sed -i 's/\/"/"/g' services-full.json

That strips a / before any quote in the file, not just at the end of an instance URL. #15 set SearXNG's test_url to "/", so tonight's nightly would have rewritten it to "" — silently undoing that fix and reverting searxng to a degraded check. I only caught it because the tent test diffed the whole file rather than just the service I changed.

Replaced with a jq transform that touches only .instances[] and .fallback.

Validation

Ran the real apply_update and the real tent block in a container against live LibRedirect data, with a deliberately slash-suffixed quetre seeded in to prove the stripping still works:

check result
tent instances 0 → 11
searxng test_url still / ✅
all 22 services' test_urls unchanged
quetre instance trailing slashes 0 remaining ✅
quetre fallback trailing slash stripped ✅
every other service byte-identical

🤖 Generated with Claude Code

https://claude.ai/code/session_017RU5GnqJo2CsjM4zoPX5jv

Tent was not dead -- its registry host was. forgejo.sny.sh no longer resolves
or connects at all, so the source produced an empty list every night and tent
sat at 0 instances. LibRedirect tracks Tent and is already the discovery
source tools/discover.py uses elsewhere, so point at it instead: 11
instances, of which probing finds 5 clean, 2 behind anti-bot walls (the
runtime check prunes those) and the rest dead.

tent's fallback was https://tent.sny.sh -- same vanished host -- so it is
replaced with https://tent.canine.tools, which probes clean.

Separately, and more urgently: apply_update ended with

  sed -i 's/\/"/"/g' services-full.json

which strips a / before ANY quote in the file, not just at the end of an
instance URL. SearXNG's test_url became "/" in the previous change, so the
next nightly run would have rewritten it to "" -- silently undoing that fix.
Replaced with a jq transform that only touches .instances[] and .fallback.

Verified: tent 0 -> 11, searxng test_url still "/", trailing slashes still
stripped from both instance and fallback URLs, every other service and all
22 entries byte-identical.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RU5GnqJo2CsjM4zoPX5jv
@19-84
19-84 merged commit 8ab5726 into main Aug 24, 2026
12 checks passed
@19-84
19-84 deleted the revive-tent branch August 24, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant