logwarden v0.3.0¶
Status: Released 2026-11-18 · tag v0.3.0.
One package and one version for every channel: PyPI, the GitHub Action and the Claude Code plugin all ship the same logwarden.
What's new¶
- Install from PyPI.
uv add --dev logwarden,pipx install logwarden, or run it without installing:uvx logwarden check logs.jsonl. - The CLI is rewritten in Python. It has the same commands (
check,rules,init,setup), the same--jsonfields and the same exit codes (0 clean, 1 violations, 2 usage/setup error).jqandbashare no longer needed. It runs on Linux, macOS and Windows. - Project config. Settings go in
[tool.logwarden]inpyproject.toml, or inlogwarden.tomlfor projects without Python. v0.3.0 readsfields. Unknown keys produce a warning instead of being ignored silently. - pytest plugin included. Installing
logwardenregisters the capture plugin;LOGWARDEN_CAPTURE=logs.jsonl pytestworks as before. - MCP server included.
logwarden mcp(install with thelogwarden[mcp]extra), e.g.uvx --from 'logwarden[mcp]' logwarden mcp. Same four tools as v0.2.0. - Claude Code plugin.
/plugin marketplace add Ingeniator/logwarden, then/plugin install logwarden. It provides the logwarden skill, the MCP server and the/logwarden:checkcommand, and updates with each release. - GitHub Action runs logwarden built from its own tagged source with
uvx, so the action and the CLI are always the same version. It doesn't need jq. Its inputs (logs,fields,fail) are unchanged. -
Release automation. Pushing a
v*tag builds and publishes to PyPI with trusted publishing (no stored token). -
Apache-2.0 license. The package, Action and plugin are licensed under Apache-2.0, the same license as OpenTelemetry and Weaver.
Breaking changes¶
logwarden-pytestis replaced bylogwarden. Uninstall it and installlogwarden.bin/logwarden,mcp/server.pyandpython/logwarden_pytest/are removed from the repo. Use the installedlogwardencommand.logwarden init --agentno longer copies the skill into.claude/skills/. Install the Claude Code plugin instead. It still writes theAGENTS.mdsection for other agents.
Upgrading from v0.2.0¶
uv remove --dev logwarden-pytest && uv add --dev logwarden
# CI: uses: Ingeniator/logwarden@v0.3.0
# Claude Code: /plugin marketplace add Ingeniator/logwarden && /plugin install logwarden
# then delete .claude/skills/logwarden/ if init --agent created it
Verification¶
CI run 44198240778 (commit b3f36a2):
38 tests passed on each of ubuntu py3.10, ubuntu py3.13, macos py3.13 and windows py3.13.
| # | Claim | How it was checked | Result |
|---|---|---|---|
| 1 | Same results as v0.2.0 | tests/golden/ holds v0.2.0 bash output for good, bad and an edge-case file (blank and non-JSON lines, arrays, nested values, nulls, Unicode, huge ints, uppercase levels). test_parity.py compares --json and text output on all 3 OSes. Also checked once locally on yallmp's 573 lines: JSON identical (2843 violations, 500 findings) |
✅ |
| 2 | Same exit codes 0 / 1 / 2 | test_cli.py: clean, violations, missing file, missing fields file, invalid fields file, --fields with --registry, bad usage, unknown rule |
✅ |
| 3 | No jq or bash needed | Ubuntu jobs delete jq first and pass. On Windows the CLI runs as python -m logwarden, with no bash |
✅ |
| 4 | Linux, macOS, Windows | CI matrix above, including real Weaver downloads and runs on each OS | ✅ |
| 5 | [tool.logwarden] fields and logwarden.toml are read; unknown keys warn |
test_config.py: both files, logwarden.toml wins, unknown key and invalid TOML warn, precedence, an end-to-end check using pyproject.toml |
✅ |
| 6 | pytest plugin registers from the logwarden package |
CI job package: wheel in a clean venv captures. test_pytest_plugin.py. Locally uv run --with <wheel> pytest on yallmp: 433 passed, 573 lines |
✅ |
| 7 | logwarden mcp works with the [mcp] extra, and gives a clear error without it |
test_mcp.py (stdio client, 4 tools, pasted JSON line, path, bad arguments) on all OSes. Without the extra: exit 2 with an install hint (test and clean venv) |
✅ |
| 8 | Claude Code plugin installs and loads the skill, MCP server and command | CI job plugin: claude plugin validate --strict passes for the marketplace and the plugin. Local install into an isolated config dir: logwarden@logwarden 0.3.0, skills logwarden + check, MCP server logwarden |
✅ |
| 9 | Action runs logwarden from its own source (same version) | CI job action: good passes, fail: "false" reports only, bad fails |
✅ |
| 10 | Tag → PyPI publish | Dry run: release run 44198482708 built and published 0.3.0.dev1 to TestPyPI with trusted publishing. Real publish: tag v0.3.0 → release run 44201210157 published to PyPI (License-Expression: Apache-2.0) and created the GitHub release with the wheel and sdist |
✅ |
| 11 | uvx logwarden works with no prior install |
From TestPyPI in a clean environment with an empty Weaver cache: uvx logwarden==0.3.0.dev1 check examples/bad.jsonl downloads Weaver and exits 1 with 7 violations. The plugin's MCP command uvx --from 'logwarden[mcp]==0.3.0.dev1' logwarden mcp serves all 4 tools. Repeated against PyPI with an empty Weaver cache: uvx logwarden==0.3.0 check examples/bad.jsonl --json exits 1 with 7 violations and 1 skipped line, good.jsonl passes, and uvx --from 'logwarden[mcp]==0.3.0' logwarden mcp serves all 4 tools |
✅ |
| 12 | Upgrade steps above are correct | Scratch project on logwarden-pytest@v0.2.0 captures. Running uv remove --dev logwarden-pytest && uv add --dev logwarden still captures, and logwarden version gives 0.3.0. If the removal is skipped, still exactly one captured line and no plugin conflict. (Not run in yallmp itself: its private index isn't reachable here, and it never had logwarden-pytest) |
✅ |
| 13 | Licensed Apache-2.0 | LICENSE in the repo, sdist and wheel; wheel metadata License-Expression: Apache-2.0; plugin.json license |
✅ uv build + twine check --strict pass; wheel METADATA has License-Expression: Apache-2.0 and licenses/LICENSE; sdist has LICENSE; claude plugin validate --strict passes |