Skip to content

Releases

Little Canary 0.5.1 — Ingest integrity and service lifecycle fixes

Choose a tag to compare

@roli-lpci roli-lpci released this 20 Oct 22:34
5587b55

A reliability patch for applications screening untrusted text with Little Canary. This release strengthens experimental Ingest publication and releases loopback-server sockets when the service exits.

Ingest integrity

  • Verified runs reject configured callbacks and screen with an owned configuration snapshot, preventing later callback changes from mutating the screened probe.
  • No-clobber publication fails when hard links are unavailable. Rollback quarantines targets before checking ownership and preserves concurrent replacements or a logged recovery path.
  • The evaluation runner rejects duplicate JSON keys and output paths that alias its input corpus; pinned directory handles prevent parent-symlink redirection from overwriting the corpus.

These fixes are included in #147. Ingest remains experimental; admission means the configured checks completed and policy was satisfied, not that content is harmless.

Service and compatibility

  • Close server sockets when run_server exits or startup/serving raises, including health-check failures (#140).
  • Preserve Python 3.9 installation with Requests 2.32.x while Python 3.10+ uses Requests 2.34.2 or newer within major version 2. Build and development metadata retain the advertised Python floor (#149, #155, #156).
  • Clarify plugin installation and canonical documentation links (#148, #153, #154).

Runtime fail-open routing and coverage-state semantics are unchanged. Verified Ingest now refuses callbacks; no-clobber writes require hard-link support and refuse publication where it is unavailable. Existing host capability evidence is retained. This patch makes no new detection-rate, latency or live-host certification claim.

Install or upgrade

Requires Python 3.9+.

python -m pip install --upgrade 'little-canary==0.5.1'
little-canary --version
little-canary demo

The demo replays the packaged recorded capture without a model or network call. It verifies replay/analyzer behavior and is separate from a live canary run.

Documentation · Host capability limits · Changes since 0.5.0

Prepared with AI assistance for Hermes Labs. Responsible human contributor: Rolando Bosch.

v0.5.0: Ingest surface

Choose a tag to compare

@roli-lpci roli-lpci released this 07 Oct 08:29
7bfa346

Experimental ingest surface with the R1 exact-type/shadowing gate, plus the hardened 0.5.0 screening core. See CHANGELOG.md for details.

little-canary 0.4.0

Choose a tag to compare

@roli-lpci roli-lpci released this 29 Sep 11:34
61855a9

Little Canary 0.4.0

Added

  • Offline demo by default: little-canary demo runs a packaged replay fixture with zero extra dependencies (no Ollama pull).
  • --timeout flag on demo/serve paths; timeout-induced DEGRADED now names the knob.
  • Teaching Ollama errors: clear guidance when the canary backend is unreachable.

Fixed

  • Claude Code plugin ships a single canonical manifest (plugins/claude-code/.claude-plugin/plugin.json); listing copy no longer implies Codex CLI coverage or a bundled local service.
  • Plugin adapter packages (OpenCode, Pi, OpenClaw) version-track the core release.

See the changelog for the exact changes.

little-canary 0.3.10

Choose a tag to compare

@roli-lpci roli-lpci released this 27 Sep 02:31
6abccc1

Little Canary 0.3.10

This patch publishes the fixes from PR #112 to PyPI. The 0.3.9 package predates that merge. The default canary, detector rules, 256-token output limit, and fail-open routing are unchanged.

Fixed

  • The OpenAI-compatible canary adapter treats length-limited and other incomplete responses as degraded coverage, with bounded failure reasons for failed calls. The Hermes Agent bundle has the same fix.
  • Paired benchmark summaries and the dashboard keep attack and benign-control results separate instead of showing a pooled accuracy percentage.
  • The JailBench-derived regression probe now points to its repository license file.

This patch does not establish a new attack-detection or false-block rate. The 0.3.9 limitations still apply. See the changelog for the exact changes.

little-canary 0.3.9

Choose a tag to compare

@roli-lpci roli-lpci released this 27 Sep 00:21
cce0f12

Little Canary 0.3.9

This release makes small local canaries easier to select and evaluate, clarifies incomplete screening, and improves host integration packaging. The default remains qwen2.5:1.5b; detection rules and the 256-token output limit are unchanged.

What changed

  • Selectable local models: Choose an installed Ollama model through the CLI, SecurityPipeline(canary_model=...), or the Hermes Agent plugin's LITTLE_CANARY_MODEL setting. We exercised Qwen3.5 2B, Liquid LFM2.5 1.2B, and Gemma 3 1B alongside the default. Weights are not bundled; check each model's terms and the evaluation guidance before deployment.
  • More honest evaluation: The headless runner records every case with structural and canary outcomes, coverage, errors, and layer latency. Incomplete inspection is unscored rather than treated as a pass or a miss. A separate five-pair JailBench-derived regression probe includes matched benign controls; it is not an aggregate accuracy benchmark.
  • Clearer coverage failures: Layer results can identify bounded causes such as output_limit and timeout. This improves diagnosis without changing fail-open routing.
  • Integration polish: The focused Hermes Agent plugin bundle and compatible requests range address catalog installation feedback. A native OpenClaw plugin screens the current prompt on its supported runner paths. The host capability matrix distinguishes prompt blocking from tool-authority control and annotation.

What this release does not claim

Quoted attack phrases and harmless canary acknowledgements can still block legitimate work. The original external TensorTrust sample has not been rerun across these model choices, so 0.3.9 does not claim a lower false-block rate or a general detection gain. Model results from smaller local screens should not be projected to other inputs or hardware. A degraded result means inspection coverage was incomplete, even when fail-open routing lets the turn continue.

Host behavior varies. In Hermes Agent, a genuine BLOCK withdraws downstream tool authority; it does not prevent the original prompt from reaching the model. Little Canary does not yet include a built-in human review-and-continue interface.

Thanks to Nous Research, especially @teknium1, for Hermes Agent catalog integration feedback that improved the package and installation path.

For the full change list and limitations, see the changelog.

little-canary 0.3.8

Choose a tag to compare

@roli-lpci roli-lpci released this 18 Sep 19:07
3851078

Packages the Claude Code plugin manifest at the location the Agent Plugins
v1.0.0 specification reads, so the plugin resolves for hosts outside Claude
Code. No detection, routing, or hook behavior changes.

Added

  • plugins/claude-code/plugin.json: an Agent Plugins v1.0.0 manifest at the
    plugin root, carrying the $schema identifier and the fields that
    specification allows. Claude Code continues to read
    plugins/claude-code/.claude-plugin/plugin.json, which is unchanged apart
    from the version bump; the two manifests are held in agreement by
    tests/test_claude_code_plugin.py (#93).

little-canary 0.3.7

Choose a tag to compare

@roli-lpci roli-lpci released this 15 Sep 20:14

Publishes the Hermes Agent plugin that merged to main after 0.3.6 and was
therefore not installable from PyPI.

Added

  • Opt-in plugin for the Hermes Agent framework (hermes-agent, Nous Research),
    little_canary.hermes_agent_plugin, published through the
    hermes_agent.plugins entry point. The host still has to enable it in its
    plugins.enabled allow-list. It screens the turn's user message once at
    pre_llm_call, annotates FLAG, BLOCK, and DEGRADED turns, and
    withdraws tool authority at pre_tool_call only for a genuine BLOCK. The
    hook cannot stop prompt delivery: a blocked turn still reaches the model,
    annotated, without its tools. Verified against hermes-agent 0.19.0 (#74).

Fixed

  • Hermes Agent plugin turn keys require both ids and are unambiguous, capacity
    eviction can no longer release a live BLOCK, and blocking_dispositions
    accepts only BLOCK, so degraded screening cannot fail closed (#75).
  • An unusable configured checker is reported as DEGRADED instead of leaving
    the turn unrecorded, and context truncation keeps the disposition guidance.

Changed

  • Repository standards, OpenSSF Scorecard, and Software Heritage archival
    workflows (#71, #72, #73).

Adapters remain opt-in. This release does not change detection logic,
benchmark claims, or the fail-open routing contract.

v0.3.6

Choose a tag to compare

@roli-lpci roli-lpci released this 09 Sep 22:25
f73e880

Publishes the native host integrations that were merged to main after
0.3.5 and were therefore not installable from PyPI.

Added

  • Optional native OpenAI Agents SDK input guardrail
    (little_canary.openai_agents), installed with the openai-agents extra.
    It maps screening results to safe, unsafe, and degraded outcomes, keeps the
    documented fail-open default with an explicit opt-in fail-closed policy, and
    the core package still imports without the SDK installed.
    examples/openai_agents_example.py shows the wiring.
  • Claude Code plugin under plugins/claude-code plus the repository
    marketplace manifest .claude-plugin/marketplace.json. The
    UserPromptSubmit hook calls the local blocking-mode server and denies the
    turn when the prompt is rejected. The hook script uses only the standard
    library and refuses non-loopback endpoints.
  • Hermes Gate repository rail (.hermes/gate.toml,
    .hermes/hermes_gate_runner.py) and the hermes-quality workflow, with
    runner tests in tests/test_hermes_gate_runner.py.

Changed

  • little-canary serve validates the requested port range and reports an
    explicit error instead of failing later in the socket bind.
  • The LintLang CI workflow pin moved from 0.5.0 to 0.5.3.

Adapters remain opt-in. This release does not change detection logic,
benchmark claims, or the fail-open routing contract.

Little Canary 0.3.5 — native Gemini CLI pre-agent gate

Choose a tag to compare

@roli-lpci roli-lpci released this 03 Sep 03:07
8fc21d4

Adds a native Gemini CLI BeforeAgent extension that screens the exact prompt against a local blocking-mode Little Canary server and denies unsafe input before model execution. Copied-install live tests proved both zero-token/zero-tool denial and a visible warning when screening is unavailable under the default fail-open policy. Loopback routing, payload sizes, and timeouts are bounded; fail-closed behavior remains explicitly opt-in.

Little Canary 0.3.4

Choose a tag to compare

@roli-lpci roli-lpci released this 18 Aug 20:03
60985ae

Little Canary 0.3.4 is a maintenance release with no product-behavior changes.

Highlights:

  • source and package metadata aligned at 0.3.4
  • Python 3.13 source-compatibility coverage
  • CI package-smoke checks for exact wheel and sdist installs
  • immutable workflow action pins and preserved OIDC publishing isolation
  • stable CodeMeta and aligned citation metadata
  • durable release-state guidance and stronger version-surface tests

Verified on merged main:

  • test matrix passed on Python 3.9–3.13
  • package-smoke passed
  • wheel and sdist build, Twine checks, isolated installs, import version, distribution metadata, and CLI version all passed

Publishing this release triggers the repository's existing PyPI Trusted Publishing workflow and the configured Zenodo integration.