Spaces:
Runtime error
Runtime error
Aster Vale commited on
Commit Β·
437ff7c
1
Parent(s): 6395a5c
docs: add Q&A audit log for 2026-03-28 session
Browse files
signal-loom-ai-AUDIT-LOG-2026-03-28.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Signal Loom AI β Session Q&A Audit Log
|
| 2 |
+
## Date: 2026-03-28 | Session: Main (Aster Vale / Traves Brady)
|
| 3 |
+
## Session ID: 71a84ded-b60c-4a65-8d03-1e56a81d0483
|
| 4 |
+
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
## Q&A LOG
|
| 8 |
+
|
| 9 |
+
### Q: What is the root cause of "Job still queued" error despite job being completed?
|
| 10 |
+
**A:** `result_json` was being returned by `row_to_job_payload()` but is NOT a field in `Job.__init__`. When `Job(**payload)` was called in `_get_job_or_404()`, Python raised `TypeError: unexpected keyword argument 'result_json'`. This exception was silently caught somewhere, causing the code to fall through to the in-memory `jobs` dict β which still had the job with `status=QUEUED`.
|
| 11 |
+
|
| 12 |
+
**Files Fixed:**
|
| 13 |
+
- `routers/transcribe.py`: `_get_job_or_404()` now uses `inspect.signature()` to filter payload keys to only those accepted by `Job.__init__`
|
| 14 |
+
- `core/job_store.py`: `row_to_job_payload()` already did not include `result_json` β confirmed clean
|
| 15 |
+
|
| 16 |
+
**Verified Working:** 3 completed jobs (78f38eb5, 0134f260, c0a061f6) all return correct transcript results.
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
### Q: Why did the worker exit after processing exactly one job?
|
| 21 |
+
**A:** Root cause was `yaml` module was imported inside a function (`process_job`) but `import yaml` at the module level was missing. Worker crashed with `NameError: name 'yaml' is not defined` on the second job's processing. Additionally, the `jobs._persist()` was writing to the `jobs` table (which uses truncated 13-char IDs) instead of `job_registry` (which uses full UUIDs), causing silent failures.
|
| 22 |
+
|
| 23 |
+
**Files Fixed:**
|
| 24 |
+
- `run_local_worker.py`: Added `import yaml` at module level
|
| 25 |
+
- `run_local_worker.py`: Completion block now writes directly to `job_store.update_job()` (SQLite with full UUIDs) AND to `jobs.update()` (in-memory) as dual-write strategy
|
| 26 |
+
- `jobs/__init__.py`: `_persist()` now writes to `job_registry` instead of `jobs` table
|
| 27 |
+
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
### Q: Why is YouTube download extremely slow on the Mac Mini?
|
| 31 |
+
**A:** The network from the Mac Mini has poor/no connectivity to YouTube CDN. yt-dlp hangs on metadata fetching for YouTube URLs. This is a network routing issue, not a code bug. Audio file uploads bypass this bottleneck entirely.
|
| 32 |
+
|
| 33 |
+
**Status:** Not resolved. Workaround is to use direct audio file uploads instead of YouTube URLs.
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
### Q: Why did LinkedIn video fail on the HF Space?
|
| 38 |
+
**A:** LinkedIn-hosted videos are not directly downloadable β LinkedIn does not expose a direct media URL (unlike YouTube/TikTok). LinkedIn videos require authentication or a session cookie to access. Hugging Face Spaces run on servers that cannot authenticate to LinkedIn.
|
| 39 |
+
|
| 40 |
+
**Status:** Known limitation. Not a bug in Signal Loom AI. Workaround: download the LinkedIn video locally first, then upload the audio file.
|
| 41 |
+
|
| 42 |
+
---
|
| 43 |
+
|
| 44 |
+
### Q: What is the current state of the distributed pipeline?
|
| 45 |
+
**A:**
|
| 46 |
+
- β
API server: Running on port 18790
|
| 47 |
+
- β
Local worker: Running as background process (PID 47607, since 4:43PM)
|
| 48 |
+
- β
Redis queue: Jobs flowing correctly (9 completed, 0 pending)
|
| 49 |
+
- β
SQLite persistence: Full UUIDs in `jobs` table
|
| 50 |
+
- β
Result API: `/v1/result/{job_id}` returns correct transcripts
|
| 51 |
+
- β
YouTube download: Slow (network issue)
|
| 52 |
+
- π Modal GPU: Needs GitHub OAuth auth (account has $30 credits)
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
### Q: What was discussed about Modal GPU deployment?
|
| 57 |
+
**A:** Traves confirmed the Modal account is set up with $30 in credits. Authentication is required via GitHub OAuth (the Aster-SGLAI GitHub account). Browser relay was used to navigate the OAuth flow, but the GitHub session was not cached in the browser. Traves was asked to run `modal token new` on his Mac Mini terminal to complete the authentication.
|
| 58 |
+
|
| 59 |
+
**Status:** Pending authentication.
|
| 60 |
+
|
| 61 |
+
---
|
| 62 |
+
|
| 63 |
+
### Q: What was the LinkedIn post about?
|
| 64 |
+
**A:** The LinkedIn post (chrischow91) was a Duolingo marketing case study β titled "Let's talk about Duolingo's unhinged marketing #strategy and why it works." It discusses 5 tactics Duolingo uses: (1) Entertain not sell, (2) Localisation done right, (3) Jumping on trends, (4) Building brand personality, (5) Cultural relevance. This was NOT a video about Signal Loom AI β Traves may have been sharing it as a marketing reference/example.
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
|
| 68 |
+
## DECISIONS MADE THIS SESSION
|
| 69 |
+
|
| 70 |
+
1. **Result API bug**: Fixed by filtering `Job.__init__` valid keys in `_get_job_or_404()`
|
| 71 |
+
2. **Worker persistence**: Worker now dual-writes to `job_registry` (SQLite, full UUIDs) AND `JobsManager` (in-memory)
|
| 72 |
+
3. **yaml import**: Added to `run_local_worker.py` module imports
|
| 73 |
+
4. **Modal GPU**: Auth pending β `modal_whisper.py` ready to deploy
|
| 74 |
+
5. **start_worker.sh**: Created shell launcher for worker
|
| 75 |
+
|
| 76 |
+
## FILES CREATED OR MODIFIED THIS SESSION
|
| 77 |
+
|
| 78 |
+
- `/signal-loom-api/routers/transcribe.py` β Result endpoint fix
|
| 79 |
+
- `/signal-loom-api/jobs/__init__.py` β _persist() fix
|
| 80 |
+
- `/signal-loom-api/core/job_store.py` β row_to_job_payload() verified clean
|
| 81 |
+
- `/signal-loom-api/run_local_worker.py` β yaml import + dual-write
|
| 82 |
+
- `/signal-loom-api/start_worker.sh` β worker launcher script (NEW)
|
| 83 |
+
- `/signal-loom-api/com.signalloom.worker.local.plist` β launchd plist (NEW, has issues)
|
| 84 |
+
|
| 85 |
+
## CURRENT STATE
|
| 86 |
+
|
| 87 |
+
- API: http://localhost:18790 β
|
| 88 |
+
- Worker: Background process, waiting for Redis queue jobs β
|
| 89 |
+
- Redis: 9 completed, 0 pending, 0 processing β
|
| 90 |
+
- Modal: Auth required (Traves running `modal token new`) π
|
| 91 |
+
|
| 92 |
+
## COMPLETED TRANSCRIPTIONS (VERIFIED)
|
| 93 |
+
|
| 94 |
+
| Job ID | Source | Segments | Language |
|
| 95 |
+
|--------|--------|----------|----------|
|
| 96 |
+
| 78f38eb5-a5d2-4ef4-8150-8163ea97316b | YouTube (Rick Astley) | 68 | en |
|
| 97 |
+
| 0134f260-cce8-438b-96af-735fd6fed048 | YouTube | 110 | en |
|
| 98 |
+
| c0a061f6-9a65-4e37-b5eb-dae34ac16f1c | YouTube | 124 | en |
|
| 99 |
+
|
| 100 |
+
---
|
| 101 |
+
*Logged: 2026-03-28 17:04 PDT | Aster Vale for Signal Loom AI*
|