Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
8a30eb8
feat: add managed OpenAI-compatible provider runtime
TracSystems Sep 13, 2026
b8a486e
fix: install pinned PLE reader wheel offline
TracSystems Sep 13, 2026
ac65972
docs(catalog): prepare Qwen3.8 Flash-Next admission draft
TracSystems Sep 13, 2026
f9b93be
docs(catalog): bind offline Flash-Next plugin wheel
TracSystems Sep 13, 2026
2d2d28f
Release managed runtime support as v0.2.198
TracSystems Sep 13, 2026
6479d3f
Fix signed runtime wheel installation
TracSystems Sep 13, 2026
c2c7d9c
Run managed preparation as provider owner
TracSystems Sep 13, 2026
2b41018
Run managed service as provider owner
TracSystems Sep 13, 2026
86001d2
Fix signed multi-control runtime preflight
TracSystems Sep 13, 2026
e3eb449
Prove live concurrent runtime requests
TracSystems Sep 13, 2026
c2de9f1
Bind OpenAI stream fingerprints to content
TracSystems Sep 13, 2026
cb6fa82
Stabilize OpenAI catalog canary units
TracSystems Sep 13, 2026
51f5e32
Tolerate exited calibration descendants
TracSystems Sep 13, 2026
c8f8961
Make Flash-Next inference deterministic
TracSystems Sep 13, 2026
b377d3c
Select Triton attention for deterministic Flash-Next
TracSystems Sep 13, 2026
38d26ee
Handle lazy prefix-cache metrics in preflight
TracSystems Sep 13, 2026
1bd42ac
Materialize video fixtures during endpoint calibration
TracSystems Sep 13, 2026
792dd95
Validate canonical units when resuming calibration
TracSystems Sep 13, 2026
a348bea
Fix compatible endpoint request normalization
TracSystems Sep 13, 2026
ba278ea
Recover stale direct relay transports
TracSystems Sep 13, 2026
b68fc1a
Bind release identity for relay recovery
TracSystems Sep 13, 2026
cd58f2b
Correct relay recovery release identity
TracSystems Sep 13, 2026
d53fb9e
fix(provider): admit calibrated managed runtime memory
TracSystems Sep 14, 2026
a78d4e1
fix(comfyui): honor calibrated VRAM reserves
TracSystems Sep 14, 2026
dcc1791
fix(provider): preserve structured tool streams
TracSystems Sep 14, 2026
5ceb49c
fix(comfyui): bound optional workflow memory
TracSystems Sep 14, 2026
4fe59f5
fix(ci): audit active launch roster correctly
TracSystems Sep 14, 2026
6b63194
fix(ci): align runtime checks and formatting
TracSystems Sep 14, 2026
c253a0d
fix(gateway): keep dashboard fixtures contract-complete
TracSystems Sep 14, 2026
d00e441
fix(gateway): keep workbench canaries current
TracSystems Sep 14, 2026
8c4055a
fix(ci): stabilize dashboard fixtures
TracSystems Sep 14, 2026
e85422a
fix(gateway): recover orphaned ledger holds
TracSystems Sep 14, 2026
03e1a1d
fix(provider): reclaim idle workflow memory
TracSystems Sep 15, 2026
93cd2e8
fix(provider): scope idle reclaim to memory pressure
TracSystems Sep 15, 2026
166831e
feat(payments): add retail crypto rail worker
TracSystems Sep 15, 2026
ea545a2
fix(provider): canonicalize endpoint contract fingerprints
TracSystems Sep 15, 2026
bcb8a25
fix(payments): start worker through release symlink
TracSystems Sep 15, 2026
ff0c607
fix(payments): isolate crypto discovery rails
TracSystems Sep 15, 2026
613ab88
fix(payments): renew leases during rail verification
TracSystems Sep 15, 2026
37704b8
fix(payments): verify TNK deposits by transaction hash
TracSystems Sep 15, 2026
b3023dd
fix(payments): bound ledger reader shutdown
TracSystems Sep 15, 2026
6741d23
fix(payments): preserve precise TNK credit amounts
TracSystems Sep 15, 2026
41b8e5f
fix(payments): fully back sub-cent TNK credits
TracSystems Sep 15, 2026
e6c9e04
fix(msb): tolerate password file line endings
TracSystems Sep 15, 2026
d0546b9
fix(payments): honor locked TNK deposit quote
TracSystems Sep 15, 2026
ac50b95
fix(payments): fail over TAP bridge preflight RPC
TracSystems Sep 15, 2026
34d8a5d
fix(payments): bound TAP deposit uniqueness dust
TracSystems Sep 15, 2026
690dcbb
chore(payments): expose safe rail health failure detail
TracSystems Sep 15, 2026
b7bf2b8
fix(payments): resume TAP bridge after broadcast
TracSystems Sep 15, 2026
8677e45
fix(payments): keep rail health and RPC failover stable
TracSystems Sep 15, 2026
ea45055
fix(settlement): refresh matured holdbacks before payout
TracSystems Sep 15, 2026
4c31e90
Merge commit 'ea545a2' into feat/tnk-tap-retail-worker
TracSystems Sep 15, 2026
8ad860e
release: prepare OpenMayhem 0.2.223
TracSystems Sep 15, 2026
598ba30
fix(settlement): recover expired valuation quotes
TracSystems Sep 16, 2026
d2c2f3a
fix(settlement): execute same-currency payout plans
TracSystems Sep 16, 2026
9c1d88c
fix(settlement): resume canonical same-currency payouts
TracSystems Sep 16, 2026
2f0eeba
fix(settlement): renew targeted fiat quotes
TracSystems Sep 16, 2026
9dd1453
fix(settlement): allow ordered fee tranches
TracSystems Sep 16, 2026
5fe358c
release: prepare OpenMayhem 0.2.224
TracSystems Sep 16, 2026
ee5d655
fix(intercom): pin safe HyperDHT runtime
TracSystems Sep 16, 2026
c0e637c
fix(payments): keep crypto confirmation workers live
TracSystems Sep 16, 2026
9d5a9d2
fix(payments): load TNK catch-up helper
TracSystems Sep 16, 2026
35dd85a
fix(payments): bound TNK settlement shutdown
TracSystems Sep 16, 2026
48ef36f
fix(payments): submit TNK deposits before reader shutdown
TracSystems Sep 16, 2026
39f2d91
fix(payments): catch TNK reader up to canonical head
TracSystems Sep 16, 2026
d3a9855
fix(payments): lock retail crypto bridge quotes
TracSystems Sep 16, 2026
72b8e97
feat(embeddings): add generic vLLM pooling support
TracSystems Sep 16, 2026
8c6579c
fix(gateway): recover supported receipt checkpoints
TracSystems Sep 16, 2026
1121cd4
fix(gateway): bound embedding spend reservations
TracSystems Sep 16, 2026
cd3a318
chore(release): prepare v0.2.234
TracSystems Sep 16, 2026
b7e5000
fix(gateway): validate exact embedding receipt token usage
TracSystems Sep 17, 2026
b8a7af1
chore(release): prepare v0.2.235
TracSystems Sep 17, 2026
5cb6140
fix(gateway): preserve signed embedding token usage
TracSystems Sep 17, 2026
9aa2342
chore(release): prepare v0.2.236
TracSystems Sep 17, 2026
3ad2021
fix(core): validate structured JSON output without cooling providers
TracSystems Sep 17, 2026
5d2d39d
fix(settlement): wait for canonical receipt handoff
TracSystems Sep 18, 2026
8ab5f1b
fix(gateway): preserve growing chat routes
TracSystems Sep 18, 2026
e0f4172
fix(engine): keep token counting responsive
TracSystems Sep 18, 2026
f639db0
chore(release): bind 0.2.240 identity
TracSystems Sep 18, 2026
4871a08
fix(gateway): recover routes and chunk tokenization
TracSystems Sep 18, 2026
87d9a66
fix(gateway): bound provider admission failover
TracSystems Sep 18, 2026
7ed08f9
fix(gateway): deliver recovered terminal results
TracSystems Sep 18, 2026
88a9dc8
fix(gateway): preserve execution tier under T4 identity
TracSystems Sep 18, 2026
43a96d6
fix(intercom): recover reversible KYB identity
TracSystems Sep 18, 2026
e52c953
fix(gateway): recover cold provider admission
TracSystems Sep 18, 2026
d477215
fix(provider): isolate invalid streamed tool output
TracSystems Sep 19, 2026
3deaa6b
fix(gateway): honor recovered terminal jobs
TracSystems Sep 19, 2026
a3f3326
feat(embeddings): raise calibrated batch capacity
TracSystems Sep 19, 2026
ae309d9
chore(release): align v0.2.246 identity
TracSystems Sep 19, 2026
abd5c86
fix(provider): admit concurrent embedding sessions
TracSystems Sep 19, 2026
41dea6e
fix(provider): honor shared embedding scheduler capacity
TracSystems Sep 19, 2026
849c565
fix(provider): preserve shared embedding scheduler capacity
TracSystems Sep 19, 2026
c87aca9
fix(gateway): recover clean capacity races
TracSystems Sep 19, 2026
756f618
fix(core): reconcile pending provider admission
TracSystems Sep 20, 2026
44c4e5d
fix(provider): bind recovery journal to model identity
TracSystems Sep 20, 2026
41dfce4
fix(provider): resume pending reservation admission
TracSystems Sep 20, 2026
09ce284
feat(pricing): index prices by settled utilization
TracSystems Sep 20, 2026
06c7e74
fix(receipts): recover legacy signed envelopes
TracSystems Sep 20, 2026
87d21f2
chore(release): prepare v0.2.256
TracSystems Sep 20, 2026
517ffd7
fix(provider): classify request and output failures
TracSystems Sep 20, 2026
d1a3f80
fix(gateway): stop retries after failure receipts
TracSystems Sep 20, 2026
47382e3
fix settlement support for schema 12 receipts
TracSystems Sep 20, 2026
90d3372
fix receipt checkpoint progression
TracSystems Sep 20, 2026
16d101c
fix receipt recovery sequence progression
TracSystems Sep 20, 2026
895e14a
fix receipt backlog recovery and checkpoint persistence
TracSystems Sep 20, 2026
397830a
fix(gateway): refresh authenticated prices after admission refusal
TracSystems Sep 20, 2026
46fd140
fix(runtime): retain accepted catalog and honor deposit worker binary
TracSystems Sep 20, 2026
d52f028
feat: add Laya typed decision serving
TracSystems Sep 22, 2026
65dc39f
fix: report Laya CUDA hardware fit
TracSystems Sep 22, 2026
717cbc3
fix: calibrate structured Laya temperatures
TracSystems Sep 22, 2026
7c32188
fix: calibrate Laya endpoint contract
TracSystems Sep 22, 2026
60d8ddb
fix: bind Laya canaries to text modality
TracSystems Sep 22, 2026
1af6e75
fix: exercise Laya decision controls in calibration
TracSystems Sep 22, 2026
a986248
fix: default omitted Laya temperatures
TracSystems Sep 22, 2026
f72df19
calibrate: pin Laya decision fingerprints
TracSystems Sep 22, 2026
f69c41d
docs: record final Laya calibration evidence
TracSystems Sep 22, 2026
677fa0a
fix(catalog): recognize the Laya engine
TracSystems Sep 22, 2026
e47aabf
catalog: sign the Laya roster update
TracSystems Sep 22, 2026
972576a
docs(cli): expose the Laya backend option
TracSystems Sep 22, 2026
b38c137
fix(provider): validate decision model canaries
TracSystems Sep 22, 2026
8f9659c
fix(gateway): admit typed decision routes without prefix cache
TracSystems Sep 22, 2026
84c4a5f
fix(gateway): label typed decision session requests
TracSystems Sep 22, 2026
0540bb6
fix(provider): admit typed decision request modality
TracSystems Sep 22, 2026
d87d46d
fix(gateway): meter typed decisions independently of chat
TracSystems Sep 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ members = [
exclude = ["third_party/xet-core"]

[workspace.package]
version = "0.2.197"
version = "0.2.261"
edition = "2021"
rust-version = "1.89"
license = "MIT"
Expand Down
120 changes: 120 additions & 0 deletions MODEL-CHEATSHEET.md
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,126 @@ On a supported NVIDIA host, use
`mayhem doctor --provider-backend needle-gpu` before the same managed start.
Do not map MPS to `needle-gpu` or add a third canonical market.

## Qwen3 Embedding 4B

**Selector and source**

- Model: `Qwen/Qwen3-Embedding-4B`
- Backend/artifact: vLLM 0.24 pooling / BF16 safetensors
- Admin mirror:
`TracNetwork/mayhem-catalog-Qwen-Qwen3-Embedding-4B-BF16@909825755dc39379f3eb31256602da9cafb29c95`
- Upstream pin:
`Qwen/Qwen3-Embedding-4B@5cf2132abc99cad020ac570b19d031efec650f2b`
- Primary artifact root:
`e228d4e36517c331c3ddf034753cf974a7f73d2ac3dd0be4ef145722eccdc26c`
- Two weight shards total 8,043,548,672 bytes.
- Canary:
[`canary-qwen3-embedding-4b-bf16-v1.json`](catalog/canaries/canary-qwen3-embedding-4b-bf16-v1.json)

**Hard requirements and surface**

- Linux NVIDIA with compute capability 12.1 is the only calibrated platform.
Windows and other backends remain unavailable until they receive separate
calibration proof.
- 16 GiB full-offload target and 32,768 model tokens. The longest accepted
caller input is 32,767 tokens because the runtime adds one internal token.
- Endpoints: OpenAI `/v1/embeddings` and Hugging Face feature extraction.
Both accept a string or an ordered array of up to 128 strings. The signed
aggregate limit is 256 in-flight items, so two full batches can overlap.
- Native dimension is 2,560. Matryoshka output supports 32 through 2,560
dimensions, including exact 1,536-dimensional vectors. Truncation is followed
by L2 normalization.
- Pooling uses the last non-padding token. Documents have no implicit prefix.
Retrieval queries should use
`Instruct: {task_description}\nQuery:{query}` with a task-specific instruction.
- Float and base64 response encodings are supported. Billing counts exact input
tokens; embeddings have no output-token charge.

**Measured guidance**

- Cold load: 57.21 seconds.
- Short-input throughput: 378.51 input tok/s at batch 1, 2,358.46 at batch 8,
and 2,432.98 at batch 32.
- Four concurrent batches of eight reached 5,064.32 input tok/s; eight reached
5,920.53 input tok/s without sustained swap growth.
- Large-batch proof reached 200.25 items/s at batch 128 and 196.45 items/s for
two overlapping batches of 128. Two overlapping batches of 256 also passed
as unpublished headroom at 189.68 items/s. Process-tree RSS remained about
3.49 GB with about 84.2 GB of system memory available.
- Sustained p50/p90/p99 latency was 38.4/39.5/41.6 ms at batch 1,
46.2/79.4/82.1 ms at batch 8, and 169.8/205.6/206.9 ms at batch 32.
- Exact-runtime vectors matched the official Transformers reference with a
minimum cosine similarity of 0.999717 across native and 1,536-dimensional
query/document cases.

**Start**

```bash
mayhem doctor --provider-backend vllm
mayhem up --provider --provider-enclave Qwen/Qwen3-Embedding-4B --yes
```

The provider's local modality limits may advertise the calibrated batch and
in-flight capacity. They must remain within the signed endpoint limit and the
host's measured memory reserve.

## Laya typed decisions

**Selector and source**

- Model: `convaiinnovations/laya`
- Backend/artifact: native Laya 0.3.5 / BF16 safetensors
- Admin mirror:
`TracNetwork/mayhem-catalog-convaiinnovations-laya@d288cbfe560a0ff904401f57e28820aa140c11e7`
- Upstream pin:
`convaiinnovations/laya@1c5edc17a7acd8701df6fc341c0d179f1c62c982`
- Runtime requirements SHA-256:
`b146de268c7caf04ee58e7c70bde58e7876ee9b280a8de63cf79c68fd06bab14`
- Canary:
[`canary-laya-decision-v1.json`](catalog/canaries/canary-laya-decision-v1.json)

**Hard requirements and surface**

- CUDA is mandatory. The backend fails load if it observes a CPU fallback or
does not preload exactly `english`, `multilingual`, and `typed-decisions`.
- Native ceiling is 1,024 input tokens. The English checkpoint internally uses
its shorter documented default where applicable; caller controls remain
bounded by the signed `limits` object.
- Endpoint: Mayhem `POST /v1/decisions`. This model is a structured decision
model and is not exposed as chat completion or media generation.
- `state` accepts a string, JSON object, or conversation array. `questions`
accepts ordered `choice`, `score`, and `noul` decisions. Explicit checkpoint,
language hint, typed-task routing, opt-in automatic routing, email cleaning,
temperature buckets, length controls, and shortlist controls are supported.
- Choice questions accept at most 20 options normally. Larger signed requests
can use shortlist mode, including caller-supplied vectors, within the endpoint
bounds.
- Billing uses exact processed input tokens and one result unit per four bytes
of canonical visible decision JSON. The reference is $0.01 per million input
or result units, with no fixed request or minimum-session charge. The hard
market band remains positive at $0.0025-$0.04 per million units.

**Measured guidance**

- Exact three-checkpoint CUDA load: about 13.5-13.7 seconds.
- Peak worker GPU allocation: 5,671 MiB.
- Five-request warm probes on two independent calibration hosts measured
20.889 ms and 20.444 ms p95. The fuller mixed probes measured 84.531 ms and
84.237 ms p95.
- One provider process owns one session slot. The launch uses two independent
providers for two aggregate slots and failover without sharing mutable router
state between requests.

**Start**

```bash
mayhem doctor --provider-backend laya
mayhem up --provider --provider-enclave convaiinnovations/laya --yes
```

The managed provider discovers the signed mirror and builds the pinned Python
runtime. No request may download weights or lazily load a checkpoint.

## Verification and troubleshooting

After startup, require all of the following rather than treating process
Expand Down
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,7 @@ behavior; parallel dispatch needs the selected mode's own approval. See
| Class | Routes |
|-------|--------|
| Text generation | `/v1/chat/completions`, `/v1/completions`, `/v1/responses` — tools, JSON mode, streaming, vision input where the catalog says so |
| Exact token counting | `/v1/tokenize`, `/v1/count_tokens` — accepts `messages` or a single `prompt`; set `return_tokens` to include token IDs |
| Embedding | `/v1/embeddings` |
| Image generation | `/v1/images/generations` |
| Video generation | `/v1/videos` |
Expand Down Expand Up @@ -1340,6 +1341,37 @@ modality health immediately instead of rerunning an expensive functional canary
before their first room heartbeat. The Comfy runtime default device is `auto`;
explicit `MAYHEM_COMFYUI_DEVICE=cpu` still forces CPU for hosts that need it.

The `0.2.217` source release adds an optional
`MAYHEM_COMFYUI_RESERVE_VRAM_GB` provider setting. It passes a bounded VRAM
reserve to ComfyUI so a workflow provider can offload more model state to system
memory while leaving measured GPU headroom for another local workload. Leave it
unset unless the host has a calibrated coexistence profile.

The `0.2.218` source release preserves assistant commentary before native
OpenAI-compatible tool calls while streaming the calls as structured deltas;
partial tool envelopes now fail closed instead of appearing as chat text. It
also keeps ComfyUI request journals deletable inside the Windows sandbox.

The `0.2.219` source release admits signed workflow inventory against the
maximum parts one request can select. Providers still verify every advertised
part, while optional model-part catalogs no longer consume memory admission as
if every choice were loaded together.

The `0.2.220` source release recovers expired inference reservations from the
canonical ledger even when a gateway's local job record is unavailable. Any
confirmed partial receipt is retained when the expired reservation closes.

The `0.2.221` source release lets idle workflow engines release retained model
and allocator memory when a provider's runtime floor activates. ComfyUI uses
its supported unload and free-memory control path, restoring cohosted provider
admission without interrupting an active workflow.

The `0.2.222` source release adds a canonical endpoint-contract fingerprint to
the existing request envelope. Updated providers prefer the canonical value,
while the legacy fingerprint remains present for older peers. Equivalent
contracts now survive JSON object reordering and JavaScript number round trips
without disrupting mixed-version routes.

The `0.2.118` source release documents the current Comfy parts inventory,
binds workflow providers to the signed outcome-class definition instead of the
local ComfyUI runtime directory, canonicalizes integer-valued workflow JSON
Expand Down
Loading
Loading