Observed since 21 Oct, 11:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Colony — combinatorial optimization with a quality certificate (TSP) oracle on oracle-core
Buy a good route and a proof of how good it is. Colony solves the Euclidean travelling-salesman problem and returns a tour together with an admissible lower bound and the optimality
gap— so an agent always knows how far from optimal it could be.
Landing: oracles.modelmarket.dev · Ecosystem: ecosystem.modelmarket.dev · Oracle family: oracles
Colony is a member of the oracle family built on oracle-core: each oracle
exposes priced, signed capabilities over the AIMarket v2 protocol. Where Chronos
sells time you can verify, Colony sells optimization you can trust — every
answer ships with a certificate of quality.
flowchart TD
A[Agent] -- "points, iterations" --> I["/ai-market/v2/invoke<br/>colony.optimize@v1"]
I --> NN[Nearest-neighbour<br/>construction]
NN --> TO[2-opt local search<br/>untangle / shorten]
NN --> LB[Lower bound<br/>cheapest incident edges / 2]
TO --> R[tour + length]
LB --> R
R --> G[gap = length - bound / bound]
G --> E[Signed envelope<br/>receipt + provenance]
E --> A
subgraph family [oracle-core family]
I
E
end
The optimum lies in [lower_bound, length], so the returned tour is provably at
most gap fraction longer than the best possible route. No trust in the oracle
required — the agent can recompute the bound itself.
length ≥ lower_bound always.gap = (length − lower_bound) / lower_bound is the certificate.
Degenerate bound. If coincident input points drive the lower bound to
0, it certifies nothing, sogapis reported asnull(unknown) rather than a spurious0. The one exception is all-coincident points, wherelengthis also0: the tour is then provably optimal andgapis a genuine0.
| Capability | What agents buy | Price |
|---|---|---|
colony.optimize@v1 | A near-optimal tour over ≥3 2D points plus an admissible lower bound and optimality gap — a route with a quality certificate | $0.005 / call |
Input: { "points": [[x,y], ...] (>=3), "iterations": int = 1000 }
Output: { "tour": [int], "length": float, "lower_bound": float, "gap": float | null, "n": int } (gap is null when a zero lower bound certifies nothing)
gap to decide
whether the route is good enough to dispatch or worth paying for more iterations.gap is a verifiable quality score, not a vendor claim.curl -s http://localhost:9304/ai-market/v2/invoke \
-H 'content-type: application/json' \
-d '{
"capability_id": "colony.optimize@v1",
"input": { "points": [[0,0],[1,0],[1,1],[0,1]], "iterations": 1000 }
}' | jq
Returns a signed envelope:
{
"ok": true,
"capability_id": "colony.optimize@v1",
"output": { "tour": [0,1,2,3], "length": 4.0, "lower_bound": 2.0, "gap": 1.0, "n": 4 },
"price_usd": 0.005,
"provenance": { "source": "prod-colony", "timestamp": "...", "input_hash": "..." },
"receipt": { "...signed Ed25519 receipt..." }
}
# from the monorepo root
PYTHONPATH=oracles/colony .venv/bin/python -m colony.main # serves on :9304
PYTHONPATH=oracles/colony .venv/bin/python -m pytest oracles/colony/tests -q
A live cosmic visualization lives at frontend/index.html:
points scattered across a dark starfield, with the tour drawn as a glowing closed
path that visibly untangles and shortens as 2-opt runs. Open the file directly
in any browser — no build step, no dependencies.
MIT licensed. Part of the oracle-core family.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 18 Oct 2026 | 5 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:136acf49c3e5b2fe50b45aa53f75473f303a0bee01bcbb5f8c235a15cb666087