Metadata-Version: 2.4
Name: algovoi-keystone-mongo
Version: 0.1.3
Summary: Bind MongoDB writes to the AlgoVoi keystone -- wrap any pymongo collection and every write gets a content-addressed execution_ref (keystone-only edition, Apache-2.0)
Author-email: AlgoVoi <chopmob@gmail.com>
License: Apache-2.0
Keywords: mongodb,pymongo,document-store,nosql,keystone,execution_ref,jcs,rfc8785,algovoi
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Database
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: algovoi-execution-ref>=0.1.0
Dynamic: license-file

# algovoi-keystone-mongo

[![Keystone Integration](https://img.shields.io/badge/Keystone-integration-7c8aa0)](https://docs.algovoi.co.uk/keystone)

Bind MongoDB writes to the AlgoVoi keystone -- every write on a wrapped pymongo collection gets a content-addressed execution_ref. Open, keystone-only edition, Apache-2.0. Byte-compatible with `algovoi-execution-ref`.
Available on request -- see https://docs.algovoi.co.uk/keystone-connectors

```python
from algovoi_keystone_mongo import keystone_collection

orders = keystone_collection(db.orders, decision_ref="sha256:...")
orders.insert_one(doc)
orders.execution_ref   # binds that write (scope = db.collection) to the keystone decision
```

Wraps write methods (insert_one/many, update_one/many, replace_one, delete_one/many, bulk_write,
find_one_and_*); reads (find, aggregate, ...) pass through untouched. A failed write is recorded
`FAILED`. No pymongo dependency. Or compute standalone with `mongo_execution_ref(...)`.

A failed operation is recorded with outcome `FAILED`; `tamper_detected(...)` recomputes any
binding offline.

## Keystone-only edition

The open edition binds and verifies each operation. The signed, hash-linked chain of operations
(PQC + CCC ingest) is the commercial tier.

## License

Apache-2.0. Copyright AlgoVoi.
