verified-executable-search (VES)
Verifier-first executable search runtime: AI candidates produce raw
artifacts, the host verifies them into structured Evidence, and search only
acts on verified facts. Distribution name: verified-executable-search
(import package: ves).
What VES is
- Verifier-first: candidate programs are untrusted; every quality number
is recomputed by a host
EvidenceVerifierinside aVerificationContext. Candidate self-reported scores are ignored. - Verification ≠ Judgment: the pipeline establishes facts
(
VerificationStatus/VerificationResult); feasibility and ranking live in the typedJudgelayer (Gate/ObjectiveSpec/JudgeSpec). - Search on verified facts only:
AnchorPolicyselects improvement anchors fromVerifiedCandidates; candidates keepCandidatelineage (draft/improve) for audit and repair.
What works in v0.1 (stable API)
ArtifactContract/SafeArtifactLoader— trusted host specs + race-safe, symlink-safe artifact readsVerificationContext/Evidence/EvidenceVerifier— facts, not scoresJudge/Gate/ObjectiveSpec/JudgeSpec— typed preferencesVerificationPipeline/VerificationRecord/VerifiedCandidate— verified results and auditable records (schema v1 with fingerprints)- CLI
ves verify(built-in examples +--problem) andves replay(REPRODUCIBLE / MISMATCH closed loop)
Experimental in v0.1
SearchEngine+AnchorPolicy(GreedyTop1Policy~ A arm,BranchDiverseTopKPolicy~ B arm; interface may evolve in v0.2)- Real Docker + LLM search adapters (
examples/search_demo.py) — source checkout only, not part of the wheel
What remains experimental
- Pareto search semantics (SearchEngine rejects
rule=PARETO; v0.1 supports total-order selection only) - Stochastic verification replay determinism (deferred to v0.2)
Out of scope for v0.1
- Task decomposition / multi-agent orchestration
- MCTS / rollout-based planning
- Full mathematical modeling (mechanism design, statistical significance)
Install
# Python 3.11+
pip install verified-executable-search
For development or the real-LLM/Docker adapters, clone the repository and
install from source: pip install .[dev,ml,search].
Quick example
from ves.artifact import ArtifactContract
from ves.judge import Direction, JudgeSpec, ObjectiveSpec
contract = ArtifactContract(
filename="answer.json",
media_type="application/json",
required_fields=("value",),
numeric_fields=("value",),
)
spec = JudgeSpec(
objectives=(
ObjectiveSpec(observation="error", direction=Direction.MINIMIZE),
),
)
See docs/writing-a-verifier.md for a complete from-scratch example.
CLI
ves verify solution.json --example knapsack --out record.json
ves replay record.json # REPRODUCIBLE / MISMATCH
Demos (no LLM required)
python -m examples.demo_adversarial # six adversarial verdicts
python -m examples.demo_search --mock # mock search evolution
Real search needs VES_LLM_BASE_URL (or AIDE_BASE_URL fallback) + Docker;
see docs/ves-demo.md and docs/ves-search.md.
Documentation
docs/writing-a-verifier.md— new-user tutorialdocs/ves-cli.md— CLI + replay + schema v1docs/ves-demo.md/docs/ves-search.md— hero demos + SearchEnginedocs/ves-release-roadmap.md— release checklistSECURITY.md— threat model, sandbox boundaries, private reporting
CI status
See CI badge / workflow runs — no hand-maintained test counts.
License
MIT
Metadata
Release files for verified-executable-search 0.1.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 |
|---|---|---|---|---|
| verified_executable_search-0.1.0.tar.gz | 115.8 kB | Without provenance | Details for verified_executable_search-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| verified_executable_search-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for verified_executable_search-0.1.0-py3-none-any.whl |
Total release size: 161.5 kB
Release files / verified_executable_search-0.1.0.tar.gz
| Download URL | verified_executable_search-0.1.0.tar.gz |
|---|---|
| Size | 115.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5a9b9539f0d0b6604b6ea7844af64b6863a5f7cf9eaf0bbf3d7cbd295600b70
|
|
BLAKE2b-256 checksum How to use checksums |
5d8e73a282dc0ce920b992adab665f411cb39cde884731c3e531eaa92357caf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / verified_executable_search-0.1.0-py3-none-any.whl
| Download URL | verified_executable_search-0.1.0-py3-none-any.whl |
|---|---|
| Size | 45.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59fe44adf02458fbb6df968d9b3e561204296452a252d47615a40025765ce64c
|
|
BLAKE2b-256 checksum How to use checksums |
ef6ac158a734f534d25a140a4c85daf1ac707401732422a8854325912736b652
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for verified-executable-search 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.