* chore: rebuild ADR index as a generated artifact and enforce lifecycle invariants
The ADR index in docs/adr/README.md was hand-maintained with nothing checking
it, and had drifted to 40 of 65 ADRs. The absent rows included the entire
capability family (857/894/959/1016/1143/1213/1244) and ADR-1239 (EoS) itself,
so the decisions a reader most needed were the ones they could not find.
Make the index a derived artifact, matching the repo's existing generated-file
idiom (lint:generated-sync), and enforce the corpus' lifecycle invariants:
- scripts/gen-adr-index.cjs generates the index between markers and validates
the status vocabulary (Accepted/Proposed/Superseded/Legacy/Retired),
successor links, id/filename agreement, and supersession symmetry.
- Wire --check into lint:generated-sync so drift fails CI.
Correct the lifecycle metadata the gate surfaced, without flipping any status:
- ADR-1239 (EoS) declared it subsumed ADR-1016/58/3660/894; none recorded it.
Add reciprocal "Subsumed by" pointers + dated amendments. Subsumption keeps
the target Accepted -- these are live adapters, not dead decisions.
- ADR-857/894 carry dated status caveats: they read Proposed while the
capability system shipped and epic #857 is closed. Ratification is a
maintainer act and is deliberately left open.
- Link ADR-0005/0007/0012/3524 -> ADR-0174 and ADR-0010 -> ADR-0009; record
the reciprocal Supersedes on ADR-0009.
- ADR-218 declared itself "ADR-0175" -- an unfinished rename.
- The 0011 PRD moves from the non-canonical "Draft" to "Legacy".
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* test: capture stderr via spawnSync; record ADR-0010 draft supersession
Two fixes surfaced by the first gsd-test run and by regenerating the index:
- tests/adr-index-gate.test.cjs used execFileSync, which only surfaces stderr
through the thrown error on non-zero exit. The `--write` path exits 0 while
reporting outstanding violations on stderr, so the helper always saw ''.
spawnSync captures both streams on both outcomes.
- The hand-maintained index recorded 0010-skill-surface-budget-module.md as
"earlier draft superseded by ADR-0011" while the file itself still said
Proposed. Deriving the index from the files would have dropped that
assertion and resurrected a superseded draft as a live decision, so it is
recorded at its source, with the reciprocal Supersedes on ADR-0011.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix: drop the dead sdk/ model-catalog candidate retired by ADR-0174
src/model-catalog.cts resolved model-catalog.json through three candidates, the
second being sdk/shared/model-catalog.json three levels up. That was the legacy
source-repo fallback kept by the #3288 fix ("check the co-located path FIRST,
before the legacy source-repo path").
ADR-0174 then retired the @opengsd/gsd-sdk package boundary and deleted the sdk/
tree (11918dcc3), so the candidate can no longer resolve in any layout: a source
repo has no sdk/, and an install layout points it at ~/.claude/sdk/shared/, which
the installer never writes -- the original #3288 bug. It was dead weight implying
a package boundary this repo no longer has.
No test depends on it: the #3288 regression tests in tests/install.test.cjs write
their own synthetic old-path fixture and assert it throws.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: ratify nine shipped ADRs; record why ten others stay Proposed
The corpus carried 19 Proposed ADRs, most describing architecture that had
already shipped. A Proposed label on live architecture tells contributors and
agents the decision is an unbuilt idea -- the capability system and EoS were
both being misread that way.
Audited all 19 against the shipped tree and GitHub. Each candidate flip then had
to survive two independent reviewers instructed to refute it.
Ratified Proposed -> Accepted, each with a dated Ratification section carrying
the verified evidence (file:line, symbols, tests, issue state):
857 capability system 894 declaration format 1244 capability ecosystem
1577 injection boundary 1610 size-budget ratchet 1990 existing-code onboarding
15 cross-AI convergence 22 plan-drift guard 0011 default reviewers
Held ten, each now carrying a "Why this is still Proposed" section naming the
blocker and its unblock condition, so the audit is not repeated:
2264 its own headline acceptance criterion is unmet in the tree
230 live branch protection contradicts the decided spec (1 approval, not 2)
660 the namesake release/<version> re-cut is manual, not automated
959 issue #2346 is approved and plans its graduation as its own ADR
1213 the shipped writer's return shape differs from the decided interface
443 the orchestrator override path has no live caller
1143 / 1606 each states its own bar for acceptance; neither is met
612 / 1671 legitimately open
Shipped code proved necessary but not sufficient: eight ADRs had every named
module, symbol, and test present with their epics closed, and still failed the
bar. That lesson is written into README.md's ratification procedure.
Also corrected ADR-857's "Supersedes (generalizes)" to "Subsumes": taken
literally it would have marked two live seams dead -- ADR-0011 (surface.cts:348)
and ADR-58 (runtime-artifact-install-plan.cts:82). Both keep Accepted status and
gain Subsumed-by pointers.
Index: Active 39->48, Proposed 19->10, Superseded/Legacy 7. 65 total.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix: harden gen-adr-index against hostile titles and non-ADR filenames (#2356)
Three findings from the pre-PR orthogonal security review, all confirmed:
- An ADR title containing the literal ADR-INDEX:END marker was emitted verbatim
into its table cell, relocating the splice boundary so the NEXT --write
spliced against the wrong marker and truncated README.md. Titles now render
through cellText(), which escapes pipes and angle brackets -- making an HTML
comment (and any other HTML) unformable from ADR-authored text.
- A docs/adr/*.md without a numeric prefix crashed on match(...)[1] of null.
Such a file is also invisible to the index -- the very failure this gate
exists to prevent -- so it is now reported as a naming-convention violation
naming the file and the fix.
- Tests leaked their mkdtemp dirs. They now use helpers.createTempDir/cleanup
via t.after(); helpers.cleanup carries the Windows-EBUSY retry budget that a
raw fs.rmSync lacks (caught by local/no-raw-rmsync-in-tests).
Adds five regression tests: marker hijack, HTML injection, pipe cell-break,
non-conforming filename, and splice stability across repeated writes.
Refs #2356
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix: close two gate false-passes; read ## Supersedes sections (#2356)
Second round of confirmed findings from the pre-PR orthogonal code review. Both
false-passes matter more than a false-fail: a gate that silently misses a
violation is worse than no gate, because it is trusted.
- A relation field mixing a link with a bare id silently dropped the bare claim:
the check tested `rel.links.length` (does this field have ANY link?) instead
of whether THAT id was linked. `Supersedes: [ADR-0001](...), ADR-0011` passed
clean -- accepting exactly the ambiguous bare reference the rule forbids. Now
each bare id is checked against the ids actually linked in the same field, so
a repeat in trailing prose stays quiet while an unlinked claim is flagged.
- The ratification guard (`statusToken !== 'Accepted'`) skipped BOTH relation
directions, which killed the IN check entirely: `supersedes.in` is only ever
populated on an ADR whose status IS `Superseded`, so a dangling `Superseded by
X` where X never claims it always passed. The guard now applies to OUT only --
a prospective claim must not obligate its target, but an ADR's statement about
ITSELF is always owed a reciprocal.
- Fixing that surfaced a parser gap: ADR-0174 declares its supersessions in a
`## Supersedes` table SECTION, not a header field, and headerBlock() stops at
the first `##`. The repo's best-documented supersession was invisible. Section
form is now parsed for both relations.
- Replaced a vacuous test: the em-dash negation case passed whether or not
NEGATED_RELATION_RE matched (a mutation to /$^/ survived). It now carries a
link that would create a failing asymmetric relation if negation did not fire.
Also removes docs/adr/9401-test-target.md -- a synthetic fixture a reviewer
created in the worktree while reproducing a finding, swept in by `git add -A`.
Adds regression tests for each: mixed link+bare, linked-and-repeated-in-prose,
dangling superseded-by from a non-Accepted ADR, and the ADR-0174 section shape.
Refs #2356
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix: escape backslashes before pipes in the ADR index cell renderer (#2356)
CodeQL js/incomplete-sanitization (high) on scripts/gen-adr-index.cjs: cellText()
escaped `|` -> `\|` without first escaping the backslash. Markdown's escape
character is the backslash, so the input `\|` became `\\|`, which renders as a
literal backslash followed by an UNESCAPED pipe -- re-opening the cell break the
pipe escape exists to prevent. Order is load-bearing: escape the escape
character first, then everything that emits one.
Same class as the index-marker hijack fixed earlier: ADR-authored text breaking
out of the cell it is rendered into.
Adds a regression test asserting a `\|`-bearing title leaves exactly the row's
own 5 unescaped delimiters and cannot forge a Status cell. Uses split(/\r?\n/)
per local/no-crlf-fragile-split -- a literal "\n" split is CRLF-fragile on the
Windows CI leg.
Refs #2356
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
17 KiB
Runtime Artifact Layout Module owns per-runtime artifact placement
- Status: Accepted
- Date: 2026-05-17
- Issue: #3660
- Implementation: #3663 (Phase 1), feat/3663-runtime-artifact-layout-module-phase-1-m
- Subsumed by: ADR-1239 (GSD as an Embeddable Orchestration Engine) — read it first; see the amendment below
Amendment (2026-07-16): subsumed by ADR-1239 (EoS)
ADR-1239 — GSD as an Embeddable Orchestration Engine (EoS), Accepted — subsumes this ADR as an adapter: per-runtime artifact placement becomes one negotiated surface of the Host-Integration Interface rather than the outermost seam at which GSD meets a host.
This ADR is not superseded and its status is unchanged. The artifact-layout seam is live and load-bearing; it is now a component of the EoS frame.
Read ADR-1239 first.
Recorded because ADR-1239 declared this subsumption while this file recorded nothing.
Context
The Runtime Surface Module (gsd-core/bin/lib/surface.cjs, introduced by ADR-0011 Phase 2) re-materializes a resolved Skill Surface profile to disk via applySurface. It currently hardcodes two artifact kinds (commands, agents) and re-derives their source directories via _findInstallSource / _findAgentsSource walk-up heuristics. The install and uninstall pipelines in bin/install.js each encode the same per-runtime artifact layout independently across ~14 install sites and ~6 uninstall sites. Bug #3659 surfaced the resulting drift: applySurface omits the skills kind for runtimes whose canonical layout is skills/gsd-<stem>/SKILL.md, so gsd-surface profile <name> leaves ~67 skill directories on disk under the install-time profile's footprint when the resolved profile should have pruned them — roughly 2.7k tokens per session on a measured workstation.
The root problem is the absence of a typed seam for "where does runtime R put artifact kind K." Three lifecycle sites (install, uninstall, surface) each independently encode this knowledge and drift independently.
Decision
- Add a Runtime Artifact Layout Module at
gsd-core/bin/lib/runtime-artifact-layout.cjsas the single owner of the per-runtime artifact-placement table. - The module requires
runtime-homes.cjsfor the canonical runtime enum and global config-dir resolution. It adds the artifact-kind axis on top. - Expose
resolveRuntimeArtifactLayout(runtime, configDir) → Layout. The returnedLayoutis a plain typed object —{ runtime, configDir, kinds: ArtifactKind[] }— with no I/O on resolution. - Each
ArtifactKindis{ kind: 'commands'|'agents'|'skills', destSubpath, prefix, stage }.stageis a function(resolvedProfile) → stagedDirthat closes over the per-runtime converter where one is needed (e.g.convertClaudeCommandToClaudeSkillfor theskillskind on Claude global). - The
kindsarray is empty for runtimes with no GSD surface (a hypothetical future runtime with no integration). Theskillskind is absent for runtimes that don't materialize skill directories (Cline; Gemini today). Thecommandskind is absent for runtimes that consume only the skills/agents layout (Claude global, Codex, etc.). - Per-runtime quirks live in the layout's record fields, not in caller branches:
- Hermes:
{ kind: 'skills', destSubpath: 'skills/gsd', prefix: 'gsd-' }— preserves the nested namespace from #2841. Note (#947): The original decision usedprefix: ''(bare stem) on the incorrect premise that theskills/gsd/category directory namespaced the leaf identifier in Hermes's loader. Research showed category dirs are purely organisational; dispatch is by the skillname:field. Thegsd-prefix was restored by #947 to match every other runtime. - Cline:
kinds: []— Cline resolves to zero kinds in Phase 1 (nocommandskind). - Gemini:
kinds: [ { kind: 'commands', destSubpath: 'commands/gsd', prefix: 'gsd-' } ]— no agents, no skills.
- Hermes:
applySurfacemigrates from(runtimeConfigDir, commandsDir, agentsDir, manifest, clusterMap)to(runtimeConfigDir, layout, manifest, clusterMap). Body collapses tofor (const kind of layout.kinds) _syncGsdDir(kind.stage(resolved), path.join(layout.configDir, kind.destSubpath), kind.kind)._findInstallSourceand_findAgentsSourceinsurface.cjsare removed. The layout owns source resolution.- Phase 2 (separate PR): install and uninstall paths in
bin/install.jsmigrate to iteratelayout.kinds. Per-runtime if/else branches for skill-directory creation/removal collapse to one layout-driven loop per pipeline. - Legacy-layout migrations (
bin/install.js:6710/:8402for the pre-nestedskills/gsd-*/flat layout;migrateLegacyDevPreferencesToSkillfor #2973) remain inside the Installer Migration Module (ADR-0008) and run before layout-driven copy. The layout module describes only the current canonical target — no historical kinds.
Initial Scope
Phase 1 should land the module and one consumer (the bug-#3659 fix):
- New
gsd-core/bin/lib/runtime-artifact-layout.cjs—resolveRuntimeArtifactLayout, the typedLayout/ArtifactKindshapes, and the runtime table covering every runtime currently enumerated inruntime-homes.cjs. surface.cjs:applySurfacemigrates to layout-driven iteration._findInstallSourceand_findAgentsSourcedeleted. Theskillskind is now iterated alongsidecommandsandagents— bug #3659 closed.commands/gsd/surface.mdandtests/surface-apply.test.cjsupdated to construct + passLayoutvalues.- New
tests/runtime-artifact-layout-*.test.cjscovering:- Per-runtime fixture table: each runtime maps to the expected
kinds[]shape. - Hermes
skills/gsdnested case. - Cline / Gemini "kind absent" cases.
- Source-root resolution (replacing the existing
surface.cjswalk-up tests).
- Per-runtime fixture table: each runtime maps to the expected
- Address the adjacent
readSurfacepartial-field silent-null bug noted in #3659 — out of scope here; track as a separateconfirmed-bugticket.
Phase 1 should not:
- Migrate the install/uninstall pipelines in
bin/install.jsin the same PR. That's a separate enhancement issue — same seam, larger blast radius. The layout module is dual-consumable from the start; convertingbin/install.jsis a sequenced follow-up. - Move the per-runtime skill converters (
convertClaudeCommandToClaudeSkill, etc.). They survive at their current file location as the stage adapters; the layout module references them. A future ADR may consolidate them into a Skill Conversion Module if a second consumer emerges.
Migration Inventory
New file
gsd-core/bin/lib/runtime-artifact-layout.cjs— module body + runtime layout table.
Files modified (Phase 1)
gsd-core/bin/lib/surface.cjs—applySurfacesignature change;_findInstallSource+_findAgentsSourceremoval.commands/gsd/surface.md— runbook updates the 3 sites that callapplySurfaceto first callresolveRuntimeArtifactLayout.tests/surface-apply.test.cjs— 5 call sites passlayoutinstead ofcommandsDir, agentsDir.
Files modified (Phase 2 — separate PR / separate issue)
bin/install.js— install path: 4 per-runtime skill-stage blocks collapse to one layout-driven loop.bin/install.js— uninstall path: 6 per-runtime skill-removal blocks collapse to one layout-driven loop.- Estimated reduction: ~250 lines.
Files not touched
runtime-homes.cjs— its narrow contract (runtime → global config dir / skills base) stays. The layout module is its sibling.install-profiles.cjs—stageSkillsForProfile,stageAgentsForProfileremain. The layout module'skinds[i].stageclosures call them.- The four skill converters at
bin/install.js:1622/1681/1792/2534— remain in place; layout closures reference them.
Interface sketch
// runtime-artifact-layout.cjs
/**
* @typedef {Object} ArtifactKind
* @property {'commands'|'agents'|'skills'} kind
* @property {string} destSubpath joined to layout.configDir
* @property {string} prefix 'gsd-' for all runtimes (incl. Hermes after #947)
* @property {(resolved) => string} stage returns staged dir path
*/
/**
* @typedef {Object} Layout
* @property {string} runtime canonical enum from runtime-homes.cjs
* @property {string} configDir caller-supplied (local or global scope)
* @property {ArtifactKind[]} kinds empty array = runtime has no gsd-* surface
*/
function resolveRuntimeArtifactLayout(runtime, configDir) { … }
Call-site shape:
// commands/gsd/surface.md (runbook), tests/surface-apply.test.cjs, future install/uninstall
const layout = resolveRuntimeArtifactLayout(runtime, runtimeConfigDir);
applySurface(runtimeConfigDir, layout, manifest, CLUSTERS);
applySurface body after migration:
function applySurface(runtimeConfigDir, layout, manifest, clusterMap) {
const resolved = resolveSurface(runtimeConfigDir, manifest, clusterMap);
for (const kind of layout.kinds) {
const staged = kind.stage(resolved);
const dest = path.join(layout.configDir, kind.destSubpath);
if (fs.existsSync(dest)) _syncGsdDir(staged, dest, kind.kind);
}
}
Consequences
- Bug #3659 becomes a fixture-table omission, not a forgotten if/else block. The layout-table test asserts every runtime's
kinds[]shape — forgetting theskillskind on Claude global would fail there. - The cross-runtime test matrix collapses from
N runtimes × 3 lifecycle verbs × 3 kinds(today: ~120 implicit assertion pairs) toN (layout table) + 3 (one per lifecycle verb iterating layout.kinds). - Adding a new runtime (recent example: Grok via commit
05316369) becomes one row in the layout table plus one fixture row in the test. The three lifecycle verbs pick it up automatically. - The four per-runtime skill converters become canonical adapters at the artifact-kind seam. Their existence is no longer accidental — they're the seam's content.
surface.cjsshrinks (_findInstallSource+_findAgentsSourceremoved). The walk-up heuristics — which were only ever-incidentally correct — are replaced by an explicit table.- Phase 2 (install/uninstall migration) shrinks
bin/install.jsby ~250 lines and removes a recurring class of bug: a new runtime added by a contributor who forgets to wire it through every install/uninstall branch. - Future architecture reviews should treat per-runtime artifact-placement knowledge added outside
runtime-artifact-layout.cjsas drift, parallel to how ADR-0011 made out-of-seam skill staging drift. - The Skill Surface Budget Module's leverage (typed sets of
{ skills, agents }) now extends all the way to disk through one seam rather than three independent re-materializations.
Open questions
- Whether the
skillskind'sstageclosure should accept the per-runtime converter as a parameter (preserving converter-as-pure-function purity) or import it directly. Implementation detail — settle in the PR. - Whether the layout module should expose a
listKinds(runtime)introspection helper for status/diagnostics surfaces, or keepLayoutas the only public type. Lean toward a single public type; add helpers only when a second consumer needs them. - Whether Phase 2 (install/uninstall migration in
bin/install.js) should land as a single follow-up PR or be split per pipeline. Lean toward single PR — the install and uninstall sides share the runtime branch structure and migrating only one introduces a temporary asymmetry inverse to today's. - The adjacent
readSurfacepartial-field silent-null fallback insurface.cjs:55-75(also flagged in #3659) is out of scope here — track separately. It's an independent shallow interface in the same module, not a runtime-layout concern.
References
- Confirmed bug:
#3659—applySurfacedoesn't prune~/.claude/skills/gsd-*/dirs - See
0011-skill-surface-budget-module.md— the Runtime Surface Module this seam serves - See
0008-installer-migration-module.md— legacy-layout migrations stay there - See
0005-sdk-architecture-seam-map.md— the seam map this module joins - Existing canonical sibling:
gsd-core/bin/lib/runtime-homes.cjs - Per-runtime skill converters this module references:
bin/install.js:1622(Copilot),:1681(Claude),:1792(Antigravity),:2534(Codex) - Hermes nested-skills layout rationale:
#2841
Implementation status
Phase 1 implementation landed on feat/3663-runtime-artifact-layout-module-phase-1-m:
gsd-core/bin/lib/runtime-artifact-layout.cjs— 15-runtime layout table (grok intentionally excluded),resolveRuntimeArtifactLayout(runtime, configDir, scope) → Layout, walk-upfindInstallSourceRoothelper.- Clarification: in this Phase 1 implementation, Cline resolves to zero kinds (
kinds: []), so it carries nocommandskind in the layout table. gsd-core/bin/lib/install-profiles.cjs— newstageSkillsForRuntimeAsSkills(srcCommandsDir, resolvedProfile, converter, prefix) → stagedDirhelper.gsd-core/bin/lib/surface.cjs—applySurface(runtimeConfigDir, layout, manifest, clusterMap)signature migration;_findInstallSource+_findAgentsSourcedeleted;_syncGsdDirextended to handle theskillskind via directory iteration.- Tests:
runtime-artifact-layout-resolve.test.cjs(16),runtime-artifact-layout-edge-cases.test.cjs(10),runtime-artifact-layout-stage.test.cjs(5),install-profiles-stage.test.cjs(+7 new),surface-apply.test.cjs(updated 5 call sites + new skills-kind test).
Phase 2 (separate issue #3664 — bin/install.js install/uninstall pipeline migration) is blocked on Phase 1 merge.
Amendment (2026-06-11): adding a runtime that rides the established layout is an addendum, not a new ADR
Maintainer governance decision. Registering an additional runtime that reuses the existing install machinery — the profile-marker-only install surface (ADR-58 / the config-adapter registry) plus a single skills kind in this module's layout table — is an enhancement governed by this ADR via this addendum, not a change that requires its own ADR. New design rationale (and a fuller amendment) is required only when a runtime introduces something this ADR has not already decided: a new install surface, a new ArtifactKind, or a layout quirk not expressible in the existing record fields (cf. the Hermes nested-namespace and Cline zero-kinds cases in the Decision section).
This codifies the lightweight path the project has used since Phase 1 for Codex, Copilot, Trae, Windsurf, Qwen, CodeBuddy, Cline, Kimi, et al., and makes the addendum-vs-new-ADR test explicit so contributors and reviewers stop re-litigating it per runtime.
Qualifying criteria (all three) for the addendum path
- No new install surface — the runtime maps to an existing
installSurfacevalue in the config-adapter registry (profile-marker-only, etc.);writesSharedSettings: false;finishPermissionWriter: nullor an existing writer. - No new artifact kind — the layout entry is composed only of the existing
commands/agents/skillskinds via the existingskillsKind(...)/ record-field machinery; no newArtifactKindshape. - Reuses the converter contract — per-runtime converters follow the established shape (see the agent-frontmatter contract below); only the path/name substitutions differ.
A runtime failing any of the three needs a fuller amendment here (or a new ADR) documenting the new surface/kind and its rationale.
Agent-frontmatter contract (normative)
Per-runtime agent converters emit a sanitized minimal frontmatter — name + description only — rebuilt through yamlIdentifier(name) / yamlQuote(toSingleLine(description)), matching convertClaudeAgentToTraeAgent / convertClaudeAgentToClineAgent / convertClaudeAgentToCodebuddyAgent. Claude-specific fields (tools:, color:, commented hook blocks) MUST NOT be passed through verbatim. A runtime that genuinely requires richer agent frontmatter must document the target schema in an amendment here and emit it deliberately — not arrive at pass-through by accident. (Recorded because PR #1021's first cut of convertClaudeAgentToQoderAgent fell through to full pass-through; it must be brought onto the sibling contract.)
Qoder (issue #860 / PR #1021) — first runtime recorded under this addendum
Qoder qualifies on all three criteria and is added as a layout-table entry, not a new design:
- Install surface:
profile-marker-only(config-adapter registry), identical shape to Trae/Windsurf — no statusline, nopackage.json, no sharedsettings.json/permission writes. - Layout:
case 'qoder'→[ skillsKind('skills', 'gsd-', 'convertClaudeCommandToQoderSkill', 'qoder', configDir) ];'qoder'added toALLOWED_RUNTIMES. - Home:
~/.qoder(orQODER_CONFIG_DIR), viaruntime-homes. - Converters:
convertClaudeToQoderMarkdown,convertClaudeCommandToQoderSkill,convertClaudeAgentToQoderAgent— the agent converter is subject to the contract above.
Path note: since ADR-457's .cts migration, the canonical module source is src/runtime-artifact-layout.cts (built to gsd-core/bin/lib/runtime-artifact-layout.cjs); the runtime enumeration is owned by src/runtime-homes.cts and src/runtime-config-adapter-registry.cts. The original body above predates that move; paths read accordingly.