Skip to content

Commit 1b9c73a

Browse files
docs(changeset): the revert note says what revertCommit reports for a non-object registry fault (#34017)
<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbNTugWasvhTMrtCZiFGrZYK)_ Part of #33851 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:只改一个文件里的一句话。未发布的变更说明 `.changeset/33563-revert-commit-honest-outcome.md` 中,有一句说「非对象类型的注册表写入故障撤销仍看不到」,改成如实描述 #33979 落地后的行为。 - 为什么改:#33979 让撤销提交如实上报这些故障,原句因此变为错误;这条说明尚未发布,会原样进入 CHANGELOG。 - 风险与回滚:纯文本,不改代码。应在 #33979 之后落地,否则这句话会先于代码生效。回滚即 revert 本 PR。 - 先看:`.changeset/33563-revert-commit-honest-outcome.md` 第 12 行。 - 两分钟验证:`git diff origin/main -- .changeset/33563-revert-commit-honest-outcome.md`,预期只有一行改动。 - 需要你做的:无,席位落地(本更正由区域 ACCEPT 确认)。 ## What changes **DELIBERATE CORRECTION** of the unreleased note `.changeset/33563-revert-commit-honest-outcome.md` (shipped by #33805). One sentence is rewritten, and nothing else in the note changes. Before: > A write-through fault the registry helper only logs (every metadata type other than `object`) is still not seen by the revert. After: > The same holds for an item of any other metadata type: a restored item whose registry write-through throws, and a removed item whose registry heal stops, so that the registry may still serve the removed row. "The same holds" continues the note's paragraph above it. That paragraph says an item whose row was written but whose next step did not land goes into `failed[]`, not `reverted[]`, and the answer's `success` is `false`. The corrected sentence describes the code of #33979, which makes `revertCommit` report both faults for every type. Without #33979, the old sentence is true and the new one is false, so this PR lands after #33979. The correction is in its own text-only PR because rewriting an existing changeset inside a PR that also changes code needs a same-head contract review, and #33979 has no contract face. A text-only correction is confirmed by the area's ACCEPT. ## Tests None: a changeset prose change. `git diff --stat origin/main...HEAD` shows one file changed, with 1 insertion and 1 deletion. ## Verification - Body gates: closing-keyword parity, Part-of, changeset no-major and ADR-0087 registration all exit 0. - Check Changeset is expected to report the edit to a changeset that exists on the merge base. This body is the declaration of that edit as a DELIBERATE CORRECTION; the `skip-changeset` label is not applied. --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jTkZnXtRhuEiiyidvJ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 828204e commit 1b9c73a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.changeset/33563-revert-commit-honest-outcome.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Metadata-protocol: none
99

1010
`revertCommit` now reports an item whose row was written but whose next step did not land in `failed[]`, not `reverted[]`, and the answer's `success` is `false`. The steps are: the runtime registry refusing the restored object, its storage not following the restored body (the `object-storage-sync-refused` advisory stays on `advisories`), the mutation projector failing, and any step after the row write throwing. The entry names the row state ("its row was restored to the body of version N", or "its row was removed from sys_metadata") beside the step that failed, and quotes no driver text. The revert's own commit still records the row change. Before, each of these answered `success: true` with the item in `reverted[]`, against the method's own contract ("a revert that answers `success: true` is one the running process has already acted on"). `rollbackToPackageCommit` carries each such item into its own `failed[]` and answers `success: false`.
1111

12-
A write-through fault the registry helper only logs (every metadata type other than `object`) is still not seen by the revert.
12+
The same holds for an item of any other metadata type: a restored item whose registry write-through throws, and a removed item whose registry heal stops, so that the registry may still serve the removed row.
1313

1414
A revert is now itself revertible, as ADR-0067 D3 says. The revert's own commit records, for each row it changed, the version that row held before the revert, so reverting the revert brings that body back, and an item the revert removed is written again. An item recorded as existing before the commit but carrying no version to restore, which is how every revert commit recorded by an earlier release records the items it restored, is named in `failed[]` with nothing written. Before, it was skipped: it appeared in neither `reverted[]` nor `failed[]`. To undo such an older revert, restore each item from its own version history (`GET /api/v1/meta/:type/:name/history`, then `POST /api/v1/meta/:type/:name/rollback`).
1515

0 commit comments

Comments
 (0)