writer) {
throw new IllegalStateException("Cluster info not found for cluster: " + clusterName
+ ". Please check if the cluster is created.");
+ //Ogmios/Kupo talk to the Haskell node over its n2c socket, which doesn't exist in yano-only mode.
+ NodeMode nodeMode = clusterInfo.getNodeMode() != null ? clusterInfo.getNodeMode() : NodeMode.HASKELL_ONLY;
+ if (nodeMode == NodeMode.YANO_ONLY) {
+ writer.accept(info("Ogmios/Kupo require a Haskell cardano-node and are not supported in yano-only mode. Skipping."));
+ return false;
+ }
+
if (appConfig.isOgmiosEnabled()) {
if (!ogmiosPortAvailabilityCheck(clusterInfo, writer))
return false;
@@ -108,6 +130,49 @@ public boolean isOgmiosRunning() {
return ogmiosProcess != null && ogmiosProcess.isAlive();
}
+ /**
+ * Waits until Ogmios actually answers on its HTTP health endpoint.
+ *
+ * {@link #isOgmiosRunning()} only reports that the process was still alive a second after spawn, which is
+ * not enough to hand Yaci Store the "ogmios" tx evaluator : if Ogmios dies or never connects to the node
+ * socket shortly after start, the evaluator mode is already baked into the Store process and every Plutus
+ * script evaluation would fail for the lifetime of the devnet. Callers use this to fall back to Scalus.
+ */
+ public boolean waitForOgmiosReady(int ogmiosPort, Consumer writer) {
+ String healthUrl = "http://localhost:" + ogmiosPort + "/health";
+ int maxAttempts = 15;
+
+ for (int i = 0; i < maxAttempts; i++) {
+ if (!isOgmiosRunning()) {
+ writer.accept(warn("Ogmios process is no longer running."));
+ return false;
+ }
+
+ try {
+ HttpRequest request = HttpRequest.newBuilder()
+ .uri(URI.create(healthUrl))
+ .timeout(Duration.ofSeconds(2))
+ .GET()
+ .build();
+ HttpResponse response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
+ if (response.statusCode() == 200)
+ return true;
+ } catch (Exception e) {
+ //Not ready yet
+ }
+
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException ie) {
+ Thread.currentThread().interrupt();
+ return false;
+ }
+ }
+
+ writer.accept(warn("Ogmios did not become ready within timeout."));
+ return false;
+ }
+
private static boolean ogmiosPortAvailabilityCheck(ClusterInfo clusterInfo, Consumer writer) {
boolean ogmiosPortAvailable = PortUtil.isPortAvailable(clusterInfo.getOgmiosPort());
if (!ogmiosPortAvailable) {
diff --git a/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yacistore/YaciStoreService.java b/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yacistore/YaciStoreService.java
index 6e0d2962..bd8a61ac 100644
--- a/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yacistore/YaciStoreService.java
+++ b/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yacistore/YaciStoreService.java
@@ -380,7 +380,7 @@ private StoreStartResult startStoreApp(ClusterInfo clusterInfo, Era era, Consume
builder.directory(new File(clusterConfig.getYaciStoreBinPath()));
boolean yanoOnly = NodeMode.YANO_ONLY == clusterInfo.getNodeMode();
- String txEvaluatorMode = resolveTxEvaluatorMode(writer);
+ String txEvaluatorMode = resolveTxEvaluatorMode(clusterInfo, writer);
builder.environment().put("STORE_SUBMIT_TX_EVALUATOR_MODE", txEvaluatorMode);
writer.accept(info("Yaci Store tx evaluator mode: " + txEvaluatorMode));
@@ -522,15 +522,25 @@ private StoreStartResult startStoreApp(ClusterInfo clusterInfo, Era era, Consume
return new StoreStartResult(process, started.get());
}
- private String resolveTxEvaluatorMode(Consumer writer) {
- if (appConfig.isOgmiosEnabled() && ogmiosService.isOgmiosRunning())
- return TX_EVALUATOR_MODE_OGMIOS;
+ private String resolveTxEvaluatorMode(ClusterInfo clusterInfo, Consumer writer) {
+ if (!appConfig.isOgmiosEnabled())
+ return TX_EVALUATOR_MODE_SCALUS;
- if (appConfig.isOgmiosEnabled()) {
+ if (!ogmiosService.isOgmiosRunning()) {
writer.accept(warn("Ogmios is enabled but not running. Using Scalus tx evaluator for Yaci Store."));
+ return TX_EVALUATOR_MODE_SCALUS;
}
- return TX_EVALUATOR_MODE_SCALUS;
+ //The mode is baked into the Store process at startup and never re-evaluated, so confirm Ogmios is
+ //actually serving before committing to it. Otherwise a short-lived Ogmios would leave the Store
+ //unable to evaluate any Plutus script for the lifetime of the devnet.
+ if (!ogmiosService.waitForOgmiosReady(clusterInfo.getOgmiosPort(), writer)) {
+ writer.accept(warn("Ogmios is not responding on port " + clusterInfo.getOgmiosPort()
+ + ". Using Scalus tx evaluator for Yaci Store."));
+ return TX_EVALUATOR_MODE_SCALUS;
+ }
+
+ return TX_EVALUATOR_MODE_OGMIOS;
}
private Process startViewerApp(String cluster) throws IOException, InterruptedException, ExecutionException, TimeoutException {
diff --git a/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yano/YanoConfigBuilder.java b/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yano/YanoConfigBuilder.java
index 5fb3491f..10901493 100644
--- a/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yano/YanoConfigBuilder.java
+++ b/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yano/YanoConfigBuilder.java
@@ -34,11 +34,12 @@ public class YanoConfigBuilder {
* @param clusterInfo cluster configuration
* @param yanoConfigDir resolved path to Yano's devnet config (genesis files, keys)
* @param yanoDataDir resolved path for Yano's chainstate storage
+ * @param yanoHistoryDir resolved path for Yano's history archive
* @param pastTimeTravelMode whether past-time-travel mode is enabled
* @return true if config was written successfully
*/
public boolean build(ClusterInfo clusterInfo, Path yanoConfigDir, Path yanoDataDir,
- boolean pastTimeTravelMode) {
+ Path yanoHistoryDir, boolean pastTimeTravelMode) {
Map props = new LinkedHashMap<>();
// Quarkus profile
@@ -64,6 +65,14 @@ public boolean build(ClusterInfo clusterInfo, Path yanoConfigDir, Path yanoDataD
// Storage — inside the node folder so it gets cleaned up with create-node -o
props.put("yano.storage.path", yanoDataDir.toAbsolutePath().toString());
+ // History archive — Yano's bundled devnet profile enables the DuckLake projection
+ // archive by default. DevKit reads nothing from Yano's history api, so it's turned off
+ // here. The dir is pinned inside the node folder anyway: it defaults to ./history,
+ // relative to the working directory, which is the shared yanoHome — an archive written
+ // there outlives create-node -o and then fails the startup identity/coverage guards.
+ props.put("yano.history.projection.enabled", "false");
+ props.put("yano.history.dir", yanoHistoryDir.toAbsolutePath().toString());
+
// Past-time-travel mode
if (pastTimeTravelMode) {
props.put("yano.block-producer.past-time-travel-mode", "true");
diff --git a/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yano/YanoService.java b/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yano/YanoService.java
index e9ac8446..81b60978 100644
--- a/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yano/YanoService.java
+++ b/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/yano/YanoService.java
@@ -242,9 +242,10 @@ private Process startYanoProcess(ClusterInfo clusterInfo, Path clusterFolder, Pa
// Store Yano data inside node folder so it gets cleaned up with create-node -o
Path yanoDataDir = clusterFolder.resolve("node").resolve("yano");
Files.createDirectories(yanoDataDir);
+ Path yanoHistoryDir = clusterFolder.resolve("node").resolve("yano-history");
// Write application.properties for Yano (persists config on disk for debugging)
- yanoConfigBuilder.build(clusterInfo, yanoConfigDir, yanoDataDir, pastTimeTravelMode);
+ yanoConfigBuilder.build(clusterInfo, yanoConfigDir, yanoDataDir, yanoHistoryDir, pastTimeTravelMode);
ProcessBuilder builder = new ProcessBuilder();
builder.directory(new File(clusterConfig.getYanoHome()));
@@ -328,6 +329,7 @@ public void handleClusterStopped(ClusterStopped clusterStopped) {
public void handleClusterDeleted(ClusterDeleted clusterDeleted) {
Path clusterFolder = Path.of(clusterConfig.getClusterHome(), clusterDeleted.getClusterName());
deleteIfPresent(clusterFolder.resolve("node").resolve("yano"), "Yano data");
+ deleteIfPresent(clusterFolder.resolve("node").resolve("yano-history"), "Yano history");
deleteIfPresent(clusterFolder.resolve("yano-config"), "Yano config");
deleteBootstrapMarker(clusterFolder);
}
diff --git a/applications/cli/src/main/resources/localcluster/templates/devnet/templates/configuration.json b/applications/cli/src/main/resources/localcluster/templates/devnet/templates/configuration.json
index 15be04c1..ca0b8e95 100644
--- a/applications/cli/src/main/resources/localcluster/templates/devnet/templates/configuration.json
+++ b/applications/cli/src/main/resources/localcluster/templates/devnet/templates/configuration.json
@@ -87,7 +87,7 @@
"hasEKG": 12788,
"hasPrometheus": [
"127.0.0.1",
- 12798
+ {{prometheusPort}}
],
"minSeverity": "Info",
"options": {
diff --git a/config/env b/config/env
index 5a3b53f6..caf55888 100644
--- a/config/env
+++ b/config/env
@@ -1,5 +1,7 @@
yaci_store_enabled=true
-ogmios_enabled=false
+#Ogmios is enabled by default and used as the Yaci Store tx evaluator.
+#Set to false to fall back to the embedded Scalus evaluator.
+ogmios_enabled=true
kupo_enabled=false
node=node1
diff --git a/docs/pages/getting-started/docker.mdx b/docs/pages/getting-started/docker.mdx
index a652c4e0..98b68fa0 100644
--- a/docs/pages/getting-started/docker.mdx
+++ b/docs/pages/getting-started/docker.mdx
@@ -25,11 +25,11 @@ The Docker distribution includes:
For Ogmios and Kupo, ensure ports 1337 and 1442 are also available if you plan to use these services.
-Starting with Yaci DevKit `v0.12.0-beta5`, the default Docker setup uses Yaci Store's `scalus` transaction evaluator. Ogmios is optional and is not started just for transaction evaluation.
+The default Docker setup starts Ogmios and uses it as Yaci Store's transaction evaluator. If Ogmios is unavailable, Yaci Store falls back to the embedded `scalus` evaluator. Kupo remains optional.
-
-For Yaci DevKit `v0.12.0-beta5`, PV11-compatible Ogmios/Kupo binaries are currently available only as Linux x86_64 builds from IntersectMBO. Docker images can run these on Apple Silicon Docker Desktop through emulation, but native Linux arm64 hosts may need x86_64 emulation or the amd64 image. See [Known Issues](/known-issues#pv11-ogmioskupo-docker-arm64-compatibility).
+
+Ogmios `v7.0.0` and Kupo `v2.12.0` are bundled as **native** binaries in both the `linux/amd64` and `linux/arm64` images — no x86_64 emulation is required on Apple Silicon or native Linux arm64 hosts.
## Installation
@@ -194,13 +194,15 @@ topup_addresses=addr_test1...address1:20000,addr_test1...address2:10000
### Optional Services
-#### Enable Ogmios and Kupo
-To activate Ogmios and Kupo support, either:
+#### Ogmios and Kupo
+Ogmios is **enabled by default** (`ogmios_enabled=true` in `config/env`) and is used as Yaci Store's transaction evaluator. Set `ogmios_enabled=false` to disable it and fall back to the embedded `scalus` evaluator.
+
+Kupo is optional and disabled by default. To activate it, either:
-1. **Via env file**: Set `ogmios_enabled=true` and `kupo_enabled=true` in `config/env`
+1. **Via env file**: Set `kupo_enabled=true` in `config/env`
2. **Via CLI**: Use the `enable-kupomios` command in Yaci CLI
-In `v0.12.0-beta5+`, if Ogmios is enabled and running when Yaci Store starts, Yaci Store uses `ogmios` transaction evaluation. Otherwise it uses `scalus`.
+When Yaci Store starts, DevKit uses the `ogmios` evaluator if Ogmios is enabled and responding on its health endpoint; otherwise it logs a warning and uses `scalus`.
#### Service URLs
- **CLI/Admin Swagger UI**: http://localhost:10000/swagger-ui.html
diff --git a/docs/pages/known-issues.mdx b/docs/pages/known-issues.mdx
index 0ae7f6aa..305bf2e7 100644
--- a/docs/pages/known-issues.mdx
+++ b/docs/pages/known-issues.mdx
@@ -6,41 +6,44 @@ This page documents known issues, workarounds, and frequently asked questions ab
## Known Issues
-### PV11 Ogmios/Kupo Docker arm64 Compatibility
+### Ogmios / Kupo Platform Availability
-
-**Issue**: PV11-compatible (Cardano node 11.0.1) Ogmios `v6.14.0.2` and Kupo `v2.11.0.1` are currently published by IntersectMBO only as Linux x86_64 binaries.
+
+Ogmios `v7.0.0` and Kupo `v2.12.0` are published for Linux (x86_64, arm64) and macOS arm64 only.
#### Current Behavior
-The DevKit Docker image bundles those x86_64 Ogmios/Kupo binaries in both the `linux/amd64` and `linux/arm64` images as a temporary workaround.
-
-- **Linux x86_64 Docker hosts**: Supported.
-- **Apple Silicon Docker Desktop**: Expected to work through Docker Desktop's x86_64 emulation.
-- **Native Linux arm64 Docker hosts**: May fail at runtime unless x86_64 binfmt/qemu emulation is configured on the host.
-- **Native CLI on macOS arm64**: The default PV11 Ogmios/Kupo Linux x86_64 binaries cannot run directly. Use Docker, or set custom `ogmios.url` / `kupo.url` values when compatible native binaries are available.
+- **Docker (linux/amd64 and linux/arm64)**: Fully supported. Both images bundle **native**, statically linked binaries — no emulation required.
+- **Native CLI on Linux (x86_64 and arm64)**: Both supported.
+- **Native CLI on macOS arm64**: Both supported. The macOS builds link only against system libraries and run standalone.
+- **Native CLI on macOS x86_64 / Windows**: Neither component is published. `download -c ogmios` fails fast with an explanatory message instead of attempting a 404 download.
#### Workaround
-On native Linux arm64 hosts, run the DevKit Docker image as `linux/amd64` or configure x86_64 emulation. For native CLI installs, use a compatible Ogmios/Kupo build when one becomes available by setting direct URLs in `config/download.properties`.
+On an unsupported platform, use the DevKit Docker image, or set a custom `ogmios.url` / `kupo.url` in `config/download.properties`.
+
+When Ogmios is unavailable, Yaci Store automatically falls back to the embedded `scalus` transaction evaluator, so transaction evaluation keeps working.
---
-### Yaci Store Tx Evaluator Mode (v0.12.0-beta5+)
+### Yaci Store Tx Evaluator Mode
-Starting with Yaci DevKit `v0.12.0-beta5`, Yaci Store uses the `scalus` transaction evaluator by default.
+Yaci Store uses the `ogmios` transaction evaluator by default in the Docker distribution, and falls back to the embedded `scalus` evaluator when Ogmios is unavailable.
-Default Yaci Store transaction evaluation no longer requires Ogmios. If Ogmios is enabled and running when Yaci Store starts, DevKit automatically switches the evaluator mode to `ogmios`.
+DevKit selects the evaluator at devnet start:
+
+- If Ogmios is enabled **and** responds on its health endpoint, the mode is `ogmios`.
+- Otherwise DevKit logs a warning and uses `scalus`. No transaction evaluation is lost either way.
-This means the temporary PV11 Ogmios/Kupo binary limitations do not block the default Yaci Store transaction evaluation path.
+To force the Scalus evaluator, set `ogmios_enabled=false` in `config/env` (Docker) or `ogmios.enabled=false` in `config/application.properties` (zip distribution).
Check the active mode in the Yaci CLI startup output:
```text
-Yaci Store tx evaluator mode: scalus
+Yaci Store tx evaluator mode: ogmios
```
---
diff --git a/docs/pages/services.mdx b/docs/pages/services.mdx
index b9326539..de913a6c 100644
--- a/docs/pages/services.mdx
+++ b/docs/pages/services.mdx
@@ -73,7 +73,9 @@ For Docker, services are configured in `config/env` with underscore notation.
```shell
yaci_store_enabled=true
-ogmios_enabled=false
+# Ogmios is enabled by default and used as the Yaci Store tx evaluator.
+# Set to false to fall back to the embedded Scalus evaluator.
+ogmios_enabled=true
kupo_enabled=false
```
diff --git a/npm/yaci-devkit/README.md b/npm/yaci-devkit/README.md
index e60b523d..0e5d8936 100644
--- a/npm/yaci-devkit/README.md
+++ b/npm/yaci-devkit/README.md
@@ -35,4 +35,6 @@ npm i -g @bloxbean/yaci-devkit
```
- Downloads and starts the Cardano node, Ogmios, and Kupo.
+> **Note on platforms**: Ogmios and Kupo are published for Linux (x86_64, arm64) and macOS arm64. On macOS x86_64 and Windows they are unavailable; there Yaci Store falls back to the embedded `scalus` script cost evaluator, or you can use the Docker distribution.
+
For a full list of Yaci CLI commands, check the Yaci DevKit [documentation](https://devkit.yaci.xyz/commands).
diff --git a/scripts/info.sh b/scripts/info.sh
index 54a46764..74e2ceb5 100755
--- a/scripts/info.sh
+++ b/scripts/info.sh
@@ -23,7 +23,7 @@ echo "--------------------------------------------"
echo "Other Urls"
echo "--------------------------------------------"
-echo "Ogmios Url (Optional) : ws://localhost:${HOST_OGMIOS_PORT}"
+echo "Ogmios Url : ws://localhost:${HOST_OGMIOS_PORT}"
echo "Kupo Url (Optional) : http://localhost:${HOST_KUPO_PORT}"
echo ""