{"record":{"id":"77a32fc30f7f8f45","repo":"multica-ai/multica","slug":"w-skill-q-id-s-d-bytes-after-s-w","errorCode":null,"errorMessage":"%w: skill %q (id=%s, %d bytes) after %s: %w","messagePattern":"%w: skill %q \\(id=(.+?), (.+?) bytes\\) after (.+?): %w","errorType":"exception","errorClass":"errSkillBundleUnavailable","httpStatus":null,"severity":"error","filePath":"server/internal/daemon/daemon.go","lineNumber":5896,"sourceCode":"\t// Resolve each missing bundle in its own request, caching it the moment it\n\t// arrives. The download is the slow part on jittery links, so fetching the\n\t// whole set in one atomic body read meant a single timeout discarded all\n\t// progress and the cache never converged — every dispatch re-downloaded\n\t// everything and timed out again. Per-skill, each download fits its own\n\t// size-scaled deadline and is persisted independently, so even a dispatch\n\t// that ultimately fails leaves the skills it did fetch cached for the next\n\t// one. (GitHub #4505 / MUL-3650)\n\tfor _, ref := range misses {\n\t\tstarted := time.Now()\n\t\tbundle, err := d.resolveSkillBundle(ctx, task, ref)\n\t\tif err != nil {\n\t\t\t// Name the skill, its declared size, and how long we actually\n\t\t\t// waited. The bare \"resolve skill bundles: context deadline\n\t\t\t// exceeded\" this replaced was indistinguishable from a generic\n\t\t\t// network fault, and cost a community thread three hours of\n\t\t\t// guesswork (MUL-5370): size + elapsed separate \"this bundle is\n\t\t\t// too big for the link\" from \"the link is dead\".\n\t\t\treturn fmt.Errorf(\"%w: skill %q (id=%s, %d bytes) after %s: %w\",\n\t\t\t\terrSkillBundleUnavailable, ref.Name, ref.ID, ref.SizeBytes,\n\t\t\t\ttime.Since(started).Round(time.Millisecond), err)\n\t\t}\n\t\tresolved[skillRefKey(bundle.Source, bundle.ID)] = bundle\n\t}\n\n\tskills := make([]SkillData, 0, len(task.Agent.SkillRefs))\n\tfor _, ref := range task.Agent.SkillRefs {\n\t\tbundle, ok := resolved[skillRefKey(ref.Source, ref.ID)]\n\t\tif !ok {\n\t\t\treturn fmt.Errorf(\"skill bundle missing after resolve: skill_id=%s source=%s hash=%s\", ref.ID, ref.Source, ref.Hash)\n\t\t}\n\t\tskills = append(skills, bundle)\n\t}\n\ttask.Agent.Skills = skills\n\treturn nil\n}\n","sourceCodeStart":5878,"sourceCodeEnd":5914,"githubUrl":"https://github.com/multica-ai/multica/blob/2c0912b6ec764b373d44eeea1e80f0d9f11ab417/server/internal/daemon/daemon.go#L5878-L5914","documentation":"Error \"%w: skill %q (id=%s, %d bytes) after %s: %w\" thrown in multica-ai/multica.","triggerScenarios":"Thrown at server/internal/daemon/daemon.go:5896 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Clear the skill bundle cache for the affected skill and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2c0912b6ec764b373d44eeea1e80f0d9f11ab417","analyzedAt":"2026-08-15T13:25:18.241Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}