PUBLISHING COMMANDS
swamp provides commands for releasing and promoting extensions: fmt formats
and lints the source, quality scores it against the rubric, push validates
and uploads it, and promote moves a published version to a higher release
channel. fmt, quality, and push take a manifest and resolve the files it
references. For the consumer-side commands (pull, install, list, search,
update, outdated, rm, info, version), see
Management.
Manifest argument
The <manifest-path> argument of fmt, quality, and push is a manifest
file or an extension directory. A directory means the manifest.yaml,
manifest.yml, or manifest.json inside it, in that order. An absolute path is
used as given. A relative path is tried against each of these, and the first
match wins:
--extensions-dir, when set.- The current directory.
- The repository directory (
--repo-dir/SWAMP_REPO_DIR).
| Condition | Error |
|---|---|
| A directory with no manifest | No manifest.yaml found in <dir>, followed by Pass the extension directory that holds manifest.yaml, or the manifest file itself. |
| No candidate exists | Manifest file not found: <arg> (looked in <candidates>) |
A .ts or .js file |
Expected a manifest path but got a TypeScript/JavaScript file: <path> |
Entries in the manifest resolve from the extensions root: the directory that
contains extensions/. --extensions-dir sets the root explicitly. Without the
flag, Swamp uses the repository directory, unless no entry resolves there; it
then uses the nearest ancestor of the manifest that holds extensions/ or
.swamp.yaml, never the home directory. An entry found under both the
repository directory and that ancestor is refused, naming both paths. Behaviors,
vaults, datastores, reports, workflows, and skills all resolve from the
extensions root. With paths.base: manifest, entries resolve next to the
manifest instead; see
Manifest § Path Resolution.
Every not-found error lists the paths it looked in and names --extensions-dir
or paths.base: manifest as the fix.
An additionalFiles, binaries, or include entry must name a regular file. A
directory, or any other entry that is not a regular file, stops all three
commands before they read any file, with a validation error that names the entry
and its field:
Error: Additional file is a directory: docs (at .../extensions/behaviors/docs). additionalFiles lists files, not directories; list each file under docs/ individually.The binaries and include forms begin Binary file is a directory: and
Include file is a directory:. With --json, the same message is the error
field of the stderr document.
fmt, quality, and push use the same project Deno config: the first
deno.json or deno.jsonc found walking up from the manifest's directory, with
deno.json winning when a directory holds both. For a manifest inside the
repository directory the walk stops at the repository directory; for one outside
it, at the extensions root that contains the manifest, or at the manifest's own
directory when neither contains it. When the walk finds no Deno config, the
first package.json on the same walk puts the extension in package.json mode.
Nothing above the walk's stopping point is read: a config, package.json,
workspace root or node_modules there that an import would need is refused by
name; see
Extension Dependencies § Nothing from above the repository.
The three commands resolve each bare import as Deno resolves it for the module
that imports it, from the project Deno config's imports, an importMap file
it references, a scopes entry covering the module, or a workspace root's
imports; a workspace member bundles against the workspace root's lock. In
package.json mode, a bare import resolves to the package installed in
node_modules when package.json declares it as an npm registry dependency.
Push ships each npm: and jsr: import at the exact version the bundle holds;
see Shipped version and
Extension Dependencies for every
supported input.
All three commands read the project's lockfile read-only: none of them creates a
deno.lock or rewrites one. quality and push refuse a lock that is out of
date with its project file:
Error: .../extensions/behaviors/deno.lock is out of date with .../extensions/behaviors/deno.json, and push and quality never rewrite your lockfile. Run `deno install --entrypoint .../extensions/behaviors/echo.ts` in .../extensions/behaviors, commit the updated lock, and try again.
changes:
17 | + "npm:lodash-es@4.17.21",fmt warns instead; see fmt. Loading an extension to run it, as any
command that uses its behaviors, vaults, datastores or reports does, keeps
Deno's default lock handling, so an extension in a loaded directory can still
have its lock written then.
In package.json mode, the three commands read node_modules and never install
into it. quality and push refuse a tree that does not match package.json:
a declared dependency that is missing, installed outside its declared range, or
installed under another name:
Error: .../node_modules is out of date with package.json, and push and quality never install into it: ms 2.1.2 is installed, outside the declared ^2.1.3. Run 'npm install' or 'deno install' in ... and try again.A package-lock.json beside package.json counts as a lock only when there is
no Deno config and node_modules matches it, transitive packages included.
Otherwise quality and push warn with package-lock-mismatch and treat it as
no lock:
package-lock.json does not match node_modules: node_modules/ms is 2.1.2, the lock says 2.1.3; treated as no lockAll three commands accept the global flags --json, --log, --quiet,
--verbose, --no-color, --no-telemetry, and --log-level <level>. The
command-specific flags are listed below.
fmt
Formats and lints the TypeScript files referenced by the manifest. Resolves each
behavior, vault, datastore, and report entry point plus its local imports, then
runs deno fmt and deno lint --fix over them under the project Deno config
(see Manifest argument), the same configuration push
checks against, so fmt --check and push give the same answer. The
no-import-prefix lint rule is never applied to extension code.
fmt and fmt --check read the module graph with the project's lockfile
read-only, as push and quality do. When the lock is out of date with the
project Deno config or package.json, fmt does not fail: it formats and lints
each entry point the lock refused on its own, without the local modules it
imports, and prints one warning per lock naming the lock, the project file, and
the deno install --entrypoint command push asks for. Exit codes are
unchanged.
Flags
| Flag | Description |
|---|---|
--check |
Check only; do not auto-fix. Exits non-zero on issues. |
--repo-dir <dir> |
Repository directory (env: SWAMP_REPO_DIR). |
--extensions-dir <dir> |
Extensions root: the directory that contains extensions/ (behaviors, workflows and skills resolve from it; env: SWAMP_EXTENSIONS_DIR). |
--isolated |
Run deno doc as the registry does: an empty dependency cache, and no registry tokens or npm config from the environment. Slower. |
Output
... [INF] extension·fmt: Formatted 1 TypeScript files.
... [INF] extension·fmt: "Checked 1 file"
... [INF] extension·fmt: "Checked 1 file"In --check mode, with nothing to fix:
... [INF] extension·fmt: All quality checks passed.In --check mode, formatting or lint issues are reported under
Quality checks failed: and the command exits non-zero:
... [ERR] extension·fmt: Quality checks failed:
... [ERR] extension·fmt: "Formatting" issues:
... [ERR] extension·fmt: from .../extensions/behaviors/echo.ts:
... [ERR] extension·fmt: 19 | -export const x = 1
... [ERR] extension·fmt: 19 | +export const x = 1;
... [ERR] extension·fmt:
... [ERR] extension·fmt: error: Found 1 not formatted file in 2 filesUnfixable lint issues also exit non-zero without --check. push runs the
equivalent of --check before uploading and is blocked if it fails.
With a lock out of date with its project file, the warning comes first:
... [WRN] extension·fmt: The lockfile ".../extensions/behaviors/deno.lock" is out of date with ".../extensions/behaviors/deno.json", and fmt never rewrites your lockfile, so it covered ".../extensions/behaviors/echo.ts" alone, not the local modules they import. Push refuses this lock: run "deno install --entrypoint .../extensions/behaviors/echo.ts" in ".../extensions/behaviors" and commit the updated lock.
... [INF] extension·fmt: All quality checks passed.JSON output (fmt)
With --json, --check writes one object:
{
"status": "failed",
"issues": [
{
"check": "fmt",
"output": "from .../extensions/behaviors/echo.ts:\n19 | -export const x = 1\n19 | +export const x = 1;\n\nerror: Found 1 not formatted file in 2 files"
}
]
}Without --check, the object reports the fix:
{
"status": "fixed",
"fileCount": 1,
"fmtOutput": "Checked 1 file",
"lintOutput": "Checked 1 file",
"remainingIssues": [],
"staleLockfiles": [
{
"lockPath": ".../extensions/behaviors/deno.lock",
"projectFile": ".../extensions/behaviors/deno.json",
"projectDir": ".../extensions/behaviors",
"entryPoints": [".../extensions/behaviors/echo.ts"],
"command": "deno install --entrypoint .../extensions/behaviors/echo.ts"
}
]
}| Field | Description |
|---|---|
status |
--check: "passed" or "failed". Fix: "fixed", or "partial" when issues remain |
issues |
--check only: each failing check, with check ("fmt" or "lint") and the tool's output |
fileCount |
Fix only: the number of TypeScript files fmt and lint ran over |
fmtOutput |
Fix only: deno fmt's output |
lintOutput |
Fix only: deno lint --fix's output |
remainingIssues |
Fix only: issues deno lint --fix could not fix, shaped as issues |
staleLockfiles |
Present only when a lock is out of date: lockPath, projectFile, projectDir, entryPoints, and the command |
With no TypeScript files to check, the object is
{"status": "passed", "fileCount": 0}.
quality
Packages the extension, scores it against the quality rubric, and runs the local
checks a push runs: content collectives, the additionalFiles allowlist,
safety, dependency trust, skills, formatting and lint, the upgrade chain, review
errors, and archive size. Scoring does not gate publishing — the score is
informational.
A failed check does not stop scoring. quality prints the rubric, then each
failed check under Checks that would block a push: with its details, then the
files a check rejected, which the scored archive leaves out, and exits non-zero.
See Output (failed checks).
When no push gate fails, quality writes the packaged tarball to
.swamp/cache/packages/<hash>/ for reuse by push, including when it exits
non-zero for a bare import or a deno doc failure, which are not push gates. A
cache entry is reused only by the Swamp version that wrote it; a different
version packages afresh. A run with a failed push gate writes no cache entry.
Push writes each bare import that the project Deno config resolves to an npm:
or jsr: package as that package at the exact version the bundle holds, one
that resolves to a node: or URL specifier as that specifier, and each one that
package.json mode resolves to an installed package as
npm:<name>@<installed version>, so the registry can resolve it. The quality
rubric scores the source as the registry does, with no import map. A bare import
that ships as written — one the Deno config does not resolve, or in
package.json mode a dependency from any source other than the npm registry,
such as file:, link:, workspace:, git, user/repo or a URL — cannot be
resolved by the registry's scorer, which would score the documentation
factors 0. quality reports a bare-specifiers finding naming each such
import, scores the documentation factors 0 as the registry would, and exits
non-zero; with --json, registryScorable is false. Such a dependency is
also
code from outside npm and JSR,
which costs the dependency-trust factor. See
Output (bare specifiers).
When deno doc cannot analyse the source the registry would score, for any
reason, quality scores the documentation factors 0, reports why, and exits
non-zero; with --json, docAnalysisError holds the reason.
quality runs deno doc with the local Deno cache and the environment's
registry tokens and npm config, so a private import or a cached module can
resolve locally and not on the registry, which runs it with an empty cache and
no credentials. With --isolated, quality runs deno doc the registry's way.
Flags
| Flag | Description |
|---|---|
--repo-dir <dir> |
Repository directory (env: SWAMP_REPO_DIR). |
--extensions-dir <dir> |
Extensions root: the directory that contains extensions/ (behaviors, workflows and skills resolve from it; env: SWAMP_EXTENSIONS_DIR). |
Output
... [INF] extension·quality: Packaging extension for quality scoring...
... [INF] extension·quality: Scoring extension against Swamp Club quality rubric...
... [INF] extension·quality: License: "MIT"
... [INF] extension·quality: Rubric v6 — 14/16 points (87%, grade B, +2 pending server verification: 100% (A) if the registry verifies them, all factors earned)
... [INF] extension·quality: "✓" "has-readme" ["2/2"] — "Has README or module doc"
... [INF] extension·quality: "✓" "readme-example" ["1/1"] — "README has a code example"
... [INF] extension·quality: "✓" "rich-readme" ["1/1"] — "README is substantive"
... [INF] extension·quality: "✓" "symbols-docs" ["1/1"] — "Most symbols documented"
... [INF] extension·quality: "✓" "fast-check" ["1/1"] — "No slow types (deprecated)"
... [INF] extension·quality: ℹ This factor is deprecated and will be removed in a future release.
... [INF] extension·quality: "✓" "dependency-trust" ["2/2"] — "Dependencies pass trust audit"
... [INF] extension·quality: No npm/jsr dependencies to audit
... [INF] extension·quality: "✓" "secret-safe-docs" ["1/1"] — "Docs keep secrets in a vault"
... [INF] extension·quality: "✓" "description" ["1/1"] — "Has description"
... [INF] extension·quality: "✓" "platforms" ["2/2"] — "Platform support declared (or universal)"
... [INF] extension·quality: "✓" "has-license" ["1/1"] — "License declared"
... [INF] extension·quality: "✓" "license-file" ["1/1"] — "LICENSE file included"
... [INF] extension·quality: "~" "repository-verified" ["0/2"] — "Verified public repository"
... [INF] extension·quality: Unresolved warnings:
... [INF] extension·quality: testing-completeness — extensions/behaviors/text_entropy.ts: No sibling `_test.ts` found — cover both success and failure paths with unit tests before publishing.
... [INF] extension·quality: fix: Add a sibling <name>_test.ts covering the success and failure paths.
... [INF] extension·quality: or accept at the top of the file: // swamp-quality-ignore testing-completeness
... [INF] extension·quality: behavior-spelling — (extension): Extension uses the behavior spelling (the behaviors: manifest key, the extensions/behaviors/ directory, export const behavior in 1 entry point). swamp clients and workers older than this release cannot load it: they read only export const model, extensions/models/ and the models: manifest key.
... [INF] extension·quality: fix: Keep the behavior spelling if every client and worker that installs this extension runs this swamp release or later; otherwise use the model spelling (export const model, extensions/models/, manifest models:). Accept the finding in quality.yaml to stop this prompt.
... [INF] extension·quality: or accept in quality.yaml: { rule: behavior-spelling }
... [INF] extension·quality: Packaged archive: 2283 bytesA cache hit replaces the first line with
Cache hit — reusing previously packaged tarball ("<hash prefix>") and runs
every check a push's cache hit runs.
quality also runs the review rules and declared acceptances on every run,
including a cache hit, and ends with the Accepted warnings and
Unresolved warnings blocks; see Declared acceptances.
Output (failed checks)
An extension that lists a hidden file in additionalFiles fails the safety
check. The rubric is printed first, scored without the rejected file:
... [INF] extension·quality: Packaged archive: 2028 bytes
... [ERR] extension·quality: Checks that would block a push:
... [ERR] extension·quality: "safety": "Extension has safety errors that must be resolved before pushing."
... [ERR] extension·quality: ".../extensions/behaviors/.notes.txt: Hidden files are not allowed in extensions."
... [WRN] extension·quality: The rubric above scores the archive without the 1 file(s) a check rejected:
... [WRN] extension·quality: ".../extensions/behaviors/.notes.txt"
Error: Extension quality failed: 1 check(s) would block a push (safety).The checks run, and are named, in this order: content-collectives,
additional-files, safety, dependency-trust, skills, fmt-lint,
upgrade-chain, review, and archive-size.
Output (bare specifiers)
An extension in package.json mode that imports left-pad bare, with
package.json declaring left-pad as a URL dependency
("left-pad": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz"):
... [INF] extension·quality: "✗" "symbols-docs" ["0/1"] — "Most symbols documented"
... [INF] extension·quality: → 'deno doc could not analyse the source, so JSDoc coverage could not be measured: The registry cannot resolve the bare import "left-pad"; use an explicit npm: or jsr: specifier.'
...
... [ERR] extension·quality: deno doc could not analyse this extension's source, so the documentation factors score 0:
... [ERR] extension·quality: 'The registry cannot resolve the bare import "left-pad"; use an explicit npm: or jsr: specifier.'
... [INF] extension·quality: Unresolved warnings:
...
... [INF] extension·quality: bare-specifiers — (multiple files): Extension has bare imports that ship as written, which the registry's scorer cannot resolve, so it would score the documentation factors 0: "left-pad". Push rewrites a bare import only when the project's Deno config (deno.json or deno.jsonc imports, an importMap file, a scope covering the module, or a workspace root's imports) resolves it to an npm:, jsr:, node: or URL specifier, or, with no Deno config, when package.json declares it as an npm registry dependency installed in node_modules; add such an entry or dependency for each, or write the specifier in its place.
... [INF] extension·quality: fix: Map each bare name in the deno.json imports to an explicit npm:, jsr:, node: or URL specifier (such as npm:zod@4), or, in a package.json project, declare it as an npm registry dependency and install it in node_modules; push writes the specifier in its place in the shipped source. Or write the specifier in the source yourself, so the registry scorer can resolve imports. Swamp's lint never applies no-import-prefix, so deno.json needs no exclude for it.
... [INF] extension·quality: Packaged archive: 1770 bytes
... [ERR] extension·quality: The registry cannot resolve this extension's bare imports: they ship as written, so it would score the documentation factors 0. Push rewrites only the bare imports the project's Deno config resolves.
Error: Extension quality failed: the registry cannot resolve its bare imports, which ship as written, so it would score the documentation factors 0.The bare-specifiers finding cannot be accepted. push reports it as a review
warning and does not fail on it. With a Deno config, or with no project file at
all, a bare import the config does not resolve fails the bundle before the
finding is reported, unless the bundle never loads it, as with an import type:
... [ERR] extension·push: error: Import "left-pad" not a dependency and not in import map from "file://.../extensions/behaviors/pad.ts"docAnalysisError names one of these causes:
| Reason | When |
|---|---|
The registry cannot resolve the bare import "<name>"; use an explicit npm: or jsr: specifier. |
A bare import ships as written; (npm:zod@4 for zod) is added for zod |
Not in the published archive: <file> (imported from <file>). |
A local module is missing from the archive, such as one a check rejected |
The scorer may not fetch imports from <host>. |
A remote import's host is one the scorer does not fetch from |
deno doc could not analyse this version's source. |
Any other failure |
When a check also failed, the error line names both:
Error: Extension quality failed: 1 check(s) would block a push (safety); deno doc could not analyse the source the registry would score.
JSON output
With --json, quality prints one document on stdout, including when it fails:
| Field | Type |
|---|---|
status |
"passed", or "failed" when a check that would block a push failed, a bare import ships as written, or deno doc could not analyse the source; matches the exit code |
allPassed |
boolean; the rubric's own result: false when any factor is missing. A missing factor costs points but does not change status or the exit code |
rubricVersion, earnedPoints, maxEarnablePoints |
number; maxEarnablePoints is the rubric's full maximum, 16 in the current rubric |
percentage |
number; earnedPoints times 100 divided by maxEarnablePoints, rounded down, the registry's formula. Provisional points count 0 and stay in the divisor |
grade |
string; the letter grade for percentage, by the grade thresholds |
ifProvisionalEarned |
{ percentage, grade } the registry gives the extension if it awards every provisional factor, or null when provisionalPoints is 0 |
provisionalPoints |
number; the points of provisional factors, pending server verification |
maxClientEarnablePoints |
number; maxEarnablePoints minus provisionalPoints. It does not feed percentage |
factors |
array of { id, label, earnedPoints, maxPoints, status, remediation? }; a factor's status is "earned", "missing" or "provisional" (pending server verification), and remediation says how to earn a missing factor |
dependencyTrust |
object; the dependency-trust audit: passed (nothing blocks a push), audited, errors, warnings |
registryScorable |
boolean; false when a bare import ships as written, so the registry cannot resolve it |
docAnalysisError |
string, or null when deno doc ran; why it could not analyse the source. The documentation factors then score 0, as at the registry |
gateFailures |
array of { gate, message, details? }, one per failed check |
excludedFromArchive |
array of absolute paths a check rejected |
cacheHash |
string; the content hash a dry run reports as contentHash |
cacheHit |
boolean |
archiveSize |
number (bytes) |
warnings, reviewRuleWarnings |
arrays of safety and review findings |
declaredAcceptances, unresolvedWarnings |
present when any acceptance applied or a warning remains; see Declared acceptances |
The failed-check example above prints:
{
"status": "failed",
"allPassed": true,
"registryScorable": true,
"gateFailures": [
{
"gate": "safety",
"message": "Extension has safety errors that must be resolved before pushing.",
"details": {
"safetyErrors": [
{
"ruleId": "hidden-file",
"file": ".../extensions/behaviors/.notes.txt",
"message": "Hidden files are not allowed in extensions."
}
]
}
}
],
"excludedFromArchive": [".../extensions/behaviors/.notes.txt"],
"cacheHit": false
}The document is trimmed to the fields that changed; the rubric fields are present as in a passing run.
A missing factor is not a failed check. Without a README, quality exits 0 and
prints:
{
"status": "passed",
"earnedPoints": 9,
"maxEarnablePoints": 15,
"allPassed": false,
"factors": [
{
"id": "has-readme",
"label": "Has README or module doc",
"earnedPoints": 0,
"maxPoints": 2,
"status": "missing",
"remediation": "Add `README.md` to `additionalFiles:` as a bare basename ..."
}
],
"registryScorable": true,
"gateFailures": []
}This document is trimmed to the first factor and the fields that show the run's
outcome. To detect a missing factor in a script, read allPassed; to detect a
run that would block a push, read status or the exit code.
A validation error that stops quality before packaging, such as a directory
entry, prints {"error": "..."} on stderr and no stdout document.
Each dependency is audited at the version the push ships; see
Shipped version. Its audited entry in --json carries the
specifier as the source writes it, the version audited, and resolvedFrom:
exact, installed, lockfile or registry, absent when no version resolved.
A dependency reached through a bare import, by the project Deno config or by
package.json, also carries importedAs, the import as the source writes it,
and its line in the rubric ends (as "<import>").
A deprecated pin or a yanked JSR version costs the dependency-trust factor
without failing a check: the dependency is marked ✓, the warning is listed
with the others, and dependencyTrust.passed stays true, because nothing
blocks the push. A loose specifier that no lock resolved costs one point, which
the remediation adds after the blockers:
... [INF] extension·quality: "✗" "dependency-trust" ["0/2"] — "Dependencies pass trust audit"
... [INF] extension·quality: → "2 dependency blocker(s) found (deprecated packages, pinned deprecated versions or yanked JSR versions, HIGH/CRITICAL vulnerabilities, or missing JSR versions). See the details above, then update or replace the flagged dependencies. Also: 1 loose dependency specifier(s) (loose-specifier) cost 1 of 2 points. Pin an exact, published version to earn the second point."
... [INF] extension·quality: "✓" "ms"@"2.1.3"" — MIT, 333.2M/week, 70mo ago"
... [INF] extension·quality: "✓" "uuid"@"3.4.0"" — MIT, 173.7M/week, this month"
... [INF] extension·quality: "✓" "@std/assert"@"0.225.0"" — jsr"
... [WRN] extension·quality: Dependency trust warnings (non-blocking):
... [WRN] extension·quality: "ms": "last published 70 months ago (threshold: 24)"
... [WRN] extension·quality: "ms": "no lock: ^2.1.0 resolved to 2.1.3 today; commit a lock or pin exact versions (costs 1 point)"
... [WRN] extension·quality: "uuid": "vulnerability GHSA-w5hq-g745-h8pq (MEDIUM)"
... [WRN] extension·quality: "uuid": "version 3.4.0 is deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028)."
... [WRN] extension·quality: "@std/assert": "version 0.225.0 was withdrawn (yanked) by its author on JSR. Newest version that isn't yanked: 0.225.3."The age shown is the package's latest publish, so a deprecated old version can
read this month. See Shipped-version warnings for
each warning with a cause.
A dependency whose npm registry, OSV.dev or JSR lookup failed, or for which no
published version matches the specifier, is not audited. In the log it is marked
?, the dependency-trust factor earns nothing, and a
Dependencies not audited block follows the rubric:
... [INF] extension·quality: "✗" "dependency-trust" ["0/2"] — "Dependencies pass trust audit"
... [INF] extension·quality: → "1 dependency(ies) not audited because an OSV, npm or JSR lookup failed. Re-run when all three are reachable."
... [INF] extension·quality: "?" "ms"@"2.1.3"" — not audited: npm registry lookup failed (fetch failed); OSV lookup failed (fetch failed)"
... [WRN] extension·quality: Dependencies not audited (re-run when OSV, npm and JSR are reachable):
... [WRN] extension·quality: "ms": "not audited: npm registry lookup failed (fetch failed); OSV lookup failed (fetch failed)"With --json, its audited entry has passed: false, cause and reason,
and the warning carries the same cause. dependencyTrust.passed still means
nothing blocks the push:
{
"dependencyTrust": {
"passed": true,
"audited": [
{
"name": "ms",
"specifier": "npm:ms@2.1.3",
"version": "2.1.3",
"resolvedFrom": "exact",
"registry": "npm",
"license": null,
"weeklyDownloads": null,
"publishedAgo": null,
"passed": false,
"cause": "not-audited",
"reason": "npm registry lookup failed (fetch failed); OSV lookup failed (fetch failed)"
}
],
"errors": [],
"warnings": [
{
"dependency": "ms",
"message": "not audited: npm registry lookup failed (fetch failed); OSV lookup failed (fetch failed)",
"cause": "not-audited"
}
]
}
}The reason lists every cause, separated by semicolons:
| Reason | When |
|---|---|
npm registry lookup failed (<status or error>) |
The npm registry did not answer, or does not know the package (HTTP 404) |
npm lists no version <version> |
The shipped version is not one the npm registry lists |
OSV lookup failed (<status or error>) |
OSV.dev did not answer, such as OSV lookup failed (HTTP 503) |
OSV not queried (no published version matches <spec>) |
npm answered, but no published version satisfies the specifier, so OSV.dev was not asked |
OSV not queried (no resolvable version) |
npm did not answer and the specifier is not an exact pin or locked, so no version resolved |
JSR lookup failed (<status or error>) |
JSR did not answer |
invalid npm package name |
The import names no valid npm package |
audit check failed (<error>) |
The audit of the package threw |
Code from outside npm and JSR — a URL import, or a git or local package.json
dependency — is not audited either, and costs the factor the same way; see
Unaudited dependencies:
... [INF] extension·quality: "✗" "dependency-trust" ["0/2"] — "Dependencies pass trust audit"
... [INF] extension·quality: → "1 dependency(ies) not audited because the code comes from outside npm and JSR. Replace it with an npm: or jsr: package."A range no published version satisfies also fails the bundle
(Could not find constraint), which stops the push before it reports the audit.
See
Scorecard Rubric § Dependency trust audit.
quality scores repository-verified as the registry will. Only the registry
can confirm a public repository, so that case is provisional locally: it earns 0
and its 2 points stay in the divisor, capping the local score at 14/16 = 87%
until publish.
| Case | Local status | Label |
|---|---|---|
| The collective has private source hosting and the extension will publish private | earned |
Private repository (collective attested) |
Otherwise, repository is an HTTPS URL on github.com, gitlab.com, codeberg.org or bitbucket.org |
provisional |
Verified public repository |
| Otherwise | missing |
Verified public repository |
The first row ignores the repository URL, and applies when there is none.
quality asks Swamp Club whether the collective has private source hosting,
which needs a login; when it cannot tell, the first row does not apply. An
extension will publish private when:
- it is already published, and its published version is private — a republish keeps the published visibility;
- it is not published yet, and the manifest sets
visibility: privateor the collective's namespace is private.
quality reads private source hosting and namespace privacy from Swamp Club,
with a 5-second limit. Without an answer — not logged in, a rejected key, Swamp
Club unreachable, or nothing reported for the collective — it scores the URL
alone, and the remediation says private source hosting could not be checked.
The registry awards the factor at publish time, after its public-reachability check or through the collective's private source hosting. See the Scorecard Rubric for every factor and its points.
push
Validates and uploads the extension to the registry. Without --dry-run, the
upload is a three-phase exchange: initiate, upload archive, confirm.
Flags
| Flag | Description |
|---|---|
--dry-run |
Build the archive and run the registry checks read-only, without pushing. |
-y, --yes |
Skip confirmation prompts; the summary records any warnings this waived. |
-f, --force |
Skip confirmation prompts (alias for --yes). |
--visibility <visibility> |
Publication visibility: public (registry default) or private; overrides manifest visibility. Omit to use the manifest or registry default. |
--release-notes <text> |
Per-version release notes (max 5000 chars). |
--channel <channel> |
Release channel: beta, rc, or stable (default: stable). |
--version-suffix <type> |
Override the version's micro segment: epoch uses the Unix timestamp (e.g. 2026.06.18.1750263600). |
--skip-upgrade-check |
Suppress the warning when a behavior version is bumped without upgrade entries. |
--repo-dir <dir> |
Repository directory (env: SWAMP_REPO_DIR). |
--extensions-dir <dir> |
Extensions root: the directory that contains extensions/ (behaviors, workflows and skills resolve from it; env: SWAMP_EXTENSIONS_DIR). |
Stages
- Parse the manifest and validate required fields.
- Run the registry identity checks: authentication, reserved collective, collective membership, and, for private intent, private entitlement.
- Resolve entry points, their local imports,
includefiles, workflows, and skills, and detect the project's Deno config (orpackage.json). - Validate
quality.yamlbeside the manifest, when present. - Run the safety analysis over all files.
- Run the dependency-trust audit.
- Run the formatting, lint, and upgrade-chain checks.
- Run the review rules and apply declared acceptances.
- Bundle each entry point and build the
tar.gzarchive, or reuse the archivequalitycached for the same content hash with the same Swamp version. - Check that the version is not published on any channel.
- Run the version-drift check (advisory).
- Upload (initiate, upload, confirm) — skipped under
--dry-run.
A real push stops at the first failed registry check. A dry run runs every check, reports each one, and never prompts or writes to the registry.
Registry checks
| Check | Log label | Passes when |
|---|---|---|
authentication |
authentication |
The registry accepts the stored credentials. |
reserved-collective |
reserved collective |
The collective is not reserved, or the registry verified membership of it. |
collective-membership |
collective membership |
The manifest's collective is one of the account's collectives. |
private-entitlement |
private entitlement |
The collective's plan allows private extensions. Runs for private intent only. |
version-exists |
version exists |
The manifest version is not published on any channel. |
The checks run and are reported in the order above. private-entitlement is
omitted when collective-membership did not pass. Each check ends in one of
three statuses:
| Status | Meaning |
|---|---|
passed |
The check ran and the push would proceed. |
failed |
The check ran and the push would stop, with the message a real push fails with. |
not-run |
The check could not run. cause names why. |
| Cause | Meaning | Dry-run exit |
|---|---|---|
registry-unavailable |
The registry did not answer the request the check needs. | Non-zero |
entitlement-undecided |
The registry answered, but reported no entitlement for the collective, or a trial state the CLI does not know. | Zero |
authentication-failed |
The registry rejected the credentials; authentication itself is failed. |
Non-zero |
membership-unverified |
Membership of a reserved collective could not be verified; reserved-collective failed. |
Non-zero |
no-credentials |
No credentials were available, so the registry was not asked. | Zero |
A dry run prints its whole summary first and then exits non-zero on any failed
check or any check not run for registry-unavailable. The error line repeats
the failed check's message, or reads
Registry check "<label>" could not run: <message>.
When the registry does not answer the sign-in request, a dry run reports
authentication as not run and exits non-zero; a real push in the same
situation checks membership against the signed-in username and continues.
A passed authentication check names the credential:
| Credential | Message |
|---|---|
Personal key, signed in or in SWAMP_API_KEY |
Signed in as <username>. |
| Collective API token | Signed in with an API token for @<collective> (fingerprint <fp>). |
| Collective API token whose collective is not reported | Signed in with an API token (fingerprint <fp>). |
The fingerprint is the one swamp auth whoami prints. With a collective API
token in SWAMP_API_KEY:
... [INF] extension·push: authentication: passed — Signed in with an API token for @skunk-ape (fingerprint e83f6430f3d7a0d0).When the registry does not report the caller's collectives and the credential
has no username, collective-membership is not run (registry-unavailable):
Could not check that @<collective> is one of your collectives: the registry did not report your collectives, and this credential has no username to check against.
A real push in that case is refused with the same message and
Try again when <server> is reachable.
Version already published
A version is unique across channels. When the manifest version is already
published, the outcome depends on the channel it is on relative to the requested
--channel:
| Published on | version-exists message |
|---|---|
| The requested channel | Version <v> already exists for <name>. |
| A lower channel | Version <v> already exists for <name> on channel '<existing>'. To move it to '<requested>' without re-publishing, run: swamp extension promote <name> <v> --channel <requested> |
| A higher channel | Version <v> already exists for <name> on channel '<existing>', above '<requested>'. A version cannot move down a channel; publish a new version instead. |
A dry run reports the message as a failed check and exits non-zero. So does a
non-interactive push (--json, --yes, --force, or no terminal); with the
same channel, the error adds
Use a different version or let the CLI bump it interactively. --yes never
promotes.
An interactive push asks instead. On a lower channel it offers three choices, with no default; Enter asks again:
Version 2026.10.06.1 of @swampadmin/text-entropy already exists on channel 'beta'; you asked for 'stable'.
1. Promote: move the published 'beta' build of @swampadmin/text-entropy@2026.10.06.1 to 'stable' (your local files are not uploaded)
2. Bump: publish your local files as 2026.10.06.2 to 'stable'
3. Stop: exit; nothing is pushed
Choose [1/2/3]:Promote runs swamp extension promote in-process and exits without publishing:
... [INF] extension·push: Running: "swamp extension promote @swampadmin/text-entropy 2026.10.06.1 --channel stable"
... [INF] extension·promote: Promoting...
... [INF] extension·promote: Promoted "@swampadmin/text-entropy"@"2026.10.06.1" from "beta" to "stable"On the same or a higher channel it offers to bump the version's micro segment:
Version 2026.10.06.1 of @swampadmin/text-entropy already exists on channel 'stable'; you asked for 'beta', and a version cannot move down a channel.
y = publish your local files as 2026.10.06.2 to 'beta'; a review report for 2026.10.06.1 does not carry over to 2026.10.06.2
N = exit; nothing is pushed
Bump to 2026.10.06.2 and publish it to 'beta'? [y/N]On the same channel the first line reads
Version <v> of <name> already exists on channel '<channel>'.
Confirmation prompts
An interactive push asks up to two questions. When safety or review warnings remain after declared acceptances, a dependency was not audited, or a shipped-version warning remains:
Continue with push despite warnings? [y/N]Then, before uploading, it names the channel, including the default:
y = publish @swampadmin/text-entropy@2026.10.06.2 to stable now
N = exit; nothing is pushed
Push @swampadmin/text-entropy@2026.10.06.2 to registry (channel: stable)? [y/N]Answering N to either prints Push cancelled. and exits 0. --yes and
--force answer both. A dry run never prompts.
API calls
A dry run records every HTTP request it makes before the upload: the registry lookups, and the OSV.dev and npm requests of the dependency-trust audit. Each record holds the service, method, URL, outcome, and HTTP status. Headers are never recorded, and credentials in a URL are removed. A retried request is listed once per attempt.
| Field | Values |
|---|---|
service |
registry, osv, npm, or other, from the request's host. |
method |
The HTTP method. |
url |
The request URL. |
outcome |
ok (2xx), not-found (404), or error (any other status, or no response). |
status |
The HTTP status. Absent when there was no response. |
The log summary prints API calls made (<n>): followed by one line per request,
or No API calls were made. when there were none.
Content hash
The dry run prints the archive's content hash. It covers the manifest, every
packaged source, workflow, skill, include, additional, and binary file, the
Deno configuration, and quality.yaml when present. File paths enter the hash
relative to the extensions root (see Manifest argument),
so the hash does not depend on which Swamp repository runs the dry run: from
inside the extension directory, or from a sibling repository that infers the
root from the manifest or names it with --extensions-dir, the hash is the
same. Any byte change in a packaged file, or a version change, changes the hash.
The project's deno.lock is part of the hash too, when push reads one, although
it does not ship: changing only the lock changes the hash and repackages the
archive. The adversarial-review report path is keyed by the hash, so a change to
the lock alone also asks for a new review. quality --json reports the same
hash as cacheHash.
To compare a local hash with the one CI reports, see Create and Publish § Match CI's content hash.
Output (dry run)
$ swamp extension push extensions/behaviors/manifest.yaml --dry-run... [INF] extension·push: Extension: "@skunk-ape/text-entropy@2026.10.07.1"
... [INF] extension·push: Requested visibility: default (registry decides)
... [INF] extension·push: Description: "Measure the Shannon entropy of a piece of text"
... [INF] extension·push: Repository: "https://github.com/skunk-ape/text-entropy"
... [INF] extension·push: Behaviors (1):
... [INF] extension·push: "@skunk-ape/text-entropy" ("extensions/behaviors/text_entropy.ts")
... [INF] extension·push: Global Arguments:
... [INF] extension·push: "text": "string"
... [INF] extension·push: Additional files (2):
... [INF] extension·push: "extensions/behaviors/README.md"
... [INF] extension·push: "extensions/behaviors/LICENSE.md"
... [INF] extension·push: Labels: "text, analysis"
...
... [INF] extension·push: Dry run complete for "@skunk-ape/text-entropy@2026.10.07.1"
... [INF] extension·push: Archive size: "2.0KB"
... [INF] extension·push: Content hash: "bf925572727082765765218abc0b4226c2233d2bd0884c6541ee610af83e529c"
... [INF] extension·push: Registry checks:
... [INF] extension·push: authentication: passed — Signed in as skunk-ape.
... [INF] extension·push: reserved collective: passed — Collective "@skunk-ape" is not reserved.
... [INF] extension·push: collective membership: passed — Collective "@skunk-ape" is one of your collectives.
... [INF] extension·push: version exists: passed — Version 2026.10.07.1 is not published for @skunk-ape/text-entropy.
... [INF] extension·push: API calls made (3):
... [INF] extension·push: registry: GET https://swamp-club.com/api/whoami ok (200)
... [INF] extension·push: registry: GET https://swamp-club.com/api/v1/extensions/%40skunk-ape%2Ftext-entropy/versions?channel=stable&channel=rc&channel=beta&perPage=100&page=1 not-found (404)
... [INF] extension·push: registry: GET https://swamp-club.com/api/v1/extensions/%40skunk-ape%2Ftext-entropy/latest not-found (404)
...A printed path opens from the directory the command ran in: a file under that
directory prints relative to it, pushed content outside it prints relative (for
example ../text-entropy/...) unless the two share only /, and anything else,
such as the review report under the temporary directory, prints absolute.
A dry run that hits a failed check prints the same summary, then the failure:
...
... [INF] extension·push: Dry run complete for "@swamp/ssh@2026.09.28.1"
... [INF] extension·push: Archive size: "2.0KB"
... [INF] extension·push: Content hash: "8c4a87f11e3806a9c92828aa8da16ade791327ccddb891cd6e5d4356ca0d5140"
... [INF] extension·push: Registry checks:
... [INF] extension·push: authentication: passed — Signed in as skunk-ape.
... [INF] extension·push: reserved collective: passed — Collective "@swamp" is reserved; membership verified by the registry.
... [INF] extension·push: collective membership: passed — Collective "@swamp" is one of your collectives.
... [ERR] extension·push: version exists: failed — Version 2026.09.28.1 already exists for @swamp/ssh.
... [INF] extension·push: API calls made (3):
... [INF] extension·push: registry: GET https://swamp-club.com/api/whoami ok (200)
... [INF] extension·push: registry: GET https://swamp-club.com/api/v1/extensions/%40swamp%2Fssh/versions?channel=stable&channel=rc&channel=beta&perPage=100&page=1 ok (200)
... [INF] extension·push: registry: GET https://swamp-club.com/api/v1/extensions/%40swamp%2Fssh/latest ok (200)
...
Error: Version 2026.09.28.1 already exists for @swamp/ssh.When the registry does not answer:
...
... [WRN] extension·push: Version drift warnings (non-blocking):
... [WRN] extension·push: unable to check for version drift — registry lookup failed: Could not connect to https://swamp-club.com: fetch failed; the version-bump upgrade check was skipped too
... [INF] extension·push: Dry run complete for "@skunk-ape/text-entropy@2026.10.07.1"
... [INF] extension·push: Archive size: "2.0KB"
... [INF] extension·push: Content hash: "bf925572727082765765218abc0b4226c2233d2bd0884c6541ee610af83e529c"
... [INF] extension·push: Registry checks:
... [WRN] extension·push: authentication: not run — registry did not answer: Could not connect to https://swamp-club.com: fetch failed
... [INF] extension·push: reserved collective: passed — Collective "@skunk-ape" is not reserved.
... [INF] extension·push: collective membership: passed — Collective "@skunk-ape" is one of your collectives.
... [WRN] extension·push: version exists: not run — registry lookup failed: Could not connect to https://swamp-club.com: fetch failed
... [INF] extension·push: API calls made (3):
... [INF] extension·push: registry: GET https://swamp-club.com/api/whoami error
... [INF] extension·push: registry: GET https://swamp-club.com/api/v1/extensions/%40skunk-ape%2Ftext-entropy/versions?channel=stable&channel=rc&channel=beta&perPage=100&page=1 error
... [INF] extension·push: registry: GET https://swamp-club.com/api/v1/extensions/%40skunk-ape%2Ftext-entropy/latest error
...
Error: Registry check "authentication" could not run: registry did not answer: Could not connect to https://swamp-club.com: fetch failedVersion drift
The version-drift check looks up the latest published version. It is advisory
and never changes the exit code. When it cannot compare, its warning says why,
and with --json the entry under warnings.versionDrift carries a cause:
| Cause | When | Warning |
|---|---|---|
never-published |
The registry answered 404 or 410. | unable to check for version drift — no previously published version found in the registry (this is expected on first publish) |
no-credentials |
No credentials were stored. | Names the missing credentials; the version-bump upgrade check was skipped too. |
authentication-failed |
The registry answered 401 or 403. | Names the rejection; the version-bump upgrade check was skipped too. |
registry-unavailable |
No network, a 5xx, or any other error. | unable to check for version drift — registry lookup failed: <reason>; the version-bump upgrade check was skipped too |
A drift warning that found a real difference has no cause.
JSON output (dry run)
With --json, a run prints one document on stdout. Its status says how the
run ended:
status |
When |
|---|---|
dry_run |
A dry run finished, including one with failed registry checks. |
pushed |
A push completed. |
blocked |
A local check blocked the push; errors is keyed by the check. |
failed |
The run failed for any other reason; the error is on stderr. |
cancelled |
A prompt was declined. |
A dry run's document carries:
| Field | Type |
|---|---|
status |
"dry_run" |
resolved |
object; the resolved manifest, with every file name absolute |
warnings |
object; present when any warning remains, with the arrays safety, review, dependencyTrust, versionDrift, and versionBumpUpgrade, each only when non-empty; a dependencyTrust entry with a cause is an unaudited dependency or a shipped-version warning |
name |
string |
version |
string |
archiveSize |
number (bytes) |
visibility |
"public", "private", or "default" (the registry decides) |
contentHash |
string |
registryChecks |
array of { name, status, message, cause?, credential? }; a failed version-exists row adds existingChannel and requestedChannel |
apiCalls |
array of { service, method, url, outcome, status? } |
acceptedWarnings |
object; present when --yes or --force waived a warning. See Waived warnings. |
declaredAcceptances |
object; present when any acceptance applied. See Declared acceptances. |
unresolvedWarnings |
array; present when a warning remains. See Declared acceptances. |
A passed authentication row carries credential, with the field names of
swamp auth whoami --json: { username, fingerprint } for a personal key, or
{ collectiveToken: true, collectiveSlug, fingerprint } for a collective API
token.
The example below is trimmed: empty arrays under resolved, the
adversarial-review-report entries, and the last two API calls are left out.
{
"status": "dry_run",
"resolved": {
"name": "@skunk-ape/text-entropy",
"version": "2026.10.07.1",
"visibility": "default",
"description": "Measure the Shannon entropy of a piece of text",
"repository": "https://github.com/skunk-ape/text-entropy",
"models": [
{
"type": "@skunk-ape/text-entropy",
"fileName": ".../extensions/behaviors/text_entropy.ts",
"globalArguments": [
{
"name": "text",
"type": "string",
"description": "The text to measure entropy for",
"required": true
}
]
}
],
"additionalFiles": [
".../extensions/behaviors/README.md",
".../extensions/behaviors/LICENSE.md"
],
"labels": ["text", "analysis"]
},
"warnings": {
"review": [
{
"ruleId": "testing-completeness",
"dimension": "Testing Completeness",
"severity": "medium",
"file": ".../extensions/behaviors/text_entropy.ts",
"message": "No sibling `_test.ts` found — cover both success and failure paths with unit tests before publishing.",
"remediation": "Add a sibling <name>_test.ts covering the success and failure paths.",
"acceptance": {
"form": "comment",
"file": ".../extensions/behaviors/text_entropy.ts",
"line": 1,
"position": "file-header",
"text": "// swamp-quality-ignore testing-completeness"
}
},
{
"ruleId": "behavior-spelling",
"dimension": "Compatibility",
"severity": "medium",
"file": "(extension)",
"message": "Extension uses the behavior spelling (the behaviors: manifest key, the extensions/behaviors/ directory, export const behavior in 1 entry point). swamp clients and workers older than this release cannot load it: they read only export const model, extensions/models/ and the models: manifest key.",
"remediation": "Keep the behavior spelling if every client and worker that installs this extension runs this swamp release or later; otherwise use the model spelling (export const model, extensions/models/, manifest models:). Accept the finding in quality.yaml to stop this prompt.",
"acceptance": {
"form": "sidecar",
"file": ".../extensions/behaviors/quality.yaml",
"entry": { "rule": "behavior-spelling" }
}
}
],
"versionDrift": [
{
"check": "version-drift",
"output": "unable to check for version drift — no previously published version found in the registry (this is expected on first publish)",
"cause": "never-published"
}
]
},
"name": "@skunk-ape/text-entropy",
"version": "2026.10.07.1",
"archiveSize": 2027,
"visibility": "default",
"contentHash": "bf925572727082765765218abc0b4226c2233d2bd0884c6541ee610af83e529c",
"registryChecks": [
{
"name": "authentication",
"status": "passed",
"message": "Signed in as skunk-ape.",
"credential": {
"username": "skunk-ape",
"fingerprint": "08c75ce7fa23fa22"
}
},
{
"name": "reserved-collective",
"status": "passed",
"message": "Collective \"@skunk-ape\" is not reserved."
},
{
"name": "collective-membership",
"status": "passed",
"message": "Collective \"@skunk-ape\" is one of your collectives."
},
{
"name": "version-exists",
"status": "passed",
"message": "Version 2026.10.07.1 is not published for @skunk-ape/text-entropy."
}
],
"apiCalls": [
{
"service": "registry",
"method": "GET",
"url": "https://swamp-club.com/api/whoami",
"outcome": "ok",
"status": 200
}
],
"unresolvedWarnings": [
{
"ruleId": "testing-completeness",
"file": ".../extensions/behaviors/text_entropy.ts",
"message": "No sibling `_test.ts` found — cover both success and failure paths with unit tests before publishing.",
"remediation": "Add a sibling <name>_test.ts covering the success and failure paths.",
"acceptance": {
"form": "comment",
"file": ".../extensions/behaviors/text_entropy.ts",
"line": 1,
"position": "file-header",
"text": "// swamp-quality-ignore testing-completeness"
}
},
{
"ruleId": "behavior-spelling",
"file": "(extension)",
"message": "Extension uses the behavior spelling (the behaviors: manifest key, the extensions/behaviors/ directory, export const behavior in 1 entry point). swamp clients and workers older than this release cannot load it: they read only export const model, extensions/models/ and the models: manifest key.",
"remediation": "Keep the behavior spelling if every client and worker that installs this extension runs this swamp release or later; otherwise use the model spelling (export const model, extensions/models/, manifest models:). Accept the finding in quality.yaml to stop this prompt.",
"acceptance": {
"form": "sidecar",
"file": ".../extensions/behaviors/quality.yaml",
"entry": { "rule": "behavior-spelling" }
}
}
]
}A blocked run carries errors, keyed by the check that blocked it, beside any
resolved and warnings recorded before the block: safety, review,
dependencyTrust, collective, quality (formatting and lint),
upgradeChain, or compilation:
{
"status": "blocked",
"errors": {
"safety": [
{
"ruleId": "hidden-file",
"file": ".../extensions/behaviors/.notes.txt",
"message": "Hidden files are not allowed in extensions."
}
]
}
}A run that fails for any other reason, such as a missing manifest or a version
that already exists in a non-interactive push, prints {"status": "failed"} on
stdout and the usual {"error": ...} document on stderr.
Output (successful push)
... [INF] extension·push: Pushed "@stack72/text-entropy@2026.05.31.1"
... [INF] extension·push: Channel: "stable"
... [INF] extension·push: Visibility: "public"
... [INF] extension·push: Extension ID: "bbc4f071-..."
... [INF] extension·push: Archive size: "3.5KB"
... [INF] extension·push: "Behaviors: 1, Workflows: 0, Vaults: 0, Bundles: 1"With --json, the completed push's document has status "pushed", the
resolved manifest and any warnings, then name, version, extensionId,
archiveSize, the content counts (modelCount, workflowCount, bundleCount,
vaultCount, datastoreCount, reportCount, webhookCount, skillCount),
channel, and the applied visibility, followed by acceptedWarnings,
declaredAcceptances, and unresolvedWarnings when present. It has no
registryChecks, apiCalls, or contentHash.
Visibility
When a publish request omits visibility:
- A new extension in a public collective is public.
- A new extension in a private collective is private, including the existing exception to the private-extension entitlement gate.
- Subsequent publishes preserve the extension's own visibility, even if its collective's visibility has changed.
The publication intent comes from --visibility, then the manifest's
visibility field, then the registry default. public selects the registry
default, so --visibility public overrides a private manifest; it does not make
an already-private extension public. Only private intent is sent to the
registry. A dry run reports the intent as public, private, or default; a
completed push reports the applied visibility. When --visibility public or
visibility: public was requested and the extension stays private, the push
warns and points at swamp extension visibility, which changes
an existing extension's visibility. See
Registry publication API for the wire contract.
Release channels are independent of visibility.
Private entitlement
For private intent, the push checks the collective's entitlement from the same
sign-in answer it uses for collective membership. A dry run reports the result
as the private-entitlement registry check; a real push stops on a failure.
Nothing about the plan is stored locally.
The registry's privateExtensions verdict for the collective decides: allowed
passes, trial-ended and paywalled fail, and any other value leaves the check
undecided. A registry that sends no verdict, such as a self-hosted or older one,
is judged on plan and trial instead: a paid plan, admin standing or an active
trial passes, an ended trial or none fails. A trial starts only when its
collective is created, never at publish.
| The registry reported | Status | Message |
|---|---|---|
| Allowed, on a paid plan | passed |
Collective "@<slug>" is on the <plan> plan, which allows private extensions. |
| Allowed, in an active trial | passed |
Collective "@<slug>" is in its free trial (<n> days left, ends <date>), which allows private extensions. |
| Allowed, with admin standing | passed |
Collective "@<slug>" has admin standing, which allows private extensions. |
| Allowed, on neither (a covered personal namespace) | passed |
Collective "@<slug>" is covered by a paid plan or active trial on another collective you belong to, which allows private extensions. |
| Trial ended | failed |
Collective "@<slug>"'s <n>-day free trial has ended. Private extensions need a paid plan; upgrade at <registry>/o/<slug>/billing. |
| Paywalled, with a Personal License | failed |
Collective "@<slug>" has a Personal License, which does not include private extensions. Private extensions need a paid plan; upgrade at <registry>/o/<slug>/billing. |
| Paywalled otherwise | failed |
Private extensions in "@<slug>" need a paid plan; upgrade at <registry>/o/<slug>/billing. |
| A verdict the CLI does not know | not-run (entitlement-undecided) |
the registry reported a private-extensions verdict for "@<slug>" that this client does not know; private publication is decided at publish |
| No verdict, and a Personal License | not-run (entitlement-undecided) |
the registry did not say whether the Personal License on "@<slug>" includes private extensions; private publication is decided at publish |
| No verdict, and a trial state the CLI does not know | not-run (entitlement-undecided) |
the registry reported a trial state for "@<slug>" that this client does not know; private publication is decided at publish |
| No entitlement for the collective | not-run (entitlement-undecided) |
the registry did not report entitlement for "@<slug>"; private publication is decided at publish |
The trial reads 1 day left on its last day, and omits , ends <date> or the
<n>-day length when the registry did not send them. No message names a plan
the collective is not on.
A failed check makes the dry run exit non-zero, and a real push is refused
before upload with the same message. An undecided check leaves the dry run
green; the registry decides at publish.
... [INF] extension·push: private entitlement: passed — Collective "@skunk-ape" is covered by a paid plan or active trial on another collective you belong to, which allows private extensions.... [ERR] extension·push: private entitlement: failed — Collective "@ended-trial"'s 30-day free trial has ended. Private extensions need a paid plan; upgrade at https://swamp-club.com/o/ended-trial/billing.When the registry refuses a private publication, the CLI prints the registry's reason followed by what the registry had reported for the collective at sign-in, in the words of the entitlement check:
Error: <registry reason>. At sign-in the registry reported that collective "@<slug>"'s 30-day free trial has ended. Private extensions need a paid plan; upgrade at <registry>/o/<slug>/billing.| The registry reported at sign-in | The sentence after the registry's reason |
|---|---|
| An allowed or refused standing | At sign-in the registry reported that and the check's message, its first letter lowered |
| An undecided standing | At sign-in and the undecided reason, such as At sign-in the registry did not report entitlement for "@<slug>". |
The upgrade sentence appears only when the registry had already reported a refusal at sign-in.
An authorized operative can use the registry UI to make an already-published extension public. This is a visibility change, not a manifest setting.
Private visibility covers every public surface: the extension is absent from
registry listings and search, its page returns 404 for anyone outside the owning
collective, swamp extension pull and the registry API return 404, and it has
no social card — the page emits no description or Open Graph image, and
/og/x/<name> returns 404. Owners and admins of the owning collective see the
full page as normal.
Private extensions include an additional warning line:
warn extension·push "@stack72/text-entropy" is private — only members of "@stack72" can pull itBlocking errors
The push is refused when any of the following is found. The safety and
dependency-trust checks also run during quality.
Safety errors (see
Manifest § Push Checks for
the full table): eval() or new Function(), symlinks, hidden files,
disallowed file extensions, files over 1 MB, total size over 10 MB, more than
150 files.
Only .ts, .json, .md, .yaml, .yml, and .txt files are allowed. Files
listed in binaries are exempt, and so are the extensionless legal files
LICENSE, COPYING, COPYING-EXCEPTION, NOTICE, PATENTS, AUTHORS, and
CONTRIBUTORS, so a license may ship as bare LICENSE. Any other file is
rejected:
... [ERR] extension·push: Safety errors (push blocked):
... [ERR] extension·push: "extensions/behaviors/helper.sh": 'File extension ".sh" is not allowed. Allowed: .ts, .json, .md, .yaml, .yml, .txt'An additionalFiles entry with a disallowed extension is refused before the
safety analysis, with the binaries field named as the place for executables:
Error: File "extensions/behaviors/deploy.sh" in additionalFiles has extension ".sh" which is not allowed. Allowed extensions for additionalFiles: .ts, .json, .md, .yaml, .yml, .txt. If this is an executable or binary file, move it to the `binaries` field in manifest.yaml instead.Dependency-trust errors: at the version the push ships, any npm:
dependency that is deprecated while latest is too, or that carries a HIGH,
CRITICAL, or unknown-severity OSV.dev advisory, blocks the push, as does a
jsr: package or version that does not exist. A dependency is an npm: or
jsr: import written inline or reached through a bare import that the project
Deno config or package.json resolves to one; see
Shipped version. Two advisories on one package:
ERR extension·push Dependency trust errors (push blocked):
ERR extension·push "lodash": "vulnerability GHSA-jf85-cpcp-j695 (CRITICAL)"
ERR extension·push "lodash": "vulnerability GHSA-35jh-r3h4-6jhm (HIGH)"| Error | When |
|---|---|
package is deprecated |
The shipped version is deprecated on npm, and so is latest |
vulnerability <id> (<severity>) |
OSV.dev reports a HIGH, CRITICAL or UNKNOWN advisory for the shipped version |
JSR package not found |
JSR does not know the package |
invalid JSR package name |
The import names no valid JSR package |
version <version> not found on JSR |
The JSR package has no version the specifier resolves to |
The three JSR errors carry cause: "jsr-missing" in --json. The push stops
with
Error: Extension has dependency trust errors that must be resolved before pushing.:
... [ERR] extension·push: Dependency trust errors (push blocked):
... [ERR] extension·push: "@std/assert": "version 0.0.999 not found on JSR"Lower-severity advisories, unusual licenses, low download counts and an old
latest release are advisory warnings: they are reported and do not prompt. A
deprecated pin whose latest is not deprecated, a yanked jsr: version and a
specifier that is not an exact pin and that no lock resolved prompt for
confirmation; see Shipped-version warnings. So does
a dependency that is not audited; see
Unaudited dependencies. See the
Scorecard Rubric § Dependency trust audit.
Safety warnings
Subprocess spawning (Deno.Command()), lines with 500+ non-whitespace
characters, and base64-looking blobs in .ts files, and IPv4 address literals
in .md and .txt files, are warnings, not errors. Addresses in the RFC 5737
documentation, loopback, and link-local ranges do not warn. Each finding names
its rule, file, and line. A warning can be accepted where it occurs; see
Declared acceptances. A warning that is not accepted
makes the push prompt for confirmation. --yes waives it; see
Waived warnings.
Review warnings
Review warnings surface after the safety and formatting checks. They are
warnings, not blocking errors: the push prompts for confirmation when any remain
after declared acceptances, and --yes waives them.
Two categories of review rule produce warnings:
Static rules check for common oversights:
| Rule ID | Dimension | Condition |
|---|---|---|
testing-completeness |
Testing Completeness | A behavior file has no sibling _test.ts file. |
credentials-sensitive-field |
Credentials & Secrets | A schema field name looks like a secret but is not marked .meta({ sensitive: true }). |
schema-strictness |
Schema strictness | A behavior uses z.object({}).passthrough() with no declared properties. |
bare-specifiers |
scoring | A bare import ships as written, which the registry's scorer cannot resolve, so it would score the documentation factors 0. push warns; quality fails. |
behavior-spelling |
Compatibility | The extension uses the behaviors: manifest key, the extensions/behaviors/ directory, or export const behavior, which older Swamp clients and workers cannot load. |
uncatalogued-model reports each behavior entry point the registry catalog
would leave out, and what could not be read: a non-plain export, a missing
literal type, or a missing literal version. It appears in push, including
--dry-run and --json, and in quality, and changes no exit code. See
Behavior catalog.
Adversarial-review report checks for a content-hash-bound JSON report at a
deterministic path. The report is invalidated when the extension source changes.
A missing, stale, or incomplete report (or one with any "issue" verdict)
produces a warning. It cannot be accepted.
Output
... [WRN] extension·push: Extension review warnings:
... [WRN] extension·push: ["medium"] "Testing Completeness" — "extensions/behaviors/text_entropy.ts": "No sibling `_test.ts` found — cover both success and failure paths with unit tests before publishing."
... [WRN] extension·push: ["medium"] "Adversarial review" — "/tmp/swamp-extension-review/_skunk-ape_text-entropy-bf925572727082765765218abc0b4226c2233d2bd0884c6541ee610af83e529c.json": "No adversarial review recorded for the current code — perform the review and write the report here (run with --dry-run --json for the fill-in skeleton, or see the swamp skill)."
... [WRN] extension·push: ["medium"] "Compatibility" — "(extension)": "Extension uses the behavior spelling (the behaviors: manifest key, the extensions/behaviors/ directory, export const behavior in 1 entry point). swamp clients and workers older than this release cannot load it: they read only export const model, extensions/models/ and the models: manifest key."JSON output (--json)
With --json, review warnings are the warnings.review array of the run's
document:
{
"status": "dry_run",
"warnings": {
"review": [
{
"ruleId": "testing-completeness",
"dimension": "Testing Completeness",
"severity": "medium",
"file": ".../extensions/behaviors/text_entropy.ts",
"message": "No sibling `_test.ts` found — cover both success and failure paths with unit tests before publishing.",
"remediation": "Add a sibling <name>_test.ts covering the success and failure paths.",
"acceptance": {
"form": "comment",
"file": ".../extensions/behaviors/text_entropy.ts",
"line": 1,
"position": "file-header",
"text": "// swamp-quality-ignore testing-completeness"
}
},
{
"ruleId": "adversarial-review-report",
"dimension": "Adversarial review",
"severity": "medium",
"file": "/tmp/swamp-extension-review/_skunk-ape_text-entropy-bf925572727082765765218abc0b4226c2233d2bd0884c6541ee610af83e529c.json",
"message": "No adversarial review recorded for the current code — perform the review and write the report here (run with --dry-run --json for the fill-in skeleton, or see the swamp skill).",
"remediation": "Run the adversarial review and record its report at the path the finding names.",
"acceptance": null,
"skeleton": {
"extension": "@skunk-ape/text-entropy",
"version": "2026.10.07.1",
"reviewedAt": "<ISO-8601 timestamp>",
"dimensions": [
{ "id": "credentials-secrets", "verdict": "pending", "note": "" }
]
}
}
]
}
}The example is trimmed to the first two review warnings and the skeleton's first
dimension. remediation says how to fix the finding, and acceptance says
where to accept it — the same object as in
unresolvedWarnings — and is null when the rule
cannot be accepted. The skeleton field is present only on the
adversarial-review-report rule. It is an object with every review dimension
pre-filled as "verdict": "pending". Write this skeleton to the path in file,
fill in reviewedAt and each dimension's verdict ("pass", "issue", or
"not-applicable") and note, and re-run the push to clear the warning.
Shipped version
Push writes each npm: and jsr: import in the shipped source at one exact
version, the version the bundle holds, and audits that version:
- An exact pin (
1.2.3): that version. - In
package.jsonmode, the version installed innode_modulesfor a bare importpackage.jsondeclares as an npm registry dependency. When two importers resolve one declared range to two installed copies, each ships and is audited at its own version. - Otherwise, the version Deno resolved for the bundle: the version a lockfile records when the project has one, else the version Deno takes from its cache or the registry. See Scorecard Rubric § At push for which lockfile is read.
A written range with a lock at 2.1.3 therefore ships as npm:ms@2.1.3. Ranges,
unpinned imports and npm dist-tags are accepted as input and never ship; a
=1.2.3 or v1.2.3 spelling fails the bundle, and a JSR dist-tag is refused.
See
Extension Dependencies
for every input.
An npm package's license, maintainers and deprecation are read from the shipped
version. The age warning reads the package's latest publish. zod is not pinned
or audited: Swamp's runtime provides it. A Deno config that resolves zod to any
4.x version or range (npm:zod@^4) in every module ships it as npm:zod@4,
still provided; see
Extension Dependencies § zod.
A bare import that the project Deno config resolves to an npm: or jsr:
specifier is a dependency like an inline one: push writes the package at its
exact version in the import's place in the shipped source, and the audit checks
that version, with the same blocking. Each finding for it ends with the import
as the source writes it:
... [WRN] extension·quality: "ms": `no lock: ^2.1.0 resolved to 2.1.3 today; commit a lock or pin exact versions (costs 1 point) (imported as "ms" through the project's Deno config)`In package.json mode, push ships each bare import resolved to an installed
package as npm:<name>@<installed version>, and audits each installed copy at
its version:
... [WRN] extension·push: "ms": 'no lock: ^2.1.0 resolved to 2.1.2 today; commit a lock or pin exact versions (costs 1 point) (imported as "ms" through package.json)'Push leaves node_modules unchanged. A node_modules directory above the
repository does not affect the push, except in package.json mode with a bare
import: then the bundle fails, because Deno does not strip types from files
under node_modules:
... [ERR] extension·push: error: [ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING]: Stripping types is currently unsupported for files under node_modules, for "file://.../node_modules/entropy/.../hello.ts"A package subpath keeps its path: "lodash-es/chunk.js" mapped through
"lodash-es": "npm:lodash-es@4.18.1" ships as npm:lodash-es@4.18.1/chunk.js.
No deno.json, deno.jsonc, deno.lock, package.json, package-lock.json,
.npmrc or node_modules ships in the archive; the versions they decided ship
in the source and the dependency audit record. One
listed in additionalFiles or reached through include is left out with the
archive-project-file warning.
Dependency audit record
Push writes dependency-audit.json at the archive root, beside manifest.yaml,
in every archive it packages. It lists each npm: and jsr: package version
the shipped source names, the code from outside npm and JSR, and a SHA-256 of
each bundle, so the registry audits the versions that ship and a consumer can
check the bundles; see
Scorecard Rubric § Version resolution.
An extension with nothing to audit gets empty lists. The record from an
extension that imports npm:ms@^2, with a lockfile:
{
"recordVersion": 2,
"bundleFormat": 1,
"bundles": {
"bundles/dep.js": "sha256:f3ab0920fc1ee848bf2addecbebf18c37f0e99a6c7082699afbce13c686b2b34"
},
"dependencies": [
{
"registry": "npm",
"name": "ms",
"spec": "2.1.3",
"version": "2.1.3",
"from": "lockfile",
"locked": true,
"writtenAs": [
"npm:ms@^2"
]
}
],
"unaudited": []
}| Field | Description |
|---|---|
recordVersion |
2 |
bundleFormat |
The bundle layout the archive's bundles use; a consumer whose Swamp does not run it rebuilds from the source |
bundles |
Each bundle's archive path and its sha256: digest |
registry |
npm or jsr |
name |
The package name |
spec |
The version the shipped source writes; always equal to version |
version |
The version the bundle holds and the audit checks |
from |
How it was decided: exact, installed, lockfile or registry, as resolvedFrom in quality |
locked |
Whether a valid lock fixed the version: a deno.lock, or a package-lock.json that node_modules matches. A non-exact writtenAs with locked: false costs one point |
writtenAs |
Each specifier the source wrote for this version, before push pinned it |
unaudited |
Code from outside npm and JSR: each entry's kind (url, git or package-json), its origin, and a sha256: digest of each module the bundle holds |
The record from an extension that imports a URL:
{
"recordVersion": 2,
"bundleFormat": 1,
"bundles": {
"bundles/dep.js": "sha256:8b61744005ea8eea7562580a80542b282214208ba363c58d4ee5bed48cfa213d"
},
"dependencies": [],
"unaudited": [
{
"kind": "url",
"origin": "https://deno.land/std@0.224.0/fmt/colors.ts",
"modules": {
"https://deno.land/std@0.224.0/fmt/colors.ts": "sha256:50270bc789e9db9e439ca95b09a02b3b6fb61237a4188c675153568190e89f7e"
}
}
]
}One dependency entry is written per registry, name and version, so two installed
copies of one package are two entries. The record leaves out zod. Archives
published before the canonical form carry a recordVersion: 1 record, whose
spec is what the source wrote, a range included; the registry keeps auditing
them by the v1 rules. pull checks each bundle against bundles and does not
install the record.
Shipped-version warnings
Three dependency-trust warnings name a problem with the version that ships, and
carry a cause:
cause |
Message | When |
|---|---|---|
deprecated-version |
version <version> is deprecated: <npm notice> |
The shipped npm version is deprecated and latest is not |
loose-specifier |
no lock: <written> resolved to <version> today; commit a lock or pin exact versions (costs 1 point) |
The specifier is unpinned, a range or a dist-tag, and no valid lock resolved it |
jsr-yanked |
version <version> was withdrawn (yanked) by its author on JSR. Newest version that isn't yanked: <version>. |
The shipped JSR version is yanked |
<written> is what the source writes after @, or an unpinned import. A
version a valid lock decided raises no loose-specifier warning. The yanked
message names the newest stable version that is not yanked on the shipped
version's major line (its minor line for 0.x), else the newest overall, and
ends No other version is available. when there is none. An import with no
version at all fails lint (no-unversioned-import) before the audit runs. The
push lists the warnings in their own block:
... [WRN] extension·push: Dependency warnings (--yes accepts):
... [WRN] extension·push: "ms": "no lock: ^2.1.0 resolved to 2.1.3 today; commit a lock or pin exact versions (costs 1 point)"
... [WRN] extension·push: "uuid": "version 3.4.0 is deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028)."
... [WRN] extension·push: "@std/assert": "version 0.225.0 was withdrawn (yanked) by its author on JSR. Newest version that isn't yanked: 0.225.3."
... [WRN] extension·push: Dependency trust warnings (non-blocking):
... [WRN] extension·push: "ms": "last published 70 months ago (threshold: 24)"
... [WRN] extension·push: "uuid": "vulnerability GHSA-w5hq-g745-h8pq (MEDIUM)"They are gated like safety and review warnings: an interactive push asks
Continue with push despite warnings? [y/N], and only --yes or --force
waives them; declared acceptances do not apply to
dependencies. They never change the exit code. In --json, each is a
warnings.dependencyTrust entry with its cause and a remediation;
deprecated-version and jsr-yanked also carry the suggestedVersion the
message names:
{
"dependency": "@std/assert",
"message": "version 0.225.0 was withdrawn (yanked) by its author on JSR. Newest version that isn't yanked: 0.225.3.",
"cause": "jsr-yanked",
"suggestedVersion": "0.225.3",
"remediation": "Pin jsr:@std/assert@0.225.3 (or the newest non-yanked version your code supports)."
}cause |
remediation |
|---|---|
deprecated-version |
Move to <version>, the newest version that isn't deprecated. |
loose-specifier |
Commit a deno.lock, or pin the exact version this push resolved (<version>). |
jsr-yanked |
Pin jsr:<package>@<version> (or the newest non-yanked version your code supports). |
When the installed package decided the version, the loose-specifier
remediation is
Commit a deno.lock or a package-lock.json that matches node_modules, or pin the exact installed version (<version>) in package.json.,
and the deprecated-version remediation adds
Then run `npm install` or `deno install` so node_modules holds the new version.
Each is also listed under Unresolved warnings: at the end of the run, with its
remediation as the fix: line, and in unresolvedWarnings with the cause
as its ruleId and (dependency) as its file:
... [INF] extension·push: Unresolved warnings:
... [INF] extension·push: loose-specifier — (dependency): ms: no lock: ^2.1.0 resolved to 2.1.3 today; commit a lock or pin exact versions (costs 1 point)
... [INF] extension·push: fix: Commit a deno.lock, or pin the exact version this push resolved (2.1.3).
... [INF] extension·push: deprecated-version — (dependency): uuid: version 3.4.0 is deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
... [INF] extension·push: fix: Move to 14.0.3, the newest version that isn't deprecated.
... [INF] extension·push: jsr-yanked — (dependency): @std/assert: version 0.225.0 was withdrawn (yanked) by its author on JSR. Newest version that isn't yanked: 0.225.3.
... [INF] extension·push: fix: Pin jsr:@std/assert@0.225.3 (or the newest non-yanked version your code supports).A dependency entry has no or accept line, since no acceptance applies to it.
These stay warnings. A yanked JSR version or a deprecated npm version still
installs when it is pinned exactly or held in a lockfile; range resolution skips
a yanked version. Instead of blocking, each costs points on the
dependency-trust factor: a loose specifier no lock resolved costs one of the
two points, a deprecated pin or a yanked version costs both. See
Scorecard Rubric § At push.
Unaudited dependencies
A dependency is not audited, never passed, when its npm registry, OSV.dev or JSR lookup failed, or no published version matches the specifier. The push lists it in its own block before the review warnings:
... [WRN] extension·push: Dependencies not audited (re-run when OSV, npm and JSR are reachable; --yes accepts):
... [WRN] extension·push: "ms": "not audited: npm registry lookup failed (fetch failed); OSV lookup failed (fetch failed)"Code from outside npm and JSR
— a URL import, or a git or local package.json dependency — is not audited
either. It is named by its origin, and listed under unaudited in the
dependency audit record:
... [WRN] extension·push: Dependencies not audited (--yes accepts):
... [WRN] extension·push: "https://deno.land/std@0.224.0/fmt/colors.ts": "not audited: https://deno.land/std@0.224.0/fmt/colors.ts is a URL import, from outside npm and JSR, so no registry audit covers it"A git dependency reads is a git dependency, and a file:, link:,
workspace:, portal: or path dependency is a local package.json dependency.
The reasons are listed under quality. Each is also listed under
Unresolved warnings: with not-audited as its rule and a fix: line that
depends on the reason:
| Reason | fix: |
|---|---|
| A lookup failed | Re-run when OSV, npm and JSR are reachable. |
| No published version matches the specifier | Change the specifier to a version the registry publishes. |
invalid npm package name |
Correct the package name in the import. |
audit check failed (<error>) |
Re-run; if it fails again, report it. |
| Code from outside npm and JSR | Replace it with an npm: or jsr: package. |
In --json, the warning carries the same text as remediation. Unaudited
dependencies are gated like
shipped-version warnings: an interactive push asks
Continue with push despite warnings? [y/N], and --yes waives them; see
Waived warnings. They never block on their own and never
change the exit code. In --json, each is a warnings.dependencyTrust entry
with cause: "not-audited". The dependency-trust warnings without a cause
stay advisory: they do not prompt and are not recorded. Re-run the push when
OSV.dev, the npm registry and JSR are reachable; code from outside npm and JSR
stays not audited until it is replaced.
Behavior catalog
The registry catalog reads a behavior's type and version as string literals
from a plain export const behavior = { ... } object:
export const behavior = {
...definition,
type: "@acme/thing",
version: "2026.09.25.1",
};- A behavior built by a shared factory and spread into the export repeats both literals in the export.
- The export carries no type annotation; use
satisfiesafter the object instead.
A behavior that does not meet this installs and runs, but the registry does not
list it: it is missing from swamp extension search --content-type behaviors
and from contentMetadata.models in swamp extension info. push and
quality report it as an uncatalogued-model warning. The same rules apply to
the compatibility export spelling; see
Behavior § Compatibility.
Waived warnings
--yes and --force answer both confirmation prompts, so they waive every
safety and review warning that remains after declared acceptances, every
unaudited dependency and every
shipped-version warning. They do not waive errors.
When a flag waived at least one warning, the summary records each one:
... [WRN] extension·push: Accepted 3 warnings with --yes:
... [WRN] extension·push: ["medium"] "Testing Completeness" — "extensions/behaviors/text_entropy.ts": "No sibling `_test.ts` found — cover both success and failure paths with unit tests before publishing."
... [WRN] extension·push: ["medium"] "Adversarial review" — "/tmp/swamp-extension-review/_skunk-ape_text-entropy-bf925572727082765765218abc0b4226c2233d2bd0884c6541ee610af83e529c.json": "No adversarial review recorded for the current code — perform the review and write the report here (run with --dry-run --json for the fill-in skeleton, or see the swamp skill)."
... [WRN] extension·push: ["medium"] "Compatibility" — "(extension)": "Extension uses the behavior spelling (the behaviors: manifest key, the extensions/behaviors/ directory, export const behavior in 1 entry point). swamp clients and workers older than this release cannot load it: they read only export const model, extensions/models/ and the models: manifest key."With --json, the run's document carries the same record as acceptedWarnings:
| Field | Type |
|---|---|
safety |
array of { ruleId, file, line?, message } |
review |
array of { ruleId, dimension, severity, file, line?, message } |
dependencyTrust |
array of { dependency, message, cause, suggestedVersion?, remediation? }, the unaudited dependencies and shipped-version warnings; present only when non-empty |
Dependency warnings are listed first in the summary:
... [WRN] extension·push: Accepted 6 warnings with --yes:
... [WRN] extension·push: "ms": "no lock: ^2.1.0 resolved to 2.1.3 today; commit a lock or pin exact versions (costs 1 point)"
... [WRN] extension·push: "uuid": "version 3.4.0 is deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028)."
... [WRN] extension·push: "@std/assert": "version 0.225.0 was withdrawn (yanked) by its author on JSR. Newest version that isn't yanked: 0.225.3."and in --json, trimmed to that list:
{
"acceptedWarnings": {
"dependencyTrust": [
{
"dependency": "ms",
"message": "no lock: ^2.1.0 resolved to 2.1.3 today; commit a lock or pin exact versions (costs 1 point)",
"cause": "loose-specifier",
"remediation": "Commit a deno.lock, or pin the exact version this push resolved (2.1.3)."
},
{
"dependency": "uuid",
"message": "version 3.4.0 is deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
"cause": "deprecated-version",
"suggestedVersion": "14.0.3",
"remediation": "Move to 14.0.3, the newest version that isn't deprecated."
},
{
"dependency": "@std/assert",
"message": "version 0.225.0 was withdrawn (yanked) by its author on JSR. Newest version that isn't yanked: 0.225.3.",
"cause": "jsr-yanked",
"suggestedVersion": "0.225.3",
"remediation": "Pin jsr:@std/assert@0.225.3 (or the newest non-yanked version your code supports)."
}
]
}
}An unaudited dependency is recorded the same way, with cause: "not-audited".
A run in log mode without a terminal and without --yes fails at the first
prompt, including when the only warnings are dependency warnings, with
stdin is not a terminal — use --yes (-y) to skip confirmation prompts non-interactively.
A --json run never prompts.
Declared acceptances
An author accepts a warning-level finding where it occurs, with a reason, so the
acceptance is reviewed with the code. A declared acceptance silences that
finding in quality and push, and is listed with its reason in the summary,
in --json, and in the published extension's metadata. Errors cannot be
accepted. --yes is unaffected.
Comment form
// swamp-quality-ignore <rule-id>: <reason>In Markdown:
<!-- swamp-quality-ignore <rule-id>: <reason> -->The comment form applies to .ts, .js, .tsx, .jsx, and .md files. A
Markdown directive must close on the same line. Directives inside a Markdown
fenced code block or a multi-line /* */ comment are ignored.
| Rule scope | Placement |
|---|---|
| Site | On the finding's line, or alone on the line above it. One blank line between is allowed; stacked directives share a target. |
| File | Anywhere in the file. |
| Extension | Not accepted by comment; use quality.yaml. |
quality.yaml
quality.yaml sits beside manifest.yaml. It is found by location and is never
named in the manifest, so it survives a regenerated manifest. It is packaged at
the archive root and enters the content hash.
version: 1
accept:
- rule: ipv4-address-literals
file: hosts.txt
reason: documentation addresses from a private range| Key | Type | Notes |
|---|---|---|
version |
1 |
Required. |
accept |
array, at most 50 entries | Optional. |
accept[].rule |
string, 1–100 characters | Required. A rule ID from the table below. |
accept[].reason |
string, 1–200 characters | Required. |
accept[].file |
relative path, at most 512 characters | With file: a site-scoped rule in a file with no comment form, such as a .txt file; it accepts the rule for the whole file. Without file: an extension-scoped rule. |
generated |
{ by, source, commit } |
Optional. Declares generated code; accepts testing-completeness for the whole extension. Each value is 1–200 characters. |
Unknown keys are rejected, and the file is capped at 64 KiB. An invalid
quality.yaml stops quality and push before the safety and review checks
with quality.yaml beside the manifest is invalid: followed by each problem.
Rules
| Rule ID | Level | Accepted by |
|---|---|---|
long-line |
Warning | Comment on the line |
base64-run |
Warning | Comment on the line |
deno-command |
Warning | Comment on the line |
ipv4-address-literals |
Warning | Comment on the line, or quality.yaml with file |
schema-strictness |
Warning | Comment on the line |
credentials-sensitive-field |
Warning | Comment on the line |
testing-completeness |
Warning | Comment anywhere in the file, or generated in quality.yaml |
behavior-spelling |
Warning | quality.yaml without file |
bare-specifiers |
Warning | Not acceptable |
uncatalogued-model |
Warning | Not acceptable |
adversarial-review-report |
Warning | Not acceptable |
adversarial-review-dimension-issue |
Warning | Not acceptable |
stale-acceptance |
Warning | Not acceptable |
file-count, total-size, hidden-file, file-type, unreadable-file, symlink, file-size, fmt, lint, upgrade-chain, dynamic-code, dynamic-import, invalid-acceptance |
Error | Not acceptable |
Invalid and stale acceptances
An acceptance that names an unknown or error-level rule, has no reason, keeps
the <reason> placeholder, or uses the wrong form is an invalid-acceptance
error, which blocks quality and push:
... [ERR] extension·quality: Checks that would block a push:
... [ERR] extension·quality: "review": "Extension review found issues that must be resolved before pushing."
... [ERR] extension·quality: '[high] invalid-acceptance — .../extensions/behaviors/text_entropy.ts:1: Acceptance "// swamp-quality-ignore fmt: formatted by hand" is invalid: "fmt" is an error-level rule and cannot be accepted.'push reports the same error under
Extension review rule errors (push blocked):. bare-specifiers is a warning
that cannot be accepted: declaring it, in quality.yaml or inline, is an
invalid-acceptance error, although push without the declaration still only
warns on the finding:
... [ERR] extension·push: Extension review rule errors (push blocked):
... [ERR] extension·push: ["high"] "Declared acceptances" — "extensions/behaviors/quality.yaml:1": `Acceptance "accept[0]: bare-specifiers" is invalid: "bare-specifiers" is not a rule that can be accepted. Map each bare name in the deno.json imports to an explicit npm:, jsr:, node: or URL specifier (such as npm:zod@4), or, in a package.json project, declare it as an npm registry dependency and install it in node_modules; push writes the specifier in its place in the shipped source. Or write the specifier in the source yourself, so the registry scorer can resolve imports. Swamp's lint never applies no-import-prefix, so deno.json needs no exclude for it.`An acceptance whose rule no longer fires there is a stale-acceptance warning:
... [INF] extension·quality: stale-acceptance — text_entropy.ts:11: Acceptance of long-line matches nothing: the rule does not fire on line 12. Remove it.
... [INF] extension·quality: fix: Remove the acceptance; the finding it named no longer fires there.Report
quality and push end with two blocks: Accepted warnings:, the acceptances
that applied, and Unresolved warnings:, each warning that remains with its fix
and where to accept it.
... [INF] extension·quality: Accepted warnings:
... [INF] extension·quality: testing-completeness — extensions/behaviors/plain.ts: a fixture exercised by the factory test
... [INF] extension·quality: Unresolved warnings:
... [INF] extension·quality: ipv4-address-literals — extensions/behaviors/hosts.txt:2: Line 2 contains IPv4 address literals (10.0.0.12) that may be real infrastructure identifiers. Use RFC 5737 documentation ranges (192.0.2.x, 198.51.100.x, 203.0.113.x) or example.com for examples.
... [INF] extension·quality: fix: Use RFC 5737 documentation ranges (192.0.2.x, 198.51.100.x, 203.0.113.x) or example.com in examples.
... [INF] extension·quality: or accept in quality.yaml: { rule: ipv4-address-literals, file: hosts.txt }Each Accepted warnings: line is the rule, an em dash, the location, and
: <reason> when one was given. The location is file:line, or the file alone
for a file-scoped rule, or (extension) for an extension-scoped rule. A
generated declaration adds a generated by <by> from <source> at <commit>
line first.
With --json, the summary carries declaredAcceptances and
unresolvedWarnings, each omitted when empty:
| Field | Type |
|---|---|
declaredAcceptances.accepted |
array of { ruleId, file?, archivePath?, line?, reason, source, message }; source is inline, sidecar, or generated |
declaredAcceptances.generated |
{ by, source, commit }, when declared |
unresolvedWarnings |
array of { ruleId, file, line?, message, remediation?, acceptance? } |
acceptance is { form: "comment", file, line, position, text } for a comment,
or { form: "sidecar", file, entry } for a quality.yaml entry, where file
is the file to edit.
"declaredAcceptances": {
"accepted": [
{
"ruleId": "ipv4-address-literals",
"file": "hosts.txt",
"archivePath": "files/hosts.txt",
"line": 2,
"reason": "documentation addresses from a private range",
"source": "sidecar",
"message": "Line 2 contains IPv4 address literals (10.0.0.12) that may be real infrastructure identifiers. Use RFC 5737 documentation ranges (192.0.2.x, 198.51.100.x, 203.0.113.x) or example.com for examples."
},
...
]
}Registry
A push sends the acceptances to the registry in the extension's
contentMetadata.acceptances, with each file as its archive path. The
registry stores them with the version and lists them on the extension page in a
collapsed Accepted warnings section below the stats, headed by their count
and grouped by rule. The version detail
(GET /api/v1/extensions/{name}@{version}) and latestVersionDetail on
GET /api/v1/extensions/{name}/latest carry them as acceptances, which is
null for a version that declared none. The versions list does not carry them:
| Field | Type |
|---|---|
acceptances.accepted |
array of { rule, file, line, reason, source }; file, line and reason are null when the push omitted them |
acceptances.generated |
{ by, source, commit }, or null |
acceptances.total |
number of entries the push sent |
The registry keeps the first 500 entries; total counts every entry sent. A
malformed acceptances field is dropped and the confirmation returns a warning
beginning contentMetadata.acceptances was rejected; the rest of the listing is
kept and the push succeeds.
swamp extension info prints the latest version's acceptances; see
Management § info.
Registry publication API
Publication uses three requests:
POST /api/v1/extensions/pushreturnsuploadUrl,s3Key, andextensionIdwith status200.PUTtouploadUrluploads the gzip archive directly to storage.POST /api/v1/extensions/confirmpersists the extension and version with status201.
Both POST endpoints require name and version and accept an optional
visibility field. Its only supported explicit value is "private".
"public", null, empty strings, and non-string values are invalid.
swamp extension push sends it for private intent from --visibility private
or the manifest's visibility: private.
{
"name": "@public-collective/internal-infrastructure",
"version": "2026.09.16.1",
"visibility": "private"
}Omission and confirmation
| Push visibility | Confirm visibility | Applied behavior |
|---|---|---|
| Omitted | Omitted | Existing behavior, unless an earlier request reserved private visibility for this name and version. |
"private" |
Omitted | Private; confirmation recovers the stored choice. |
| Omitted | "private" |
Private, subject to authorization at confirmation. |
"private" |
"private" |
Private. |
| Any | Unsupported value | Rejected; the stored choice is not replaced. |
Existing behavior means:
- A new extension in a public collective defaults to public.
- A new extension in a private collective defaults to private, with the existing exception to the private-extension entitlement gate.
- An existing extension keeps its own visibility, even if the collective's visibility has changed.
Older clients need no additional fields, headers, or tokens. Release channels
(stable, rc, and beta) are independent of visibility.
A private choice is reserved for the normalized extension name and version and
bound to the initiating operative or collective-token identity. A different
operative cannot confirm that reservation. A replacement token for the same
collective can confirm it if its scope and authorization remain valid.
Reservations survive failed requests, server restarts, and upload-URL expiry. An
omitted retry does not erase them. A conflicting claim after confirmation has
started returns 409; the caller must use a new version where necessary.
License
POST /api/v1/extensions/confirm accepts an optional license string, an SPDX
expression checked by the same rules as the manifest field. The CLI sends the
manifest's license: on push. A license is never required.
license |
Result |
|---|---|
| Omitted | The version publishes with no license. |
| Valid SPDX | The version records it. |
| Invalid SPDX | The version publishes with no license, and the response's warnings array explains why. |
Every version returned by GET /api/v1/extensions/<name>/versions and /latest
carries license: the expression, or null when the version has none. The
extension-level license is the latest version's.
An entry of the versions list carries the version's channel, dates, yank state,
release notes, diff, license and swampRequirement, but not its content listing
(models, workflows, vaults, datastores, drivers, reports, skills, webhooks,
apps, extensions) or its acceptances. The version detail
(GET /api/v1/extensions/<name>@<version>) carries both.
Authorization
Both endpoints retain namespace membership checks. Collective tokens must match
the namespace and have extensions:push permission.
An explicit private choice, including one recovered during confirmation, also requires private-extension entitlement: a paid plan or an active trial on the owning collective. Personal keys and collective tokens are checked the same way at initiation and confirmation, and neither starts a trial. Site administrators retain the billing bypass, but must still satisfy the publication namespace checks.
A personal namespace is entitled when any collective its owner belongs to is. A collective that has ever paid is judged on its plan alone; its trial does not reopen the feature.
Authorization is checked again at confirmation. Losing membership or entitlement does not change a private request into a public publication. Explicit private republication of an already-private extension is entitlement-checked; omitted visibility keeps the legacy behavior.
Publishing with visibility: "private" does not convert an already-public
extension. That request returns 409; use the existing extension visibility
action before republishing.
The visibility action is POST /api/v1/extensions/<name>/public or
POST /api/v1/extensions/<name>/private; the response carries the applied
isPrivate. A signed-in namespace owner, or a personal API key belonging to
one, may call either; making an extension private requires private-extension
entitlement. A collective token needs extensions:push, its collective must own
both the namespace and the extension, and it may only make an extension public:
a token request to /private returns 403.
Confirmation response
The response retains extensionId, name, and version and adds the applied
visibility, which is either "public" or "private":
{
"extensionId": "...",
"name": "@public-collective/internal-infrastructure",
"version": "2026.09.16.1",
"visibility": "private"
}Privacy is persisted before discovery or publication events. Unauthorized readers cannot retrieve private metadata, archives, or checksums. Private publication events are routed privately or held when no private destination is configured.
Errors and rollout
| Status | Meaning |
|---|---|
400 |
Invalid JSON or unsupported explicit visibility. |
401 |
Missing authentication. |
403 |
Namespace, token scope, or explicit-private entitlement denied. For the entitlement refusal, swamp extension push adds what the registry reported for the collective at sign-in. |
409 |
Published version conflict, incompatible publish reservation, existing-public visibility conflict, or concurrent publication conflict. |
422 |
Missing required fields, invalid extension metadata, or archive not uploaded. |
Private-aware clients must wait for the service rollout to finish on all
replicas before sending the new field. Older servers ignore it. One successful
response from an upgraded replica does not establish rollout completion.
Private-aware clients must require visibility: "private" in the confirmation
response; a missing field is not evidence of privacy. Rolling back to an older
server requires pausing explicit-private publication.
promote
Promotes a published extension version to a higher release channel. Valid transitions: beta to rc, beta to stable, rc to stable. The archive content does not change — promotion is a metadata-only operation.
Arguments
<extension-or-manifest> — an extension name (e.g. @myorg/ext), or a manifest
path or extension directory, resolved like the
manifest argument of push.
[version] — the exact version to promote (e.g. 2026.06.10.1). Required with
an extension name; omitted with a manifest, whose name and version are used.
Flags
| Flag | Description |
|---|---|
--channel <channel> |
Target channel to promote to: rc or stable. Required. |
--from-channel <channel> |
Source channel: beta or rc. Skips direction validation if omitted. Not allowed with a manifest. |
--repo-dir <dir> |
Repository directory a relative manifest path resolves against (env: SWAMP_REPO_DIR). |
--extensions-dir <dir> |
Extensions root a relative manifest path resolves against (env: SWAMP_EXTENSIONS_DIR). |
Output
... [INF] extension·promote: Promoting...
... [INF] extension·promote: Promoted "@swampadmin/text-entropy"@"2026.10.06.1" from "beta" to "stable"From a manifest, the registry reports which channel the version is on:
... [INF] extension·promote: Promoting...
... [INF] extension·promote: Found "@swampadmin/text-entropy"@"2026.10.06.2" on channel "beta"; promoting "beta" → "stable"
... [INF] extension·promote: Promoted "@swampadmin/text-entropy"@"2026.10.06.2" from "beta" to "stable"Errors (manifest)
| Condition | Error |
|---|---|
| The version is on no channel | Nothing to promote: <name>@<v> is not published on any channel. |
| The version is already on the target | Nothing to promote: <name>@<v> is already on '<channel>'. |
| The version is on a higher channel | Nothing to promote: <name>@<v> is on channel '<existing>', which is not below '<channel>'. |
--from-channel with a manifest |
--from-channel cannot be used with a manifest: the registry reports which channel the version is on. |
Each exits 1.
Examples
swamp extension promote @myorg/ext 2026.06.10.1 --channel rc # beta → rc
swamp extension promote @myorg/ext 2026.06.10.1 --channel stable # rc → stable
swamp extension promote extensions/behaviors/my-behavior/manifest.yaml --channel stableyank
Yanks an extension or a specific version from the registry. Yanked extensions
cannot be pulled by consumers. Use swamp extension unyank to restore
availability.
Arguments
| Argument | Required | Description |
|---|---|---|
extension |
Yes | Extension name (e.g. @myorg/ext) |
version |
No | Specific version to yank. Omit to yank the entire extension. |
Flags
| Flag | Description |
|---|---|
--reason <text> |
Reason for yanking (required). |
--channel <channel> |
Channel to yank from: stable, beta, or rc. Default: all channels. |
-y, --yes |
Skip confirmation prompt. |
Output
extension·yank: Yanked "@myorg/ext"@"2026.06.10.1" — reason: "security vulnerability in v1"Examples
swamp extension yank @myorg/ext 2026.06.10.1 --reason "critical bug"
swamp extension yank @myorg/ext --reason "deprecated, use @myorg/ext-v2"
swamp extension yank @myorg/ext 2026.06.10.1 --reason "rc recalled" --channel rcvisibility
Reads or changes the visibility of an existing extension. An extension's visibility is set by its first push; this command changes it afterwards, the same way the registry's visibility setting does.
Arguments
| Argument | Required | Description |
|---|---|---|
extension |
Yes | Extension name (e.g. @myorg/ext) |
Flags
| Flag | Description |
|---|---|
--set <public|private> |
Visibility to apply. Omit to read the current visibility. |
--dry-run |
Report what --set would change without changing it. Requires --set. |
-y, -f, --yes, --force |
Skip the confirmation prompt. |
Without --set, the command only reads. With --set, it reads the current
visibility first; an extension already at the requested visibility is left alone
and reported as unchanged. The applied value is the one the registry returns.
A collective token needs the extensions:push scope and can only make an
extension public. Making an extension private needs a signed-in collective owner
(or their personal API key) and private-extension entitlement.
Output
extension·visibility: "@myorg/ext" is "private"
extension·visibility: "@myorg/ext" visibility: "private" → "public"
extension·visibility: Anyone can now pull "@myorg/ext"JSON output
{
"name": "@myorg/ext",
"before": "private",
"after": "public",
"changed": true,
"dryRun": false
}A read reports the same value in before and after, with changed: false. A
dry run reports the value --set would apply in after, with dryRun: true.
If the registry keeps a value other than the one --set asked for, requested
holds the asked-for value and the log output warns.
Examples
swamp extension visibility @myorg/ext --json
swamp extension visibility @myorg/ext --set public --dry-run
swamp extension visibility @myorg/ext --set public --yes --jsonunyank
Restores availability of a previously yanked extension or version. Consumers can pull the extension again after unyanking.
Arguments
| Argument | Required | Description |
|---|---|---|
extension |
Yes | Extension name (e.g. @myorg/ext) |
version |
No | Specific version to unyank. Omit to unyank the entire extension. |
Flags
| Flag | Description |
|---|---|
--reason <text> |
Reason for unyanking (optional, audit log only). |
--channel <channel> |
Channel to unyank: stable, beta, or rc. Default: all channels. |
-y, --yes |
Skip confirmation prompt. |
Output
extension·unyank: Restored "@myorg/ext"@"2026.06.10.1"Examples
swamp extension unyank @myorg/ext 2026.06.10.1
swamp extension unyank @myorg/ext 2026.06.10.1 --reason "patch applied"deprecate
Deprecates an extension in the registry. Deprecated extensions can still be
pulled but display a deprecation notice. Use swamp extension undeprecate to
remove the deprecation status.
Arguments
| Argument | Required | Description |
|---|---|---|
extension |
Yes | Extension name (e.g. @myorg/ext) |
Flags
| Flag | Description |
|---|---|
--reason <text> |
Reason for deprecation (required). |
--superseded-by <ext> |
Extension that supersedes this one (e.g. @myorg/ext-v2). |
-y, --yes |
Skip confirmation prompt. |
Output
extension·deprecate: Deprecated "@myorg/ext" — reason: "use @myorg/ext-v2 instead"Examples
swamp extension deprecate @myorg/ext --reason "use @myorg/ext-v2"
swamp extension deprecate @myorg/ext --reason "replaced" --superseded-by @myorg/ext-v2undeprecate
Removes deprecation status from an extension in the registry.
Arguments
| Argument | Required | Description |
|---|---|---|
extension |
Yes | Extension name (e.g. @myorg/ext) |
Flags
| Flag | Description |
|---|---|
-y, --yes |
Skip confirmation prompt. |
Output
extension·undeprecate: Removed deprecation from "@myorg/ext"Examples
swamp extension undeprecate @myorg/ext
swamp extension undeprecate @myorg/ext -yRelated
- Manifest — the YAML schema and full push-check tables.
- Scorecard Rubric — quality factors and the dependency-trust audit.
- Management — the consumer-side commands.
- About the Extension Publishing Lifecycle — why publishing is gated, including why review warnings are advisory rather than blocking.