Skip to content

Upstream Tracking — Firefly candidate base, Shirone integration and selective adoption #15

Backlog

Description

@markd3ng

Priority: P1
Project: https://github.com/users/markd3ng/projects/3
Type: Long-lived upstream tracking / research, not automatic synchronization

Current direction — Owner clarification 2026-11-28 (parallel track C)

Firefly is the preferred candidate product/presentation upstream; Shirone is the current product ancestor and future theme integration/override upstream. Formal base selection depends on #36 PoC and #35 audit, not on the completion of existing Shirone Bugfix. Prepare dual-source selective downstream maintenance now. Keep existing upstream/shirone ref; plan exact upstream/firefly mirror (no product commits, no unrelated merges; native Git verify source/tree and branch/deployment triggers before actual publishing; if specific publication concern, retain native remote tracking, do not block other tracks). The five other sources remain reference/dependency remotes. No new mirrors for them required. Track observed, reviewed and individually adopted SHAs; classify retained/optional/removed/replaced/evaluate product capabilities and prevent removed features from returning via targeted existing tests. Record provenance for cherry-pick -x / adapted patches, route shared bugfixes to the originating project, avoid duplicate upstream PRs; pending upstream review never blocks local merge. Review Git migration options preserving current main history and Firefly ancestry without force-push or unrelated bulk merge by default. Compare existing #15 workflow with lean weekly/manual read-only digest; planning only, no new automation or deployment. Maintain one canonical register; keep old roles/status as historical observations. Own Project #3 reconciliation for #35, #36, #15 and #2–#7, leaving active Bugfix status unchanged. Coordinate with A/B through issue links. No product code changes, base switch, feature removal, release, or deployment.

Objective

Maintain a lean, Suntory-owned tracking mechanism for the direct upstream, actually used external repositories, and selected reference projects. Detect meaningful upstream changes, assess relevance to Suntory, prevent duplicate fixes/contributions, and selectively adopt changes through normal PR review.

Initial sources

  • LyraVoid/Shirone — direct upstream; product source baseline.
  • LyraVoid/Shirone-Content — related content-template reference.
  • yCENzh/shirones — currently pinned external packaging/validation pipeline.
  • saicaca/fuwari — historical upstream/reference; not a direct merge source.
  • matsuzaka-yuki/Mizuki — active reference (original LyraVoid/Mizuki archived); master.
  • CuteLeaf/Firefly — active reference; master.
  • markd3ng/KIRARI — active reference; main.

Canonical working register (created in this setup): Upstream tracking analysis.

Source tracking (current policy)

Keep upstream/shirone as the exact direct-upstream mirror. Track the other six sources via named Git remotes, exact remote commit/tree IDs and upstream permalinks in the existing register; fetch and compare relevant changes on demand. Independent forks are optional when needed for contributions. Additional public mirror branches are NOT required and must not block bugfixes. Retain license/NOTICE obligations for any actual redistribution, and check workflow safety only if publishing a new mirror. No synthetic snapshots, unrelated-history merges, automatic product sync or force updates.

Acceptance criteria

  • Register exact repository identity, relationship, default branch, license/provenance, observed/reviewed/adopted revisions independently, tracked capabilities and last review.
  • Check changes since last reviewed revision, not just release notes or latest tag. Identify security/correctness, compatibility, feature, engineering and irrelevant changes; record adopt/evaluate/skip/defer/already-fixed decisions with evidence.
  • Match incoming changes to existing audit findings, R1–R6, and outgoing upstream PRs; reuse work items and avoid duplicate patches.
  • New reference projects require a concrete product reason and verified canonical repository/license. Do not treat reference projects as merge sources or copy code contrary to project rules.
  • For adoption, use clean product branches, tests, CI and final-head CodeRabbit review before merge; no automatic source sync, dependency pin bump, release or deploy.
  • Propose a weekly and milestone-triggered review cadence. Start with the single register; assess automation only when necessary. No new service, bot or scheduled workflow is authorized by this setup.
  • Store findings, analysis, evidence and adoption reports on audit-and-analysis per project-rules §13. Track actionable work in existing Project R2 Consolidate Content Schema Design #3. Dependency version automation remains with existing dependency management.

Bugfix-first execution (Owner clarification 2026-11-28)

