AGENTS.md and the template repository guide both require template.json entry.files paths, byte lengths and SHA-256 values to match the staged source. The check validated the shape of that record and verified source/manifest.json against the files on disk, but it never compared the two lists against each other. A stale entry.files block therefore passed CI while consumers read it as the published identity of a template: the onboarding preview builder and the template recommendation cards both take those paths and hashes as fact.
The per-template loop now walks entry.files and matches each path against the source manifest, failing on a path that is missing from the manifest or on a changed byte length or hash. Paths also pass through the existing safe-path check, so a traversal attempt in that block fails the check rather than the consumer.
Review follow-up: the stale-identity message pointed at templates:manifest, which only rewrites source/manifest.json and cannot repair entry.files. It now names template.json entry.files, which is the file that has to change.
Validation: npm run templates:check -- --final-tree passes. All nine editable templates carry entry.files, 116 entries in total, and every one already matches, so the check is green before it protects anything. tests/template-library.test.ts passes 18/18 and npm run check passes.
* feat: read npm templates from latest GitHub main
* fix: satisfy backend type checks for GitHub catalogs
* fix: keep built-in template detail local for GitHub catalogs
Resolve built-in template IDs before refreshing the remote GitHub catalog so bundled
examples answer without any network request, matching the previous get() path.
Align the public openmotion_list_templates and openmotion_get_template descriptions
and the phase-one tool documentation with the NPM GitHub main source, and make the
new catalog test use oss tmpdir() like the rest of the suite.
Generated-By: looper 0.16.2 (runner=fixer, agent=pi)
* fix: address template catalog review feedback
* feat: serve npm templates through hosted main snapshots
* fix: verify installed template flows and hydrate optional project assets
* docs: authorize automatic main template synchronization
* test: align publication policy checks with automatic template sync
* fix: keep the released template catalog at a versionless URL
---------
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
Move optional repository media to LFS with downloads skipped by default.
Add trusted manual PR media preparation with immutable R2 uploads, public hash verification and cleanup commits on the original PR before Squash merge.