ARWP Target Transformation
Use this skill after arwp-adaptive-upgrade has answered what should change and the next job is resolve and deliver the exact repository change.
Goal
Turn applicable, current ARWP recommendations into a small deterministic change set with:
recommendation → exact file → grounded inputs → before digest → after digest → verification → rollback/PR
Do not treat an upgrade recipe as mutation authority.
Workflow
Load the Adaptive Upgrade graph. Reject any recommendation whose
knowledgeStateisreview-dueuntil the upstream guidance is reviewed again.Inspect the target repository. Resolve the actual source files that own the public behavior. Do not patch generated output if the source template/config should be changed instead.
Classify mutation eligibility.
mechanical: may become deterministic if the exact target is known.grounded-template: may become deterministic only after first-party facts are found and recorded as grounding evidence.policy-gated,editorial,owner-platform,runtime: keep gated; do not turn them into executable operations.
Resolve exact operations. Prefer one operation per file. Supported v0.1 operations are
create-file,replace-file,replace-exact,insert-before-exact, andinsert-after-exact.Pin preconditions. Capture the exact current file content or absence, the target base commit SHA, and an explicit
allowedPathslist. Never use broad**mutation permissions.Compile and simulate.
node bin/arwp-transform.mjs compile adaptive-upgrade.json target-transform-spec.json --output=transform.bundle.json
node bin/arwp-transform.mjs simulate transform.bundle.json
Read the gated-recommendations section before delivery. A large gated list is normal; the engine is designed to automate only what is safe and resolved.
- Deliver. Prefer production PR delivery for shared repositories:
GITHUB_TOKEN=... node bin/arwp-transform.mjs open-pr transform.bundle.json \
--authorize=target-repository-transform-pr
For an explicitly authorized local workspace:
node bin/arwp-transform.mjs apply transform.bundle.json \
--root=/path/to/site \
--authorize=local-production-transform \
--receipt=/private/path/transform-receipt.json
Verify the real site. Run the target project's own build/tests/lint and the relevant ARWP checks. Compare rendered public facts with the repository facts used as grounding evidence.
Measure separately. Deployment success is not Search/AI outcome evidence. Use owner-side Search Console/Bing/referral/agent-eval evidence after a sensible observation window.
Rollback when necessary. Local rollback is allowed only when post-transform file digests still match the receipt. GitHub delivery is branch/PR based; use normal Git revert/PR review rather than rewriting history.
Hard rules
- Never write directly to the target base branch through this engine.
- Never force push.
- Never mutate
.git/,.github/workflows/or.github/actions/through transformation bundles. - Never invent Person, Organization, Product, Dataset, author, rating, price, date or credential facts to make a recommendation executable.
- Never choose crawler/training/content-use policy on behalf of the publisher.
- Never execute arbitrary shell commands stored in a transformation bundle.
- Never claim a ranking/citation uplift from a successful mutation alone.
Done when
A transformation cycle is complete when the exact repository change has been delivered, technical verification is recorded, unresolved/gated recommendations remain explicit, and the next measurement/learning step is identified.