This release is a pre-release and may not be stable for production use.
twosystems (Python)
Offline tools for calibrating and checking twosystems, a cheap, honest watchman for AI coding agents created by Shashikant. The watchman itself (the twosystems command and its hooks for Claude Code, GitHub Copilot and Codex) is on npm; this package works on the files it writes.
Status: alpha (0.1.0a1). twosystems-calibrate validate works now. The calibration commands arrive in Sprint 3. See the roadmap.
pip install --pre twosystems
twosystems-calibrate validate events ~/.twosystems/events.jsonl
Commands
The command is twosystems-calibrate, so it does not clash with the twosystems command installed from npm.
twosystems-calibrate validate events|lock FILE: check a file against the shared schemas. Available now. Exit code 0 means valid, 1 invalid, 2 a usage or file problem. It prints at most 100 problems and reads at most 64 MiB of an events log.twosystems-calibrate label: find candidate moments in your local sessions and label them quickly.twosystems-calibrate fit: calibrate decisions and writedecisions.lockwith a bounded false-alarm rate.twosystems-calibrate check: replay a labelled set and fail on drift or a model version change.twosystems-calibrate report: an HTML report of decisions and savings.
Library
twosystems.contracts offers validate_event, validate_event_text, validate_events_jsonl, validate_lock, validate_lock_text, iter_events_jsonl (one line at a time, to stop early on a large log), parse_json and is_well_formed, plus the limits MAX_DEPTH, MAX_EVENT_BYTES, MAX_LOCK_BYTES, MAX_EVENT_VALUES and MAX_LOCK_VALUES. They apply the same rules as the TypeScript core and run the same shared edge cases, including the exact error messages; see schemas/README.md for the rules and the few differences when values come from code.
Part of twosystems, created by Shashikant. Apache License 2.0.
Metadata
Release files for twosystems 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| twosystems-0.1.0a1.tar.gz | 16.3 kB | With provenance | Details for twosystems-0.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| twosystems-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for twosystems-0.1.0a1-py3-none-any.whl |
Total release size: 35.6 kB
Release files / twosystems-0.1.0a1.tar.gz
| Download URL | twosystems-0.1.0a1.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
845b7d5efaafe80f151cda7c836c55d1ab62e2e07a77a501b647bfd1ef8e7faa
|
|
BLAKE2b-256 checksum How to use checksums |
6023ef76307e4a0470f9e09dd044f7d1afdf04478ca5d76bed96c9c95de93908
|
| 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 logRelease files / twosystems-0.1.0a1-py3-none-any.whl
| Download URL | twosystems-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68ccf36fd8e70ef8f194cfb0c6ff95a15288cba8ed55119087f9c7ca58bc157c
|
|
BLAKE2b-256 checksum How to use checksums |
6d5d634571727591f529238a716843ef4ebcd6a79dd2d6583c5897c1fdc74d8b
|
| 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 logSecurity for twosystems 0.1.0a1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for twosystems-0.1.0a1.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.