Skip to content
Media Discussions0.1.0-alpha.25 GitHub
Browse documentation
DocsImplementation

Media Discussions agent guide

Version 0.1.0-alpha.25. Human interoperability docs · Lexicon JSON index

Use the extensionless guide URLs for browser reading and the .md URLs for Markdown. The discovery index at /llms.txt links directly to the machine-readable resources. Agent discovery index

When a person needs to find a Bluesky account, offer typeahead suggestions and an exact identifier field. Verify identity when the person signs in or changes access.

Use the club’s stable discussion keys for Space posts. Public topic pages can show the opening prompt. Check Space access before reading or writing messages and report when a bounded read may have omitted history. TV club and Space guide

The pilot’s host can edit the public club page title, invitation, and cover independently of the ATProto discussion records. Use spoiler-free public share metadata and the uploaded cover’s description when one is present.

  1. Load schemas. Fetch /docs/lexicons. Follow the entries’ href values and verify each returned Lexicon ID matches its entry. The index’s version is the software version. The integer lexicon: 1 is the schema language version.

  2. Resolve identity. On a full app instance, request /api/episodes/73-yards and /api/resolve?url= with the percent-encoded URL https://www.imdb.com/title/tt28704625/. Both calls identify the same episode. Use the returned episode.canonicalUrl for sharing and the DID-based episode AT URI for portable writes. The resolver accepts the original episode.path and registered aliases. An unconfigured catalog can return uri: null. Episode URLs

  3. Read public records. Verify the complete DID-based record address and the expected $type. Catalog publishers can link across repositories. A season’s current series reference must match its episode’s series reference. /api/catalog gives a proposed {records} manifest. Verify actual publication at the PDS. Resolve only with current trusted claims. Keep the original URL and derive authorship from the claim’s repository DID. Keep the origin in an episode-page URL key. A resolving client should surface 409 for competing subjects and 503 for missing current evidence or an unavailable target.

    Use the same published episode check for link resolution, episode mappings, and Bluesky submission, review, and display. Select the publisher from the episode’s DID-based address. A browsing catalog is a separate choice. A bundled episode page can stay readable while its mappings and reviewed Bluesky links are withheld.

    /api/catalog?scope=doctor-who returns the additive Doctor Who records. Join it with the original manifest when checking the whole graph. An episode outside a numbered season has no seasonUri or season or episode number in its record. Its episode read view has season: null. The view’s optional referenceSources are provenance links. An official story URL can cover several classic serial parts. Doctor Who coverage and attribution

    /api/catalog?scope=star-trek returns the Star Trek television and web-episode manifest. The franchise directory also links to the separately inventoried films and scripted audio. /api/catalog?scope=bbc returns additive episode mappings for verified BBC PIDs. Optional bbcProgrammes arrays in catalogue views distinguish brand, series, season, story, and exact episode links. An aggregate link can identify a whole serial without identifying its individual parts. The registered same-origin alias /series/widows-bay/seasons/1/episodes/2 remains bound to Lodging through corrections. Use the returned DID-based AT URI as the portable reference and follow published browse links, including /catalog/show/{show}/season/key/{rkey} for seasons by record key. The resolver uses permanent bindings for owned URLs and reports competing claims for external URLs. Star Trek coverage and attribution · Evolution policy

    /api/catalog?scope=blade-runner-2099 returns its series, season, and eight episodes. Browse shows at /shows, franchises at /franchises/{key}, and seasons at /shows/{show}/seasons/{number}. A published share path is assigned to the episode’s record key. Preserve that assignment and keep accepting older links. Blade Runner 2099 sources

    /api/catalog?scope=television-fixtures returns the Battlestar Galactica, Detective Conan, Power Rangers and Simpsons test slices. Keep production runs, remakes, and the parts of a multipart work independently addressable. A missing season can be valid even when a source supplies a series-wide episode number. Consult the source notes for work, edition, adaptation, and cross-franchise relationships whose meaning the television Lexicons cannot yet carry. Fixture scope and sources

  4. Attach discussion. Validate the reply text, timestamp and exact canonical episode before writing it to the author’s PDS. For a Bluesky mention, use a link facet or external embed. When a moderator opens an episode, the pilot uses a backlink index to suggest eligible posts for review. Recheck the live post and author through the anonymous Bluesky API before queueing, listing, and displaying a suggestion. Attach a matching reply as its own contribution, and check the root separately before displaying root context. When an anonymous check fails, omit the discussion link and its listing metadata. Treat /api/episodes/{slug}.discussions as a current view that can be empty. A mapping correction withdraws the affected reviewed link without assigning it automatically to the new episode.

  5. Keep watch records private. Obtain OAuth permission for the viewer’s watchspace/self and verify ownership and the Personal Space policy before using its watch collection. Derive the key as lowercase hexadecimal SHA-256 of the canonical episode AT URI in UTF-8. Preserve the first mark’s timestamp. Return unwatched only for a missing row verified in an authorized Space. Treat ambiguous missing Spaces or failed clears as unavailable.

  6. Read TV club discussions through Spaces. /clubs/neuromancer and its /releases.ics calendar describe the public schedule. Read or write club posts only through the configured invitation-only Space and an authorized member session. A schedule topic is an identifier within the club. Consult the candidate contracts and host verification instructions. TV club guide

  7. Read episode release events. Browse published records on the signed-out AppView at /events or on the relevant episode page. The episode API’s events array describes the pilot catalog’s manifest, and the Neuromancer club exposes /clubs/neuromancer/events.json and an event link per episode. Resolve the event URI’s DID and read community.lexicon.calendar.event from that publisher’s PDS. For an independent publisher’s event, link the verified episode AT URI in uris. Keep the sourced date and distinguish reported, inferred, and unknown starts. Infer midnight in America/New_York for an announced streaming premiere day without a reported start. Label the inference in the event description. Episode event and app guide

Use local test fixtures for mutations until an operator supplies a test identity and authorizes a network write. Repository setup · AT Protocol Spaces · Lexicon publication

Treat record keys as opaque. Keep the source URI and provenance through joins and exports. Test both reader generations before enabling new writes. Read the migration policy before updating a pinned schema, projecting a new media type, or changing a published catalog export. Lexicon evolution and catalog export · Television cases that could require new Lexicons

Use the one-pass guide to implement the public interface and check it with the downloadable runner. Clients can load the read-only tool definitions and agent skill directly. Independent implementation guide · OpenAPI tools · Agent skill