You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Why promoted: mechanical, anchored, and the face is bigger than filed — re-measured on origin/main @ 50fa376: 106 files under content/docs/ import { ComponentDemo, DemoGrid }, of which 84 have zero ComponentDemo/DemoGrid tag uses (the card estimated ~40) and 22 still use them. content/docs/layout/page-header.mdx:6 verified as a live specimen. The generator-side root cause (scripts/extract-mdx-demos.mjs's import-replacement regex matching only the InteractiveDemo form) is in-scope and is what stops the pile from regrowing.
Acceptance shape carried from the card: per-file judgment, never a blanket sed (22 files genuinely still use the imports); both halves — delete the 84 dead imports AND fix the regex; a sweep-style checklist PR body (one line per file) fits the repo's sweep discipline.
Claim: PM loop round 5 (rolling slot refill)
Session: session_017Qqyix2QcnpUC9XeYVDzx3 · Branch: claude/issue-3788-mdx-unused-demo-imports · Worktree: objectui-issue-3788
File surface: content/docs/**/*.mdx (the measured tagUses=0 set only) + scripts/extract-mdx-demos.mjs import-replacement regex (+ its self-test if one exists). Serial constraints: disjoint from the other four in flight; no code package touched.
Container & model: S, mode:subagent, model: opus
Both of the card's steps are in scope and step 2 is the load-bearing one: per-file removal of genuinely unused imports (⛔ no blanket sed — the card is explicit that a subset still uses ComponentDemo/DemoGrid), and fixing the migration script so the import rewrite keeps the named imports the file still USES instead of only matching the InteractiveDemo spelling — otherwise the next migration wave mints a new batch.
The elegant move here: step 1's cleanup was PRODUCED by step 2's fixed rewriter run subtractively (ensure: []) — the fix generates its own cleanup, so the two halves prove each other instead of being independent edits. Scale re-measured honestly (117 importers: 84 fully dead, 22 pruned to the still-rendered name, 11 clean — the card's ~40 was the underestimate), the reverse-verification arithmetic closes exactly (187 = 81×2 + 3 + 22), and the end-to-end fixture pits the ORIGINAL script (recovered from git) against the FIXED one on the same input — the stale-import miss reproduced, then gone. The script gained its first self-test (18 cases) and its exported signature is now inside the type-gated program (--listFiles-verified, not assumed). The judgment call to NOT add 84 SchemaExample imports (globally provided by mdx-components; adding them would be the same noise inverted) is right and documented where the next reader will look.
Activity
os-zhuang commentedon Aug 9, 2026
Findings-round grading: promoted —
findingremoved,pm:queueadded.origin/main@50fa376: 106 files undercontent/docs/import{ ComponentDemo, DemoGrid }, of which 84 have zeroComponentDemo/DemoGridtag uses (the card estimated ~40) and 22 still use them.content/docs/layout/page-header.mdx:6verified as a live specimen. The generator-side root cause (scripts/extract-mdx-demos.mjs's import-replacement regex matching only theInteractiveDemoform) is in-scope and is what stops the pile from regrowing.page-header的两处文档仍在教非 spec 的description(并声明了组件根本不读的breadcrumbs) #3267 / PR docs(layout): page-header 两处文档按组件实读收敛到 subtitle,删掉不存在的 breadcrumbs #3785 are the discovery context.本评论来自分诊座位 Routine(#5474 试点),不构成认领。
Generated by Claude Code
yinlianghui commentedon Aug 10, 2026
Claim: PM loop round 5 (rolling slot refill)
Session:
session_017Qqyix2QcnpUC9XeYVDzx3· Branch:claude/issue-3788-mdx-unused-demo-imports· Worktree:objectui-issue-3788File surface:
content/docs/**/*.mdx(the measuredtagUses=0set only) +scripts/extract-mdx-demos.mjsimport-replacement regex (+ its self-test if one exists). Serial constraints: disjoint from the other four in flight; no code package touched.Container & model: S,
mode:subagent,model: opusBoth of the card's steps are in scope and step 2 is the load-bearing one: per-file removal of genuinely unused imports (⛔ no blanket sed — the card is explicit that a subset still uses
ComponentDemo/DemoGrid), and fixing the migration script so the import rewrite keeps the named imports the file still USES instead of only matching theInteractiveDemospelling — otherwise the next migration wave mints a new batch.Generated by Claude Code
yinlianghui commentedon Aug 10, 2026
ACCEPT (objectui seat PM, session
session_017Qqyix2QcnpUC9XeYVDzx3, review of record) — PR #4116.The elegant move here: step 1's cleanup was PRODUCED by step 2's fixed rewriter run subtractively (
ensure: []) — the fix generates its own cleanup, so the two halves prove each other instead of being independent edits. Scale re-measured honestly (117 importers: 84 fully dead, 22 pruned to the still-rendered name, 11 clean — the card's ~40 was the underestimate), the reverse-verification arithmetic closes exactly (187 = 81×2 + 3 + 22), and the end-to-end fixture pits the ORIGINAL script (recovered from git) against the FIXED one on the same input — the stale-import miss reproduced, then gone. The script gained its first self-test (18 cases) and its exported signature is now inside the type-gated program (--listFiles-verified, not assumed). The judgment call to NOT add 84SchemaExampleimports (globally provided by mdx-components; adding them would be the same noise inverted) is right and documented where the next reader will look.Flipping ready + auto-merge.
Generated by Claude Code
fix(scripts): rewrite demo imports by usage, and clear the 106 stale …