tjhhhh_84378 on Discord (11-06): ego lite updated from 0.6.2.5 to 0.6.2.7, deleted Versions/0.6.2.5, and left its own ~/.local/share/ego/ active_version_dir naming it. The library's ego-browser, brought in sincedccfefdf7(#2635), links to ego's ~/.local/share/ego/ego-skills -> active_version_dir/Resources/ego-skills/ego-browser, so the whole chain led nowhere and the skill was lost, while 0.6.2.7 had it complete. Who owns which link: ~/.local/share/ego/ego-skills, active_version_dir and the framework's Versions/* are ego's; magpie only reads them. magpie writes the library's own link (library/skills/ego-browser) and the agents' links to it. The stale pointer is ego's, but magpie lost the skill with a newer version on disk.557f51dbfmended a library link that points straight into Versions/<old>, but movedVersion looked only at the link's own target: for ego-skills the first missing part is not a version name, so nothing was found. followMovedSkills (skill_moved.go) now, for a dangling library link whose target isn't in a version folder, follows the links on the way as far as they are there (linkedEnd) and asks movedVersion of where they end: Current/current/latest when that leads to the skill, else the highest version beside the deleted one with a SKILL.md there. The library links to that folder, and keeps the app's steady link as the new Source.Via. Once the steady link leads to a SKILL.md again (ego or the user mended it), the library links through it once more and Via is cleared. ego's links are never written. With no other version on disk the link is kept as it was and the skill is shown missing, as before. Old imports: a skill linked straight into Versions/<old> was already mended by 557f51dbf; one linked through ego's link (sincedccfefdf7) is mended by this on the next read of the Library page or the next sync. No re-import needed. Agents that read ~/.agents/skills directly still see ego's own entry there, which is the user's/ego's and is left alone. Tests (skill_moved_test.go), the reporter's layout: egoLite at 0.6.2.5, brought in through ~/.agents/skills/ego-browser -> ego-skills, then 0.6.2.7 added, 0.6.2.5 deleted, active_version_dir and Versions/Current left on 0.6.2.5: - TestSteadyLinkLeftOnDeletedVersion: Read shows it not missing, it reads as 0.6.2.7's, active_version_dir is unchanged, Via is ego-skills; after active_version_dir is pointed at 0.6.2.7, a Sync links through ego-skills again with no Via. - TestSteadyLinkLeftOnDeletedVersionNoOther: no other version, shown missing, link left as it was. Broken by hand: - linkedEnd step turned off: TestSteadyLinkLeftOnDeletedVersion red (Missing:true), i.e. red on the old code. - the go-back-to-Via case turned off: red, still linked to 0.6.2.7. Run (mote via mote-run): gofmt -l clean; go vet -tags nogui ./internal/library for darwin, GOOS=linux and GOOS=windows clean; go test -tags nogui -count=1 ./internal/library ok (91s). Windows box (win-run): SteadyLink, OldImport and ImportedSkill tests pass (junctions). Full suite after the push, recorded on the tag's follow-up. Not tried: the reporter's machine or a real ego lite update; the layout is the #2635 fixture with the paths from their message. Whether ego's Versions/Current also stayed on 0.6.2.5 isn't known; both are covered. Reported-by: tjhhhh_84378
Subsystem design references
These pages describe current responsibilities, runtime paths, state, and contracts. Start with the subsystem relevant to your task, then follow its source links to verify the implementation you change.
| Subsystem | Reference |
|---|---|
| Built-in subscriptions moving to plugins | Provider and plugin ownership |
| Built-in plugins: registry, lifecycle, plugins.yml, presets, settings schemas, the window's kernel (slots, error boundary, kit) | Plugin runtime |
| Plugins that run on the gateway's requests and replies | Gateway middleware |
| Tools that plugins give, offered to every agent as an MCP server | Plugin tools |
| Plugins that await context recall and observe completed replies | Asynchronous gateway request hooks |
| Claude subscription turns across Claude Code runs | Claude subscription bridge |
| How the gateway picks a provider, key or account, and falls back | Gateway routing and fallback |
| Gateway Session Aggregation | Gateway Session Aggregation |
| Connecting an agent's config to the gateway, drift, disconnect, WSL twins | Agent wiring |
| Providers, keys, subscription accounts, refresh and allowance | Providers and accounts |
| Instructions, MCP servers, skills and RTK written into agents | Library |
| One MCP server, magpie, given to every agent in place of the Library's servers | MCP router |
Tray, panel, window, magpie web and the page's JSON API |
GUI app shell |
| Encrypted backups and setup synchronization over WebDAV, S3 or GitHub | Sync and backup |
A subsystem can span several packages or repositories. Its reference describes the behavior those parts provide together; it does not need to list every function.
Maintain a reference
Update the owning reference in the same PR when a change alters a documented responsibility, interface, state transition, runtime path, compatibility rule, or failure behavior. An internal refactor that preserves these contracts does not require a prose change.
Keep each fact in one reference and link to it from agent instructions or other pages. Link to source files and named symbols rather than copying implementation details that change frequently. Explain field meanings and constraints that signatures alone do not express.
For a new reference, include the responsibilities and boundaries, source of truth, main runtime paths, state transitions, important constraints, and existing verification commands. Include failure and compatibility behavior where relevant. Document current behavior separately from proposed changes; the proposal belongs in its issue or PR.
Describe a PR's semantic changes
For each affected subsystem, explain the observable change with its trigger and before/after behavior. Include changes to interfaces, state, compatibility, and failure behavior when relevant. Link the affected reference, implementation, and verification evidence. State when a refactor preserves the documented behavior.
For example, a change to plugin adoption should explain which migration state and account condition trigger it, which implementation handles requests before and after adoption, and which test exercises that transition.
This is an author-provided explanation that a reviewer verifies against the diff and surrounding code. It is not an automatically proven compatibility verdict.
Review a change
- Identify the affected subsystem and the actual runtime path, including plugin or built-in ownership.
- Compare the claimed before/after behavior with the base and head implementation. Trace relevant callers and state transitions beyond the changed lines.
- Check that changed contracts appear in the owning reference and that source links still resolve.
- Check that the cited tests or runtime evidence exercise the claimed behavior. Report checks that were not run.
A documentation update alone does not prove the implementation. Existing tests and runtime evidence remain necessary for behavior changes.