@jimhoyd/urlcode 0.4.0-alpha.2 → 0.4.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/.claude/skills/urlcode-authoring/SKILL.md +17 -19
  2. package/.claude/skills/urlcode-operations/SKILL.md +9 -9
  3. package/.claude-plugin/marketplace.json +1 -1
  4. package/CONTRIBUTING.md +20 -16
  5. package/README.md +44 -54
  6. package/ROADMAP.md +61 -376
  7. package/dist/BUILD-MANIFEST.json +15 -15
  8. package/dist/agents-guide.js +6 -6
  9. package/dist/build-static.js +2 -0
  10. package/dist/cli.js +3 -3
  11. package/dist/explain-cli.js +4 -2
  12. package/dist/explain.js +7 -1
  13. package/dist/extensions.js +1 -1
  14. package/dist/manifest.js +7 -1
  15. package/dist/mcp-authoring.js +2 -2
  16. package/dist/mcp.js +1 -1
  17. package/dist/policies.js +3 -1
  18. package/dist/prerender.js +4 -0
  19. package/dist/readiness.js +3 -0
  20. package/dist/route-diff.js +12 -5
  21. package/dist/types/explain.d.ts +6 -0
  22. package/dist/types/extensions.d.ts +1 -1
  23. package/dist/types/manifest.d.ts +5 -1
  24. package/dist/types/readiness.d.ts +2 -0
  25. package/dist/types/types.d.ts +8 -1
  26. package/dist/types.js +8 -1
  27. package/dist/typescript-authoring.js +18 -7
  28. package/docs/AI-AUTHORING.md +10 -6
  29. package/docs/ASSETS.md +2 -1
  30. package/docs/AUTH-BACKUP.md +32 -0
  31. package/docs/BEST-PRACTICES.md +17 -9
  32. package/docs/CAPABILITIES.md +1 -1
  33. package/docs/CI-FOLLOWUP-2026-09-19.md +97 -0
  34. package/docs/CI-RELEASE-AUDIT-2026-09-19.md +322 -0
  35. package/docs/CI.md +8 -3
  36. package/docs/CODEBASE-AUDIT-2026-09-20.md +278 -0
  37. package/docs/DEVELOPMENT-PIPELINE.md +181 -0
  38. package/docs/EXTENSIONS.md +15 -5
  39. package/docs/FRAMEWORK.md +22 -18
  40. package/docs/FUNCTION-SECURITY.md +44 -0
  41. package/docs/LOCAL-DEVELOPMENT.md +3 -0
  42. package/docs/OPEN-DECISIONS.md +184 -212
  43. package/docs/OPERATIONAL-PROOF.md +3 -3
  44. package/docs/OPERATIONS.md +3 -3
  45. package/docs/POLICIES.md +13 -5
  46. package/docs/PRERENDER.md +23 -11
  47. package/docs/PROJECT-DIRECTION.md +3 -3
  48. package/docs/READINESS.md +6 -2
  49. package/docs/README.md +18 -41
  50. package/docs/RELEASE-0.4.0-alpha.3.md +50 -0
  51. package/docs/RELEASE-READINESS.md +6 -6
  52. package/docs/RELEASE-SECURITY.md +68 -168
  53. package/docs/RESILIENCE.md +3 -3
  54. package/docs/ROUTING.md +3 -4
  55. package/docs/SECURITY-AUDIT.md +2 -2
  56. package/docs/SPECIFICATION.md +7 -5
  57. package/docs/SPIKE-AI-FRAMEWORK-BENCHMARK.md +6 -5
  58. package/docs/SPIKE-BUSINESS-SUITE.md +14 -6
  59. package/docs/SPIKE-CORE-LAYERING.md +48 -17
  60. package/docs/SPIKE-DEFAULT-TRUST-MODEL.md +7 -5
  61. package/docs/SPIKE-LAMBDA-COMPILE.md +8 -0
  62. package/docs/STATIC.md +14 -3
  63. package/docs/TOOLING.md +4 -3
  64. package/docs/TYPESCRIPT-AUTHORING.md +6 -1
  65. package/docs/VERSION-ALIGNMENT.md +46 -205
  66. package/docs/archive/2026-09-19/EXTENSION-IMPLEMENTATION.md +68 -0
  67. package/docs/archive/2026-09-19/MANAGEMENT-SECURITY.md +102 -0
  68. package/docs/{NEXT-PHASE-PLAN.md → archive/2026-09-19/NEXT-PHASE-PLAN.md} +15 -5
  69. package/docs/{NEXT-STEPS.md → archive/2026-09-19/NEXT-STEPS.md} +15 -3
  70. package/docs/archive/2026-09-19/OPEN-DECISIONS.md +277 -0
  71. package/docs/archive/2026-09-19/RELEASE-SECURITY.md +186 -0
  72. package/docs/archive/2026-09-19/ROADMAP.md +386 -0
  73. package/docs/{SPIKE-EXTENSION-MODEL.md → archive/2026-09-19/SPIKE-EXTENSION-MODEL.md} +10 -0
  74. package/docs/{SPIKE-EXTENSIONS.md → archive/2026-09-19/SPIKE-EXTENSIONS.md} +25 -14
  75. package/docs/archive/2026-09-19/SPIKE-MONOREPO.md +776 -0
  76. package/docs/{USABILITY-REVIEW.md → archive/2026-09-19/USABILITY-REVIEW.md} +12 -2
  77. package/docs/archive/README.md +27 -0
  78. package/docs/policies/agents.md +1 -1
  79. package/docs/policies/compression.md +3 -2
  80. package/docs/policies/security.md +3 -2
  81. package/examples/assets/example.yaml +1 -1
  82. package/examples/cookbook/route-index.json +1 -1
  83. package/examples/cookbook/routes/middleware.yaml +1 -1
  84. package/examples/prerender/README.md +14 -6
  85. package/examples/prerender/functions/page.mjs +4 -2
  86. package/examples/prerender/middleware/template.mjs +1 -1
  87. package/examples/prerender/prerender.mjs +1 -1
  88. package/examples/prerender/urlcode.yaml +8 -4
  89. package/llms-full.txt +117 -45
  90. package/llms.txt +5 -4
  91. package/package.json +24 -4
  92. package/packaging/claude-plugin/.claude-plugin/plugin.json +2 -2
  93. package/packaging/claude-plugin/skills/urlcode-authoring/SKILL.md +17 -19
  94. package/packaging/claude-plugin/skills/urlcode-operations/SKILL.md +9 -9
  95. package/recipes/authenticated-json-api/README.md +4 -3
  96. package/recipes/authenticated-json-api/functions/profile.mjs +2 -1
  97. package/recipes/authenticated-json-api/recipe.yaml +1 -1
  98. package/recipes/contact-form/functions/contact.mjs +2 -1
  99. package/recipes/contact-form/recipe.yaml +2 -2
  100. package/recipes/cors-api/README.md +2 -2
  101. package/recipes/cors-api/recipe.yaml +1 -1
  102. package/recipes/health-page/README.md +1 -1
  103. package/recipes/json-api/README.md +1 -1
  104. package/recipes/json-api/recipe.yaml +3 -3
  105. package/recipes/middleware/README.md +8 -4
  106. package/recipes/protected-download/README.md +1 -1
  107. package/recipes/protected-download/recipe.yaml +1 -1
  108. package/recipes/static-plus-api/README.md +2 -2
  109. package/recipes/static-plus-api/public/index.html +1 -1
  110. package/recipes/static-plus-api/recipe.yaml +1 -1
  111. package/recipes/static-plus-api/urlcode.yaml +1 -1
  112. package/recipes/typescript/recipe.yaml +4 -4
  113. package/skills/urlcode/SKILL.md +6 -6
  114. package/starters/default/AGENTS.md +6 -6
  115. package/docs/SPIKE-MONOREPO.md +0 -322
