Skip to content

docs: sync documentation with 2026-04-14 tick-3 merges (#53, #54, #55) - #56

Merged
HongmingWang-Rabbit merged 1 commit into
mainfrom
docs/sync-2026-04-14-tick-3
Apr 14, 2026
Merged

docs: sync documentation with 2026-04-14 tick-3 merges (#53, #54, #55)#56
HongmingWang-Rabbit merged 1 commit into
mainfrom
docs/sync-2026-04-14-tick-3

Conversation

@HongmingWang-Rabbit

Copy link
Copy Markdown
Contributor

Summary

Doc-sync for the three merges in the 2026-04-14 tick-3 cron tick:

Files touched

Test counts (measured)

  • Go: go test -v ./... | grep -c "^--- PASS" = 712 (subtests included); top-level Test* functions = 713. Prior CLAUDE.md number was 695; +4 for the new quartet → 699, which is what CLAUDE.md now records.
  • Canvas (Vitest): unchanged — no canvas touched. CLAUDE.md still reads 357.
  • Workspace-template (pytest): unchanged. Still 1140.
  • SDK (pytest): unchanged. Still 87.
  • MCP (jest): unchanged.

No PLAN.md / README.md / README.zh-CN.md update — none of the three merges ships a user-visible surface.

Test plan

  • 7-gate CI passes on this branch
  • Confirm .env.example addition reads sensibly alongside the existing MOLECULE_ENV row
  • Confirm the tick-3 edit-history section preserves the prior tick-2 content

🤖 Generated with Claude Code

- docs/edit-history/2026-04-14.md: append tick-3 section covering the
  admin test-token route (#53), the prior-tick doc-sync PR (#54), and
  the hermes required_env alignment (#55). Record measured test counts
  (Go +4 for the TestAdminTestToken_* quartet).
- CLAUDE.md: bump Go test count 695 → 699 with a note pointing at the
  new quartet. Route-table row and env-var mentions for the admin
  route already landed with #53; verified on main.
- .env.example: add MOLECULE_ENABLE_TEST_TOKENS with a comment about
  the prod-hidden default. Closes the code-review doc-sync flag from
  #53 (var was in CLAUDE.md but missing from .env.example).

No PLAN.md / README.md / README.zh-CN.md update needed — none of the
three merges expose a user-visible surface.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@HongmingWang-Rabbit
HongmingWang-Rabbit merged commit b123294 into main Apr 14, 2026
7 checks passed
@HongmingWang-Rabbit
HongmingWang-Rabbit deleted the docs/sync-2026-04-14-tick-3 branch April 14, 2026 19:24
molecule-ai Bot pushed a commit that referenced this pull request Apr 21, 2026
docs: sync documentation with 2026-04-14 tick-3 merges (#53, #54, #55)
HongmingWang-Rabbit pushed a commit that referenced this pull request Apr 26, 2026
…PI_TOKEN

Drops the static PYPI_TOKEN secret in favor of OIDC trusted publishing.
PyPI now mints a short-lived upload credential after verifying the
workflow's OIDC claim against the trusted-publisher config registered
for molecule-ai-workspace-runtime (Molecule-AI/molecule-core,
publish-runtime.yml, environment pypi-publish).

Why:
- A leaked PYPI_TOKEN would let any holder publish arbitrary versions of
  molecule-ai-workspace-runtime to PyPI from anywhere — bypassing the
  monorepo's review and CI gates entirely. The 8 template repos pull
  this package; a malicious publish poisons all of them.
- Trusted Publisher (OIDC) makes that exfil path moot: no long-lived
  credential exists to leak. Only this exact workflow, on this repo,
  in the pypi-publish environment, can upload.

After this lands and the first OIDC publish succeeds, the PYPI_TOKEN
repo secret should be deleted (it becomes dead weight + a leak surface
with no purpose).

Belt-and-suspenders companion to PR #56 in molecule-ai-workspace-runtime
(sibling repo lockdown). Without OIDC, the sibling lockdown alone
doesn't prevent local `python -m build && twine upload` from a laptop
with a personal PyPI maintainer credential.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
HongmingWang-Rabbit added a commit that referenced this pull request Apr 26, 2026
…PI_TOKEN (#2113)

Drops the static PYPI_TOKEN secret in favor of OIDC trusted publishing.
PyPI now mints a short-lived upload credential after verifying the
workflow's OIDC claim against the trusted-publisher config registered
for molecule-ai-workspace-runtime (Molecule-AI/molecule-core,
publish-runtime.yml, environment pypi-publish).

Why:
- A leaked PYPI_TOKEN would let any holder publish arbitrary versions of
  molecule-ai-workspace-runtime to PyPI from anywhere — bypassing the
  monorepo's review and CI gates entirely. The 8 template repos pull
  this package; a malicious publish poisons all of them.
- Trusted Publisher (OIDC) makes that exfil path moot: no long-lived
  credential exists to leak. Only this exact workflow, on this repo,
  in the pypi-publish environment, can upload.

After this lands and the first OIDC publish succeeds, the PYPI_TOKEN
repo secret should be deleted (it becomes dead weight + a leak surface
with no purpose).

Belt-and-suspenders companion to PR #56 in molecule-ai-workspace-runtime
(sibling repo lockdown). Without OIDC, the sibling lockdown alone
doesn't prevent local `python -m build && twine upload` from a laptop
with a personal PyPI maintainer credential.

Co-authored-by: Hongming Wang <hongmingwangalt@gmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant