Refeccd on X said eee217712 (v0.1.4213) didn't fix "skills from a grouped
git repository get the repository's suffix". Reproduced in a sandbox HOME
three ways the fix left open:
- Copies an earlier magpie had already suffixed (blog-team beside blog)
were folded only by foldBeside in a change. Upgrading and opening the
Library changed nothing; Read, CheckSkills and Read again all kept them.
readView now folds them too, when any skill has Called and a remote
source, saves and syncs the agents in the same read, so a folded copy's
links don't point at a removed folder. Sync problems join the view's.
- A GitHub repository added as owner/repo and then by its git address
(git@github.com:owner/repo.git) was two sources: sameRepo and
fromSameSource compared Kind first, so every skill went in again as
name-owner. Both now match github and git sources through remoteRepo.
foldBeside folds a copy from the same folder of the same repository
(before only one whose target was Gone and at another path).
- gitRepoOf looked at a skill's folder and three above it, while a probe
finds skills four folders into a repository: a checkout's
skills/team/writing/poem wasn't traced, and an edited poem went in as
poem-sub. It now looks at the folder and four above it.
Existing suffixed copies: folded on the next read of the Library page
(or next change); the copy's files, renamed, replace the skill's, its
agents are added, and both old folders go to the backups.
Tests (skill_group_suffix_test.go), each broken by hand:
- TestSkillBesideItselfFoldsOnRead: red with the readView fold removed.
- TestGitHubRepoByGitAddressIsHad: red with sameRepo kept same-kind.
- TestGitHubCopyByGitAddressFoldsBack: red with each of the above and
with foldBeside's old condition.
- TestCheckoutSkillFourDeepIsTraced: red with gitRepoOf at 4.
Docs: docs/subsystems/library.md's "Skills installed together" no longer
says nothing is renamed after the fact; it describes sameRepo, movedIn,
besideName, followsHere's depth and foldBeside on read.
Run on mica at 168d6fb13 (on origin/main ab7cb5537): gofmt -l internal
clean; go vet ./..., GOOS=windows go vet ./..., GOOS=linux go vet -tags
nogui ./... ok; go test -timeout 45m ./... ok, 101 packages, no FAIL
(internal/library 298s). An earlier full run at 1bfdeab52 was red in two
of these new tests only: other tests mark owner/repo tooBig for the whole
run, so the fixture now uses its own repository (refeccd/grouped-skills).
No GUI file changed and no GUI test was run: the change is Go only.
Not tried: a real GitLab or intranet repository, and the reporter's own
layout (the reply gave no detail); a real GitHub repo by SSH address
(the test maps it to a local repository through git insteadOf).