rootiest
a018d7997c
fix(agents-vault): dedupe local-slug formula, drop dead code, widen migration coverage
...
The slug-migration fallback (used when there is no live symlink to read
the previous slug from) recomputed the local-* candidate by lowercasing
the basename only, while _agents_repo_slug sanitizes it. The two formulas
had drifted, so the fallback silently found nothing for any project
directory whose basename needed sanitizing.
Extract the formula into a single private helper,
_agents_repo_local_slug, and have both _agents_repo_slug's no-remote
branch and agents-vault's migration fallback call it, so there is one
place left to drift.
Also drop two dead lines the review flagged: an unused local,
and an unreachable mkdir -p (path dirname ...) — slugs never contain a
path separator, so dirname always resolves to a directory that already
exists by that point.
Widen migration test coverage: the current-entry-present-but-empty case,
a remote URL rewrite, a remote removal, and a dirty-basename fallback
test that fails without the sanitization fix and passes with it.
2026-09-03 18:56:45 -04:00
..
2026-08-17 21:23:12 -04:00
2026-07-26 16:41:57 -04:00
2026-08-18 16:46:46 -04:00
2026-07-26 16:41:57 -04:00
2026-08-18 16:46:46 -04:00
2026-07-26 16:41:57 -04:00
2026-08-31 21:56:45 -04:00
2026-07-26 16:41:57 -04:00
2026-08-31 21:56:45 -04:00
2026-07-26 16:41:57 -04:00
2026-08-18 03:01:22 -04:00
2026-08-17 20:15:29 -04:00
2026-08-31 21:56:45 -04:00
2026-08-17 20:19:42 -04:00
2026-08-17 20:46:55 -04:00
2026-08-18 02:22:31 -04:00
2026-07-26 16:41:57 -04:00
2026-08-31 21:56:45 -04:00
2026-07-26 16:41:57 -04:00
2026-08-21 00:46:29 -04:00
2026-08-31 21:56:45 -04:00
2026-07-26 16:41:57 -04:00
2026-08-31 21:56:45 -04:00
2026-07-26 16:41:57 -04:00
2026-08-31 21:56:45 -04:00
2026-09-03 18:56:44 -04:00
2026-09-03 18:56:45 -04:00
2026-09-03 18:56:45 -04:00
2026-09-03 18:56:45 -04:00
2026-09-03 18:56:44 -04:00
2026-09-03 18:56:45 -04:00
2026-07-26 16:41:57 -04:00
2026-08-31 21:56:45 -04:00
2026-08-14 16:42:37 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 16:41:57 -04:00
2026-08-14 16:42:37 -04:00
2026-08-14 16:42:37 -04:00
2026-07-26 16:41:57 -04:00
2026-08-21 00:46:29 -04:00
2026-08-21 00:46:29 -04:00
2026-08-31 21:56:45 -04:00
2026-08-31 21:56:45 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 16:41:57 -04:00
2026-08-31 21:56:45 -04:00
2026-09-03 18:56:45 -04:00
2026-09-03 18:56:45 -04:00
2026-08-17 21:12:56 -04:00
2026-07-26 03:44:03 -04:00
2026-08-22 00:19:43 -04:00
2026-08-17 21:12:56 -04:00
2026-07-26 16:41:57 -04:00
2026-08-22 00:19:43 -04:00
2026-07-26 16:41:57 -04:00
2026-08-17 21:12:56 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 03:47:25 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 03:44:03 -04:00
2026-08-17 21:12:56 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 16:41:57 -04:00
2026-09-01 02:11:53 +00:00
2026-08-22 00:19:43 -04:00
2026-07-26 16:41:57 -04:00
2026-08-31 21:56:45 -04:00
2026-07-26 03:47:25 -04:00
2026-08-22 00:19:43 -04:00
2026-08-22 00:19:43 -04:00
2026-08-22 00:19:43 -04:00
2026-07-26 04:16:31 -04:00
2026-08-17 21:12:56 -04:00
2026-07-26 03:47:25 -04:00
2026-08-22 00:19:43 -04:00
2026-07-27 20:04:37 -04:00
2026-07-27 20:04:37 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 03:44:03 -04:00
2026-07-27 20:04:37 -04:00
2026-07-27 20:04:37 -04:00
2026-08-17 21:37:35 -04:00
2026-08-31 21:56:45 -04:00
2026-07-27 20:04:37 -04:00
2026-07-26 04:16:31 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 16:41:57 -04:00
2026-08-17 21:49:45 -04:00
2026-08-31 21:56:45 -04:00
2026-07-26 16:41:57 -04:00
2026-08-02 04:40:07 -04:00
2026-08-31 21:56:45 -04:00
2026-08-14 16:42:37 -04:00
2026-07-26 03:44:03 -04:00
2026-08-17 21:12:56 -04:00
2026-07-26 04:02:57 -04:00
2026-07-26 03:44:03 -04:00
2026-08-17 21:49:45 -04:00
2026-08-17 21:12:56 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 03:44:03 -04:00
2026-08-02 05:21:29 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 03:44:03 -04:00
2026-08-22 00:19:43 -04:00
2026-08-17 21:12:56 -04:00
2026-08-31 21:56:45 -04:00
2026-08-22 00:19:43 -04:00
2026-08-22 00:19:43 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 16:41:57 -04:00
2026-08-17 21:12:56 -04:00
2026-08-22 00:19:43 -04:00
2026-08-22 00:19:43 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 03:44:03 -04:00
2026-08-31 21:56:45 -04:00
2026-07-26 03:44:03 -04:00
2026-08-31 21:56:45 -04:00
2026-07-26 03:44:03 -04:00
2026-08-22 00:19:43 -04:00
2026-08-31 21:56:45 -04:00
2026-08-17 21:12:56 -04:00
2026-08-17 21:12:56 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 03:44:03 -04:00
2026-08-22 04:24:44 +00:00
2026-07-26 16:41:57 -04:00
2026-08-31 21:56:45 -04:00
2026-08-22 00:19:43 -04:00
2026-08-17 21:49:45 -04:00
2026-07-27 20:04:37 -04:00
2026-08-17 21:49:45 -04:00
2026-08-17 21:12:56 -04:00
2026-07-26 03:44:03 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 16:41:57 -04:00
2026-07-26 03:44:03 -04:00
2026-08-17 21:49:45 -04:00
2026-07-26 03:44:03 -04:00
2026-08-17 21:12:56 -04:00
2026-08-17 21:49:45 -04:00
2026-07-26 03:44:03 -04:00
2026-08-22 00:19:43 -04:00
2026-08-22 00:19:43 -04:00
2026-08-17 21:12:56 -04:00
2026-07-27 20:04:37 -04:00