mandata 0.1.0__py3-none-any.whl
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.
- mandata/__init__.py +8 -0
- mandata/credentials.py +88 -0
- mandata/enforce.py +60 -0
- mandata/evidence.py +51 -0
- mandata/models.py +80 -0
- mandata-0.1.0.dist-info/METADATA +103 -0
- mandata-0.1.0.dist-info/RECORD +10 -0
- mandata-0.1.0.dist-info/WHEEL +5 -0
- mandata-0.1.0.dist-info/licenses/LICENSE +201 -0
- mandata-0.1.0.dist-info/top_level.txt +1 -0
mandata/__init__.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"""Mandata — the mandate toolkit for agent-initiated payments."""
|
|
2
|
+
|
|
3
|
+
from .enforce import enforce
|
|
4
|
+
from .evidence import EvidenceLog
|
|
5
|
+
from .models import Bounds, Decision, EvidenceRecord, Mandate
|
|
6
|
+
|
|
7
|
+
__version__ = "0.1.0"
|
|
8
|
+
__all__ = ["Bounds", "Decision", "EvidenceLog", "EvidenceRecord", "Mandate", "enforce"]
|
mandata/credentials.py
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""Credential signing — bind a mandate cryptographically to an agent identity.
|
|
2
|
+
|
|
3
|
+
A credential is the portable, verifiable form of a mandate: the principal's
|
|
4
|
+
key signs (mandate_id, agent, bounds_hash, expiry). Anyone can verify that a
|
|
5
|
+
transaction was proposed under a mandate the principal actually issued.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import hashlib
|
|
11
|
+
import time
|
|
12
|
+
from dataclasses import dataclass
|
|
13
|
+
|
|
14
|
+
from nacl.exceptions import BadSignatureError
|
|
15
|
+
from nacl.signing import SigningKey, VerifyKey
|
|
16
|
+
|
|
17
|
+
from .models import Mandate
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def bounds_hash(mandate: Mandate) -> str:
|
|
21
|
+
"""Canonical hash of the mandate's bounds — the thing credentials sign over."""
|
|
22
|
+
b = mandate.bounds
|
|
23
|
+
payees = ",".join(sorted(b.allowed_payees))
|
|
24
|
+
payload = f"{b.max_amount}|{b.currency}|{payees}|{b.expires_in_days}|{b.velocity_limit}"
|
|
25
|
+
return hashlib.sha256(payload.encode()).hexdigest()
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
@dataclass(frozen=True)
|
|
29
|
+
class Credential:
|
|
30
|
+
"""A signed binding: principal's key vouches for (mandate, agent, bounds, expiry)."""
|
|
31
|
+
|
|
32
|
+
mandate_id: str
|
|
33
|
+
agent: str
|
|
34
|
+
bounds_hash: str
|
|
35
|
+
expires_at: float
|
|
36
|
+
signature: str # hex
|
|
37
|
+
public_key: str # hex — principal's verify key
|
|
38
|
+
|
|
39
|
+
def payload(self) -> bytes:
|
|
40
|
+
return f"{self.mandate_id}|{self.agent}|{self.bounds_hash}|{self.expires_at}".encode()
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def issue_credential(mandate: Mandate, signing_key: SigningKey) -> Credential:
|
|
44
|
+
"""Principal signs a credential for a mandate + agent."""
|
|
45
|
+
bh = bounds_hash(mandate)
|
|
46
|
+
expires_at = mandate.expires_at
|
|
47
|
+
payload = f"{mandate.mandate_id}|{mandate.agent}|{bh}|{expires_at}".encode()
|
|
48
|
+
signature = signing_key.sign(payload).signature.hex()
|
|
49
|
+
return Credential(
|
|
50
|
+
mandate_id=mandate.mandate_id,
|
|
51
|
+
agent=mandate.agent,
|
|
52
|
+
bounds_hash=bh,
|
|
53
|
+
expires_at=expires_at,
|
|
54
|
+
signature=signature,
|
|
55
|
+
public_key=signing_key.verify_key.encode().hex(),
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def verify_credential(
|
|
60
|
+
credential: Credential,
|
|
61
|
+
mandate: Mandate,
|
|
62
|
+
expected_public_key: str,
|
|
63
|
+
at: float | None = None,
|
|
64
|
+
) -> tuple[bool, str]:
|
|
65
|
+
"""Verify a credential against a mandate + the principal's known public key.
|
|
66
|
+
|
|
67
|
+
Checks: signature validity, key match, mandate/agent binding, bounds integrity,
|
|
68
|
+
expiry. Returns (ok, reason).
|
|
69
|
+
"""
|
|
70
|
+
at = at or time.time()
|
|
71
|
+
|
|
72
|
+
if credential.public_key != expected_public_key:
|
|
73
|
+
return False, "credential signed by unexpected key"
|
|
74
|
+
if credential.mandate_id != mandate.mandate_id:
|
|
75
|
+
return False, "credential is for a different mandate"
|
|
76
|
+
if credential.agent != mandate.agent:
|
|
77
|
+
return False, "credential is for a different agent"
|
|
78
|
+
if credential.bounds_hash != bounds_hash(mandate):
|
|
79
|
+
return False, "bounds altered since credential issued"
|
|
80
|
+
if at > credential.expires_at:
|
|
81
|
+
return False, "credential expired"
|
|
82
|
+
try:
|
|
83
|
+
VerifyKey(bytes.fromhex(credential.public_key)).verify(
|
|
84
|
+
credential.payload(), bytes.fromhex(credential.signature)
|
|
85
|
+
)
|
|
86
|
+
except BadSignatureError:
|
|
87
|
+
return False, "invalid signature"
|
|
88
|
+
return True, "credential valid"
|
mandata/enforce.py
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"""The mandate gate — deterministic enforcement evaluated BEFORE settlement."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import time
|
|
6
|
+
|
|
7
|
+
from .evidence import EvidenceLog
|
|
8
|
+
from .models import Decision, Mandate
|
|
9
|
+
|
|
10
|
+
_DEFAULT_LOG = EvidenceLog()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def enforce(
|
|
14
|
+
mandate: Mandate,
|
|
15
|
+
payee: str,
|
|
16
|
+
amount: float,
|
|
17
|
+
currency: str | None = None,
|
|
18
|
+
at: float | None = None,
|
|
19
|
+
evidence_log: EvidenceLog | None = None,
|
|
20
|
+
) -> Decision:
|
|
21
|
+
"""Evaluate a proposed transaction against its mandate.
|
|
22
|
+
|
|
23
|
+
Returns a Decision with a linked evidence record. A rejection is also
|
|
24
|
+
recorded — refusals are evidence too.
|
|
25
|
+
"""
|
|
26
|
+
at = at or time.time()
|
|
27
|
+
log = evidence_log or _DEFAULT_LOG
|
|
28
|
+
b = mandate.bounds
|
|
29
|
+
|
|
30
|
+
if mandate.revoked:
|
|
31
|
+
reason = "mandate revoked"
|
|
32
|
+
elif mandate.is_expired(at):
|
|
33
|
+
reason = "mandate expired"
|
|
34
|
+
elif amount <= 0:
|
|
35
|
+
reason = "non-positive amount"
|
|
36
|
+
elif amount > b.max_amount:
|
|
37
|
+
reason = f"amount {amount} exceeds cap {b.max_amount}"
|
|
38
|
+
elif currency and currency != b.currency:
|
|
39
|
+
reason = f"currency {currency} outside mandate ({b.currency})"
|
|
40
|
+
elif b.allowed_payees and payee not in b.allowed_payees:
|
|
41
|
+
reason = f"payee '{payee}' not in allowed set"
|
|
42
|
+
elif b.velocity_limit and mandate.velocity_used_today(at) >= b.velocity_limit:
|
|
43
|
+
reason = f"daily velocity limit {b.velocity_limit} reached"
|
|
44
|
+
else:
|
|
45
|
+
reason = "within mandate"
|
|
46
|
+
|
|
47
|
+
allowed = reason == "within mandate"
|
|
48
|
+
if allowed:
|
|
49
|
+
mandate.record(at)
|
|
50
|
+
|
|
51
|
+
record = log.append(
|
|
52
|
+
mandate_id=mandate.mandate_id,
|
|
53
|
+
agent=mandate.agent,
|
|
54
|
+
payee=payee,
|
|
55
|
+
amount=amount,
|
|
56
|
+
allowed=allowed,
|
|
57
|
+
reason=reason,
|
|
58
|
+
timestamp=at,
|
|
59
|
+
)
|
|
60
|
+
return Decision(allowed=allowed, reason=reason, evidence=record)
|
mandata/evidence.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""Hash-chained evidence log — every enforcement decision is appended and linked."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import time
|
|
6
|
+
|
|
7
|
+
from .models import EvidenceRecord
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class EvidenceLog:
|
|
11
|
+
"""Append-only chain of enforcement records; each record hashes its predecessor."""
|
|
12
|
+
|
|
13
|
+
GENESIS = "0" * 64
|
|
14
|
+
|
|
15
|
+
def __init__(self) -> None:
|
|
16
|
+
self.records: list[EvidenceRecord] = []
|
|
17
|
+
|
|
18
|
+
@property
|
|
19
|
+
def head_hash(self) -> str:
|
|
20
|
+
return self.records[-1].hash if self.records else self.GENESIS
|
|
21
|
+
|
|
22
|
+
def append(
|
|
23
|
+
self,
|
|
24
|
+
mandate_id: str,
|
|
25
|
+
agent: str,
|
|
26
|
+
payee: str,
|
|
27
|
+
amount: float,
|
|
28
|
+
allowed: bool,
|
|
29
|
+
reason: str,
|
|
30
|
+
timestamp: float | None = None,
|
|
31
|
+
) -> EvidenceRecord:
|
|
32
|
+
record = EvidenceRecord(
|
|
33
|
+
mandate_id=mandate_id,
|
|
34
|
+
agent=agent,
|
|
35
|
+
payee=payee,
|
|
36
|
+
amount=amount,
|
|
37
|
+
allowed=allowed,
|
|
38
|
+
reason=reason,
|
|
39
|
+
timestamp=timestamp or time.time(),
|
|
40
|
+
prev_hash=self.head_hash,
|
|
41
|
+
)
|
|
42
|
+
self.records.append(record)
|
|
43
|
+
return record
|
|
44
|
+
|
|
45
|
+
def verify_chain(self) -> bool:
|
|
46
|
+
prev = self.GENESIS
|
|
47
|
+
for rec in self.records:
|
|
48
|
+
if rec.prev_hash != prev:
|
|
49
|
+
return False
|
|
50
|
+
prev = rec.hash
|
|
51
|
+
return True
|
mandata/models.py
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""Core mandate model: principal -> agent -> credential -> transaction -> evidence."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import hashlib
|
|
6
|
+
import time
|
|
7
|
+
import uuid
|
|
8
|
+
from dataclasses import dataclass, field
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@dataclass(frozen=True)
|
|
12
|
+
class Bounds:
|
|
13
|
+
"""The permitted envelope an agent must transact within."""
|
|
14
|
+
|
|
15
|
+
max_amount: float
|
|
16
|
+
currency: str = "GBP"
|
|
17
|
+
allowed_payees: tuple[str, ...] | list[str] = ()
|
|
18
|
+
expires_in_days: int = 30
|
|
19
|
+
velocity_limit: int = 0 # max transactions per day; 0 = unlimited
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@dataclass
|
|
23
|
+
class Mandate:
|
|
24
|
+
"""A principal's grant of bounded spending authority to an agent."""
|
|
25
|
+
|
|
26
|
+
principal: str
|
|
27
|
+
agent: str
|
|
28
|
+
bounds: Bounds
|
|
29
|
+
mandate_id: str = field(default_factory=lambda: uuid.uuid4().hex)
|
|
30
|
+
issued_at: float = field(default_factory=time.time)
|
|
31
|
+
revoked: bool = False
|
|
32
|
+
_tx_timestamps: list[float] = field(default_factory=list, repr=False)
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def expires_at(self) -> float:
|
|
36
|
+
return self.issued_at + self.bounds.expires_in_days * 86400
|
|
37
|
+
|
|
38
|
+
def is_expired(self, at: float | None = None) -> bool:
|
|
39
|
+
return (at or time.time()) > self.expires_at
|
|
40
|
+
|
|
41
|
+
def revoke(self) -> None:
|
|
42
|
+
self.revoked = True
|
|
43
|
+
|
|
44
|
+
def record(self, at: float) -> None:
|
|
45
|
+
self._tx_timestamps.append(at)
|
|
46
|
+
|
|
47
|
+
def velocity_used_today(self, at: float) -> int:
|
|
48
|
+
day = int(at // 86400)
|
|
49
|
+
return sum(1 for t in self._tx_timestamps if int(t // 86400) == day)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@dataclass(frozen=True)
|
|
53
|
+
class Decision:
|
|
54
|
+
"""The outcome of a mandate gate check."""
|
|
55
|
+
|
|
56
|
+
allowed: bool
|
|
57
|
+
reason: str
|
|
58
|
+
evidence: EvidenceRecord
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@dataclass(frozen=True)
|
|
62
|
+
class EvidenceRecord:
|
|
63
|
+
"""An auditable record of a single enforcement decision."""
|
|
64
|
+
|
|
65
|
+
mandate_id: str
|
|
66
|
+
agent: str
|
|
67
|
+
payee: str
|
|
68
|
+
amount: float
|
|
69
|
+
allowed: bool
|
|
70
|
+
reason: str
|
|
71
|
+
timestamp: float
|
|
72
|
+
prev_hash: str
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def hash(self) -> str:
|
|
76
|
+
payload = (
|
|
77
|
+
f"{self.mandate_id}|{self.agent}|{self.payee}|{self.amount}|"
|
|
78
|
+
f"{self.allowed}|{self.reason}|{self.timestamp}|{self.prev_hash}"
|
|
79
|
+
)
|
|
80
|
+
return hashlib.sha256(payload.encode()).hexdigest()
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mandata
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: The mandate toolkit for agent-initiated payments
|
|
5
|
+
Author-email: Shedrack Chiedozie Aji <shedrack.aji@doztra.ai>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/ashedrack/mandata
|
|
8
|
+
Project-URL: Documentation, https://github.com/ashedrack/mandata/tree/main/docs
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
12
|
+
Classifier: Topic :: Security :: Cryptography
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: pynacl>=1.5
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# Mandata
|
|
20
|
+
|
|
21
|
+
**The mandate toolkit for agent-initiated payments.**
|
|
22
|
+
|
|
23
|
+
When AI agents hold spending authority, someone must answer: *what exactly are they allowed to do — and can you prove it afterward?* Mandata is a reference implementation of the bounded-autonomy mandate chain:
|
|
24
|
+
|
|
25
|
+
**principal → agent → credential → transaction → evidence**
|
|
26
|
+
|
|
27
|
+
## The problem
|
|
28
|
+
|
|
29
|
+
Agentic payment protocols (AP2, x402, card-network agent programs) let AI agents initiate real financial transactions. But production systems lack a standard way to:
|
|
30
|
+
|
|
31
|
+
- **Express mandates** — bounded permissions: amounts, payees, time windows, velocity limits
|
|
32
|
+
- **Bind credentials** — cryptographic proof a transaction was made within mandate
|
|
33
|
+
- **Enforce at the gate** — deterministic checks *before* settlement, not logs after
|
|
34
|
+
- **Produce evidence** — an auditable chain showing every agent action against its mandate
|
|
35
|
+
|
|
36
|
+
Mandata formalizes all four as a small, dependency-light library.
|
|
37
|
+
|
|
38
|
+
## Quickstart
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install mandata
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```python
|
|
45
|
+
from mandata import Mandate, Bounds, enforce
|
|
46
|
+
|
|
47
|
+
# A principal grants a bounded mandate to an agent
|
|
48
|
+
mandate = Mandate(
|
|
49
|
+
principal="user:alice",
|
|
50
|
+
agent="agent:shopping-bot",
|
|
51
|
+
bounds=Bounds(
|
|
52
|
+
max_amount=500.00, # per transaction
|
|
53
|
+
currency="GBP",
|
|
54
|
+
allowed_payees=["store.example"],
|
|
55
|
+
expires_in_days=30,
|
|
56
|
+
velocity_limit=3, # max transactions per day
|
|
57
|
+
),
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
# At transaction time: deterministic enforcement BEFORE settlement
|
|
61
|
+
decision = enforce(mandate, payee="store.example", amount=49.99)
|
|
62
|
+
assert decision.allowed # → True
|
|
63
|
+
print(decision.evidence) # → signed evidence record of the check
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Architecture
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
principal issues mandate ──► credential binds mandate to agent
|
|
70
|
+
│ │
|
|
71
|
+
▼ ▼
|
|
72
|
+
agent proposes transaction ──► mandate gate (enforce())
|
|
73
|
+
│ │
|
|
74
|
+
▼ ▼
|
|
75
|
+
allowed? ──► yes: execute no: reject
|
|
76
|
+
│ │
|
|
77
|
+
└───────► evidence record appended (hash-chained audit log)
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
See [`docs/architecture.md`](docs/architecture.md) for the full model, [`docs/mandate-model.md`](docs/mandate-model.md) for the schema, and [`docs/diagrams.md`](docs/diagrams.md) for the system design diagrams.
|
|
81
|
+
|
|
82
|
+
## Roadmap
|
|
83
|
+
|
|
84
|
+
- [x] **v0.1** — Mandate model, bounds enforcement, evidence chain (Python)
|
|
85
|
+
- [x] Credential signing (Ed25519) + verification API
|
|
86
|
+
- [ ] Revocation registry (mandate kill-switch at transaction speed)
|
|
87
|
+
- [ ] TypeScript implementation
|
|
88
|
+
- [ ] AP2 / x402 adapter layer
|
|
89
|
+
- [ ] Multi-hop delegation (agent → sub-agent mandate weakening)
|
|
90
|
+
|
|
91
|
+
## Research
|
|
92
|
+
|
|
93
|
+
This project is the open-source implementation arm of the survey:
|
|
94
|
+
|
|
95
|
+
> *Agentic AI in Payments and Financial Transactions: A Survey of Architectures, Safeguards and Open Problems* — S.C. Aji, 2026. [doi:10.13140/RG.2.2.13674.89288](https://doi.org/10.13140/RG.2.2.13674.89288)
|
|
96
|
+
|
|
97
|
+
## Contributing
|
|
98
|
+
|
|
99
|
+
We welcome contributors — see [CONTRIBUTING.md](CONTRIBUTING.md). Good entry points are labelled [`good first issue`](https://github.com/ashedrack/mandata/labels/good%20first%20issue).
|
|
100
|
+
|
|
101
|
+
## License
|
|
102
|
+
|
|
103
|
+
Apache-2.0 — see [LICENSE](LICENSE).
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
mandata/__init__.py,sha256=xmn7hdCUnE5nC-r6xTBumHUcWiP6rC6wsvsTgb1innw,305
|
|
2
|
+
mandata/credentials.py,sha256=jaspu8qrZmx1C2GQvdDZT2R4OqOj0q7N1e97cFAtn6k,3069
|
|
3
|
+
mandata/enforce.py,sha256=JFRkIkWuBvv5pudgRW6X3Ojv4NK45oaGiug_M6aREHM,1784
|
|
4
|
+
mandata/evidence.py,sha256=jfONacuja2S5QLZrGha1BDNEWZ9cya2EaT5P3r_icnQ,1300
|
|
5
|
+
mandata/models.py,sha256=O7weJylz5MRKcbIjt_hFu00U6W0rRd2NT0JLdwA-HkI,2117
|
|
6
|
+
mandata-0.1.0.dist-info/licenses/LICENSE,sha256=3Y0hKKxar03of_89m48CPk3QtXY6MvNvEhksSorJHN0,11362
|
|
7
|
+
mandata-0.1.0.dist-info/METADATA,sha256=yonqNDRdQr7AHnIRqLaHi-nKdISYDZHcHhXn8TYAxmg,3971
|
|
8
|
+
mandata-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
9
|
+
mandata-0.1.0.dist-info/top_level.txt,sha256=qUoiErkucAKfwSGP2XTTWr7asU6NitwHkhO2wI1Q3yw,8
|
|
10
|
+
mandata-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your use of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You require indemnified
|
|
172
|
+
parties to defend You, and hold each Contributor harmless for any
|
|
173
|
+
liability incurred by, or claims asserted against, such Contributor
|
|
174
|
+
by reason of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Shedrack Chiedozie Aji
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mandata
|