Skip to content

WP-O1: rename authorship tag root from source to origin (PE-client mock)#1815

Open
byteclimber wants to merge 2 commits into
mainfrom
feat/origin-dimension-mock
Open

WP-O1: rename authorship tag root from source to origin (PE-client mock)#1815
byteclimber wants to merge 2 commits into
mainfrom
feat/origin-dimension-mock

Conversation

@byteclimber

@byteclimber byteclimber commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Part of the origin-dimension rename: adobe/serenity-docs#46. This is WP-O1 — renames the fully-populated authorship dimension root (ai/human) from source to origin in the spacecat-shared-project-engine-client mock, and adds a legacy pre-rename seed snapshot so downstream repos can test a tolerant resolver against a project still carrying the old name.

  • DIMENSION_ROOTS/SOURCE_VALUES/SOURCE_ROOT_TAG_ID/SEED_IDS renamed to origin equivalents (ids re-derive automatically via the runtime tagId(parent, name) hash)
  • Kept the human-under-category collision fixture
  • Added legacy-source-workspace seed (pre-rename shape) — to be deleted in a later contract work package
  • Updated docs/mock-usage.md and pinned test suites

Test plan

  • npm test — 260 passing, 100% coverage
  • npm run test:e2e — 80 passing
  • npm run lint — clean
  • npm run test:types — clean

Closes #1812
Jira: SITES-48000 · Tracking: cross-repo plan in adobe/serenity-docs#46

🤖 Generated with Claude Code

…t source -> origin

WP-O1 (#1812, SITES-48000): renames the tag-tree authorship
dimension root from `source` to `origin` in the project-engine-client mock
fixtures, per the origin-dimension spec (adobe/serenity-docs#46).

- mock/seeds.js: DIMENSION_ROOTS.source -> origin, SOURCE_VALUES -> ORIGIN_VALUES,
  SOURCE_ROOT_TAG_ID -> ORIGIN_ROOT_TAG_ID, sourceHumanTagId -> originHumanTagId in
  SEED_IDS; dimensionRootTree and both seeded hierarchies updated. Cross-dimension
  collision fixture (CATEGORY_CHILD_COLLIDING_NAME = 'human') preserved, comments
  updated to origin.
- mock/seeds.js: adds a new `legacy-source-workspace` seed/SEED_IDS entries that
  keep the PRE-rename `source`-named root (with ai/human children), so downstream
  repos can test a tolerant resolver that accepts both `origin` and legacy
  `source` roots during the migration window. Deleted in WP-O6.
- mock/factories.js, mock/counterfact/routes/.../aio/tags.js: update doc comments
  referencing the dimension-root names.
- docs/mock-usage.md: documents the fourth seed and the origin rename.
- test/mock/seeds.test.js, test/mock/tag-id.test.js, test/mock/tag-view.test.js,
  test/e2e/project-engine-mock.e2e.js: updated assertions/fixtures for the rename;
  seeds.test.js adds coverage for the new legacy-source-workspace seed.

npm test, npm run test:types, npm run test:e2e, and npm run lint all pass with
100% coverage.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

This PR will trigger no release when merged.

@byteclimber byteclimber marked this pull request as ready for review July 15, 2026 15:27
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.

WP-O1: rename authorship root in PE-client mock, add legacy seed snapshot

1 participant