From e46b95d3ef72ff0332f4f81c40278c056d09305c Mon Sep 17 00:00:00 2001 From: Shinku <17696928+Shinku-Chen@users.noreply.github.com> Date: Thu, 27 Aug 2026 10:44:35 +0800 Subject: [PATCH] docs(experiences): add post-release follow-up experience entry --- docs/development/experience-notes.md | 1 + docs/development/experience-notes.zh_CN.md | 1 + docs/experiences/INDEX.md | 1 + docs/experiences/INDEX.zh_CN.md | 1 + .../Shinku-Chen/post-release-follow-up.md | 62 +++++++++++++++++++ .../post-release-follow-up.zh_CN.md | 45 ++++++++++++++ 6 files changed, 111 insertions(+) create mode 100644 docs/experiences/Shinku-Chen/post-release-follow-up.md create mode 100644 docs/experiences/Shinku-Chen/post-release-follow-up.zh_CN.md diff --git a/docs/development/experience-notes.md b/docs/development/experience-notes.md index 9b8a203..8ff9422 100644 --- a/docs/development/experience-notes.md +++ b/docs/development/experience-notes.md @@ -48,3 +48,4 @@ See [`../experiences/`](../experiences/), and its stored entries. The index below lists each entry once it is added. - **Audio Compression Trade-offs on ESP32-C3** (Shinku-Chen) — how a voice-playback codec was chosen on limited flash (IMA-ADPCM vs Opus vs MP3), with measured capacity and decoder cost. See [`../experiences/Shinku-Chen/audio-compression-trade-offs.md`](../experiences/Shinku-Chen/audio-compression-trade-offs.md). +- **Post-Release Follow-up for the AI Passport Publishing Flow** (Shinku-Chen) — confirm the publish destination, include the data partition in a release, and the consent gates for the post-release tracks. See [`../experiences/Shinku-Chen/post-release-follow-up.md`](../experiences/Shinku-Chen/post-release-follow-up.md). diff --git a/docs/development/experience-notes.zh_CN.md b/docs/development/experience-notes.zh_CN.md index 7432501..1386134 100644 --- a/docs/development/experience-notes.zh_CN.md +++ b/docs/development/experience-notes.zh_CN.md @@ -36,3 +36,4 @@ fork 上自行创建或变更的 `docs/` 文档。每条经验一个 `.md` 及 [`INDEX.md`](../experiences/INDEX.md) 档案条目表。下面索引在条目新增后列出。 - **ESP32-C3 上音频压缩方式的权衡**(Shinku-Chen)— 在有限 Flash 上如何为语音播放应用选编解码(IMA-ADPCM vs Opus vs MP3),含实测容量与解码器成本。见 [`../experiences/Shinku-Chen/audio-compression-trade-offs.zh_CN.md`](../experiences/Shinku-Chen/audio-compression-trade-offs.zh_CN.md)。 +- **发布后收尾:AI Passport 发布流程的衔接**(Shinku-Chen)— 确认发布目的地、发布时包含数据分区、以及发布后收尾各轨道的同意门槛。见 [`../experiences/Shinku-Chen/post-release-follow-up.zh_CN.md`](../experiences/Shinku-Chen/post-release-follow-up.zh_CN.md)。 diff --git a/docs/experiences/INDEX.md b/docs/experiences/INDEX.md index 774b8b8..0c09954 100644 --- a/docs/experiences/INDEX.md +++ b/docs/experiences/INDEX.md @@ -23,3 +23,4 @@ rather than merged into an existing one. ### Shinku-Chen - [Audio Compression Trade-offs on ESP32-C3](Shinku-Chen/audio-compression-trade-offs.md) — how a voice-playback codec was chosen on limited flash (IMA-ADPCM vs Opus vs MP3), with measured capacity and decoder cost. +- [Post-Release Follow-up for the AI Passport Publishing Flow](Shinku-Chen/post-release-follow-up.md) — confirm the publish destination, include the data partition in a release, and the consent gates for the post-release tracks. diff --git a/docs/experiences/INDEX.zh_CN.md b/docs/experiences/INDEX.zh_CN.md index f46f03b..18690b5 100644 --- a/docs/experiences/INDEX.zh_CN.md +++ b/docs/experiences/INDEX.zh_CN.md @@ -17,3 +17,4 @@ ### Shinku-Chen - [ESP32-C3 上音频压缩方式的权衡](Shinku-Chen/audio-compression-trade-offs.zh_CN.md) — 在有限 Flash 上如何为语音播放应用选编解码(IMA-ADPCM vs Opus vs MP3),含实测容量与解码器成本。 +- [发布后收尾:AI Passport 发布流程的衔接](Shinku-Chen/post-release-follow-up.zh_CN.md) — 确认发布目的地、发布时包含数据分区、以及发布后收尾各轨道的同意门槛。 diff --git a/docs/experiences/Shinku-Chen/post-release-follow-up.md b/docs/experiences/Shinku-Chen/post-release-follow-up.md new file mode 100644 index 0000000..492c2fe --- /dev/null +++ b/docs/experiences/Shinku-Chen/post-release-follow-up.md @@ -0,0 +1,62 @@ +
+ 简体中文 · English +
+ +# Post-Release Follow-up for the AI Passport Publishing Flow + +Captured after publishing the **Voice Keychain** firmware to the AI Passport +community market. This entry records the reusable lessons from closing out a +fork's release with the post-release follow-up tracks, which apply to any AI +Passport release. + +## Confirm the publish destination before routing + +The publishing document says to publish "to the community" or "to Git", but a +developer often says just "publish the project". Ask the destination first, and +route to the matching workflow, before assuming either. This two-way split +(community market vs a version-controlled repository) prevents the wrong +workflow from running. + +## The community upload needs three inputs, and the split matters + +The publisher workflow requires: a single merged firmware `.bin` (flashed from +`0x0`), a representative cover image (<= 10 MiB), and a public HTTPS Git source +page. Two of these can be prepared from the existing repository, and the source +URL should be resolved from `git remote -v` (converting SSH to HTTPS when +ambiguous). The merged image from `idf.py merge-bin` only bundles bootloader, +partition-table, and app — it does **not** include the SPIFFS audio data +partition. That partition's image is produced separately and is easy to omit +from a release, leaving a firmware that boots a UI but has no sound. A release +should either merge that data partition into `full.bin` or publish it alongside +with clear flash addresses. + +## Authorize through the official site; never handle credentials + +The publisher skill uses a device-code flow. Running `authorize` opens the +official creator page and produces a ten-minute code; the creator registers or +signs in on the site and approves the displayed code. The assistant never +requests, receives, or stores the creator's password, and never retries a +rejected upload automatically. + +## Post-release follow-up has its own consent gates + +After publishing, three independent tracks can follow: archive the application +to `plays/`, gather improvement suggestions as an upstream issue, and submit +reusable development experience as an upstream documentation PR. Each touches +project-private content and each requires explicit developer consent, an +available GitHub channel, and no submission before review. All three keep the +change off the developer's current branch. + +## Generalization for the next release + +- Always confirm the destination (community vs Git) before publishing. +- Verify the merged image includes (or is published alongside) the data + partition needed for sound; do not assume "one file = whole device". +- Route each post-release track to upstream only when the learning is general; + keep fork-specific customization local per `fork-guide.md`. + +## Related documents + +- `docs/development/publish-to-community.md` — the publishing workflow. +- `docs/development/after-release.md` — the three follow-up tracks and gates. +- `docs/development/experience-notes.md` — index for this entry. diff --git a/docs/experiences/Shinku-Chen/post-release-follow-up.zh_CN.md b/docs/experiences/Shinku-Chen/post-release-follow-up.zh_CN.md new file mode 100644 index 0000000..abe5aa1 --- /dev/null +++ b/docs/experiences/Shinku-Chen/post-release-follow-up.zh_CN.md @@ -0,0 +1,45 @@ ++ 简体中文 · English +
+ +# 发布后收尾:AI Passport 发布流程的衔接 + +在把 **Voice Keychain** 固件发布到 AI Passport 社区市场后沉淀。本条记录用发布后的 +收尾轨道把一个 fork 的发布闭环时,可复用、对任何 AI Passport 发布都成立的通用经验。 + +## 先确认发布目的地再分流 + +发布文档里写了"发到社区"或"发到 Git",但开发者常常只说"发布项目"。先问清目的地, +再分流到对应工作流,而不是先假设某一边。这个二选一(社区市场 vs 版本控制仓库)能避免跑错工作流。 + +## 社区上传需要三个输入,拆分要拎清 + +publisher 工作流需要:单个合并固件 `.bin`(从 `0x0` 烧)、一张代表性封面(≤10 MiB)、 +一个公开的 HTTPS Git 源码页。其中两个可从现有仓库准备,源码 URL 从 `git remote -v` 解析 +(有歧义时把 SSH 转 HTTPS)。`idf.py merge-bin` 合并出的镜像**只含 bootloader/分区表/app**, +**不含 SPIFFS 音频数据分区**——该分区镜像是单独生成的,容易在发布时被漏掉,导致固件能出 +UI 却没有声音。发布方应把该数据分区并入 `full.bin`,或单独随 release 发布并写清烧录地址。 + +## 通过官方网站授权,绝不碰凭证 + +publisher skill 用设备码流程:跑 `authorize` 会打开官方创作者页并生成一个十分钟的码; +创作者在网站上注册或登录并批准显示的码。助手**从不**请求、接收或存储创作者的密码, +也**不**自动重试被拒绝的上传。 + +## 发布后收尾有它自己的同意门槛 + +发布后可跟三条独立轨道:把应用归档到 `plays/`、把改进建议提交成上游 issue、把可复用开发经验 +提交成上游文档 PR。每条都涉及项目私有内容,都需要开发者明确同意、可用的 GitHub 通道、 +以及提交前先审查。三者都不得改到开发者当前分支。 + +## 对下次发布的通用化 + +- 发布前务必确认目的地(社区 vs Git)。 +- 确认合并镜像包含了(或随附发布了)出声所需的数据分区;不要假设"一个文件 = 整台设备"。 +- 每条发布后轨道只有经验是通用时才回上游;纯 fork 定制按 `fork-guide.md` 留在本地。 + +## 相关文档 + +- `docs/development/publish-to-community.md` — 发布工作流。 +- `docs/development/after-release.md` — 三条收尾轨道与门槛。 +- `docs/development/experience-notes.md` — 本条的索引。