idol-commons / docs /PRODUCTION.md
fffiloni's picture
Fix public ad-shard assets blocked by iOS content filters
5ff85d4 verified
|
Raw History Blame Contribute Delete
5.59 kB
# IDOL Commons — production release
Release date: 2026-11-02. Application: `fffiloni/idol-commons`.
Dataset: `fffiloni/idol-community-assets`.
This release promotes the existing Space, preserving its history, one-instance
ZeroGPU configuration, private encrypted bucket and separate operator secrets.
It does not start a second application against the same private journal.
The former development name is `fffiloni/idol-commons-dev`.
## Publication boundary
- The configured dataset is fixed on the server. Visitors receive neither its
writer credential nor direct repository write access.
- Every public write rechecks the real HF identity; session, origin and CSRF
checks apply to direct API calls as well as the UI. Author fields come from HF.
- A contribution must reference an owned, unexpired, ready generation. Uploaded
PLY/GLB files, source URLs and client paths are not publication inputs.
- PLY validation requires the exact IDOL binary little-endian SH0 layout, matching
counts and byte length, finite values, bounded properties and unit rotations.
The server verifies hashes and rendered PNG previews again before publication.
- Metadata uses strict types, plain text, bounded lengths and enumerated values.
Extra fields and duplicate JSON keys are rejected. Rights and licence consent
must be explicit. A public prompt needs a separate opt-in under terms 1.3.
- Private originals and prompts are not included in public file operations.
Files, notices and canonical catalogue records share one compare-and-swap
commit. Retries reconcile previously committed requests instead of duplicating.
- Authors can modify only their own contributions. Moderator authority is tied
to the verified stable HF subject configured for `fffiloni`, not a display name
supplied by the browser. Moderator edits preserve contributor attribution.
Technical validation does not certify content appropriateness, copyright or
visual quality. Existing reports/quarantine and maintainer review remain the
content-control mechanism. The application does not claim automatic content
moderation or universal abuse prevention.
## Verification
The source baseline is `5d105b338a5bed264594b89593a42653c390534d`.
The full backend suite passed: **353 tests and 39 subtests**. Two intentionally
inapplicable local-storage recovery cases were skipped; their HF-bucket cases
ran. The production build reruns the suite after the release copy and advertised
terms-version updates, plus the existing frontend tests and navigation checks.
Direct live checks refused anonymous publication, reports and moderation,
private-result access, incorrect origins and Gradio upload/file/proxy routes.
No test asset was written to the public dataset. Dataset revision
`1cca7c625d46a459a22ab9eb2ea4b0ebf643aac1` passed schema, manifest/JSONL/metadata
consistency, referenced-size and available LFS-hash checks for all 94 records;
all 94 declared Apache-2.0. This was not a fresh inference run or a byte-by-byte
download of every large PLY.
The release report in `reports/production-release-2026-11-02.json` records the
build checks and repository scan. Release-job logs record the final production
commit, public visibility, runtime health, OAuth callback destination and denied
anonymous API checks. Earlier dated setup notes in DEPLOYMENT and PERSISTENCE
describe history; their then-pending setup gates are not the current status.
Live owner sign-in and voluntary publication were previously confirmed by the
operator. The release audit does not impersonate another HF account or assert
a new authenticated end-to-end publication. Physical-device checks remain
distinct from browser viewport tests.
## Operating limits and recovery
Keep a single application instance. The encrypted bucket is the durable state;
the local directory is a recoverable cache. Do not duplicate this production
Space with its live private storage credentials. Use isolated state and a test
dataset for future development.
Generation never publishes. Private working files expire after 24 hours. Current
limits include 5 publications per account per day, 20 3D generations per signed-in
account per day (3 per anonymous session), 100 3D generation reservations globally
per day, a 10,000-entry catalogue and a 32 MiB public manifest. These limits bound
this launch; they are not a claim of million-object infrastructure.
For an application incident, disable publication with `ENABLE_PUBLICATION=0`
and restore a verified application commit if needed. Keep the encrypted bucket,
encryption key and dataset history intact; never reset state to resolve a write
conflict. Recheck dataset-writer scope, private persistence and `/health` before
re-enabling public writes. Read [DEPLOYMENT.md](DEPLOYMENT.md) for configuration
and [PERSISTENCE-DECISION.md](PERSISTENCE-DECISION.md) for the protocol.
## Public file paths and iOS content blockers (2026-11-05)
Canonical dataset records and file hashes remain unchanged. The public catalogue serves the `ad` shard through `/api/collection-files/{id}/{sha256}/{filename}` because Brave iOS blocks `/assets/ad/*` as advertising. Other shards retain direct Hub URLs. Clients must follow catalogue URLs and verify the recorded bytes and SHA-256 rather than assuming every display URL has the Hub origin. The application only reads current, visible, public records from its configured dataset; source images and private generations are excluded. Downloads have byte, time and concurrency limits plus a bounded memory cache. No GPU inference or asset replacement is involved.