fix(provision): resolve template-asset fetch by TEMPLATE not runtime (fixes seo-agent skills, #32) #2991
Reference in New Issue
Block a user
Delete Branch "fix/template-asset-fetch-by-template-not-runtime"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ROOT CAUSE of SEO agents having no skills. The RFC#2843 fetch identity used payload.Runtime, but templateRepoByName is keyed by TEMPLATE NAME. A variant (seo-agent runs runtime=claude-code, template=seo-agent) resolved templateRepoByName[claude-code] = claude-code-default (no agent-skills/seo-all) → seo-agent skills NEVER fetched; config+prompts came via legacy SM path, masking it. Fix: resolve from payload.Template first, fall back to runtime. Verified: fetch yields 504KB incl 77 agent-skills files (under 16MiB cap). Adds TestTemplateIdentityForTemplateOrRuntime regression gate. Found via code-reading after box-log access was blocked.
core-devops referenced this pull request2026-06-17 04:37:40 +00:00