polydeukes-sdk (Python)
English · 한국어
Call the Polydeukes judge and memory commands from Python 3.12 or newer. Three synchronous verbs share one executable resolver and process runner. The package has zero runtime dependencies.
python -m pip install polydeukes-sdk
Download pdks-<target>-v<version>.tar.gz from a
GitHub
Release,
extract the archive, mark the executable executable, and put it on an absolute PATH directory as
pdks, or pass its path as executable. Keep the SDK and executable on the same minor release.
Prebuilt executables support Linux x64, Linux arm64, and macOS arm64. On macOS, a browser download
may require xattr -d com.apple.quarantine /path/to/pdks.
Run the example from a configured project root. In a new example project, run pdks init first. For
memory queries, also prepare the extension and document collection using the
memory walkthrough. Treat an unjudged operation or unavailable
search as a failure to establish a result, not as permission or an empty answer.
from polydeukes_sdk import (
CheckCovenantSpec,
CovenantInput,
Upheld,
check_covenant,
CheckChangeSetSpec,
check_change_set,
MemorySearchSpec,
memory_search,
Found,
Empty,
Unavailable,
)
payload: CovenantInput = {"toolCalls": [], "subagentSpawns": [], "userMessages": []}
verdict = check_covenant(CheckCovenantSpec(repo_root=".", input=payload, timeout=10))
if isinstance(verdict, Upheld):
print("The proposed operation may proceed", verdict.advisories)
verdict = check_change_set(CheckChangeSetSpec(repo_root=".", diff="", timeout=10))
recall = memory_search(MemorySearchSpec(root=".", query="design decision", limit=5, timeout=10))
match recall:
case Found(hits=hits):
print(hits[0]["sectionTitle"])
case Empty():
print("No matches")
case Unavailable(reason=reason):
print("Memory unavailable:", reason)
The host supplies IR evidence and decides whether to execute the proposed operation. Only Upheld
permits it in this example. The child reads configuration, judges disciplines, writes telemetry, and
runs memory search.
Memory search runs pdks memory ..., which invokes pdks-memory on the SDK process's PATH.
Follow the installation guide to install the extension. For a local
npm installation, add the project's absolute node_modules/.bin directory to PATH before starting
the SDK host. If it is missing, search returns Unavailable with the reason pdks prints.
The
Python SDK
reference
describes every spec, outcome, timeout, and the injectable spawn boundary.
Metadata
Release files for polydeukes-sdk 0.25.0
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 |
|---|---|---|---|---|
| polydeukes_sdk-0.25.0.tar.gz | 8.1 kB | With provenance | Details for polydeukes_sdk-0.25.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polydeukes_sdk-0.25.0-py3-none-any.whl | Python 3 | none | any | Details for polydeukes_sdk-0.25.0-py3-none-any.whl |
Total release size: 17.0 kB
Release files / polydeukes_sdk-0.25.0.tar.gz
| Download URL | polydeukes_sdk-0.25.0.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e53e7ec1178ce1517605573f8b7702c9e548c2e74c6098d48ec3d04fea9c34c
|
|
BLAKE2b-256 checksum How to use checksums |
4856ce0ea9bdb5ac57c0f3f9b329acbb9ce8f2e2fbf3ef96a4a9beb3a2b41124
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 6, 2026.
Transparency logRelease files / polydeukes_sdk-0.25.0-py3-none-any.whl
| Download URL | polydeukes_sdk-0.25.0-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7027390bf510373dd1be124c2633f86176b14768b68b35272595ce0aeab7f475
|
|
BLAKE2b-256 checksum How to use checksums |
51ff5792e5912d7b00a720ccabba12ed8b142dc2803a6bfe79b15c866fadd4d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 6, 2026.
Transparency logSecurity for polydeukes-sdk 0.25.0
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 polydeukes_sdk-0.25.0.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 Nov 6, 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.