Skip to content

chore: 内部仓库名脱敏 - #37

Merged
im47cn merged 2 commits into
mainfrom
fix/internal-names-sanitize
Sep 14, 2026
Merged

im47cn merged 2 commits into
mainfrom
fix/internal-names-sanitize

Conversation

@im47cn-bot

@im47cn-bot im47cn-bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

按 2026-09-14 裁定对 HEAD 全量脱敏:内部仓库命名替换为角色化占位;已迁移真源的旧 URL/路径修正至 wop-specs;Codeup org id 测试样例改虚构值。不动 git 历史,功能零变更。

Sourcery 摘要

在不改变功能的情况下,清理内部代码仓库引用和测试标识符,同时将迁移后的源代码文档重定向至 wop-specs。

增强功能:

  • 将治理、文档、托管评论和测试中的内部代码仓库名称、路径及标识符替换为基于角色的或虚构的占位符。
  • 更新文档,将已迁移的 wop-specs 代码仓库作为协议来源,并新增公开的 WOP 生态导航部分。

文档:

  • 清理面向用户和项目文档中的代码仓库引用,同时保留公开的代码仓库链接和源代码引用。

测试:

  • 将测试夹具中的 Codeup URL、组织、命名空间和代码仓库替换为虚构值。

杂项:

  • 应用代码仓库名称和标识符清理,但不改变产品行为或 git 历史记录。
Original summary in English

Summary by Sourcery

Sanitize internal repository references and test identifiers while redirecting migrated source documentation to wop-specs without changing functionality.

Enhancements:

  • Replace internal repository names, paths, and identifiers in governance, documentation, hosting comments, and tests with role-based or fictional placeholders.
  • Update documentation to reference the migrated wop-specs repository as the protocol source and add a public WOP ecosystem navigation section.

Documentation:

  • Sanitize repository references in user-facing and project documentation while preserving public repository links and source references.

Tests:

  • Replace Codeup URL, organization, namespace, and repository test fixtures with fictional values.

Chores:

  • Apply repository-name and identifier sanitization without changing product behavior or git history.

@im47cn-bot
im47cn-bot requested a review from im47cn as a code owner September 14, 2026 11:59
@coderabbitai

coderabbitai Bot commented Sep 14, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: b32ed33d-78fb-4e19-b0fd-f2f7789428cf


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@changeset-bot

changeset-bot Bot commented Sep 14, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2e54286

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@sourcery-ai

sourcery-ai Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

审查者指南

本 PR 对 HEAD 中的内部仓库名、路径和测试标识进行全量脱敏,以角色化占位符和虚构 Codeup 值替代,同时将已迁移真源引用修正至 wop-specs;仅涉及文档、注释和测试样例,未改变运行功能或 Git 历史。

文件级变更

变更 详情 文件
将内部仓库及组织标识替换为角色化或虚构占位符,覆盖治理文档、适配层注释和 Codeup 测试数据。
  • 脱敏 ADR、迁移证据、使命文件中的内部仓库名
  • 将路径示例统一为 org/group 等角色化结构
  • 将 Codeup org ID 测试样例替换为虚构值
.factory/decisions.md
.factory/mutations/EVIDENCE-2026-08-24.md
MISSION.md
.factory/hosting.py
.factory/tests/test_dispatch.py
.factory/tests/test_hosting.py
修正已迁移协议真源的文档引用,并补充公开生态导航信息。
  • 将 Python SDK 报告中的真源路径更新为 wop-specs
  • 在 README 增加 wop-specs 链接、项目定位说明及生态组件导航
docs/wop-sdk-report-python.md
README.md

提示与命令

与 Sourcery 交互

  • 触发新的审查: 在拉取请求中评论 @sourcery-ai review。
  • 继续讨论: 直接回复 Sourcery 的审查评论。
  • 根据审查评论生成 GitHub issue: 回复审查评论,请 Sourcery 根据该评论创建 issue。你也可以在审查评论中回复 @sourcery-ai issue,以根据该评论创建 issue。
  • 生成拉取请求标题: 在拉取请求标题的任意位置写入 @sourcery-ai,即可随时生成标题。你也可以在拉取请求中评论 @sourcery-ai title,以随时(重新)生成标题。
  • 生成拉取请求摘要: 在拉取请求正文的任意位置写入 @sourcery-ai summary,即可在你指定的位置随时生成 PR 摘要。你也可以在拉取请求中评论 @sourcery-ai summary,以随时(重新)生成摘要。
  • 生成审查者指南: 在拉取请求中评论 @sourcery-ai guide,即可随时(重新)生成审查者指南。
  • 解决所有 Sourcery 评论: 在拉取请求中评论 @sourcery-ai resolve,即可解决所有 Sourcery 评论。如果你已经处理完所有评论,不想再看到它们,这项功能会很有用。
  • 忽略所有 Sourcery 审查: 在拉取请求中评论 @sourcery-ai dismiss,即可忽略所有现有的 Sourcery 审查。如果你想从新的审查开始,这项功能尤其有用——别忘了评论 @sourcery-ai review 以触发新的审查!

自定义使用体验

访问你的控制面板以:

  • 启用或禁用审查功能,例如 Sourcery 生成的拉取请求摘要、审查者指南等。
  • 更改审查语言。
  • 添加、删除或编辑自定义审查说明。
  • 调整其他审查设置。

