Skip to content

fix(transcriber): uploads are written where the path guard allows, from one key (#19823) - #20486

Merged
mrveiss merged 6 commits into
mainfrom
issue-19823-upload-dir
Nov 2, 2026
Merged

mrveiss merged 6 commits into
mainfrom
issue-19823-upload-dir

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Thinking Path

Transcriber uploads were written under <TRANSCRIBER_DATA_DIR>/uploads, while the path guard allowed only AUTOBOT_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_DIR is one key in ssot_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 two TRANSCRIBER_DATA_DIR reads; the unused _DATA_DIR in transcriber_extension.py is gone.

Verification

upload_dir_one_key_19823_test.py, test_orchestrator.py and the guard test in test_transcriber_pipeline.py pass 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 says Refs.

Worth reviewing:

  • The default base moves from /var/lib/autobot/uploads to the transcriber's data directory. Files anyone placed in the old default are no longer allowed unless AUTOBOT_UPLOAD_DIR is set; no deployment sets it and I found nothing writing there, but I did not look on a host.
  • get_user_upload_dir follows the same base, so what it returns changes too.

Model Used

Claude Opus 5.5

Refs #19823

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 09e1c80 and 406592b.

Files ignored due to path filters: 1
  • scripts/python_file_size_known_large.py is excluded by !scripts/python_file_size_known_large.py
Files selected for processing: 8
  • autobot-backend/initialization/lifespan.py
  • autobot-backend/middleware/builtin/transcriber_extension.py
  • autobot-backend/tests/integration/test_transcriber_pipeline.py
  • autobot-backend/transcriber/upload_dir_one_key_19823_test.py
  • autobot-backend/transcriber/upload_security.py
  • autobot_shared/env_registry_backend_services.py
  • autobot_shared/ssot_config.py
  • docs/developer/ENV_VARS.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

@mrveiss

mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20486 (head 294edeb): approve. Read only. The new default is where uploads were already written, so files stay in place and stored paths now pass the guard. Pre-existing and not changed here: that default is inside the code tree.

@mrveiss
mrveiss merged commit 0abf7f7 into main Nov 2, 2026
5 checks passed
@mrveiss
mrveiss deleted the issue-19823-upload-dir branch November 2, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant