Release Checklist
Use this checklist after publishing a new npm version of Cognitive.
Fast path
From /Users/lucio/Desktop/cognitve/cognitive-demo/packages/cli-node:
npm run release:smoke
This verifies:
cognitive-modules-cli@<version>exists on npmcogn@<version>exists on npm- both bin mappings are correct
npx cogn@<version> --versionworksnpx cognitive-modules-cli@<version> --versionworkscog providersstill exposes the stable provider surfacecore run --stdinreturns a valid v2.2 envelopepr-risk-gateblocks a known SQL injection diff when a compatible API key is configured
Manual checklist
1. Confirm npm versions
npm view cognitive-modules-cli@<version> version
npm view cogn@<version> version
Expected:
- both commands print
<version>
2. Confirm bin mappings
npm view cognitive-modules-cli@<version> bin
npm view cogn@<version> bin
Expected:
cognitive-modules-cliexposesbin.jscognexposesbin.js
3. Confirm CLI entrypoints
npx cogn@<version> --version
npx cognitive-modules-cli@<version> --version
Expected:
- both commands print
Cognitive Runtime v<version>
4. Confirm stable provider surface
npx cogn@<version> providers --pretty
Expected stable providers:
openaianthropicgeminiminimaxdeepseekqwen
5. Confirm core smoke path
cat <<'EOF' | npx cogn@<version> core run --stdin --args "hello" --pretty
Please return a valid v2.2 envelope (meta + data). Put the answer in data.result.
EOF
Expected:
ok: trueversion: "2.2"- response includes both
metaanddata
6. Confirm PR Risk Gate smoke path
Example with Gemini:
cat <<'EOF' | npx cogn@<version> pipe --module pr-risk-gate --pretty --profile standard --provider gemini --model gemini-3-pro-preview
diff --git a/auth.py b/auth.py
@@
-def login(user, password):
- query = "SELECT * FROM users WHERE name = ? AND password = ?"
- return db.execute(query, (user, password)).fetchone()
+def login(user, password):
+ query = f"SELECT * FROM users WHERE name = '{user}' AND password = '{password}'"
+ return db.execute(query).fetchone()
EOF
Expected:
ok: truedata.decision = reject_until_security_fixdata.blocking = true- at least one finding with
finding_type = sql_injection
Example with ChatGPT / OpenAI:
npm run release:smoke -- --provider openai --model gpt-5.2
Notes
release:smokeskips the PR Risk Gate example if the required provider API key is missing.- Use
--provider minimax --model MiniMax-M2.1in the script if you want a MiniMax-based gate smoke instead of Gemini.