@@ -1,322 +0,0 @@
1
- # Spike: consolidating core, auth, admin, ui (and the two pending extractions) into one repo
2
-
3
- Status: proposal, nothing implemented, no repo touched. Drafted at the requester's
4
- explicit direction to produce a plan document only — see "What this is not"
5
- below. Treat this the same way as the other `SPIKE-*.md` documents in this
6
- directory: a recorded decision trail for the maintainer to accept, amend or
7
- reject, not committed scope.
8
-
9
- ## What this is not
10
-
11
- This is not a recommendation to touch any of `urlcode`, `urlcode-auth`,
12
- `urlcode-admin` or `urlcode-ui` tonight. No git history has been merged, no
13
- package has been moved, no CI has been reconfigured. Everything below is a
14
- sequenced plan to review, not a changelog of what happened.
15
-
16
- ## The problem this is answering
17
-
18
- Four repos (`urlcode`, `urlcode-auth`, `urlcode-admin`, `urlcode-ui`) already
19
- coordinate tightly — `auth`/`admin`/`ui` each pin an exact core revision in
20
- their own `peers.json`, and `docs/FRAMEWORK.md` describes them as one
21
- composed product, not four independent ones. Concretely observed cost of that
22
- coordination happening across four repos, from an evening spent reading all
23
- four:
24
-
25
- - **Observed and since fixed, which is the point rather than a counterpoint.**
26
- When core landed trusted-by-default execution (`b3bde4e`), `urlcode-auth`
27
- and `urlcode-admin` were both still pinning core at `50790d3a`
28
- (`0.4.0-alpha.1`), predating it, and `urlcode-auth/SECURITY.md` still
29
- carried a sentence ("sandboxed guest code") that assumed the old model.
30
- Both have since been corrected — both repos now pin `d5e86017`, and that
31
- sentence is gone. Nothing was ever broken in production by either.
32
- The cost this plan is describing is not "drift goes unnoticed forever"; it
33
- is that catching and fixing it took a manual pass across three separate
34
- repositories, with nothing structural to catch it automatically — no
35
- mechanism flags a downstream repo's prose or pin as stale when an upstream
36
- contract changes underneath it. That pass has to be repeated by hand on
37
- every future contract change, for every downstream repo, indefinitely.
38
- Consolidation removes the class of work, not just this instance of it.
39
- - Two more repos, planned in `docs/SPIKE-CORE-LAYERING.md` and originally
40
- drafted here as "not yet created," turned out to already exist by the time
41
- this doc was reviewed: `urlcode-dynamic-link` (7 commits, Phase 2 already
42
- implemented, `v0.1.0-alpha.1` released) and `urlcode-middleware` (5 commits,
43
- implemented, `v0.1.0-alpha.1` released), each with its own real commit
44
- history, release workflow and open issues. That raises the
45
- actively-coordinated repo count from four to six today, not hypothetically
46
- — before this plan even accounts for `urlcode-template`, `urlcode-short`,
47
- `urlcode-docs`, `urlcode-cloud` and `homebrew-urlcode`. It also means
48
- "create them directly in the monorepo" (this doc's original framing) is no
49
- longer available for these two — they now need the same history-preserving
50
- migration as `auth`/`admin`/`ui`, covered in "Migration mechanics" below.
51
-
52
- None of this is a defect in any one repo. It's the accumulating tax of
53
- coordinating tightly-coupled, independently-versioned packages across
54
- separate git histories, issue trackers and CI pipelines by hand.
55
-
56
- ## Scope: what moves, what doesn't
57
-
58
- Decided (see conversation this spike is drafted from):
59
-
60
- **In scope — six existing repos, all with real history, folded into one
61
- repo as workspace packages:**
62
-
63
- | Repo today | Becomes |
64
- |---|---|
65
- | `urlcode` (core) | `packages/core` (or repo root stays core-shaped, TBD in "Layout options" below) |
66
- | `urlcode-auth` | `packages/auth` |
67
- | `urlcode-admin` | `packages/admin` |
68
- | `urlcode-ui` | `packages/ui` |
69
- | `urlcode-dynamic-link` (real repo, `v0.1.0-alpha.1` released) | `packages/dynamic-link` |
70
- | `urlcode-middleware` (real repo, `v0.1.0-alpha.1` released) | `packages/middleware` |
71
-
72
- **Explicitly out of scope, each for a distinct, real reason — not just "left
73
- for later":**
74
-
75
- - **`homebrew-urlcode`** — cannot move. Homebrew tap conventions require a
76
- repo literally named `homebrew-<name>`; this is an external platform
77
- constraint, not a project choice.
78
- - **`urlcode-docs`** — `AGENTS.md` is explicit that public documentation is
79
- "authored there directly," deliberately separate from code, "no longer
80
- generated from this repository." Folding it in would reverse a stated,
81
- recent decision, not follow one.
82
- - **`urlcode-cloud`** — a separately-lifecycled hosted product (private
83
- repo); its release cadence and access model have no reason to match a
84
- library monorepo's.
85
- - **`urlcode-template` / `urlcode-short`** — these are example/starter
86
- projects, not library packages. Mixing "things you `npm install`" with
87
- "things you `git clone` as a starting point" in one workspace is a
88
- different kind of repo than what this spike is solving for.
89
-
90
- ## Why six, and not four
91
-
92
- `link` and `middleware` were extracted *out* of core specifically so core
93
- stays "the smallest thing that is still a complete product on its own"
94
- (`docs/SPIKE-CORE-LAYERING.md`). Both are now real, shipped repos: they
95
- already paid the coordination cost this spike is trying to remove —
96
- `urlcode-dynamic-link`'s and `urlcode-middleware`'s own `peers.json`-style
97
- pins against core, their own CI, their own docs that can drift the same way
98
- `urlcode-auth/SECURITY.md` already did. Folding them into this consolidation
99
- alongside `auth`/`admin`/`ui` stops that from compounding further, rather
100
- than leaving two more repos outside the fix.
101
-
102
- ## Layout: decided — option A
103
-
104
- **A. Root repo is core, extensions live under `packages/`.**
105
- ```
106
- urlcode/
107
- src/ # core, unchanged in place
108
- packages/
109
- auth/
110
- admin/
111
- ui/
112
- dynamic-link/
113
- middleware/
114
- ```
115
- Lowest-friction for core's own history (nothing moves), but makes "core" and
116
- "the monorepo" the same name, which may read as core absorbing the
117
- extensions rather than the extensions and core coexisting as peers — worth a
118
- naming discussion given `AGENTS.md`'s "Core never imports them" independence
119
- framing.
120
-
121
- **B. Everything moves under `packages/`, including core — considered, not
122
- chosen.** Would have been symmetric and avoided the naming overlap noted
123
- above, at real cost: core's own history would need to move too, and every
124
- external reference to `urlcode`'s current repo path (`docs/`, READMEs
125
- elsewhere, the `@jimhoyd/urlcode` package's repository field, CI badges,
126
- this evening's own `peer-camera`/`peer-eyes` citations) would need updating.
127
- Decided against for exactly that reason.
128
-
129
- **Decided: (A).** Core's repo and history stay exactly where they are; the
130
- six packages move to it (five extensions plus core itself now living in the
131
- same repo as a `packages/*` sibling). The one open item this still leaves,
132
- worth a short naming discussion rather than blocking anything: "core" and
133
- "the consolidated repo" now share a name, which could read as core absorbing
134
- the extensions rather than the two coexisting as independent packages
135
- (`AGENTS.md`'s "Core never imports them" framing still holds in code either
136
- way — this is a naming-perception question, not a contract question).
137
-
138
- ## Migration mechanics, per repo
139
-
140
- For each of `urlcode-auth`, `urlcode-admin`, `urlcode-ui`,
141
- `urlcode-dynamic-link` and `urlcode-middleware` — all six now real repos
142
- with real history:
143
-
144
- 0. **Drain open pull requests first — a hard precondition, not a courtesy.**
145
- Before a repo is migrated, it must have zero open PRs (and no unmerged
146
- release branch). A PR open against the source repo at the moment its code
147
- moves is stranded: its branch targets a `main` that no longer receives
148
- code, its diff is written against paths (`src/…`) that no longer exist at
149
- that location, and re-creating it against the consolidated repo means
150
- rebasing onto a different repository and a new path prefix
151
- (`packages/<name>/src/…`) by hand. GitHub cannot retarget a PR across
152
- repositories. So for each repo, in order: stop merging new work, merge or
153
- close what is open, confirm `gh pr list`/the API reports none, then
154
- migrate. Any PR that cannot be merged in time should be closed with its
155
- branch preserved and re-opened against the consolidated repo afterwards —
156
- a deliberate choice recorded on the PR, not an accident discovered later.
157
- This is also the real reason to pick a quiet window for the migration
158
- rather than a busy one: the cost of this step scales with how much is
159
- in flight.
160
- 1. **Preserve history with `git subtree add` or `git filter-repo` +
161
- merge**, not a fresh copy — so `git log`/`git blame` on
162
- `packages/auth/src/auth.ts` still resolves to the real authorship history
163
- from `urlcode-auth`, and so a future "actually, let's give this its own
164
- repo back" is a clean `git filter-repo` extraction, not archaeology.
165
- `git subtree` is the lower-risk default (reversible, no force-push
166
- required on the source repos); `git filter-repo` gives cleaner resulting
167
- history at the cost of being a one-way rewrite of the joining repo's
168
- local copy (the original `urlcode-auth` GitHub repo is untouched either
169
- way — this only rewrites what gets pulled in).
170
- 2. **npm workspace restructuring**: `package.json` at the monorepo root gets
171
- `"workspaces": ["packages/*"]` (the same shape `peer-camera` already
172
- uses); each `packages/<name>/package.json` keeps its own name/version,
173
- independently publishable — this is what preserves "independently
174
- versioned packages" as a property, not something this migration gives up.
175
- **Decided: [Changesets](https://github.com/changesets/changesets) for the
176
- release flow, not Nx or Turborepo.** A changeset is a small, bounded,
177
- git-diffable markdown file (package name + semver bump + description) —
178
- cheap and low-risk for an agent or a human to generate correctly, easy
179
- for CI to verify mechanically ("does every touched package have one"),
180
- and it's the deliberate checkpoint that stops local workspace-linked
181
- development (testing against a sibling package's unreleased state, which
182
- is now the default once auth/admin/ui/dynamic-link/middleware sit next to
183
- core) from silently becoming a real release. Nx/Turborepo were considered
184
- and set aside: both add a much larger, more inference-heavy configuration
185
- surface (task graphs, remote caching semantics) that's a bigger, more
186
- opaque thing to get wrong than this repo's six packages currently need —
187
- plain `npm test -w packages/auth`-style workspace scoping already covers
188
- what this size of repo actually requires. Revisit only if the package
189
- count grows enough that rebuild/retest time becomes a real problem.
190
- 3. **`peers.json` becomes unnecessary for the six that moved** — a
191
- workspace package can depend on a sibling workspace package directly
192
- (`"@jimhoyd/urlcode": "workspace:*"` or npm's equivalent), which is
193
- inherently always in sync, no separate pin file, no drift possible by
194
- construction. `peers.json`-the-mechanism might still matter if any
195
- *external* consumer needs a reviewed-revision pin story — worth deciding
196
- explicitly rather than silently dropping the safeguard.
197
- 4. **CI consolidation**: one `verify.yml` (or similar) with
198
- path-filtered jobs per package, replacing four separate workflow files.
199
- `CODEOWNERS` can still express per-package ownership within one repo
200
- (path-scoped rules), so "who reviews auth changes" doesn't have to
201
- become "everyone reviews everything."
202
- 5. **Docs cross-references**: every `[EXTENSIONS.md](../urlcode/docs/...)`-
203
- style cross-repo link in `auth`/`admin`/`ui`'s current docs becomes a
204
- same-repo relative link once consolidated — this is a real cleanup
205
- opportunity, not just migration overhead, since it directly targets the
206
- "docs silently drifted apart" problem this spike opened with.
207
- 6. **Re-register npm Trusted Publishing per package.** All six repos'
208
- release workflows publish via OIDC trusted publishing, no long-lived npm
209
- token (`docs/SPIKE-CORE-LAYERING.md`'s governance section, confirmed by
210
- `urlcode-dynamic-link`'s and `urlcode-middleware`'s own "Add
211
- trusted-publishing release workflow" commits). That trust is registered
212
- on npmjs.com per package, pinned to an exact GitHub repo + workflow
213
- filename (+ optional environment) — it does not follow the code when the
214
- repo path changes. Each of `@jimhoyd/urlcode-auth`, `-admin`, `-ui`,
215
- `-dynamic-link`, `-middleware` needs its npmjs.com trusted-publisher entry
216
- updated to the new repo and new workflow path *before* that package's
217
- first release from the consolidated location, or the publish step fails
218
- closed (correctly — not a security gap, just an ordering dependency this
219
- plan needs to carry explicitly rather than discover at release time).
220
- 7. **Issue migration — decided: recreate open issues in the consolidated
221
- repo, not leave-and-link.** GitHub doesn't move issues across repos
222
- natively, so this means bulk-recreating each open issue at the new
223
- location with a back-link to the original (closed with a pointer) rather
224
- than leaving it where it is. Concrete scope as of this doc: `auth`,
225
- `admin` and `ui`'s own open-issue counts weren't re-audited here, but
226
- `urlcode-dynamic-link` and `urlcode-middleware` were, since they're the
227
- two repos whose "does this even apply" status changed mid-conversation:
228
- - `urlcode-dynamic-link`: 0 open issues — nothing to migrate.
229
- - `urlcode-middleware`: 2 open issues to recreate —
230
- [`#1`](https://github.com/jimhoyd-com/urlcode-middleware/issues/1)
231
- ("`sandbox: true` is not supported — needs its own QuickJS/WASM worker
232
- pool") and
233
- [`#3`](https://github.com/jimhoyd-com/urlcode-middleware/issues/3)
234
- ("Remove vendored core tarball once `@jimhoyd/urlcode` 0.4.0-alpha.2+ is
235
- published to npm"). Both should move to the consolidated repo's tracker
236
- when the merge actually happens, each closed in its original location
237
- with a link to the new issue.
238
-
239
- ## What this preserves, unchanged
240
-
241
- - **The trust/extension model itself.** `packages/auth` published from the
242
- monorepo is exactly as separate a package, with exactly the same
243
- `RuntimeExtension` contract, revision-pinning and operator-registration
244
- requirements, as `urlcode-auth` published from its own repo today. This
245
- spike changes where the source lives, not what the extension mechanism
246
- guarantees.
247
- - **Independent versioning and release cadence per package** — a monorepo
248
- with workspaces is not "one version number for everything."
249
-
250
- ## What this gives up, honestly
251
-
252
- - **Per-repo maturity gating.** `docs/SPIKE-CORE-LAYERING.md` records that
253
- `auth`/`admin`/`ui` used a "`private: true` until reviewed" pattern before
254
- their first public release, and that the two new repos are deliberately
255
- *not* following that pattern ("published public from the start"). A
256
- monorepo can't easily make one folder private and another public — the
257
- repo-level visibility setting is all-or-nothing on GitHub. Once
258
- consolidated, "private until reviewed" stops being available as a pattern
259
- for whatever the next extension after `middleware`/`dynamic-link` turns
260
- out to be, unless it's built in yet another separate private repo first
261
- and merged in later — which reintroduces a version of the coordination
262
- cost this spike is trying to remove, just for pre-release work instead of
263
- ongoing maintenance.
264
- - **"Fork just one piece" stops being a plain `git clone` — but scoped to a
265
- narrow audience, not every auth user.** `SPIKE-AUTH.md` names forkability
266
- as a deliberate design goal specifically for `auth`. It's important not to
267
- overstate who this actually affects: a developer customizing auth's look
268
- or copy (theme, relabeling, `extra.css`, a shadowed template) works
269
- entirely inside *their own* project repo via the `ui` extension's layering
270
- system (`ui/copy`, `ui/extra.css`, `ui/templates`) — they never clone or
271
- fork `urlcode-auth` at all, install it from npm like any dependency, and
272
- this migration changes nothing for them. The friction increase applies
273
- only to the much narrower case of someone changing auth's actual *logic*
274
- (a new sign-in method, different session semantics) — something the
275
- layering system can't express because it's behavior, not presentation.
276
- For that persona, forking just the auth package post-consolidation means a
277
- `git filter-repo`-style history extraction instead of `git clone
278
- jimhoyd-com/urlcode-auth` — solvable, but a real step up in friction, for
279
- a small population, not the common path.
280
- - **Blast radius of a bad CI run.** One consolidated CI means a
281
- misconfigured job can, in principle, block merges across all six
282
- packages at once, where today a broken `urlcode-ui` pipeline can't stop an
283
- unrelated `urlcode-auth` merge. Path-filtered jobs mitigate this but don't
284
- eliminate it the way full repo separation does.
285
-
286
- ## Sequencing, if this is accepted
287
-
288
- 1. Decide layout (A vs. B above) and confirm the out-of-scope list.
289
- 2. **Check open pull requests across all six repos before starting, and again
290
- per repo immediately before its own migration** (mechanics #0). A repo with
291
- anything open is not ready to move. Doing this as a survey first also sizes
292
- the whole migration honestly: the number of in-flight PRs is the real
293
- scheduling constraint, not the git mechanics.
294
- 3. Migrate `urlcode-ui` first (fewest inbound dependents — `auth`/`admin`
295
- both depend on it, nothing depends on them), proving the subtree +
296
- workspace mechanics on the lowest-risk package. Re-register its npm
297
- trusted publisher (mechanics #6) before cutting its first release from
298
- the new location — treat this as part of "done," not a follow-up.
299
- 4. Migrate `urlcode-auth`, then `urlcode-admin` — same re-registration step
300
- each time.
301
- 5. Migrate `urlcode-dynamic-link`, then `urlcode-middleware` — same
302
- subtree/filter-repo mechanics and trusted-publisher re-registration as
303
- the other three, now that both are real repos with real history rather
304
- than something created fresh in place. Recreate their open issues (see
305
- "Migration mechanics" #7 above: 0 from `dynamic-link`, `#1` and `#3` from
306
- `middleware`) in the consolidated tracker as part of each repo's
307
- migration step, not as a separate pass.
308
- 6. Retire (archive, don't delete — GitHub redirects an archived repo's clone
309
- URL) all six now-empty source repos, with their READMEs pointing at the
310
- new location.
311
-
312
- ## Open questions for the maintainer, not answered here
313
-
314
- - Does `peers.json`'s reviewed-pin discipline need an equivalent for any
315
- external (non-workspace) consumer, or does workspace-linking fully replace
316
- its purpose?
317
- - `git subtree` vs. `git filter-repo` for history preservation — a real
318
- tradeoff between migration safety and final history cleanliness, worth a
319
- deliberate call rather than defaulting.
320
- - The naming-perception question from "Layout: decided — option A" above
321
- (core's repo and the consolidated repo sharing a name) — worth a short
322
- discussion, not blocking.