HF buckets are created public-by-default with no --private flag and no way to flip after (privacy footgun)
Summary
There's no way to control bucket privacy from the tracecraft flow, and the safe default for a tool that stores internal memory/transcripts should be private. Today you can easily end up with a public bucket holding internal coordination data, and there's no in-tool way to fix it after creation.
What happened
tracecraft init --backend hfhas no--privateflag. When the bucket is created viahuggingface_hub.create_bucket(...)withoutprivate=True, it defaults to public.- There is no
update_bucketinhuggingface_hub(onlycreate_bucket/move_bucket/delete_bucket/bucket_info), so an existing bucket cannot be flipped to private — the only remedy is delete + recreate withprivate=True. - The privacy state isn't surfaced in
initoutput, so it's easy to not notice you're public.
In my run I only caught it because I checked bucket_info manually:
BucketInfo(id='arrmlet/tracecraft-apex', private=False, ...)
and had to delete_bucket + create_bucket(private=True) before pushing anything internal.
Why it matters
tracecraft's whole purpose is storing memory, handoffs, and mirrored session transcripts — frequently internal/proprietary. Public-by-default with no flag and no after-the-fact fix is a real data-exposure footgun. (The transcript mirror is large, too — 144 MB in my case — so a public bucket leaks a lot.)
Suggested fix
- Default HF buckets to private when tracecraft creates them.
- Add a
--private/--publicflag toinit(and to any futurebucket createcommand). - Surface the privacy state in
initoutput, e.g.Backend: HuggingFace Buckets Bucket: arrmlet/x (private). - Since
huggingface_hubhas noupdate_bucket, document the delete+recreate workaround for changing privacy, or add atracecraft bucket set-privatehelper that does it safely (only when empty).
Related
- Pairs with #7 (init not creating the bucket) — both are HF-backend onboarding sharp edges. If init auto-creates the bucket, it should create it private and accept a
--publicopt-out.
Env
- tracecraft-ai 0.2.1, huggingface_hub 1.12.0, HF backend.