logwarden v0.2.0¶
Status: Released 2026-11-17 · commit 6740972
This version makes logwarden usable by other projects and AI agents: findings point to the exact line and say how to fix it, and logs can be captured from tests.
What's new¶
- Project fields file. Projects list their own fields in
logwarden-fields.yaml, which is picked up automatically (or passed with--fields), and pin logwarden in only one place. - Findings an agent can act on. Each finding has the input line number, the rule, the
field and a fix hint.
--jsonreturns everything in machine-readable form. A field flagged as a banned synonym is no longer also reported as unknown. - Messages that give the fix.
status→ "use http.response.status_code",http_route→ "probably 'http.route'". - Reads stdin.
… | logwarden check -. Lines that aren't JSON are counted as skipped. - New commands.
logwarden rules [id],logwarden init [--agent],logwarden setup. Weaver downloads itself on first use. - pytest plugin
logwarden-pytest:LOGWARDEN_CAPTURE=logs.jsonl pytest. - MCP server
mcp/server.pywithcheck_logs,explain_rule,list_rulesandget_standard. - Docs
docs/standard.md,docs/rules.md,docs/integration.md.AGENTS.md, a skill, and anAGENTS.mdsnippet for other projects. - Action. New
fieldsandfailinputs, plus a job summary.
Upgrading from v0.1.0¶
- Change
uses: Ingeniator/logwarden@v0.1.0to@v0.2.0. - Rule messages now start with
§N:instead ofADR-0001 §N:. Rule ids are unchanged.
Verification¶
| Claim | How it was checked | Result |
|---|---|---|
Smoke test: every rule, line numbers, skipped count, no double report, --fields, stdin |
15 checks in tests/smoke.sh |
✅ |
| Works with macOS bash 3.2 | The local bash is 3.2.57 |
✅ |
Action passes on good logs, fails on bad logs, fail: "false" only reports |
CI job action |
✅ CI run 44168075637 |
| pytest plugin installs and captures | Clean venv locally, and CI job pytest-plugin |
✅ |
| Plugin works on a real service | yallmp: 433 tests pass, 573 JSON lines captured | ✅ |
| MCP tools work, including a pasted JSON line | stdio client against mcp/server.py with mcp 2.x |
✅ |
init --agent can be run twice safely |
Ran twice; AGENTS.md has one section |
✅ |