获取帮助

Original review guide in English

Reviewer's Guide

本 PR 对 HEAD 中的内部仓库名、路径和测试标识进行全量脱敏,以角色化占位符和虚构 Codeup 值替代,同时将已迁移真源引用修正至 wop-specs;仅涉及文档、注释和测试样例,未改变运行功能或 Git 历史。

File-Level Changes

Change Details Files
将内部仓库及组织标识替换为角色化或虚构占位符,覆盖治理文档、适配层注释和 Codeup 测试数据。
  • 脱敏 ADR、迁移证据、使命文件中的内部仓库名
  • 将路径示例统一为 org/group 等角色化结构
  • 将 Codeup org ID 测试样例替换为虚构值
.factory/decisions.md
.factory/mutations/EVIDENCE-2026-08-24.md
MISSION.md
.factory/hosting.py
.factory/tests/test_dispatch.py
.factory/tests/test_hosting.py
修正已迁移协议真源的文档引用,并补充公开生态导航信息。
  • 将 Python SDK 报告中的真源路径更新为 wop-specs
  • 在 README 增加 wop-specs 链接、项目定位说明及生态组件导航
docs/wop-sdk-report-python.md
README.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

您好——我发现了 1 个问题

面向 AI Agent 的提示
请处理本次代码审查中的评论:

## 具体评论

### 评论 1
<location path="docs/wop-sdk-report-python.md" line_range="5" />
<code_context>
 - 仓库:`github.com/wop-platform/wop-python-sdk`(分支 main,共 12 commits,未推送)
 - 任务:`/tmp/wop-task-python.md` + 公共段 `/tmp/wop-sdk-common.md`
-- 真源:`gtsp-wop-gateway/docs/wop-sdk-spec.md`(v1.0-ratified)、`docs/crypto-strategy-spec.md`(v0.3-reviewed)、
+- 真源:`wop-specs/docs/specs/wop-sdk-spec.md`(v1.0-ratified)、`docs/crypto-strategy-spec.md`(v0.3-reviewed)、
   `docs/crypto-vectors.json`(字节级拷贝至 `tests/fixtures/crypto-vectors.json`,`cmp` 验证一致)
 - 环境:Python 3.9.6(macOS ARM64);cryptography 46.0.3、gmssl 3.2.2、pytest 8.4.2、coverage 7.x
</code_context>
<issue_to_address>
**小问题:**报告将读者指向 `wop-specs/docs/specs/wop-sdk-spec.md`,但仓库中的权威引用将该规范标识为 `wop-specs/sdk/wop-sdk-spec.md`;因此,按照新的源路径查找会导向错误的规范位置,或者导向一个不存在的位置。

**触发条件:**有人使用该报告查找已批准的 SDK 规范时。

**建议修复:**将路径修改为 `wop-specs/sdk/wop-sdk-spec.md`,以匹配 CONTRIBUTING.md、factory-local.json 以及仓库中的其他引用。

```suggestion
- 真源:`wop-specs/sdk/wop-sdk-spec.md`(v1.0-ratified)、`docs/crypto-strategy-spec.md`(v0.3-reviewed)、
```
</issue_to_address>

Sourcery 评估

已批准。


Sourcery 对开源项目免费——如果您喜欢我们的审查,请考虑分享 ✨
Original comment in English

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="docs/wop-sdk-report-python.md" line_range="5" />
<code_context>
 - 仓库:`github.com/wop-platform/wop-python-sdk`(分支 main,共 12 commits,未推送)
 - 任务:`/tmp/wop-task-python.md` + 公共段 `/tmp/wop-sdk-common.md`
-- 真源:`gtsp-wop-gateway/docs/wop-sdk-spec.md`(v1.0-ratified)、`docs/crypto-strategy-spec.md`(v0.3-reviewed)、
+- 真源:`wop-specs/docs/specs/wop-sdk-spec.md`(v1.0-ratified)、`docs/crypto-strategy-spec.md`(v0.3-reviewed)、
   `docs/crypto-vectors.json`(字节级拷贝至 `tests/fixtures/crypto-vectors.json`,`cmp` 验证一致)
 - 环境:Python 3.9.6(macOS ARM64);cryptography 46.0.3、gmssl 3.2.2、pytest 8.4.2、coverage 7.x
</code_context>
<issue_to_address>
**nitpick:** The report points readers to `wop-specs/docs/specs/wop-sdk-spec.md`, while the repository's authoritative references identify the specification as `wop-specs/sdk/wop-sdk-spec.md`; following the new source path therefore leads to the wrong or nonexistent specification location.

**Triggers:** When someone uses the report to locate the ratified SDK specification.

**Suggested fix:** Change the path to `wop-specs/sdk/wop-sdk-spec.md` to match CONTRIBUTING.md, factory-local.json, and the other repository references.

```suggestion
- 真源:`wop-specs/sdk/wop-sdk-spec.md`(v1.0-ratified)、`docs/crypto-strategy-spec.md`(v0.3-reviewed)、
```
</issue_to_address>

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread docs/wop-sdk-report-python.md Resolved
@im47cn
im47cn enabled auto-merge September 14, 2026 12:11
@im47cn
im47cn merged commit 7e5cb22 into main Sep 14, 2026
25 checks passed
@im47cn
im47cn deleted the fix/internal-names-sanitize branch September 14, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants