KnownPath follows Semantic Versioning and uses Changesets for public package version intent and
changelog generation. Only knownpath is published to npm; internal @knownpath/* workspaces are
private implementation packages. The canonical Agent Skill has its own frontmatter version, while
the installer and stdio MCP bridge share the npm package version.
Validation workflows never publish automatically. npm, MCP Registry, GitHub releases, container images, and application deployments are explicit maintainer actions.
- Add or review a
.changeset/*.mdentry for each public package change. - Confirm the intended SemVer impact with
pnpm release:status. - Update the Agent Skill version only when its behavior or distributed files change.
- Review user-facing changes, operator migrations,
CHANGELOG.md, package metadata, and the exact generated diff. - Confirm Apache-2.0 metadata, the supported Node range, and repository URLs remain correct.
Generate version changes from a clean maintainer checkout:
pnpm release:status
pnpm release:version
pnpm install --lockfile-only
git diffCommit and review the generated version, lockfile, changelog, server.json, and bundled skill
metadata together when they are intended to move in the same release.
-
pnpm install --frozen-lockfile -
pnpm format:check -
pnpm typecheck -
pnpm lint -
pnpm build -
pnpm security:audit -
pnpm package:validateand manual archive inspection - Agent Skill validation
-
mcp-publisher validateforserver.json - API, worker, and web images build and run as non-root
-
pnpm db:initis idempotent against a backed-up target database - Atlas search indexes are ready when
SEARCH_BACKEND=atlas - MongoDB, Valkey, auth, provider, and optional OTLP secrets are configured
- First administrator and closed-registration access are operational
- HTTP health, authenticated search, remote MCP, stdio bridge, installer dry-run, and doctor pass
- A bounded worker job completes idempotently and emits no sensitive logs/telemetry
- The rollback image/version and credential-rotation owner are identified
Prefer npm trusted publishing with provenance from a protected GitHub Actions environment when it is configured. Otherwise authenticate interactively from a trusted maintainer machine and run:
pnpm release:publishNever place an npm token in the repository, shell history, logs, chat, or agent configuration. After publishing, verify package metadata and install the exact version from an empty directory:
npm view knownpath
npx --yes knownpath@X.Y.Z --help
npx --yes knownpath@X.Y.Z install --dry-run --agent codex --scope projectThe packed archive must contain only the intended executable distribution and bundled Agent Skill.
The CLI must not depend at runtime on unpublished @knownpath/* workspaces.
server.json describes the npm-backed stdio server as
io.github.nasyx-rakeeb/knownpath. Publish npm first so registry ownership can be verified, then:
mcp-publisher validate
mcp-publisher publishCreate an annotated vX.Y.Z tag and GitHub release from reviewed changelog content only after npm
and MCP metadata agree. Do not attach credentials, local configuration, database exports, or
uninspected artifacts. Confirm that GitHub's “Latest” release points to the intended version.
Tag API, web, and worker images with both the release version and source commit. Run database/index initialization before switching traffic, then validate readiness, authenticated retrieval, MCP, worker heartbeat, and telemetry. Keep API and worker on compatible domain/job-schema versions.
Rollback uses the previous immutable image. Do not roll back by deleting MongoDB audit, assessment, canonical, contribution, or outcome history. If a release changes credentials or indexes, follow a pre-reviewed reverse migration and the security operations runbook.
- Confirm
npm view knownpathand a cleannpxinvocation report the released version. - Confirm
server.json, MCP Registry metadata, GitHub tag/release, and container tags agree. - Verify hosted API liveness/readiness, one authenticated HTTP search, and one MCP search/get flow.
- Run
knownpath doctoragainst the hosted service without exposing the key. - Inspect queue backlog, provider errors, rate-limit state, and OpenTelemetry export.
- Watch authorization, tenant isolation, and sanitization signals before increasing rollout scope.
References: npm publishing, npm trusted publishing, Semantic Versioning, Changesets, and MCP Registry publishing.