#!/usr/bin/env julia # # Stage-5 phase-B runner (model/DESIGN_clustering.md ยง9): the single-owner, # periodic/cron process that sweeps `binary/`, folds new files into the durable # format catalog by sequential CRP-predictive assignment, and (re)writes # promotion nominations. Run it single-threaded on a schedule โ€” it is the ONLY # writer of the catalog, so no locking is needed. # # julia --project=. bin/cluster_sweep.jl # incremental live sweep # julia --project=. bin/cluster_sweep.jl --compact # offline Gibbs (seed / recompact) # # On a fresh catalog (nothing processed yet) the incremental sweep would send # every file to background โ€” there are no clusters to match โ€” so the first run # auto-promotes to a compaction pass to seed the catalog. Configure via the # FS_CLUSTER_* / FS_NOMINATED_DIR env vars (see src/config.jl). using FileServer FileServer.cluster_sweep_cli(ARGS)