Repository navigation
fix(transcriber): uploads are written where the path guard allows, from one key (#19823) - #20486
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 24 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Contributor
Contributor
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
Owner
Author
Open
3 tasks
This was referenced Nov 1, 2026
This was referenced Nov 1, 2026
3 tasks
This was referenced Nov 1, 2026
Merged
Closed
This was referenced Nov 1, 2026
Closed
Closed
This was referenced Nov 2, 2026
Closed
This was referenced Nov 2, 2026
This was referenced Nov 2, 2026
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thinking Path
Transcriber uploads were written under
<TRANSCRIBER_DATA_DIR>/uploads, while the path guard allowed onlyAUTOBOT_UPLOAD_DIR, default/var/lib/autobot/uploads, and no deployment file sets either. By the code, a default install's recordings would all be refused at processing. That effect has not been observed.What Changed
AUTOBOT_UPLOAD_DIRis one key inssot_config, registered in the env registry. Empty, its default, means<TRANSCRIBER_DATA_DIR>/uploads.get_upload_base_dir()is the one resolver: startup writes under it and the guard allows exactly it.transcriber_data_dir()replaces the twoTRANSCRIBER_DATA_DIRreads; the unused_DATA_DIRintranscriber_extension.pyis gone.Verification
upload_dir_one_key_19823_test.py,test_orchestrator.pyand the guard test intest_transcriber_pipeline.pypass locally (15); only these. A fixture in the upload dir passes the guard and one outside is refused. Not run: a real upload on a host, which is the issue's first criterion, so this saysRefs.Worth reviewing:
/var/lib/autobot/uploadsto the transcriber's data directory. Files anyone placed in the old default are no longer allowed unlessAUTOBOT_UPLOAD_DIRis set; no deployment sets it and I found nothing writing there, but I did not look on a host.get_user_upload_dirfollows the same base, so what it returns changes too.Model Used
Claude Opus 5.5
Refs #19823
🤖 Generated with Claude Code