channel-boundary 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- channel_boundary-1.0.0/LICENSE +2 -0
- channel_boundary-1.0.0/PKG-INFO +24 -0
- channel_boundary-1.0.0/README.md +12 -0
- channel_boundary-1.0.0/channel_boundary/__init__.py +81 -0
- channel_boundary-1.0.0/channel_boundary.egg-info/PKG-INFO +24 -0
- channel_boundary-1.0.0/channel_boundary.egg-info/SOURCES.txt +8 -0
- channel_boundary-1.0.0/channel_boundary.egg-info/dependency_links.txt +1 -0
- channel_boundary-1.0.0/channel_boundary.egg-info/top_level.txt +1 -0
- channel_boundary-1.0.0/pyproject.toml +14 -0
- channel_boundary-1.0.0/setup.cfg +4 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Copyright (c) 2026 TextForAgents LLC. All rights reserved.
|
|
2
|
+
Proprietary software of TextForAgents LLC (CA Entity No. B20260462725). No external corpus source was merged into this product (packet 02). Python runtime under the PSF License. Production receipt signing uses the house Ed25519 module (pure-Python RFC 8032, stdlib hashlib only — no external crypto dependency). x402 verification uses eth_account / eth_utils (house verifier dependencies, as in sibling products).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: channel-boundary
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Receiver-boundary wrapper for Channel-Bound Delegation Receipts: stamps the actual arrival channel at the receiver (TextForAgents LLC).
|
|
5
|
+
License: Copyright (c) 2026 TextForAgents LLC. All rights reserved.
|
|
6
|
+
Proprietary software of TextForAgents LLC (CA Entity No. B20260462725). No external corpus source was merged into this product (packet 02). Python runtime under the PSF License. Production receipt signing uses the house Ed25519 module (pure-Python RFC 8032, stdlib hashlib only — no external crypto dependency). x402 verification uses eth_account / eth_utils (house verifier dependencies, as in sibling products).
|
|
7
|
+
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Dynamic: license-file
|
|
12
|
+
|
|
13
|
+
# channel-boundary (P139 wrapper, lane d)
|
|
14
|
+
|
|
15
|
+
Receiver-boundary wrapper for **Channel-Bound Delegation Receipts** (TextForAgents LLC). The wrapper stamps the actual arrival channel (peer message / delegated tool result / direct fetch) onto each delivery at the receiver boundary; a payload can claim a channel, it cannot assign one. A claim that disagrees with the stamped channel grades CHANNEL-MISMATCH at the hosted service and is logged as a standing per-delegate signal.
|
|
16
|
+
|
|
17
|
+
Install the versioned release artifact served from the product surface (see the product page), then run the quickstart:
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
from channel_boundary import quickstart
|
|
21
|
+
print(quickstart()) # stamps a tool-result delivery; a relabelled peer message counts 1 mismatch
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Tier boundary, stated plainly: the channel verdict grades provenance, not truth — grounded verification at the hosted service is the truth-settling tier. Support: support@textforagents.com.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# channel-boundary (P139 wrapper, lane d)
|
|
2
|
+
|
|
3
|
+
Receiver-boundary wrapper for **Channel-Bound Delegation Receipts** (TextForAgents LLC). The wrapper stamps the actual arrival channel (peer message / delegated tool result / direct fetch) onto each delivery at the receiver boundary; a payload can claim a channel, it cannot assign one. A claim that disagrees with the stamped channel grades CHANNEL-MISMATCH at the hosted service and is logged as a standing per-delegate signal.
|
|
4
|
+
|
|
5
|
+
Install the versioned release artifact served from the product surface (see the product page), then run the quickstart:
|
|
6
|
+
|
|
7
|
+
```python
|
|
8
|
+
from channel_boundary import quickstart
|
|
9
|
+
print(quickstart()) # stamps a tool-result delivery; a relabelled peer message counts 1 mismatch
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Tier boundary, stated plainly: the channel verdict grades provenance, not truth — grounded verification at the hosted service is the truth-settling tier. Support: support@textforagents.com.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"""Receiver-boundary wrapper for Channel-Bound Delegation Receipts (P139).
|
|
2
|
+
|
|
3
|
+
The wrapper is the transport leg an operator places at its receiver
|
|
4
|
+
boundary: it STAMPS the actual arrival channel (peer_message /
|
|
5
|
+
delegated_tool_result / direct_fetch) onto each delivery. A payload may
|
|
6
|
+
*claim* a channel; it cannot assign one — the wrapper method used IS the
|
|
7
|
+
channel. A claim that disagrees with the stamped channel is exactly the
|
|
8
|
+
CHANNEL-MISMATCH case the hosted service grades and logs as a standing
|
|
9
|
+
per-delegate signal.
|
|
10
|
+
|
|
11
|
+
Quickstart:
|
|
12
|
+
from channel_boundary import ReceiverBoundary
|
|
13
|
+
b = ReceiverBoundary()
|
|
14
|
+
d = b.via_tool_result(claim="...", target_state="...", task_id="t1",
|
|
15
|
+
principal="orchestrator", delegate_id="worker-1",
|
|
16
|
+
claimed_channel="delegated_tool_result")
|
|
17
|
+
assert d.actual_channel == "delegated_tool_result"
|
|
18
|
+
# A peer message relabelled as a tool result:
|
|
19
|
+
d2 = b.via_peer_message(claim="...", target_state="...", task_id="t2",
|
|
20
|
+
principal="orchestrator", delegate_id="worker-1",
|
|
21
|
+
claimed_channel="delegated_tool_result")
|
|
22
|
+
assert b.mismatch_count("worker-1") == 1 # grades CHANNEL-MISMATCH
|
|
23
|
+
"""
|
|
24
|
+
from dataclasses import dataclass
|
|
25
|
+
|
|
26
|
+
__version__ = "1.0.0"
|
|
27
|
+
CHANNELS = ("peer_message", "delegated_tool_result", "direct_fetch")
|
|
28
|
+
|
|
29
|
+
@dataclass
|
|
30
|
+
class MismatchEvent:
|
|
31
|
+
delegate_id: str
|
|
32
|
+
claimed: str
|
|
33
|
+
actual: str
|
|
34
|
+
task_id: str
|
|
35
|
+
|
|
36
|
+
@dataclass
|
|
37
|
+
class Delivery:
|
|
38
|
+
claim: str
|
|
39
|
+
target_state: str
|
|
40
|
+
task_id: str
|
|
41
|
+
principal: str
|
|
42
|
+
delegate_id: str
|
|
43
|
+
claimed_channel: str
|
|
44
|
+
actual_channel: str # stamped by the wrapper, never by the payload
|
|
45
|
+
|
|
46
|
+
class ReceiverBoundary:
|
|
47
|
+
def __init__(self):
|
|
48
|
+
self.mismatch_log = []
|
|
49
|
+
self.deliveries = 0
|
|
50
|
+
def _deliver(self, actual, **kw):
|
|
51
|
+
if kw.get("claimed_channel") not in CHANNELS:
|
|
52
|
+
raise ValueError("claimed_channel must be one of " + ", ".join(CHANNELS))
|
|
53
|
+
self.deliveries += 1
|
|
54
|
+
d = Delivery(actual_channel=actual, **kw)
|
|
55
|
+
if d.claimed_channel != actual:
|
|
56
|
+
self.mismatch_log.append(MismatchEvent(delegate_id=d.delegate_id,
|
|
57
|
+
claimed=d.claimed_channel, actual=actual, task_id=d.task_id))
|
|
58
|
+
return d
|
|
59
|
+
def via_peer_message(self, **kw): return self._deliver("peer_message", **kw)
|
|
60
|
+
def via_tool_result(self, **kw): return self._deliver("delegated_tool_result", **kw)
|
|
61
|
+
def via_direct_fetch(self, **kw): return self._deliver("direct_fetch", **kw)
|
|
62
|
+
def mismatch_count(self, delegate_id=None):
|
|
63
|
+
if delegate_id is None: return len(self.mismatch_log)
|
|
64
|
+
return sum(1 for m in self.mismatch_log if m.delegate_id == delegate_id)
|
|
65
|
+
|
|
66
|
+
def quickstart():
|
|
67
|
+
b = ReceiverBoundary()
|
|
68
|
+
d = b.via_tool_result(claim="state-42", target_state="state-42", task_id="qs-1",
|
|
69
|
+
principal="orchestrator", delegate_id="worker-1",
|
|
70
|
+
claimed_channel="delegated_tool_result")
|
|
71
|
+
assert d.actual_channel == "delegated_tool_result" and b.mismatch_count() == 0
|
|
72
|
+
d2 = b.via_peer_message(claim="state-43", target_state="state-43", task_id="qs-2",
|
|
73
|
+
principal="orchestrator", delegate_id="worker-1",
|
|
74
|
+
claimed_channel="delegated_tool_result")
|
|
75
|
+
assert d2.actual_channel == "peer_message" and b.mismatch_count("worker-1") == 1
|
|
76
|
+
return {"stamped_channel": d.actual_channel, "spoof_actual_channel": d2.actual_channel,
|
|
77
|
+
"mismatch_count": b.mismatch_count("worker-1"), "quickstart": "ok"}
|
|
78
|
+
|
|
79
|
+
if __name__ == "__main__":
|
|
80
|
+
import json
|
|
81
|
+
print(json.dumps(quickstart(), indent=1))
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: channel-boundary
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Receiver-boundary wrapper for Channel-Bound Delegation Receipts: stamps the actual arrival channel at the receiver (TextForAgents LLC).
|
|
5
|
+
License: Copyright (c) 2026 TextForAgents LLC. All rights reserved.
|
|
6
|
+
Proprietary software of TextForAgents LLC (CA Entity No. B20260462725). No external corpus source was merged into this product (packet 02). Python runtime under the PSF License. Production receipt signing uses the house Ed25519 module (pure-Python RFC 8032, stdlib hashlib only — no external crypto dependency). x402 verification uses eth_account / eth_utils (house verifier dependencies, as in sibling products).
|
|
7
|
+
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Dynamic: license-file
|
|
12
|
+
|
|
13
|
+
# channel-boundary (P139 wrapper, lane d)
|
|
14
|
+
|
|
15
|
+
Receiver-boundary wrapper for **Channel-Bound Delegation Receipts** (TextForAgents LLC). The wrapper stamps the actual arrival channel (peer message / delegated tool result / direct fetch) onto each delivery at the receiver boundary; a payload can claim a channel, it cannot assign one. A claim that disagrees with the stamped channel grades CHANNEL-MISMATCH at the hosted service and is logged as a standing per-delegate signal.
|
|
16
|
+
|
|
17
|
+
Install the versioned release artifact served from the product surface (see the product page), then run the quickstart:
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
from channel_boundary import quickstart
|
|
21
|
+
print(quickstart()) # stamps a tool-result delivery; a relabelled peer message counts 1 mismatch
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Tier boundary, stated plainly: the channel verdict grades provenance, not truth — grounded verification at the hosted service is the truth-settling tier. Support: support@textforagents.com.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
channel_boundary
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "channel-boundary"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "Receiver-boundary wrapper for Channel-Bound Delegation Receipts: stamps the actual arrival channel at the receiver (TextForAgents LLC)."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = { file = "LICENSE" }
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
|
|
13
|
+
[tool.setuptools]
|
|
14
|
+
packages = ["channel_boundary"]
|