mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-22 16:46:10 -08:00
The stats library now lists each anime once. Grouping is a view over imm_anime rows computed from a cached AniList relation graph; no rows are merged and identity keys are unchanged. - Schema 27: imm_anilist_media + imm_anilist_relations cache every AniList entry reached from the library and all its anime edges. A background refresher walks from owned AniList ids (depth 6, 250 fetches per run, 7-day staleness) through the shared AniList rate limiter; a failed fetch leaves cached rows untouched. - FRANCHISE_RELATION_TYPES (PREQUEL, SEQUEL, PARENT, SIDE_STORY, SUMMARY, COMPILATION, CONTAINS) joins entries; an entry that names the other only through an excluded type (a spin-off's original) vetoes the join. - GET /api/stats/anime/groups returns cards with summed totals, the root entry's title, and parts in release order. Entries without cached relations stay single cards identical to before. - imm_anime.group_override (NULL = AniList, 0 = on its own, positive = join the franchise containing that AniList id) with PUT /api/stats/anime/:id/group and Move to Another Anime / Show On Its Own / Put Back Where AniList Has It on the title page. - SSH sync merges the override last-writer-wins on group_override_updated_at and skips the rebuildable relation cache.
SubMiner Internal Docs
Status: active
Last verified: 2026-05-23
Owner: Kyle Yasuda
Read when: you need internal architecture, workflow, verification, or release guidance
docs/ is the internal system of record for agent and contributor knowledge. Start here, then drill into the smallest doc that fits the task.
Start Here
- Architecture - runtime map, domains, layering rules
- Workflow - planning, execution, verification expectations
- Knowledge Base - how docs are structured, maintained, and audited
- Release Guide - tagged release checklist
Fast Paths
- New feature or refactor: Workflow, then Architecture
- Test/build/release work: Verification, then Release Guide
- Coverage lane selection or LCOV artifact path: Verification
- “What owns this behavior?”: Domains
- “Can these modules depend on each other?”: Layering
- “What doc should exist for this?”: Catalog
Rules
- Treat
docs/as canonical for internal guidance. - Treat
docs-site/as user-facing/public docs. - Keep
AGENTS.mdshort; deep detail belongs here. - Update docs when behavior, architecture, or workflow meaningfully changes.