heading: data-product-asset-registry

text:
# data-product-asset-registry

- Repo URL: http://192.168.1.4:3000/qianliyun/data-product-asset-registry
- Git remote URL: http://192.168.1.4:3000/qianliyun/data-product-asset-registry.git
- Local path: /Users/bot1/AI Work/02_projects/active/data-product-asset-registry
- Machine/Profile: bot1/it
- Owner/Requester: user
- Task type: product-asset-registry / data / ops
- Status: active
- Last updated: 2026-05-27T13:18:46Z
- Latest commit: fc47f29 chore: use https token push for gitea
- Related bots/profiles: it, future product/design/operations robots

title: data-product-asset-registry


heading: Purpose

text:
## Purpose
轻量产品资产总表项目：用 NAS PostgreSQL 独立 schema `product_assets` 维护产品资产与当前名、正式名、ERP/淘宝/天猫/抖音 ID、metadata、NAS 文件夹路径的对应关系。机器人先查总表得到 `asset_id` 和 `nas_folder_path`，再到对应 NAS 产品文件夹检索图片/源文件/视频/详情页素材。

title: data-product-asset-registry


heading: Current authoritative description

text:
## Current authoritative description
The repo root `REPO_DESCRIPTION.md` is the source of truth for detailed evolving state.

title: data-product-asset-registry


heading: Current implementation snapshot

text:
## Current implementation snapshot
- Local repo initialized and pushed to self-hosted Gitea/lumi_soul.
- Local Git `origin` now uses HTTPS instead of SSH to avoid changing existing Gitea/OpenSSH service permissions.
- Pushes use `scripts/git_push_https.py`, which reads `GITEA_TOKEN` from the local profile environment and passes it to git only as a temporary auth header. Tokens are not stored in the repo, mapping, or remote URL.
- NAS PostgreSQL schema initialized: `product_assets.assets`, `product_assets.product_shop_mapping`, `product_assets.asset_event_log`.
- Initial existing NAS product folders seeded as unverified rows: `PA-2026-0001` 杜邦纸钱袋子; `PA-2026-0002` 花瓣杯.
- NAS product asset library root created after user confirmation: `/Users/bot1/Volumes/root_for_ai/04_产品资产库` with `00_待分配_新拍摄`, `00_目录规范与模板`, `2026`, and `99_跨产品项目`.
- Product-folder convention documented in `docs/product_folder_structure.md`: product-related materials, detail pages, listing files, and AI projects should be organized under the corresponding `asset_id` folder.

title: data-product-asset-registry


heading: Current implementation snapshot

text:
ct_folder_structure.md`: product-related materials, detail pages, listing files, and AI projects should be organized under the corresponding `asset_id` folder.
- RAG export is generated locally via `scripts/export_rag_index.py`; exported JSONL is not committed and should not be written to NAS without a separate confirmed indexing workflow.

title: data-product-asset-registry


heading: Safety boundary

text:
## Safety boundary
No secrets, database passwords, NAS credentials, raw product photos, or user source materials are stored in this mapping. NAS material folders remain read-only unless separately confirmed. This mapping file is in the user-authorized Git task mapping folder; other NAS writes still require exact-path confirmation.

title: data-product-asset-registry


heading: Search keywords

text:
## Search keywords
产品资产总表, product asset registry, 产品图, NAS 路径, metadata, ERP ID, 淘宝商品ID, 天猫商品ID, 抖音商品ID, RAG 派生索引, 多店铺维护, 产品资产库, 04_产品资产库, 商品详情页, AI项目, 产品文件夹, Gitea HTTPS token push

title: data-product-asset-registry