Skip to main content

RoGuard — Romanian and Ukrainian interaction testing and guardrails

RoGuard combines local model review with explicit permission checks and a laboratory for fictional AI interactions. Developers can test whether a system preserves source restrictions, respects revocation, requests human review and still completes permitted tasks. The browser and CLI simulate actions; external execution requires separately configured host callbacks and live approval checks.

Install

pip install --upgrade roguard-child-safety

The core toolkit has no runtime dependencies and supports Python 3.9–3.14 on macOS, Linux and Windows.

roguard-studio --reliability --open
roguard-studio --review --open

V9 local model review

The optional v9 model proposes whether a Romanian or Ukrainian focal message needs review under the project's declared policy. It uses earlier turns to distinguish an ordinary topic change, a support signal and a revision of an earlier statement. Review is a proposal, not a finding that an event occurred or permission to contact anyone.

This model requires native Apple Silicon and Python 3.12 or later. In a separate virtual environment:

pip install --upgrade "roguard-child-safety[gemma4]"
roguard-fetch fetch
roguard-review --language ro --text "Mă ajuți să înțeleg exercițiul?"
roguard-review --language uk --text "Допоможеш розібратися із завданням?"

The explicit download fetches pinned, checksummed model files. The base is approximately 5.18 GB; subsequent inference is local. Keep disk space for the installed base and a verified private loading copy. For applications, load the model once and reuse it. Installation, conversation input and Python API.

The first neural evaluation of the reserved 600 synthetic cases passed the unchanged 99% recall and 5% false-review limits in both languages. The installed package also reproduced all 5,022 prior scores exactly. Those prior cases had zero missed concerns and two Romanian false alerts; all six language/group checks passed. Development selection used 6,341 cases and had zero errors across 14 groups.

Language Reserved cases Missed concerns False reviews Recall False-review rate
Romanian 300 0/150 0/150 100.00% 0.00%
Ukrainian 300 0/150 0/150 100.00% 0.00%

Measurements describe project-authored synthetic inputs. They do not establish accuracy on real children's messages or measured human benefit. Scores are not calibrated safety probabilities. A negative prediction cannot close a concern; an overlong input requests clarification, and malformed model output is rejected. The binary review task is qualified separately from the auxiliary interpretation heads.

Decision assurance

V9 preserves complete supplied interpretation hypotheses, computes an optimal adaptive clarification tree under declared reviewer costs, and verifies reports bound to their context, model identities and policy. Romanian and Ukrainian question labels and a local clarification workspace are included. The guarantee applies to the supplied finite problem; it does not establish that the true interpretation is among the supplied hypotheses. Assurance guide.

Test an application

roguard-lab demo --language uk --family revocation --target stale
roguard-lab compare --language ro
roguard-lab suite --fail-on-failure
  • Replay branching fictional scenarios against programmed references, recorded responses or an explicit Python adapter.
  • Find the first failing step and reduce a scenario within a bounded replay budget.
  • Preserve source restrictions through summaries, proposed memory and tool results.
  • Minimize declared disclosure cost while covering required task fields.
  • Compare permitted-task completion, unnecessary refusal and unauthorized proposals or deliveries.

Authenticated tenant APIs, encrypted durable permissions, one-attempt queued execution and metadata-only monitoring are available through optional integration extras. Host declarations and callback code remain trusted inputs. Integration guide.

Retained experimental backends

The older Studio conversation, context and evidence screens retain their documented backends; they do not automatically use the new Gemma 4 model. The semantic and adapted extras require a different Transformers major version and belong in a separate environment from gemma4. Their historical model limitations remain documented. Context workflow · Evidence workspace.

GitHub and full README · Training method · Evaluation record

Metadata

Release files for roguard-child-safety 9.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roguard-child-safety 9.0.0
File Size Uploaded
roguard_child_safety-9.0.0.tar.gz 10.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for roguard-child-safety 9.0.0
File Interpreter ABI Platform
roguard_child_safety-9.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.1 MB

Release files / roguard_child_safety-9.0.0.tar.gz

Download URL roguard_child_safety-9.0.0.tar.gz
Size 10.6 MB
Tags Source
SHA-256 checksum
How to use checksums
3011cf1ad0486614b393e0f6ba2e14930f5773877c47bc51f5284c05cc2c8b56
BLAKE2b-256 checksum
How to use checksums
9378cb5528a2158d98688377b10329a182d68863096257097b59a54aa633c0f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / roguard_child_safety-9.0.0-py3-none-any.whl

Download URL roguard_child_safety-9.0.0-py3-none-any.whl
Size 10.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f846b9cd744c83c05ff2aaa3ebed56dab671e67643d31bfc1347d6284c1edcce
BLAKE2b-256 checksum
How to use checksums
6ad9f661e9252d1ee312dc9c49b5cb6ec5c505c62cde1fbeec4f07bc9f777204
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page