Current phase is baseline bugfix, not architecture or mirror expansion. For each independently fixable defect: verify, fix and test, open a Suntory PR, obtain required CI and CodeRabbit review on final HEAD, resolve actionable threads, merge into Suntory, and submit a focused upstream PR for shared fixes (or link the existing/equivalent fix). Upstream maintainers control upstream merges; pending review does not block local work. No additional Owner approval per ordinary bugfix. No release or production deployment.

Status

A live Git readback confirmed that all seven upstream default branches match their local remote-tracking refs. The existing upstream/shirone mirror matches the upstream commit and tree. The other six sources are tracked via native Git remotes; additional public mirrors are not required under the revised Owner policy. See the published register and evidence index for exact upstream permalinks, license findings, and mirror decisions.

Source Local ref
shirone refs/remotes/shirone/main
shirone-content refs/remotes/shirone-content/main
shirones refs/remotes/shirones/main
fuwari refs/remotes/fuwari/main
mizuki refs/remotes/mizuki/master
firefly refs/remotes/firefly/master
kirari refs/remotes/kirari/main

F-96 remains external under #12 with R4 relevance under #5. The pinned packaging validator has the same tree as observed HEAD. An isolated Astro startup probe reproduced the readiness failure and confirmed that foreground mode passed the readiness check.

The maintainer request is open at yCENzh/shirones#14. It records the foreground-mode control and asks for the preferred patch route. The full package pipeline remains unverified by the focused probe. Redistribution is unresolved, and the pin remains 4291a59d63b3aa3e4b9a5e954c9b518598573724.

Review manually each week and before integration, release, or architecture milestones. Check upstream before shared remediation fixes and contributions. The read-only digest proposal remains in REVIEW pending demonstrated maintenance cost and owner approval. Project #3 tracks this open issue as In Progress.

Milestone — baseline remediation round (2026-11-28)

Finding(s) Upstream PR Local merge
F-31, F-32, F-33 #193 e2c893a51c12646be4012ddd1b78bfde1884a6c4
F-38 #194 5ff645321967057f941450ba34af58b4e7fefca0
F-55, F-56, F-99 #195 e3b7693f40f9e46876de6b4a5a7a19c4dfdc3169
F-97 #196 a0b8d1db03a38eb0baae9febd0aafab2aa0c51de
F-98 #197 bda2de2fc413135b749e02c1848c23955ec2bddb
F-23 #198 d4d90ed7f8458dd14a909a2ba63f6f8a1a0005b0
F-95 #199 11b78c149c8677d3b83ca0658edae8ffd440d2e1
F-21 #200 61eb570b0a19dac8db1ad4987f38cb18935ec643
F-96 external, yCENzh/shirones#14 no local change

Baseline remediation report · final-state evidence. Register digest stays REVIEW; no numeric threshold is authorized.

