allod skill: derive the default skill sources from the registry's memory flag #262
No reviewers
Labels
No labels
blocked
bug
decision
duplicate
enhancement
help wanted
invalid
landed?
question
ready-to-merge
stale
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/tools!262
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/skill-registry-default-sources"
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?
Closes allod/tools#259
Refs allod/memory#76
What
allod skillnow derives its default sources from the registry instead of the hardcodedallod/memoryid:--from, the CLI lists skills from everyscripts/repositories.jsonentry carrying"memory": true(allod/inventory#20) whose checkout exists under the work directory, walked in sorted registry-id order. Once a deployment registers its private memory fork with the same flag, its skills appear in the bare list and resolve forallod skill <name>with no extra flags.reposlists govern which machines clone which repos.allod/memorydefault remains: the id maps to its own checkout'sskills/directory.allod skillrun from~/worklists skills instead of scanning theallod/memorycheckout root (the old failure: every checkout-root subdirectory named on stderr, exit 1).skillShowalready resolved that way, and sorted registry-id order makes both deterministic.registryEntrygainsMemory bool.Explicit
--fromsemantics are unchanged.Risk
allod/memory. The oldTestSkillDefaultRefusesWhenRegistryLacksMemoryRepoassertion was updated accordingly.--from <registry-id>whose checkout is missing on disk now fails later, inreadSkills("cannot read skills directory …") rather than at resolution ("unknown skills target …") — same exit path, different message.Validation
go test ./cmd/allod/green,go vetclean,gofmtclean. New tests: two memory-marked entries list in sorted registry-id order with silent stderr; a missing checkout is skipped; a registry id that also exists as a relative directory resolves through the registry (t.Chdirreplica of the~/workcase); no memory-marked entries falls back toallod/memory; no skills on disk fails with the no-skills refusal; a duplicate name lists once andallod skill <name>resolves to the first source.allod skillfrom~/workand~/work/allodlists the six public skills with empty stderr; with a fixture registry marking a private forkmemory: true, its skill appears in the same list andallod skill <name>prints it. Ellipses remain until allod/memory#76 lands and checkouts pull.