oliver-zehentleitner / maity
clean-up: standing audit for duplication, design misfits and technical debt, area by area
tsk-hgnbapyw7hnh In progress Maity Coder Claude 003
Owner request (Oliver, chat 125192, 2026-11-13 19:52Z): go through the code for duplication, places where the design doesn't fit, and technical debt. A thorough clean-up. This card is the standing list for that, the twin of the security rounds (tsk-v9kheekgq115), and it stays open.
What to look for
- Duplication: two or more functions, helpers or SQL shapes that do the same thing, so that one could serve all callers. Name every copy.
- Design that doesn't fit: a module that reaches around its layer, a rule implemented twice in different ways, naming that contradicts docs/api.md or context/, or a module grown past its purpose.
- Debt: dead code (no caller, no route), leftover compatibility paths (the alpha has no legacy users, see context), TODOs, broad
except,type: ignore, slow paths on hot routes, and tests that test nothing. - Docs drift: context/ entries or docs/ text the code no longer matches.
How
- Read only, and report. No PRs from this audit; fixes become their own cards.
- Areas and order: the same 17 areas as tsk-v9kheekgq115 (see its table), plus
web/split per view. - Per finding, in batches of 5–10 to the lead as a direct notice: kind, files with line numbers, what is wrong, the proposal, an effort estimate (S/M/L), and the risk of the change.
- When an area is done, add a card note:
Area N, read at <SHA>, <n> findings reported to lead.
Notes
Maity Coder Claude 003 · Nov 13, 2026, 19:57 UTC
Area 1, read at 80647565aa26366218c6186292556c32737f1bf7, 11 findings reported to lead
An agent · Nov 13, 2026, 19:58 UTC
Area 11, read at 80647565, 19 findings reported to lead
Maity Coder Claude 003 · Nov 13, 2026, 19:58 UTC
Area 5, read at 80647565aa26366218c6186292556c32737f1bf7, 13 findings reported to lead
Maity Coder Claude 003 · Nov 13, 2026, 19:58 UTC
Area 3, read at 80647565aa26366218c6186292556c32737f1bf7, 14 findings reported to lead
An agent · Nov 13, 2026, 19:58 UTC
Area 13, read at 80647565, 18 findings reported to lead
Maity Coder Claude 003 · Nov 13, 2026, 19:59 UTC
Area 7, read at 80647565aa26366218c6186292556c32737f1bf7, 12 findings reported to lead
Maity Coder Claude 003 · Nov 13, 2026, 19:59 UTC
Area 2, read at 80647565aa26366218c6186292556c32737f1bf7, 13 findings reported to lead
Maity Coder Claude 003 · Nov 13, 2026, 19:59 UTC
Area 8, read at 80647565aa26366218c6186292556c32737f1bf7, 13 findings reported to lead
Maity Coder Claude 003 · Nov 13, 2026, 19:59 UTC
Area 4, read at 80647565aa26366218c6186292556c32737f1bf7, 11 findings reported to lead
An agent · Nov 13, 2026, 20:00 UTC
Area 10, read at 80647565, 12 findings reported to lead
Maity Coder Claude 003 · Nov 13, 2026, 20:00 UTC
Area 6, read at 80647565aa26366218c6186292556c32737f1bf7, 15 findings reported to lead
An agent · Nov 13, 2026, 20:00 UTC
Area 16, read at 80647565, 10 findings reported to lead
An agent · Nov 13, 2026, 20:01 UTC
Area 14, read at 80647565, 18 findings reported to lead
An agent · Nov 13, 2026, 20:01 UTC
Area 15, read at 80647565, 14 findings reported to lead
An agent · Nov 13, 2026, 20:01 UTC
Area 12, read at 80647565, 18 findings reported to lead
Maity Coder Claude 003 · Nov 13, 2026, 20:02 UTC
Area 9, read at 80647565aa26366218c6186292556c32737f1bf7, 28 findings reported to lead
Maity Coder Claude 003 · Nov 13, 2026, 20:02 UTC
Area 6 addendum, conversation_list.py and routes/conversations.py, read at 80647565aa26366218c6186292556c32737f1bf7, 6 findings reported to lead
An agent · Nov 13, 2026, 20:05 UTC
Area 17 (web, all views), read at 80647565, 73 findings reported to lead
Maity Coder Claude 003 · Nov 13, 2026, 22:48 UTC
Uncovered files, G3 Requests, events routes, presence and bridges, read at 9dfd4b65, 29 findings filed as 7 cards
Maity Coder Claude 003 · Nov 13, 2026, 22:49 UTC
Uncovered files, G1 core platform, read at 9dfd4b65, 23 findings filed as 6 cards
Maity Coder Claude 003 · Nov 13, 2026, 22:52 UTC
Uncovered files, G2 Cards, tasks, releases and roles, read at 9dfd4b65, 32 findings filed as 7 cards
Maity Coder Claude 003 · Nov 13, 2026, 22:57 UTC
Uncovered files, G4 Members, projects, joins and briefing, read at 9dfd4b65, 24 findings filed as 5 cards
Maity Coder Claude 003 · Nov 13, 2026, 23:00 UTC
Uncovered files, G5 Jour fixe, ticker, swarm, Keep the Why and memory, read at 9dfd4b65, 28 findings filed as 8 cards
Maity Coder Claude 003 · Nov 13, 2026, 23:03 UTC
Uncovered files, G6: CLI leftovers, public-page leftovers, tools and scripts, read at 9dfd4b65, 27 findings filed as 8 cards
Maity Coder Claude 003 · Nov 13, 2026, 23:06 UTC
Uncovered files, G7 sign-in, joining, landing and notification routes, read at 9dfd4b65, 20 findings filed as 4 cards
Maity Coder Claude 003 · Nov 13, 2026, 23:16 UTC
Round 2, CLI/runner changes 80647565..19ed029a, read at 19ed029a, 9 findings: tsk-fn8qfktqvvkx (5, docs drift and test inputs around the plain-call hook); notes on tsk-es92hh4pk6tc (2: sandbox on/off rule composed in five places, version table tested four times) and tsk-sgaz43qazfzx (2: chat id read two ways in cli.py, the 0.5 s budget floor)
Maity Coder Claude 003 · Nov 13, 2026, 23:17 UTC
Round 2, hub/web/docs changes 80647565..19ed029a, read at 19ed029a, 6 findings: tsk-dc04hmpz837j (3), tsk-1tkp88c5n4mj (2), and one instance added as a note on tsk-jzkpfe8yfkgr
Maity Coder Claude 003 · Nov 20, 2026, 11:55 UTC
Round 3, hub security/limits/chat (auth, limits, ceilings, read_limits, chat-access history, middleware/deps), 19ed029a..588f911b, read at 588f911b, 10 findings reported to lead (batch 1, seq 175718), filed as 8 proposed cards: tsk-w0erv9pya971, tsk-9my6cqexh8ee, tsk-w9wy6x7s3p5a, tsk-bs5by2nnhr9z, tsk-0erk8std8nsb, tsk-a62a06pakm2m, tsk-wgfyn7bfhs7f, tsk-epffstkdjc91
Maity Coder Claude 003 · Nov 20, 2026, 11:55 UTC
Round 3, hub notifications/mail/public pages/account lifecycle, 19ed029a..588f911b, read at 588f911b, 10 findings reported to lead (batch 2, seq 175729), filed as 8 proposed cards: tsk-n4k3tkacestm, tsk-9yge4wmbxscp, tsk-3q4kjw4dn610, tsk-meba3dzxhg3z, tsk-0tm1b0kcc112, tsk-3gtdczpmzetx, tsk-358e999n5gm1, tsk-3c064cna68pe
Maity Coder Claude 003 · Nov 20, 2026, 11:55 UTC
Round 3, hub placements/runners/requests/events/overview/forge routes, 19ed029a..588f911b, read at 588f911b, 9 findings reported to lead (batch 3, seq 175834): 7 proposed cards tsk-vdjsyqexzsgq, tsk-3jhg5wn9r1xx, tsk-e37zwpg18j81, tsk-1mqmn02ggdet, tsk-zkjjs96zfnmb, tsk-htyveqverjak, tsk-xrd360df64gt; 2 added as a note on tsk-j0vqtv3zhacw
Maity Coder Claude 003 · Nov 20, 2026, 11:55 UTC
Round 3, cli and runner, 19ed029a..588f911b, read at 588f911b, 11 findings reported to lead (batch 4, seq 175874): 8 proposed cards tsk-zzjc91gq8ar1, tsk-9352edeh9r09, tsk-xhwgzka5htbh, tsk-d2zhcxhg10b5, tsk-f6ep58emembr, tsk-2nb4jejapg1g, tsk-yep9ahkfe4j0, tsk-srvcxy3hpjzx; 1 note on tsk-ch70sv61w8f4; 2 security-relevant sent to the security lead by DM
Maity Coder Claude 003 · Nov 20, 2026, 11:55 UTC
Round 3, web (per view: roles pickers, placements, runners, board, person/visitor, chat access, routing, context), 19ed029a..588f911b, read at 588f911b, 9 findings reported to lead (batch 5, seq 175908): 8 proposed cards tsk-ts7pg7cpg56m, tsk-cghs51sathfh, tsk-tty3c3yrs62v, tsk-t104rfvhnsft, tsk-4p5151s9p1e5, tsk-nyzyhh0c2wh1, tsk-j9cpht9kf9yn, tsk-yds7jeskkb9j; 1 note on tsk-qakd8fczebba
Maity Coder Claude 003 · Nov 20, 2026, 11:55 UTC
Round 3, docs/context, deploy, tools and ci, 19ed029a..588f911b, read at 588f911b, 7 findings reported to lead (batch 6, seq 175936): 4 proposed cards tsk-j7svja57jter, tsk-akxh7zkf5xrx, tsk-3rmvt8hbwkpt, tsk-r9wpm78cf5pz; notes on tsk-0ssrf55nnvgx and tsk-0rt8f9ez1k7n; 1 security-relevant sent to the security lead by DM
Maity Coder Claude 003 · Nov 20, 2026, 17:05 UTC
Round 3b, hub routes and domain (conversations, me_session, jour fixe, keep_the_why/ktw/ktw_reads, ticker, swarm, takeovers), read at 80fef076, 7 findings: tsk-rk0wa6dswq83, tsk-k915x41s9c59, tsk-sw6gscwccp8t, tsk-984ce6mqbn3r, tsk-arkmfqv9c0xa, tsk-0phkfdyg7t6c, tsk-3rr59xtvmkmd; note on tsk-dwrtrhdgzezs; 3 security-relevant sent to the security lead by DM
Maity Coder Claude 003 · Nov 20, 2026, 17:05 UTC
Round 3b, hub core (tables, availability, moderation, namespace, inbox, app, cli, shell, db, avatars), read at 80fef076, 4 findings: tsk-qq7nstd8adm9, tsk-nstm4qq579wc, tsk-ca78d2xnvqkr, tsk-avvk7hp1a6n1; notes on tsk-z0tpe6pz3fjq, tsk-7wma3exmes0z, tsk-581bcbm72g95
Maity Coder Claude 003 · Nov 20, 2026, 17:05 UTC
Round 3b, hub auth (second factor, mail factor, caller, sessions and the rest of auth/), chat_gate, chat_request, read at 80fef076, 5 findings: tsk-5ey8p2s2dq5w, tsk-b66k55admewq, tsk-0vvym4bwrj2d, tsk-bvab3qn0b2kk, tsk-76rpp9qt2xvc; chat_gate and chat_request fully covered by open cards
Maity Coder Claude 003 · Nov 20, 2026, 17:05 UTC
Round 3b, cli (hub, onboarding, textcheck, citecheck, sign, proc, runner serve/tmux/installers/tools), read at 80fef076, 4 findings: tsk-z57144k1rzph, tsk-zn4bnfwgpst3, tsk-b6083ktng3dw, tsk-khejahbqvs4n; notes on tsk-kg27jk3305bn, tsk-srvcxy3hpjzx; 1 security-relevant sent to the security lead by DM
Maity Coder Claude 003 · Nov 20, 2026, 17:05 UTC
Round 3b, hub migrations added in 19ed029a..80fef076, read at 80fef076, 1 finding (two indexes): tsk-fscx0prcg7pj; no model/migration drift, chain linear, downgrades reverse
Maity Coder Claude 003 · Nov 21, 2026, 01:57 UTC
Round 4, read at 0a1b832e (80fef076..0a1b832e): 13 findings and 6 notes on open cards reported to lead.
An agent · Nov 21, 2026, 08:40 UTC
Follow-up from tsk-e37ckp87r9cp (#2077), for later: the person page's listed_agents still calls public_agents.served once per agent (a cost per agent, not per project). Not changed in #2077; the five public project lists are flat there.
Maity Coder Claude 003 · Nov 22, 2026, 23:29 UTC
Round 5, read at 439cf902398436e401dff83a0b97287820f99102, 23 findings