[RFC] Material library (tracking)
Author: LING-6150Created Sep 29, 2026Updated Sep 29, 2026
Labelstype:rfcarea:storage
Tracking issue for the RFC in Discussion #1716. Design discussion happens there; this issue tracks the phased work.
Scope
- An owner-scoped material library: folders, Unfiled, a library page opened from the left rail, and
@selection of library materials in the composer. - Materials and their extraction outputs in the asset pool, kept alive by generic
asset_root_refs, with extraction reused across conversations. - One set of library operations shared by the page and the agent, with a result card and server-side undo for each agent change.
Phases
- 1a. Manifest, folders and
asset_root_refs; lifecycle checks against both reference tables; claims; remove theDROP COLUMN asset_idbootstrap statement - 1b. Owner-level extraction state and the per-owner extraction cache
- 1c. Backfill / migration of existing uploads, verified against a database with old sessions and new uploads side by side
- 2. Shared operations and agent tools, library
scope, attach-by-id, source-id reads, limits, course copy-on-use, empty-folder deletion - 3. Per-call result cards and server-side undo records with revision checks
- 4. Library page, left-rail entry, folder links, composer picker and
@, limit display, refresh (polling and focus)
Related: #1153, #1669, Discussion #1657, #1658
Source: THU-MAIC/OpenMAIC