Activity

  1. markd3ng commented on Nov 28, 2026

    @markd3ng
    OwnerAuthor

    Stage 0 milestone review · 2026-11-28 (Beijing)

    The manual ref review took 20 seconds elapsed (07:01:41–07:02:01 UTC). It fetched the seven remote HEAD identities, matched them to their local tracking refs, checked the destination mirror refs and open Shirone PRs, and compared the packaging pin to the observed packaging tree. The 20 seconds cover this observation window. They exclude the earlier Stage 0 implementation and CI work.

    • Observed. All seven SHAs matched the published baseline register. Exact revisions
    • Mirrored. Only upstream/shirone exists, still at 2a91f32510384f7c26dfa5984ab47721a836ecf2. The six other publication blockers remain recorded in the register.
    • Reviewed. Direct Shirone has no intervening revision and the open PR list was empty. Packaging tip 4a7fffb37c8acf384754c383d6e5ddee2dd7594c still has the same tree as the CI pin. The F-96 maintainer issue remains open with no comments. F-96 upstream issue
    • Adopted/Pinned. CI still uses packaging revision 4291a59d63b3aa3e4b9a5e954c9b518598573724. Its full validation passed on the Stage 0 merge. No adoption or pin change occurred at this review. Main CI

    Stage 0 contribution. F-31–F-33 are fixed in Suntory via PR #16. The generic four-file patch is applicable to Shirone and the contribution is awaiting the owner’s behavior-change design approval. Merge evidence

    The digest proposal remains at REVIEW. This milestone provides one elapsed-time observation. #15 remains open and In Progress in Project #3.

  2. changed the title [-]Upstream Tracking — Source evolution, reference projects and selective adoption[/-] [+]Upstream Tracking — Firefly candidate base, Shirone integration and selective adoption[/+] on Nov 28, 2026
  3. markd3ng commented on Nov 28, 2026

    @markd3ng
    OwnerAuthor

    Track C 执行完毕(2026-11-28,Owner 指定) — 上游追踪与双上游策略本轮复核。

    Git 核实:7 个上游 remote 全部 fetch 并解析 HEAD symref,符号 HEAD、默认分支与本地 remote-tracking SHA 全部一致(firefly/master 5de25c40、shirone/main 2a91f325、shirone-content/main 5460070f、shirones/main 4a7fffb3、fuwari/main 6d39b0de、mizuki/master 14da4262、kirari/main 5700bcde);upstream/shirone 镜像仍为 2a91f325。Ancestry 事实:shirone/main ↔ fuwari/main 共享 merge-base 9b68fd1b…;Firefly 与 Shirone/Fuwari/Suntory 无任何共同祖先。

    upstream/firefly 镜像决定:DEFER_PUBLICATION(保留原生 remote tracking,不阻塞任何 track)。具体原因:树内 MIT 仅覆盖代码版权行,miHoYo 署名美术再分发授权未建立;镜像 commit 自带 Firefly deploy.yml(push 过滤 master + workflow_dispatch、pages: write)及 vercel.json/wrangler.jsonc,第三方 Git 集成 gate 仍 NOT_VERIFIED。复审前提:#35 资产结论 + Owner 确认外部集成不构建 upstream/*。

    Base Migration 规划(仅规划,未执行):默认 Option A —— 从 main 切 integration 分支做普通 PR 选择式迁移,干净 commit 用 cherry-pick -x(firefly remote 对象本地已有),混合 commit 提取最小等价 patch 并带 Adopted-from: 溯源;Option B(merge --allow-unrelated-histories 保 ancestry 的 candidate 分支)仅在 Owner 批准整体换基后使用。拒绝任何历史重写 / 伪造 merge-base;两案均保 bugfix 不丢、可 revert、不动 main、无 force push。

    其余:Trim-down 防回归复用既有 gate(check:manifest、tests/site 回归、PR 审查不重新引入已删 route/runtime/deps/assets/config),不建 feature guard 框架;Contribution 路由确认(Firefly bug→CuteLeaf/Firefly 无重复;Shirone LyraVoid#193–LyraVoid#200 全部 OPEN/MERGEABLE,不重提);read-only Digest workflow 维持 DEFER(本轮人工 pass 约 1 分钟,无复发成本证据)。

    Project #3 已对齐并回读:新增 #35、#36 并置 In Progress;#15 In Progress;#1、#10–#14 保持真实 In Progress 且不关闭;#8、#9 Done;#2–#7 为 #36 的研究子项;共 17 items 与现状一致。Shirone-only 旧路线在 register §2–§3 保留为历史证据(superseded),未另立第二套状态系统。

    canonical register 更新:audit-and-analysis commit 603aeacbcb4ebf3b432130cf56b33ade2b546d2c(已远程回读一致)。未修改任何产品源码、未切 main、未裁剪、未发布部署。

  4. markd3ng commented on Nov 28, 2026

    @markd3ng
    OwnerAuthor

    Round 2 上游回流完成(里程碑)

    Suntory 侧 11 个 PR 全部合并后,本轮把 8 个修复流中与上游 LyraVoid/Shirone 同源共享的缺陷移植为 7 个 fork PR(LyraVoid#201–LyraVoid#207),共 56 项 finding;其余 19 项按去重/归属规则跳过,每项在 PR 正文或台账中记录了逐文件证据。

    组(Suntory 来源) 上游 PR 移植 主要跳过项
    url / sitemap(#27+#34) shirone#201 F-48/8/10/121/123/124/9/50/125 F-125 后半(Suntory 独有的 integration 页面桩机制)
    markdown / feed(#28) shirone#202 F-3/4/18/49/107/108/109/111/113/120/122 无(markdown-it 移除让位 LyraVoid#195/LyraVoid#198)
    config / integration(#29) shirone#203 F-22/25/24/100/65/28/47/105 F-54(LyraVoid#193/LyraVoid#195/LyraVoid#197/LyraVoid#198 重叠区)
    client state(#31) shirone#204 F-12/84/85/86/34/17/30/70/110 F-35(Suntory 组件惯用法现代化,非上游缺陷)
    runtime / swup(#34) shirone#205 F-5/112/29/45/11/26/27/46 无
    taxonomy / i18n(#25) shirone#206 F-6/51/52/126/16/68 无
    cli(#26) shirone#207 F-19×2/13/2/59/62 F-57/58/60/61(LyraVoid#195/LyraVoid#198/LyraVoid#200 逐文件重叠)
    docs(#30) 不整体移植 — 12 项为 Suntory 自有文档树/品牌内容;唯一真实上游缺陷 F-68 已并入 LyraVoid#206

    去重方法:移植前用 gh pr view <n> --json files 核对上游全部开放 PR(当时仅 LyraVoid#193–LyraVoid#200),逐 finding 比对文件集;重叠即跳过并留证据。Suntory #32(CI)/#33(e2e)为纯测试基建,无可移植内容。

    每个 PR 的本地校验(port worktree,pnpm install --offline):完整 node --test 全绿(843–891 pass / 0 fail)、astro sync + type-check 仅 2 个已知 TS9013、biome 与 base 持平。Playwright / astro check / pnpm build 在该环境不可运行,已在 PR 正文声明。

    合并注意(已写入各 PR 正文):src/integration/index.ts(LyraVoid#201/LyraVoid#203)、src/layouts/Layout.astro(LyraVoid#203/LyraVoid#204/LyraVoid#205)、src/utils/layout-mode.ts(LyraVoid#204/LyraVoid#205)被不同分支在不同区域修改,后合并者需一次 trivial rebase,无语义冲突。

    上游 PR 是否合入由上游 owner 决定,本任务不代为合并。完整台账见证据包:
    https://github.com/markd3ng/Suntory/blob/audit-and-analysis/docs/evidence/2026-11-29-round2-bugfix/ports/upstream-ports.md

  5. markd3ng commented on Nov 29, 2026

    @markd3ng
    OwnerAuthor

    Round 2 closeout review: the Shirone remediation contribution milestone and Track C planning deliverable can be complete, but #15 is the long-lived dual-source upstream tracker, not a completed bugfix batch. Reopened to preserve the agreed tracking lifecycle. Project #3 should show this tracker as In Progress, with completed milestones recorded in comments; do not reopen the completed bugfix batches. The Firefly base decision is still pending Owner review of #35/#36. No source or deployment changes.

  6. markd3ng commented on Nov 29, 2026

    @markd3ng
    OwnerAuthor

    【收口确认(2026-11-29)】

  7. markd3ng commented on Nov 29, 2026

    @markd3ng
    OwnerAuthor

    canonical SPEC:docs/specs/2026-11-27-unified-content-architecture-spec.md(分支 audit-and-analysis,提交 971cc116e0a0e4a44a787a3da305bdc2feb019da)。

    本轮为 Gate 3 提交说明,未实施、未发布(C7):

    • C1 方向反转:Suntory 是独立产品,不是 Firefly 的二次包装器;以 Firefly 5de25c40 为目标源码基线,把 Suntory 已有有效修复移植过去。相对旧 Option A 原文方向反转,机制不变(§1.2、§7.1)。
    • §7.1 基线采纳:目标源码基线 = Firefly 5de25c40cf3778451107dd2508e869536dac27ad(ref master);移植用单一目的 commit 的 git cherry-pick -x;分支 r3/firefly-theme-base 切自实施当时最新 origin/main。否决重写历史或合成 merge-base;Option B(--allow-unrelated-histories)为候选,非默认。
    • §7.4 披露与路由:Firefly 原生缺陷走 CuteLeaf/Firefly;真实漏洞条目与公开 PR 批次分离,细节不进公开正文(沿用既有四条策略);普通 bugfix 不被 Base Migration 阻塞。

    配套产物:docs/analysis/2026-11-29-unified-defect-classification-analysis.md(192 行 = F 126 / FF 46 / TB 20;Forward-port 57;Deferred 17 全部有承接)。

    状态:Gate 3 待 Owner 批准;Gate 4(实施)与 Gate 5(发布/部署)未申请。

  8. markd3ng commented on Nov 29, 2026

    @markd3ng
    OwnerAuthor

    PR 维度已补全:#64 分类 557 个上游 PR(12 项采纳候选 #52–#63)。报告见 docs/analysis/firefly-2026-11-29-upstream-pr-classification.md(audit-and-analysis @ c6eb1264)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions