signal-bot/fake_signal/scenarios
Krzysztof kuhy Rudnicki 14d422295f feat: a word with two meanings gets the one made of steel
!pułapka (and !trap, !sidła, !wnyk, !potrzask, 26 spellings in all) posts a
photograph of the literal device -- a bear trap, a mousetrap, a snare, a fish
weir -- captioned with what Commons says it is.

The pool is 2218 Commons page ids, harvested by tool/gen_traps.py from a
curated seed list and committed. Page ids and not filenames on purpose: a
filename carries photographers' and sitters' names, and one of those
colliding with a label somebody mints from the chat would wedge
check_personal_data.py permanently, over data nobody can edit by hand.
_repo_vocabulary() subtracts aliases.json and nothing else, so it would not
have caught it. An integer cannot carry a name.

Nothing is cached. !papież caches because 267 portraits are a closed set a
group works through; a uniform draw from 2218 warms a cache essentially
never, so this fetches per call the way !kot and !pies do.

What the harvest measured, and now enforces:

- five plausible seed categories do not exist (Snares, Man traps, Hunting
  traps, Wasp traps, Animal trapping). A missing category is an empty answer,
  not an error, so verify_seeds() asks Commons before harvesting and fails
  loudly naming all of them.
- depth three from Category:Fish traps reaches Alfred Sisley's net paintings.
  Depth one, from seeds picked by hand.
- "<thing> in art" categories are paintings: Mousetraps in art put a Robert
  Campin altarpiece in the pool. Pruned by pattern, since Commons mints a new
  one whenever somebody needs it. Booby traps, the Wolfsangel, camera traps
  and animals dying in traps are pruned by name.
- Commons rate-limits hard, so a partial harvest must not be committed
  silently: 429 backs off, and a short pool refuses to write at all.

Descriptions are HTML and sometimes say nothing, so the tags come out, the
Fisheries records' trailing catalogue list is cut, a description naming only
the country falls back to the filename, and the file's own page is always
linked.

!łapka is not an alias: it resolves to !papa at distance two, which
test_nearest.py fails on, and rightly -- the suggestion would be a coin toss.

signal_bot/commons.py is the imageinfo query both Commons commands now share;
portraits.py keeps its behaviour and its tests unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01416TegJ3sa8xL5qGGgrygP
2026-08-31 18:01:27 +02:00
..
cat_command.yaml feat: rewrite the bot so it runs, and gate it like the other repos 2026-08-29 13:05:42 +02:00
chatter_is_silent.yaml feat: a word the bot does not know gets an answer, and gets kept 2026-08-31 16:48:26 +02:00
cooldown_is_per_user.yaml feat: rewrite the bot so it runs, and gate it like the other repos 2026-08-29 13:05:42 +02:00
cooldown.yaml feat: rewrite the bot so it runs, and gate it like the other repos 2026-08-29 13:05:42 +02:00
cyrillic_homoglyph.yaml fix: commands resolve when typed on another alphabet's keyboard 2026-08-30 14:22:43 +02:00
did_you_mean.yaml feat: a word the bot does not know gets an answer, and gets kept 2026-08-31 16:48:26 +02:00
discovers_a_new_group.yaml feat: discover groups from the account, so adding the bot is the whole setup 2026-08-29 15:30:08 +02:00
dog_command.yaml feat: rewrite the bot so it runs, and gate it like the other repos 2026-08-29 13:05:42 +02:00
gecko_command.yaml feat: !gekon posts a research-grade gecko photo 2026-08-29 23:26:40 +02:00
help_command.yaml release: 0.1.4 «Eleuteriusz» — the list of commands lives in the chat now 2026-08-30 21:08:02 +02:00
joins_a_pending_invitation.yaml feat: discover groups from the account, so adding the bot is the whole setup 2026-08-29 15:30:08 +02:00
not_counted.yaml feat: rewrite the bot so it runs, and gate it like the other repos 2026-08-29 13:05:42 +02:00
pack_add_custom.yaml feat: add a photo to the album from the chat, tagged, stripped and verified 2026-08-31 11:20:00 +02:00
pack_add_heic.yaml feat: add a photo to the album from the chat, tagged, stripped and verified 2026-08-31 11:20:00 +02:00
pack_add_no_attachment.yaml feat: add a photo to the album from the chat, tagged, stripped and verified 2026-08-31 11:20:00 +02:00
pack_add_person.yaml feat: add a photo to the album from the chat, tagged, stripped and verified 2026-08-31 11:20:00 +02:00
pack_add_rejected.yaml feat: add a photo to the album from the chat, tagged, stripped and verified 2026-08-31 11:20:00 +02:00
pack_add_scoping.yaml feat: add a photo to the album from the chat, tagged, stripped and verified 2026-08-31 11:20:00 +02:00
pack_add_svg.yaml feat: add a photo to the album from the chat, tagged, stripped and verified 2026-08-31 11:20:00 +02:00
pack_add_video.yaml feat: add a photo to the album from the chat, tagged, stripped and verified 2026-08-31 11:20:00 +02:00
pack_combination.yaml release: 0.2.0 «Urbanus I» — a private photo album, and a tagger for it 2026-08-30 22:35:41 +02:00
pack_command.yaml release: 0.2.0 «Urbanus I» — a private photo album, and a tagger for it 2026-08-30 22:35:41 +02:00
pack_no_photo.yaml release: 0.2.0 «Urbanus I» — a private photo album, and a tagger for it 2026-08-30 22:35:41 +02:00
pack_scoping.yaml release: 0.2.0 «Urbanus I» — a private photo album, and a tagger for it 2026-08-30 22:35:41 +02:00
pack_video.yaml release: 0.2.0 «Urbanus I» — a private photo album, and a tagger for it 2026-08-30 22:35:41 +02:00
per_group_isolation.yaml fix: commit the five modules the last commit only referenced 2026-08-29 15:05:18 +02:00
pope_command.yaml release: 0.0.7 «Telesfor» — !papież, and the bot can test itself 2026-08-30 17:06:25 +02:00
quoted_reply.yaml feat: answer the message that asked, not just the room 2026-08-29 23:01:01 +02:00
scoping.yaml feat: discover groups from the account, so adding the bot is the whole setup 2026-08-29 15:30:08 +02:00
suggest.yaml feat: a word the bot does not know gets an answer, and gets kept 2026-08-31 16:48:26 +02:00
trap_command.yaml feat: a word with two meanings gets the one made of steel 2026-08-31 18:01:27 +02:00
unknown_command_scoping.yaml feat: a word the bot does not know gets an answer, and gets kept 2026-08-31 16:48:26 +02:00
unknown_command.yaml feat: a word the bot does not know gets an answer, and gets kept 2026-08-31 16:48:26 +02:00