* chore(npm): rebrand packages to @opengsd scope Rename: - get-shit-done-redux → @opengsd/get-shit-done-redux - @gsd-redux/sdk → @opengsd/gsd-sdk Add publishConfig.access=public for first-time scoped publish. CLI binary names (get-shit-done-redux, gsd-sdk, gsd-tools) unchanged. Sweeps install commands, npx invocations, CI publish/version-check workflows, tests, docs, READMEs (all translations), and the PACKAGE_NAME constant in check-latest-version. Bumps qs 6.15.1 → 6.15.2 to clear a moderate advisory surfaced by the audit-clean test (GHSA-q8mj-m7cp-5q26). Closes #126 * chore: pin 2.0.0 release + remove canary workflow - Bump both packages 1.50.0-canary.0 → 2.0.0 for first @opengsd publish - Remove .github/workflows/canary.yml and canary dist-tag handling in release.yml / release-sdk.yml - Drop canary section from VERSIONING.md Refs #126 * chore: address review findings + harden tarball-smoke timeout - .changeset/opengsd-org-rename.md: match project's custom parse.cjs frontmatter (type: Changed / pr: 127); the scoped @changesets/cli keys were silently rejected. - CONTEXT.md: drop two canary-stream policy lines and a dangling DEFECT.CANARY-VERSION-LEAK.cross-ref now that canary.yml is gone. - tests/release-tarball-smoke.install.test.cjs: pass timeout: 600_000 for npm pack + global install; the 3-minute runNpm default was timing out on slower Docker hosts (cartographer). Refs #126 * fix(sdk): add missing type/runtime devDependencies for build prepublishOnly invokes tsc which couldn't resolve @types/node, @types/ws, or synckit. They had been hoisted from root but were not declared in sdk/'s own package.json — first publish from a clean SDK tree failed. Refs #126 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(ci): use npm pack stdout instead of glob to find tarball `npm pack --silent` for a scoped package (@opengsd/get-shit-done-redux) produces `opengsd-get-shit-done-redux-*.tgz`, not `get-shit-done-redux-*.tgz`. Capture the filename from stdout instead of a hardcoded glob so the step works regardless of package name format. Fixes smoke (ubuntu-latest, 22, false) CI failure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * ci: treat workflow-file changes as test-skip eligible `.github/workflows/install-smoke.yml` (and other workflow files) were in neither `test.yml` paths nor `test-skip.yml` paths-ignore, so neither workflow ran on a workflow-only commit — leaving the required test-skip check perpetually missing. Refs #126 * chore: reset version to 1.0.0 for first @opengsd publish Nothing has been published yet under the @opengsd scope, so the inaugural release uses 1.0.0 rather than 2.0.0. The "major bump" in the changeset reflects the breaking install-command change for users migrating from the prior unscoped `get-shit-done-redux`, not a numeric continuation from a 1.x line under the new identity. Refs #126 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2.7 KiB
Model Catalog Module as single source of truth for agent profiles and runtime tier defaults
- Status: Accepted
- Date: 2026-05-07
We decided to centralize model-selection data in one Model Catalog Module so the SDK, the CLI/CJS layer, and the docs do not maintain separate agent lists, profile maps, or runtime tier defaults.
Problem
Before this ADR there were four drifting sources:
get-shit-done/bin/lib/model-profiles.cjs— agent → profile alias map, phase-type map, dynamic-routing default tierssdk/src/query/config-query.ts— stale 18-agent copy ofMODEL_PROFILESget-shit-done/workflows/settings-advanced.md— runtime → built-in model-id tablesdk/src/session-runner.ts— hardcoded Claude-only profile → model-id map
This caused issue #3229: the SDK knew only 18 agents while 33 agent files existed on disk, so ~15 agents silently fell back to Sonnet with unknown_agent: true.
Decision
Create one machine-readable catalog and derive everything else from it.
The catalog owns:
- supported runtime names
- runtime tier defaults (
opus/sonnet/haiku) and runtime capabilities (e.g.reasoning_effortsupport) - the full agent registry for model resolution
- the canonical per-agent golden alias (quality intent)
- derived profile aliases for
balanced,budget, andadaptive - agent → phase-type mapping
- agent → dynamic-routing default tier mapping
The canonical file lives in a location both packages ship:
- repo root package (
@opengsd/get-shit-done-redux) includes it - standalone SDK package (
@opengsd/gsd-sdk) includes it
Both CJS and SDK load this exact file. Neither package keeps its own independent list.
Golden profile
The catalog stores a golden alias per agent. quality is defined as the golden profile exactly. Other profiles (balanced, budget, adaptive) are explicit views over the same agent registry. This keeps the highest-quality intent in one place while allowing lower-cost profiles to differ per agent where needed.
Consequences
resolve-modelin SDK and CJS read the same registry, so missing-agent drift disappearssettings-advanced.mdruntime tier table must stay in parity with the catalog (enforced by test)sdk/src/query/helpers.tsruntime list comes from the catalog, fixing drift like the missinghermesruntimesdk/src/session-runner.tsuses the catalog's Claude runtime tier defaults instead of a private hardcoded profile map- tests validate:
- every
agents/gsd-*.mdfile exists in the catalog - SDK and CJS resolve the same aliases for all known agents
- unknown-agent fallback follows profile semantics (
quality→opus,budget→haiku, etc.), not a hardcodedsonnet - docs/runtime tables stay aligned with the catalog
- every