curl --request POST \
--url https://api.eddy.engineer/v1/corpus/sweep \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"max_samples_per_shard": 64,
"spec": {
"boxes": [
[
123
]
],
"cylinders": [
[
123
]
],
"domains": [],
"element_sizes": [
123
],
"forces": [
123
],
"holes": [
{
"cx": 123,
"cy": 123,
"r": 123
}
],
"include_negatives": true,
"materials": [
{}
],
"modal_modes": [
123
],
"nl_forces": [
123
],
"nl_plasticity": [
true
],
"spheres": [
123
],
"temps": [
[
123
]
]
}
}
'import requests
url = "https://api.eddy.engineer/v1/corpus/sweep"
payload = {
"max_samples_per_shard": 64,
"spec": {
"boxes": [[123]],
"cylinders": [[123]],
"domains": [],
"element_sizes": [123],
"forces": [123],
"holes": [
{
"cx": 123,
"cy": 123,
"r": 123
}
],
"include_negatives": True,
"materials": [{}],
"modal_modes": [123],
"nl_forces": [123],
"nl_plasticity": [True],
"spheres": [123],
"temps": [[123]]
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
max_samples_per_shard: 64,
spec: {
boxes: [[123]],
cylinders: [[123]],
domains: [],
element_sizes: [123],
forces: [123],
holes: [{cx: 123, cy: 123, r: 123}],
include_negatives: true,
materials: [{}],
modal_modes: [123],
nl_forces: [123],
nl_plasticity: [true],
spheres: [123],
temps: [[123]]
}
})
};
fetch('https://api.eddy.engineer/v1/corpus/sweep', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/corpus/sweep",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'max_samples_per_shard' => 64,
'spec' => [
'boxes' => [
[
123
]
],
'cylinders' => [
[
123
]
],
'domains' => [
],
'element_sizes' => [
123
],
'forces' => [
123
],
'holes' => [
[
'cx' => 123,
'cy' => 123,
'r' => 123
]
],
'include_negatives' => true,
'materials' => [
[
]
],
'modal_modes' => [
123
],
'nl_forces' => [
123
],
'nl_plasticity' => [
true
],
'spheres' => [
123
],
'temps' => [
[
123
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/corpus/sweep"
payload := strings.NewReader("{\n \"max_samples_per_shard\": 64,\n \"spec\": {\n \"boxes\": [\n [\n 123\n ]\n ],\n \"cylinders\": [\n [\n 123\n ]\n ],\n \"domains\": [],\n \"element_sizes\": [\n 123\n ],\n \"forces\": [\n 123\n ],\n \"holes\": [\n {\n \"cx\": 123,\n \"cy\": 123,\n \"r\": 123\n }\n ],\n \"include_negatives\": true,\n \"materials\": [\n {}\n ],\n \"modal_modes\": [\n 123\n ],\n \"nl_forces\": [\n 123\n ],\n \"nl_plasticity\": [\n true\n ],\n \"spheres\": [\n 123\n ],\n \"temps\": [\n [\n 123\n ]\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/corpus/sweep")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"max_samples_per_shard\": 64,\n \"spec\": {\n \"boxes\": [\n [\n 123\n ]\n ],\n \"cylinders\": [\n [\n 123\n ]\n ],\n \"domains\": [],\n \"element_sizes\": [\n 123\n ],\n \"forces\": [\n 123\n ],\n \"holes\": [\n {\n \"cx\": 123,\n \"cy\": 123,\n \"r\": 123\n }\n ],\n \"include_negatives\": true,\n \"materials\": [\n {}\n ],\n \"modal_modes\": [\n 123\n ],\n \"nl_forces\": [\n 123\n ],\n \"nl_plasticity\": [\n true\n ],\n \"spheres\": [\n 123\n ],\n \"temps\": [\n [\n 123\n ]\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/corpus/sweep")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"max_samples_per_shard\": 64,\n \"spec\": {\n \"boxes\": [\n [\n 123\n ]\n ],\n \"cylinders\": [\n [\n 123\n ]\n ],\n \"domains\": [],\n \"element_sizes\": [\n 123\n ],\n \"forces\": [\n 123\n ],\n \"holes\": [\n {\n \"cx\": 123,\n \"cy\": 123,\n \"r\": 123\n }\n ],\n \"include_negatives\": true,\n \"materials\": [\n {}\n ],\n \"modal_modes\": [\n 123\n ],\n \"nl_forces\": [\n 123\n ],\n \"nl_plasticity\": [\n true\n ],\n \"spheres\": [\n 123\n ],\n \"temps\": [\n [\n 123\n ]\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"blob_uri": "<string>",
"corpus": {},
"manifest": {
"cases": 123,
"corpus_manifest_blob_id": "<string>",
"curriculum": [
"<string>"
],
"negatives": [
{
"domain": "<string>",
"error_code": "<string>",
"message": "<string>",
"model_blob_id": "<string>"
}
],
"positives": 123,
"spec": {},
"sweep_version": "<string>"
},
"sweep_blob_id": "<string>"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Procedural corpus generation: a deterministic parameter sweep solved + traced + exported (G2)
Enumerates models over the spec envelope in fixed order (domain, geometry, material, case value, element size; geometry = each box followed by its drilled variants, then cylinders, then spheres), solves each (content addressing collapses repeats to cache hits), exports the survivors through the G1 corpus path, orders them into a curriculum by trace complexity, and keeps deliberately malformed variants as typed-error negative examples - an enumerated case that fails with a typed rejection (e.g. a hole bigger than its box) becomes a negative instead of aborting. Every artifact - sweep manifest, corpus manifest, shards - is a pure function of the spec. Case count is capped at 2048 on this synchronous path; larger envelopes belong on the batch-compute path.
curl --request POST \
--url https://api.eddy.engineer/v1/corpus/sweep \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"max_samples_per_shard": 64,
"spec": {
"boxes": [
[
123
]
],
"cylinders": [
[
123
]
],
"domains": [],
"element_sizes": [
123
],
"forces": [
123
],
"holes": [
{
"cx": 123,
"cy": 123,
"r": 123
}
],
"include_negatives": true,
"materials": [
{}
],
"modal_modes": [
123
],
"nl_forces": [
123
],
"nl_plasticity": [
true
],
"spheres": [
123
],
"temps": [
[
123
]
]
}
}
'import requests
url = "https://api.eddy.engineer/v1/corpus/sweep"
payload = {
"max_samples_per_shard": 64,
"spec": {
"boxes": [[123]],
"cylinders": [[123]],
"domains": [],
"element_sizes": [123],
"forces": [123],
"holes": [
{
"cx": 123,
"cy": 123,
"r": 123
}
],
"include_negatives": True,
"materials": [{}],
"modal_modes": [123],
"nl_forces": [123],
"nl_plasticity": [True],
"spheres": [123],
"temps": [[123]]
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
max_samples_per_shard: 64,
spec: {
boxes: [[123]],
cylinders: [[123]],
domains: [],
element_sizes: [123],
forces: [123],
holes: [{cx: 123, cy: 123, r: 123}],
include_negatives: true,
materials: [{}],
modal_modes: [123],
nl_forces: [123],
nl_plasticity: [true],
spheres: [123],
temps: [[123]]
}
})
};
fetch('https://api.eddy.engineer/v1/corpus/sweep', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/corpus/sweep",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'max_samples_per_shard' => 64,
'spec' => [
'boxes' => [
[
123
]
],
'cylinders' => [
[
123
]
],
'domains' => [
],
'element_sizes' => [
123
],
'forces' => [
123
],
'holes' => [
[
'cx' => 123,
'cy' => 123,
'r' => 123
]
],
'include_negatives' => true,
'materials' => [
[
]
],
'modal_modes' => [
123
],
'nl_forces' => [
123
],
'nl_plasticity' => [
true
],
'spheres' => [
123
],
'temps' => [
[
123
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/corpus/sweep"
payload := strings.NewReader("{\n \"max_samples_per_shard\": 64,\n \"spec\": {\n \"boxes\": [\n [\n 123\n ]\n ],\n \"cylinders\": [\n [\n 123\n ]\n ],\n \"domains\": [],\n \"element_sizes\": [\n 123\n ],\n \"forces\": [\n 123\n ],\n \"holes\": [\n {\n \"cx\": 123,\n \"cy\": 123,\n \"r\": 123\n }\n ],\n \"include_negatives\": true,\n \"materials\": [\n {}\n ],\n \"modal_modes\": [\n 123\n ],\n \"nl_forces\": [\n 123\n ],\n \"nl_plasticity\": [\n true\n ],\n \"spheres\": [\n 123\n ],\n \"temps\": [\n [\n 123\n ]\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/corpus/sweep")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"max_samples_per_shard\": 64,\n \"spec\": {\n \"boxes\": [\n [\n 123\n ]\n ],\n \"cylinders\": [\n [\n 123\n ]\n ],\n \"domains\": [],\n \"element_sizes\": [\n 123\n ],\n \"forces\": [\n 123\n ],\n \"holes\": [\n {\n \"cx\": 123,\n \"cy\": 123,\n \"r\": 123\n }\n ],\n \"include_negatives\": true,\n \"materials\": [\n {}\n ],\n \"modal_modes\": [\n 123\n ],\n \"nl_forces\": [\n 123\n ],\n \"nl_plasticity\": [\n true\n ],\n \"spheres\": [\n 123\n ],\n \"temps\": [\n [\n 123\n ]\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/corpus/sweep")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"max_samples_per_shard\": 64,\n \"spec\": {\n \"boxes\": [\n [\n 123\n ]\n ],\n \"cylinders\": [\n [\n 123\n ]\n ],\n \"domains\": [],\n \"element_sizes\": [\n 123\n ],\n \"forces\": [\n 123\n ],\n \"holes\": [\n {\n \"cx\": 123,\n \"cy\": 123,\n \"r\": 123\n }\n ],\n \"include_negatives\": true,\n \"materials\": [\n {}\n ],\n \"modal_modes\": [\n 123\n ],\n \"nl_forces\": [\n 123\n ],\n \"nl_plasticity\": [\n true\n ],\n \"spheres\": [\n 123\n ],\n \"temps\": [\n [\n 123\n ]\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"blob_uri": "<string>",
"corpus": {},
"manifest": {
"cases": 123,
"corpus_manifest_blob_id": "<string>",
"curriculum": [
"<string>"
],
"negatives": [
{
"domain": "<string>",
"error_code": "<string>",
"message": "<string>",
"model_blob_id": "<string>"
}
],
"positives": 123,
"spec": {},
"sweep_version": "<string>"
},
"sweep_blob_id": "<string>"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}