Skip to content

WP-O2a: tolerant resolver (origin/source) + root rename #2816

Description

@byteclimber

Part of the origin-dimension implementation plan: adobe/serenity-docs#46 (branch feat/origin_source). Parent WP2 shipped in #2788.

The tolerant resolver is the safety property the whole program rests on: any reader that doesn't find origin but finds source must reuse it, never mint a second root.

  • src/support/serenity/prompt-tags.js: DIMENSION.SOURCEDIMENSION.ORIGIN (:43), DIMENSION_ROOT_NAMES (:51), SOURCE_VALUEORIGIN_VALUE (:56), CLOSED_DIMENSION_VALUES/CLOSED_DIMENSIONS (:101,:108), STANDARD_PROMPT_TAG_VALUES (:123,:133).
  • src/support/serenity/tag-tree.js: give the authorship root its own resolver — prefer root named origin; else root named source whose children ⊆ {ai,human}; create origin only if neither exists. Applies to ensureDimensionRoots (:224), provisionDimensionTree (:442), ensureClosedValue (:475).
  • src/support/serenity/handlers/tags.js: parseCreateTagBody validates against origin, not source, from this PR onward.
  • markets-subworkspace.js:446: new projects provisioned with origin from deploy onward.
  • brand-provisioning.js, src/controllers/serenity.js: follow the constant.
  • Fixtures/integration tests move to WP-O1's new ids. Spec gate 3 lands here.
  • src/support/elements/** deliberately excludedtopics.js:135 transformOriginsToFilterDimensions() still parses source: prefix. If Elements reads the AIO tag tree directly, its filters are already broken in prod on the 35 reshaped projects (spec gate 9) — that's triage, not part of this task.

Blocked on the tag-vs-metadata product decision.

Jira: SITES-48001

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions