Skip to content

feat(packages)!: one name for the document-view source — recipe - #515

Merged
transitrix merged 5 commits into
mainfrom
methodology/279-recipe-naming
Aug 24, 2026
Merged

feat(packages)!: one name for the document-view source — recipe#515
transitrix merged 5 commits into
mainfrom
methodology/279-recipe-naming

Conversation

@transitrix

Copy link
Copy Markdown
Owner

From: methodology.

skeleton (document-view-engine), template (document-renderer's .ttrs naming), and the template_id/template_version header fields all named the same object. Renamed to recipe everywhere in @transitrix/document-view-engine and @transitrix/document-renderer — filenames (parse-template.mjs/parse-skeleton.mjsparse-recipe.mjs), identifiers (parseSkeletonparseRecipe), comments, package descriptions, and the .ttrs header (recipe_id/recipe_version). template no longer names this object in either package.

Breaking change: the .ttrs header field rename is a required-field rename under CONTRACT.md §10.2. Migration recipe added as Transform B in migrations/3.1-to-4.0/, alongside the already-pre-staged FGA retirement (Transform A) — both land ahead of the actual 4.0.0 cut per CONTRACT.md §10.6. No adopter .ttrs file exists outside this repo's own test fixture, so the recipe carries nothing real to rewrite today; it ships anyway per the same section. codemod.mjs/validate.mjs extended and verified against new fixtures/before|after/product.mrd.ttrs.

CHANGELOG [Unreleased] states both breaking changes explicitly. Release cutting (the actual MAJOR version bump + tag) is left to the next batched release, matching how recent single-task PRs have landed — this PR only adds the migration recipe and CHANGELOG entry, per the task's acceptance criteria ("shipped as MAJOR, categorised per RELEASING.md").

Out of scope, per the task: the directive language spec (notations/views/documents/), site copy, and Studio fixtures — filed as separate sibling tasks.

Verified: node scripts/check-notations.mjs clean (2 pre-existing unrelated SIZE1 warnings only); node --test packages/document-renderer/tests/*.mjs packages/document-view-engine/tests/*.mjs — 12/12 pass; node --test scripts/check-notations.test.mjs — 92/92 pass. Confirmed no remaining template/skeleton mentions naming this object anywhere in either package.

Note for reviewer: while verifying the migration codemod end-to-end I found the pre-existing FGA transform's anchor-insertion regex silently degrades (inserts view_config at the top instead of after generated_at:) on CRLF-checked-out content — a pre-existing, environment-dependent (Windows autocrlf=true, no .gitattributes pinning this fixture dir to LF) issue unrelated to this task's scope, left unfixed here.

Open PR, awaiting merge (Valerii gates).

`skeleton` (document-view-engine), `template` (document-renderer's .ttrs
naming), and the template_id/template_version header fields all named the
same object. It is now `recipe` everywhere in both packages: filenames,
identifiers, comments, package descriptions, and the .ttrs header
(recipe_id/recipe_version). `template` no longer names this object in either
package; contrast usages ("not a template to fill in") are unaffected because
none exist in these packages.

BREAKING: renamed .ttrs header fields template_id/template_version to
recipe_id/recipe_version. Migration recipe: migrations/3.1-to-4.0/ Transform
B, landed ahead of the 4.0.0 cut per CONTRACT.md §10.6, alongside the
pre-staged FGA retirement (Transform A). No adopter .ttrs file exists outside
this repo's own test fixture.

Out of scope: the directive language spec, site copy, and Studio fixtures
(filed separately by the coordinating epic's slicing).

Signed-off-by: transitrix <automation@transitrix.com>
Signed-off-by: transitrix <automation@transitrix.com>
document-renderer-test.yml and document-view-engine-test.yml still ran
test_parse_template.mjs / test_parse_skeleton.mjs, which #515 renamed to
test_parse_recipe.mjs in each package. document-renderer's step was fixed
before this commit; document-view-engine's was missed and failing CI.

Signed-off-by: transitrix <automation@transitrix.com>
@transitrix transitrix added the needs:human-merge Mergeable but not a simple PR; awaits human merge label Aug 23, 2026
…e-naming

Signed-off-by: transitrix <automation@transitrix.com>

# Conflicts:
#	CHANGELOG.md
@transitrix
transitrix merged commit aa10370 into main Aug 24, 2026
12 checks passed
@transitrix
transitrix deleted the methodology/279-recipe-naming branch August 24, 2026 11:58
transitrix added a commit that referenced this pull request Aug 24, 2026
…e changelog (#520)

BREAKING: `notation: fga` / `*.fga.transitrix.yaml` is removed. FGA was
deprecated in 2.0.0 (2026-07-12) with removed_in: "4.0.0"; the one-major
window (CONTRACT.md §10.6) closed as of 3.0.0, and #515's merged CHANGELOG
already stated the retirement was landing "alongside" the recipe-naming
change — the actual spec/example deletion and cross-reference cleanup
never made it into that commit. This lands it: the FGA spec and example
stub are deleted, and every remaining "DGCA / FGA" family reference across
notations/, README.md, and patterns/ is updated to name DGCA alone. The
migration recipe (Transform A, migrations/3.1-to-4.0/) already covers the
adopter-facing side and is unchanged.

Signed-off-by: transitrix <automation@transitrix.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:human-merge Mergeable but not a simple PR; awaits human merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant