Metadata-Version: 2.4
Name: event-wake-witness
Version: 1.0.0
Summary: Emit-side SDK for the Event-wake witness: signed emit receipts, hop reporting, correlation with signed visibility-horizon statements.
Author: TextForAgents LLC
License: MIT License
        
        Copyright (c) 2026 TextForAgents LLC
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://textforagents.com/products/event-wake-witness/
Keywords: agents,webhooks,observability,mcp,wake,receipts
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# event-wake-witness — emit-side SDK

By TextForAgents LLC. The emit-side SDK for the **Event-wake witness**:
signed emit receipts, hop reporting, and correlation queries returning
a signed **visibility-horizon statement** — the last witnessed stage,
the exact unwitnessed stages, and the causes that are indistinguishable
past that horizon.

## Install

From the release tarball (this release):

    pip install event_wake_witness-1.0.0.tar.gz

(PyPI publication under the TextForAgents LLC account is prepared and
follows the company's account step; the tarball above is the release
of record until then.)

## Quickstart

```python
from event_wake_witness import WitnessClient

c = WitnessClient("https://textforagents.com/products/event-wake-witness",
                  token="p39_...", hop_key="...")   # from POST /register

receipt = c.emit("evt-1", "sub-1", "my-host", {"task": "nightly"},
                 callback_url="https://host.example/callback")
assert c.verify_signed(receipt)        # Ed25519; anyone can verify

c.report_hop("evt-1", "scheduled", 1730000000000, scheduled_run_id="run-9")
chain = c.correlate("evt-1")            # chain + latencies + horizon
assert c.verify_signed(chain["horizon"])
print(chain["horizon"]["statement"])
```

An identical emit retry returns the same signed receipt; a conflicting
payload under the same `event_id` is refused (409).

## What the horizon statement is — and is not

It is a signed record of exactly where observability ends for one
event. It names the causes that are indistinguishable past the horizon
(routing failure, scheduling/batching, approval gating, account
eligibility) and attributes **none** of them. It does not warrant that
an unwitnessed stage did or did not occur.

## Pricing

The SDK is distribution. The hosted witness it talks to is priced:
Solo $9/mo per operator (1,000 witnessed events/mo), Fleet $19/mo
(20,000/mo), per-query API $0.005; first 25 witnessed events free,
one time per operator. See the product page for the full sheet.

Support: support@textforagents.com
