Skip to main content

ARSGATE Media Center (ArsMedia) — Technical Specification v1.0

Endpoint and boundary​

PROD is https://media.arsgate.com. dev.panel hosts Services → ArsMedia for infrastructure configuration; media.arsgate.com hosts the product and editorial administration.

Architecture​

Separate web/PWA, API, PostgreSQL catalog, search index, queue, ingest workers, metadata workers, media analyzer, playback resolver, Jellyfin/media engine, FFmpeg, Disc Resolver/Streaming Gateway, Authentik OIDC integration and Storage Fabric client.

Content model​

Content/Work, Edition/Performance/Version, Recording, MediaAsset, Person, Ensemble, Creator, Series, Movie, ExternalSource, SourceCitation, Note, Playlist, PlaylistItem, UserPreference, WatchEvent, IngestItem and MetadataFieldProvenance.

MediaAsset stores storage_resource_id plus relative_path; vendor-specific paths are never canonical identity.

Ingest lifecycle​

DISCOVERED → PROBING → MATCHING → METADATA_FETCH → PENDING_REVIEW/DRAFT_SAVED → READY_FOR_APPROVAL → APPROVED → PUBLISHING → PUBLISHED, with actionable exception states for identification, metadata, ambiguity, corruption, quarantine and publish failure.

Every step is durable, idempotent and resumable. Autosave is server-side. Bulk actions only operate on eligible items and blocking warnings prevent publication.

Publication transaction​

Validate → destination → asset move/commit → DB transaction → NFO/artwork → search refresh → media-engine refresh → verification. Failure retains durable context for safe resume.

Replacement/versioning​

IMPORT, ADD_VERSION, REPLACE and RETIRE are distinct. New assets are verified before ACTIVE; old assets become SUPERSEDED and are physically removed only under retention policy. Catalog identity, metadata, playlists, notes and history remain stable.

Metadata​

Configurable provider registry with priority and field ownership. Field provenance stores source, fetch/edit timestamps and manual override. Approved overrides outrank provider refresh; conflicting refresh becomes a suggestion.

Identity and permissions​

Authentik OIDC supplies identity/group claims. ARSGATE governs trusted device and service reachability. ArsMedia applies application RBAC and content policy.

MediaGroup binds to an Authentik group and enforces 0..1 active Media Group Admin. Manageable users must already belong to that group.

Playback​

Resolver path: content policy → semantic target → preferred/default performance/version → exact MediaAsset → Storage Fabric health → Direct Play/Remux/Direct Stream/Transcode. Playback and protected artwork re-check authorization server-side.

Disc images​

Requirement: preserve ISO masters where practical and stream on demand through a Disc Resolver. DVD/Blu-ray support is validated per format/protection/codec. Segment cache is temporary; permanent MKV duplication is not required.

Search and resilience​

Search spans content, works, people, performances, creators, series and playlists with server-side policy filtering. Failure of one storage backend affects only its assets.

Audit​

Sensitive editorial actions record actor, before/after, reason, timestamp and approval state. Physical deletion is distinct from retire/soft-delete.