Monorepo for Aesthetic.Computer
aesthetic.computer
1# Old Tools Archive
2
3This directory contains one-off diagnostic and fix scripts that were created to resolve specific issues. They are kept for historical reference and potential future use but are not part of regular operations.
4
5## Scripts in This Directory
6
7### `test-user-creation-flow.mjs`
8**Created:** October 14, 2025
9**Purpose:** Backfill missing user records and ATProto accounts
10**Used to fix:** 5 users affected by index conflict issue
11**Keep because:** May be useful if similar backfill needed in future
12
13### `diagnose-user-code-generation.mjs`
14**Created:** October 14, 2025
15**Purpose:** Test user code generation and identify index conflicts
16**Used to find:** MongoDB `code_1` index naming conflict
17**Keep because:** Good diagnostic tool for user code generation issues
18
19### `check-code-1-user.mjs`
20**Created:** October 14, 2025
21**Purpose:** Verify index naming vs user code data
22**Used to confirm:** No user had code "code_1", it was just an index name
23**Keep because:** Educational reference for MongoDB index naming
24
25## When to Use These Tools
26
27⚠️ **These are NOT for regular operations!**
28
29Only use these if:
30- Similar user creation issues arise
31- Need to backfill historical data
32- Debugging MongoDB index problems
33- Learning how the system works
34
35## Regular Operations Use These Instead
36
37For day-to-day monitoring, use the tools in `/at/scripts/`:
38- `audit-user-creation-sync.mjs` - Check user sync status
39- `check-auth0-webhook-config.mjs` - Verify configuration
40- `query-auth0-signups.mjs` - Query Auth0 users
41
42See `/at/TOOLS-README.md` for details.
43
44---
45
46**Archive Date:** October 14, 2025
47**Related Issue:** MongoDB index conflict in user-code.mjs
48**Resolution:** Fixed in commit with updated `ensureUserCodeIndex()`