Filtered to Repository lemonfiber
Read at · spec at b609e87
Every repository's revision read
- brand@bf74488
- integration-home-assistant@a541126
- integration-mcp@931985d
- lemonfiber@5f21980
- lemonfiber-companion@88ffb9f
- lemonfiber-decline@f950d54
- lemonfiber-door@d53ec85
- lemonfiber-media-stack@1699ac3
- lemonfiber-plugins@844e9b6
- lemonfiber-request-gate@d824e39
- lemonfiber-web@94c3343
- plugin-jellyfin@6bd6cdb
- sdk-php@ccb9bd3
- sdk-python@bf267be
- sdk-ts@1d168e8
- spec@b609e87
- tool-lfdev@825ec08
0.18.09 goals
lemonfiber
- G2-R16▲ unmarkedArea GClaim it
A member's surface MUST NOT show a service's name, a domain term, a size, a rate, an address, a version, a stage of the pipeline, or how the stack stands, and MUST say what it says in household words, leading with what the member can do. Where it names the stack it MUST call it the house. A member's surface is any screen drawn for a household member's session on any surface, any notification sent to a member, and any text lemonfiber places where the household asks for things.
- ARCH-R42▲ unmarkedClaim it
Every surface MUST reach behaviour through a single dispatch entry point in lemonfiber-core; a surface MUST NOT orchestrate the core's subsystems directly.
- F14-R14▲ unmarkedArea FClaim it
media.serve, indexer.search, library.curate and identity.source, each of which a second plugin fills, MUST each be proved by a substitute other than its first-party filler, run end to end against its pinned upstream through install, its first-run flow, conformance, substitution, the features the capability serves, and undo, library.curate by one curator substituting another for a media type both declare; a substitute whose upstream is claimed against an account outside the house MUST also be run unclaimed through install and the reading that names it Open.
- F14-R15▲ unmarkedArea FClaim it
Every first-party plugin MUST live in a repository of its own, every first-party adapter MUST be built on the adapter kit, and every image a first-party plugin builds MUST be published from every commit on its repository's main and by the release train (OPS-R90).
- ARCH-R366▲ unmarkedClaim it
A media.serve declaration's question addressed to its adapter MUST be GET /lemonfiber/media.serve/v1/may?space={space}&item={item}, each of its byte paths MUST then name space, the kind of id its item is, as lowercase letters, digits and -, at most 32 characters, and a byte path of a declaration whose question goes to the upstream MUST NOT name one, a declaration breaking either refused at install; the filler of stream.guard MUST send it about each item a request on a byte path names, with that byte path's space, carrying the member's token as the declaration presents it to the upstream and no other credential; and the adapter MUST answer it without the plugin's key, only by asking its upstream with that token and never with a credential of its own, MUST answer 404 to a space it does not know, MUST answer 401 where no token came or its upstream refuses it, MUST answer 502 where its upstream cannot be asked, which the filler of stream.guard MUST treat as a refusal, and MUST answer nothing else on that path.
- ARCH-R423▲ unmarkedClaim it
request.intake@1's ask MUST take its member as optional, and a filler MUST file an ask carrying none as the account its own credential is, the request service's owner. Where the core asks for a member the request service holds no account for (ARCH-R379), it MUST ask carrying none, MUST keep the request's id beside that member's id at the media server, MUST count each such request toward that member's allowance as an ask of their own, and MUST refuse, filing nothing and in the household's own words, an ask for a member whose asks wait for approval.
- ARCH-R424▲ unmarkedClaim it
An identity source request.intake's establish and configure_identity carry MUST carry members_sign_in, whether the request service's own page offers members sign-in through the identity source; where Plex is the media server the core MUST carry it false in managed and true in owner and fronted (D1-R28). A filler MUST set its page to offer that sign-in exactly where it is true, on every call, and MUST still sign its owner in with the credential carried where it is false.
- C6-R28▲ unmarkedArea CClaim it
In fronted mode the request service MUST resolve plex.tv and discover.provider.plex.tv to the request gate and MUST trust a certificate authority the core makes for the gate alone, whose certificate names only those hosts. The gate MUST answer the plex.tv calls ADR-0057 lists from what the core applies to it, giving each account it answers the address <plex.tv id>@plex.invalid and never one the household holds, MUST forward to plex.tv only /users/account.json presenting a token that is not its own, unchanged, as its only egress, and MUST refuse every other call unforwarded.
- D1-R28▲ unmarkedArea DClaim it
Where Plex is the media server, a household member MUST be able to ask for a title through lemonfiber's own surfaces, which ask the request service on their behalf, in every mode; the request service's own page MUST offer members Plex sign-in only in owner and fronted.
lemonfiber-door
- ARCH-R366▲ unmarkedClaim it
A media.serve declaration's question addressed to its adapter MUST be GET /lemonfiber/media.serve/v1/may?space={space}&item={item}, each of its byte paths MUST then name space, the kind of id its item is, as lowercase letters, digits and -, at most 32 characters, and a byte path of a declaration whose question goes to the upstream MUST NOT name one, a declaration breaking either refused at install; the filler of stream.guard MUST send it about each item a request on a byte path names, with that byte path's space, carrying the member's token as the declaration presents it to the upstream and no other credential; and the adapter MUST answer it without the plugin's key, only by asking its upstream with that token and never with a credential of its own, MUST answer 404 to a space it does not know, MUST answer 401 where no token came or its upstream refuses it, MUST answer 502 where its upstream cannot be asked, which the filler of stream.guard MUST treat as a refusal, and MUST answer nothing else on that path.
lemonfiber-request-gate
- C6-R28▲ unmarkedArea CClaim it
In fronted mode the request service MUST resolve plex.tv and discover.provider.plex.tv to the request gate and MUST trust a certificate authority the core makes for the gate alone, whose certificate names only those hosts. The gate MUST answer the plex.tv calls ADR-0057 lists from what the core applies to it, giving each account it answers the address <plex.tv id>@plex.invalid and never one the household holds, MUST forward to plex.tv only /users/account.json presenting a token that is not its own, unchanged, as its only egress, and MUST refuse every other call unforwarded.
plugin-jellyfin
0.19.07 goals
lemonfiber
- D4-R22▲ unmarkedArea DClaim it
A member MUST be able to search for and ask for music and books wherever the stack runs a curator speaking music.curate or books.curate (ARCH-R395, ARCH-R396), through the same search and ask as series and films (D4-R15, D4-R16, D4-R20): the core MUST answer the search from each such curator's own lookup and send the ask to that curator, journalling it, and request.intake MUST NOT carry either. A music title MUST be an album or an artist, and a book title a book, an author or a series, each named by the curator's reference for it, its name, its artist or author, its year and its cover, and said to be here, already asked for, or may be asked for.
- D4-R23▲ unmarkedArea DClaim it
An ask for a whole artist, a whole author or a series MUST wait for the operator's approval whatever the household's policy; an ask for an album or a book MUST follow the policy as an ask for a series or a film does (D7-R16).
- D7-R16▲ unmarkedArea DClaim it
The household's policy, limits, approval, declines and expiry MUST hold for an ask for music or books (D4-R22) as for one for a series or a film: an album or a book MUST count as one request against the member's limit, an ask waiting for approval MUST be on the same household list among the others, and approving, declining and expiring MUST act on it; the core MUST keep these asks itself, since no request service holds them. A request is named on that list by a reference that never names two: one the request service holds by its own number (42), one the core keeps as music-<n> or books-<n>, and approving and declining MUST take that reference.
- D9-R15▲ unmarkedArea DClaim it
The trace, queue health and the stuck list MUST follow an album and a book as they follow a film or a series: by the curator that files music or books, with the album or the book as the item, named by its own title in queue health, searched for where the trace is asked to search, and looked for in the media server's music or book library, and an artist's or author's other titles never standing in for it.
- ARCH-R414▲ unmarkedClaim it
The pipeline reads of library.curate@1 (library, find, history, queue, parts and stuck), its queue (downloading, unqueue, grab and search), titles and probe_releases, and has_item of media.serve@1, MUST take the media kinds music and books beside tv and movies, at a minor of each, their conformance cases for music and books added at that minor, while request, lookup and add keep tv and movies alone; a curator of music MUST answer them with the album as the item and a curator of books with the book, each by its own reference, and MUST refuse a kind it does not file as unsupported; a media server MUST answer has_item for music or books from its own music or book library, and MAY answer it unsupported for them until its adapter's own train lands; the core MUST open every curator filing music or books for the trace, queue health and the stuck list as it opens one filing films or series, and MUST read a media server's unsupported there as not known rather than not held.
- ARCH-R415▲ unmarkedClaim it
From minor 1, indexer.pull@1 MUST declare pull, asking the curator to read its indexers again from every aggregator it already reads from, at once; seed MUST ask pull of a curator it finds already reading from the aggregator with a key, so an indexer added to the aggregator after the curator was told about it reaches the curator on the next seed, MUST NOT ask it in a rehearsal, MUST report the pair wired as before where the curator answers unsupported, and MUST report it unreached in the curator's own words where pull fails otherwise.
- ARCH-R279▲ unmarkedClaim it
The artefact MUST publish the notification kinds as a closed union, problem, completion, update, backup, request, member and ready, and every alert event MUST carry exactly one as notification beside its event kind: problem for every condition at warning or worse, at onset and resolution; completion for work the operator asked for finishing; update for an update to the stack or lemonfiber being available; backup for a backup that succeeded; request for a household member's request newly waiting on the operator; member for an invitation accepted, declined or lapsed; and ready for something a household member asked for arriving. request and member alerts MUST ride the operator's stream and wake only endpoints an operator session registered, and MUST NOT reach a member. A ready alert MUST be addressed to the one member whose ask arrived, MUST be raised once per ask, when the house first holds any of it, and MUST ride that member's stream and reach only that member's own push endpoints and the back-ends that member chose; its words MUST be the household's ("Something you asked for is ready"), naming the title on the member's own stream and naming no title, service or state of the stack on a push endpoint or a back-end; it MUST NOT be raised for an ask whose request service already tells that member it is available (B5-R1). The core MUST raise no other alert addressed to a household member.